joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495e00
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x485e50]
call fcn.004ab448
xor eax, eax
push ebp
push 0x495f44
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c2ef0], 0
jne 0x495e53
mov ecx, dword [0x4c9b48]
mov dl, 1
mov eax, dword [0x496eec]
call fcn.0049b948
call fcn.004aa6cc
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004a97dc
mov eax, ebx
call fcn.004ab2b8
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x495f54
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004ac7fc
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004ab2c8
test eax, eax
jle 0x495eeb
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x495ee4
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004aacec
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004aacd4
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00497e14
test eax, eax
jne 0x495ee4
mov ebx, 0x15
jmp 0x495ef0
mov ebx, 0x10
jmp 0x495ef0
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4c2ef0]
call fcn.00495d58
mov eax, dword [ebp - 8]
call fcn.00495d58
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004ac814
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495f4b
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004aaa90
lea eax, [ebp - 0x10]
mov edx, dword [0x485e50]
call fcn.004ab518
ret

Function at 0x49b0d4
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 0x49b10d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004aab5c
jmp 0x49b116
mov eax, ebx
mov edx, esi
call fcn.004aaac0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x49b640
mov eax, dword [0x4c9d24]
cmp byte [eax], 0
je 0x49b835
mov eax, dword [0x4c9d2c]
call fcn.004a9620
call fcn.004a91d4
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00498830
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 0x49b87c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x49b86b
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4c9bc8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4c9dc0]
call fcn.004ac1f8
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 0x49c6f0
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 0x49c754
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.004aacd4
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.0049817c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c75b
lea eax, [ebp - 0xc]
call fcn.004aaa6c
ret

Function at 0x4a9d90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4c3418]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4a9e28
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4a9e08
xor eax, eax
push ebp
push 0x4a9e01
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 0x4a9e44
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 0x4a9e08
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4c3418]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4c3418], ax
mov esp, ebp
pop ebp
ret
Function at 0x4aa8f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ca884], 0
je 0x4aa951
cmp word [0x4caa58], 0xd7b2
jne 0x4aa919
cmp dword [0x4caa60], 0
jbe 0x4aa919
mov eax, 0x4caa54
call dword [0x4caa70]
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 0x4aa978
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4c3428], 0
jne 0x4aa96d
push 0
push 0x4c3480
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x4ac3ec
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 0x4ac61c
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4ac46f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4ac61c
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4ac46f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4ac638
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4ac4f8
xor eax, eax
push ebp
push 0x4ac4f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004ac234
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 0x4ac4d6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4ac658
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4ac4d6
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 0x4ac4f8
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 0x4ac612
cmp byte [ebp - 0xd], 0
jne 0x4ac53f
cmp byte [ebp - 0x12], 0
je 0x4ac612
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4ac558
dec ebx
cmp byte [ebx], 0x2e
je 0x4ac567
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4ac557
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4ac612
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4ac5a4
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 0x4ac612
cmp byte [ebp - 0xd], 0
je 0x4ac612
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 0x4ac612
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 0x4acdc4
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x4cadf8], 1
jae 0x4ace4a
mov byte [0x4c3414], 2
mov dword [0x4ca848], 0x4b91de
mov dword [0x4ca84c], 0x4b91f0
mov byte [0x4ca886], 2
mov dword [0x4ca834], 0x4aba1c
call fcn.004a9d60
test al, al
je 0x4ace07
call fcn.004a9d90
call fcn.004a9e54
mov word [0x4ca88c], 0xd7b0
mov word [0x4caa58], 0xd7b0
mov word [0x4cac24], 0xd7b0
call fcn.004ab8ec
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4ca878], eax
call fcn.004a7ca0
mov dword [0x4ca874], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4ca86c], eax
ret

Function at 0x4aeef0
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x4aef0c
call fcn.004af614
jmp 0x4aef7b
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x4aef28
call fcn.004af614
jmp 0x4aef7b
cmp dword [0x4cb784], 1
je 0x4aef79
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.004b2ca0
pop ecx
cmp al, 0x41
jl 0x4aef79
cmp al, 0x5a
jg 0x4aef79
cmp byte [ebp - 0x107], 0x3a
jne 0x4aef79
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x4aef79
call fcn.004af614
jmp 0x4aef7b
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4aef80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x4aefb0
movsx edx, byte [ebp - 0x104]
sub edx, 0x61
inc edx
jmp 0x4aefbb
movsx edx, byte [ebp - 0x104]
sub edx, 0x41
inc edx
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret

Function at 0x4aefc4
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x4af02a
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x4af02a
call fcn.004af614
jmp 0x4af065
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x4af03a
call fcn.004af614
jmp 0x4af065
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x4af060
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x4af05e
cmp ebx, 1
je 0x4af05e
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x4af04b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b2db8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4b2e1a
call fcn.004b2d68
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004ada70
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004ada70
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4b2e98
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4c52a8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4b2f72
cmp dword [0x4c52a4], 0
jne 0x4b2f72
cmp dword [0x4c54b0], 0
je 0x4b2f2c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004b2c48
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4b2f12
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004b2c48
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4b2f12
lea ebx, [ebp - 0x84]
jmp 0x4b2f13
inc ebx
call fcn.004b2e54
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4b2fad
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4c52ac
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004ada70
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4c52af
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4b2fad
cmp dword [0x4c52a4], 0
je 0x4b2f8c
cmp dword [0x4c52a4], 0xffffffff
je 0x4b2fad
push esi
call dword [0x4c52a4]
pop ecx
mov eax, dword [0x4c52a8]
test eax, eax
je 0x4b2fad
cmp dword [0x4c52a8], 0xffffffff
je 0x4b2fad
cmp byte [eax], 0
je 0x4b2fad
push esi
push eax
call fcn.004b2db8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b37d0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4cb79c], 0
jne 0x4b3851
cmp dword [0x4cb7bc], 0
jne 0x4b3800
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4cb7bc], eax
test eax, eax
jne 0x4b3800
push str.GetEnvironmentStrings_failed
call fcn.004b2fc4
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4cb7bc]
jmp 0x4b3814
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004ada70
pop ecx
mov edi, eax
test eax, eax
jne 0x4b380c
lea edi, [ebp + 1]
push edi
call fcn.004ad374
pop ecx
mov ebx, eax
mov dword [0x4cb7a0], ebx
test ebx, ebx
jne 0x4b383e
xor eax, eax
jmp 0x4b3914
push edi
mov edx, dword [0x4cb7bc]
push edx
push ebx
call fcn.004ad920
add esp, 0xc
jmp 0x4b3871
xor esi, esi
mov ebx, dword [0x4cb79c]
jmp 0x4b386b
push eax
call fcn.004ada70
pop ecx
test eax, eax
jne 0x4b3867
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4b385b
lea ebx, [esi + 4]
push 4
mov dword [0x4cb7a4], ebx
inc ebx
push ebx
call fcn.004ace4c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4b3894
xor eax, eax
jmp 0x4b3914
cmp dword [0x4cb79c], 0
jne 0x4b38c5
xor esi, esi
mov ebx, dword [0x4cb7a0]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4b38b6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004ada70
pop ecx
mov edi, eax
test eax, eax
jne 0x4b38ac
jmp 0x4b38f6
xor esi, esi
mov ebx, dword [0x4cb79c]
mov eax, dword [esp]
mov edi, eax
jmp 0x4b38f0
push eax
call fcn.004ada70
pop ecx
test eax, eax
je 0x4b38e5
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4b38e9
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4b38d4
mov eax, dword [0x4cb79c]
test eax, eax
je 0x4b3906
push eax
call fcn.004ad384
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4cb79c], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b8830
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
cmp bl, 0x90
jne 0x4b8885
push 0x90
call sub.USER32.DLL_GetKeyState
and ax, 1
cmp al, 1
sbb ebx, ebx
inc ebx
lea eax, [ebp - 0x102]
push eax
call sub.USER32.DLL_GetKeyboardState
test bl, bl
je 0x4b8870
and byte [ebp - 0x72], 0xfe
jmp 0x4b8874
or byte [ebp - 0x72], 1
lea eax, [ebp - 0x102]
push eax
call sub.USER32.DLL_SetKeyboardState
jmp 0x4b890b
push 0
xor eax, eax
mov al, bl
push eax
call sub.USER32.DLL_MapVirtualKeyA
and al, 0xff
mov byte [ebp - 2], al
test si, si
jbe 0x4b890b
mov eax, ebx
and eax, 0xff
bt dword [0x4c98c4], eax
jae 0x4b88db
mov eax, dword [ebp + 8]
push eax
mov ecx, 1
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.004b87e4
pop ecx
cmp byte [ebp - 1], 0
je 0x4b8906
mov eax, dword [ebp + 8]
push eax
mov ecx, 3
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.004b87e4
pop ecx
jmp 0x4b8906
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.004b87e4
pop ecx
cmp byte [ebp - 1], 0
je 0x4b8906
mov eax, dword [ebp + 8]
push eax
mov ecx, 2
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.004b87e4
pop ecx
dec si
jne 0x4b889b
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b8914
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push 0
xor eax, eax
mov al, bl
push eax
call sub.USER32.DLL_MapVirtualKeyA
and al, 0xff
mov edx, ebx
and edx, 0xff
bt dword [0x4c98c4], edx
jae 0x4b894c
mov edx, dword [ebp + 8]
push edx
xor ecx, ecx
mov edx, eax
mov eax, ebx
call fcn.004b87e4
pop ecx
pop ebx
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
mov ecx, 2
mov edx, eax
mov eax, ebx
call fcn.004b87e4
pop ecx
pop ebx
pop ebp
ret
Function at 0x402ac8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402b05
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402b25
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404d08
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402cfc
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.00404a88
test esi, esi
jne 0x402d32
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.00404b78
jmp 0x402d50
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402c10
mov edi, eax
test esi, esi
je 0x402d50
cmp dword [ebx], 0
je 0x402d50
dec esi
jmp 0x402d39
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4039e4
Capabilities:
Query or enumerate registry value

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

Function at 0x404868
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x64504c], 0
je 0x4048c9
cmp word [0x645220], 0xd7b2
jne 0x404891
cmp dword [0x645228], 0
jbe 0x404891
mov eax, 0x64521c
call dword [0x645238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x635074
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 0x4048f0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x635034], 0
jne 0x4048e5
push 0
push 0x63506c
push 0x635074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404a3c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402884
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x64504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404a04
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc