joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c5150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x5c5170
cmp dword [edi + 0x54], 0
jne 0x5c5170
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.005d2d97
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.005c5117
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x5c8b86
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x5c8bbf
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041cc40
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040cfa0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x5ca811
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x5ca854
call fcn.005d2d97
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x5ca854
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5ca86f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.005ca3c8
test ebx, ebx
mov esi, eax
je 0x5ca86d
test edi, edi
je 0x5ca86d
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x5d00e1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x5d0121
push 0x689130
push 4
push eax
call fcn.005ea444
push eax
call fcn.0040b730
add esp, 0x10
jmp 0x5d0133
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x5d01a1
push edi
call fcn.005e61e7
mov edi, dword [eax]
call fcn.005e61e7
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.005e5b0f
add esp, 0x18
mov ebx, eax
call fcn.005e61e7
cmp dword [eax], 0
je 0x5d0181
call fcn.005e61e7
push dword [eax]
call fcn.005c51bc
pop ecx
jmp 0x5d0188
call fcn.005e61e7
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x5d01a1
cmp ebx, esi
jae 0x5d01a1
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x5d01a3
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005e5163
leave
ret
Function at 0x5d1a5c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x5d1aa2
call fcn.005d2d97
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x5d1aa2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x5d1ae5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x5d1ace
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x5d1ace
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x5d1ae2
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x5d8a01
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 0x5d8a2f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5d8a4d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005d896b
jmp 0x5d8a4d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5d8a4d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.005d896b
test edi, edi
mov eax, edi
jne 0x5d8a37
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x6da8d0]
test ecx, ecx
je 0x5d8b10
jmp 0x5d8a00
ret 8

Function at 0x5e5163
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d5db8]
jne 0x5e516d
repz ret
jmp fcn.005f19ac

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x5e6258
call fcn.005e61fa
mov dword [eax], esi
call fcn.005e61e7
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005e5c34
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x5e6234
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5e6287
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005e620d
pop ecx
call fcn.005e61e7
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x5e62ae
test al, 1
je 0x5e62ae
test byte [esp + 0xc], 2
je 0x5e62ae
call fcn.005e61fa
mov dword [eax], 5
call fcn.005e61e7
mov dword [eax], 0xd
jmp 0x5e627e
xor eax, eax
pop esi
ret
Function at 0x5e92ae
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x5e92eb
cmp dword [ebp + 0x14], edi
je 0x5e92eb
cmp ecx, edi
jne 0x5e92f2
call fcn.005e61e7
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.005e5c34
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x5e9306
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x5e9327
cmp ebx, 0xffffffff
je 0x5e9316
push ebx
push edi
push ecx
call fcn.005e5330
add esp, 0xc
cmp esi, edi
je 0x5e92d3
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x5e92d3
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x5e9343
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x5e934a
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x5e943b
test word [esi + 0xc], 0x10c
je 0x5e939e
mov eax, dword [esi + 4]
test eax, eax
je 0x5e939e
jl 0x5e949c
cmp ebx, eax
mov edi, ebx
jb 0x5e936f
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x5e9443
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.005e524b
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x5e9433
cmp ebx, dword [ebp - 0xc]
jb 0x5e940b
cmp dword [ebp - 0xc], 0
je 0x5e93c8
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x5e93bd
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x5e93c4
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x5e93d3
mov eax, SysReAllocString
cmp ebx, eax
ja 0x5e93d3
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x5e946f
push eax
push dword [ebp - 8]
push esi
call fcn.005f8d0f
pop ecx
push eax
call fcn.005ef203
add esp, 0xc
test eax, eax
je 0x5e94ae
cmp eax, 0xffffffff
je 0x5e949c
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x5e9433
push esi
call fcn.005f9138
cmp eax, 0xffffffff
pop ecx
je 0x5e94a0
cmp dword [ebp - 4], 0
je 0x5e946f
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x5e9352
mov eax, dword [ebp + 0x14]
jmp 0x5e92ed
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x5e945a
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.005e5330
add esp, 0xc
call fcn.005e61e7
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x5e92e3
cmp dword [ebp + 0xc], 0xffffffff
je 0x5e9485
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.005e5330
add esp, 0xc
call fcn.005e61e7
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x5e92e3
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x5e92ed
or dword [esi + 0xc], 0x10
jmp 0x5e94a0
Function at 0x5f76b2
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x6d6ba0]
je 0x5f76cd
inc edi
cmp edi, 0x17
jb 0x5f76be
cmp edi, 0x17
jae 0x5f784d
push ebp
push 3
call fcn.005ff76d
cmp eax, 1
pop ecx
je 0x5f7819
push 3
call fcn.005ff76d
test eax, eax
pop ecx
jne 0x5f7701
cmp dword [0x6d6310], 1
je 0x5f7819
cmp ebx, 0xfc
je 0x5f784c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x6db0d0
push ebp
call fcn.005ea444
add esp, 0xc
test eax, eax
je 0x5f7737
push esi
push esi
push esi
push esi
push esi
call fcn.005e5b38
add esp, 0x14
push 0x104
mov esi, 0x6db0e9
push esi
push 0
mov byte [0x6db1ed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5f777b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.005ea444
add esp, 0xc
test eax, eax
je 0x5f777b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.005e5b38
add esp, 0x14
push esi
call fcn.005e51c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5f77c0
push esi
call fcn.005e51c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x6db3e4
push 0x68b8a4
sub ecx, eax
push ecx
push eax
call fcn.005e9cfb
add esp, 0x14
test eax, eax
je 0x5f77c0
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.005e5b38
add esp, 0x14
jmp 0x5f77c2
xor esi, esi
push 0x68b8a0
push ebx
push ebp
call fcn.005edc6f
add esp, 0xc
test eax, eax
je 0x5f77e2
push esi
push esi
push esi
push esi
push esi
call fcn.005e5b38
add esp, 0x14
push dword [edi*8 + 0x6d6ba4]
push ebx
push ebp
call fcn.005edc6f
add esp, 0xc
test eax, eax
je 0x5f7804
push esi
push esi
push esi
push esi
push esi
call fcn.005e5b38
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.005ff5b0
add esp, 0xc
jmp 0x5f784c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x5f784c
cmp ebp, 0xffffffff
je 0x5f784c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x6d6ba4]
push dword [esi]
call fcn.005e51c0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x5ff5b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.005f13e6
xor ebx, ebx
cmp dword [0x6db62c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x5ff686
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5ff766
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x68da78
push edi
call esi
cmp eax, ebx
je 0x5ff766
push eax
call fcn.005f1378
mov dword [esp], 0x68da68
push edi
mov dword [0x6db62c], eax
call esi
push eax
call fcn.005f1378
mov dword [esp], 0x68da54
push edi
mov dword [0x6db630], eax
call esi
push eax
call fcn.005f1378
mov dword [0x6db634], eax
lea eax, [ebp - 0xc]
push eax
call fcn.005efa41
test eax, eax
pop ecx
pop ecx
je 0x5ff654
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005e5b38
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x5ff686
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.005f1378
cmp eax, ebx
pop ecx
mov dword [0x6db63c], eax
je 0x5ff686
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005f1378
pop ecx
mov dword [0x6db638], eax
mov eax, dword [0x6db638]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x5ff70b
cmp dword [0x6db63c], ecx
je 0x5ff70b
push eax
call fcn.005f13ef
push dword [0x6db63c]
mov esi, eax
call fcn.005f13ef
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x5ff70b
cmp edi, ebx
je 0x5ff70b
call esi
cmp eax, ebx
je 0x5ff6d8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5ff6d8
test byte [ebp - 0x18], 1
jne 0x5ff70b
lea eax, [ebp - 0x10]
push eax
call fcn.005efa78
test eax, eax
pop ecx
je 0x5ff6f3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005e5b38
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x5ff702
or dword [ebp + 0x10], 0x200000
jmp 0x5ff746
or dword [ebp + 0x10], 0x40000
jmp 0x5ff746
mov eax, dword [0x6db630]
cmp eax, dword [ebp - 8]
je 0x5ff746
push eax
call fcn.005f13ef
cmp eax, ebx
pop ecx
je 0x5ff746
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5ff746
mov eax, dword [0x6db634]
cmp eax, dword [ebp - 8]
je 0x5ff746
push eax
call fcn.005f13ef
cmp eax, ebx
pop ecx
je 0x5ff746
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6db62c]
call fcn.005f13ef
cmp eax, ebx
pop ecx
je 0x5ff766
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5ff768
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x614216
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.006141ab
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.005e5330
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x614265
cmp dword [ebp - 0x1c], 5
jb 0x61427d
jmp 0x614279
cmp dword [ebp - 0x10], 1
jne 0x61427d
cmp dword [ebp - 0x1c], 4
ja 0x614279
jne 0x61427d
cmp dword [ebp - 0x18], 0
jbe 0x61427d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x68e3f0
call fcn.0061409c
test eax, eax
jge 0x61429e
mov byte [0x6d7f1c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005e5163
add ebp, 0x78
leave
ret
Function at 0x418dc0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49ac1b
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.0048f78e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x418e42
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048d4d0
mov eax, dword [eax]
push 0x533d04
push eax
call fcn.0047f1e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048fa19
test bl, bl
je 0x418e42
push 0x533d04
lea ecx, [esp + 0xc]
call fcn.0048fda9
push 0x533d10
lea ecx, [esp + 0xc]
call fcn.0048fda9
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 0x418e7e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048fa19
jmp 0x418f49
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 0x418f02
lea edx, [esp + 0x7c]
push 0x533d0c
push edx
call fcn.0047f1e4
add esp, 8
test eax, eax
je 0x418f02
lea eax, [esp + 0x7c]
push 0x533d08
push eax
call fcn.0047f1e4
add esp, 8
test eax, eax
je 0x418f02
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 0x418e92
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.0048fa19
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 0x419760
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 0x4197c2
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 0x4197d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49ac9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x573940]
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 0x419908
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x419836
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048fa19
xor eax, eax
jmp 0x41997f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0048fb56
push esi
lea ecx, [esp + 0xc]
call fcn.0048fde5
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 0x41995d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00419760
test eax, eax
jne 0x41995d
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.00419760
test eax, eax
jne 0x41995d
lea eax, [esp + 0x14]
push 0x533d20
push eax
call fcn.00480260
mov esi, eax
add esp, 8
test esi, esi
jne 0x41993c
lea ecx, [esp + 0x14]
push 0x533d1c
push ecx
call fcn.004801e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41993c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41993f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0048fb06
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41984e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048fa19
xor eax, eax
jmp 0x41997f
mov byte [esi], 0
push 0x533d18
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.0048fa19
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 0x42b7c0
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 0x42b82e
cmp si, 0x69
ja 0x42b82e
add esi, 0xffd0
cmp si, 0x11
je 0x42b7fe
push 0x11
call edi
test ax, ax
jge 0x42b7fe
or esi, 0x2000
cmp si, 0x10
je 0x42b813
push 0x10
call edi
test ax, ax
jge 0x42b813
or esi, 0x4000
cmp si, 0x12
je 0x42b828
push 0x12
call edi
test ax, ax
jge 0x42b828
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42b83b
mov esi, 0xbd
jmp 0x42b7ef
cmp si, 0x6e
jne 0x42b848
mov esi, 0xbe
jmp 0x42b7ef
cmp si, 0x6f
jne 0x42b7e9
mov esi, 0xbf
jmp 0x42b7ef

Function at 0x42d180
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5841a0]
xor edx, edx
cmp eax, edx
jne 0x42d1a6
xor eax, eax
mov byte [eax + 0x5840a0], al
inc eax
cmp eax, 0x100
jl 0x42d18e
mov dword [0x5841a0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5840a0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42d237
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 0x42d20a
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 0x42d1d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42d2b0
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 0x42d303
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 0x42d2ea
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