joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e80
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x421c60
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x428040]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.LocalB907A602_E7E0_4613_B57B_53B05062D199
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebp, eax
test ebp, ebp
je 0x401eea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401eea
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401fc7
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov eax, dword [0x42a3c0]
mov edx, dword [eax + 0xc]
mov ecx, 0x42a3c0
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0
mov eax, dword [0x42a3c0]
mov edx, dword [eax + 0xc]
mov ecx, 0x42a3c0
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
push 0x6a
mov byte [esp + 0x24], 1
call fcn.00403240
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x401f54
lea eax, [esp + 0x10]
push eax
mov eax, 0x6a
call fcn.00402610
mov esi, dword [esp + 0x10]
push esi
push str._i__urlhttp:__dl.client.baidu.com_download.php_source_ime__s_BaiduPinyinSetup.exe__exec1__cmdline_S_
lea edi, [esp + 0x1c]
call fcn.00402bc0
mov edi, dword [esp + 0x1c]
add esp, 8
mov ecx, edi
call fcn.00401630
test ebp, ebp
je 0x401f7c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [esi - 0x10]
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401fa3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401fc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret 0x10

Function at 0x4032d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4032e7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403318
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x403314
cmp esi, eax
jae 0x403318
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x403304
cmp esi, eax
jb 0x40331e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x403ac0
Capabilities:
Create thread

Disassembly:
cmp dword [esi + 8], 0
push ebp
mov ebp, dword [esp + 8]
jg 0x403b5d
cmp dword [esi + 0xc], 0
jne 0x403b5d
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x10], eax
je 0x403b5d
push 0
push 0x7fffffff
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
test eax, eax
mov dword [esi + 0x14], eax
je 0x403b5d
xor ecx, ecx
mov eax, ebp
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040cded
add esp, 4
test eax, eax
mov dword [esi + 0xc], eax
je 0x403b5d
push edi
xor edi, edi
test ebp, ebp
jle 0x403b53
nop
push 0
push 0
push esi
push 0x403d00
push 0
push 0
call fcn.0040e175
mov ecx, dword [esi + 0xc]
mov dword [ecx + edi*4], eax
add edi, 1
add esp, 0x18
cmp edi, ebp
jl 0x403b30
pop edi
mov dword [esi + 8], ebp
mov al, 1
pop ebp
ret 4
xor al, al
pop ebp
ret 4

Function at 0x403c90
Capabilities:
Terminate thread

Disassembly:
push ecx
cmp dword [edi + 0xc], 0
je 0x403cf6
mov eax, dword [edi + 8]
test eax, eax
je 0x403cf6
push esi
xor esi, esi
test eax, eax
jle 0x403cf5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x403cc0
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
mov edx, dword [ecx + esi*4]
push eax
push edx
call ebx
cmp dword [esp + 0xc], 0x103
jne 0x403ceb
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + esi*4]
push 0
push ecx
call ebp
add esi, 1
cmp esi, dword [edi + 8]
jl 0x403cc0
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x406340
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x1036]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4063a2
push 0
push 0x40000080
push 4
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
je 0x4063a2
push 0
push 0
push 0
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x4063ac
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1240]
mov edi, dword [esi + 0x1244]
sub edi, eax
add edi, 1
push edi
push eax
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
jne 0x4063ed
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
xor al, al
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x1240]
push edi
lea ecx, [esi + 0x36]
push ebp
push ecx
mov ecx, dword [esi + 0x1244]
call fcn.004046e0
add esp, 0xc
push ebp
mov byte [esp + 0x17], al
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
mov edx, dword [esp + 0x14]
push edx
call edi
mov bl, byte [esp + 0x13]
test bl, bl
je 0x406454
mov eax, dword [esi + 0x30]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
lea ecx, [esi + 0x1036]
call fcn.00401fe0
add esi, 8
push esi
call fcn.00406480
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov byte [esi + 0x34], 1
mov al, bl
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ab10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x420d63
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x428040]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [esp + 0x14], edi
mov dword [esi], vtable.CMainWindow.0
mov edx, dword [0x42a3c0]
mov eax, dword [edx + 0xc]
mov ecx, 0x42a3c0
call eax
add eax, 0x10
mov dword [esi + 0x24], eax
push edi
mov byte [esp + 0x18], 1
call fcn.0040e696
add esp, 4
lea ecx, [esi + 0x30]
push ecx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
call fcn.0040ae30
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x40abd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x420d63
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x428040]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.CMainWindow.0
lea eax, [esi + 0x30]
mov dword [esp + 0x14], 1
call fcn.0040af00
mov byte [esp + 0x14], 0
mov eax, dword [esi + 0x24]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ac30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esi + 0x14]
test esi, esi
je 0x40ac45
push esi
call fcn.0040cecd
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x40bb40
Capabilities:
Delete file
Get file size

Disassembly:
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
push ebx
push ebp
push esi
push edi
je 0x40bbca
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebp]
cmp dword [ecx - 0xc], 0
je 0x40bbca
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jbe 0x40bbca
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x40000080
push 4
push 0
push 3
push 0xc0000000
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x40bbca
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
push 0
je 0x40bbae
push ebx
push 0
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, dword [ebp]
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40bbbf
push 0
push 0
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x40bbd3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call ebp
push edi
call ebp
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
push 0
push 0x40000080
push 4
push 0
push 3
push 0xc0000000
push eax
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x40bbca
mov esi, dword [esp + 0x14]
call fcn.0040c290
fild dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov dword [esp + 0x18], eax
jge 0x40bc20
fadd dword [0x42451c]
fidiv dword [esp + 0x18]
push ecx
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
call fcn.0040b210
add esp, 4
call fcn.00420c00
push 0
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, esi
push 0
je 0x40bc51
push esi
jmp 0x40bc53
push 0
push 0
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x40bc7f
push 0
push 0
push 0
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x40bc8b
push ebx
call ebp
push edi
call ebp
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0xb0], edi
pop edi
mov dword [ecx + 0xa8], esi
pop esi
pop ebp
mov dword [ecx + 0xa4], eax
mov dword [ecx + 0xac], ebx
mov al, 1
pop ebx
ret 0xc
Function at 0x40bcb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x421048
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x428040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 6
xor esi, esi
push str..redic
lea eax, [ebp + 0xc]
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x14], esi
call fcn.00402a60
mov ebx, dword [ebp + 0xc]
push 0x42449c
lea ecx, [ebp - 0x14]
push ebx
push ecx
call fcn.0040e983
add esp, 0xc
test eax, eax
jne 0x40bdcb
cmp dword [ebp - 0x14], esi
je 0x40bdcb
call dword [0x428008]
mov edx, dword [ebp + 8]
mov edi, dword [edx + 0x94]
cmp edi, esi
mov dword [ebp - 0x18], eax
jne 0x40bd33
xor edx, edx
jmp 0x40bd7b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jg 0x40bd74
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0041c360
mov esi, esp
test esi, esi
je 0x40bd74
mov eax, dword [ebp - 0x18]
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push eax
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x40bd76
xor eax, eax
mov ebx, dword [ebp + 0xc]
mov edx, eax
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40bd80
mov ecx, dword [ebp - 0x14]
push ecx
sub eax, esi
push 1
push eax
push edx
call fcn.0040eb32
mov edx, dword [ebp - 0x14]
push edx
call fcn.0040ec26
lea eax, [ebx - 0x10]
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bdc7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x40bdf0
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bdee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d942
mov esp, ebp
pop ebp
ret 8
Function at 0x40be20
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x421018
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x428040]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor ebx, ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x58], ebx
mov edi, dword [esp + 0x64]
push eax
push edi
call fcn.0040ed9f
or ebp, 0xffffffff
add esp, 8
cmp eax, ebp
je 0x40bf5e
mov ecx, dword [esp + 0x30]
add ecx, 1
push ecx
call fcn.0040cded
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x40be94
lea eax, [edi - 0x10]
mov dword [esp + 0x58], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
jmp 0x40bf6d
push 6
push str..redic
lea ecx, [esp + 0x6c]
push ecx
mov dword [esp + 0x20], ebx
call fcn.00402a60
mov edi, dword [esp + 0x64]
push 0x4244a4
lea edx, [esp + 0x18]
push edi
push edx
call fcn.0040e983
add esp, 0xc
test eax, eax
jne 0x40bf5e
cmp dword [esp + 0x14], ebx
je 0x40bf5e
mov eax, dword [esp + 0x30]
add eax, 1
push eax
push ebx
push esi
call fcn.0040faf0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
push ecx
push edx
push 1
push esi
call fcn.0040f372
mov eax, esi
add esp, 0x1c
lea edx, [eax + 1]
jmp 0x40bf00
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40bf00
sub eax, edx
je 0x40bf2a
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsURLA]
test eax, eax
je 0x40bf2a
mov eax, dword [esp + 0x60]
add eax, 0x94
mov ebx, esi
call fcn.0040c4b0
mov bl, 1
push esi
call fcn.0040d531
mov eax, dword [esp + 0x18]
push eax
call fcn.0040ec26
lea eax, [edi - 0x10]
add esp, 8
mov dword [esp + 0x58], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40bf5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
jmp 0x40bf7d
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
mov dword [esp + 0x58], ebp
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40bf7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 8

Function at 0x40c290
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
cmp dword [esi + 0x7c], 0
jne 0x40c2b7
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x1c]
lea edx, [ecx*8]
mov dword [esi + 0x7c], edx
mov eax, edx
add esp, 0x24
ret
mov eax, dword [esi + 0x7c]
add esp, 0x24
ret
Function at 0x40cf7a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x42a340], 0
push esi
jne 0x40ceed
call fcn.0040ce18
test eax, eax
je 0x40cf30
mov eax, dword [0x42a340]
cmp eax, 1
jne 0x40cf0e
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40cf30
pop esi
ret
push eax
call dword [0x42a348]
test eax, eax
jne 0x40cf78
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40cf34
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x42a340]
call dword [0x42a348]
mov edi, eax
test edi, edi
je 0x40cf5b
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40cf77
lea edi, [esi + 0xff0]
push esi
push dword [0x42a340]
call dword [0x42a344]
add esi, 0x10
cmp esi, edi
jb 0x40cf61
mov eax, esi
pop edi
pop esi
ret
jmp 0x40ceda

Function at 0x40d1a7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x428040]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040d0e6
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.0040faf0
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 0x40d1f6
cmp dword [ebp - 0x1c], 5
jb 0x40d20e
jmp 0x40d20a
cmp dword [ebp - 0x10], 1
jne 0x40d20e
cmp dword [ebp - 0x1c], 4
ja 0x40d20a
jne 0x40d20e
cmp dword [ebp - 0x18], 0
jbe 0x40d20e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4223dc
call fcn.0040cf93
test eax, eax
jge 0x40d22f
mov byte [0x42afd4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040d942
add ebp, 0x78
leave
ret

Function at 0x40d942
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428040]
jne 0x40d94c
repz ret
jmp fcn.00411b56
Function at 0x40f0d6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x40f113
cmp dword [ebp + 0x14], edi
je 0x40f113
cmp ecx, edi
jne 0x40f11a
call fcn.00411b0a
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0040d90e
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x40f12e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x40f14f
cmp ebx, 0xffffffff
je 0x40f13e
push ebx
push edi
push ecx
call fcn.0040faf0
add esp, 0xc
cmp esi, edi
je 0x40f0fb
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x40f0fb
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x40f16b
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x40f172
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x40f263
test word [esi + 0xc], 0x10c
je 0x40f1c6
mov eax, dword [esi + 4]
test eax, eax
je 0x40f1c6
jl 0x40f2c4
cmp ebx, eax
mov edi, ebx
jb 0x40f197
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x40f26b
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040dd7d
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x40f25b
cmp ebx, dword [ebp - 0xc]
jb 0x40f233
cmp dword [ebp - 0xc], 0
je 0x40f1f0
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x40f1e5
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x40f1ec
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x40f1fb
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x40f1fb
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x40f297
push eax
push dword [ebp - 8]
push esi
call fcn.004157f1
pop ecx
push eax
call fcn.00416762
add esp, 0xc
test eax, eax
je 0x40f2d6
cmp eax, 0xffffffff
je 0x40f2c4
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x40f25b
push esi
call fcn.00416081
cmp eax, 0xffffffff
pop ecx
je 0x40f2c8
cmp dword [ebp - 4], 0
je 0x40f297
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x40f17a
mov eax, dword [ebp + 0x14]
jmp 0x40f115
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x40f282
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0040faf0
add esp, 0xc
call fcn.00411b0a
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x40f10b
cmp dword [ebp + 0xc], 0xffffffff
je 0x40f2ad
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0040faf0
add esp, 0xc
call fcn.00411b0a
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x40f10b
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x40f115
or dword [esi + 0xc], 0x10
jmp 0x40f2c8
Function at 0x4144bc
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 + 0x4289a8]
je 0x4144d7
inc edi
cmp edi, 0x17
jb 0x4144c8
cmp edi, 0x17
jae 0x414657
push ebp
push 3
call fcn.00419b5d
cmp eax, 1
pop ecx
je 0x414623
push 3
call fcn.00419b5d
test eax, eax
pop ecx
jne 0x41450b
cmp dword [0x428030], 1
je 0x414623
cmp ebx, 0xfc
je 0x414656
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x42a928
push ebp
call fcn.00410e72
add esp, 0xc
test eax, eax
je 0x414541
push esi
push esi
push esi
push esi
push esi
call fcn.0040d812
add esp, 0x14
push 0x104
mov esi, 0x42a941
push esi
push 0
mov byte [0x42aa45], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414585
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00410e72
add esp, 0xc
test eax, eax
je 0x414585
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040d812
add esp, 0x14
push esi
call fcn.0040f5e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4145ca
push esi
call fcn.0040f5e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42ac3c
push 0x422b4c
sub ecx, eax
push ecx
push eax
call fcn.004187d6
add esp, 0x14
test eax, eax
je 0x4145ca
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040d812
add esp, 0x14
jmp 0x4145cc
xor esi, esi
push 0x422b48
push ebx
push ebp
call fcn.00418719
add esp, 0xc
test eax, eax
je 0x4145ec
push esi
push esi
push esi
push esi
push esi
call fcn.0040d812
add esp, 0x14
push dword [edi*8 + 0x4289ac]
push ebx
push ebp
call fcn.00418719
add esp, 0xc
test eax, eax
je 0x41460e
push esi
push esi
push esi
push esi
push esi
call fcn.0040d812
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004199a0
add esp, 0xc
jmp 0x414656
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x414656
cmp ebp, 0xffffffff
je 0x414656
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4289ac]
push dword [esi]
call fcn.0040f5e0
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