joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43dba4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
lea esi, [ebp - 0x4c]
mov eax, 0x5fda5c
call fcn.004c0cc0
cmp bl, byte [edi + 4]
je 0x43ddb2
mov eax, ebx
mov byte [edi + 4], al
test al, al
je 0x43dc7b
mov word [esi + 0x10], 8
xor edx, edx
mov dword [ebp - 4], edx
lea edx, [ebp - 4]
inc dword [esi + 0x1c]
xor eax, eax
call fcn.0048b1a0
lea eax, [ebp - 4]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 8], edx
lea edx, [ebp - 8]
inc dword [esi + 0x1c]
call fcn.0047b454
lea eax, [ebp - 8]
push eax
mov edx, str.Runlog_
lea eax, [ebp - 0xc]
call fcn.004cc624
inc dword [esi + 0x1c]
xor eax, eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0xc]
inc dword [esi + 0x1c]
lea ecx, [ebp - 0x10]
pop eax
call fcn.004cc8cc
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.004cc8a4
dec dword [esi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004cc874
dec dword [esi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004cc874
dec dword [esi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004cc874
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004cc874
jmp 0x43ddb2
push esi
push edi
mov esi, 0x5ed754
lea edi, [ebp - 0x150]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
push 0x104
lea eax, [ebp - 0x150]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov word [esi + 0x10], 0x20
lea edx, [ebp - 0x150]
lea eax, [ebp - 0x14]
call fcn.004cc624
inc dword [esi + 0x1c]
mov edx, 0x5fd897
mov word [esi + 0x10], 0x14
mov word [esi + 0x10], 0x2c
lea eax, [ebp - 0x18]
call fcn.004cc624
inc dword [esi + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
inc dword [esi + 0x1c]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.004cc8cc
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x14]
call fcn.004cc8a4
dec dword [esi + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004cc874
dec dword [esi + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004cc874
mov word [esi + 0x10], 0x38
xor ecx, ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
push eax
inc dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov ecx, 2
mov edx, 1
call fcn.004cccb8
lea eax, [ebp - 0x20]
push eax
mov edx, 0x5fd899
lea eax, [ebp - 0x24]
call fcn.004cc624
inc dword [esi + 0x1c]
xor ecx, ecx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x28]
inc dword [esi + 0x1c]
lea edx, [ebp - 0x24]
pop eax
call fcn.004cc8cc
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004cc8a4
dec dword [esi + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004cc874
dec dword [esi + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004cc874
dec dword [esi + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004cc874
dec dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004cc874
mov word [esi + 0x10], 0
mov ecx, dword [esi]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44317c
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9f0
push esi
push edi
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
mov esi, 0x699bac
lea edi, [ebp - 0x210]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
mov esi, str.WinPcap_Packet_Driver__KFC_
lea edi, [ebp - 0x410]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
mov esi, 0x699fac
lea edi, [ebp - 0x610]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
push 0x6999ac
lea eax, [ebp - 0x610]
push eax
call fcn.004c08ac
add esp, 8
push 0xf003f
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4431f8
xor eax, eax
jmp 0x443278
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x610]
push edx
push 1
push 3
push 1
push 0xf01ff
lea ecx, [ebp - 0x410]
push ecx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_CreateServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x44324f
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x431
jne 0x443253
xor edx, edx
mov dword [ebp - 8], edx
mov byte [ebp - 1], 1
jmp 0x443253
mov byte [ebp - 1], 1
cmp dword [ebp - 0xc], 0
je 0x443261
push dword [ebp - 0xc]
call sub.ADVAPI32.DLL_CloseServiceHandle
cmp byte [ebp - 1], 0
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_CloseServiceHandle
push dword [ebp - 8]
call sub.KERNEL32.DLL_SetLastError
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x443b04
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x160], 0
jne 0x443b61
mov edx, dword [ebp + 8]
cmp dword [edx + 0x4c], 0xffffffff
je 0x443b3d
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x4c], 0
jne 0x443b2b
or eax, 0xffffffff
jmp 0x443b31
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x4c]
push eax
mov edx, dword [ebp + 8]
push dword [edx + 0x48]
call sub.KERNEL32.DLL_WaitForSingleObject
push 0
mov ecx, dword [ebp + 0xc]
add ecx, 0x20
push ecx
mov eax, dword [ebp + 0xc]
push dword [eax + 0x1c]
mov edx, dword [ebp + 0xc]
push dword [edx + 0x18]
mov ecx, dword [ebp + 8]
push dword [ecx]
call sub.KERNEL32.DLL_ReadFile
mov byte [ebp - 1], al
jmp 0x443b65
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
pop ecx
pop ebp
ret 0xc

Function at 0x4448b4
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x69a68c
test edx, edx
jne 0x4448d3
xor eax, eax
jmp 0x4449f1
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x4448f0
push esi
push edx
push eax
call fcn.004449f8
add esp, 0xc
jmp 0x4449f1
push esi
push edx
push eax
call fcn.00444cb8
add esp, 0xc
jmp 0x4449f1
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x474d30
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.00474bb4
dec esi
jne 0x474d52
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x475e7c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x6ac9cc
cmp dword [edi], 0
jne 0x475ef8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x6ac9c8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x69d774
mov ecx, 2
call fcn.0048b074
mov edx, 0x475e54
lea eax, [esi + 5]
call fcn.00475e74
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00475e74
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 0x475ecd
mov dword [0x6ac9c8], 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 0x477474
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.00477098
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.0048d0cc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x4774d2
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6a2578]
mov dl, 1
mov eax, dword [0x476f24]
call fcn.0047e8f4
call fcn.0048c69c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4774dc
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.0048d0cc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x477534
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x6a2574]
mov dl, 1
mov eax, dword [0x476f24]
call fcn.0047e8f4
call fcn.0048c69c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004770c8
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 0x47b370
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0048d0cc
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x47b389
test al, 0x10
jne 0x47b38d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x47b394
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.0048d0cc
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x47b3b6
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x47e050
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 0x47e089
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0048cd0c
jmp 0x47e092
mov eax, ebx
mov edx, esi
call fcn.0048cc70
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x47e09c
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 0x47e0bd
mov al, byte [esp]
jmp 0x47e0bf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x47e744
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x47e5bc
mov eax, dword [0x6a276c]
cmp byte [eax], 0
je 0x47e7b1
mov eax, dword [0x6a2770]
call fcn.0048b558
call fcn.0048af68
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0047b540
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 0x47e7f8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x47e7e7
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x6a262c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x6a2994]
call fcn.0048e680
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 0x47f504
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 0x47f568
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.0048ce84
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.0047b144
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f56f
lea eax, [ebp - 0xc]
call fcn.0048cc1c
ret
Function at 0x48afdc
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 0x48b019
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 0x48b039
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.0048ce84
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x48b1a0
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.0048cc1c
test esi, esi
jne 0x48b1d6
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.0048cd0c
jmp 0x48b1f4
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0048b0b4
mov edi, eax
test esi, esi
je 0x48b1f4
cmp dword [ebx], 0
je 0x48b1f4
dec esi
jmp 0x48b1dd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x48bc7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x69dce8]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x48bd14
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x48bcf4
xor eax, eax
push ebp
push 0x48bced
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 0x48bd30
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 0x48bcf4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x69dce8]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x69dce8], ax
mov esp, ebp
pop ebp
ret

Function at 0x48ca1c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x6acd08], 0
je 0x48ca7d
cmp word [0x6acedc], 0xd7b2
jne 0x48ca45
cmp dword [0x6acee4], 0
jbe 0x48ca45
mov eax, 0x6aced8
call dword [0x6acef4]
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 0x48caa4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x69dcf8], 0
jne 0x48ca99
push 0
push 0x69dd50
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x48cbd0
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.0048ad98
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x6acd09], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x48cb98
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x48e874
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 0x48eaa4
push Ordinal_5
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x48e8f7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x48eaa4
push reloc.OLEAUT32.DLL_SysReAllocString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x48e8f7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x48eac0
push Ordinal_5
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x48e980
xor eax, eax
push ebp
push 0x48e979
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0048e6bc
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 0x48e95e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x48eae0
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x48e95e
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 0x48e980
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 0x48ea9a
cmp byte [ebp - 0xd], 0
jne 0x48e9c7
cmp byte [ebp - 0x12], 0
je 0x48ea9a
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x48e9e0
dec ebx
cmp byte [ebx], 0x2e
je 0x48e9ef
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x48e9df
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x48ea9a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x48ea2c
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 0x48ea9a
cmp byte [ebp - 0xd], 0
je 0x48ea9a
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 0x48ea9a
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 0x48f284
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x6ad27c], 1
jae 0x48f30a
mov byte [0x69dce4], 2
mov dword [0x6acccc], 0x4cd80c
mov dword [0x6accd0], 0x4cd82a
mov byte [0x6acd0a], 2
mov dword [0x6accb8], 0x48de98
call fcn.0048bc4c
test al, al
je 0x48f2c7
call fcn.0048bc7c
call fcn.0048bd40
mov word [0x6acd10], 0xd7b0
mov word [0x6acedc], 0xd7b0
mov word [0x6ad0a8], 0xd7b0
call fcn.0048dd50
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x6accfc], eax
call fcn.00489a34
mov dword [0x6accf8], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x6accf0], eax
ret

Function at 0x48fd20
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 0x48fc6c
call sub.USER32.DLL_EnumWindows
ret

Function at 0x48fe44
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 0x48fec1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0048f890
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 0x48fe69
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0048f4e8
cmp dword [ebp - 4], 0
je 0x48feab
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.0048d0cc
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 0x48fec8
lea eax, [ebp - 4]
call fcn.0048cc1c
ret

Function at 0x49478c
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.0048cc1c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4947db
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.0048ce84
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49aa88
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 0x49aa8e
ret

Function at 0x49ced0
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 0x49cf21
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x49cf08
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x49cef8
jmp 0x49cf21
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 0x49cf09
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a430c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4a435c]
test si, 4
je 0x4a4320
or bl, 1
test si, 8
je 0x4a432a
or bl, 4
test si, 1
je 0x4a4334
or bl, 8
test si, 2
je 0x4a433e
or bl, 0x10
test si, 0x10
je 0x4a4348
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4a4357
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4a4360
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4a4398]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4a4379
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4a4388
or bl, 4
test esi, 0x20000000
je 0x4a4393
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4aacd4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4aace6
add esp, 0xfffffff0
call fcn.0048c170
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00474df8
mov eax, dword [0x6a2788]
mov dword [eax + 4], ebx
mov dword [eax], 0x4ab078
mov eax, dword [0x6a278c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4ab084
mov eax, ebx
call fcn.004ab090
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4697fc]
call fcn.0048bddc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4697fc]
call fcn.0048bddc
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4697fc]
call fcn.0048bddc
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4697fc]
call fcn.0048bddc
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4697fc]
call fcn.0048bddc
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, 0x4a7558
push eax
push 0
push 0
mov eax, dword [0x6a293c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x49a18c]
call fcn.0049b5d0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x49a18c]
call fcn.0049b5d0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x49a18c]
call fcn.0049b5d0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004ab4b0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ab38c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ab38c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4ab38c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4aae23
call fcn.0048c1c8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret