joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x89a008], 0x8088405
inc edx
mov dword [ebx + 0x89a008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41ce90
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cec1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cea9
add dl, dl
jne 0x41cecc
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf1d
xor eax, eax
add dl, dl
jne 0x41ced9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfba
add dl, dl
jne 0x41cee8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cef3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cefe
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf09
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf13
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41ceb8
mov eax, 1
add dl, dl
jne 0x41cf2b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf36
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf22
sub eax, ebx
mov ebx, 1
jne 0x41cf69
mov ecx, 1
add dl, dl
jne 0x41cf4f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cf5a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf46
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41ceb8
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cf8b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf77
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41ceb8
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cfdb
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41ceb8
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41efdc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x87f4ca
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f02b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f04a
mov ecx, edx
add ecx, ebx
jmp 0x41f04a
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f04a
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f0bc
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f0a5
test esi, esi
jbe 0x41f0bc
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f097
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f0bc
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f074
jmp 0x41f0bc
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f0bc
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x87f4d1
ret
Function at 0x4201e8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x880803
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420223
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42023c
lea eax, [ebp - 0x10]
mov edx, dword [0x89c30c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42024f
lea eax, [ebp - 0x10]
mov edx, dword [0x89c30c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42025b
adc edx, 0
mov edx, dword [edx*4 + 0x89b154]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4203d5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4203c8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4203c8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4203c8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4203c8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420366
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420366
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420366
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420366
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4203c8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4203c8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4203c8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4203c8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4203c8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4203ed
inc ebx
cmp ebx, 0x19
jne 0x420215
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x88080a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4037e8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004054b4
test esi, esi
jne 0x40381f
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.004055a4
jmp 0x403840
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00403684
mov dword [esp], eax
test esi, esi
je 0x403840
cmp dword [ebx], 0
je 0x403840
dec esi
jmp 0x403827
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403edc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x471008], 0x8088405
inc edx
mov dword [ebx + 0x471008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x404478
Capabilities:
Query or enumerate registry value

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

Function at 0x405330
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47a04c], 0
je 0x405391
cmp word [0x47a220], 0xd7b2
jne 0x405359
cmp dword [0x47a228], 0
jbe 0x405359
mov eax, 0x47a21c
call dword [0x47a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x471780
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 0x4053b8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x471030], 0
jne 0x4053ad
push 0
push 0x471778
push 0x471780
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x407350
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 0x4073b6
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_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00405724
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00404050
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4073a0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4073bd
lea eax, [ebp - 0x10]
call fcn.004054b4
ret

Function at 0x40ac88
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40acda
test eax, edx
je 0x40acdd
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x40ac9d
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40acc3
add ecx, 4
js 0x40acb3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40acc0
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x40ace9
test edx, edx
jne 0x40ac90
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405974
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b511
test al, 0x10
je 0x40b515
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405974
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40b535
test al, 0x10
jne 0x40b539
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40e0b0
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
test eax, eax
jle 0x40e0e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004055a4
jmp 0x40e0f2
mov eax, ebx
mov edx, esi
call fcn.00405508
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e0fc
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
test eax, eax
jle 0x40e11d
mov al, byte [esp]
jmp 0x40e11f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40e7b4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40e61c
mov eax, dword [0x47942c]
cmp byte [eax], 0
je 0x40e830
mov eax, dword [0x479210]
call fcn.00403bcc
call fcn.004034e4
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.0040b824
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40e878
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x40e866
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4791b8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47c7fc]
call fcn.004067bc
call dword [eax - 0x18]
xor al, 0x97
invalid
jmp [eax + 0x10]
and byte [eax], al
add byte [ebp + 0x50082444], cl
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA
add esp, 0x444
ret

Function at 0x40f134
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 0x40f20a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040554c
lea eax, [ebp - 8]
call fcn.004059c4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405974
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f1f4
mov eax, ebx
call fcn.004032b8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f1ed
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.00405974
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f1d7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f21c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f1d7
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 0x40f1f4
mov eax, dword [ebp - 0x10]
call fcn.004032d4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f211
lea eax, [ebp - 8]
call fcn.004054b4
ret
Function at 0x4227cc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x47ec70
cmp dword [esi], 0
jne 0x422872
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x47ec6c]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x4722b0
mov ecx, 2
call fcn.00403584
mov edx, 0x4227a4
mov eax, dword [ebp - 8]
add eax, 5
call fcn.004227c4
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.004227c4
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x422839
mov eax, dword [ebp - 8]
mov dword [0x47ec6c], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4231c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00422c54
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00405974
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x42321e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x479344]
mov dl, 1
mov eax, dword [0x422b4c]
call fcn.0040e974
call fcn.00404eec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x423228
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405974
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x423280
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x479568]
mov dl, 1
mov eax, dword [0x422b4c]
call fcn.0040e974
call fcn.00404eec
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00422c84
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4243c4
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 0x4243ca
ret
Function at 0x436f0c
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 [0x47ef14], 0
je 0x437055
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4793c4]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x437055
mov eax, dword [0x47ef18]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x47ef14]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x437024
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x47ef14]
call fcn.0041b8cc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43701c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x43701c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43701c
mov eax, dword [ebp - 0x14]
call fcn.00441654
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43701c
push ebp
call fcn.00436ec8
pop ecx
test al, al
jne 0x43701c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00404884
test al, al
je 0x43701c
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, 0xffbc
call fcn.00404884
cmp byte [ebp - 1], 0
je 0x43701c
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43701c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x47ef18]
call fcn.00436654
inc edi
dec ebx
jne 0x436f71
mov eax, dword [0x47ef18]
cmp dword [eax + 8], 0
jle 0x43703c
mov eax, dword [0x47ef18]
call fcn.00436710
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x437055
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00436d30
pop ecx
test al, al
jne 0x437055
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 0x43e5f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffedc
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00407678
lea edx, [esp + 0x11c]
call fcn.00408170
lea edx, [esp + 0x11c]
mov ecx, esp
mov eax, esi
call fcn.00439274
test ebx, ebx
jne 0x43e63c
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0043e52c
mov ebx, eax
test ebx, ebx
je 0x43e727
cmp esi, ebx
je 0x43e665
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x10c], eax
jmp 0x43e67a
mov eax, dword [esp]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x10c], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x110], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x43e6b2
add eax, 0xffffff5f
sub eax, 2
jb 0x43e6ca
dec eax
sub eax, 2
jb 0x43e6de
dec eax
sub eax, 2
jb 0x43e6d4
jmp 0x43e6e8
add eax, 0xfffffdff
sub eax, 2
jb 0x43e6ca
dec eax
sub eax, 2
jb 0x43e6de
dec eax
sub eax, 2
jb 0x43e6d4
jmp 0x43e6e8
mov byte [esp + 0x114], 0
jmp 0x43e6f0
mov byte [esp + 0x114], 2
jmp 0x43e6f0
mov byte [esp + 0x114], 1
jmp 0x43e6f0
mov byte [esp + 0x114], 0
lea eax, [esp + 8]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 8]
call fcn.00453f9c
mov byte [esp + 0x115], al
lea eax, [esp + 0x108]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0043a9e8
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x43e729
xor eax, eax
add esp, 0x124
pop edi
pop esi
pop ebx
ret
Function at 0x4469cc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x47955c]
cmp byte [eax + 0xc], 0
je 0x446b39
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x446b32
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47ef24], 0
jne 0x446a20
push 0x446b40
call sub.KERNEL32.DLL_GetModuleHandleA_1
mov ebx, eax
push 0x446b48
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47ef24], eax
cmp dword [0x472ca4], 0
jne 0x446b1b
push 0x446b58
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x472ca4], eax
cmp dword [0x472ca4], 0
je 0x446b1b
push 0x446b64
mov eax, dword [0x472ca4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47ef28], eax
push 0x446b74
mov eax, dword [0x472ca4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47ef2c], eax
push 0x446b88
mov eax, dword [0x472ca4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47ef30], eax
push 0x446ba0
mov eax, dword [0x472ca4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47ef34], eax
push 0x446bb8
mov eax, dword [0x472ca4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47ef38], eax
push 0x446bcc
mov eax, dword [0x472ca4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47ef3c], eax
push 0x446be4
mov eax, dword [0x472ca4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47ef40], eax
push 0x446bfc
mov eax, dword [0x472ca4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47ef44], eax
push 0x446c18
mov eax, dword [0x472ca4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47ef48], eax
push 0x446c24
mov eax, dword [0x472ca4]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x47ef4c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446b39
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44ae7c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004054b4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44aecb
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00405724
pop ebx
mov esp, ebp
pop ebp
ret