joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471760
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4a5bc4]
cmp dword [eax + 0x30], 0
je 0x47180a
cmp dword [ebx + 0x94], 0
jne 0x471804
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4716f0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x471804
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 0x4717ca
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x471804
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.00419550
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4717d9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47236c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4723a1
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.004047a4
jmp 0x4723ae
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404708
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4734a8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4734e9
mov eax, esi
call fcn.00459440
test al, al
je 0x4734e9
mov eax, dword [ebx + 0x84]
call fcn.0045913c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4734e9
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045913c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x474830
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x474868]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x474846
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x474855
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x474864
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x475b78
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4a4b08]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x475b9e
push 0
mov eax, dword [0x4a4b08]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x481204
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
lea esi, [eax + 0x11]
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
push ebp
call fcn.004811cc
pop ecx
test al, al
je 0x481279
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x240]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0048009c
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 1
jmp 0x48129d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x240]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.0048009c
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xffffffff
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
mov ebx, dword [0x4a4638]
jmp 0x481335
push ebp
call fcn.004811cc
pop ecx
test al, al
je 0x4812d3
push esi
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [ebp - 0x24]
add eax, ebx
mov dword [ebp - 0x1c], eax
add dword [ebp - 0x14], ebx
jmp 0x4812ea
push esi
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [ebp - 0x1c]
sub eax, ebx
mov dword [ebp - 0x24], eax
sub dword [ebp - 0xc], ebx
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, ebx
imul dword [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.0045913c
push eax
call sub.user32.dll_ScrollWindowEx
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00481364
call sub.kernel32.dll_GetTickCount_1
mov edx, eax
sub edx, esi
cmp edx, dword [0x4a4640]
jle 0x481335
mov esi, eax
add ebx, dword [0x4a463c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [eax]
call dword [edx + 0xc]
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x14]
cmp eax, edx
jl 0x4812af
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
xor edx, edx
mov dword [eax + 0x23c], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x485424
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x485437
add esp, 0xfffffff0
call fcn.00403c04
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00403870
mov ecx, edi
mov dl, 1
mov eax, dword [0x485318]
call fcn.0044ff38
mov esi, eax
mov dword [ebx + 0x10], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x485260
push 2
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4a5e28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
test eax, eax
je 0x48548a
mov eax, dword [eax + 0x1c]
mov dword [ebx + 4], eax
jmp 0x485490
mov eax, dword [ebp + 8]
mov dword [ebx + 4], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4854a7
call fcn.00403c5c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4854e4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x4856b6
mov eax, ebx
mov edx, dword [0x47c8c8]
call fcn.00403a2c
test al, al
je 0x4856b6
cmp byte [esi + 0x14], 0
jne 0x4856af
mov edi, ebx
cmp dword [edi + 0x240], 0
jne 0x485539
mov eax, dword [edi + 0x244]
call fcn.0047fa50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0x240]
mov eax, dword [eax + 0xc]
call fcn.0041a2a8
test eax, eax
jne 0x485557
xor eax, eax
mov dword [ebp - 4], eax
mov eax, edi
call fcn.00484190
test eax, eax
je 0x485574
mov eax, edi
call fcn.00484190
mov eax, dword [eax + 8]
call fcn.00419f48
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jle 0x485634
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4855b1
mov edi, dword [esi + 8]
test edi, edi
je 0x4855b1
mov eax, edi
call fcn.0047f28c
cmp eax, dword [ebx + 0x240]
jne 0x4855b1
mov eax, dword [esi + 8]
call fcn.00419f48
cmp eax, dword [ebp - 4]
je 0x485634
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4855e0
cmp dword [esi + 8], 0
je 0x4855e0
mov eax, dword [esi + 8]
call fcn.0047f28c
cmp eax, dword [ebx + 0x240]
jne 0x4855e0
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x485627
mov edi, ebx
mov eax, dword [edi + 0x240]
mov eax, dword [eax + 0xc]
call fcn.0047f618
mov dword [ebp - 8], eax
cmp byte [edi + 0x2c4], 1
jne 0x4855ff
inc dword [ebp - 4]
mov eax, dword [0x4a5e20]
mov edi, dword [eax + 8]
test edi, edi
je 0x485617
mov edx, edi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x485627
mov eax, dword [0x4a5e20]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 8]
call fcn.0047f538
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x14]
jmp 0x48563b
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov dword [ebx + 0x2c0], eax
mov byte [ebx + 0x2c4], 2
cmp word [ebx + 0x30a], 0
je 0x485677
mov eax, dword [ebp - 8]
push eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
setl al
push eax
mov ecx, dword [esi + 8]
mov edx, esi
mov eax, dword [ebx + 0x30c]
call dword [ebx + 0x308]
cmp dword [ebp - 8], 0
je 0x485687
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00484344
cmp dword [ebp - 0xc], 0
je 0x4856a7
cmp dword [ebp - 4], 0xffffffff
jle 0x4856a7
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4856a7
mov eax, dword [ebp - 0xc]
call fcn.004038a0
xor eax, eax
mov dword [ebx + 0x2b0], eax
mov eax, ebx
call fcn.00483ab8
mov eax, dword [0x4a5e28]
push eax
call sub.user32.dll_UnhookWindowsHookEx
mov ebx, dword [ebp - 8]
mov eax, esi
call fcn.004038a0
xor eax, eax
mov dword [0x4a5e20], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48a050
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ecx, edx
test ecx, ecx
js 0x48a066
mov ebx, dword [eax + ecx*4]
dec ecx
push ebx
jns 0x48a05f
mov eax, esp
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov edi, esi
test edi, edi
jl 0x48a0c2
inc edi
mov ebx, dword [ebp - 4]
mov eax, dword [ebx]
call fcn.00424ea4
mov ecx, eax
mov eax, ecx
and eax, 0xff
cdq
idiv esi
add dword [ebp - 8], eax
mov eax, ecx
and eax, 0xff00
shr eax, 8
cdq
idiv esi
add dword [ebp - 0xc], eax
mov eax, ecx
and eax, 0xff0000
shr eax, 0x10
cdq
idiv esi
add dword [ebp - 0x10], eax
add ebx, 4
dec edi
jne 0x48a086
mov cl, byte [ebp - 0x10]
mov dl, byte [ebp - 0xc]
mov al, byte [ebp - 8]
call fcn.0040748c
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x48e984
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x48e98c
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b64
xor eax, eax
push ebp
push 0x48eb9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004046b4
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00408908
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.0040474c
mov eax, dword [ebp - 4]
call fcn.00404974
mov edi, eax
mov eax, dword [0x4a4cb4]
mov dword [eax], edi
test edi, edi
je 0x48eb6c
cmp edi, 0x14
jg 0x48eb6c
lea eax, [ebp - 0xc]
call fcn.004046b4
mov esi, edi
test esi, esi
jle 0x48ea3a
mov ebx, 1
mov eax, dword [ebp - 4]
mov al, byte [eax + ebx - 1]
and eax, 0xff
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x18]
mov eax, 0x48ebb4
call fcn.0040a4ac
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.0040497c
inc ebx
dec esi
jne 0x48ea05
mov eax, dword [ebp - 0xc]
call fcn.00404974
mov ebx, eax
inc ebx
cmp ebx, 0x3c
jg 0x48ea6d
mov eax, 9
call fcn.00403148
lea edx, [ebp - 0x20]
call fcn.00408b70
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.0040497c
inc ebx
cmp ebx, 0x3d
jne 0x48ea4a
mov eax, 0x3b
call fcn.00403148
mov ebx, eax
mov dword [ebp - 0x1c], ebx
fild dword [ebp - 0x1c]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x24]
mov eax, 0x48ebc0
call fcn.0040a4ac
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
call fcn.004049c0
mov dword [ebp - 0x1c], edi
fild dword [ebp - 0x1c]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x28]
mov eax, 0x48ebc0
call fcn.0040a4ac
mov eax, dword [ebp - 0x28]
lea ecx, [ebx + 2]
lea edx, [ebp - 0xc]
call fcn.00404c5c
lea eax, [ebp - 0x10]
call fcn.004046b4
mov ebx, 0x20
push dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0xc]
mov dl, byte [edx + ebx - 1]
call fcn.0040489c
push dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
mov edx, 0x40
sub edx, ebx
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + edx]
call fcn.0040489c
push dword [ebp - 0x30]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404a34
dec ebx
test ebx, ebx
jne 0x48ead6
lea eax, [ebp - 0xc]
call fcn.004046b4
mov ebx, 1
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + ebx - 1]
call fcn.0040489c
mov eax, dword [ebp - 0x38]
xor edx, edx
call fcn.0048e804
add eax, 3
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
lea edx, [ebp - 0x34]
call fcn.00408b70
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
call fcn.0040497c
inc ebx
cmp ebx, 0x41
jne 0x48eb22
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00404708
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48eba3
lea eax, [ebp - 0x38]
mov edx, 7
call fcn.004046d8
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.004046d8
lea eax, [ebp - 4]
call fcn.004046b4
ret
Function at 0x491f3c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49219c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x491f9f
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00491a04
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d0b4
cmp al, 1
jne 0x491f9f
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00491d1c
test al, al
je 0x49212b
cmp dword [ebp - 8], 0
jge 0x491fbd
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00491a04
mov eax, dword [ebp - 0x210]
call fcn.00404974
cmp ebx, eax
jge 0x492007
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00491a04
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4a4d2c]
and eax, 0xff
bt dword [edx], eax
jae 0x492007
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x49201b
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00491f18
cmp ebx, dword [ebp - 8]
je 0x49211d
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x492047
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a9c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4a46ac]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x49210a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a9c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4a46ac]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0045913c
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a9c
and eax, 0x7f
movzx eax, word [eax*2 + 0x4a46ac]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0045913c
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492111
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x49217e
cmp dword [ebp - 8], 0
jge 0x492136
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00491a04
mov eax, dword [ebp - 0x218]
call fcn.00404974
cmp eax, dword [ebp - 8]
jg 0x492170
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00491a04
mov eax, dword [ebp - 0x21c]
call fcn.00404974
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00491f18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4921a3
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004046d8
ret
Function at 0x40b320
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47f5bb
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.00473ef7
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b3a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00471c6d
mov eax, dword [eax]
push 0x6191c0
push eax
call fcn.00463e74
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00474182
test bl, bl
je 0x40b3a2
push 0x6191c0
lea ecx, [esp + 0xc]
call fcn.00474512
push 0x61cd64
lea ecx, [esp + 0xc]
call fcn.00474512
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 0x40b3de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00474182
jmp 0x40b4a9
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 0x40b462
lea edx, [esp + 0x7c]
push 0x61cd60
push edx
call fcn.00463e74
add esp, 8
test eax, eax
je 0x40b462
lea eax, [esp + 0x7c]
push 0x61cd5c
push eax
call fcn.00463e74
add esp, 8
test eax, eax
je 0x40b462
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 0x40b3f2
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.00474182
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 0x40bca0
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 0x40bd02
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 0x40bd10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47f63b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x628c50]
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 0x40be48
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40bd76
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00474182
xor eax, eax
jmp 0x40bebf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004742bf
push esi
lea ecx, [esp + 0xc]
call fcn.0047454e
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 0x40be9d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040bca0
test eax, eax
jne 0x40be9d
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.0040bca0
test eax, eax
jne 0x40be9d
lea eax, [esp + 0x14]
push 0x61cd78
push eax
call fcn.00464eb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40be7c
lea ecx, [esp + 0x14]
push 0x61cd74
push ecx
call fcn.00464e30
mov esi, eax
add esp, 8
test esi, esi
jne 0x40be7c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40be7f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047426f
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40bd8e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00474182
xor eax, eax
jmp 0x40bebf
mov byte [esi], 0
push 0x61cd70
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.00474182
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 0x41e570
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 0x41e5de
cmp si, 0x69
ja 0x41e5de
add esi, 0xffd0
cmp si, 0x11
je 0x41e5ae
push 0x11
call edi
test ax, ax
jge 0x41e5ae
or esi, 0x2000
cmp si, 0x10
je 0x41e5c3
push 0x10
call edi
test ax, ax
jge 0x41e5c3
or esi, 0x4000
cmp si, 0x12
je 0x41e5d8
push 0x12
call edi
test ax, ax
jge 0x41e5d8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41e5eb
mov esi, 0xbd
jmp 0x41e59f
cmp si, 0x6e
jne 0x41e5f8
mov esi, 0xbe
jmp 0x41e59f
cmp si, 0x6f
jne 0x41e599
mov esi, 0xbf
jmp 0x41e59f

Function at 0x41fd20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6392d8]
xor edx, edx
cmp eax, edx
jne 0x41fd46
xor eax, eax
mov byte [eax + 0x6391d8], al
inc eax
cmp eax, 0x100
jl 0x41fd2e
mov dword [0x6392d8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6391d8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41fdd7
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 0x41fdaa
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 0x41fd78
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41fde0
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 0x41fe33
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 0x41fe1a
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