joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45bb60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x488b83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0047bfd2
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00481668
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00482bc7
test eax, eax
je 0x45bc7c
mov ecx, dword [esp + 0x3c]
call fcn.00481695
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x45bc40
push edi
mov ecx, esi
call fcn.0047ecf9
mov ecx, esi
call fcn.0045bde0
cmp dword [esp + 0x38], 1
jne 0x45bc75
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047ee34
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x45e6a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45e6d3
push esi
call fcn.00461790
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45e6cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45e759
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45e742
mov eax, dword [esi + 8]
test eax, eax
je 0x45e6f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45e73e
cmp eax, 2
je 0x45e742
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45e6ea
cmp eax, 3
je 0x45e71d
cmp eax, 1
jne 0x45e6ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45e6ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45e6ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045e780
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45e768
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045e780
add esp, 4
pop esi
ret

Function at 0x47cdc8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47ce00
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047ae7c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047ae54
jmp 0x47ce0c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47e4b6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47e4f8
call fcn.00483fb2
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47e4f8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47e4ef
xor eax, eax
jmp 0x47e500
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047e506
pop edi
pop esi
pop ebx
ret 4

Function at 0x4844e2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x484510
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48452e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00484448
jmp 0x48452e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48452e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00484448
test edi, edi
mov eax, edi
jne 0x484518
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402790
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 0x402828
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402808
xor eax, eax
push ebp
push 0x402801
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 0x402844
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 0x402808
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 0x403bf0
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 0x403d8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403ca0
xor eax, eax
push ebp
push 0x403c99
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]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403c82
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x403dac
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 0x403ca0
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 0x403d81
cmp byte [ebp - 0xd], 0
jne 0x403ce2
cmp byte [ebp - 0x12], 0
je 0x403d81
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x403cfb
dec ebx
cmp byte [ebx], 0x2e
je 0x403d0a
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x403cfa
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x403d81
inc ebx
cmp byte [ebp - 0x12], 0
je 0x403d37
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 0x403d81
cmp byte [ebp - 0xd], 0
je 0x403d81
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 0x403d81
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 0x40418c
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x4041e8
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_ReadFile
dec eax
pop eax
pop ecx
jne 0x4041da
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x4041cf
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x4041ca
mov eax, 0x64
jmp 0x4041df
call sub.kernel32.dll_GetLastError
call fcn.004025c4
xor eax, eax
jmp 0x4041ca
mov eax, 0x67
jmp 0x4041df
Function at 0x4041f0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x40424b
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x40423d
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x404232
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x40422d
mov eax, 0x65
jmp 0x404242
call sub.kernel32.dll_GetLastError
call fcn.004025c4
xor eax, eax
jmp 0x40422d
mov eax, 0x67
jmp 0x404242

Function at 0x4042d4
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, eax
mov edx, dword [ebx + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x404304
push 0
push dword [ebx]
call sub.kernel32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x4042fa
xor edx, edx
div dword [ebx + 8]
pop ebx
ret
call fcn.004025d4
or eax, 0xffffffff
jmp 0x4042f8
mov eax, 0x67
call fcn.004025c4
or eax, 0xffffffff
jmp 0x4042f8

Function at 0x405e6c
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 0x405ea5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403280
jmp 0x405eae
mov eax, ebx
mov edx, esi
call fcn.00403234
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c32c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c3e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004033e8
cmp eax, 2
jl 0x40c37c
mov eax, ebx
call fcn.004033e8
cmp byte [ebx + eax - 2], 0x3a
jne 0x40c37c
mov eax, ebx
call fcn.004033e8
cmp byte [ebx + eax - 1], 0x5c
jne 0x40c37c
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403234
jmp 0x40c386
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0040c658
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40c3c6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0040359c
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3cd
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x40c458
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
xor eax, eax
mov dl, byte [ebx]
sub dl, 1
jb 0x40c484
sub dl, 0x1f
je 0x40c47c
sub dl, 2
je 0x40c478
jmp 0x40c480
xor al, 1
jmp 0x40c480
test al, al
je 0x40c484
inc ebx
jmp 0x40c465
inc ebx
cmp byte [ebx], 0x20
je 0x40c483
mov eax, esi
mov edx, ebx
call fcn.00403350
pop esi
pop ebx
ret

Function at 0x40c6fc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00405954
add esp, 0x104
pop ebx
ret

Function at 0x40ca00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0x74]
xor eax, eax
push ebp
push 0x40caf5
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x78]
mov eax, esi
call fcn.0040c690
push dword [ebp - 0x78]
push 0x40cb0c
push edi
lea eax, [ebp - 4]
mov edx, 3
call fcn.004034a8
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402690
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040359c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40ca8e
mov eax, 0x40cb18
call fcn.0040c8c8
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x40caa5
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x40ca99
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x40caa5
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cafc
lea eax, [ebp - 0x78]
call fcn.0040319c
lea eax, [ebp - 4]
call fcn.0040319c
ret
Function at 0x494380
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push 0
mov dword [esp + 0x14], 1
and al, 0x14
add dword [eax], eax
add byte [eax], al
call dword [sym.imp.USER32.dll_GetSysColor]
mov esi, dword [esp + 0x20]
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
mov dword [esi + 8], eax
lea eax, [esi + 0x84]
push eax
push 0x18
push 0x32
mov dword [eax], 0x18
call edi
lea eax, [esi + 0x9c]
push 0
push eax
push 0x1c
push 0x36
mov dword [eax], 0x1c
call edi
lea eax, [esi + 0xb8]
push 0
push eax
push 8
push 0x3a
mov dword [eax], 8
call edi
lea eax, [esi + 0xc0]
push 0
push eax
push 8
push 0x34
mov dword [eax], 8
call edi
lea eax, [esi + 0xc8]
push 0
push eax
push 0x30
push 0x40
mov dword [eax], 0x30
call edi
lea eax, [esi + 0xf8]
push 0
push eax
push 0xc
push 0x3c
mov dword [eax], 0xc
call edi
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x46
call ebx
mov dword [esi + 0x104], eax
lea eax, [esi + 0x108]
push 0
push eax
push 0
push 0x44
call edi
push 0x17
call ebx
lea ecx, [esi + 0x110]
push 0
push ecx
push 0
push 0x5e
mov dword [esi + 0x10c], eax
call edi
lea edx, [esi + 0x114]
push 0
push edx
push 0
push 0x70
call edi
lea eax, [esi + 0x178]
push 0
push eax
push 0
push 0x2006
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push str.Control_PanelAppearanceNew_Schemes
push SysFreeString
mov dword [esi + 0x11c], 0
call ebx
test eax, eax
jne 0x494556
lea edx, [esp + 0x10]
lea edi, [esi + 0x1188]
push edx
push edi
push eax
mov word [edi], ax
push eax
mov eax, dword [esp + 0x24]
push str.SelectedStyle
push eax
mov dword [esp + 0x28], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49454b
cmp dword [esp + 0x10], 2
jbe 0x49454b
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push edi
push edx
call ebx
test eax, eax
jne 0x49454b
mov edx, dword [esp + 0x18]
mov word [esp + 0xe], ax
lea eax, [esp + 0x10]
lea ecx, [esp + 0xe]
push eax
push ecx
push 0
push 0
push str.SelectedSize
push edx
mov dword [esp + 0x28], 0x28
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp word [esp + 0xe], 0
je 0x494537
cmp dword [esp + 0x10], 2
jbe 0x494537
mov eax, 0xfffffffe
jmp 0x49453a
or eax, 0xffffffff
mov dword [esi + 0x11b0], eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x40336c
Capabilities:
Query or enumerate registry value

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

Function at 0x4040ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x465048], 0
je 0x40414d
cmp word [0x46521c], 0xd7b2
jne 0x404115
cmp dword [0x465224], 0
jbe 0x404115
mov eax, 0x465218
call dword [0x465234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x463054
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 0x404174
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46301c], 0
jne 0x404169
push 0
push 0x463074
push 0x463054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4098a8
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 0x4098e1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404358
jmp 0x4098ea
mov eax, ebx
mov edx, esi
call fcn.004042bc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x409f9c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409e14
mov eax, dword [0x464be4]
cmp byte [eax], 0
je 0x40a004
mov eax, dword [0x464a0c]
call fcn.00402c88
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408ae0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a04c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a03a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4649c8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x465714]
call fcn.004059f8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40ab40
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 0x40aba4
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_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004044d0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040873c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40abab
lea eax, [ebp - 0xc]
call fcn.00404268
ret
Function at 0x41cccc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x465a20
cmp dword [edi], 0
jne 0x41cd48
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x465a1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4634bc
mov ecx, 2
call fcn.004028ec
mov edx, 0x41cca4
lea eax, [esi + 5]
call fcn.0041ccc4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ccc4
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 0x41cd1d
mov dword [0x465a1c], 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 0x41e24c
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 0x41e252
ret

Function at 0x4206e0
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 0x420731
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x420718
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420708
jmp 0x420731
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 0x420719
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42eb4c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404708
xor eax, eax
push ebp
push 0x42ec7a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x42ec4d
xor eax, eax
push ebp
push 0x42ec46
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404520
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x42ec1b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x42ec0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404520
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404718
mov edx, ebx
pop ecx
call fcn.004028ec
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ec11
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x46497c]
mov dl, 1
mov eax, dword [0x407598]
call fcn.0040a10c
call fcn.00403cc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ec81
lea eax, [ebp - 4]
call fcn.00404268
ret