joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0304
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
push 0x4a04b0
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4a04a8
xor eax, eax
push ebp
push 0x4a04a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 6], 0
push 0x4001
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
push 0x4a04bc
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
test esi, esi
jne 0x4a037c
push 0x4009
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
lea eax, [ebp - 6]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
push 0x4000
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
push 0x4a04bc
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
test edi, edi
jne 0x4a03bd
push 0x4008
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
lea eax, [ebp - 6]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
push 0x8000
push 0x10
push 0x10
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
mov edx, ebx
mov eax, esi
call fcn.0042d9d0
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
mov edx, ebx
mov eax, edi
call fcn.0042d9d0
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x10
push 0x10
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
mov edx, ebx
mov eax, esi
call fcn.0042d9d0
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
mov edx, ebx
mov eax, edi
call fcn.0042d9d0
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
mov byte [0x4bd780], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a04a8
cmp dword [ebp - 4], 0
je 0x4a04a0
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a04c0
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov ebx, eax
call fcn.0049fc6c
test al, al
je 0x4a04ed
cmp dword [0x4bee68], 0x40047
jl 0x4a04ed
cmp byte [0x4bd780], 0
jne 0x4a04ed
call fcn.004a0304
mov esi, ebx
and esi, 0x7f
mov eax, dword [esi*4 + 0x4bd784]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x4a0550
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x4a0545
mov word [esp], 0
mov eax, dword [esi*4 + 0x4bd784]
or eax, 0x4000
or eax, 8
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x4a82c8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4a82d0
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a841d
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x4a8326
lea edx, [ebp - 4]
mov eax, dword [0x4bd944]
call fcn.00406678
cmp ebx, 1
jbe 0x4a835d
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x4a8434
call fcn.00409e30
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.004049c4
jmp 0x4a835d
lea eax, [ebp - 4]
mov edx, 0x4a8444
call fcn.00404794
cmp ebx, 1
jbe 0x4a835d
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x4a8454
call fcn.00409e30
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.004049c4
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 4]
call fcn.00404a08
mov eax, dword [ebp - 0x18]
call fcn.00404bbc
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4a83e5
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
jne 0x4a8395
mov bl, 1
jmp 0x4a83f5
push 0
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.0040c478
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [0x4bdc9c]
call fcn.00406678
mov eax, dword [ebp - 0x24]
mov ecx, 1
pop edx
call fcn.004a1380
mov eax, dword [ebp - 0x1c]
mov cx, word [0x4a8458]
xor edx, edx
call fcn.00432ca0
mov bl, 2
jmp 0x4a83f5
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
call fcn.00404750
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8424
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00404720
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404720
ret

Function at 0x4a8a94
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov ebx, ecx
mov esi, eax
test edx, 0x40000000
jne 0x4a8ab6
mov edx, ebx
mov eax, dword [0x4bdc98]
call fcn.00406678
jmp 0x4a8aed
push 0x408
push 0x160
lea eax, [esp + 8]
push eax
push 0
push esi
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4a8ae6
mov eax, ebx
lea edx, [esp + 0x110]
mov ecx, 0x50
call fcn.0040496c
jmp 0x4a8aed
mov eax, ebx
call fcn.004046fc
add esp, 0x160
pop esi
pop ebx
ret
Function at 0x4a9474
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x158], ebx
mov ebx, ecx
test ebx, ebx
js 0x4a94a7
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4a94a0
mov edx, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bac
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 8]
mov edx, dword [0x4010e4]
call fcn.00405338
xor eax, eax
push ebp
push 0x4a9635
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x4a95fd
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 4]
push 0x4a965c
push dword [esi]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00404a7c
mov eax, dword [ebp - 0x158]
call fcn.00404bbc
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a95f1
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x4a95d6
test al, 2
jne 0x4a95d6
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 0x4a965c
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.0040496c
push dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.00404a7c
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x10]
call fcn.0049fdfc
call fcn.004171ac
test al, al
je 0x4a9594
or edi, 0xffffffff
jmp 0x4a95a3
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0049ffa4
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.0049fd60
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.0040496c
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov ecx, edi
mov edi, dword [eax]
call dword [edi + 0x3c]
lea eax, [ebp - 0x154]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4a9529
push ebx
call sub.kernel32.dll_FindClose_1
add esi, 4
dec dword [ebp - 0x14]
jne 0x4a94ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a963c
lea eax, [ebp - 0x164]
mov edx, 4
call fcn.00404720
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x4010e4]
call fcn.004051f8
lea eax, [ebp - 4]
call fcn.004046fc
ret
Function at 0x4aa7a8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4aa83f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x700f0037
mov eax, dword [0x4bdbf0]
cmp dword [eax + 4], 0x60000
jl 0x4aa7e0
or dword [ebp - 4], 0x400000
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004aa8d4
mov eax, dword [ebp - 8]
call fcn.004a864c
test al, al
je 0x4aa810
mov eax, dword [ebp - 8]
call fcn.00404bbc
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x4aa810
and dword [ebp - 4], 0xfffbffff
lea eax, [ebp - 4]
push eax
lea eax, [ebx + 0xc]
push eax
push 1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x418]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa846
lea eax, [ebp - 8]
call fcn.004046fc
ret

Function at 0x4ae2e4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00404bbc
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 3
je 0x4ae325
dec eax
je 0x4ae307
sub eax, 2
je 0x4ae325
jmp 0x4ae336
mov al, byte [ebx]
call fcn.004a1830
test al, al
je 0x4ae336
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xffa1
call fcn.00403ae4
jmp 0x4ae336
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xffa1
call fcn.00403ae4
pop esi
pop ebx
pop ebp
ret

Function at 0x4ae33c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ae3eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3f8], 0
jne 0x4ae38a
push 0x465
mov eax, dword [ebp - 4]
call fcn.004629c0
mov ecx, eax
mov dl, 1
mov eax, dword [0x4aaa70]
call fcn.004aaadc
mov edx, dword [ebp - 4]
mov dword [edx + 0x3f8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3f8]
call fcn.004aafa4
lea eax, [ebp - 8]
mov edx, 0x4ae400
call fcn.00404794
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x4ae3d5
test bl, 1
je 0x4ae3ce
lea eax, [ebp - 8]
call fcn.00404c14
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.004ae2e4
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x4ae3b2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae3f2
lea eax, [ebp - 8]
call fcn.004046fc
ret
Function at 0x4aef8c
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404bac
xor eax, eax
push ebp
push 0x4af0aa
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4af07d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
or eax, 1
push eax
call sub.kernel32.dll_SetErrorMode
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 4]
call fcn.00404bbc
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4af05a
test byte [ebp - 0x14c], 0x10
jne 0x4af03d
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.0040496c
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.00408af8
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4af000
push ebx
call sub.kernel32.dll_FindClose_1
mov byte [ebp - 5], 1
jmp 0x4af066
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af084
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4b3c28
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
mov ebx, eax
mov al, byte [ebx + 4]
sub al, 1
jb 0x4b3c37
je 0x4b3c3f
jmp 0x4b3c67
mov eax, dword [ebx + 8]
mov dword [esp], eax
jmp 0x4b3c6c
cmp dword [ebx + 8], 0
jne 0x4b3c5f
lea eax, [ebx + 8]
push eax
xor eax, eax
mov al, byte [ebx + 0xc]
push eax
mov eax, dword [0x4bdc08]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebx + 8]
mov dword [esp], eax
jmp 0x4b3c6c
xor eax, eax
mov dword [esp], eax
mov eax, dword [esp]
pop edx
pop ebx
ret
Function at 0x40906d
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov edx, dword [0x5266b0]
mov eax, dword [0x5266ac]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0x33
call 0x40909c
add dword [esp], 5
retf

Function at 0x416b96
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x416bdb
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x416be1
add eax, 4
pop esi
dec esi
push esi
jne 0x416bc3
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8
Function at 0x41796f
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00417b1f
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x417a6d
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x417a10
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x417a53
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x417a27
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x417a42
test al, 0x40
je 0x417a39
mov ecx, dword [edi + 0x20]
jmp 0x417a40
test al, 0x80
je 0x417a53
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x417a53
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4179df
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x42ab00
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b3dbb
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.004a8df3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42ab82
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a6cd9
mov eax, dword [eax]
push 0x50ccf8
push eax
call fcn.00499404
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004a907e
test bl, bl
je 0x42ab82
push 0x50ccf8
lea ecx, [esp + 0xc]
call fcn.004a940e
push 0x50cd04
lea ecx, [esp + 0xc]
call fcn.004a940e
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 0x42abbe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004a907e
jmp 0x42ac89
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 0x42ac42
lea edx, [esp + 0x7c]
push 0x50cd00
push edx
call fcn.00499404
add esp, 8
test eax, eax
je 0x42ac42
lea eax, [esp + 0x7c]
push 0x50ccfc
push eax
call fcn.00499404
add esp, 8
test eax, eax
je 0x42ac42
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 0x42abd2
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.004a907e
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 0x42b490
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 0x42b4f2
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 0x42b500
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b3e3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x522528]
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 0x42b638
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x42b566
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a907e
xor eax, eax
jmp 0x42b6af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004a91bb
push esi
lea ecx, [esp + 0xc]
call fcn.004a944a
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 0x42b68d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0042b490
test eax, eax
jne 0x42b68d
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 closesocket
mov ecx, edi
call fcn.0042b490
test eax, eax
jne 0x42b68d
lea eax, [esp + 0x14]
push 0x50cd14
push eax
call fcn.0049a480
mov esi, eax
add esp, 8
test esi, esi
jne 0x42b66c
lea ecx, [esp + 0x14]
push 0x50cd10
push ecx
call fcn.0049a400
mov esi, eax
add esp, 8
test esi, esi
jne 0x42b66c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x42b66f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004a916b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42b57e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004a907e
xor eax, eax
jmp 0x42b6af
mov byte [esi], 0
push 0x50cd0c
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.004a907e
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 0x43aa30
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 0x43aa9e
cmp si, 0x69
ja 0x43aa9e
add esi, 0xffd0
cmp si, 0x11
je 0x43aa6e
push 0x11
call edi
test ax, ax
jge 0x43aa6e
or esi, 0x2000
cmp si, 0x10
je 0x43aa83
push 0x10
call edi
test ax, ax
jge 0x43aa83
or esi, 0x4000
cmp si, 0x12
je 0x43aa98
push 0x12
call edi
test ax, ax
jge 0x43aa98
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x43aaab
mov esi, 0xbd
jmp 0x43aa5f
cmp si, 0x6e
jne 0x43aab8
mov esi, 0xbe
jmp 0x43aa5f
cmp si, 0x6f
jne 0x43aa59
mov esi, 0xbf
jmp 0x43aa5f

Function at 0x43c5c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x532ee0]
xor edx, edx
cmp eax, edx
jne 0x43c5e6
xor eax, eax
mov byte [eax + 0x532de0], al
inc eax
cmp eax, 0x100
jl 0x43c5ce
mov dword [0x532ee0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x532de0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x43c677
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 0x43c64a
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 0x43c618
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x43c6f0
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 0x43c743
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 0x43c72a
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