joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42225f
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0xc
cmp dword [ebp + 0xc], 0
jbe 0x422347
push ebx
lea edx, [ebp - 8]
push esi
sub ecx, edx
push edi
mov edi, ecx
push 3
mov byte [ebp - 1], 0
lea ecx, [ebp - 8]
pop esi
cmp dword [ebp + 0xc], 0
jbe 0x422299
mov dl, byte [edi + ecx]
dec dword [ebp + 0xc]
inc byte [ebp - 1]
mov byte [ecx], dl
jmp 0x42229c
mov byte [ecx], 0
inc ecx
dec esi
jne 0x422286
movzx ecx, byte [ebp - 8]
mov edx, ecx
shr edx, 2
mov bl, byte [edx + 0x408dd0]
movzx edx, byte [ebp - 7]
and ecx, 3
mov esi, edx
shl ecx, 4
shr esi, 4
or esi, ecx
mov cl, byte [esi + 0x408dd0]
add edi, 3
cmp byte [ebp - 1], 1
mov byte [ebp - 0xb], cl
jbe 0x4222e9
movzx ecx, byte [ebp - 6]
and edx, 0xf
shl edx, 2
shr ecx, 6
or ecx, edx
mov dl, byte [ecx + 0x408dd0]
jmp 0x4222eb
mov dl, 0x3d
cmp byte [ebp - 1], 2
jbe 0x422300
movzx ecx, byte [ebp - 6]
and ecx, 0x3f
mov cl, byte [ecx + 0x408dd0]
jmp 0x422302
mov cl, 0x3d
cmp byte [ebp + 0x10], 0
je 0x422329
movzx esi, bl
mov word [eax], si
movzx esi, byte [ebp - 0xb]
movzx edx, dl
movzx ecx, cl
mov word [eax + 2], si
mov word [eax + 4], dx
mov word [eax + 6], cx
add eax, 8
jmp 0x42233a
mov byte [eax], bl
mov bl, byte [ebp - 0xb]
mov byte [eax + 1], bl
mov byte [eax + 2], dl
mov byte [eax + 3], cl
add eax, 4
cmp dword [ebp + 0xc], 0
ja 0x42227c
pop edi
pop esi
pop ebx
sub eax, dword [ebp + 8]
leave
ret 0xc

Function at 0x422424
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
mov al, byte [esi]
mov byte [ecx], al
cmp edx, 1
jbe 0x422444
lea eax, [ecx + 1]
sub esi, ecx
lea ecx, [edx - 1]
mov dl, byte [esi + eax]
xor dl, byte [eax - 1]
mov byte [eax], dl
inc eax
dec ecx
jne 0x422438
pop esi
ret

Function at 0x422446
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 4], esi
je 0x42245b
push edi
push dword [esp + 8]
push esi
call dword [sym.imp.msvcrt.dll_memcpy]
add esp, 0xc
lea eax, [edi - 1]
test eax, eax
je 0x42246c
mov cl, byte [eax + esi - 1]
xor byte [eax + esi], cl
dec eax
jne 0x422462
ret 4
Function at 0x422dd2
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, 0x4401d8
push esi
mov dword [0x4401d8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x422f03
push 2
pop ecx
cmp dword [0x4401e8], ecx
jne 0x422f03
mov al, byte [0x4402f2]
xor edx, edx
cmp al, 1
jne 0x422e63
mov eax, dword [0x4401dc]
cmp eax, 5
jne 0x422e3e
mov eax, dword [0x4401e0]
cmp eax, edx
jne 0x422e2d
mov byte [0x4401d0], 1
jmp 0x422ea9
cmp eax, 1
je 0x422e36
cmp eax, ecx
jne 0x422ea9
mov byte [0x4401d0], cl
jmp 0x422ea9
cmp eax, 6
jne 0x422ea9
mov eax, dword [0x4401e0]
cmp eax, edx
jne 0x422e55
mov byte [0x4401d0], 4
jmp 0x422ea9
cmp eax, 1
jne 0x422ea9
mov byte [0x4401d0], 6
jmp 0x422ea9
cmp al, cl
je 0x422e6b
cmp al, 3
jne 0x422ea9
mov eax, dword [0x4401dc]
cmp eax, 5
jne 0x422e86
cmp dword [0x4401e0], ecx
jne 0x422ea9
mov byte [0x4401d0], 3
jmp 0x422ea9
cmp eax, 6
jne 0x422ea9
mov eax, dword [0x4401e0]
cmp eax, edx
jne 0x422e9d
mov byte [0x4401d0], 5
jmp 0x422ea9
cmp eax, 1
jne 0x422ea9
mov byte [0x4401d0], 7
mov eax, dword [0x4401e4]
mov ecx, 0xffff
cmp ecx, eax
sbb ecx, ecx
not ecx
and ecx, eax
mov eax, 0xff
mov word [0x4401d2], cx
cmp word [0x4402ec], ax
ja 0x422ee5
cmp word [0x4402ee], dx
jne 0x422ee5
mov al, byte [0x4402ec]
mov byte [0x4401d4], al
jmp 0x422eeb
mov byte [0x4401d4], dl
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x24]
mov word [0x4401d6], ax
mov al, 1
jmp 0x422f36
xor edx, edx
xor eax, eax
push 0x11c
mov word [0x4401d2], ax
push edx
mov eax, 0xffff
push esi
mov byte [0x4401d0], dl
mov byte [0x4401d4], dl
mov word [0x4401d6], ax
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
xor al, al
pop esi
leave
ret

Function at 0x4233b8
Capabilities:
Create thread

Disassembly:
test esi, esi
jne 0x4233bf
xor eax, eax
ret
push edi
push 0
push 0
push esi
push 0x423318
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x4233e2
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, edi
pop edi
ret
Function at 0x423d2c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
push esi
push 0x56
lea esi, [esp + 0x3c]
pop eax
call fcn.00413de7
mov eax, esi
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 8], eax
xor eax, eax
push eax
push eax
push 0x21
push eax
mov dword [esp + 0x1c], 0x408eb8
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x423de3
push 0x57
lea esi, [esp + 0x34]
pop eax
call fcn.00413de7
lea eax, [esp + 8]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x1c], eax
lea eax, [esp + 4]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], 4
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 2
call fcn.00424939
mov eax, esi
push eax
lea eax, [esp + 0x4c]
push eax
push eax
call fcn.00422ccf
test eax, eax
je 0x423de3
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
call fcn.00424939
test bl, 2
je 0x423dfa
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x423e60
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 0x1004
mov edi, eax
mov eax, dword [ebp + 0x10]
and dword [eax], 0
and dword [edi], 0
push 8
push dword [0x4401c8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
jne 0x423e97
xor al, al
jmp 0x423f41
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x28
pop esi
push esi
lea eax, [ebp - 0x34]
push 0
push eax
mov byte [ebp - 5], 1
call dword [sym.imp.msvcrt.dll_memset]
mov dword [ebp - 0x34], esi
add esp, 0xc
mov dword [ebp - 0x20], ebx
mov esi, 0x1000
cmp byte [ebp + 0x14], 0
jne 0x423edb
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x423ef0
push dword [ebp + 0x18]
lea eax, [ebp - 0x34]
push 8
push eax
push dword [ebp + 8]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.WININET.dll_InternetReadFileExA]
test eax, eax
jne 0x423f0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x423f22
lea eax, [ebp + 0xc]
push eax
call fcn.004095df
jmp 0x423ec2
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x423f26
push dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
call fcn.00421d7d
test eax, eax
jne 0x423ec2
mov byte [ebp - 5], 0
push dword [ebp - 0xc]
call fcn.00421ce7
cmp byte [ebp - 5], 0
jne 0x423f3e
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.00421ce7
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x424939
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x407698
push ebx
lea eax, [ebp - 0x45c]
push eax
mov esi, ecx
call fcn.00422ccf
test eax, eax
jne 0x424968
push 3
pop eax
jmp 0x424abd
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x424988
push 4
jmp 0x424962
xor edi, edi
lea eax, [ebp - 0x228]
call fcn.0040bd0b
test al, al
jne 0x424a72
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [ebp - 0x254]
push edx
push ebx
call dword [eax + 4]
test eax, eax
je 0x4249b8
cmp eax, 1
jmp 0x424a70
test byte [ebp - 0x254], 0x10
je 0x424a49
test byte [esi + 8], 2
je 0x4249ee
lea eax, [ebp - 0x228]
push eax
call fcn.00424ae1
test al, al
je 0x4249ee
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [ebp - 0x254]
push edx
push ebx
call dword [eax + 8]
test eax, eax
jne 0x4249b0
test byte [esi + 8], 1
je 0x424a72
lea eax, [ebp - 0x228]
push eax
push ebx
lea eax, [ebp - 0x45c]
push eax
call fcn.00422ccf
test eax, eax
jne 0x424a11
push 3
pop edi
jmp 0x424a2f
lea eax, [ebp - 0x45c]
push eax
mov ecx, esi
call fcn.00424939
mov edi, eax
test edi, edi
je 0x424a72
cmp edi, 1
je 0x424a97
cmp edi, 2
je 0x424a97
mov ecx, dword [esi]
mov eax, dword [ecx]
push edi
lea edx, [ebp - 0x254]
push edx
push ebx
call dword [eax + 0xc]
cmp eax, 3
je 0x4249f4
jmp 0x4249b0
test byte [esi + 8], 4
je 0x424a72
lea eax, [ebp - 0x228]
push eax
call fcn.00424ae1
test al, al
je 0x424a72
mov ecx, dword [esi]
mov eax, dword [ecx]
lea edx, [ebp - 0x254]
push edx
push ebx
call dword [eax + 8]
test eax, eax
jne 0x424a8c
lea eax, [ebp - 0x254]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42498a
jmp 0x424a97
xor ecx, ecx
cmp eax, 2
setne cl
lea edi, [ecx + 1]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
jne 0x424aab
cmp esi, 0x12
je 0x424aab
push 4
pop edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x426e3f
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, edx
push 0x14
sub ecx, eax
sub esi, eax
pop edi
mov dl, byte [ecx + eax]
xor dl, byte [eax]
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x426e4a
pop edi
pop esi
ret
Function at 0x42784e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x4278a6
cmp esi, 0xffffffff
je 0x4278a6
cmp dword [ebp + 8], ebx
je 0x4278a6
cmp byte [esi + 4], bl
je 0x427875
mov eax, dword [esi]
push 2
push ebx
push ebx
call fcn.0042e93e
mov esi, dword [esi]
push ebx
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x427891
cmp dword [ebp + 8], edi
je 0x4278a2
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x4278b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x4278b3
mov eax, edi
jmp 0x4278b6
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4278b3
mov dword [eax], 0x57
or eax, 0xffffffff
pop esi
pop ebx
pop ebp
ret 8

Function at 0x427d2c
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esi + 8]
push edi
add eax, 0x426
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x427d4d
xor al, al
jmp 0x427e45
mov ecx, dword [esi + 8]
mov edx, dword [esp + 8]
push edi
add ecx, 0x21e
call fcn.0042f5ba
test eax, eax
jne 0x427d46
mov ecx, dword [esi + 8]
mov eax, 0x7fffffff
mov dword [ecx + 0x630], eax
mov ecx, dword [esi + 8]
mov dword [ecx + 0x634], eax
mov eax, dword [esi + 8]
push ebx
xor ebx, ebx
mov dword [eax + 0x638], ebx
mov eax, dword [esi + 8]
mov dword [eax + 0x63c], ebx
mov eax, dword [esi + 8]
mov dword [eax + 0x640], ebx
mov eax, dword [esi + 8]
mov dword [eax + 0x644], 1
mov eax, dword [esi + 8]
mov dword [eax + 0x648], ebx
mov eax, dword [esi + 8]
xor ecx, ecx
mov word [eax + 0x650], cx
mov eax, dword [esi + 8]
mov byte [eax + 0x652], bl
mov eax, dword [esi + 8]
push 0x408f52
add eax, 0x752
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 8]
push 3
push 0x408f50
add eax, 0x852
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [esi + 8]
push esi
lea ecx, [eax + 0x630]
push ecx
push 0x427a33
push 0x4279fb
push 0x4279e3
push 0x4279d3
push 0x4279bb
push 0x4279a3
push fcn.0042795e
push 0x4276c2
push 0x4276b8
lea ecx, [esi + 0xc]
push 0x427b0c
push ecx
call dword [eax + 4]
mov ecx, dword [esi + 8]
mov dword [ecx], eax
mov eax, dword [esi + 8]
add esp, 0x34
xor ecx, ecx
cmp dword [eax], ebx
pop ebx
setne al
pop edi
ret 4
Function at 0x428519
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebx + 0x3c]
mov edx, dword [esi + ebx + 0x34]
push edi
mov edi, dword [ebp + 8]
sub edi, ebx
add eax, edi
push eax
push edi
push ebx
mov ecx, ebx
mov dword [ebp - 0xc], eax
call fcn.0040b38f
lea eax, [ebp - 8]
push eax
push 0x40
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x428593
xor ecx, ecx
mov byte [ebp - 1], cl
cmp dword [ebp + 0xc], ecx
jbe 0x428580
movzx edx, byte [ebp - 1]
mov eax, dword [ebp + 8]
mov dl, byte [ebp + edx + 0x10]
xor byte [eax + ecx], dl
inc byte [ebp - 1]
cmp byte [ebp - 1], 4
jne 0x42857a
mov byte [ebp - 1], 0
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x42855f
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
mov edx, ebx
push edi
push dword [esi + ebx + 0x34]
mov ecx, ebx
call fcn.0040b38f
pop edi
pop esi
leave
ret 0xc

Function at 0x4285aa
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 2], 1
test eax, eax
je 0x428637
push ebx
push esi
push edi
lea edi, [ecx + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x42862c
mov esi, dword [edi - 8]
movzx ebx, byte [edi + 4]
mov eax, esi
mov byte [ebp - 1], 0
call fcn.0042d04a
cmp eax, 0x1e
jb 0x428628
lea eax, [ebp - 8]
push eax
push 0x40
push 0x1e
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x428628
push 0
add ebx, 0xfffffffb
push ebx
push dword [ebp - 0x10]
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x428610
mov byte [ebp - 1], 1
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x1e
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp byte [ebp - 1], 0
jne 0x42862c
mov byte [ebp - 2], 0
add edi, 0x10
dec dword [ebp - 0xc]
jne 0x4285c1
pop edi
pop esi
pop ebx
mov al, byte [ebp - 2]
leave
ret
Function at 0x42866a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
xor ecx, ecx
cmp esi, ebx
jbe 0x428693
mov eax, dword [ebp + 8]
add eax, 0xc
cmp dword [eax - 0xc], ebx
je 0x4286f3
mov dword [eax - 4], ebx
mov byte [eax], bl
inc ecx
add eax, 0x10
cmp ecx, esi
jb 0x428681
mov eax, esi
imul eax, eax, 0x23
push edi
push 0x40
push 0x3000
push eax
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
cmp edi, ebx
je 0x4286ff
mov dword [ebp - 4], ebx
cmp esi, ebx
jbe 0x4286e7
mov esi, dword [ebp + 8]
add esi, 8
mov ebx, dword [esi - 8]
push 0x42863c
push edi
push dword [esi - 4]
call fcn.0042d08f
test eax, eax
je 0x4286e7
mov dword [esi], edi
add edi, eax
inc dword [ebp - 4]
mov byte [esi + 4], al
mov eax, dword [ebp - 4]
add esi, 0x10
cmp eax, dword [ebp + 0xc]
jb 0x4286bd
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
jne 0x4286f7
mov al, 1
jmp 0x428701
xor al, al
jmp 0x428702
mov ecx, dword [ebp + 8]
call fcn.004285aa
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42a4ae
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov dword [edi], eax
xor ebx, ebx
mov dword [edi + 8], ebx
push dword [ecx + 4]
push dword [eax + 8]
call fcn.0040e8d1
lea esi, [edi + 4]
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.00429cf5
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
mov byte [ecx + eax], bl
cmp dword [esi], ebx
je 0x42a50e
push ebx
push ebx
push edi
push 0x42a230
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xc], eax
cmp eax, ebx
je 0x42a507
mov al, 1
jmp 0x42a510
push dword [esi]
call fcn.00421ce7
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x42baba
Capabilities:
Check if file exists
Get common file path
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
xor bl, bl
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42bb4f
test al, 0x10
je 0x42bae0
mov ecx, edi
call fcn.0040bd98
jmp 0x42bae6
push edi
call fcn.0042ec57
test al, al
jne 0x42bb4f
push 0x104
mov edx, edi
lea ecx, [ebp - 0x214]
call fcn.0042f5ba
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea esi, [ebp - 0xc]
mov eax, 0xcf
call fcn.00413de7
lea eax, [ebp - 0x41c]
push eax
push 0
mov eax, esi
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x42bb4f
push 1
lea eax, [ebp - 0x41c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x41c]
push eax
call fcn.0042ec57
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.0040bab5
test al, al
jne 0x42bb7b
cmp byte [ebp + 0x10], al
jne 0x42bb69
cmp bl, 0xa
je 0x42bb7f
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
inc bl
jmp 0x42bac7
mov al, 1
jmp 0x42bb81
xor al, al
pop esi
pop ebx
leave
ret 0xc

Function at 0x42bd68
Capabilities:
Create thread
Terminate thread

Disassembly:
cmp byte [0x43f148], 1
jbe 0x42bdac
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push 0x42bca1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, edi
je 0x42bdaa
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42bda3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret
Function at 0x42c486
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, eax
push esi
push 0x72
pop eax
call fcn.0042c42e
push edi
push esi
push 0x75
mov dword [ebp - 0x14], eax
pop eax
call fcn.0042c42e
push edi
push esi
push 0x76
mov dword [ebp - 0x10], eax
pop eax
call fcn.0042c42e
push edi
push esi
push 0x73
mov dword [ebp - 0x18], eax
pop eax
call fcn.0042c42e
push edi
push esi
push 0x74
mov dword [ebp - 0x24], eax
pop eax
call fcn.0042c42e
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 8], eax
setne byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x42c61c
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
cmp dword [ebp - 0x18], ebx
je 0x42c500
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
call fcn.004173b1
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 0x10], ebx
je 0x42c532
push 0x6a
lea esi, [ebp - 0x30]
pop eax
call fcn.00413de7
push dword [ebp - 0x10]
mov eax, esi
push eax
push 0xc
pop ebx
lea edi, [ebp - 0x60]
call fcn.0041bb91
pop ecx
pop ecx
lea eax, [ebp - 0x20]
mov edx, edi
call fcn.004173b1
xor ebx, ebx
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call edi
cmp dword [ebp - 8], ebx
je 0x42c5b9
cmp eax, 1
jle 0x42c5b9
mov ecx, eax
and ecx, 0x80000001
jns 0x42c556
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x42c5b9
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x30], eax
jne 0x42c566
xor eax, eax
jmp 0x42c56b
call fcn.00421cb4
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x42c5b9
mov ecx, eax
mov eax, dword [ebp - 8]
call fcn.0041b5c9
test al, al
je 0x42c5b1
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x30]
push ebx
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
cmp eax, 1
jne 0x42c5b1
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
call fcn.0041b3b2
push dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x2c]
call fcn.00421ce7
push 0x71
lea esi, [ebp - 0xc4]
pop eax
call fcn.00413de7
push 0x7a
lea esi, [ebp - 0x48]
pop eax
call fcn.00413de7
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
cmp edx, ebx
mov eax, 0x408b54
cmove edx, eax
cmp ecx, ebx
cmove ecx, eax
cmp dword [ebp - 0x1c], ebx
je 0x42c5ee
mov eax, esi
mov esi, dword [ebp + 0x10]
push edx
push ecx
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0xc4]
push dword [ebp - 0x14]
push dword [ebp + 8]
push eax
push dword [esi]
call edi
mov ebx, eax
mov eax, esi
call fcn.0041bc4f
add esp, 0x1c
push dword [ebp - 0xc]
call fcn.00421ce7
push dword [ebp - 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 8]
call esi
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42d08f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
mov eax, ebx
mov dword [ebp - 8], esi
call fcn.0042d04a
cmp eax, 0x1e
jb 0x42d1a1
lea eax, [ebp - 4]
push eax
push 0x40
push 0x1e
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x42d1a1
push 0x23
lea eax, [ebp - 0x2c]
push 0xffffffffffffff90
push eax
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
push esi
push 0x1e
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x42d18f
push edi
lea edi, [ebp - 0x2c]
push esi
mov eax, edi
push eax
jmp 0x42d127
add esi, eax
cmp esi, 0x1e
ja 0x42d18e
mov cl, byte [edi]
cmp cl, 0xe9
je 0x42d10e
cmp cl, 0xe8
jne 0x42d11b
cmp eax, 5
jne 0x42d11b
mov eax, ebx
sub eax, dword [ebp + 0xc]
add dword [edi + 1], eax
push 0
cmp esi, 5
jae 0x42d133
lea edi, [ebp + esi - 0x2c]
push edi
call fcn.00439160
cmp eax, 0xffffffff
jne 0x42d0f7
jmp 0x42d18e
mov eax, ebx
sub eax, dword [ebp + 0xc]
lea edi, [esi + 5]
sub eax, 5
mov dword [ebp + esi - 0x2b], eax
push edi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
mov byte [ebp + esi - 0x2c], 0xe9
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0xffffffffffffffff
call esi
test eax, eax
je 0x42d18e
mov eax, dword [ebp + 8]
sub eax, ebx
sub eax, 5
cmp dword [ebp + 0x10], 0
mov byte [ebp - 0x2c], 0xe9
mov dword [ebp - 0x2b], eax
je 0x42d17a
mov edx, dword [ebp + 0xc]
mov ecx, ebx
call dword [ebp + 0x10]
push 0
push 5
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0xffffffffffffffff
call esi
test eax, eax
je 0x42d18e
mov dword [ebp - 8], edi
pop edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x1e
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp - 8]
pop esi
leave
ret 0xc
Function at 0x42d339
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
sub eax, 0xa1
push ebx
push edi
je 0x42d396
push 3
pop ecx
sub eax, ecx
je 0x42d38d
sub eax, ecx
je 0x42d384
sub eax, 0x15a
je 0x42d37b
sub eax, ecx
je 0x42d372
sub eax, ecx
jne 0x42d40f
mov dword [ebp - 4], 0x209
xor bl, bl
jmp 0x42d39f
mov dword [ebp - 4], 0x206
jmp 0x42d36e
mov dword [ebp - 4], 0x203
jmp 0x42d36e
mov dword [ebp - 4], 0xa9
jmp 0x42d39d
mov dword [ebp - 4], 0xa6
jmp 0x42d39d
mov dword [ebp - 4], 0xa3
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [ebp + 8]
cmp dword [esi + 0x16c], eax
jne 0x42d3fa
mov ecx, dword [esi + 0x168]
cmp ecx, dword [ebp + 0xc]
jne 0x42d3fa
mov ecx, edi
sub ecx, dword [esi + 0x164]
cmp ecx, 0x3e8
ja 0x42d3fa
test bl, bl
jne 0x42d3de
push 0xffffffffffffffe6
push eax
call dword [sym.imp.USER32.dll_GetClassLongW]
test al, 8
je 0x42d3f7
xor eax, eax
mov dword [esi + 0x168], eax
mov dword [esi + 0x164], eax
mov dword [esi + 0x16c], eax
mov eax, dword [ebp - 4]
jmp 0x42d412
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x168], ecx
mov dword [esi + 0x164], edi
mov dword [esi + 0x16c], eax
mov eax, dword [ebp + 0xc]
pop edi
pop ebx
leave
ret 8