joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409810
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x17c
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov dword [ecx], 0
jne 0x409839
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [eax + 0x10]
test edi, edi
je 0x40982b
mov esi, dword [eax + 0xc]
movzx eax, word [esi]
mov edx, 0xffff
mov dword [esp + 0xc], esi
cmp ax, dx
je 0x4099be
test byte [esi + 2], 1
je 0x4099a2
movzx ebx, ax
mov eax, 0x4000
test word [edi], ax
je 0x409885
mov ecx, dword [ebp + 8]
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
mov edx, 0xbfff
and word [edi], dx
push 0x30
lea eax, [esp + 0x14]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x110
lea ecx, [esp + 0x78]
push 0
push ecx
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x7c], 0x114
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4098de
mov eax, dword [esp + 0x74]
cmp eax, 5
jae 0x4098e6
cmp eax, 4
jne 0x4098de
cmp dword [esp + 0x78], 0x5a
jae 0x4098e6
mov dword [esp + 0x10], 0x2c
movzx eax, word [edi]
mov dword [esp + 0x14], 1
mov dword [esp + 0x20], ebx
test eax, 0x100
je 0x409901
or dword [esp + 0x1c], 3
test eax, 0x200
je 0x40990d
or dword [esp + 0x1c], 8
test eax, 0x1000
je 0x40991c
or dword [esp + 0x1c], 0x1000
test eax, 0x2000
je 0x40996c
lea esi, [esp + 0x40]
call fcn.0040fff0
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x40]
push eax
push 0
push ebx
mov esi, 0x10
push ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x60], ebx
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x409968
mov edx, dword [esp + 0x48]
mov eax, dword [edi + 4]
or dword [esp + 0x14], esi
and edx, 0xfffff7fb
or dword [esp + 0x18], edx
mov dword [esp + 0x34], eax
mov esi, dword [esp + 0xc]
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push 0
push ebx
push edx
call dword [sym.imp.USER32.dll_SetMenuItemInfoW]
mov eax, 0x800
test word [edi], ax
je 0x4099a2
movzx ecx, word [esi]
movzx edx, word [edi + 6]
movzx eax, word [edi + 4]
push 0
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
movzx eax, word [esi + 4]
add esi, 4
mov edx, 0xffff
add edi, 8
mov dword [esp + 0xc], esi
cmp ax, dx
jne 0x409858
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40add0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, eax
cmp dword [esi + 0x5c], 0
push edi
jne 0x40ae8e
mov ecx, dword [esi + 0x8a8]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push ecx
mov dword [ebp - 0x10], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 4]
push edx
lea edi, [esi + 0x12c]
call fcn.0040c860
mov eax, dword [esi + 0x130]
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetMenu]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_DrawMenuBar]
mov eax, dword [esi + 4]
push 0x800000
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x64]
mov eax, dword [esi + 4]
push 0x40
push ecx
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 4], edx
mov edx, dword [ebp - 4]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.0040aeb0
mov dword [esi + 0x5c], 1
mov eax, dword [esi + 0xc8]
push 0
push 0
push 0x502
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x5c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b390
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
xor eax, eax
push 0x40
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x14], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x264]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40b429
mov edx, dword [ebp + 8]
push 0x414634
push edx
call dword [sym.imp.MSVCR100.dll_wcsstr]
push eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x46c]
push 0x414638
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 8
push 0
push 0
push 0
lea ecx, [ebp - 0x46c]
push ecx
lea edx, [ebp - 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esp, ebp
pop ebp
ret 4
Function at 0x40b530
Capabilities:
Print debug messages
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16a0
push ebx
push esi
push edi
xor eax, eax
push 0xffe
push eax
lea ecx, [ebp - 0x169a]
push ecx
mov word [ebp - 0x169c], ax
call sub.MSVCR100.dll_memset
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp - 0x69a]
push eax
mov word [ebp - 0x69c], dx
call sub.MSVCR100.dll_memset
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x29a]
push edx
mov word [ebp - 0x29c], cx
call sub.MSVCR100.dll_memset
push 0x210
lea eax, [ebp - 0x21c]
push 0
push eax
call sub.MSVCR100.dll_memset
mov esi, dword [ebp + 8]
add esp, 0x30
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
add esi, 0x14c
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40b5e0
push str.CMainFrame::ParseMainCfg__CreateFile_failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x800
lea ecx, [ebp - 0x169c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x40b77d
xor ecx, ecx
lea eax, [ebp - 0x169c]
lea ebx, [ebx]
cmp word [eax], 0
jne 0x40b620
inc ecx
je 0x40b625
cmp word [eax + 2], 0
je 0x40b625
add eax, 2
jmp 0x40b610
mov ebx, ecx
test ecx, ecx
je 0x40b77d
push 0x290
lea edx, [ebp - 0x29c]
push 0
push edx
call sub.MSVCR100.dll_memset
lea ecx, [ebx - 1]
add esp, 0xc
xor eax, eax
mov dword [ebp - 8], ecx
lea edi, [ebp - 0x169c]
test ecx, ecx
je 0x40b66e
cmp word [edi], 0
jne 0x40b667
inc eax
je 0x40b66e
cmp word [edi + 2], 0
je 0x40b66e
add edi, 2
cmp ecx, eax
jmp 0x40b655
mov esi, dword [ebp + 8]
lea eax, [esi + 0x14c]
push eax
push 0x200
lea eax, [ebp - 0x69c]
push eax
push 0
push str.cfgPath
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x40b772
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b6a0
sub eax, edx
sar eax, 1
push edi
mov edi, dword [sym.imp.MSVCR100.dll_wcscpy_s]
inc eax
push eax
lea ecx, [ebp - 0x29c]
push ecx
call edi
lea eax, [ebp - 0x69c]
add esp, 0xc
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b6d0
sub eax, edx
sar eax, 1
lea edx, [ebp - 0x69c]
push edx
inc eax
push eax
lea eax, [ebp - 0x21c]
push eax
call edi
mov edi, dword [esi + 0x358]
add ebx, 0xeeef
mov dword [ebp - 0x14], ebx
lea ebx, [esi + 0x354]
lea ecx, [ebp - 0x29c]
add esp, 0xc
cmp ecx, edi
jae 0x40b74b
mov eax, dword [ebx]
mov edx, ecx
cmp eax, edx
ja 0x40b74b
sub ecx, eax
mov eax, 0x63e7063f
imul ecx
sar edx, 8
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [ebx + 8]
jne 0x40b73a
mov ecx, ebx
call fcn.0040d270
mov edi, dword [ebx + 4]
imul esi, esi, 0x290
add esi, dword [ebx]
test edi, edi
je 0x40b76b
jmp 0x40b764
cmp edi, dword [ebx + 8]
jne 0x40b757
mov ecx, ebx
call fcn.0040d270
mov edi, dword [ebx + 4]
test edi, edi
je 0x40b76b
lea esi, [ebp - 0x29c]
mov ecx, 0xa4
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 4], 0x290
mov ebx, dword [ebp - 8]
test ebx, ebx
jne 0x40b62f
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ba00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x920
xor eax, eax
push 0x7e
push eax
lea ecx, [ebp - 0xfe]
push ecx
mov word [ebp - 0x100], ax
call sub.MSVCR100.dll_memset
xor edx, edx
push 0x7e
push edx
lea eax, [ebp - 0x7e]
push eax
mov word [ebp - 0x80], dx
call sub.MSVCR100.dll_memset
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x91e]
push edx
mov word [ebp - 0x920], cx
call sub.MSVCR100.dll_memset
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x50e]
push ecx
mov word [ebp - 0x510], ax
call sub.MSVCR100.dll_memset
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x716]
push eax
mov word [ebp - 0x718], dx
call sub.MSVCR100.dll_memset
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x306]
push edx
mov word [ebp - 0x308], cx
call sub.MSVCR100.dll_memset
add esp, 0x48
push esi
push 0x40
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x40bb7f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push 0x40
lea ecx, [ebp - 0x80]
push ecx
push 0
push str.CpuArch
push str.DemuCfg
call edi
push esi
push 0x104
lea edx, [ebp - 0x920]
push edx
push 0
push str.sysPath
push str.DemuCfg
call edi
push esi
push 0x104
lea eax, [ebp - 0x510]
push eax
push 0
push str.sdcardPath
push str.DemuCfg
call edi
push esi
push 0x104
lea ecx, [ebp - 0x718]
push ecx
push 0
push str.cachePath
push str.DemuCfg
call edi
push esi
push 0x104
lea edx, [ebp - 0x308]
push edx
push 0
push str.dataPath
push str.DemuCfg
call edi
lea eax, [ebp - 0x308]
push eax
lea ecx, [ebp - 0x718]
push ecx
lea edx, [ebp - 0x510]
push edx
lea eax, [ebp - 0x920]
lea ecx, [ebp - 0x80]
call fcn.0040b790
mov edx, dword [ebp + 8]
add esp, 0xc
sub edx, eax
pop edi
mov edi, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40bb70
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40bc30
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [edi + 0xf0]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
test esi, esi
je 0x40bc6a
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
lea ecx, [edx + esi + 4]
test ecx, ecx
je 0x40bc6a
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
call edx
test eax, eax
je 0x40bc6a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x84]
call eax
jmp 0x40bc6c
xor eax, eax
mov ecx, dword [edi + 4]
push 0x10
push str.TASK_FAILED
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
ret
Function at 0x40bc90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
mov edi, eax
mov eax, dword [esi + 0xf0]
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov edx, dword [edi]
mov eax, dword [edx + 0x1c]
mov ecx, edi
call eax
test eax, eax
je 0x40bcc6
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x84]
call eax
mov ebx, eax
test ebx, ebx
jne 0x40bccb
mov ebx, 0x414310
mov ecx, dword [esi + 0xf0]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push ecx
call edi
push ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0xf0]
fld qword [edx]
push 0x3e8
fstp qword [ebp - 8]
push eax
call edi
fld qword [ebp - 8]
fmul qword [0x414b58]
mov ecx, eax
fnstcw word [ebp + 0xa]
push 0
movzx eax, word [ebp + 0xa]
or eax, 0xc00
mov dword [ebp - 4], eax
fldcw word [ebp - 4]
fistp qword [ebp - 8]
mov edx, dword [ebp - 8]
push edx
push 0x402
fldcw word [ebp + 0xa]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0xf0]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40d5c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
mov ebx, dword [sym.imp.USER32.dll_MapWindowPoints]
push esi
push edi
mov edi, eax
mov eax, dword [edi + 4]
mov esi, dword [eax]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0xc], ecx
mov edx, dword [eax + 0x24]
push 1
lea eax, [ebp - 0xc]
push eax
push 0
push esi
mov dword [ebp - 8], edx
call ebx
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x1c], ecx
mov edx, dword [eax + 0x1c]
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x14], ecx
mov edx, dword [eax + 0x24]
push 2
lea eax, [ebp - 0x1c]
push eax
push 0
push esi
mov dword [ebp - 0x10], edx
call ebx
push 0x110
lea ecx, [ebp - 0x160]
push 0
push ecx
mov dword [ebp - 0x164], 0x114
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d664
mov eax, dword [ebp - 0x160]
cmp eax, 5
jae 0x40d660
cmp eax, 4
jne 0x40d664
cmp dword [ebp - 0x15c], 0x5a
jb 0x40d664
xor eax, eax
jmp 0x40d669
mov eax, 1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
xor ebx, ebx
test al, al
setne bl
xor eax, eax
mov dword [ebp - 0x28], eax
push 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp + 8]
push 0
dec ebx
mov dword [ebp - 0x24], edx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
push 0x52d
and ebx, 0x1000
push edx
or ebx, 0x40
mov dword [ebp - 0x30], 0x14
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40d706
mov ecx, dword [ebp - 0xc]
mov eax, dword [edi]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x4c]
push ecx
push 0
mov dword [ebp - 0x48], eax
push 0x52f
lea eax, [ebp - 0x30]
push esi
mov dword [ebp - 0x4c], 0x18
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [edi]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], edx
mov edx, dword [ecx + 4]
push edx
push ebx
lea eax, [ebp - 0x34]
push eax
call fcn.0040d960
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40fff0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0x30
push 0
push esi
call sub.MSVCR100.dll_memset
push 0x110
lea eax, [ebp - 0x110]
push 0
push eax
mov dword [esi], 0x30
mov dword [ebp - 0x114], 0x114
call sub.MSVCR100.dll_memset
add esp, 0x18
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x410053
mov eax, dword [ebp - 0x110]
cmp eax, 5
jae 0x410059
cmp eax, 4
jne 0x410053
cmp dword [ebp - 0x10c], 0x5a
jae 0x410059
mov dword [esi], 0x2c
mov eax, esi
mov esp, ebp
pop ebp
ret
Function at 0x410740
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [esi + 0x5c], 0
je 0x41079d
cmp dword [esi + 0x50], 0
je 0x4107a3
mov ecx, dword [esi + 0x94]
sub ecx, dword [esi + 0x90]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x4107a3
lea ecx, [ebp - 8]
push ecx
push 4
push esi
push 0x410cc0
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x78], eax
test eax, eax
je 0x41079d
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x80]
test eax, eax
je 0x41079d
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push edi
lea ecx, [ebp - 8]
push ecx
push eax
call edx
mov eax, dword [esi + 0x80]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x80]
mov edx, dword [eax]
push 0
mov edx, dword [edx + 0x20]
mov edi, ecx
neg edi
push edi
mov edi, dword [ebp - 8]
push edi
push ecx
mov ecx, dword [esi + 0x38]
push 0
push ecx
mov ecx, dword [esi + 0x34]
push ecx
mov ecx, dword [esi + 0x60]
push 0
push 0
push ecx
push eax
call edx
pop edi
test eax, eax
jne 0x41079d
push eax
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x410820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.MSVCR100.dll_fseek]
push edi
push 2
mov edi, eax
push 0
push edi
call esi
push edi
call dword [sym.imp.MSVCR100.dll_ftell]
push 0
push 0
push edi
mov ebx, eax
call esi
add esp, 0x1c
push ebx
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x410869
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x41087c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
push edi
push ebx
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
push esi
cmp eax, ebx
jne 0x410863
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [ebp + 8]
add esp, 4
push ebx
push esi
call fcn.00410240
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x412403
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x41a820], 0
push esi
push edi
jne 0x412379
call fcn.004122e5
test eax, eax
je 0x4123be
mov eax, dword [0x41a820]
cmp eax, 1
jne 0x41239a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4123be
jmp 0x412400
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x412400
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4123c2
xor eax, eax
jmp 0x412400
mov eax, dword [esi]
push dword [0x41a820]
call edi
mov edi, eax
test edi, edi
je 0x4123e4
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x412400
lea edi, [esi + 0xff0]
push esi
push dword [0x41a820]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4123ea
mov eax, esi
pop edi
pop esi
ret
jmp 0x412365
Function at 0x402f74
Capabilities:
Query or enumerate registry value

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

Function at 0x403cd0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x457048], 0
je 0x403d31
cmp word [0x45721c], 0xd7b2
jne 0x403cf9
cmp dword [0x457224], 0
jbe 0x403cf9
mov eax, 0x457218
call dword [0x457234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45506c
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 0x403d58
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x455030], 0
jne 0x403d4d
push 0
push 0x455064
push 0x45506c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405114
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 0x405344
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405197
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405344
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405197
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405360
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405220
xor eax, eax
push ebp
push 0x405219
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404f5c
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 0x4051fe
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405380
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4051fe
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 0x405220
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 0x40533a
cmp byte [ebp - 0xd], 0
jne 0x405267
cmp byte [ebp - 0x12], 0
je 0x40533a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405280
dec ebx
cmp byte [ebx], 0x2e
je 0x40528f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40527f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40533a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4052cc
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 0x40533a
cmp byte [ebp - 0xd], 0
je 0x40533a
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 0x40533a
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