joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412d88
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [0x4d5dc8], edi
mov esi, ecx
je 0x412ece
cmp dword [esi + 0x20], 8
jb 0x412dab
mov eax, dword [esi + 0xc]
jmp 0x412dae
lea eax, [esi + 0xc]
push ebx
push 0x4a0660
push eax
push dword [0x4d3760]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x412ecd
push ebx
push dword [0x4d3760]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push dword [0x4d3760]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0x42
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 4]
push dword [ebp - 8]
push eax
call fcn.0044edc0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push edi
push dword [ebp - 0xc]
call fcn.00411901
cmp eax, edi
pop ecx
pop ecx
je 0x412ecd
mov dword [esi + 4], eax
lea eax, [ebp + 8]
push eax
mov ecx, 0x4d5dcc
call fcn.00412b48
mov ebx, dword [ebp + 8]
push edi
mov dword [eax], esi
push dword [0x4d3760]
push edi
push ebx
push edi
push edi
push edi
push SysReAllocString
push 0x80880000
push edi
push dword [0x4d375c]
push 0x80020
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push ebx
mov dword [esi + 0x24], eax
call edi
test eax, 0x10000000
jne 0x412e93
mov byte [esi + 0x2c], 1
jmp 0x412eb7
test eax, 0x21000000
je 0x412ea0
mov byte [esi + 0x2c], 5
jmp 0x412eb7
push 8
push dword [esi + 0x24]
mov byte [esi + 0x2c], 7
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov ecx, esi
call fcn.00412243
push 0xfffffffffffffffc
push ebx
call edi
push 0x412bbd
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x28], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x4139d1
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x14]
push eax
push 0
push esi
push 0x41392b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x18], eax
pop esi
je 0x413a00
cmp eax, 0xffffffff
je 0x413a00
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret
Function at 0x422820
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jge 0x422836
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x422842
or edi, 1
push 1
call esi
test ax, ax
jge 0x42284e
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x42285a
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x422866
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x4229e7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4d44e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
mov dword [ebp - 0x214], eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0044e570
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call sym.Uninst.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044df8c
leave
ret

Function at 0x424f94
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
cmp eax, ecx
mov ebx, dword [ebp + 8]
je 0x424fb9
cmp ebx, dword [esi + 0x54]
je 0x424fb9
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp ebx, eax
je 0x42507b
test eax, eax
push edi
je 0x42500c
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x54]
mov ecx, esi
call sym.Uninst.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov dword [esi + 0x54], edi
test ebx, ebx
je 0x42507a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x42507a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x42507a
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x42507a
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x54], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x54]
mov ecx, esi
call sym.Uninst.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4252a2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xd0]
mov ecx, edi
xor ebx, ebx
call sym.Uninst.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
test eax, eax
jle 0x4252f1
push ebx
mov ecx, edi
mov byte [ebp - 1], 0
call sym.Uninst.exe_public:_void____thiscall_DuiLib::CStdPtrArray::operator___int_const
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x425352
mov ecx, edi
inc ebx
call sym.Uninst.exe_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const
cmp ebx, eax
jl 0x4252c0
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x4253ab
sub eax, 4
je 0x425356
dec eax
dec eax
jne 0x4253a2
and word [ebp + 8], ax
push dword [ebp + 0xc]
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.004521d7
pop ecx
mov ecx, dword [esi + 0x50]
push reloc.WS2_32.dll_ioctlsocket
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push sym.Uninst.exe_private:_static_class_DuiLib::CControlUI____stdcall_DuiLib::CPaintManagerUI::__FindControlFromShortcut_class_DuiLib::CControlUI___void__
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x4253a2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf0]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x4253a4
cmp dword [esi + 0x54], 0
je 0x4253a2
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.00422820
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x4253a2
cmp dword [esi + 0x54], 0
je 0x4253fa
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4253fa
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x4253fa
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
push str.RichEditUI
call dword [eax + 0xc]
push eax
call fcn.0044f4fb
test eax, eax
pop ecx
pop ecx
je 0x4253fa
mov ecx, dword [esi + 0x54]
call sym.Uninst.exe_public:_bool___thiscall_DuiLib::CRichEditUI::IsWantTab_void_
test al, al
jne 0x4253a2
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setge al
mov ecx, esi
push eax
call sym.Uninst.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::SetNextTabControl_bool_
jmp 0x425352
Function at 0x437054
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4d44e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x18], bl
push edi
je 0x4370c5
cmp dword [esi + 0x10], ebx
je 0x4370c5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
inc edi
lea eax, [edi + edi]
call fcn.00454470
cmp esp, ebx
mov dword [ebp - 8], esp
je 0x4370c5
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1b8
call fcn.00421d7c
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call sym.Uninst.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044df8c
leave
ret 0x10

Function at 0x43b643
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x4d4], ebx
je 0x43b6ab
cmp dword [ebp + 8], 0x100
jne 0x43b69a
cmp word [ebp + 0xc], 0xd
jne 0x43b69a
cmp byte [esi + 0x4da], bl
je 0x43b681
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x43b69a
cmp byte [esi + 0x4db], bl
jne 0x43b69a
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x43b696
push ebx
push ebx
push ebx
push str.return
push esi
call sym.Uninst.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
jmp 0x43b6ae
mov eax, dword [esi + 0x4d4]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x443b97
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x443ba2
xor eax, eax
ret
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x443c5d
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4a8048]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4a8048]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4a8048]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4a8048]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4a8048]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4a8048]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4a8048]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4a8048]
inc edx
sub eax, 8
dec edi
jne 0x443bc2
pop edi
test eax, eax
je 0x443c76
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4a8048]
inc edx
dec eax
jne 0x443c61
mov eax, esi
pop esi
not eax
pop ebx
ret

Function at 0x44410f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x444143
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44413e
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x44416b
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x444154
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x10]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.0044edc0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x444f01
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4d44e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x444faa
movzx ecx, word [esi]
test cx, cx
je 0x444faa
mov eax, esi
mov edx, esi
movzx ecx, cx
cmp cx, 0x2f
je 0x444f3f
cmp cx, 0x5c
jne 0x444f41
mov eax, edx
inc edx
inc edx
movzx ecx, word [edx]
test cx, cx
jne 0x444f33
cmp eax, esi
je 0x444f7e
push edi
sub eax, esi
mov edi, eax
sar edi, 1
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004502a6
and word [ebp + edi*2 - 0x20c], 0
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00444f01
add esp, 0x14
pop edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0044e30c
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0044e2e2
add esp, 0x10
push 0
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044df8c
leave
ret
Function at 0x4464db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x446556
cmp dword [esi + 4], 0xffffffff
jne 0x446556
push edi
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x49da80
push edi
call fcn.0044e2e2
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop edi
jne 0x446528
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x446528
mov eax, 0x2000000
jmp 0x44655b
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00443f25
add esp, 0x10
test eax, eax
jne 0x446546
mov eax, dword [ebp + 0x10]
jmp 0x44655b
push eax
call fcn.004460d7
mov dword [esi], eax
mov eax, dword [0x4d6478]
pop ecx
jmp 0x44655b
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x449395
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x4493ba
cmp eax, edi
jge 0x4493b2
mov eax, esi
call fcn.00448d89
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor ecx, ecx
cmp dword [esi + 8], ecx
jle 0x4493dc
mov al, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], 0xfffffff8
mov byte [ebp + ecx - 4], al
inc ecx
cmp dword [esi + 8], 0
jg 0x4493c1
cmp ecx, 4
jge 0x4493fb
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x4493e9
xor eax, eax
jmp 0x4493f1
mov dl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, dl
mov byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 4
jl 0x4493df
movzx edi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl edi, 8
add edi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, edi
xor ecx, 0xffff
cmp eax, ecx
je 0x44942d
mov eax, str.zlib_corrupt
call fcn.004469c8
jmp 0x449468
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x44943d
mov eax, str.read_past_buffer
jmp 0x449426
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x449452
mov ecx, edi
call fcn.00448db4
test eax, eax
je 0x449468
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0044edc0
add dword [esi], edi
add dword [esi + 0x10], edi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret

Function at 0x44df8c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d44e4]
jne 0x44df96
repz ret
jmp fcn.0045722c
Function at 0x456e04
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4d4720]
je 0x456e1f
inc edi
cmp edi, 0x17
jb 0x456e10
cmp edi, 0x17
jae 0x456f9f
push ebp
push 3
call fcn.0046201c
cmp eax, 1
pop ecx
je 0x456f6b
push 3
call fcn.0046201c
test eax, eax
pop ecx
jne 0x456e53
cmp dword [0x4d4560], 1
je 0x456f6b
cmp ebx, 0xfc
je 0x456f9e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4d6840
push ebp
call fcn.004566a2
add esp, 0xc
test eax, eax
je 0x456e89
push esi
push esi
push esi
push esi
push esi
call fcn.0044d99e
add esp, 0x14
push 0x104
mov esi, 0x4d6859
push esi
push 0
mov byte [0x4d695d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x456ecd
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004566a2
add esp, 0xc
test eax, eax
je 0x456ecd
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0044d99e
add esp, 0x14
push esi
call fcn.0044d6e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x456f12
push esi
call fcn.0044d6e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4d6b54
push 0x4a9aac
sub ecx, eax
push ecx
push eax
call fcn.00460195
add esp, 0x14
test eax, eax
je 0x456f12
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0044d99e
add esp, 0x14
jmp 0x456f14
xor esi, esi
push 0x4a9aa8
push ebx
push ebp
call fcn.00460124
add esp, 0xc
test eax, eax
je 0x456f34
push esi
push esi
push esi
push esi
push esi
call fcn.0044d99e
add esp, 0x14
push dword [edi*8 + 0x4d4724]
push ebx
push ebp
call fcn.00460124
add esp, 0xc
test eax, eax
je 0x456f56
push esi
push esi
push esi
push esi
push esi
call fcn.0044d99e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00461e5f
add esp, 0xc
jmp 0x456f9e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x456f9e
cmp ebp, 0xffffffff
je 0x456f9e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4d4724]
push dword [esi]
call fcn.0044d6e0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x461e5f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00456859
xor ebx, ebx
cmp dword [0x4d739c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x461f35
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x462015
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x462015
push eax
call fcn.004567eb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4d739c], eax
call esi
push eax
call fcn.004567eb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d73a0], eax
call esi
push eax
call fcn.004567eb
mov dword [0x4d73a4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0045c4b0
test eax, eax
pop ecx
pop ecx
je 0x461f03
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044d99e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x461f35
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004567eb
cmp eax, ebx
pop ecx
mov dword [0x4d73ac], eax
je 0x461f35
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004567eb
pop ecx
mov dword [0x4d73a8], eax
mov eax, dword [0x4d73a8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x461fba
cmp dword [0x4d73ac], ecx
je 0x461fba
push eax
call fcn.00456862
push dword [0x4d73ac]
mov esi, eax
call fcn.00456862
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x461fba
cmp edi, ebx
je 0x461fba
call esi
cmp eax, ebx
je 0x461f87
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x461f87
test byte [ebp - 0x18], 1
jne 0x461fba
lea eax, [ebp - 0x10]
push eax
call fcn.0045c4e7
test eax, eax
pop ecx
je 0x461fa2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0044d99e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x461fb1
or dword [ebp + 0x10], 0x200000
jmp 0x461ff5
or dword [ebp + 0x10], 0x40000
jmp 0x461ff5
mov eax, dword [0x4d73a0]
cmp eax, dword [ebp - 8]
je 0x461ff5
push eax
call fcn.00456862
cmp eax, ebx
pop ecx
je 0x461ff5
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x461ff5
mov eax, dword [0x4d73a4]
cmp eax, dword [ebp - 8]
je 0x461ff5
push eax
call fcn.00456862
cmp eax, ebx
pop ecx
je 0x461ff5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d739c]
call fcn.00456862
cmp eax, ebx
pop ecx
je 0x462015
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x462017
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46a8cc
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4d44e4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046a861
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0044e570
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x46a91b
cmp dword [ebp - 0x1c], 5
jb 0x46a933
jmp 0x46a92f
cmp dword [ebp - 0x10], 1
jne 0x46a933
cmp dword [ebp - 0x1c], 4
ja 0x46a92f
jne 0x46a933
cmp dword [ebp - 0x18], 0
jbe 0x46a933
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4aaf10
call fcn.00409a03
test eax, eax
jge 0x46a954
mov byte [0x4d5c40], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0044df8c
add ebp, 0x78
leave
ret

Function at 0x46b6f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x49c803
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4d44e4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x4d7498
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x4d7498
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x49e320
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.0046aa80
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret