joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409000
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427e6b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x42e0a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, edx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
lea eax, [ebp - 0x234]
push eax
push ecx
mov ecx, dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00405090
mov edi, dword [ebp - 0x234]
add esp, 8
cmp eax, ebx
je 0x409187
cmp edi, dword [ebp - 0x230]
je 0x409187
push 0x42b96c
push str.Shlwapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x409187
push esi
call eax
cmp eax, ebx
je 0x409118
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x409118
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x21c], dx
call fcn.0041c670
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x409187
lea edx, [ebp - 0x21c]
push edx
push ebx
push ebx
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x409187
push 1
lea ecx, [ebp - 0x21c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x409187
push 0x42b94c
lea edx, [ebp - 0x220]
push esi
push edx
mov dword [ebp - 0x220], ebx
call fcn.0041b6ed
add esp, 0xc
test eax, eax
jne 0x409187
mov eax, dword [ebp - 0x220]
cmp eax, ebx
je 0x409187
mov esi, dword [ebp - 0x230]
push eax
sub esi, edi
push esi
push 1
push edi
call fcn.0041b88b
mov eax, dword [ebp - 0x220]
push eax
call fcn.0041bb70
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.0041bd60
xor edx, edx
cmp esi, eax
mov eax, dword [ebp - 0x220]
sete dl
push eax
mov dword [ebp - 0x224], edx
call fcn.0041b972
add esp, 0x1c
cmp edi, ebx
je 0x409194
push edi
call fcn.0041ac0b
add esp, 4
mov eax, dword [ebp - 0x224]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041ac16
mov esp, ebp
pop ebp
ret
Function at 0x4091d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42e0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
lea eax, [ebp - 0x18]
push 0x45a870
xor edi, edi
push eax
xor esi, esi
mov dword [ebp - 4], edi
call fcn.00408480
mov ecx, dword [ebp - 0x18]
add esp, 8
cmp dword [ecx - 0xc], edi
je 0x4092a5
cmp edi, 2
jge 0x4092a5
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
push edx
push 0
xor eax, eax
push 2
test edi, edi
push 0
setne al
push 0
push 0
push ecx
mov dword [ebp - 0x14], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40929c
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 0x28], ecx
test ebx, ebx
jne 0x409268
lea eax, [ebx + 0xd]
jmp 0x409288
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push 0x42b9ec
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
sete dl
mov esi, edx
test ecx, ecx
je 0x40929c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
inc edi
jmp 0x409221
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4092e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b6d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427e08
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42e0a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x1c]
push 0x42f4f0
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00408480
add esp, 8
lea ecx, [ebp - 0x18]
push 0x42f568
push ecx
mov byte [ebp - 4], 1
call fcn.00408480
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [0x42e008]
mov eax, dword [edx + 0xc]
mov ecx, 0x42e008
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0x6a
mov byte [ebp - 4], 3
call fcn.00404970
add esp, 4
cmp eax, ebx
je 0x40b761
push eax
lea eax, [ebx + 0x6a]
lea edi, [ebp - 0x14]
call fcn.00404540
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx - 0xc], ebx
je 0x40b7ed
mov edx, dword [ebp - 0x18]
cmp dword [edx - 0xc], ebx
je 0x40b7ed
cmp dword [esi - 0xc], ebx
je 0x40b7ed
xor eax, eax
mov dword [ebp - 0x14], eax
nop
cmp eax, 2
jge 0x40b7ed
xor ecx, ecx
cmp eax, ebx
setne cl
push 2
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
add ecx, 0x80000001
mov dword [ebp - 0x20], ebx
call fcn.0040b650
test eax, eax
jne 0x40b7d1
mov edi, dword [ebp - 0x18]
cmp esi, ebx
je 0x40b7d1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push ebx
push edi
mov edi, dword [ebp - 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40b7d4
mov edi, dword [ebp - 0x28]
cmp edi, ebx
je 0x40b7e2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], ebx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ebx
jmp 0x40b780
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b80d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b830
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b852
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bb90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
push esi
add eax, eax
lea edx, [ebp + 0xc]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40bbfe
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40bbcd
cmp eax, 2
jne 0x40bbe8
mov eax, dword [ebp - 4]
test esi, esi
je 0x40bbf8
test eax, eax
je 0x40bbf3
test al, 1
jne 0x40bbe8
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40bbf8
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x41ac16
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e0a0]
jne 0x41ac20
repz ret
jmp fcn.0041dc3a

Function at 0x422d9c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42e0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0041d512
and dword [ebp - 0x14], 0
cmp dword [0x45c760], 0
mov dword [ebp - 0x18], eax
jne 0x422e4f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x422ef7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x422ef7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45c760], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45c764], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45c768], eax
call edi
push eax
call esi
mov dword [0x45c770], eax
test eax, eax
je 0x422e4f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45c76c], eax
mov eax, dword [0x45c76c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x422ea8
cmp dword [0x45c770], ecx
je 0x422ea8
push eax
call esi
push dword [0x45c770]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x422ea8
test ebx, ebx
je 0x422ea8
call edi
test eax, eax
je 0x422e9f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x422e9f
test byte [ebp - 8], 1
jne 0x422ea8
or dword [ebp + 0x10], 0x200000
jmp 0x422edb
mov eax, dword [0x45c764]
cmp eax, dword [ebp - 0x18]
je 0x422edb
push eax
call esi
test eax, eax
je 0x422edb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x422edb
mov eax, dword [0x45c768]
cmp eax, dword [ebp - 0x18]
je 0x422edb
push eax
call esi
test eax, eax
je 0x422edb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45c760]
call esi
test eax, eax
je 0x422ef7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x422ef9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ac16
leave
ret
Function at 0x401338
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40134a
mov eax, dword [0x47b08b]
shl eax, 2
mov dword [0x47b08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0045cba0
pop edx
call fcn.0045cb04
call fcn.0045cbe0
push 0
call fcn.0045dfec
pop ecx
push 0x47b034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x47b093], eax
push 0
jmp fcn.00461e30
Function at 0x4122ec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x480bd8
cmp dword [edi], 0
jne 0x412368
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x480bd4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47bbbc
mov ecx, 2
call fcn.00423430
mov edx, 0x4122c4
lea eax, [esi + 5]
call fcn.004122e4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004122e4
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 0x41233d
mov dword [0x480bd4], 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 0x416744
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 0x41677d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00424de0
jmp 0x416786
mov eax, ebx
mov edx, esi
call fcn.00424d44
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x416e38
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x416cb0
mov eax, dword [0x480924]
cmp byte [eax], 0
je 0x416ea5
mov eax, dword [0x480928]
call fcn.00423938
call fcn.0042339c
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00414fbc
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 0x416eec
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x416edb
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4807e4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x480acc]
call fcn.0042643c
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 0x417a2c
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 0x417a90
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.00424f58
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00414b90
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417a97
lea eax, [ebp - 0xc]
call fcn.00424cf0
ret

Function at 0x42355c
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.00424cf0
test esi, esi
jne 0x423592
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.00424de0
jmp 0x4235b0
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00423470
mov edi, eax
test esi, esi
je 0x4235b0
cmp dword [ebx], 0
je 0x4235b0
dec esi
jmp 0x423599
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x424014
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47c0f4]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4240ac
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x42408c
xor eax, eax
push ebp
push 0x424085
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 0x4240c8
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 0x42408c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x47c0f4]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47c0f4], ax
mov esp, ebp
pop ebp
ret

Function at 0x424b74
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x480efc], 0
je 0x424bd5
cmp word [0x4810d0], 0xd7b2
jne 0x424b9d
cmp dword [0x4810d8], 0
jbe 0x424b9d
mov eax, 0x4810cc
call dword [0x4810e8]
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 0x424bfc
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x47c104], 0
jne 0x424bf1
push 0
push 0x47c15c
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x426630
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 0x426860
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4266b3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x426860
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4266b3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x42687c
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x42673c
xor eax, eax
push ebp
push 0x426735
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00426478
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 0x42671a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x42689c
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x42671a
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 0x42673c
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 0x426856
cmp byte [ebp - 0xd], 0
jne 0x426783
cmp byte [ebp - 0x12], 0
je 0x426856
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x42679c
dec ebx
cmp byte [ebx], 0x2e
je 0x4267ab
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x42679b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x426856
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4267e8
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 0x426856
cmp byte [ebp - 0xd], 0
je 0x426856
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 0x426856
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 0x426fd4
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x481470], 1
jae 0x42705a
mov byte [0x47c0f0], 2
mov dword [0x480ec0], 0x479bce
mov dword [0x480ec4], 0x479be0
mov byte [0x480efe], 2
mov dword [0x480eac], 0x425c60
call fcn.00423fe4
test al, al
je 0x427017
call fcn.00424014
call fcn.004240d8
mov word [0x480f04], 0xd7b0
mov word [0x4810d0], 0xd7b0
mov word [0x48129c], 0xd7b0
call fcn.00425b40
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x480ef0], eax
call fcn.00421e68
mov dword [0x480eec], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x480ee4], eax
ret

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

Function at 0x427b94
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 0x427c11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004275e0
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 0x427bb9
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00427238
cmp dword [ebp - 4], 0
je 0x427bfb
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004251a0
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 0x427c18
lea eax, [ebp - 4]
call fcn.00424cf0
ret

Function at 0x42e764
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.00424cf0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42e7b3
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.00424f58
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x434d30
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 0x434d36
ret

Function at 0x4371cc
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 0x43721d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x437204
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4371f4
jmp 0x43721d
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 0x437205
pop ebx
mov esp, ebp
pop ebp
ret