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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0x10], 8
mov eax, dword [ebp + 8]
mov dx, word [eax]
mov word [ebp - 2], dx
add dword [ebp + 8], 2
mov ecx, dword [ebp + 8]
mov ax, word [ecx]
mov word [ebp - 4], ax
add dword [ebp + 8], 2
mov edx, dword [ebp + 8]
mov cx, word [edx]
mov word [ebp - 6], cx
add dword [ebp + 8], 2
mov eax, dword [ebp + 8]
mov dx, word [eax]
mov word [ebp - 8], dx
mov ecx, dword [ebp + 0x10]
add dword [ebp + 0x10], 2
mov ax, word [ecx]
push eax
mov dx, word [ebp - 2]
and dx, 0xffff
push edx
call fcn.0040e10c
add esp, 8
mov word [ebp - 2], ax
mov ecx, dword [ebp + 0x10]
mov ax, word [ecx]
add word [ebp - 4], ax
add dword [ebp + 0x10], 2
mov edx, dword [ebp + 0x10]
mov cx, word [edx]
add word [ebp - 6], cx
add dword [ebp + 0x10], 2
mov eax, dword [ebp + 0x10]
add dword [ebp + 0x10], 2
mov dx, word [eax]
push edx
mov cx, word [ebp - 8]
and cx, 0xffff
push ecx
call fcn.0040e10c
add esp, 8
mov word [ebp - 8], ax
mov ax, word [ebp - 2]
xor ax, word [ebp - 6]
mov word [ebp - 0xc], ax
mov edx, dword [ebp + 0x10]
add dword [ebp + 0x10], 2
mov cx, word [edx]
push ecx
mov ax, word [ebp - 0xc]
and ax, 0xffff
push eax
call fcn.0040e10c
add esp, 8
mov word [ebp - 0xc], ax
mov dx, word [ebp - 4]
xor dx, word [ebp - 8]
add dx, word [ebp - 0xc]
mov word [ebp - 0xa], dx
mov ecx, dword [ebp + 0x10]
add dword [ebp + 0x10], 2
mov ax, word [ecx]
push eax
mov dx, word [ebp - 0xa]
and dx, 0xffff
push edx
call fcn.0040e10c
add esp, 8
mov word [ebp - 0xa], ax
mov cx, word [ebp - 0xa]
add word [ebp - 0xc], cx
mov ax, word [ebp - 0xa]
xor word [ebp - 2], ax
mov dx, word [ebp - 0xc]
xor word [ebp - 8], dx
mov cx, word [ebp - 4]
xor word [ebp - 0xc], cx
mov ax, word [ebp - 6]
xor ax, word [ebp - 0xa]
mov word [ebp - 4], ax
mov dx, word [ebp - 0xc]
mov word [ebp - 6], dx
dec dword [ebp - 0x10]
jne 0x40df88
mov ecx, dword [ebp + 0x10]
add dword [ebp + 0x10], 2
mov ax, word [ecx]
push eax
mov dx, word [ebp - 2]
and dx, 0xffff
push edx
call fcn.0040e10c
add esp, 8
mov word [ebp - 2], ax
mov ecx, dword [ebp + 0xc]
mov ax, word [ebp - 2]
mov word [ecx], ax
add dword [ebp + 0xc], 2
mov dx, word [ebp - 6]
mov ecx, dword [ebp + 0x10]
add dx, word [ecx]
mov eax, dword [ebp + 0xc]
mov word [eax], dx
add dword [ebp + 0x10], 2
add dword [ebp + 0xc], 2
mov dx, word [ebp - 4]
mov ecx, dword [ebp + 0x10]
add dx, word [ecx]
mov eax, dword [ebp + 0xc]
mov word [eax], dx
add dword [ebp + 0x10], 2
add dword [ebp + 0xc], 2
mov edx, dword [ebp + 0x10]
mov cx, word [edx]
push ecx
mov ax, word [ebp - 8]
and ax, 0xffff
push eax
call fcn.0040e10c
add esp, 8
mov word [ebp - 8], ax
mov edx, dword [ebp + 0xc]
mov cx, word [ebp - 8]
mov word [edx], cx
mov esp, ebp
pop ebp
ret
Function at 0x41cc28
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x482d14
cmp dword [edi], 0
jne 0x41cca4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x482d10]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47e4a8
mov ecx, 2
call fcn.00430ca8
mov edx, 0x41cc00
lea eax, [esi + 5]
call fcn.0041cc20
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041cc20
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 0x41cc79
mov dword [0x482d10], 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 0x41e05c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41e1c5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00432600
mov eax, dword [ebp - 0x10]
call fcn.0041ddc4
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x41e0ae
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00432ab8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0041e444
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41e183
xor eax, eax
push ebp
push 0x41e17c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0041df34
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0041e1d4
test al, al
je 0x41e15a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00432658
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x41e15a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00432a18
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x41e154
mov eax, dword [ebp - 0x14]
call fcn.00432a18
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00432758
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0041e05c
dec ebx
cmp ebx, 0xffffffff
jne 0x41e10d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e183
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0041df34
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 0x10]
call fcn.00432a18
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0041df20
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e1cc
lea eax, [ebp - 0x3c]
call fcn.00432568
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0043258c
ret
Function at 0x41e183
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41e1c5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00432600
mov eax, dword [ebp - 0x10]
call fcn.0041ddc4
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x41e0ae
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00432ab8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0041e444
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x41e183
xor eax, eax
push ebp
push 0x41e17c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0041df34
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.0041e1d4
test al, al
je 0x41e15a
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00432658
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x41e15a
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00432a18
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x41e154
mov eax, dword [ebp - 0x14]
call fcn.00432a18
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00432758
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.0041e05c
dec ebx
cmp ebx, 0xffffffff
jne 0x41e10d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e183
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0041df34
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 0x10]
call fcn.00432a18
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.0041df20
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e1cc
lea eax, [ebp - 0x3c]
call fcn.00432568
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0043258c
ret

Function at 0x41e1d4
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.00431330
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 [0x482864]
cmp byte [edx + 0xc], 0
je 0x41e238
mov edx, dword [0x48285c]
cmp dword [edx], 2
jne 0x41e238
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 0x41e358
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0041ddd8
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00432a18
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x41e3b6
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x482840]
mov dl, 1
mov eax, dword [0x41dcd0]
call fcn.00424518
call fcn.004321c8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41e3c0
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.00432a18
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x41e418
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x48283c]
mov dl, 1
mov eax, dword [0x41dcd0]
call fcn.00424518
call fcn.004321c8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041de08
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 0x420f3c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00432a18
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x420f55
test al, 0x10
jne 0x420f59
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x423c74
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 0x423cad
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00432658
jmp 0x423cb6
mov eax, ebx
mov edx, esi
call fcn.004325bc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x423cc0
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 0x423ce1
mov al, byte [esp]
jmp 0x423ce3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x424368
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4241e0
mov eax, dword [0x482a28]
cmp byte [eax], 0
je 0x4243d5
mov eax, dword [0x482a2c]
call fcn.004311b0
call fcn.00430c14
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00421178
push eax
lea eax, [esp + 0x50]
push eax
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 0x42441c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x42440b
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4828e8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x482bc0]
call fcn.00433ce0
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 0x425140
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4251a4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004327d0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00420d10
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4251ab
lea eax, [ebp - 0xc]
call fcn.00432568
ret

Function at 0x430dd4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00432568
test esi, esi
jne 0x430e0a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00432658
jmp 0x430e28
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00430ce8
mov edi, eax
test esi, esi
je 0x430e28
cmp dword [ebx], 0
je 0x430e28
dec esi
jmp 0x430e11
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x43188c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47e9ec]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x431924
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x431904
xor eax, eax
push ebp
push 0x4318fd
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 0x431940
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 0x431904
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x47e9ec]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47e9ec], ax
mov esp, ebp
pop ebp
ret
Function at 0x4323ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x483038], 0
je 0x43244d
cmp word [0x48320c], 0xd7b2
jne 0x432415
cmp dword [0x483214], 0
jbe 0x432415
mov eax, 0x483208
call dword [0x483224]
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 0x432474
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x47e9fc], 0
jne 0x432469
push 0
push 0x47ea54
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x433ed4
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 0x434104
push closesocket
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x433f57
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x434104
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x433f57
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x434120
push closesocket
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x433fe0
xor eax, eax
push ebp
push 0x433fd9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00433d1c
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 0x433fbe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x434140
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x433fbe
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 0x433fe0
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 0x4340fa
cmp byte [ebp - 0xd], 0
jne 0x434027
cmp byte [ebp - 0x12], 0
je 0x4340fa
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x434040
dec ebx
cmp byte [ebx], 0x2e
je 0x43404f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x43403f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4340fa
inc ebx
cmp byte [ebp - 0x12], 0
je 0x43408c
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 0x4340fa
cmp byte [ebp - 0xd], 0
je 0x4340fa
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 0x4340fa
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 0x434878
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x4835ac], 1
jae 0x4348fe
mov byte [0x47e9e8], 2
mov dword [0x482ffc], 0x4747ec
mov dword [0x483000], 0x4747fe
mov byte [0x48303a], 2
mov dword [0x482fe8], 0x433504
call fcn.0043185c
test al, al
je 0x4348bb
call fcn.0043188c
call fcn.00431950
mov word [0x483040], 0xd7b0
mov word [0x48320c], 0xd7b0
mov word [0x4833d8], 0xd7b0
call fcn.004333e4
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x48302c], eax
call fcn.0042f6e0
mov dword [0x483028], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x483020], eax
ret

Function at 0x435314
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x435260
call sub.USER32.DLL_EnumWindows
ret

Function at 0x435438
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4354b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00434e84
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
push 0
call sub.KERNEL32.DLL_Sleep
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x43545d
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00434adc
cmp dword [ebp - 4], 0
je 0x43549f
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00432a18
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.USER32.DLL_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4354bc
lea eax, [ebp - 4]
call fcn.00432568
ret

Function at 0x43abb0
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.00432568
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43abff
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.004327d0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44117c
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 0x441182
ret

Function at 0x443618
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x443669
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x443650
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x443640
jmp 0x443669
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x443651
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44c0fc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44c14c]
test si, 4
je 0x44c110
or bl, 1
test si, 8
je 0x44c11a
or bl, 4
test si, 1
je 0x44c124
or bl, 8
test si, 2
je 0x44c12e
or bl, 0x10
test si, 0x10
je 0x44c138
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x44c147
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44c150
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44c188]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x44c169
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x44c178
or bl, 4
test esi, 0x20000000
je 0x44c183
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x452ac4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x452ad6
add esp, 0xfffffff0
call fcn.00431d80
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bba4
mov eax, dword [0x482a38]
mov dword [eax + 4], ebx
mov dword [eax], 0x452e68
mov eax, dword [0x482a3c]
mov dword [eax + 4], ebx
mov dword [eax], 0x452e74
mov eax, ebx
call fcn.00452e80
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4117cc]
call fcn.004319ec
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4117cc]
call fcn.004319ec
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4117cc]
call fcn.004319ec
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4117cc]
call fcn.004319ec
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4117cc]
call fcn.004319ec
mov dword [ebx + 0x7c], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44f348
push eax
push 0
push 0
mov eax, dword [0x482afc]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4405b0]
call fcn.00441cc4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4405b0]
call fcn.00441cc4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4405b0]
call fcn.00441cc4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004532a0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45317c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45317c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45317c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x452c13
call fcn.00431dd8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret