joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478840
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x478873
push esi
call fcn.0047d530
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47886c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4788f9
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4788e2
mov eax, dword [esi + 8]
test eax, eax
je 0x478897
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4788de
cmp eax, 2
je 0x4788e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47888a
cmp eax, 3
je 0x4788bd
cmp eax, 1
jne 0x47888a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47888a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47888a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00478930
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x478919
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00478930
add esp, 4
pop esi
ret

Function at 0x4c0470
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c04a8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004be527
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004be4ff
jmp 0x4c04b4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c1b67
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c1ba9
call fcn.004c76d5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c1ba9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c1ba0
xor eax, eax
jmp 0x4c1bb1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c1bb7
pop edi
pop esi
pop ebx
ret 4
Function at 0x4c7c05
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c7c33
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c7c51
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c7b6b
jmp 0x4c7c51
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c7c51
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c7b6b
test edi, edi
mov eax, edi
jne 0x4c7c3b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405e7c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x4229f4], esi
push edi
jne 0x405eb6
mov ecx, 0x4229f0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405e92
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422df0
jl 0x405e8d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405eeb
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4229f0]
xor eax, esi
inc ecx
dec edx
jne 0x405ece
pop edi
pop esi
not eax
ret 0xc

Function at 0x408947
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
add ebx, ebx
call fcn.00408968
sub ebx, ebx
xor dword [eax], esi
add eax, 1
cmp eax, edi
jne fcn.00408947
add ebx, 0xace5b47f
ret
Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x40196f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xffffffff
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x60fa40
push 0x60fa40
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x619d2c], eax
cmp dword [0x619d2c], 0
je 0x4019e2
mov ecx, dword [ebp + 8]
mov dword [0x619d30], ecx
push 0
mov edx, dword [0x619d2c]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x619d2c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4031b6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.0040362f
mov eax, dword [ebp + 8]
push eax
call fcn.00403222
add esp, 4
test eax, eax
jne 0x403214
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0xffffffff
jmp 0x4031ea
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x64
jae 0x403212
cmp dword [ebp - 8], 0xffffffff
jne 0x403212
call fcn.0040362f
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x403210
mov dword [ebp - 8], 0
jmp 0x4031e1
jmp 0x40321b
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x403222
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4032da
lea edx, [ebp - 0x11c]
push edx
call fcn.00404270
add esp, 4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00405150
add esp, 8
test eax, eax
jne 0x40327f
mov dword [ebp - 8], 0
jmp 0x4032d0
cmp dword [ebp - 8], 0xffffffff
jne 0x4032c3
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4032ba
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x11c]
push edx
call fcn.00405150
add esp, 8
test eax, eax
jne 0x4032b8
mov dword [ebp - 8], 0
jmp 0x4032c1
mov dword [ebp - 8], 1
jmp 0x40327f
cmp dword [ebp - 8], 1
jne 0x4032d0
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4033ea
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 1
mov dword [0x61bda0], 8
mov dword [0x61bd9c], 0
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004051d4
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x403485
cmp dword [0x61bd9c], 0
jne 0x403457
call fcn.0040362f
push 0xc8
call fcn.00404170
add esp, 4
cmp dword [0x61bd98], 1
jne 0x403455
cmp dword [ebp + 0x10], 2
jne 0x403455
call fcn.004036b7
jmp 0x403426
cmp dword [0x61bd9c], 1
jne 0x403469
mov dword [ebp - 0xc], 0
jmp 0x40347f
mov edx, dword [0x61bd9c]
sub edx, 0xffffffff
neg edx
sbb edx, edx
and edx, 3
add edx, 0xffffffff
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4034d7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0x403490
mov eax, dword [0x619d2c]
push eax
xor ecx, ecx
mov cl, byte [0x60f8bc]
sub ecx, 1
neg ecx
sbb ecx, ecx
add ecx, 0x106
push ecx
mov edx, dword [0x619d30]
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x61bd6c], eax
push 5
mov eax, dword [0x61bd6c]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404170
add esp, 4
mov edx, dword [0x61bd6c]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x61bd6c], 0
xor eax, eax
pop ebp
ret

Function at 0x40359f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x61bd70], 0
jne 0x403609
push 0
push 0x403544
mov eax, dword [0x619d2c]
push eax
xor ecx, ecx
mov cl, byte [0x60f8bc]
sub ecx, 1
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 0xec
push ecx
mov edx, dword [0x619d30]
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x61bd70], eax
push 5
mov eax, dword [0x61bd70]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x61bd74], 1
push 0x5dc
call fcn.00404170
add esp, 4
jmp 0x40362b
cmp dword [0x61bd74], 0
jne 0x40362b
push 5
mov ecx, dword [0x61bd70]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x61bd74], 1
xor eax, eax
pop ebp
ret
Function at 0x40437d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [eax], 0x94
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4044ab
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4043c2
cmp dword [ebp - 8], 1
je 0x4043dd
cmp dword [ebp - 8], 2
je 0x40444d
jmp 0x4044a5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], edx
mov byte [ebp - 4], 1
jmp 0x4044a9
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
and edx, 0xffff
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
je 0x40440c
cmp dword [ebp - 0xc], 0xa
je 0x404412
cmp dword [ebp - 0xc], 0x5a
je 0x404441
jmp 0x404447
mov byte [ebp - 4], 2
jmp 0x40444b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x7ce
je 0x40442f
cmp dword [ebp - 0x10], 0x8ae
je 0x404435
jmp 0x40443b
mov byte [ebp - 4], 3
jmp 0x40443f
mov byte [ebp - 4], 4
jmp 0x40443f
mov byte [ebp - 4], 3
jmp 0x40444b
mov byte [ebp - 4], 5
jmp 0x40444b
mov byte [ebp - 4], 0
jmp 0x4044a9
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
je 0x40446a
cmp dword [ebp - 0x14], 4
je 0x404470
cmp dword [ebp - 0x14], 5
je 0x404476
jmp 0x40449f
mov byte [ebp - 4], 0
jmp 0x4044a3
mov byte [ebp - 4], 6
jmp 0x4044a3
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
je 0x40448d
cmp dword [ebp - 0x18], 1
je 0x404493
jmp 0x404499
mov byte [ebp - 4], 7
jmp 0x40449d
mov byte [ebp - 4], 8
jmp 0x40449d
mov byte [ebp - 4], 0
jmp 0x4044a3
mov byte [ebp - 4], 0
jmp 0x4044a9
mov byte [ebp - 4], 0
jmp 0x4044af
mov byte [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x408202
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x613020
cmp edx, dword [eax]
je 0x408224
add eax, 8
inc ecx
cmp eax, 0x6130b0
jl 0x408215
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x613020]
jne 0x408352
mov eax, dword [0x61c000]
cmp eax, 1
je 0x40832c
test eax, eax
jne 0x408255
cmp dword [0x612774], 1
je 0x40832c
cmp edx, 0xfc
je 0x408352
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40828c
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404ef0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404e70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4082cf
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404e70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b53c
push edi
call fcn.00409590
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404ef0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404f00
lea eax, [ebp - 0xa0]
push 0x40b51c
push eax
call fcn.00404f00
push dword [esi + 0x613024]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404f00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409cfe
add esp, 0x2c
pop edi
jmp 0x408352
lea eax, [ebp + 8]
lea esi, [esi + 0x613024]
push 0
push eax
push dword [esi]
call fcn.00404e70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x407bd0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x469e7b
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.0045ed4e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407c52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045cc9d
mov eax, dword [eax]
push 0x4831c0
push eax
call fcn.0044fb24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045efd9
test bl, bl
je 0x407c52
push 0x4831c0
lea ecx, [esp + 0xc]
call fcn.0045f369
push 0x486d10
lea ecx, [esp + 0xc]
call fcn.0045f369
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 0x407c8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045efd9
jmp 0x407d59
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 0x407d12
lea edx, [esp + 0x7c]
push 0x486d0c
push edx
call fcn.0044fb24
add esp, 8
test eax, eax
je 0x407d12
lea eax, [esp + 0x7c]
push 0x486d08
push eax
call fcn.0044fb24
add esp, 8
test eax, eax
je 0x407d12
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 0x407ca2
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.0045efd9
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 0x408550
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 0x4085b2
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 0x4085c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x469efb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48d648]
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 0x4086f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408626
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045efd9
xor eax, eax
jmp 0x40876f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045f116
push esi
lea ecx, [esp + 0xc]
call fcn.0045f3a5
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 0x40874d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00408550
test eax, eax
jne 0x40874d
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.00408550
test eax, eax
jne 0x40874d
lea eax, [esp + 0x14]
push 0x486d24
push eax
call fcn.00450b60
mov esi, eax
add esp, 8
test esi, esi
jne 0x40872c
lea ecx, [esp + 0x14]
push 0x486d20
push ecx
call fcn.00450ae0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40872c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40872f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045f0c6
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40863e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045efd9
xor eax, eax
jmp 0x40876f
mov byte [esi], 0
push 0x486d1c
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.0045efd9
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 0x41bd60
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 0x41bdce
cmp si, 0x69
ja 0x41bdce
add esi, 0xffd0
cmp si, 0x11
je 0x41bd9e
push 0x11
call edi
test ax, ax
jge 0x41bd9e
or esi, 0x2000
cmp si, 0x10
je 0x41bdb3
push 0x10
call edi
test ax, ax
jge 0x41bdb3
or esi, 0x4000
cmp si, 0x12
je 0x41bdc8
push 0x12
call edi
test ax, ax
jge 0x41bdc8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41bddb
mov esi, 0xbd
jmp 0x41bd8f
cmp si, 0x6e
jne 0x41bde8
mov esi, 0xbe
jmp 0x41bd8f
cmp si, 0x6f
jne 0x41bd89
mov esi, 0xbf
jmp 0x41bd8f

Function at 0x41d510
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x49dca0]
xor edx, edx
cmp eax, edx
jne 0x41d536
xor eax, eax
mov byte [eax + 0x49dba0], al
inc eax
cmp eax, 0x100
jl 0x41d51e
mov dword [0x49dca0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x49dba0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41d5c7
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 0x41d59a
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 0x41d568
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41d640
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 0x41d693
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 0x41d67a
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