joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b171e
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
call fcn.005b1f4b
mov esi, eax
test esi, esi
jne 0x5b1735
call fcn.005a8505
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x10]
and dword [esi + 0x30], 0
or eax, 4
push eax
mov ecx, esi
call fcn.005b15b9
test eax, eax
jne 0x5b175c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x5b1779
push dword [ebp + 0xc]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x14], 4
jne 0x5b1777
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
pop esi
pop ebp
ret 0x14

Function at 0x5b271e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
mov dword [esp + 4], ecx
call fcn.005c0c6b
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x5b2734
xor eax, eax
jmp 0x5b277d
push edi
push 5
push dword [esp + 0x14]
push esi
call dword [0x652ba8]
mov edi, eax
test edi, edi
je 0x5b277c
push ebx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
push eax
push ebp
call fcn.005b2378
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop ebp
inc eax
pop ebx
pop edi
pop esi
pop ecx
ret 4
Function at 0x5b3474
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x22c
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.0057e460
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [0x652c58]
mov eax, dword [edi + 4]
cmp eax, dword [0x60ecc8]
je 0x5b357b
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x5b34e4
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x5b34eb
cmp ebx, ebx
jne 0x5b34eb
xor eax, eax
jmp 0x5b357e
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x5b34f8
mov byte [esi + 0x20], bl
jmp 0x5b350c
push edi
call dword [0x652bd0]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00578e32
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00578e32
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.00578e32
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x5b3567
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x5b357b
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x5b64da
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.005ac511
test eax, eax
jne 0x5b66ca
mov edi, dword [edi + 4]
push ebx
mov ecx, esi
call fcn.00423a70
test byte [esi + 0x7c], 0x20
mov dword [ebp - 0x10], eax
mov ebx, 0x201
jne 0x5b651e
cmp edi, ebx
je 0x5b651e
cmp edi, 0x202
jne 0x5b6677
cmp edi, 0x200
jb 0x5b652e
cmp edi, 0x209
jbe 0x5b6546
cmp edi, 0xa0
jb 0x5b6677
cmp edi, 0xa9
ja 0x5b6677
call fcn.005c0c91
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x1c]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x30
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0057e460
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp - 0x18]
mov dword [ebp - 0x48], 0x28
call dword [eax + 0x6c]
cmp dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 4], eax
je 0x5b65a4
push dword [ebp - 0x24]
call fcn.0057aa32
pop ecx
cmp edi, ebx
jne 0x5b65b7
test byte [ebp - 0x41], 0x80
je 0x5b65b7
mov dword [ebp - 8], 1
jmp 0x5b65d5
and dword [ebp - 8], 0
cmp edi, ebx
je 0x5b65d5
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x5b65d5
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x78]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x5b6641
cmp dword [ebp - 8], 0
jne 0x5b6641
cmp edi, 0x202
jne 0x5b6601
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xc8
push 0xe001
jmp 0x5b6629
test byte [esi + 0x78], 8
jne 0x5b6632
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x5b6632
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx + 0x78]
je 0x5b666e
push 0x12c
push 0xe000
mov ecx, esi
call fcn.005b5b8b
jmp 0x5b666e
push dword [ebp - 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x160]
jmp 0x5b666e
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x5b6654
cmp dword [ebp - 8], 0
je 0x5b666e
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xe001
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x78], eax
mov ecx, esi
call fcn.005ae623
test eax, eax
pop ebx
je 0x5b6689
cmp dword [eax + 0x64], 0
jne 0x5b66cf
cmp dword [ebp - 0x10], 0
je 0x5b66b1
mov edi, dword [ebp - 0x10]
push dword [ebp + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x100]
test eax, eax
jne 0x5b66ca
mov ecx, edi
call fcn.005ae5e4
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x5b668f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5b66cf
push dword [ebp + 8]
mov ecx, esi
call fcn.005acfb1
jmp 0x5b66d1
xor eax, eax
inc eax
jmp 0x5b66d1
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x5bf068
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x5bf07e
mov edi, dword [esi + 0xc]
jmp 0x5bf0a8
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [0x652ba8]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x5bf0a8
call fcn.005b3af7
call fcn.005c0c6b
cmp dword [eax + 0x2038], 0
je 0x5bf0c0
push edi
mov ecx, ebx
call fcn.005be437
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.005bef87
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x5bf0de
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x58], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x5bf0ea
mov edi, eax
mov dword [ebx + 0x58], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5c2118
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x5c214d
cmp edi, dword [esi + 0xc]
jge 0x5c214d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5c214d
cmp edi, dword [eax + 8]
jge 0x5c214d
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x5c214f
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x5c2253
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x5c2287
jmp fcn.005a8505
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret
Function at 0x5c22f8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x5c23f1
cmp eax, dword [edi + 0xc]
jge 0x5c23f1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x5c2349
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x5c23da
cmp dword [ebp + 0xc], ebx
je 0x5c23da
jmp 0x5c2373
push 0x10
call fcn.005c1fe4
cmp eax, ebx
je 0x5c235f
mov ecx, eax
call fcn.005c224a
mov esi, eax
jmp 0x5c2361
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x5c238a
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x5c239a
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x5c23ac
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.005a8505
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0057e460
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x5c23ec
cmp ecx, dword [esi + 8]
jge 0x5c23ec
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x5c23f2
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x454d7f
Capabilities:
Check for software breakpoints

Disassembly:
push eax
call 0x454d85
pop ebx
sub ebx, 0x1a2
mov ecx, 0x16be3
sub ebx, ecx
mov esi, ebx
sub ebx, 0x3d000
mov edi, ebx
sub ebx, 0x1000
push edi
push ecx
push esi
call fcn.00454c34
add esp, 0xc
mov ebp, dword [ebx + 0xc0]
lea ebp, [ebx + ebp]
dec ebp
mov cl, byte [ebp]
cmp cl, 0xcc
je 0x454db7
sub ebp, 9
mov edx, ebx
sub edx, dword [ebx + 0x74]
add dword [ebp], edx
add ebp, 6
add dword [ebp], edx
lea edx, [eax - 4]
sub edx, dword [edx]
mov esi, ebx
add esi, dword [edx + 0x10c]
mov edi, dword [edx + 0x104]
mov ecx, 0x21172
call fcn.00454d55
mov esi, dword [edx + 0x80]
push edx
add esi, ebx
mov eax, dword [esi + 0xc]
or eax, eax
je 0x454e41
add eax, ebx
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebp, eax
mov ecx, dword [esi]
add ecx, ebx
mov edi, dword [esi + 0x10]
add edi, ebx
mov eax, dword [ecx]
or eax, eax
je 0x454e3c
pushal
test eax, 0x80000000
je 0x454e26
and eax, 0x7fffffff
jmp 0x454e2a
lea eax, [ebx + eax + 2]
push eax
push ebp
call sub.kernel32.dll_GetProcAddress
mov dword [edi], eax
popal
add edi, 4
add ecx, 4
jmp 0x454e11
add esi, 0x14
jmp 0x454df7
pop edx
mov ebp, ebx
sub ebp, dword [edx + 0x34]
mov esi, dword [edx + 0xa0]
add esi, ebx
cmp esi, ebx
je 0x454e8b
push edx
mov eax, dword [esi + 4]
or eax, eax
je 0x454e8a
mov ecx, dword [esi]
add ecx, ebx
add esi, 8
sub eax, 8
shr eax, 1
mov edx, esi
lea edi, [eax + esi]
lea esi, [eax + edi]
xor eax, eax
add al, byte [edx]
adc ah, byte [edi]
test ah, 0x30
je 0x454e82
push eax
and ah, 0xf
add dword [ecx + eax], ebp
pop eax
inc edx
inc edi
cmp edi, esi
jb 0x454e71
jmp 0x454e54
pop edx
pop eax
cmp eax, 0xd0dec0de
je 0x454e98
add ebx, dword [edx + 0x28]
jmp ebx
ret 0xc

Function at 0x401119
Capabilities:
Encode data using xor

Disassembly:
push 1
pop ecx
cmp dword [esp + 8], ecx
jl 0x401139
mov eax, dword [esp + 4]
mov edx, ecx
and edx, 3
mov dl, byte [esp + edx + 0xc]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [esp + 8]
jle 0x401126
ret
Function at 0x403354
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46e00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4033ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4033cc
xor eax, eax
push ebp
push 0x4033c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403408
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4033cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46e00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46e00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4040d4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x471048], 0
je 0x404135
cmp word [0x47121c], 0xd7b2
jne 0x4040fd
cmp dword [0x471224], 0
jbe 0x4040fd
mov eax, 0x471218
call dword [0x471234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46e054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40415c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46e01c], 0
jne 0x404151
push 0
push 0x46e074
push 0x46e054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40b194
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b1cd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404340
jmp 0x40b1d6
mov eax, ebx
mov edx, esi
call fcn.004042a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b1e0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b201
mov al, byte [esp]
jmp 0x40b203
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b888
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b700
mov eax, dword [0x470400]
cmp byte [eax], 0
je 0x40b8f0
mov eax, dword [0x470250]
call fcn.00402c70
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408908
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b938
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b926
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47020c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x471714]
call fcn.004059b4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c634
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c698
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004044b8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408588
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c69f
lea eax, [ebp - 0xc]
call fcn.00404250
ret
Function at 0x41e324
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x471a20
cmp dword [edi], 0
jne 0x41e3a0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x471a1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46e580
mov ecx, 2
call fcn.004028d4
mov edx, 0x41e2fc
lea eax, [esi + 5]
call fcn.0041e31c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e31c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41e375
mov dword [0x471a1c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41f834
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41f83a
ret

Function at 0x421cc8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x421d19
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x421d00
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x421cf0
jmp 0x421d19
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x421d01
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430364
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x4302b0
call sub.user32.dll_EnumWindows
ret

Function at 0x430488
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x430505
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042fed4
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x4304ad
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042fb2c
cmp dword [ebp - 4], 0
je 0x4304ef
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404700
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43050c
lea eax, [ebp - 4]
call fcn.00404250
ret

Function at 0x4332a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x471ba8], 0
je 0x4333f3
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4703a8]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4333f3
mov eax, dword [0x471bac]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x471ba8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4333c2
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x471ba8]
call fcn.0041590c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4333ba
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x4333ba
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4333ba
mov eax, dword [ebp - 0x14]
call fcn.0043bdb0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4333ba
push ebp
call fcn.00433260
pop ecx
test al, al
jne 0x4333ba
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x433376
mov eax, dword [ebp - 0x14]
call fcn.0043a944
dec eax
jle 0x4333ba
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004036e0
cmp byte [ebp - 1], 0
je 0x4333ba
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4333ba
mov edx, dword [ebp - 0x14]
mov eax, dword [0x471bac]
call fcn.00432a28
inc edi
dec ebx
jne 0x433309
mov eax, dword [0x471bac]
cmp dword [eax + 8], 0
jle 0x4333da
mov eax, dword [0x471bac]
call fcn.00432ab8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4333f3
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004330c8
pop ecx
test al, al
jne 0x4333f3
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4369b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x4369fc
mov eax, esi
call fcn.0044c334
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4369fc
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4369fc
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x436b40
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x436a3c
cmp eax, 0x108
ja 0x436a3c
mov eax, esi
call fcn.0044c334
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x436b37
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x436b40
jmp 0x436b37
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x436b1e
cmp eax, 0x20a
ja 0x436b1e
test byte [esi + 0x50], 0x80
jne 0x436a6e
sub eax, 0x203
je 0x436a6b
sub eax, 3
je 0x436a6b
sub eax, 3
jne 0x436a6e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x436a82
dec eax
je 0x436a97
dec eax
je 0x436ab7
dec eax
je 0x436a97
jmp 0x436abe
mov ecx, ebx
mov eax, dword [0x4703a8]
mov eax, dword [eax]
mov edx, esi
call fcn.00455a10
jmp 0x436b37
cmp byte [esi + 0x5d], 1
jne 0x436aad
mov eax, esi
mov si, 0xffed
call fcn.004036e0
jmp 0x436b40
or word [esi + 0x54], 1
jmp 0x436b37
and word [esi + 0x54], 0xfffe
jmp 0x436b37
mov eax, dword [0x471b64]
cmp byte [eax + 0x20], 0
je 0x436b37
mov eax, dword [0x471b64]
cmp dword [eax + 0x1c], 0
je 0x436b37
mov eax, dword [ebx]
mov edx, dword [0x471b64]
cmp eax, dword [edx + 0x1c]
jne 0x436b37
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0044c278
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004036e0
jmp 0x436b40
mov eax, dword [ebx]
cmp eax, 0xb00b
jne 0x436b37
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004352dc
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret