joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008095a
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap flags

Disassembly:
mov eax, 0x100d729c
call fcn.100cece0
sub esp, 0x18
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push str.CREATIONTIME
mov ecx, edi
lea edx, [esi + 4]
call fcn.10080ade
push str.LASTMODIFICATIONTIME
lea edx, [esi + 0xc]
mov ecx, edi
mov byte [esi], al
call fcn.10080ade
mov byte [esi + 1], al
lea eax, [ebp - 0x18]
push str.NAME
push eax
mov ecx, edi
call fcn.1007ed65
and dword [ebp - 4], 0
lea edx, [esi + 0x14]
mov ecx, eax
call fcn.1007ed65
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
mov byte [esi + 2], al
call fcn.100034b3
lea eax, [ebp - 0x18]
mov dword [esp], str.DIRCOUNT
push eax
mov ecx, edi
call fcn.1007ed65
lea edx, [esi + 0x20]
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.1007ed65
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.100034b3
lea eax, [ebp - 0x18]
mov dword [esp], str.FILECOUNT
push eax
mov ecx, edi
call fcn.1007ed65
lea edx, [esi + 0x28]
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.1007ed65
push dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
call fcn.100034b3
lea eax, [ebp - 0x24]
mov dword [esp], str.INDEX
push eax
mov ecx, edi
call fcn.1007ed65
lea edx, [esi + 0x30]
mov ecx, eax
mov dword [ebp - 4], 3
call fcn.1007ed65
push dword [ebp - 0x24]
mov byte [esi + 3], al
call fcn.100034b3
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x10080f88
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x100d731b
call fcn.100cece0
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [ebp - 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
or dword [esi + 0x20], 0xffffffff
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
call fcn.1000250f
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x100851fe
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address

Disassembly:
mov eax, 0x100d78af
call fcn.100cece0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ax, word [edi]
lea ecx, [esi + 0x24]
mov word [esi], ax
mov ax, word [edi + 2]
mov word [esi + 2], ax
mov ax, word [edi + 4]
mov word [esi + 4], ax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
lea eax, [edi + 0x24]
push eax
call fcn.10001da4
and dword [ebp - 4], 0
add edi, 0x30
push edi
lea ecx, [esi + 0x30]
call fcn.10085281
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x100c1f60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, 1
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
or eax, 0xffffffff
xor edi, edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x78], edi
mov dword [esi + 0x68], edi
cmp eax, 0x20
mov dword [esi + 0x7c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
jbe 0x100c1fcb
mov eax, 0x20
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x58], edi
cmp eax, ecx
je 0x100c200c
lea ebx, [esi + 0xc8]
mov ebp, 0x20
cmp dword [ebx + 8], edi
je 0x100c1ff1
mov ecx, ebx
call fcn.100c1c50
add ebx, 0x28
dec ebp
jne 0x100c1fe5
mov edx, dword [esi + 0x5c]
cmp edx, edi
je 0x100c2007
mov ecx, dword [esi + 0x14]
call dword [ecx + 4]
mov dword [esi + 0x5c], edi
mov ecx, dword [esi]
mov dword [esi + 0x20], ecx
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x98]
call fcn.100c1b20
mov eax, dword [esi + 0x58]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
lea edx, [eax + eax*4 + 0x19]
inc eax
mov dword [esi + 0x58], eax
lea ebp, [esi + edx*8]
mov ecx, ebp
call fcn.100c20b0
mov ebx, eax
cmp ebx, edi
jne 0x100c206f
lea ecx, [ebp + 0x20]
call fcn.100c86b0
mov ebx, eax
cmp ebx, edi
jne 0x100c206f
lea ecx, [ebp + 0x1c]
call fcn.100c86b0
mov ebx, eax
cmp ebx, edi
jne 0x100c206f
push ebp
call fcn.1007ed65
mov ebx, eax
cmp ebx, edi
je 0x100c2084
mov ecx, esi
mov dword [esi + 0x44], edi
call fcn.100c20e0
cmp ebx, edi
jle 0x100c207f
and ebx, 0xffff
or ebx, 0x80070000
cmp ebx, edi
je 0x100c2084
mov dword [esi + 0x40], ebx
cmp dword [esi + 0x38], edi
jne 0x100c2096
cmp dword [esi + 0x40], edi
jne 0x100c2096
cmp dword [esi + 0x3c], edi
jne 0x100c2096
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x44]
pop edi
neg eax
sbb eax, eax
pop esi
not eax
and eax, ebx
pop ebp
pop ebx
ret
Function at 0x406043
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406067
xor eax, eax
test eax, eax
je 0x406079
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406079
xor ecx, ecx
jmp 0x40607c
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409010]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406120
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422af4], 0
push esi
jne 0x406157
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 0x406131
mov dword [ecx*4 + 0x422af0], eax
inc ecx
cmp ecx, 0x100
jl 0x40612c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406188
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 + 0x422af0]
xor eax, esi
inc ecx
dec edx
jne 0x40616a
pop edi
not eax
pop esi
ret 0xc

Function at 0x411082
Capabilities:
Terminate process

Disassembly:
jmp 0x419e10
jmp fcn.0041a860
cmp ecx, dword [0x42535c]
jne 0x419e1a
repz ret
jmp 0x4111f4
Function at 0x10006aa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x172de78
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1735060]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov eax, dword [0x173664c]
mov edx, dword [eax + 0xc]
mov ecx, 0x173664c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
xor esi, esi
push eax
mov dword [esp + 0x24], esi
push ebp
mov dword [esp + 0x30], esi
call dword [0x172f034]
mov edx, dword [esp + 0x28]
cmp edx, esi
je 0x10006b28
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x10006b02
sub eax, edi
sar eax, 1
mov ebx, eax
push edx
lea eax, [esp + 0x18]
call fcn.10001cf0
mov ecx, dword [esp + 0x28]
push ecx
call dword [0x172f15c]
push ebp
call dword [0x172f044]
movzx edi, byte [eax]
cmp edi, esi
jbe 0x10006b4b
mov ebx, dword [0x172f038]
lea esp, [esp]
push esi
push ebp
call ebx
add esi, 1
cmp esi, edi
jb 0x10006b40
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10006b73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x4f71a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x93000]
push edi
or ebp, 0xffffffff
jmp 0x4f71c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f71c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f71b8
mov eax, 1
add ebx, ebx
jne 0x4f71db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f71ec
jne 0x4f720b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f720b
dec eax
add ebx, ebx
jne 0x4f71f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f71d0
add ebx, ebx
jne 0x4f7207
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f725d
xor ecx, ecx
sub eax, 3
jb 0x4f7223
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f7292
sar eax, 1
mov ebp, eax
jmp 0x4f722e
add ebx, ebx
jne 0x4f722e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f71fc
inc ecx
add ebx, ebx
jne 0x4f723c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f71fc
add ebx, ebx
jne 0x4f7249
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f723e
jne 0x4f725a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f723e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f727c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f726e
jmp 0x4f71be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f727c
add edi, ecx
jmp 0x4f71be
pop esi
mov edi, esi
mov ecx, 0x2e0e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f729a
cmp byte [edi], 0x13
jne 0x4f729a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4f729f
lea edi, [esi + 0xf4000]
mov eax, dword [edi]
or eax, eax
je 0x4f7317
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xfa850]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xfa968]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f72cc
mov ecx, edi
jns 0x4f72fb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xfa96c]
or eax, eax
je 0x4f7311
mov dword [ebx], eax
add ebx, 4
jmp 0x4f72e9
call dword [esi + 0xfa97c]
mov ebp, dword [esi + 0xfa970]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4f734b
sub esp, 0xffffff80
jmp 0x456de0
Function at 0x402954
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x49a030], 0x8088405
inc edx
mov dword [0x49a030], edx
mul edx
mov eax, edx
ret

Function at 0x406fac
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x424], ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4071f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00403494
cmp dword [0x4980dc], 1
je 0x40702d
mov dword [ebp - 0x14], 0x400
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call fcn.00405b5c
test eax, eax
jne 0x4071d2
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x420]
mov edx, dword [edx]
call fcn.0040352c
jmp 0x4071d2
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.004027b4
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0x41
jb 0x4071d2
cmp byte [ebp - 0x15], 0x5a
ja 0x4071d2
mov eax, dword [ebp - 4]
call fcn.00403574
cmp eax, 3
jl 0x4071d2
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
jne 0x4071d2
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x5c
jne 0x4071d2
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 1
push 1
call fcn.00405b64
test eax, eax
jne 0x4071d2
xor edx, edx
push ebp
push 0x4071cb
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x10], 0x640
mov eax, dword [ebp - 0x10]
call fcn.00402648
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x4071ad
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00405b4c
cmp eax, 0xea
jne 0x4070fc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.00402678
jmp 0x4070c0
test eax, eax
je 0x40710f
call fcn.004031bc
call fcn.004031bc
jmp 0x4071d2
mov esi, dword [ebp - 0xc]
dec esi
test esi, esi
jl 0x4070c0
inc esi
xor edi, edi
mov eax, edi
shl eax, 2
mov edx, dword [ebp - 0x20]
lea ebx, [edx + eax*8]
cmp dword [ebx + 0x10], 0
je 0x40718b
mov eax, dword [ebx + 0x10]
mov al, byte [eax]
call fcn.004027b4
cmp al, byte [ebp - 0x15]
jne 0x40718b
lea eax, [ebp - 0x424]
push eax
mov eax, dword [ebp - 4]
call fcn.00403574
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.00403778
mov eax, dword [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
mov edx, dword [ebx + 0x14]
call fcn.0040352c
mov edx, dword [ebp - 0x428]
mov eax, dword [ebp - 8]
pop ecx
call fcn.004035c0
call fcn.004031bc
call fcn.004031bc
jmp 0x4071d2
inc edi
dec esi
jne 0x40711a
jmp 0x4070c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4071f7
lea eax, [ebp - 0x428]
mov edx, 2
call fcn.00403420
ret
Function at 0x407288
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push esp
push 0x104
call fcn.004058c4
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004034e0
add esp, 0x104
pop ebx
ret

Function at 0x408570
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 fcn.00405934
test eax, eax
jle 0x4085a9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004034e0
jmp 0x4085b2
mov eax, ebx
mov edx, esi
call fcn.00403494
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4085bc
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 fcn.00405934
test eax, eax
jle 0x4085dd
mov al, byte [esp]
jmp 0x4085df
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x411080
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.00403400
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call fcn.00406084
shl eax, 0x10
test eax, eax
je 0x4110e1
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call fcn.00405f44
cmp byte [ebp - 0x101], 0
jne 0x4110e1
cmp byte [ebp - 0x102], 0
je 0x4110e1
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040355c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x412320
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x24], 0
je 0x4123a1
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call fcn.00405f4c
test ax, ax
jge 0x412352
add word [ebp - 6], 0x2000
push 0x11
call fcn.00405f4c
test ax, ax
jge 0x412364
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x412370
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.004121f8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x412395
push ebp
mov eax, dword [ebp - 4]
call fcn.00412294
pop ecx
mov ebx, eax
cmp bl, 2
je 0x412370
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419b14
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 0x419b1a
ret
Function at 0x41f3d4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x49a650
cmp dword [edi], 0
jne 0x41f450
push 0x40
push 0x1000
push 0x1000
push 0
call fcn.00405b0c
mov esi, eax
mov eax, dword [0x49a64c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x498594
mov ecx, 2
call fcn.00402738
mov edx, 0x41f3ac
lea eax, [esi + 5]
call fcn.0041f3cc
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f3cc
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 0x41f425
mov dword [0x49a64c], 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 0x41f554
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41f5a4]
test si, 4
je 0x41f568
or bl, 1
test si, 8
je 0x41f572
or bl, 4
test si, 1
je 0x41f57c
or bl, 8
test si, 2
je 0x41f586
or bl, 0x10
test si, 0x10
je 0x41f590
or bl, 0x20
push 0x12
call fcn.00405f4c
test ax, ax
jge 0x41f59f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x41f5a8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41f5e0]
push 0x10
call fcn.00405f4c
test ax, ax
jge 0x41f5c1
or bl, 1
push 0x11
call fcn.00405f4c
test ax, ax
jge 0x41f5d0
or bl, 4
test esi, 0x20000000
je 0x41f5db
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x423574
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x49a628]
cmp byte [eax + 0x7f], 0
jne 0x4235c7
cmp dword [0x49a654], 0
jne 0x4235a3
call fcn.004058e4
push eax
push 0
mov eax, 0x423530
push eax
push 3
call fcn.004061dc
mov dword [0x49a654], eax
cmp dword [0x49a658], 0
jne 0x4235c7
push esp
push 0
push 0
push 0x4234e0
push 0x3e8
push 0
call fcn.0040583c
mov dword [0x49a658], eax
pop edx
ret

Function at 0x4235cc
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x49a654], 0
je 0x4235e0
mov eax, dword [0x49a654]
push eax
call fcn.00406224
xor eax, eax
mov dword [0x49a654], eax
cmp dword [0x49a658], 0
je 0x4235fd
push 0
mov eax, dword [0x49a658]
push eax
call fcn.00405af4
xor eax, eax
mov dword [0x49a658], eax
ret

Function at 0x42369c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4236b3
add esp, 0xfffffff0
call fcn.00402d30
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00410230
mov dl, 1
mov eax, 0x40a4d4
call fcn.00402b30
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, 0x40a4d4
call fcn.00402b30
mov dword [ebx + 0x80], eax
xor eax, eax
mov dword [ebx + 0x40], eax
xor eax, eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x3c], 0x80000018
mov dword [ebx + 0x54], 0x1f4
mov dword [ebx + 0x58], 0x32
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x64], 0
mov byte [ebx + 0x7d], 1
mov dl, 1
mov eax, 0x419a0c
call fcn.0041da24
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x4237f4
mov eax, dword [0x49a014]
push eax
call fcn.00406074
mov edx, eax
mov eax, esi
call fcn.0041ddb0
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x424ab4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x49a014]
push eax
call fcn.00405944
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call fcn.004060ac
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.004074c8
test eax, eax
je 0x423790
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407330
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.004074a8
test eax, eax
je 0x4237a4
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call fcn.00405d7c
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040355c
cmp byte [0x49a034], 0
jne 0x4237d4
mov eax, ebx
call fcn.00423884
mov byte [ebx + 0x39], 1
mov byte [ebx + 0x3a], 1
cmp byte [ebp - 1], 0
je 0x4237ec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42428c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x7e], 0
je 0x4242be
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x20]
push eax
call fcn.00405fec
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004034e0
jmp 0x4242c8
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.00403494
add esp, 0x100
pop esi
pop ebx
ret
Function at 0x424c8c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x60]
test esi, esi
je 0x424cc4
mov eax, esi
call fcn.00418388
test al, al
je 0x424cc4
mov eax, dword [ebx + 0x60]
call fcn.004181f0
push eax
call fcn.0040604c
test eax, eax
je 0x424cc4
push 0
mov eax, dword [ebx + 0x60]
call fcn.004181f0
push eax
call fcn.004061fc
pop esi
pop ebx
ret

Function at 0x42cc98
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x42cce0
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0042cb8c
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call fcn.0040590c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cce7
lea eax, [ebp - 4]
call fcn.00403400
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403738
push eax
call fcn.0040590c
cmp eax, 0xffffffff
je 0x42cd09
test al, 0x10
je 0x42cd0d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403738
push eax
call fcn.0040590c
cmp eax, 0xffffffff
je 0x42cd56
test al, 0x10
je 0x42cd56
test ah, 4
je 0x42cd5a
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x42cd60
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
call fcn.00403728
xor eax, eax
push ebp
push 0x42ce52
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00403744
mov ebx, pe_nt_image_headers32
mov eax, esi
mov ecx, ebx
xor edx, edx
call fcn.004034e0
cmp dword [ebp + 0xc], 0
je 0x42cddd
mov eax, dword [ebp + 0xc]
call fcn.00403738
push eax
push ebx
mov eax, esi
call fcn.00403744
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp - 8]
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call fcn.0040595c
jmp 0x42ce06
push ebx
mov eax, esi
call fcn.00403744
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403738
push eax
mov eax, dword [ebp - 8]
call fcn.00403738
push eax
mov eax, dword [ebp - 4]
call fcn.00403738
push eax
call fcn.0040596c
test eax, eax
je 0x42ce16
mov eax, dword [esi]
call fcn.00403738
call fcn.004072c8
mov edx, ebx
sub edx, 8
cmp eax, edx
jl 0x42ce27
cmp ebx, 0x10000
jl 0x42ce31
mov edx, esi
xchg edx, eax
call fcn.004038a4
jmp 0x42ce3c
mov eax, ebx
add eax, eax
mov ebx, eax
jmp 0x42cd98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ce59
lea eax, [ebp - 0xc]
call fcn.00403400
ret