joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f7b2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x480810]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0045f747
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0044cd20
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x45f801
cmp dword [ebp - 0x1c], 5
jb 0x45f819
jmp 0x45f815
cmp dword [ebp - 0x10], 1
jne 0x45f819
cmp dword [ebp - 0x1c], 4
ja 0x45f815
jne 0x45f819
cmp dword [ebp - 0x18], 0
jbe 0x45f819
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x46d780
call fcn.0045f638
test eax, eax
jge 0x45f83a
mov byte [0x484ee4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00448d99
add ebp, 0x78
leave
ret
Function at 0x40289c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402934
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402914
xor eax, eax
push ebp
push 0x40290d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402950
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402914
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x40475c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404918
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4047bd
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404934
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40482f
xor eax, eax
push ebp
push 0x404828
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.004045b4
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404811
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404954
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40482f
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404910
cmp byte [ebp - 0xd], 0
jne 0x404871
cmp byte [ebp - 0x12], 0
je 0x404910
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40488a
dec ebx
cmp byte [ebx], 0x2e
je 0x404899
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404889
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404910
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4048c6
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404910
cmp byte [ebp - 0xd], 0
je 0x404910
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404910
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4072a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4072dd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040355c
jmp 0x4072e6
mov eax, ebx
mov edx, esi
call fcn.004034c8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4072f0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x407311
mov al, byte [esp]
jmp 0x407313
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40daf8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00403894
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x40db50
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x40f4d8]
mov dl, 1
mov eax, dword [0x40d6b0]
call fcn.00407b00
call fcn.00402f44
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0040d7b8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40dc1c
Capabilities:
Get disk information
Get disk size
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
xor eax, eax
push ebp
push 0x40dd0c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x34]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x30]
mov dword [0x40f304], eax
mov eax, dword [ebp - 0x18]
mov dword [0x40f30c], eax
xor eax, eax
mov dword [0x40f308], eax
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
xor esi, esi
mov eax, esi
cmp eax, 0x1f
ja 0x40dc6e
bt edi, eax
jae 0x40dce7
mov ebx, esi
add bl, 0x61
lea eax, [ebp - 0x38]
mov edx, ebx
call fcn.0040361c
lea eax, [ebp - 0x38]
mov edx, 0x40dd24
call fcn.004036d8
mov eax, dword [ebp - 0x38]
call fcn.00403894
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
jne 0x40dce7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3c]
mov edx, ebx
call fcn.0040361c
lea eax, [ebp - 0x3c]
mov edx, 0x40dd24
call fcn.004036d8
mov eax, dword [ebp - 0x3c]
call fcn.00403894
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
mov eax, dword [ebp - 4]
cmp eax, dword [0x40f308]
jle 0x40dce7
mov eax, dword [ebp - 4]
mov dword [0x40f308], eax
inc esi
cmp esi, 0x1a
jne 0x40dc64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40dd13
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00403498
ret
Function at 0x40df40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov byte [ebp - 1], cl
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e087
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00402778
mov dword [ebp - 0x50], 0x44
cmp byte [ebp - 1], 0
je 0x40df85
mov word [ebp - 0x20], 6
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x10
call fcn.00402778
test ebx, ebx
jne 0x40df9c
xor esi, esi
jmp 0x40dfa5
mov eax, ebx
call fcn.00403894
mov esi, eax
test edi, edi
jne 0x40dfad
xor edi, edi
jmp 0x40dfb6
mov eax, edi
call fcn.00403894
mov edi, eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push edi
push esi
call sub.kernel32.dll_CreateProcessA
neg eax
sbb eax, eax
neg eax
mov edx, 0x40e0a0
call fcn.0040dd88
xor eax, eax
push ebp
push 0x40e06a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0xffffffffffffffff
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0xffffffff
jne 0x40e033
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x6c]
xor ecx, ecx
mov eax, 0x40e0b8
call fcn.0040717c
mov eax, dword [ebp - 0x64]
call fcn.0040de64
jmp 0x40e033
push 1
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
je 0x40e04d
cmp dword [ebp - 0xc], 0x103
je 0x40e02c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e071
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x40e394
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x40e514
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x40e3d5
mov eax, edi
call fcn.0040e70c
test al, al
jne 0x40e3df
lea eax, [ebp - 8]
call fcn.0040e318
jmp 0x40e3e9
lea eax, [ebp - 8]
mov edx, edi
call fcn.0040350c
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.0040e29c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.0040350c
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_GetLocalTime
push dword [ebp - 8]
push dword [ebp - 4]
lea eax, [ebp - 0x20]
push eax
movzx eax, word [ebp - 0x16]
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x44], 0
movzx eax, word [ebp - 0x12]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
movzx eax, word [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
movzx eax, word [ebp - 0xe]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
movzx eax, word [ebp - 0xc]
movzx edx, word [ebp - 0xa]
imul edx
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x48]
mov ecx, 4
mov eax, 0x40e52c
call fcn.0040717c
push dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403790
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004034c8
xor edi, edi
jmp 0x40e4a4
push ebx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xb
mov dword [ebp - 0x50], edi
mov byte [ebp - 0x4c], 0
lea edx, [ebp - 0x58]
mov ecx, 1
mov eax, 0x40e550
call fcn.0040717c
inc edi
mov edx, dword [ebx]
lea eax, [ebp - 0x5c]
mov ecx, esi
call fcn.0040371c
mov eax, dword [ebp - 0x5c]
call fcn.0040e55c
test al, al
jne 0x40e4db
mov edx, dword [ebx]
lea eax, [ebp - 0x60]
mov ecx, esi
call fcn.0040371c
mov eax, dword [ebp - 0x60]
call fcn.00403894
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x40e47f
mov eax, ebx
mov edx, esi
call fcn.004036d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e51b
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.00403498
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00403498
lea eax, [ebp - 8]
call fcn.00403474
ret

Function at 0x40e55c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403894
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40e575
test al, 0x10
je 0x40e579
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40e580
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
lea eax, [ebp - 0xc]
push eax
mov eax, edi
call fcn.00403894
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jbe 0x40e66e
xor eax, eax
push ebp
push 0x40e65e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebx + 1]
call fcn.00406830
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x40e64d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x40e637
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x40e67c
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x40e620
cmp dword [ebp - 0x18], 0
jne 0x40e626
mov byte [ebp - 5], 0
jmp 0x40e637
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e654
mov eax, dword [ebp - 0x14]
call fcn.004025b8
ret
mov byte [ebp - 5], 0
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e70c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403894
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40e725
test al, 0x10
jne 0x40e729
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x40e828
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403884
xor eax, eax
push ebp
push 0x40e9a6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x40e97b
lea edx, [ebp - 0x14c]
mov eax, dword [ebp - 4]
call fcn.0040e2dc
mov edx, dword [ebp - 0x14c]
lea eax, [ebp - 4]
call fcn.0040350c
lea eax, [ebp - 0x148]
xor ecx, ecx
mov edx, 0x140
call fcn.00402778
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x150]
mov ecx, 0x40e9bc
mov edx, dword [ebp - 4]
call fcn.0040371c
mov eax, dword [ebp - 0x150]
call fcn.00403894
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x40e97b
lea edx, [ebp - 8]
lea eax, [ebp - 0x11c]
call fcn.00406c84
test byte [ebp - 0x148], 0x10
je 0x40e93a
test bl, bl
je 0x40e960
mov eax, dword [ebp - 8]
mov edx, 0x40e9cc
call fcn.004037e0
je 0x40e960
mov eax, dword [ebp - 8]
mov edx, 0x40e9d8
call fcn.004037e0
je 0x40e960
push dword [ebp - 4]
push 0x40e9e4
push dword [ebp - 8]
lea eax, [ebp - 0x154]
mov edx, 3
call fcn.00403790
mov eax, dword [ebp - 0x154]
call fcn.0040e9e8
jmp 0x40e960
push dword [ebp - 4]
push 0x40e9e4
push dword [ebp - 8]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00403790
mov eax, dword [ebp - 0x158]
call fcn.004069e8
lea eax, [ebp - 0x148]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x40e8d9
push esi
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9ad
lea eax, [ebp - 0x158]
mov edx, 4
call fcn.00403498
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403498
ret
Function at 0x40b6c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4667fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045b728
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b742
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00459677
mov eax, dword [eax]
push 0x6eb1c0
push eax
call fcn.0044c574
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045b9b3
test bl, bl
je 0x40b742
push 0x6eb1c0
lea ecx, [esp + 0xc]
call fcn.0045bd43
push 0x6eed08
lea ecx, [esp + 0xc]
call fcn.0045bd43
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40b77e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045b9b3
jmp 0x40b849
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40b802
lea edx, [esp + 0x7c]
push 0x6eed04
push edx
call fcn.0044c574
add esp, 8
test eax, eax
je 0x40b802
lea eax, [esp + 0x7c]
push 0x6eed00
push eax
call fcn.0044c574
add esp, 8
test eax, eax
je 0x40b802
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b792
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045b9b3
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40c040
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40c0a2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40c0b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46687b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x6f51a8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40c1e8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c116
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045b9b3
xor eax, eax
jmp 0x40c25f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045baf0
push esi
lea ecx, [esp + 0xc]
call fcn.0045bd7f
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40c23d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040c040
test eax, eax
jne 0x40c23d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040c040
test eax, eax
jne 0x40c23d
lea eax, [esp + 0x14]
push 0x6eed1c
push eax
call fcn.0044d5b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c21c
lea ecx, [esp + 0x14]
push 0x6eed18
push ecx
call fcn.0044d530
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c21c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c21f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045baa0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c12e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045b9b3
xor eax, eax
jmp 0x40c25f
mov byte [esi], 0
push 0x6eed14
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0045b9b3
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x41cce0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x41cd4e
cmp si, 0x69
ja 0x41cd4e
add esi, 0xffd0
cmp si, 0x11
je 0x41cd1e
push 0x11
call edi
test ax, ax
jge 0x41cd1e
or esi, 0x2000
cmp si, 0x10
je 0x41cd33
push 0x10
call edi
test ax, ax
jge 0x41cd33
or esi, 0x4000
cmp si, 0x12
je 0x41cd48
push 0x12
call edi
test ax, ax
jge 0x41cd48
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41cd5b
mov esi, 0xbd
jmp 0x41cd0f
cmp si, 0x6e
jne 0x41cd68
mov esi, 0xbe
jmp 0x41cd0f
cmp si, 0x6f
jne 0x41cd09
mov esi, 0xbf
jmp 0x41cd0f

Function at 0x41e400
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x7057f8]
xor edx, edx
cmp eax, edx
jne 0x41e426
xor eax, eax
mov byte [eax + 0x7056f8], al
inc eax
cmp eax, 0x100
jl 0x41e40e
mov dword [0x7057f8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x7056f8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41e4b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41e48a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41e458
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41e530
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41e583
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41e56a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret