joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483930
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
lea eax, [ebp - 4]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.WS2_32.DLL_WSASend
sub esp, 0x1c
cmp eax, 0xffffffff
jne 0x48397d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
leave
ret

Function at 0x48e080
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
cmp edi, dword [0x4e75ac]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
je 0x48e130
call fcn.0048d1f0
test eax, eax
mov ebx, eax
mov edx, 2
je 0x48e0df
mov dword [ebp - 0x10], 0
test edi, edi
je 0x48e0dc
test ebx, ebx
jne 0x48e0f0
mov ecx, dword [ebp + 0xc]
mov dword [esp + 4], ecx
mov eax, dword [edi]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
test eax, eax
jne 0x48e0dc
mov dword [ebp - 0x10], 0xb
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov eax, edx
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 4]
test edx, edx
setne al
xor ecx, ecx
cmp dword [ebp + 0xc], 0
setne cl
test eax, ecx
je 0x48e0bd
lea esi, [edi + 8]
mov dword [ebp - 0x14], esi
mov dword [esp], esi
call fcn.0048de80
test eax, eax
je 0x48e15a
mov esi, dword [ebp - 0x14]
mov dword [esp], esi
call fcn.0048d550
mov ebx, dword [ebp - 0x10]
test ebx, ebx
jne 0x48e0dc
jmp 0x48e0bd
mov dword [esp], edi
call fcn.0048d180
test eax, eax
je 0x48e144
mov ebx, dword [eax + 8]
jmp 0x48e0ae
mov ecx, dword [ebp + 0xc]
mov edx, 2
test ecx, ecx
je 0x48e0df
mov edx, dword [ebp + 0xc]
mov ebx, dword [edx]
jmp 0x48e0ae
lea eax, [ebx + 0x28]
mov dword [esp], eax
call fcn.0048de80
mov eax, dword [ebx + 0x84]
jmp 0x48e178
cmp dword [eax + 4], edi
je 0x48e1e8
mov eax, dword [eax + 8]
test eax, eax
jne 0x48e170
mov dword [esp], 1
mov ecx, 0x18
mov dword [esp + 4], ecx
call sub.msvcrt.dll_calloc
test eax, eax
mov edx, 0xc
je 0x48e1d5
mov dword [eax], ebx
mov edx, dword [edi + 0xc]
mov dword [eax + 4], edi
mov dword [eax + 0x14], 0
test edx, edx
mov dword [eax + 0xc], edx
je 0x48e1b3
mov dword [edx + 0x14], eax
mov dword [edi + 0xc], eax
mov edx, dword [ebx + 0x84]
mov dword [eax + 0x10], 0
test edx, edx
mov dword [eax + 8], edx
je 0x48e1cd
mov dword [edx + 0x10], eax
mov dword [ebx + 0x84], eax
xor edx, edx
mov dword [ebp - 0x10], edx
lea edx, [ebx + 0x28]
mov dword [esp], edx
call fcn.0048d550
jmp 0x48e117
test eax, eax
jne 0x48e1d8
jmp 0x48e17c
Function at 0x4906d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edx, dword [ebp + 8]
test edx, edx
je 0x49081e
mov dword [ebp - 0x14], 0
lea edi, [edx + 0x28]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], 0
inc dword [ebp - 0x14]
mov dword [esp], edi
call fcn.0048de80
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + 0x84]
mov dword [edx + 0x88], ecx
mov dword [esp], edi
lea esi, [esi]
lea edi, [edi]
call fcn.0048d550
mov dword [esp], edi
call fcn.0048de80
mov esi, dword [ebp - 0x18]
mov ebx, dword [esi + 0x88]
test ebx, ebx
je 0x49080b
mov eax, dword [ebx + 4]
add eax, 8
mov dword [esp], eax
call fcn.0048d350
cmp eax, 0x10
je 0x490826
mov ecx, dword [ebx + 8]
mov esi, dword [ebp - 0x18]
mov dword [esi + 0x88], ecx
mov esi, dword [ebx + 4]
mov edx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x20], edx
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
mov dword [ebp - 0x1c], eax
sub esp, 4
xor ecx, ecx
mov dword [esp + 4], ecx
mov edx, dword [esi]
mov dword [esp], edx
call sub.KERNEL32.dll_TlsSetValue
mov eax, dword [ebp - 0x1c]
sub esp, 8
test eax, eax
setne dl
xor ecx, ecx
cmp dword [ebp - 0x14], 4
setle cl
test edx, ecx
jne 0x490842
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 8]
test eax, eax
je 0x4907b3
mov dword [eax + 8], edx
test edx, edx
je 0x4907ba
mov dword [edx + 0x10], eax
mov eax, dword [ebx]
cmp dword [eax + 0x84], ebx
je 0x490876
cmp dword [eax + 0x88], ebx
je 0x49086b
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0xc]
test eax, eax
je 0x4907e1
mov dword [eax + 0xc], edx
test edx, edx
je 0x4907e8
mov dword [edx + 0x14], eax
mov eax, dword [ebx + 4]
cmp dword [eax + 0xc], ebx
je 0x490866
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov dword [esp], edi
call fcn.0048d550
lea edx, [esi + 8]
mov dword [esp], edx
jmp 0x490720
mov dword [esp], edi
call fcn.0048d550
mov esi, dword [ebp - 0x10]
test esi, esi
jne 0x4906f1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call fcn.0048d550
mov dword [esp], 1
call sub.KERNEL32.dll_Sleep
sub esp, 4
jmp 0x490725
mov dword [esp], edi
call fcn.0048d550
lea eax, [esi + 8]
mov dword [esp], eax
call fcn.0048d550
inc dword [ebp - 0x10]
mov ebx, dword [ebp - 0x1c]
mov dword [esp], ebx
call dword [ebp - 0x20]
jmp 0x490725
mov dword [eax + 0xc], edx
jmp 0x4907f0
mov dword [eax + 0x88], edx
jmp 0x4907d4
mov dword [eax + 0x84], edx
jmp 0x4907c8
Function at 0x490a60
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], 0xb
mov edx, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
test eax, eax
mov dword [edx + 4], 0
mov dword [ebp - 0x10], 0
je 0x490a94
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
call fcn.0048c540
test eax, eax
mov ebx, eax
mov esi, edx
je 0x490c20
mov edx, dword [eax + 0x2c]
mov edi, eax
mov dword [ebp - 0x24], edx
mov dword [esp], 0x10
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x490c20
mov dword [eax], ebx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x14]
mov dword [eax + 4], esi
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0xc], edx
mov dword [ebp - 0x20], 0
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x490b09
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 8]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0xc]
mov dword [ebx + 0x24], ecx
mov ecx, dword [edx + 0x14]
mov eax, dword [edx + 0x10]
test ecx, ecx
mov dword [ebp - 0x24], eax
je 0x490c50
mov dword [edi + 0x14], 0
xor eax, eax
mov edx, 4
mov dword [edi + 0x84], eax
mov eax, 0x490930
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov edx, dword [ebp - 0x20]
mov dword [esp], 0
mov dword [esp + 4], edx
call sub.msvcrt.dll__beginthreadex
mov dword [ebp - 0x14], eax
test eax, eax
mov dword [edi + 4], eax
je 0x490c10
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x490be0
mov dword [ebp - 0x28], ebx
mov edi, dword [ebp - 0x24]
cmp edi, 0xfffffff1
jl 0x490be0
cmp edi, 0xf
jg 0x490be0
cmp edi, 0xfffffff1
setg cl
xor edx, edx
cmp edi, 0xfffffffe
setl dl
test ecx, edx
jne 0x490c60
mov eax, dword [ebp - 0x24]
sub eax, 3
cmp eax, 0xb
ja 0x490b97
mov edi, 2
mov ecx, dword [ebp - 0x28]
add ecx, 0x28
mov dword [ebp - 0x2c], ecx
mov dword [esp], ecx
call fcn.0048de80
test eax, eax
jne 0x490be0
mov dword [esp + 4], edi
mov edx, dword [ebp - 0x28]
mov edi, dword [edx + 4]
mov dword [esp], edi
call sub.KERNEL32.dll_SetThreadPriority
sub esp, 8
test eax, eax
je 0x490bce
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x2c], ecx
mov edi, dword [ebp - 0x2c]
mov dword [esp], edi
call fcn.0048d550
lea esi, [esi]
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_ResumeThread
mov edx, dword [ebp - 0x14]
sub esp, 4
test edx, edx
je 0x490c10
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov dword [ecx], ebx
mov dword [ecx + 4], esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x18], 0xb
mov esi, esi
lea edi, [edi]
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.0048d9a0
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x490c3e
mov esi, dword [ebp - 0x1c]
mov dword [esp], esi
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x18]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0048d1f0
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x24], ecx
jmp 0x490b09
mov edi, 0xfffffffe
jmp 0x490b97
Function at 0x491070
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edx, dword [0x4e75ac]
mov edi, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
mov dword [esp], edx
call fcn.0048d180
mov esi, eax
lea eax, [edi - 1]
cmp eax, 1
jbe 0x4910a6
mov dword [esp], 1
call sub.msvcrt.dll_exit
test esi, esi
je 0x4910b3
test byte [esi + 0x80], 1
je 0x4910f8
mov dword [ebp - 0x10], 0
cmp edi, 1
je 0x4911af
cmp edi, 2
je 0x4911ba
mov ebx, dword [0x4e75b0]
test ebx, ebx
jne 0x49112a
mov ecx, dword [ebp - 0x10]
mov dword [esp], ecx
call sub.msvcrt.dll__endthreadex
jmp 0x4910f8
mov eax, dword [ebx + 8]
mov ebx, dword [0x4e75a8]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0048e080
mov eax, dword [0x4e75a8]
mov dword [esp], eax
call fcn.0048d180
test eax, eax
mov ebx, eax
je 0x49111b
mov edx, dword [eax]
test edx, edx
je 0x4910e3
mov ecx, dword [eax + 4]
mov dword [esp], ecx
call dword [eax]
jmp 0x4910e3
mov dword [esp + 4], edi
lea edi, [esi + 0x40]
mov dword [esp], edi
call sub.msvcrt.dll_longjmp
mov eax, dword [0x4e75ac]
mov dword [esp], eax
call fcn.0048d180
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4910d6
mov ecx, eax
mov ebx, dword [ecx + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.004906d0
mov ebx, dword [ebp - 0x14]
add ebx, 0x30
mov dword [esp], ebx
call fcn.0048de80
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x14], 6
mov dword [esp], ebx
call fcn.0048d550
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x24], 1
jne 0x4910d6
mov ebx, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.0048d9a0
mov ebx, dword [0x4e75ac]
xor eax, eax
mov dword [esp + 4], eax
mov edx, dword [ebx]
mov dword [esp], edx
call sub.KERNEL32.dll_TlsSetValue
sub esp, 8
jmp 0x4910d6
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x10], ecx
jmp 0x4910cc
mov dword [ebp - 0x10], 0xffffffff
jmp 0x4910cc
Function at 0x4032e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45a020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403378
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403358
xor eax, eax
push ebp
push 0x403351
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 0x403394
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 0x403358
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45a020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45a020], ax
mov esp, ebp
pop ebp
ret

Function at 0x40405c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45c048], 0
je 0x4040bd
cmp word [0x45c21c], 0xd7b2
jne 0x404085
cmp dword [0x45c224], 0
jbe 0x404085
mov eax, 0x45c218
call dword [0x45c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45a06c
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 0x4040e4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45a030], 0
jne 0x4040d9
push 0
push 0x45a064
push 0x45a06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e04
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405e6a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404450
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ea4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405e54
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e71
lea eax, [ebp - 0x10]
call fcn.004041e0
ret

Function at 0x40afe8
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 0x40b021
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042d0
jmp 0x40b02a
mov eax, ebx
mov edx, esi
call fcn.00404234
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b034
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 0x40b055
mov al, byte [esp]
jmp 0x40b057
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b6ec
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b554
mov eax, dword [0x45b7f0]
cmp byte [eax], 0
je 0x40b768
mov eax, dword [0x45b558]
call fcn.00402d10
call fcn.00402bb4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004087d8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40b7b0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b79e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45b4f0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45c664]
call fcn.00405270
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 0x40c00c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c0e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404278
lea eax, [ebp - 8]
call fcn.004046f0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046a0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c0cc
mov eax, ebx
call fcn.00402a28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c0c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004046a0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c0af
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c0f4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c0af
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0cc
mov eax, dword [ebp - 0x10]
call fcn.00402a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0e9
lea eax, [ebp - 8]
call fcn.004041e0
ret

Function at 0x40c630
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 0x40c694
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.00404450
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408354
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c69b
lea eax, [ebp - 0xc]
call fcn.004041e0
ret

Function at 0x41ad18
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45c884
cmp dword [edi], 0
jne 0x41ad94
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45c880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45a3ec
mov ecx, 2
call fcn.00402c48
mov edx, 0x41acf0
lea eax, [esi + 5]
call fcn.0041ad10
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ad10
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 0x41ad69
mov dword [0x45c880], 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 0x41bfb8
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 0x41bfbe
ret
Function at 0x41e468
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 0x41e4b9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41e4a0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41e490
jmp 0x41e4b9
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 0x41e4a1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d32c
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 0x42d278
call sub.user32.dll_EnumWindows
ret

Function at 0x42d44c
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 0x42d4c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042ceac
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 0x42d471
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042caac
cmp dword [ebp - 4], 0
je 0x42d4b3
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004046a0
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 0x42d4d0
lea eax, [ebp - 4]
call fcn.004041e0
ret

Function at 0x4307c0
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 [0x45cb54], 0
je 0x43090f
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x45b774]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x43090f
mov eax, dword [0x45cb58]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x45cb54]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4308de
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x45cb54]
call fcn.00413ecc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4308d6
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x4308d6
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4308d6
mov eax, dword [ebp - 0x14]
call fcn.00439458
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4308d6
push ebp
call fcn.0043077c
pop ecx
test al, al
jne 0x4308d6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x430892
mov eax, dword [ebp - 0x14]
call fcn.00437f88
dec eax
jle 0x4308d6
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.00403674
cmp byte [ebp - 1], 0
je 0x4308d6
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4308d6
mov edx, dword [ebp - 0x14]
mov eax, dword [0x45cb58]
call fcn.0042ff48
inc edi
dec ebx
jne 0x430825
mov eax, dword [0x45cb58]
cmp dword [eax + 8], 0
jle 0x4308f6
mov eax, dword [0x45cb58]
call fcn.0042ffd8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43090f
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004305e4
pop ecx
test al, al
jne 0x43090f
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 0x433ef0
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 0x433f3c
mov eax, esi
call fcn.00449c30
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x433f3c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x433f3c
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 0x43407b
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x433f7c
cmp eax, 0x108
ja 0x433f7c
mov eax, esi
call fcn.00449c30
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x434072
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x43407b
jmp 0x434072
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x43405b
cmp eax, 0x20a
ja 0x43405b
test byte [esi + 0x50], 0x80
jne 0x433fae
sub eax, 0x203
je 0x433fab
sub eax, 3
je 0x433fab
sub eax, 3
jne 0x433fae
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x433fc2
dec eax
je 0x433fd7
dec eax
je 0x433ff4
dec eax
je 0x433fd7
jmp 0x433ffb
mov ecx, ebx
mov eax, dword [0x45b774]
mov eax, dword [eax]
mov edx, esi
call fcn.00453510
jmp 0x434072
cmp byte [esi + 0x5d], 1
jne 0x433fed
mov eax, esi
mov si, 0xffed
call fcn.00403674
jmp 0x43407b
or word [esi + 0x54], 1
jmp 0x434072
and word [esi + 0x54], 0xfffe
jmp 0x434072
mov eax, dword [0x45cb10]
cmp byte [eax + 0x20], 0
je 0x434072
mov eax, dword [0x45cb10]
cmp dword [eax + 0x1c], 0
je 0x434072
mov eax, dword [ebx]
mov edx, dword [0x45cb10]
cmp eax, dword [edx + 0x1c]
jne 0x434072
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.00449b74
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.00403674
jmp 0x43407b
cmp eax, 0xb00b
jne 0x434072
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00432810
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