joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4592bc
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x4592d8
cmp dword [esi + 4], 0
je 0x459305
test byte [ebx + 0x55], 1
jne 0x4592f7
mov eax, ebx
call fcn.00457678
test eax, eax
jne 0x4592f7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x459415
mov edx, esi
mov eax, ebx
call fcn.00458cc4
jmp 0x459415
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45940e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0045b3f4
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00454990
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004592bc
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0045b3f4
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459415
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4607d4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x58fca4]
cmp byte [eax + 0xc], 0
je 0x460941
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46093a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x593580], 0
jne 0x460828
push 0x460948
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x460950
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x593580], eax
cmp dword [0x58a914], 0
jne 0x460923
push 0x460960
call sub.kernel32.dll_LoadLibraryA
mov dword [0x58a914], eax
cmp dword [0x58a914], 0
je 0x460923
push 0x46096c
mov eax, dword [0x58a914]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x593584], eax
push 0x46097c
mov eax, dword [0x58a914]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x593588], eax
push 0x460990
mov eax, dword [0x58a914]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x59358c], eax
push 0x4609a8
mov eax, dword [0x58a914]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x593590], eax
push 0x4609c0
mov eax, dword [0x58a914]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x593594], eax
push 0x4609d4
mov eax, dword [0x58a914]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x593598], eax
push 0x4609ec
mov eax, dword [0x58a914]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x59359c], eax
push 0x460a04
mov eax, dword [0x58a914]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5935a0], eax
push 0x460a20
mov eax, dword [0x58a914]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5935a4], eax
push 0x460a2c
mov eax, dword [0x58a914]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5935a8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460941
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x466b94
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x466be8]
test si, 4
je 0x466ba9
or bl, 1
test si, 8
je 0x466bb3
or bl, 4
test si, 1
je 0x466bbd
or bl, 8
test si, 2
je 0x466bc7
or bl, 0x10
test si, 0x10
je 0x466bd1
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x466be0
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x466bec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x466c28]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x466c06
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x466c15
or bl, 4
test esi, 0x20000000
je 0x466c20
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x46e388
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46e39a
add esp, 0xfffffff0
call fcn.00404d54
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422524
mov eax, dword [0x58f558]
mov dword [eax + 4], ebx
mov dword [eax], 0x46e72c
mov eax, dword [0x58f574]
mov dword [eax + 4], ebx
mov dword [eax], 0x46e738
mov eax, ebx
call fcn.0046e744
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x418ccc]
call fcn.00404a00
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x418ccc]
call fcn.00404a00
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x418ccc]
call fcn.00404a00
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x418ccc]
call fcn.00404a00
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x418ccc]
call fcn.00404a00
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x46a1c0
push eax
push 0
push 0
mov eax, dword [0x58f828]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x428bbc]
call fcn.0042a4b0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x428bbc]
call fcn.0042a4b0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x428bbc]
call fcn.0042a4b0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046ebbc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46ea8c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46ea8c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46ea8c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46e4d7
call fcn.00404dac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46e870
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46ea1b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46e9fc
mov dl, 1
mov eax, dword [0x41927c]
call fcn.00404a00
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00405934
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46e9eb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00460b30
test al, al
je 0x46e9de
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x46ea2c
lea eax, [ebp - 0x254]
call fcn.0040bb90
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46e9de
xor eax, eax
push ebp
push 0x46e9d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x46ea64
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46e9c0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405ba4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46e9c0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00405ba4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e9de
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46e8e1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041dc04
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ea22
lea eax, [ebp - 0x260]
call fcn.00405934
ret

Function at 0x46f394
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x5935b8]
cmp byte [eax + 0xad], 0
jne 0x46f405
cmp dword [0x5935d0], 0
jne 0x46f3c6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46f350
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5935d0], eax
cmp dword [0x5935cc], 0
jne 0x46f3e1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x5935cc], eax
cmp dword [0x5935d4], 0
jne 0x46f405
push esp
push 0
push 0
push 0x46f2f4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5935d4], eax
pop edx
ret
Function at 0x46f634
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46f64b
add esp, 0xfffffff0
call fcn.00404d54
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422524
mov eax, dword [0x58f7f0]
cmp word [eax + 2], 0
jne 0x46f673
mov eax, dword [0x58f7f0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047118c
mov eax, dword [0x58f990]
cmp word [eax + 2], 0
jne 0x46f68d
mov eax, dword [0x58f990]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00471398
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x418ccc]
call fcn.00404a00
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x418ccc]
call fcn.00404a00
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x418ccc]
call fcn.00404a00
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x42976c]
call fcn.0043222c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x46f844
mov eax, dword [0x58f640]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00432600
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x471a68
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x58f640]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040feb0
test eax, eax
je 0x46f794
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040b4e0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040fee4
test eax, eax
je 0x46f7a8
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00405ba4
mov byte [ebx + 0xd4], 0
push ebx
push 0x470cd4
call fcn.004236a0
mov dword [ebx + 0xc8], eax
mov eax, dword [0x58f36c]
cmp byte [eax], 0
jne 0x46f7f9
mov eax, ebx
call fcn.0046f988
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00471c44
mov eax, ebx
call fcn.004727a4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46f839
call fcn.00404dac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46fc08
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x5935b8]
cmp dword [eax + 0x30], 0
je 0x46fcb2
cmp dword [ebx + 0x94], 0
jne 0x46fcac
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46fb98
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46fcac
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46fc72
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46fcac
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041b260
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46fc81
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4709cc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x470a01
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00405a24
jmp 0x470a0e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405988
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x471e28
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x471e96
mov eax, esi
call fcn.0045b794
test al, al
je 0x471e96
mov eax, dword [ebx + 0x84]
call fcn.0045b3f4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x471e96
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x471e8a
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045b3f4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004535f0
jmp 0x471e96
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00471c64
pop esi
pop ebx
ret
Function at 0x477240
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4773b1
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47738c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00405b1c
lea eax, [ebp - 0x118]
mov edx, 0x4773c8
call fcn.00405c00
mov eax, dword [ebp - 0x118]
call fcn.00405df8
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4772fe
lea eax, [ebp - 0x111]
call fcn.0040b4a4
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00405a24
jmp 0x477305
mov eax, esi
call fcn.00405934
cmp bl, 0x61
jae 0x477326
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040fd7c
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00405988
jmp 0x477340
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040fce8
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00405988
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x4773d4
call fcn.0040bc10
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00405988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477393
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x47bf28
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x47bf52
cmp dword [ebx + 0x64], 0
jne 0x47bf52
cmp dword [ebx + 0x6c], 0
jne 0x47bf52
mov edi, esi
jmp 0x47bfd9
cmp edi, 0xffffffff
jne 0x47bf5a
dec edi
jmp 0x47bfd9
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x47bfd9
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0047b084
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x47bfa7
mov cx, word [esp]
sub cx, si
jmp 0x47bfa9
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x47bf90
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x47bfcf
mov cx, word [esp]
sub cx, si
jmp 0x47bfd1
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x47bfb8
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x47c036
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.0047bcc4
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x47c021
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x47c036
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x47bf32
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4815e4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
mov ecx, eax
mov eax, ecx
mov ebx, 0xfa
cdq
idiv ebx
mov esi, edx
add esi, 6
test esi, esi
jge 0x481602
add esi, 0x100
mov eax, ecx
mov ecx, 0xfa
cdq
idiv ecx
mov edi, eax
test edi, edi
jge 0x481618
add edi, 0x100
xor ecx, ecx
mov eax, 0x59360c
mov byte [eax], cl
inc ecx
inc eax
cmp ecx, 0x100
jne 0x48161f
xor ecx, ecx
mov eax, 0x59370c
mov byte [eax], cl
inc ecx
inc eax
cmp ecx, 0x100
jne 0x481632
mov ecx, 1
mov eax, ecx
imul esi
add eax, edi
mov ebx, 0xfe
cdq
idiv ebx
mov eax, edx
inc eax
movzx edx, byte [eax + 0x59360c]
movzx ebx, byte [eax + 0x59360d]
mov byte [eax + 0x59360c], bl
mov byte [eax + 0x59360d], dl
inc ecx
cmp ecx, 0x2711
jne 0x481643
mov ecx, 1
mov eax, 0x59360d
movzx edx, byte [eax]
mov byte [edx + 0x59370c], cl
inc ecx
inc eax
cmp ecx, 0x100
jne 0x481681
pop edi
pop esi
pop ebx
ret
Function at 0x4819ac
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405de8
mov eax, dword [ebp - 8]
call fcn.00405de8
mov eax, dword [ebp - 0xc]
call fcn.00405de8
xor eax, eax
push ebp
push 0x481a2c
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
mov eax, dword [ebp - 0xc]
call fcn.00405df8
push eax
mov eax, dword [ebp - 8]
call fcn.00405df8
push eax
mov eax, dword [ebp - 4]
call fcn.00405df8
push eax
push 0x481a3c
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481a33
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405958
ret

Function at 0x481a44
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
xor ebx, ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405de8
mov eax, dword [ebp - 8]
call fcn.00405de8
mov eax, dword [ebp - 0xc]
call fcn.00405de8
xor eax, eax
push ebp
push 0x481b53
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x44
call fcn.00408b24
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], 1
mov word [ebp - 0x34], 5
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405df8
push eax
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 4]
push 0x481b6c
push dword [ebp - 8]
lea eax, [ebp - 0x68]
mov edx, 3
call fcn.00405cb8
mov eax, dword [ebp - 0x68]
call fcn.00405df8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x481aed
xor ebx, ebx
jmp 0x481b30
cmp byte [ebp + 8], 0
je 0x481b1c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [0x58f944]
mov eax, dword [eax]
call fcn.00470e84
push 0x32
call sub.kernel32.dll_Sleep_2
cmp dword [ebp - 0x10], 0x103
je 0x481af3
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481b5a
lea eax, [ebp - 0x68]
call fcn.00405934
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405958
ret
Function at 0x481c24
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd20
xor eax, eax
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2dc], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x481dbc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x481dd0
call fcn.004059cc
lea edx, [ebp - 0x2dc]
mov eax, dword [0x58f944]
mov eax, dword [eax]
call fcn.00471780
mov eax, dword [ebp - 0x2dc]
lea edx, [ebp - 0x2d8]
call fcn.0040b144
mov edx, dword [ebp - 0x2d8]
lea eax, [ebp - 8]
mov ecx, 0x481de0
call fcn.00405c44
mov eax, dword [ebp - 8]
call fcn.0040adc0
test al, al
je 0x481cf2
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x2d4]
call fcn.004037b8
lea eax, [ebp - 0x2d4]
call fcn.0040353c
call fcn.00402ef4
lea edx, [ebp - 4]
lea eax, [ebp - 0x2d4]
call fcn.00403dc4
lea eax, [ebp - 0x2d4]
call fcn.00403e88
call fcn.00402ef4
lea eax, [ebp - 0x2d4]
call fcn.00403880
call fcn.00402ef4
jmp 0x481d4e
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
push 0x481dec
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
jbe 0x481d21
lea eax, [ebp - 4]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.00405ba4
jmp 0x481d4e
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
push 0x481df4
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
jbe 0x481d4e
lea eax, [ebp - 4]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.00405ba4
call fcn.00403364
mov eax, dword [ebp - 4]
call fcn.00481b70
test al, al
jne 0x481d91
mov eax, 0x481dd0
call fcn.00481b70
test al, al
jne 0x481d91
lea eax, [ebp - 0x2e0]
call fcn.0040b44c
mov eax, dword [ebp - 0x2e0]
call fcn.00481b70
test al, al
jne 0x481d91
mov eax, 0x481e00
call fcn.00444868
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481dc3
lea eax, [ebp - 0x2e0]
mov edx, 3
call fcn.00405958
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405958
ret