joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4312a8
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00430f20
xor eax, eax
push ebp
push 0x43131d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00430ed8
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.00414f2c
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x431307
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431324
mov eax, dword [ebp - 4]
call fcn.00430ef4
ret

Function at 0x43132c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00430f20
xor eax, eax
push ebp
push 0x4313a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00430ed8
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x5c]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.user32.dll_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x43138b
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4313a8
mov eax, dword [ebp - 4]
call fcn.00430ef4
ret

Function at 0x433fa4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebx + 4]
call fcn.00403b48
push eax
push 0x400
lea eax, [ebp - 0x400]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00403b48
push eax
mov eax, edi
call fcn.00403b48
push eax
mov eax, esi
call fcn.00403b48
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov ecx, eax
lea edx, [ebp - 0x400]
mov eax, dword [ebp + 8]
call fcn.004037ec
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4349d4
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x220], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x434bdf
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov al, 1
call fcn.00405a18
lea edx, [ebp - 0x198]
push edx
push eax
call sub.wsock32.dll_WSAStartup
xor eax, eax
push ebp
push 0x434a90
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x80
lea eax, [ebp - 0x219]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x219]
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
mov eax, 0x437794
mov edx, dword [ebx]
call fcn.004038bc
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov ebx, eax
mov eax, 0x437790
mov edx, ebx
call fcn.004038bc
push ebx
call sub.wsock32.dll_inet_addr
mov dword [ebp - 8], eax
push 2
push 4
lea eax, [ebp - 8]
push eax
call sub.wsock32.dll_gethostbyaddr
mov ebx, eax
mov eax, 0x437798
mov edx, dword [ebx]
call fcn.004038bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x434ad3
lea eax, [ebp - 0x220]
mov ecx, dword [0x437794]
mov edx, 0x434c30
call fcn.004039d0
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
call fcn.0041b2ac
lea eax, [ebp - 0x220]
mov ecx, dword [0x437790]
mov edx, 0x434c30
call fcn.004039d0
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e4]
call fcn.0041b2ac
lea eax, [ebp - 0x220]
mov ecx, dword [0x437798]
mov edx, 0x434c30
call fcn.004039d0
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x230]
call fcn.0041b2ac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x204]
cmp byte [eax + 0x2c], 0
je 0x434b74
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
mov edx, dword [0x437790]
call fcn.0043072c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x208]
cmp byte [eax + 0x2c], 0
je 0x434b97
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
mov edx, dword [0x437794]
call fcn.0043072c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20c]
cmp byte [eax + 0x2c], 0
je 0x434bba
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1ec]
mov edx, dword [0x437798]
call fcn.0043072c
call sub.wsock32.dll_WSACleanup
mov byte [0x4377a4], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434be6
lea eax, [ebp - 0x220]
call fcn.00403708
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4010f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x403e18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
mov dword [esp + 0x238], ebx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [esp + 0x12c]
push 0x104
push ecx
mov edx, dword [eax + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
lea eax, [esp + 0x30]
push ebx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x138]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString
mov esi, eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x238], 1
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
push esi
lea edx, [esp + 0x18]
push eax
push edx
mov byte [esp + 0x244], 2
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x23c], 3
call fcn.004038e2
lea ecx, [esp + 0x14]
mov byte [esp + 0x238], 2
call fcn.004038dc
lea ecx, [esp + 0xc]
mov byte [esp + 0x238], 1
call fcn.004038dc
lea ecx, [esp + 0x10]
mov byte [esp + 0x238], bl
call fcn.004038dc
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [esp + 0x240]
mov byte [esp + 0x238], 4
sub eax, ebx
je 0x4012b0
dec eax
je 0x401276
dec eax
je 0x40123c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x238], bl
call fcn.004038d0
lea ecx, [esp + 8]
mov dword [esp + 0x238], 0xffffffff
call fcn.004038dc
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
add esp, 0x234
ret
lea eax, [esp + 8]
push str.winwpp.exe
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push ebx
push ebx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x244], 7
call sub.MFC42.DLL_CFile::Open
mov esi, eax
mov byte [esp + 0x238], 4
lea ecx, [esp + 0x10]
jmp 0x4012e8
lea edx, [esp + 8]
push str.winwps.exe
lea eax, [esp + 0x10]
push edx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push ebx
push ebx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x244], 6
call sub.MFC42.DLL_CFile::Open
mov esi, eax
mov byte [esp + 0x238], 4
lea ecx, [esp + 0xc]
jmp 0x4012e8
lea ecx, [esp + 8]
push str.et.exe
lea edx, [esp + 0x18]
push ecx
push edx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push ebx
push ebx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x244], 5
call sub.MFC42.DLL_CFile::Open
mov esi, eax
mov byte [esp + 0x238], 4
lea ecx, [esp + 0x14]
call fcn.004038dc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x238], bl
call fcn.004038d0
lea ecx, [esp + 8]
mov dword [esp + 0x238], 0xffffffff
call fcn.004038dc
mov ecx, dword [esp + 0x230]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x234
ret
Function at 0x409e68
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c5c8]
jne 0x409e72
repz ret
jmp fcn.0040d036

Function at 0x40bf40
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43c5c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00407c58
and dword [ebp - 0x14], 0
cmp dword [0x440738], 0
mov dword [ebp - 0x18], eax
jne 0x40bff3
push 0x4023b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c09b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4023a8
push ebx
call edi
test eax, eax
je 0x40c09b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402398
push ebx
mov dword [0x440738], eax
call edi
push eax
call esi
push 0x402384
push ebx
mov dword [0x44073c], eax
call edi
push eax
call esi
push 0x402368
push ebx
mov dword [0x440740], eax
call edi
push eax
call esi
mov dword [0x440748], eax
test eax, eax
je 0x40bff3
push 0x402350
push ebx
call edi
push eax
call esi
mov dword [0x440744], eax
mov eax, dword [0x440744]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c04c
cmp dword [0x440748], ecx
je 0x40c04c
push eax
call esi
push dword [0x440748]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c04c
test ebx, ebx
je 0x40c04c
call edi
test eax, eax
je 0x40c043
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c043
test byte [ebp - 8], 1
jne 0x40c04c
or dword [ebp + 0x10], 0x200000
jmp 0x40c07f
mov eax, dword [0x44073c]
cmp eax, dword [ebp - 0x18]
je 0x40c07f
push eax
call esi
test eax, eax
je 0x40c07f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c07f
mov eax, dword [0x440740]
cmp eax, dword [ebp - 0x18]
je 0x40c07f
push eax
call esi
test eax, eax
je 0x40c07f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x440738]
call esi
test eax, eax
je 0x40c09b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c09d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409e68
leave
ret
Function at 0x423720
Capabilities:
Accept command line arguments
Delete directory
Get common file path

Disassembly:
mov eax, 0x1020
call fcn.0040f1c0
cmp dword [0x258fac4], 0x37
jne 0x4237ee
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x403450
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
push 0
lea eax, [esp + 0x424]
push eax
push 0x403460
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea ecx, [esp + 0x824]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea ecx, [esp + 8]
push ecx
push 0x4034b8
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea edx, [esp + 0x20]
push edx
push 0
push 0x4034c0
push 0x4034d0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0x403520
push 0x403580
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
mov eax, dword [0x258fac8]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x445854]
mov byte [eax + esi], dl
add esp, 0x1020
ret
Function at 0x423890
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0xc0
mov eax, dword [esp + 0xc4]
mov ecx, dword [eax]
mov edx, dword [0x43d374]
push ebx
push ebp
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x43d370]
push edi
mov dword [esp + 0x28], eax
mov eax, dword [0x43d378]
mov dword [esp + 0x24], edx
mov edx, dword [0x43d37c]
mov edi, 0xc6ef3720
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0x20
jmp 0x4238eb
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0x2c]
lea ebx, [edi + ecx]
shr ecx, 5
cmp dword [0x258fac4], 0x1b
mov dword [esp + 0x10], eax
mov ebp, ecx
jne 0x42391f
push 0
lea eax, [esp + 0x4c]
push eax
push 0x403420
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov eax, dword [esp + 0x10]
add ebp, dword [esp + 0x20]
mov dword [0x2585a74], 0
xor ebp, ebx
xor ebp, eax
sub esi, ebp
mov edx, esi
shl edx, 4
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
add edi, esi
cmp dword [0x258fac4], 0x1be
jne 0x423966
lea eax, [esp + 0x30]
push eax
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x24]
mov dword [0x2585a78], 0xff6b3619
xor edx, edi
xor dword [esp + 0x10], edx
mov dword [0x2585a7c], 0xffffffff
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
lea eax, [esp + 0x18]
call fcn.00423820
dec dword [esp + 0x1c]
jne 0x4238e3
cmp dword [0x258fac4], 0x8d4
jne 0x4239d8
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc0
ret 4
mov eax, dword [esp + 0xd4]
mov edx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0xc0
ret 4

Function at 0x423a00
Capabilities:
Manipulate console buffer

Disassembly:
mov eax, dword [0x258fac4]
sub esp, 8
push ebx
push esi
mov esi, dword [0x445854]
shr eax, 3
push edi
test eax, eax
je 0x423a42
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edi, eax
cmp dword [0x258fac4], 0x1c
jne 0x423a36
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
call ebx
push esi
call fcn.00423890
add esi, 8
dec edi
jne 0x423a20
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x40327f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x407110
call fcn.0040400c
mov edi, 0x94
mov eax, edi
call fcn.00404170
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x409378], ecx
mov eax, dword [esi + 4]
mov dword [0x409384], eax
mov edx, dword [esi + 8]
mov dword [0x409388], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40937c], esi
cmp ecx, 2
je 0x4032df
or esi, 0x8000
mov dword [0x40937c], esi
shl eax, 8
add eax, edx
mov dword [0x409380], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40331a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40331a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403332
cmp eax, 0x20b
je 0x40331f
mov dword [ebp - 0x1c], esi
jmp 0x403346
cmp dword [ecx + 0x84], 0xe
jbe 0x40331a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x403340
cmp dword [ecx + 0x74], 0xe
jbe 0x40331a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00403fb8
pop ecx
test eax, eax
jne 0x403372
cmp dword [0x409368], 1
jne 0x40335f
call fcn.0040376d
push 0x1c
call fcn.004035f6
push 0xff
call fcn.0040345b
pop ecx
pop ecx
call fcn.00403f16
mov dword [ebp - 4], esi
call fcn.00403d6b
test eax, eax
jge 0x40338b
push 0x1b
call fcn.0040325a
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x4098f4], eax
call fcn.00403c49
mov dword [0x409360], eax
call fcn.00403ba7
test eax, eax
jge 0x4033b1
push 8
call fcn.0040325a
pop ecx
call fcn.00403974
test eax, eax
jge 0x4033c2
push 9
call fcn.0040325a
pop ecx
push 1
call fcn.0040348b
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4033d8
push eax
call fcn.0040325a
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.00403917
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4033f9
movzx eax, word [ebp - 0x40]
jmp 0x4033fc
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401168
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40341a
push edi
call fcn.004035b6
call fcn.004035d8
jmp 0x40344c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00404047
ret
Function at 0x4034f5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4093b8], esi
push edi
jne 0x403515
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x4093b4], esi
mov byte [0x4093b0], al
jne 0x40357b
mov ecx, dword [0x4098e8]
test ecx, ecx
je 0x40355c
mov eax, dword [0x4098e4]
sub eax, 4
cmp eax, ecx
jmp 0x403555
mov eax, dword [eax]
test eax, eax
je 0x403547
call eax
mov eax, dword [0x4098e4]
sub eax, 4
cmp eax, dword [0x4098e8]
mov dword [0x4098e4], eax
jae 0x40353f
mov eax, 0x40901c
mov esi, 0x409020
cmp eax, esi
mov edi, eax
jae 0x40357b
mov eax, dword [edi]
test eax, eax
je 0x403574
call eax
add edi, 4
cmp edi, esi
jb 0x40356c
mov eax, 0x409024
mov esi, 0x409028
cmp eax, esi
mov edi, eax
jae 0x40359a
mov eax, dword [edi]
test eax, eax
je 0x403593
call eax
add edi, 4
cmp edi, esi
jb 0x40358b
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4035b4
push dword [ebp + 8]
mov dword [0x4093b8], 1
call fcn.0040345b
pop ebp
ret

Function at 0x4035f6
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x409230]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x409100]
je 0x40362b
inc eax
cmp eax, 0x13
jb 0x40361c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x409100]
jne 0x403751
mov eax, dword [0x409368]
cmp eax, 1
je 0x403729
cmp eax, edx
jne 0x40365b
cmp dword [0x4090f8], 1
je 0x403729
cmp ecx, 0xfc
je 0x403751
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x403691
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00404370
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004045a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4036c5
mov eax, edi
push eax
call fcn.004045a0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x407528
push edi
call fcn.00404470
add esp, 0x10
push edi
call fcn.004045a0
push dword [esi + 0x409104]
mov ebx, eax
call fcn.004045a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404170
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00404370
push edi
push ebx
call fcn.00404380
push 0x407508
push ebx
call fcn.00404380
push dword [esi + 0x409104]
push ebx
call fcn.00404380
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00404269
add esp, 0x2c
jmp 0x403751
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x409104]
push dword [esi]
call fcn.004045a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040465c
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x404269
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4094d4], ebx
push esi
push edi
jne 0x4042e9
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x404324
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4094d4], eax
je 0x404324
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4094d8], eax
call esi
cmp dword [0x409378], 2
mov dword [0x4094dc], eax
jne 0x4042e9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4094e4], eax
je 0x4042e9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4094e0], eax
mov eax, dword [0x4094e0]
test eax, eax
je 0x40432e
call eax
test eax, eax
je 0x404315
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4094e4]
test eax, eax
je 0x404315
test byte [ebp - 8], 1
jne 0x40432e
cmp dword [0x409384], 4
jb 0x404328
or byte [ebp + 0x12], 0x20
jmp 0x40434d
xor eax, eax
jmp 0x40435d
or byte [ebp + 0x12], 4
jmp 0x40434d
mov eax, dword [0x4094d8]
test eax, eax
je 0x40434d
call eax
mov ebx, eax
test ebx, ebx
je 0x40434d
mov eax, dword [0x4094dc]
test eax, eax
je 0x40434d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4094d4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405aae
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x405adc
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x405ae3
cmp ebx, dword [eax + 4]
jae 0x405ae3
xor eax, eax
jmp 0x405cd3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x405af4
xor eax, eax
inc eax
jmp 0x405cd2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x405b0a
cmp ecx, edx
jae 0x405c4f
cmp dword [eax + 4], 0
je 0x405b13
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x405afb
cmp dword [ebp + 8], 0
je 0x405b35
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x405c4f
cmp eax, esi
jae 0x405c4f
mov eax, dword [0x4094f0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x405b5a
cmp dword [esi*4 + 0x4094f8], edi
je 0x405c53
inc esi
cmp esi, eax
jl 0x405b48
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x405ccf
cmp dword [ebp - 8], 0x1000000
jne 0x405ccf
test byte [ebp - 0xc], 0xcc
je 0x405bd8
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x405ccf
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405ccf
cmp word [eax + 0x18], 0x10b
jne 0x405ccf
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x405ccf
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x405bd8
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x405bd8
test byte [ecx + 0x27], 0x80
jne 0x405c4f
push 1
push 0x409538
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x405aec
mov ecx, dword [0x4094f0]
test ecx, ecx
mov edx, ecx
jle 0x405c0c
lea eax, [ecx*4 + 0x4094f4]
cmp dword [eax], edi
je 0x405c0c
dec edx
sub eax, 4
test edx, edx
jg 0x405c00
test edx, edx
jne 0x405c3d
push 0xf
pop ebx
cmp ecx, ebx
jg 0x405c19
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x405c31
lea eax, [edx*4 + 0x4094f8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x405c1f
cmp ecx, 0x10
jge 0x405c3d
inc ecx
mov dword [0x4094f0], ecx
push 0
push 0x409538
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x405aec
xor eax, eax
jmp 0x405cd2
test esi, esi
jle 0x405aec
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x409538
call ebx
test eax, eax
jne 0x405aec
cmp dword [esi*4 + 0x4094f8], edi
je 0x405ca9
mov eax, dword [0x4094f0]
lea esi, [eax - 1]
test esi, esi
jl 0x405c97
cmp dword [esi*4 + 0x4094f8], edi
je 0x405c93
dec esi
jns 0x405c87
test esi, esi
jge 0x405ca7
cmp eax, 0x10
jge 0x405ca2
inc eax
mov dword [0x4094f0], eax
lea esi, [eax - 1]
jmp 0x405ca9
je 0x405cc1
xor ecx, ecx
test esi, esi
jl 0x405cc1
lea eax, [ecx*4 + 0x4094f8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x405caf
push 0
push 0x409538
call ebx
jmp 0x405aec
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret