joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412d79
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, edi
call sub.MFC30.DLL_CDataExchange::PrepareEditCtrl
mov esi, eax
cmp dword [edi], 0
je 0x412dfc
push 0x40
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp byte [ebp - 0x40], 0
mov ebx, dword [ebp + 0x10]
je 0x412df4
push ebx
lea eax, [ebp - 0x40]
push eax
mov ecx, 0x418148
call fcn.0040232c
test eax, eax
jne 0x412dd1
push 0xffffffffffffffff
push 0x40
push 0x67
call sub.MFC30.DLL_AfxMessageBox_1
mov ecx, edi
call sub.MFC30.DLL_CDataExchange::Fail
push 2
lea ecx, [ebp - 0x40]
push dword [ebx]
push ecx
mov ecx, 0x418148
call fcn.00402465
push ebx
lea ecx, [ebp - 0x40]
push ecx
mov ecx, 0x418148
call fcn.0040232c
jmp 0x412e24
mov dword [ebx], 0x7fffffff
jmp 0x412e24
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
cmp eax, 0x7fffffff
je 0x412e24
push 2
lea ecx, [ebp - 0x40]
push eax
push ecx
mov ecx, 0x418148
call fcn.00402465
lea ecx, [ebp - 0x40]
push ecx
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x414062
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, ecx
call sub.MFC30.DLL_CDialog::OnInitDialog
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
cmp eax, 0x404
je 0x414081
cmp eax, 0x804
jne 0x4140a0
push 0x409
push dword [edi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call sub.MFC30.DLL_CWnd::FromHandle
push 0
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, esi
pop edi
pop esi
ret

Function at 0x414902
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push 0
push dword [esp + 0x20]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
cmp eax, 1
sbb eax, eax
pop esi
neg eax
ret 8

Function at 0x414930
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
push ebp
mov edi, ecx
mov ecx, esi
call sub.MFC30.DLL_CString::Empty
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
mov ebp, dword [esp + 0x20]
push eax
mov dword [esp + 0x14], 0
push 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x1c], 0
push ecx
push 0
push ebp
push dword [edi]
call ebx
test eax, eax
mov eax, 0
jne 0x4149a5
push dword [esp + 0x10]
mov ecx, esi
call sub.MFC30.DLL_CString::GetBufferSetLength
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
push 0
push ebp
push dword [edi]
call ebx
push 0xffffffffffffffff
mov ecx, esi
call sub.MFC30.DLL_CString::ReleaseBuffer
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x415292
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415365
push eax
mov dword fs:[0], esp
sub esp, 4
mov dword [ebp - 0x10], ecx
call sub.MFC30.DLL_CFile::CFile
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call sub.MFC30.DLL_CString::CString_2
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call sub.MFC30.DLL_CString::CString_2
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call sub.MFC30.DLL_CString::CString_2
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
push 0x69
lea ecx, [eax + 0x18]
mov dword [eax], 0x41ef78
mov dword [eax + 0x14], edx
mov dword [eax + 0xc], 0xffffffff
mov dword [eax + 0x10], 0
call sub.MFC30.DLL_CString::LoadStringA
push 0x68
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call sub.MFC30.DLL_CString::LoadStringA
push 0x71
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call sub.MFC30.DLL_CString::LoadStringA
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x416aac
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f270
push 0x416c50
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov dword [0x4185d4], 0xffffffff
mov eax, dword [0x4185d4]
mov dword [0x4185d8], eax
call dword [sym.imp.MSVCRT20.dll___p__fmode]
mov ecx, dword [0x4207f4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT20.dll___p__commode]
mov ecx, dword [0x4207f0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT20.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4185dc], eax
call fcn.00416c4f
call fcn.00416c3c
push 0x420834
push 0x420830
call sub.MSVCRT20.dll__initterm
add esp, 8
mov eax, dword [0x4207ec]
push eax
mov eax, dword [0x4207e8]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCRT20.dll___getmainargs]
add esp, 0x14
push 0x42082c
push 0x4207f8
call sub.MSVCRT20.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT20.dll___p__acmdln]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x416b88
mov al, byte [ebp - 0x3c]
inc esi
mov al, byte [esi]
test al, al
je 0x416b80
cmp al, 0x22
jne 0x416b75
cmp byte [esi], 0x22
jne 0x416b92
inc esi
jmp 0x416b92
cmp al, 0x20
jbe 0x416b92
inc esi
cmp byte [esi], 0x20
ja 0x416b8c
cmp byte [esi], 0
je 0x416ba2
cmp byte [esi], 0x20
ja 0x416ba2
inc esi
cmp byte [esi], 0
jne 0x416b97
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
mov eax, 0xa
je 0x416bc5
movzx eax, word [ebp - 0x54]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.MSVCRT20.dll_exit]
jmp 0x416c03
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x8f60f08
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
mov eax, section..text_1
nop
mov ebx, 0x42f314
nop
mov ecx, 0x2a05779d
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x42e005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x401120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401139
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40114d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40116e
cmp esi, eax
jae 0x401147
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401160
cmp esi, eax
jae 0x401147
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4030a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42fc13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
mov eax, dword [0x43f378]
push ebp
push esi
mov dword [esp + 0x420], eax
push edi
mov esi, ecx
lea eax, [esp + 0x14]
push eax
push 0x104
mov dword [esp + 0x438], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x21c]
push ecx
push 0
push 0x431afc
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [esi + 0x118]
call fcn.00407730
call fcn.00421bae
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push 0x431b04
push eax
mov byte [esp + 0x438], 1
call fcn.00402720
mov edi, dword [esp + 0x14]
add esp, 8
push 0
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x18], esp
mov ebp, esp
push edi
call fcn.00401480
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebp], eax
call fcn.00402bf0
mov ecx, esi
mov dword [esi + 0xd4], 0
call fcn.00402ec0
mov byte [esp + 0x430], 0
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40318f
mov ecx, dword [edi]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
mov eax, dword [esp + 0x438]
add eax, 0xfffffff0
mov dword [esp + 0x430], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4031bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x428]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x424]
call fcn.00412209
pop edi
pop esi
pop ebp
add esp, 0x428
ret 4

Function at 0x403f80
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
inc dword [esi + 0x34]
call fcn.004059c0
mov byte [esi + 0x30], 0
mov ecx, esi
pop esi
jmp 0x405a50
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x405a77
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x405a00
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 8], eax
je 0x405a81
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 8]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x403fc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42fd4a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x431dec
mov dword [esp + 0x10], 6
mov byte [esi + 0x30], 1
call fcn.004059c0
mov eax, dword [esi + 0x44]
sub eax, 0x10
mov byte [esp + 0x10], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404016
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x2c]
sub eax, 0x10
mov byte [esp + 0x10], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404038
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x24]
sub eax, 0x10
mov byte [esp + 0x10], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40405a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x20]
sub eax, 0x10
mov byte [esp + 0x10], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40407c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x1c]
sub eax, 0x10
mov byte [esp + 0x10], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40409e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x10]
sub eax, 0x10
mov byte [esp + 0x10], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4040c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.004059a0
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404f00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x42fd4a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00405970
lea edi, [esi + 0x10]
xor ebx, ebx
push 0x431900
mov ecx, edi
mov dword [esp + 0x20], ebx
mov dword [esi], 0x431dec
call fcn.00401a00
push 0x431900
lea ecx, [esi + 0x1c]
mov byte [esp + 0x20], 1
mov byte [esi + 0x14], bl
mov dword [esi + 0x18], 2
call fcn.00401a00
push 0x431900
lea ecx, [esi + 0x20]
mov byte [esp + 0x20], 2
call fcn.00401a00
push 0x431900
lea ecx, [esi + 0x24]
mov byte [esp + 0x20], 3
call fcn.00401a00
push 0x431900
lea ecx, [esi + 0x2c]
mov byte [esp + 0x20], 4
mov dword [esi + 0x28], ebx
call fcn.00401a00
mov byte [esp + 0x1c], 5
mov byte [esi + 0x30], bl
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
lea ebp, [esi + 0x44]
call fcn.00421bae
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
push 0x431900
mov byte [esp + 0x20], 6
mov byte [esi + 0x40], bl
mov byte [esi + 0x41], bl
mov byte [esi + 0x42], bl
mov byte [esi + 0x43], bl
call fcn.00412322
add esp, 4
push eax
push 0x431900
mov ecx, ebp
call fcn.00401820
push 0x431e10
call fcn.00412322
add esp, 4
push eax
push 0x431e10
mov ecx, edi
call fcn.00401820
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x407040
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x18]
push eax
push edi
mov ebx, ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x40708f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40706d
call esi
jmp 0x407079
call esi
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x40716b
pop edi
pop esi
mov eax, 0x80004005
pop ebx
add esp, 8
ret 8
lea ecx, [esi + esi]
push ebp
push ecx
call fcn.00421cae
mov edx, dword [esp + 0x20]
add esp, 4
mov ebp, eax
push ebp
push esi
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x4070e2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4070bf
call esi
jmp 0x4070cb
call esi
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x40716a
pop ebp
pop edi
pop esi
mov eax, 0x80004005
pop ebx
add esp, 8
ret 8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x431e0c
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40710c
mov ecx, ebx
call fcn.00406da0
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x20]
mov ecx, 0xd
push ebp
rep movsd dword es:[edi], dword [esi]
call fcn.00421cb3
movzx edx, word [ebx + 0x14]
movzx eax, word [ebx + 0x16]
movzx ecx, word [ebx + 0x10]
push edx
movzx edx, word [ebx + 0x12]
push eax
push ecx
push edx
lea eax, [ebx + 0x4c]
push 0x432050
push eax
call fcn.00402720
movzx ecx, word [ebx + 0x1c]
movzx edx, word [ebx + 0x1e]
movzx eax, word [ebx + 0x18]
push ecx
movzx ecx, word [ebx + 0x1a]
push edx
push eax
push ecx
push 0x432050
add ebx, 0x54
push ebx
call fcn.00402720
add esp, 0x34
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x407870
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
mov ecx, edi
mov dword [esi], 0x432080
call fcn.00405050
mov dword [edi + 4], eax
lea eax, [esi + 0x10]
push eax
mov dword [edi + 8], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.00421bae
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
push 0x208
lea edi, [esi + 0x28]
push edi
add eax, 0x10
push 0
mov dword [esi + 0x640], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push edi
call fcn.0041327e
add esp, 8
test eax, eax
je 0x4078d2
mov word [eax], 0
push 0x208
lea eax, [esi + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x208
lea ecx, [esi + 0x438]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
pop edi
mov eax, esi
pop esi
ret
Function at 0x408ab2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x408b05
call fcn.0042c9c4
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x408b05
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x408afb
xor eax, eax
jmp 0x408c1e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x408b35
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x408b35
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x408c1b
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x408b62
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004086ab
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x408c1b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x408bab
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x408bab
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x408ba5
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004086ab
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x408c0b
and dword [ebp + 0xc], 0
jmp 0x408c0b
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x408c0b
push 0xc
call fcn.00421c83
mov esi, eax
test esi, esi
pop ecx
je 0x408bed
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x408bef
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x408c06
push dword [ebp - 8]
call fcn.0042131f
jmp 0x408c0b
call fcn.004212f6
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x408b70
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x412ebe
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4356c8
call fcn.00413f3c
push 8
call fcn.0041814b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4425c4], esi
jne 0x412ef2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4425c0], esi
mov al, byte [ebp + 0x10]
mov byte [0x4425bc], al
cmp dword [ebp + 0xc], edi
jne 0x412f3c
cmp dword [0x443f48], edi
je 0x412f2c
mov eax, dword [0x443f44]
sub eax, 4
mov dword [0x443f44], eax
cmp eax, dword [0x443f48]
jb 0x412f2c
mov eax, dword [eax]
cmp eax, edi
je 0x412f0d
call eax
jmp 0x412f0d
push 0x43e098
mov eax, 0x43e090
call fcn.00412e3c
pop ecx
push 0x43e0a4
mov eax, 0x43e09c
call fcn.00412e3c
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x412f6d
cmp dword [ebp + 0x10], edi
jne 0x412f7b
mov dword [0x4425c4], esi
push dword [ebp + 8]
call fcn.00412dfa
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x412f7a
push 8
call fcn.00418096
pop ecx
ret
call fcn.00413f77
ret

Function at 0x413e58
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00412ff0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413ef3
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x442584]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x413ef3
cmp eax, 1
je 0x413f14
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413ef3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x413ec0
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x413eef
xor eax, eax
inc eax
jmp 0x413f33
cmp edi, eax
jae 0x413ef7
xor eax, eax
jmp 0x413f33
cmp eax, esi
jae 0x413efe
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x442584]
jmp 0x413f17
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret