joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453e80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x453e99
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x453e92
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x453ead
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00453844
test bl, bl
jne 0x453f80
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x471bd8
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x453ee4
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x453ef8
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00453d58
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x453f2a
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x453ed9
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x453f4d
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x453f5e
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x453f72
jmp 0x45403b
cmp bl, 1
jne 0x45403b
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x471c32
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x453fa0
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x453fb4
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00453d58
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x453fe6
sub ebx, 6
inc dword [ebp - 8]
jne 0x453f95
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x45400d
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x45401e
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x454032
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004538c8
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x46933c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x469344
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x469536
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x46954c
mov eax, esi
call fcn.00465bfc
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00403fc8
lea ecx, [ebp - 0x10]
mov edx, 0x469560
mov eax, esi
call fcn.00465bfc
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00403fc8
lea ecx, [ebp - 0x14]
mov edx, 0x469578
mov eax, esi
call fcn.00465bfc
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00403fc8
lea ecx, [ebp - 0x18]
mov edx, 0x469594
mov eax, esi
call fcn.00465bfc
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00403fc8
lea ecx, [ebp - 0x1c]
mov edx, 0x4695b0
mov eax, esi
call fcn.00465bfc
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00403fc8
lea ecx, [ebp - 0x24]
mov edx, 0x4695c8
mov eax, esi
call fcn.00465bfc
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00407e34
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.0040827c
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4695e0
mov eax, esi
call fcn.00465bfc
mov eax, dword [ebp - 0x28]
call fcn.0045a00c
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4695f0
mov eax, esi
call fcn.00465bfc
mov eax, dword [ebp - 0x2c]
call fcn.0045a00c
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x469608
mov eax, esi
call fcn.00465bfc
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.0040827c
inc eax
je 0x4694d9
lea ecx, [ebp - 0x34]
mov edx, 0x469608
mov eax, esi
call fcn.00465bfc
mov eax, dword [ebp - 0x34]
call fcn.00408240
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.00409744
fstp qword [ebp - 0x3c]
wait
call fcn.00409aa8
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4694f4
lea ecx, [ebp - 0x40]
mov edx, 0x469608
mov eax, esi
call fcn.00465bfc
mov eax, dword [ebp - 0x40]
call fcn.0045a00c
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x469618
mov eax, esi
call fcn.00465bfc
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00403fc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46953d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00403f98
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00403f98
ret
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x406fa0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
adc dword [ecx], 0x24
nop
push ds
mov esi, dword [ebp + 0xc]
xor edi, eax
cmp eax, dword [ebp + 0x6e]
mov dword [ebp - 0xc], esi
jne 0x406fba
mov esi, str.0.0.0.0
mov al, byte [esi]
cmp al, 0x30
punpckldq mm7, dword [ecx + 0x3c0000c4]
cmp dword [edi], ecx
invalid

Function at 0x40aa02
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ebx, 0x56a2b5f0
push 0
push ebx
call ebp
mov dword [ebp - 0x10], edx
and ecx, edi
xor ebx, ebx
mov esi, 0xef
xor edx, edx
cmp ecx, edi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x14], eax
inc ebp
in al, dx
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c004]
jne 0x40100a
repz ret
jmp fcn.00401653

Function at 0x4041db
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402c7c
and dword [ebp - 0x14], 0
cmp dword [0x43e270], 0
mov dword [ebp - 0x18], eax
jne 0x40428e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404336
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404336
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43e270], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43e274], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43e278], eax
call edi
push eax
call esi
mov dword [0x43e280], eax
test eax, eax
je 0x40428e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43e27c], eax
mov eax, dword [0x43e27c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4042e7
cmp dword [0x43e280], ecx
je 0x4042e7
push eax
call esi
push dword [0x43e280]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4042e7
test ebx, ebx
je 0x4042e7
call edi
test eax, eax
je 0x4042de
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4042de
test byte [ebp - 8], 1
jne 0x4042e7
or dword [ebp + 0x10], 0x200000
jmp 0x40431a
mov eax, dword [0x43e274]
cmp eax, dword [ebp - 0x18]
je 0x40431a
push eax
call esi
test eax, eax
je 0x40431a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40431a
mov eax, dword [0x43e278]
cmp eax, dword [ebp - 0x18]
je 0x40431a
push eax
call esi
test eax, eax
je 0x40431a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43e270]
call esi
test eax, eax
je 0x404336
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404338
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x434f67
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x43fb1c]
push dword [0x43f968]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret
Function at 0x43506d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp ebx, 0x19f
jne 0x435081
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push edi
xor edi, edi
test ebx, ebx
jle 0x4350a4
push esi
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.00435062
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
xor byte [eax + edi], cl
inc edi
cmp edi, ebx
jl 0x435089
pop esi
pop edi
cmp ebx, 0x2d
jne 0x4350bb
or dword [0x43fc54], 0xffffffff
mov dword [0x43fc50], 0xa62e7790
leave
ret
Function at 0x403178
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403890
Capabilities:
Query or enumerate registry value

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

Function at 0x4047ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45a044], 0
je 0x40480d
cmp word [0x45a218], 0xd7b2
jne 0x4047d5
cmp dword [0x45a220], 0
jbe 0x4047d5
mov eax, 0x45a214
call dword [0x45a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x404834
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x458030], 0
jne 0x404829
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408370
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4083c2
test eax, edx
je 0x4083c5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408385
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 0x4083ab
add ecx, 4
js 0x40839b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4083a8
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 0x4083d1
test edx, edx
jne 0x408378
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40b6f0
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 0x40b729
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a1c
jmp 0x40b732
mov eax, ebx
mov edx, esi
call fcn.00404980
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b73c
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 0x40b75e
movzx eax, byte [esp]
jmp 0x40b760
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bdf0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bc68
mov eax, dword [0x4599ec]
cmp byte [eax], 0
je 0x40be6c
mov eax, dword [0x459824]
call fcn.0040321c
call fcn.00402fbc
lea eax, [esp + 0x44]
inc esp
and al, 0x44
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4597d0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45c7f0]
call fcn.00405a84
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
Function at 0x40c72c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c802
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004049c4
lea eax, [ebp - 4]
call fcn.00404e14
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404dbc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c7ec
mov eax, ebx
call fcn.00402e60
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c7e5
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 - 4]
call fcn.00404dbc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c7cf
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c814
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c7cf
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c7ec
mov eax, dword [ebp - 0x10]
call fcn.00402e7c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c809
lea eax, [ebp - 4]
call fcn.0040492c
ret

Function at 0x41b598
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45e9e8
cmp dword [edi], 0
jne 0x41b614
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45e9e4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x458ae4
mov ecx, 2
call fcn.00403050
mov edx, 0x41b570
lea eax, [esi + 5]
call fcn.0041b590
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b590
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 0x41b5e9
mov dword [0x45e9e4], 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 0x41db58
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.00404dbc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41dbb0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x459b08]
mov dl, 1
mov eax, dword [0x41d664]
call fcn.0040bfb0
call fcn.004042ec
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d76c
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 0x41ea0c
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 0x41ea12
ret
Function at 0x428cd4
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.0040492c
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x428d22
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.00404b9c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42de04
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42df37
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41d6c4]
call fcn.0041d794
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x42df0d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d834
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404b9c
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x42df4c
call fcn.00404c44
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d898
lea ecx, [ebp - 4]
mov edx, 0x42df88
mov eax, dword [ebp - 0xc]
call fcn.0041dae0
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d94c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42def0
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x42df94
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x45940c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42def7
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x42dfe4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x42e02b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42e00e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42e01f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x42e02b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret