joyce8/EMBER2024-capa huggingface dataset:
Function at 0x68b1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0068b140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0068b140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0068b140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0068b140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x68bbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x68bc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x69d87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x68bc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x68bc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401440
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c7e6
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x412018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x114
lea eax, [ebp - 0x12c]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 2
je 0x4014ab
mov al, 1
jmp 0x40169c
lea eax, [ebp - 0x140]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4014e9
xor al, al
jmp 0x40169c
cmp dword [ebp - 0x128], 5
mov dword [ebp - 0x134], 0
jl 0x40157b
mov eax, dword [0x4124f8]
mov dword [ebp - 0x148], eax
push ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x144], 0
call fcn.00401300
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x144]
test eax, eax
je 0x40155a
push str.CheckTokenMembership
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40155a
lea ecx, [ebp - 0x134]
push ecx
push dword [ebp - 0x140]
push 0
call eax
test eax, eax
jne 0x401564
mov dword [ebp - 0x134], 0
lea ecx, [ebp - 0x148]
mov dword [ebp - 4], 0xffffffff
call fcn.00401270
jmp 0x401686
push 0x400
mov dword [ebp - 0x13c], 0
call fcn.0040bba7
mov ebx, eax
add esp, 4
mov dword [ebp - 0x138], 0
test ebx, ebx
je 0x401686
lea eax, [ebp - 0x13c]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401686
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x138]
push eax
push 0x400
push ebx
push 2
push dword [ebp - 0x13c]
call esi
cmp eax, 1
sete byte [ebp - 0x12d]
cmp dword [ebp - 0x138], 0x400
jbe 0x401637
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
push dword [ebp - 0x138]
call fcn.0040bba7
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401637
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 0x138]
push ebx
push 2
push dword [ebp - 0x13c]
call esi
cmp eax, 1
sete byte [ebp - 0x12d]
push dword [ebp - 0x13c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x12d], 0
je 0x401686
xor esi, esi
cmp dword [ebx], esi
jbe 0x401686
lea edi, [ebx + 4]
jmp 0x401660
push dword [edi]
push dword [ebp - 0x140]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40167c
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x401660
jmp 0x401686
mov dword [ebp - 0x134], 1
push dword [ebp - 0x140]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x134], 0
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040bbb6
mov esp, ebp
pop ebp
ret
Function at 0x404240
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x404255
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x404260
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404260
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4042e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x4042f9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404305
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x404300
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c916
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x412018]
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
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40571c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40571c
call fcn.00403b70
mov esi, eax
jmp 0x40580c
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40573f
call fcn.00403b70
jmp 0x4057ff
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x40575d
call fcn.00403b70
jmp 0x4057ff
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40577e
mov esi, 0x8007000e
jmp 0x405801
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00403b20
jmp 0x4057a8
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x4057bf
mov esi, 0x8007000e
jmp 0x405801
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4057df
call fcn.00403b70
jmp 0x4057ff
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00405510
mov esi, eax
test edi, edi
je 0x40580c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x405830
lea ecx, [ebp - 0x418]
call fcn.00403ad0
jmp 0x405830
mov eax, esi
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.0040bbb6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406450
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cba0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x412018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov eax, dword [0x4124f8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
push 0x69
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00402dd0
push 0
push dword [edi + 0x68]
call dword [sym.imp.USER32.dll_EnableWindow]
mov ebx, dword [ebp - 0x10]
push ebx
push dword [edi + 0x6c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x67
lea ecx, [ebp - 0x14]
call fcn.00402dd0
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push dword [ebp + 0x18]
push 0x6a
push eax
call fcn.00406cd0
add esp, 0x10
push 5
push dword [edi + 0x74]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x402
push dword [edi + 0x74]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebp - 0x14]
push esi
push 0x3eb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push edi
push 0x3ec
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ecx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [ebx - 0xc]
cmp eax, 0x4124e8
je 0x406542
add ebx, 0xfffffff4
push ebx
call ecx
test eax, eax
jg 0x40654a
push ebx
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
call ebx
add esp, 4
jmp 0x406550
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
jmp 0x406556
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
mov ecx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [edi - 0xc]
cmp eax, 0x4124e8
je 0x406570
add edi, 0xfffffff4
push edi
call ecx
test eax, eax
jg 0x406570
push edi
call ebx
add esp, 4
lea eax, [esi - 0xc]
cmp eax, 0x4124e8
je 0x406592
lea edi, [esi - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push edi
call esi
test eax, eax
jg 0x406598
push edi
call ebx
add esp, 4
jmp 0x406598
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [ebp + 0x10]
lea eax, [ecx - 0xc]
cmp eax, 0x4124e8
je 0x4065bb
lea eax, [ecx - 0xc]
push eax
call esi
test eax, eax
jg 0x4065bb
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff4
push eax
call ebx
add esp, 4
mov ecx, dword [ebp + 0xc]
lea eax, [ecx - 0xc]
cmp eax, 0x4124e8
je 0x4065de
lea eax, [ecx - 0xc]
push eax
call esi
test eax, eax
jg 0x4065de
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff4
push eax
call ebx
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x403728
Capabilities:
Query or enumerate registry value

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

Function at 0x4045bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46c04c], 0
je 0x40461d
cmp word [0x46c220], 0xd7b2
jne 0x4045e5
cmp dword [0x46c228], 0
jbe 0x4045e5
mov eax, 0x46c21c
call dword [0x46c238]
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 0x404644
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46902c], 0
jne 0x404639
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e80
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 0x4060b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f03
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4060b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f03
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4060cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405f8c
xor eax, eax
push ebp
push 0x405f85
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405cbc
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 0x405f6a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4060ec
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405f6a
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 0x405f8c
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 0x4060a6
cmp byte [ebp - 0xd], 0
jne 0x405fd3
cmp byte [ebp - 0x12], 0
je 0x4060a6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405fec
dec ebx
cmp byte [ebx], 0x2e
je 0x405ffb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405feb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4060a6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406038
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 0x4060a6
cmp byte [ebp - 0xd], 0
je 0x4060a6
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 0x4060a6
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 0x408538
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4085c8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4085c8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40857b
test edx, 3
jne 0x40856a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408575
jmp 0x40857b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40857b
cmp dword [ecx - 8], 1
je 0x408585
mov edx, ebx
or edx, 3
call fcn.00404e88
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408597
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040473c

Function at 0x4085d4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408664
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408664
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408617
test edx, 3
jne 0x408606
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408611
jmp 0x408617
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408617
cmp dword [ecx - 8], 1
je 0x408621
mov edx, ebx
or edx, 3
call fcn.00404e88
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408633
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.0040473c

Function at 0x40bafc
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 0x40bb35
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040482c
jmp 0x40bb3e
mov eax, ebx
mov edx, esi
call fcn.00404790
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bb48
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 0x40bb6a
movzx eax, byte [esp]
jmp 0x40bb6c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c1fc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c074
mov eax, dword [0x46af04]
cmp byte [eax], 0
je 0x40c278
mov eax, dword [0x46acd8]
call fcn.004030b4
call fcn.00402e68
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004091b0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40c2c0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c2ae
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x46ac70]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46e7f8]
call fcn.00405c64
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 0x40cb54
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cc2a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004047d4
lea eax, [ebp - 4]
call fcn.00404c50
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404c00
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cc14
mov eax, ebx
call fcn.00402d0c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cc0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404c00
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cbf7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cc3c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cbf7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc14
mov eax, dword [ebp - 0x10]
call fcn.00402d28
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc31
lea eax, [ebp - 4]
call fcn.0040473c
ret
Function at 0x421ad8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46f304
cmp dword [edi], 0
jne 0x421b54
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46f300]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x469bf0
mov ecx, 2
call fcn.00402efc
mov edx, 0x421ab0
lea eax, [esi + 5]
call fcn.00421ad0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421ad0
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 0x421b29
mov dword [0x46f300], 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 0x424090
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.00404c00
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4240e8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46b03c]
mov dl, 1
mov eax, dword [0x423bb4]
call fcn.0040c3bc
call fcn.00404184
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00423cbc
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 0x424f44
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 0x424f4a
ret