joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f2c8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
add esi, 0x2c
call fcn.0040637a
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
push 0x124
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x370]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x374]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x374], 0x128
call sub.KERNEL32.DLL_Process32First
jmp 0x40f4a7
mov eax, dword [ebp - 0x36c]
mov ecx, dword [ebp - 0x35c]
mov esi, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push eax
push ebx
push 0x410
mov byte [ebp - 0x140], bl
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x38], ecx
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40f38e
call fcn.00405b48
test eax, eax
je 0x40f451
push dword [ebp - 0x144]
push ebx
push 0x1000
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x40f451
mov esi, 0x104
push esi
lea eax, [ebp - 0x24b]
push ebx
push eax
mov byte [ebp - 0x24c], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.0040f4ce
cmp byte [ebp - 0x24c], bl
je 0x40f3cd
cmp byte [ebp - 0x24c], 0x3f
jne 0x40f41c
cmp dword [0x415e78], ebx
mov dword [ebp - 0x10], esi
jne 0x40f402
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp eax, ebx
je 0x40f402
push str.QueryFullProcessImageNameA
push eax
mov dword [0x415e78], 1
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x415e7c], eax
mov eax, dword [0x415e7c]
cmp eax, ebx
je 0x40f41c
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24c]
push ecx
push ebx
push dword [ebp - 8]
call eax
lea esi, [ebp - 0x24c]
lea edi, [ebp - 0x140]
call fcn.0040eed9
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
call fcn.0040f209
add esp, 0x14
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x38]
add edi, 0x2c
cmp esi, ebx
jl 0x40f4a7
cmp esi, 0xffffffff
mov eax, dword [edi + 8]
jne 0x40f46f
push dword [edi]
call sub.msvcrt.dll_free
jmp 0x40f480
push eax
push 0x130
lea eax, [edi + 4]
mov edx, esi
call fcn.00404df7
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [esi + 1]
cmp dword [ecx + 0x38], eax
jge 0x40f48f
mov dword [ecx + 0x38], eax
mov edi, esi
imul edi, edi, 0x130
lea eax, [ecx + 0x2c]
add edi, dword [eax]
push 0x4c
pop ecx
lea esi, [ebp - 0x144]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x374]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x40f31f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40f4f6
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x40f558
push edi
push str.psapi.dll
call fcn.00405cc1
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp], str.GetModuleBaseNameA
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.EnumProcessModulesEx
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.GetModuleFileNameExA
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x10], eax
pop edi
ret
Function at 0x40fa02
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00411710
xor eax, eax
cmp dword [ebp + 8], eax
push ebx
mov byte [ebp - 0x2004], al
je 0x40fa56
push 0x2000
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
push dword [edi]
lea ebx, [ebp - 0x2004]
push dword [ebp + 0x14]
call fcn.004056d2
add esp, 0x14
push dword [ebp + 0x18]
mov eax, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
jmp 0x40fa9b
push esi
mov esi, 0x2000
push esi
push eax
lea eax, [ebp - 0x2003]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x2004]
push esi
push eax
push 0x412535
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
push dword [ebp + 0x14]
lea ebx, [ebp - 0x2004]
push edi
call fcn.0040574b
pop ecx
pop ecx
pop esi
pop ebx
leave
ret

Function at 0x40fa9e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x40fabc
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040f9b6
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntA]
mov dword [esi], eax
pop ebp
ret

Function at 0x40fb85
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
call sub.msvcrt.dll_strlen
pop ecx
inc eax
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret

Function at 0x40fba8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
je 0x40fbce
mov eax, dword [esi]
push 4
mov dword [ebp + 0x14], eax
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ebp
ret
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040fb14
add esp, 0xc
test eax, eax
je 0x40fbe8
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
xor eax, eax
pop ebp
ret
Function at 0x41020a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
push edi
mov edi, 0x104
xor ebx, ebx
push edi
lea eax, [ebp - 0x167]
push ebx
push eax
mov byte [ebp - 0x168], bl
call sub.msvcrt.dll_memset
push edi
lea eax, [ebp - 0x26f]
push ebx
push eax
mov byte [ebp - 0x270], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x168]
push eax
call fcn.00405145
push str.regedit.exe
call sub.msvcrt.dll_strlen
mov esi, eax
lea eax, [ebp - 0x168]
push eax
call sub.msvcrt.dll_strlen
lea eax, [esi + eax + 1]
add esp, 0x24
cmp eax, edi
jae 0x41028f
lea eax, [ebp - 0x168]
push str.regedit.exe
push eax
lea eax, [ebp - 0x270]
call fcn.004050cd
pop ecx
pop ecx
jmp 0x410295
mov byte [ebp - 0x270], bl
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x5c]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
add esp, 0xc
cmp dword [eax + 0xc], 0x40
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov word [ebp - 0x30], 5
mov dword [ebp - 8], ebx
jne 0x410305
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call fcn.00405c90
test eax, eax
pop ecx
je 0x410305
push str.Wow64DisableWow64FsRedirection
push str.kernel32.dll
call edi
push eax
call esi
cmp eax, ebx
je 0x410305
lea ecx, [ebp - 8]
push ecx
call eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0x40
jne 0x41035c
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call fcn.00405c90
test eax, eax
pop ecx
je 0x41035c
mov eax, dword [ebp - 8]
push str.Wow64RevertWow64FsRedirection
push str.kernel32.dll
mov dword [ebp - 0xc], eax
call edi
push eax
call esi
cmp eax, ebx
je 0x41035c
push dword [ebp - 0xc]
call eax
cmp dword [ebp - 4], ebx
je 0x41037b
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov esi, dword [ebp + 8]
call fcn.004101ed
test eax, eax
jne 0x41037b
inc ebx
cmp ebx, 0x64
jl 0x410361
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4105d9
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x410621
push esi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
cmp esi, edi
je 0x41061a
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
cmp eax, edi
je 0x410613
push edi
mov edi, dword [esp + 0x10]
push 0x412535
push eax
call fcn.00410627
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, edi
pop edi
ret 4
Function at 0x410627
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 4], ebx
je 0x410677
call fcn.00405b48
test eax, eax
je 0x410677
cmp dword [edi + 0x10], ebx
jne 0x41067c
lea eax, [ebp + 0x10]
push eax
push 0x2011f
push ebx
push 0x412535
push CreateStatusWindowA
mov dword [ebp + 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410731
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi + 0x10], ebx
je 0x410695
call fcn.00405b48
test eax, eax
je 0x410695
push str.RunAsInvoker
push str.__COMPAT_LAYER
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
push esi
mov esi, edi
call fcn.004101ed
test eax, eax
jne 0x4106a7
push edi
call fcn.0041020a
call fcn.004101ed
test eax, eax
je 0x41070e
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x20000000
je 0x4106cb
push 9
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [ebp + 8]
push edi
call fcn.004104b1
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, edi
call fcn.004100df
test eax, eax
je 0x4106ff
push dword [edi + 8]
mov ebx, dword [ebp + 0xc]
or eax, 0xffffffff
call fcn.004103bf
xor ebx, ebx
push dword [edi + 8]
call fcn.00410407
mov dword [ebp - 4], 1
cmp dword [edi + 0x10], ebx
pop esi
je 0x410729
call fcn.00405b48
test eax, eax
je 0x410729
push ebx
push str.__COMPAT_LAYER
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0xc
push 0x3ff
lea eax, [ebp - 0x50b]
push ebx
push eax
mov byte [ebp - 0x50c], bl
call sub.msvcrt.dll_memset
push 0x104
lea eax, [ebp - 0x10b]
push ebx
push eax
mov byte [ebp - 0x10c], bl
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x10c]
push eax
call fcn.00404fac
push dword [edi + 0xc]
lea eax, [ebp - 0x50c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._RegEdit___s____s____d_
push eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00405b05
xor eax, eax
add esp, 0x38
inc eax
jmp 0x41072c
Function at 0x4114b2
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x412450
call fcn.004116a0
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4114ef
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4114ef
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x411507
cmp eax, 0x20b
je 0x4114f4
mov dword [ebp - 0x1c], ebx
jmp 0x41151b
cmp dword [ecx + 0x84], 0xe
jbe 0x4114ef
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x411515
cmp dword [ecx + 0x74], 0xe
jbe 0x4114ef
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x415e8c], 0xffffffff
or dword [0x415e90], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41519c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x415198]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x415e88], eax
call fcn.0041169c
cmp dword [section..data], ebx
jne 0x411576
push fcn.0041169c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0041168a
push 0x412424
push 0x412420
call sub.msvcrt.dll__initterm
mov eax, dword [0x415194]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x415190]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x41241c
push 0x4123f8
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x41160c
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x4115e0
cmp al, 0x22
jne 0x4115d2
cmp byte [esi], 0x22
jne 0x4115e9
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x4115f3
cmp al, 0x20
jbe 0x4115e5
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x411617
movzx eax, word [ebp - 0x48]
jmp 0x41161a
cmp byte [esi], 0x20
jbe 0x4115e9
inc esi
mov dword [ebp - 0x34], esi
jmp 0x41160c
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x411637
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x41166c
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004116d9
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x54524c93
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x11115fab
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x402934
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402963
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403c68
jmp 0x402981
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.0040285c
mov edi, eax
test ebx, ebx
je 0x402981
cmp dword [esi], 0
je 0x402981
dec ebx
jmp 0x40296a
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402cd0
Capabilities:
Query or enumerate registry value

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

Function at 0x403b34
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.00402704
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x481045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403afc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405468
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 0xf003f
push 0
push 0x405624
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4054c9
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x405640
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40553b
xor eax, eax
push ebp
push 0x405534
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.004052c0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40551d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405660
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40553b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x40561c
cmp byte [ebp - 0xd], 0
jne 0x40557d
cmp byte [ebp - 0x12], 0
je 0x40561c
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405596
dec ebx
cmp byte [ebx], 0x2e
je 0x4055a5
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405595
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40561c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4055d2
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40561c
cmp byte [ebp - 0xd], 0
je 0x40561c
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40561c
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x40a390
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 pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a3c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403c68
jmp 0x40a3d2
mov eax, ebx
mov edx, esi
call fcn.00403bd4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40a3dc
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_1
test eax, eax
jle 0x40a3fd
mov al, byte [esp]
jmp 0x40a3ff
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41508c
Capabilities:
Suspend thread

Disassembly:
mov byte [eax + 0xd], 1
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
ret

Function at 0x41509c
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x4150b1
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x417138
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 0x41713e
ret

Function at 0x4195a8
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 0x4195f9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4195e0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4195d0
jmp 0x4195f9
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 0x4195e1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429e38
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x481780], 0
sete dl
or al, dl
jne 0x429f78
mov eax, dword [0x481784]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x481780]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x429f47
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x481780]
call fcn.0040f95c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x429f3f
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x168], 0
je 0x429f3f
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x429f3f
mov eax, dword [ebp - 0x14]
call fcn.00432148
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x429f3f
push ebp
call fcn.00429df4
pop ecx
test al, al
jne 0x429f3f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x90]
cmp eax, dword [ebp - 0x14]
jne 0x429efb
mov eax, dword [ebp - 0x14]
call fcn.00430ad4
dec eax
jle 0x429f3f
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov bx, 0xffc1
call fcn.00403034
cmp byte [ebp - 1], 0
je 0x429f3f
push dword [ebp - 8]
push dword [ebp - 0xc]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x429f3f
mov edx, dword [ebp - 0x14]
mov eax, dword [0x481784]
call fcn.00429640
inc edi
dec esi
jne 0x429e8e
mov eax, dword [0x481784]
cmp dword [eax + 8], 0
jle 0x429f5f
mov eax, dword [0x481784]
call fcn.004296d0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x429f78
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00429c5c
pop ecx
test al, al
jne 0x429f78
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret