joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408ab8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov eax, 0x4c72c8
call fcn.004afeb0
mov word [ebp - 0x14], 0xc
mov edx, dword [ebp + 8]
xor ecx, ecx
mov dword [edx + 8], ecx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0xc], edx
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ecx + 0x30], eax
push 0x20
push 0
mov edx, dword [ebp + 8]
add edx, 0x10
push edx
call fcn.004afa34
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov dword fs:[0], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret

Function at 0x4171b0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4171fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00416ec0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x417217
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x417220
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00416ec0
dec esi
jne 0x417242
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4183b4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4d44d0
cmp dword [edi], 0
jne 0x418430
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4d44cc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4c73b0
mov ecx, 2
call fcn.0042dc3c
mov edx, 0x41838c
lea eax, [esi + 5]
call fcn.004183ac
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004183ac
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 0x418405
mov dword [0x4d44cc], 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 0x41a864
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.0042dfe8
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4d3944]
cmp byte [edx + 0xc], 0
je 0x41a8c8
mov edx, dword [0x4d3934]
cmp dword [edx], 2
jne 0x41a8c8
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret

Function at 0x41a8cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x41a984
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.0041a864
test al, al
je 0x41a966
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0042f5d4
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x41a966
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0042f974
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.ADVAPI32.DLL_RegEnumValueA
mov eax, dword [ebp - 4]
call fcn.0042f974
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0042f6dc
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x41a91f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a98b
lea eax, [ebp - 0x2c]
call fcn.0042f4e4
lea eax, [ebp - 4]
call fcn.0042f4e4
ret

Function at 0x41aa84
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.0042f974
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x41aadc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4d390c]
mov dl, 1
mov eax, dword [0x41a33c]
call fcn.004215e8
call fcn.0042ef40
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041a444
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 0x41b460
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40bbf0]
call fcn.0042ff74
xor eax, eax
push ebp
push 0x41b601
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c73f8], 0
jne 0x41b4bb
mov ecx, dword [0x4d3bec]
mov dl, 1
mov eax, dword [0x41c540]
call fcn.004215ac
call fcn.0042ef40
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.0042dfe8
mov eax, ebx
call fcn.0042fe24
mov dword [ebp - 0x24], eax
mov esi, 0x41b610
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00431134
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.0042fe34
test eax, eax
jle 0x41b5a4
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x41b590
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.0042f754
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x41b536
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.0042f76c
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x41b54c
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.0042f76c
mov eax, dword [ebp - 0x54]
call fcn.0042f974
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.0042f754
mov eax, dword [ebp - 0x58]
call fcn.0042f974
push eax
push 1
push 0x400
call sub.KERNEL32.DLL_CompareStringA
sub eax, 2
test eax, eax
sete al
jmp 0x41b592
xor eax, eax
test al, al
je 0x41b59d
mov ebx, 0x15
jmp 0x41b5a9
mov ebx, 0x10
jmp 0x41b5a9
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4c73f8]
call fcn.0041b2e0
mov eax, dword [ebp - 4]
call fcn.0041b2e0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.0043114c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b608
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.0042f508
lea eax, [ebp - 0xc]
mov edx, dword [0x40bbf0]
call fcn.00430044
ret
Function at 0x41d320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41d372
test eax, edx
je 0x41d375
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x41d335
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 0x41d35b
add ecx, 4
js 0x41d34b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x41d358
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 0x41d381
test edx, edx
jne 0x41d328
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0042f974
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x41e02d
test al, 0x10
je 0x41e031
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x420d1c
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x420d55
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0042f5d4
jmp 0x420d5e
mov eax, ebx
mov edx, esi
call fcn.0042f538
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x420d68
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x420d8a
movzx eax, byte [esp]
jmp 0x420d8c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42141c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x421294
mov eax, dword [0x4d3b18]
cmp byte [eax], 0
je 0x421498
mov eax, dword [0x4d3b1c]
call fcn.0042de38
call fcn.0042dba8
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.0041e31c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4214e0
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x4214ce
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4d39b8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4d4114]
call fcn.00430b38
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret
Function at 0x421d98
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 0x421e6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0042f57c
lea eax, [ebp - 4]
call fcn.0042f9cc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0042f974
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x421e58
mov eax, ebx
call fcn.0042d9dc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x421e51
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.0042f974
push eax
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x421e3b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x421e80
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x421e3b
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 0x421e58
mov eax, dword [ebp - 0x10]
call fcn.0042d9f8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421e75
lea eax, [ebp - 4]
call fcn.0042f4e4
ret

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

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

Function at 0x42e4c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4c7850]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x42e55c
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x42e53c
xor eax, eax
push ebp
push 0x42e535
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 0x42e578
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 0x42e53c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
movzx eax, word [0x4c7850]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4c7850], ax
mov esp, ebp
pop ebp
ret
Function at 0x42f2b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d671c], 0
je 0x42f311
cmp word [0x4d68f0], 0xd7b2
jne 0x42f2d9
cmp dword [0x4d68f8], 0
jbe 0x42f2d9
mov eax, 0x4d68ec
call dword [0x4d6908]
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 0x42f338
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4c785c], 0
jne 0x42f32d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x42f468
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4c7838], 0
je 0x42f48e
mov edx, esi
mov eax, ebx
call dword [0x4c7838]
jmp 0x42f49d
mov eax, 8
call fcn.0042d9dc
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4d671d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x42f430
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x430d54
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x430f84
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x430dd7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x430f84
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x430dd7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x430fa0
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x430e60
xor eax, eax
push ebp
push 0x430e59
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00430b90
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x430e3e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x430fc0
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x430e3e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430e60
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x430f7a
cmp byte [ebp - 0xd], 0
jne 0x430ea7
cmp byte [ebp - 0x12], 0
je 0x430f7a
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x430ec0
dec ebx
cmp byte [ebx], 0x2e
je 0x430ecf
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x430ebf
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x430f7a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x430f0c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x430f7a
cmp byte [ebp - 0xd], 0
je 0x430f7a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x430f7a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4316cc
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x4d6c94], 1
jae 0x431760
call fcn.0042d7b8
mov byte [0x4c784c], 2
mov dword [0x4d66e0], 0x4c353a
mov dword [0x4d66e4], 0x4c3552
mov byte [0x4d671e], 2
mov dword [0x4d66cc], 0x430530
call fcn.0042e494
test al, al
je 0x431718
call fcn.0042e4c4
call fcn.0042e588
mov word [0x4d6724], 0xd7b0
mov word [0x4d68f0], 0xd7b0
mov word [0x4d6abc], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4d6710], eax
call fcn.0042beb8
mov dword [0x4d670c], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x4d6c98], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4d6704], eax
ret

Function at 0x44176c
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.0042f4e4
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4417ba
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.0042f754
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x445840
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 0x445973
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 [0x41a39c]
call fcn.0041a46c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x445949
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, SysReAllocStringLen
mov eax, dword [ebp - 0xc]
call fcn.0041a50c
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.0042f754
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x445988
call fcn.0042f7fc
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041a694
lea ecx, [ebp - 4]
mov edx, 0x4459c4
mov eax, dword [ebp - 0xc]
call fcn.0041aa0c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0042323c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x44592c
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4459d0
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4c8630]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445933
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret
Function at 0x445a20
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 0x445a67
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x445a4a
add bx, 0x2000
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x445a5b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x445a67
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x44850c
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 0x448512
ret
Function at 0x4537e4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_GetWindowLongA
mov edi, eax
test bl, bl
je 0x453805
test edi, 0x40000
je 0x45381f
test bl, bl
jne 0x4538a0
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x4538a0
push esi
call sub.USER32.DLL_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.USER32.DLL_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x453852
push 0
push esi
call sub.USER32.DLL_ShowWindow
test bl, bl
je 0x453867
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongA
jmp 0x453876
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x453887
cmp byte [esp + 2], 0
je 0x4538a0
cmp byte [esp + 2], 0
je 0x453898
push 6
push esi
call sub.USER32.DLL_ShowWindow
jmp 0x4538a0
push 5
push esi
call sub.USER32.DLL_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x453b44
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.USER32.DLL_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x453b6a
mov eax, esp
push eax
push 0x453b0c
call sub.USER32.DLL_EnumWindows
jmp 0x453b7d
mov eax, esp
push eax
push 0x453aec
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
call sub.USER32.DLL_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x453c08
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x453c5c]
test si, 4
je 0x453c1d
or bl, 1
test si, 8
je 0x453c27
or bl, 4
test si, 1
je 0x453c31
or bl, 8
test si, 2
je 0x453c3b
or bl, 0x10
test si, 0x10
je 0x453c45
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x453c54
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x453c60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x453c9c]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x453c7a
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x453c89
or bl, 4
test esi, 0x20000000
je 0x453c94
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret