joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409da7
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.004186ba
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.004186ba
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
jne 0x409e23
mov eax, dword [0x5cea80]
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
push 0
push 0x1f0fff
mov eax, 0xf
call fcn.004186cc
cmp dword [ebp - 0x18], esp
je 0x409e4f
push 6
call fcn.004186c6
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0xf01ff
push dword [ebp - 4]
mov eax, 0x24
call fcn.004186cc
cmp dword [ebp - 0x18], esp
je 0x409e7d
push 6
call fcn.004186c6
add esp, 4
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
push str.SeDebugPrivilege
push 0
mov eax, 0x25
call fcn.004186cc
cmp dword [ebp - 0x18], esp
je 0x409ea9
push 6
call fcn.004186c6
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 0x26
call fcn.004186cc
cmp dword [ebp - 0x18], esp
je 0x409f38
push 6
call fcn.004186c6
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
mov eax, 0x10
call fcn.004186cc
cmp dword [ebp - 0x18], esp
je 0x409f5d
push 6
call fcn.004186c6
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x409f65
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.004186ae
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.004186ae
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x44fd80
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a1ca8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x44fdb9
inc eax
mov dword [esi + 0x10], eax
jmp 0x44fecc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x44fdcd
mov eax, 0xffffffc7
jmp 0x44fece
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x44fdde
cmp dword [esi + 8], eax
jne 0x44fdcd
cmp dword [esi + 8], eax
jne 0x44fdf7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x44fdf7
mov eax, 0xffffffc7
jmp 0x44fece
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x44fe0b
push eax
mov ecx, ebx
call fcn.0044f5b0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0041bc10
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x44fe3c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0041bc30
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0044ed20
test eax, eax
mov dword [esp + 0x38], eax
je 0x44fe6f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5a7180
call fcn.0041be10
mov eax, dword [esp + 0x38]
jmp 0x44fece
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0044fbe0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x44feb3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0044fc00
mov esi, eax
test esi, esi
jne 0x44fee3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0044fbe0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x44fe85
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5a7180
call fcn.0041be10
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5a7180
call fcn.0041be10
mov eax, esi
jmp 0x44fece
Function at 0x459b90
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a2363
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00493135
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x5acdd0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x5aa700
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4a40d8]
push eax
mov ecx, edi
call fcn.004988ad
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00499e48
test eax, eax
je 0x459cac
mov ecx, dword [esp + 0x3c]
call fcn.004988da
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4a468c]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x459c70
push edi
mov ecx, esi
call fcn.00495e93
mov ecx, esi
call fcn.00459e10
cmp dword [esp + 0x38], 1
jne 0x459ca5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00495ffd
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x45c6e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45c713
push esi
call fcn.0045f7f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45c70c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45c799
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45c782
mov eax, dword [esi + 8]
test eax, eax
je 0x45c737
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45c77e
cmp eax, 2
je 0x45c782
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45c72a
cmp eax, 3
je 0x45c75d
cmp eax, 1
jne 0x45c72a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45c72a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45c72a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045c7c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45c7a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045c7c0
add esp, 4
pop esi
ret
Function at 0x40b590
Capabilities:
Encode data using xor

Disassembly:
xchg ecx, eax
scasb al, byte es:[edi]
lcall 0x7a27, 0x8e788734
mov fs, word [edi]
jp 0x40b554
mov al, cl
xlatb
push ss
cwde
daa
jp 0x40b554
mov al, cl
xlatb
push ss
neg dword [edi]
mov esi, 0x3480c120
jge 0x40b57c
inc esp
fucomp st(3)
jmp 0x56bea046
nop
cld
xchg ebp, eax
lcall 0xab50, 0x3baf74fd
jmp esi
mov byte [0x3082c8d], al
mov esi, 0x26444439
and ebx, dword [edx + ecx]
fbstp tbyte [ebx - 0x30adfd3d]
xor dword [esi - 0x60], 0x9c998ad
jbe 0x40b532
lodsd eax, dword [esi]
cwde
leave
or dword [edi + 0x7b29e756], ebp
invalid
jbe 0x40b532
lodsd eax, dword [esi]
cwde
leave
or dword [edi + 0x7b29e756], ebp
stc
stc
test al, 0x7f
cmc
in al, dx
xchg word [esi + esi*4], si
test eax, 0x5bc868ef
outsd dx, dword [esi]
pop ds
jno 0x40b539
xchg esi, eax
das
sub al, 0x68
xor dword [edi + 0x3e65c4f8], edx
xor dword [eax - 0x52b89f35], ecx
jle 0x40b566
jp 0x40b611
adc bh, ch
stc
fld qword [edx - 0x262548ef]
mul esi
add edx, ecx
salc
push cs
cmp edx, dword [esp + 0x14]
ja 0x40b627
pop ecx
idiv byte [ebx]
inc esp
and al, 0x10
jbe 0x40b626
dec esi
xor edx, edx
outsd dx, dword [esi]
invalid
shr byte [edi - 0x3a], cl
dec edi
jne 0x40b685
sub al, byte [edi - 0x257c2709]
add byte [ebx + 0x5e], bl
pop edi
ret 0xb585
inc ecx
add byte [ecx], bh
or al, bh
adc eax, 0x40a0d8
mov edi, dword [edx + edx*8 + 0xb]
inc ecx
add byte [ecx - 0x3f233cf8], cl
inc eax
add byte [ebx], bh
mov dword [0x53414050], eax
call fcn.0040b947
cmp dword [0x410250], 0
jne 0x40b6bd
push 0x401e44
call dword [0xd14fa2]
pop ecx
mov edi, 0xb8000270
push 0x40ff0c
push 0x40d064
call 0x6ed1b92c
adc eax, 0x415890
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x24]
push eax
push dword [0x270b8c]
lea ecx, [eax + 0x39]
push eax
lea eax, [ebp - 0x4e]
insd dword es:[edi], dx
lea eax, [ebp - 0x51]
push eax
call dword [0x40dbe8]
push 0x40d004
lcall 0x28e8, 0x9d097
add al, byte [eax]
add cl, ch
adc eax, sym.imp.MSVCRT.dll___p___initenv
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
call [eax]
aam 0xd1
jne 0x40b6fc
ror byte [ecx], 1
add al, ch
sub byte [edx], al
add byte [eax], al
jmp 0x4101a31e
call 0xc4400f49
add esp, 0x19
mov dword [ebp - 0x24], eax
push eax
call dword [0xa80270]
mov esp, dword [edx]
in al, dx
mov ecx, dword [eax]
mov ecx, dword [ecx]
je 0x40b780
rcl byte [eax - 0x62]
call 0xa0b926
pop ecx
test bl, 0x8b
call 0x62d44
adc eax, 0x47402c1f
int3
sbb eax, 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x53], edx
das
sal byte [ebp + 0x1b], 0xba
dec esp
and al, 0x14
mov eax, dword [esp + 0x10]
xor eax, dword [edi + 0x4437f1f7]
and al, 0xc
invalid
Function at 0x402db7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x40c058]
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402e29
cmp dword [ebp - 0x10], 2
jne 0x402e09
cmp dword [ebp - 0x1c], 5
push 0
sbb eax, eax
neg eax
mov dword [0x40c0ac], eax
pop eax
sete al
mov dword [0x40c0b4], 1
mov dword [0x40c0b0], eax
jmp 0x402e29
cmp dword [ebp - 0x10], 1
jne 0x402e29
xor eax, eax
cmp dword [ebp - 0x18], eax
sete al
xor ecx, ecx
test eax, eax
sete cl
mov dword [0x40c0a4], eax
mov dword [0x40c0a8], ecx
mov ecx, dword [ebp + 0x74]
call fcn.0040a1ae
add ebp, 0x78
leave
ret

Function at 0x402ec5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x40c058]
push ebx
push edi
mov dword [ebp + 0x18c], eax
lea eax, [ebp - 0x78]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x4014ac
push 0x80000002
mov dword [ebp - 0x78], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0x3f
xor eax, eax
cmp dword [ebp - 0x78], ebx
mov byte [ebp + 0x8c], bl
pop ecx
lea edi, [ebp + 0x8d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x7c], ebx
je 0x402f7c
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x8c]
push eax
push ebx
push ebx
push 0x4014d4
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 0xc
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402f6e
lea ecx, [ebp + 0x8c]
call fcn.00409a9d
cmp eax, 4
jge 0x402f67
lea eax, [ebp + 0x8c]
push eax
call sub.MSVCRT.dll_atoi
cmp eax, 0x483
pop ecx
jl 0x402f6e
mov dword [ebp - 0x7c], 1
push dword [ebp - 0x78]
call dword [entry0]
cmp dword [ebp - 0x7c], ebx
jne 0x402fce
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x3f
pop ecx
xor eax, eax
mov byte [ebp - 0x74], bl
lea edi, [ebp - 0x73]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0xff
push edi
lea eax, [ebp + 0x8c]
push eax
push 0x6d
push dword [0x40c0a0]
call esi
push edi
lea eax, [ebp - 0x74]
push eax
push 0x6e
push dword [0x40c0a0]
call esi
push 0x30
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x8c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
mov ecx, dword [ebp + 0x18c]
mov eax, dword [ebp - 0x7c]
pop edi
pop ebx
call fcn.0040a1ae
add ebp, 0x190
leave
ret
Function at 0x404b1e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x40c058]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.00404a54
cmp eax, esi
jne 0x404ba6
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x404b6f
lea eax, [ebp - 0x70]
push eax
call fcn.00404b1e
cmp eax, esi
jne 0x404ba5
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x404b62
call fcn.00404a3d
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.00404a3d
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.0040a1ae
add ebp, 0x94
leave
ret 4
Function at 0x404f83
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x404f8e
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x405946
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [0x40c0a4], esi
mov dword [ebp - 4], esi
je 0x405971
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x26
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x4059cb
mov dword [ebp - 4], esi
jmp 0x4059cb
lea eax, [ebp - 0xc]
push eax
push 1
push esi
push 0x4018f8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4059cb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 0x4018e8
push dword [ebp - 0xc]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4059c2
cmp dword [ebp - 8], 2
jne 0x4059c2
cmp byte [ebp - 0x10], 0x30
je 0x4059c2
mov dword [ebp - 4], 1
push dword [ebp - 0xc]
call dword [entry0]
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x405fb8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x64], edi
je 0x4060dd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push 0x401720
push 0x80000001
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [ebp - 8], edi
je 0x4060dd
push ebx
mov ecx, esi
call fcn.00405f71
push 4
pop ebx
push ebx
mov dword [0x40c02c], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x401790
push dword [ebp - 8]
call edi
cmp dword [esi + 0x54], 0
je 0x406042
mov eax, dword [0x40c02c]
sub dword [esi + 0x18], eax
mov eax, dword [0x40c02c]
sub dword [esi + 8], eax
mov eax, dword [0x40c02c]
add dword [esi + 0x20], eax
movzx eax, word [esi + 0x18]
movzx ecx, word [esi + 0x1c]
shl eax, 0x10
or eax, ecx
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0x401754
push dword [ebp - 8]
call edi
movzx eax, word [esi + 0x20]
movzx ecx, word [esi + 0x24]
shl eax, 0x10
or eax, ecx
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0x401764
push dword [ebp - 8]
call edi
mov eax, dword [esi + 8]
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0x401778
push dword [ebp - 8]
call edi
mov eax, dword [esi]
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0x401784
push dword [ebp - 8]
call edi
cmp dword [esi + 0x54], 0
pop ebx
je 0x4060d4
mov eax, dword [0x40c02c]
add dword [esi + 0x18], eax
mov eax, dword [0x40c02c]
add dword [esi + 8], eax
mov eax, dword [0x40c02c]
sub dword [esi + 0x20], eax
push dword [ebp - 8]
call dword [entry0]
pop edi
pop esi
leave
ret

Function at 0x406747
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
mov esi, ecx
call edi
test ax, ax
jl 0x406772
push 2
call edi
test ax, ax
jl 0x406772
and dword [0x40c164], 0
jmp 0x40677c
mov dword [0x40c164], 1
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
sub edx, ecx
mov dword [esi + 0x28], edx
mov edx, dword [ebp - 4]
sub edx, eax
cmp dword [esi], 0xffffffff
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ecx
mov dword [esi + 0x2c], edx
lea eax, [esi + 0x18]
je 0x4067b0
lea eax, [esi + 8]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x34]
mov dword [eax + 0xc], ecx
mov ecx, dword [esi + 0x28]
mov dword [eax], ecx
mov ecx, dword [esi + 0x2c]
pop edi
mov dword [eax + 4], ecx
pop esi
leave
ret
Function at 0x4079ca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push 0x20019
xor esi, esi
push esi
push 0x401720
push 0x80000001
mov edi, ecx
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 0xc], esi
je 0x407b04
push ebx
push 4
pop ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x401790
push dword [ebp - 0xc]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x407a2c
mov eax, dword [ebp - 4]
mov dword [0x40c02c], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x401754
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x407a5c
mov eax, dword [ebp - 4]
shr eax, 0x10
movsx eax, ax
mov dword [edi + 0x18], eax
movsx eax, word [ebp - 4]
mov dword [edi + 0x1c], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x401764
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x407a8c
mov eax, dword [ebp - 4]
shr eax, 0x10
movsx eax, ax
mov dword [edi + 0x20], eax
movsx eax, word [ebp - 4]
mov dword [edi + 0x24], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x401778
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x407aaf
mov eax, dword [ebp - 4]
mov dword [edi + 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x401784
push dword [ebp - 0xc]
mov dword [ebp - 8], ebx
call esi
test eax, eax
pop ebx
jne 0x407ad2
mov eax, dword [ebp - 4]
mov dword [edi], eax
cmp dword [edi], 0xffffffff
lea eax, [edi + 0x18]
je 0x407add
lea eax, [edi + 8]
mov ecx, dword [eax + 8]
mov dword [edi + 0x30], ecx
mov ecx, dword [eax + 0xc]
mov dword [edi + 0x34], ecx
mov ecx, dword [eax]
mov dword [edi + 0x28], ecx
mov eax, dword [eax + 4]
mov ecx, edi
mov dword [edi + 0x2c], eax
call fcn.0040624b
push dword [ebp - 0xc]
call dword [entry0]
pop edi
pop esi
leave
ret
Function at 0x409ac2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x401a10
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp dword [ebp - 4], esi
mov dword [ebp - 8], esi
je 0x409b1f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x401ca8
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [entry0]
mov eax, dword [ebp - 8]
cmp eax, esi
jne 0x409b2e
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
cmp eax, esi
jne 0x409b2e
mov eax, 0x409
pop esi
leave
ret

Function at 0x409e8b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, edx
sar edx, 4
push edi
and esi, 0xf
inc edx
movzx eax, dx
push 6
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x409ec2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409ec2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
jne 0x409ec6
xor eax, eax
jmp 0x409f07
test esi, esi
jbe 0x409ed4
dec esi
movzx eax, word [ecx]
lea ecx, [ecx + eax*2 + 2]
jne 0x409eca
movzx eax, word [ecx]
mov esi, dword [esp + 0xc]
and word [esi], 0
inc ecx
lea edx, [eax + 1]
inc ecx
cmp edx, dword [esp + 0x10]
ja 0x409f07
test eax, eax
jbe 0x409f02
mov edx, esi
sub ecx, esi
mov edi, eax
push ebx
mov bx, word [ecx + edx]
mov word [edx], bx
inc edx
inc edx
dec edi
jne 0x409ef5
pop ebx
and word [esi + eax*2], 0
pop edi
pop esi
ret 8

Function at 0x40a1ae
Capabilities:
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x40c058]
push edi
mov dword [ebp + 0x2a4], eax
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x80], 0xc0000409
lea eax, [ebp + 0x2ac]
mov eax, dword [eax]
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x28], 0x10001
mov eax, dword [eax]
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.0040a1ae
pop edi
add ebp, 0x2a8
leave
ret
cmp ecx, dword [0x40c058]
jne 0x40a1b7
ret
jmp 0x40a099