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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x405ba8
call fcn.0040e013
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x405ba8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x405beb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x405bd4
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x405bd4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x405be8
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40b714
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40b757
call fcn.0040e013
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40b757
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40b772
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040b2ce
test ebx, ebx
mov esi, eax
je 0x40b770
test edi, edi
je 0x40b770
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40eb55
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40eb83
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40eba1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040eabf
jmp 0x40eba1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40eba1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040eabf
test edi, edi
mov eax, edi
jne 0x40eb8b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x446940]
test ecx, ecx
je 0x40ec64
jmp 0x40eb54
ret 8

Function at 0x41e0b3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4435f0]
jne 0x41e0bd
repz ret
jmp fcn.00423446
Function at 0x422257
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 + 0x443780]
je 0x422272
inc edi
cmp edi, 0x17
jb 0x422263
cmp edi, 0x17
jae 0x4223f2
push ebp
push 3
call fcn.0042ab20
cmp eax, 1
pop ecx
je 0x4223be
push 3
call fcn.0042ab20
test eax, eax
pop ecx
jne 0x4222a6
cmp dword [0x4435c8], 1
je 0x4223be
cmp ebx, 0xfc
je 0x4223f1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x446a48
push ebp
call fcn.0042aabb
add esp, 0xc
test eax, eax
je 0x4222dc
push esi
push esi
push esi
push esi
push esi
call fcn.00423677
add esp, 0x14
push 0x104
mov esi, 0x446a61
push esi
push 0
mov byte [0x446b65], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x422320
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042aabb
add esp, 0xc
test eax, eax
je 0x422320
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00423677
add esp, 0x14
push esi
call fcn.0042aa30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x422365
push esi
call fcn.0042aa30
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x446d5c
push 0x437d6c
sub ecx, eax
push ecx
push eax
call fcn.0042a970
add esp, 0x14
test eax, eax
je 0x422365
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00423677
add esp, 0x14
jmp 0x422367
xor esi, esi
push 0x437d68
push ebx
push ebp
call fcn.0042a8ff
add esp, 0xc
test eax, eax
je 0x422387
push esi
push esi
push esi
push esi
push esi
call fcn.00423677
add esp, 0x14
push dword [edi*8 + 0x443784]
push ebx
push ebp
call fcn.0042a8ff
add esp, 0xc
test eax, eax
je 0x4223a9
push esi
push esi
push esi
push esi
push esi
call fcn.00423677
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0042a742
add esp, 0xc
jmp 0x4223f1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4223f1
cmp ebp, 0xffffffff
je 0x4223f1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x443784]
push dword [esi]
call fcn.0042aa30
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 0x42a742
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00422e1b
xor ebx, ebx
cmp dword [0x447540], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x42a818
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42a8f8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x42a8f8
push eax
call fcn.00422dad
mov dword [esp], 0x437fac
push edi
mov dword [0x447540], eax
call esi
push eax
call fcn.00422dad
mov dword [esp], 0x437f98
push edi
mov dword [0x447544], eax
call esi
push eax
call fcn.00422dad
mov dword [0x447548], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042076a
test eax, eax
pop ecx
pop ecx
je 0x42a7e6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00423677
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x42a818
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00422dad
cmp eax, ebx
pop ecx
mov dword [0x447550], eax
je 0x42a818
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00422dad
pop ecx
mov dword [0x44754c], eax
mov eax, dword [0x44754c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42a89d
cmp dword [0x447550], ecx
je 0x42a89d
push eax
call fcn.00422e24
push dword [0x447550]
mov esi, eax
call fcn.00422e24
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42a89d
cmp edi, ebx
je 0x42a89d
call esi
cmp eax, ebx
je 0x42a86a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42a86a
test byte [ebp - 0x18], 1
jne 0x42a89d
lea eax, [ebp - 0x10]
push eax
call fcn.004207a1
test eax, eax
pop ecx
je 0x42a885
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00423677
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x42a894
or dword [ebp + 0x10], 0x200000
jmp 0x42a8d8
or dword [ebp + 0x10], 0x40000
jmp 0x42a8d8
mov eax, dword [0x447544]
cmp eax, dword [ebp - 8]
je 0x42a8d8
push eax
call fcn.00422e24
cmp eax, ebx
pop ecx
je 0x42a8d8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42a8d8
mov eax, dword [0x447548]
cmp eax, dword [ebp - 8]
je 0x42a8d8
push eax
call fcn.00422e24
cmp eax, ebx
pop ecx
je 0x42a8d8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x447540]
call fcn.00422e24
cmp eax, ebx
pop ecx
je 0x42a8f8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42a8fa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4321e4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4435f0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00432179
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.00420160
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 0x432233
cmp dword [ebp - 0x1c], 5
jb 0x43224b
jmp 0x432247
cmp dword [ebp - 0x10], 1
jne 0x43224b
cmp dword [ebp - 0x1c], 4
ja 0x432247
jne 0x43224b
cmp dword [ebp - 0x18], 0
jbe 0x43224b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4398f8
call fcn.0043204d
test eax, eax
jge 0x43226c
mov byte [0x447d10], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041e0b3
add ebp, 0x78
leave
ret

Function at 0xc36ea4
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00c36ea4
ret
Function at 0x4010e5
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x14], 0x180f
cmp dword [ebp - 0x14], 0
je 0x401192
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x44], 0x3a
mov dword [ebp - 0x28], 0x10
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0xca8ecb73
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x14], 0x3f0
jae 0x4011d8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x401227
push dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebp - 0x50], 0xe344
pop dword [ebp + 8]
mov dword [ebp - 0x5c], 0
jmp 0x4011fa
mov ecx, dword [ebp - 0x5c]
add ecx, 1
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp + 0xc]
jae 0x401211
mov eax, dword [0x4072c0]
add eax, 1
mov dword [0x4072c0], eax
jmp 0x4011f1
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], 0x833a
mov edx, dword [ebp - 0x50]
add edx, 0xa
mov dword [ebp - 0x50], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
lea eax, [edx + ecx + 0xa]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp - 0x24]
mov dword [eax + 4], 0x15e7a661
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x50]
push ecx
push 0
call section..text
add esp, 0xc
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x44]
mov dword [ebp - 0x48], edx
push dword [ebp - 0x3c]
push dword [ebp - 0x54]
push str.igl7kljhs
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
jne 0x401297
mov eax, dword [ebp - 0x48]
call eax
jmp 0x40127f
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40129d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x407050]
xor eax, dword [ebp + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0
push 0x40
push 0x1000
push 0xffff
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x8c], 0
push 0
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [ebp - 4]
push ecx
call fcn.004013dc
add esp, 4
lea edx, [ebp - 0x70]
mov dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x90]
push eax
call fcn.00401474
add esp, 4
push 0x64
call fcn.00401466
add esp, 4
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x88], ecx
push 0x40703c
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov edx, dword [ebp - 0x88]
push edx
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
push 0
push 0
push 0
call sub.AVIFIL32.dll_AVIFileOpenA
push 2
push 0xa
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 2
push 0xa
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 8]
xor ecx, dword [ebp + 4]
call fcn.004014aa
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4013dc
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
push str.sd2nwjwwqx.e
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40143d
push 0
call fcn.0040139d
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
push eax
push 0
call fcn.004010e5
add esp, 8
push 0
call sub.WinSCard.dll_SCardCancel
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4014dd
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x405130
call fcn.00401914
mov edi, 0x94
mov eax, edi
call fcn.00402520
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 [0x4072e0], ecx
mov eax, dword [esi + 4]
mov dword [0x4072ec], eax
mov edx, dword [esi + 8]
mov dword [0x4072f0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4072e4], esi
cmp ecx, 2
je 0x40153d
or esi, 0x8000
mov dword [0x4072e4], esi
shl eax, 8
add eax, edx
mov dword [0x4072e8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x401578
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401578
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401590
cmp eax, 0x20b
je 0x40157d
mov dword [ebp - 0x1c], esi
jmp 0x4015a4
cmp dword [ecx + 0x84], 0xe
jbe 0x401578
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40159e
cmp dword [ecx + 0x74], 0xe
jbe 0x401578
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004024c5
pop ecx
test eax, eax
jne 0x4015d0
cmp dword [0x4072cc], 1
jne 0x4015bd
call fcn.00401c6e
push 0x1c
call fcn.00401af7
push 0xff
call fcn.00401960
pop ecx
pop ecx
call fcn.00402423
mov dword [ebp - 4], esi
call fcn.00402278
test eax, eax
jge 0x4015e9
push 0x1b
call fcn.004014b8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x407814], eax
call fcn.00402156
mov dword [0x4072c4], eax
call fcn.004020b4
test eax, eax
jge 0x40160f
push 8
call fcn.004014b8
pop ecx
call fcn.00401e81
test eax, eax
jge 0x401620
push 9
call fcn.004014b8
pop ecx
call fcn.00401990
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x401633
push eax
call fcn.004014b8
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401e18
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x401654
movzx eax, word [ebp - 0x34]
jmp 0x401657
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.0040129d
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x401675
push edi
call fcn.00401ab7
call fcn.00401ad9
jmp 0x4016a7
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040194f
ret
Function at 0x4019f5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x407320], esi
push edi
jne 0x401a15
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 [0x40731c], esi
mov byte [0x407318], al
jne 0x401a7b
mov ecx, dword [0x407808]
test ecx, ecx
je 0x401a5c
mov eax, dword [0x407804]
sub eax, 4
cmp eax, ecx
jmp 0x401a55
mov eax, dword [eax]
test eax, eax
je 0x401a47
call eax
mov eax, dword [0x407804]
sub eax, 4
cmp eax, dword [0x407808]
mov dword [0x407804], eax
jae 0x401a3f
mov eax, 0x40701c
mov esi, 0x407020
cmp eax, esi
mov edi, eax
jae 0x401a7b
mov eax, dword [edi]
test eax, eax
je 0x401a74
call eax
add edi, 4
cmp edi, esi
jb 0x401a6c
mov eax, 0x407024
mov esi, 0x407028
cmp eax, esi
mov edi, eax
jae 0x401a9a
mov eax, dword [edi]
test eax, eax
je 0x401a93
call eax
add edi, 4
cmp edi, esi
jb 0x401a8b
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x401ab5
push dword [ebp + 8]
mov dword [0x407320], 1
call fcn.00401960
pop ecx
pop ebp
ret

Function at 0x401af7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x407050]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x407060]
je 0x401b24
inc eax
cmp eax, 0x12
jb 0x401b15
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x407060]
jne 0x401c58
mov eax, dword [0x4072cc]
cmp eax, 1
je 0x401c33
cmp eax, edx
jne 0x401b54
cmp dword [0x407058], 1
je 0x401c33
cmp ecx, 0xfc
je 0x401c58
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401b8d
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004031a0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004033d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401bcf
lea eax, [ebp - 0x10c]
push eax
call fcn.004033d0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x405174
push edi
call fcn.004032a0
add esp, 0x10
push edi
call fcn.004033d0
push dword [esi + 0x407064]
mov ebx, eax
call fcn.004033d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402520
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004031a0
push edi
push ebx
call fcn.004031b0
push 0x405170
push ebx
call fcn.004031b0
push dword [esi + 0x407064]
push ebx
call fcn.004031b0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040309b
add esp, 0x2c
jmp 0x401c58
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x407064]
push dword [esi]
call fcn.004033d0
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004014aa
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40309b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x407444], ebx
push esi
push edi
jne 0x40311b
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403156
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x407444], eax
je 0x403156
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x407448], eax
call esi
cmp dword [0x4072e0], 2
mov dword [0x40744c], eax
jne 0x40311b
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x407454], eax
je 0x40311b
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x407450], eax
mov eax, dword [0x407450]
test eax, eax
je 0x403160
call eax
test eax, eax
je 0x403147
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x407454]
test eax, eax
je 0x403147
test byte [ebp - 8], 1
jne 0x403160
cmp dword [0x4072ec], 4
jb 0x40315a
or byte [ebp + 0x12], 0x20
jmp 0x40317f
xor eax, eax
jmp 0x40318f
or byte [ebp + 0x12], 4
jmp 0x40317f
mov eax, dword [0x407448]
test eax, eax
je 0x40317f
call eax
mov ebx, eax
test ebx, ebx
je 0x40317f
mov eax, dword [0x40744c]
test eax, eax
je 0x40317f
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x407444]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404b28
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402520
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404bbd
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x4072e0]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x404bbd
cmp eax, 1
je 0x404bd5
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404bbd
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x404b92
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x404bb9
xor eax, eax
inc eax
jmp 0x404bf1
cmp esi, ebx
jae 0x404bc1
xor eax, eax
jmp 0x404bf1
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4072e0]
jmp 0x404bd7
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret