joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10061ad4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10061b71
push ebx
push esi
call fcn.10061a9d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10061a31
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10061b1e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10061b70
push edi
push eax
call fcn.1005dd74
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10061b3e
call fcn.1005cf58
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10061b6f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10061a31
add esp, 0x20
test eax, eax
jne 0x10061b5d
push edi
call fcn.1005cf58
jmp 0x10061b65
push ebx
call fcn.1005cf58
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10061b74
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10061b85
pop esi
ret
push ebx
push edi
push esi
call fcn.10061a9d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1005dd74
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10061bad
push ebx
push esi
push edi
call fcn.10049850
add esp, 0xc
push 0
call fcn.1005cf58
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10062307
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10061e22

Function at 0x10064e0a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1005a0fb
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10064e79
cmp esi, dword [ebp - 4]
je 0x10064e74
cmp dword [ebp + 0xc], 0
je 0x10064e74
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10064e51
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1006495c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10064e7b
xor eax, eax
inc eax
jmp 0x10064e7b
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10064ee0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100ff440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1005a0fb
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1005a0fb
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10064f57
cmp word [ecx], dx
je 0x10064f57
mov eax, dword [0x100b1ea4]
push edi
dec eax
push eax
push 0x100b1d90
call fcn.10064e7f
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10064fca
cmp word [eax], dx
je 0x10064fca
mov eax, dword [edi]
test eax, eax
je 0x10064f7b
cmp word [eax], dx
je 0x10064f7b
lea eax, [ebp - 0x10]
push eax
call fcn.10064862
jmp 0x10064f84
lea eax, [ebp - 0x10]
push eax
call fcn.100648fd
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10064ff4
mov eax, dword [0x100b1d8c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100b1a80
call fcn.10064e7f
add esp, 0xc
test al, al
je 0x10064ff4
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10064fbf
cmp word [eax], di
je 0x10064fbf
lea eax, [ebp - 0x10]
push eax
call fcn.10064862
pop ecx
jmp 0x10064ff6
lea eax, [ebp - 0x10]
push eax
call fcn.100648fd
jmp 0x10064fbc
mov eax, dword [edi]
test eax, eax
je 0x10064fe1
cmp word [eax], dx
je 0x10064fe1
lea eax, [ebp - 0x10]
push eax
call fcn.10064817
pop ecx
jmp 0x10064ff4
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100650bf
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10064d04
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100650bf
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100650bf
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100650bf
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1006504c
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1005d5c9
test ebx, ebx
je 0x100650ba
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1005d5c9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100650bf
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100650bf
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1006ad20
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100650c1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10047c35
leave
ret
Function at 0x1006b055
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1006afd1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1006b1c4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1006b1c4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1006b179
jg 0x1006b0b1
test eax, eax
je 0x1006b16f
push 1
push 0x1000
call fcn.1005cefb
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1006b0d4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1006b166
push 0x8000
push ebx
call fcn.1004f79d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1006b0fd
jg 0x1006b0f8
cmp ecx, 0x1000
jb 0x1006b0fd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100669ff
add esp, 0x10
cmp eax, 0xffffffff
je 0x1006b142
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1006b0f8
jl 0x1006b129
test ecx, ecx
jne 0x1006b0ea
push dword [ebp - 0xc]
push ebx
call fcn.1004f79d
push esi
call fcn.1005cf58
add esp, 0xc
xor ebx, ebx
jmp 0x1006b1d2
cmp byte [edi + 0x24], 0
je 0x1006b159
cmp dword [edi + 0x20], 5
jne 0x1006b159
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1006b164
mov ebx, dword [edi + 0x18]
jmp 0x1006b166
xor ebx, ebx
push esi
call fcn.1005cf58
pop ecx
jmp 0x1006b1d2
test ecx, ecx
jg 0x1006b13b
jl 0x1006b179
test eax, eax
jae 0x1006b13b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10059d33
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1006b199
cmp byte [edi + 0x1c], 0
je 0x1006b13b
jmp 0x1006b1ca
push ebx
call fcn.1005f89d
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1006b13b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1006b1d2
cmp byte [edi + 0x1c], 0
je 0x1006b1cf
mov ebx, dword [edi + 0x18]
jmp 0x1006b1d2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10059d33
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1007e118
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x1007e139
jl 0x1007e130
test edi, edi
jne 0x1007e139
xor eax, eax
xor edx, edx
jmp 0x1007e1fa
cmp dword [ebx + 0x38], 0
je 0x1007e14e
push eax
push edi
push dword [ebp + 8]
call fcn.10071a50
jmp 0x1007e1fa
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1007e195
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x1007e195
cmp eax, edi
jb 0x1007e16f
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.10049850
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x1007e19b
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1007e1ef
mov ecx, ebx
call fcn.1007da8a
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x1007e1da
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.10055e1e
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x1007e1ef
jmp 0x1007e1ad
test edx, edx
je 0x1007e1ef
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.10055e1e
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x1007f5f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1007f61d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1007f61d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402f7c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x40367c
Capabilities:
Query or enumerate registry value

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

Function at 0x404520
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4c3048], 0
je 0x404581
cmp word [0x4c321c], 0xd7b2
jne 0x404549
cmp dword [0x4c3224], 0
jbe 0x404549
mov eax, 0x4c3218
call dword [0x4c3234]
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 0x4045a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x472030], 0
jne 0x40459d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408124
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4081b4
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4081b4
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408167
test edx, 3
jne 0x408156
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408161
jmp 0x408167
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408167
cmp dword [ecx - 8], 1
je 0x408171
mov edx, ebx
or edx, 3
call fcn.00404dec
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408183
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046a0

Function at 0x4081c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408250
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408250
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408203
test edx, 3
jne 0x4081f2
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4081fd
jmp 0x408203
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408203
cmp dword [ecx - 8], 1
je 0x40820d
mov edx, ebx
or edx, 3
call fcn.00404dec
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40821f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004046a0

Function at 0x40b4b4
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 0x40b4ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404790
jmp 0x40b4f6
mov eax, ebx
mov edx, esi
call fcn.004046f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b500
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 0x40b522
movzx eax, byte [esp]
jmp 0x40b524
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bbb4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba2c
mov eax, dword [0x4c1f74]
cmp byte [eax], 0
je 0x40bc30
mov eax, dword [0x4c1d94]
call fcn.00403044
call fcn.00402de8
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.00408c4c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bc78
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bc66
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4c1d40]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c57f4]
call fcn.004058bc
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c4c4
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 0x40c59a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404738
lea eax, [ebp - 4]
call fcn.00404bb4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b64
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c584
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c57d
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.00404b64
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c567
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c5ac
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c567
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 0x40c584
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5a1
lea eax, [ebp - 4]
call fcn.004046a0
ret
Function at 0x41b1c8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4c6300
cmp dword [edi], 0
jne 0x41b244
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4c62fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x472ad8
mov ecx, 2
call fcn.00402e7c
mov edx, 0x41b1a0
lea eax, [esi + 5]
call fcn.0041b1c0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b1c0
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 0x41b219
mov dword [0x4c62fc], 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 0x41d720
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.00404b64
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d778
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4c208c]
mov dl, 1
mov eax, dword [0x41d244]
call fcn.0040bd74
call fcn.004040e8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d34c
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 0x41e908
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 0x41e90e
ret
Function at 0x42ee94
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.004046a0
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42eee2
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.00404910
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432f64
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 0x433097
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 [0x41d2a4]
call fcn.0041d374
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x43306d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d414
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404910
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x4330ac
call fcn.004049b0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d478
lea ecx, [ebp - 4]
mov edx, 0x4330e8
mov eax, dword [ebp - 0xc]
call fcn.0041d6a8
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d810
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x433050
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4330f4
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 [0x473494]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x433057
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x433144
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 0x43318b
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43316e
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43317f
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x43318b
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x437fc4
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 [0x4c6534], 0
je 0x43810d
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4c1f14]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x43810d
mov eax, dword [0x4c6538]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4c6534]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4380dc
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4c6534]
call fcn.004142b0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4380d4
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x4380d4
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4380d4
mov eax, dword [ebp - 0x14]
call fcn.00442310
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4380d4
push ebp
call fcn.00437f80
pop ecx
test al, al
jne 0x4380d4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403a70
test al, al
je 0x4380d4
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.00403a70
cmp byte [ebp - 1], 0
je 0x4380d4
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4380d4
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4c6538]
call fcn.004376f0
inc edi
dec ebx
jne 0x438029
mov eax, dword [0x4c6538]
cmp dword [eax + 8], 0
jle 0x4380f4
mov eax, dword [0x4c6538]
call fcn.004377a8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43810d
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00437de4
pop ecx
test al, al
jne 0x43810d
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