joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4042c6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x58], 0xffffffff
jne 0x4043fe
xor eax, eax
inc eax
mov dword [esi + 0x58], eax
cmp dword [esi + 0x44], eax
jl 0x4043fe
push ebx
push edi
mov edi, 0x3ff
xor ebx, ebx
push edi
lea eax, [ebp - 0x403]
push ebx
push eax
mov byte [ebp - 0x404], bl
call sub.MSVCR100.dll_memset
mov eax, dword [esi + 0x48]
push dword [eax]
lea eax, [ebp - 0x404]
push eax
call sub.MSVCR100.dll_strcat
lea eax, [ebp - 0x404]
push 0x5c
push eax
call dword [sym.imp.MSVCR100.dll_strrchr]
add esp, 0x1c
cmp eax, ebx
je 0x4043fc
mov byte [eax], bl
lea eax, [ebp - 0x404]
push str.qt.conf
push eax
call sub.MSVCR100.dll_strcat
push edi
lea eax, [ebp - 0x803]
push ebx
push eax
mov byte [ebp - 0x804], bl
call sub.MSVCR100.dll_memset
add esp, 0x14
lea eax, [ebp - 0x404]
push eax
push 0x400
lea eax, [ebp - 0x804]
push eax
push str.false
push str.DPIAware
push str.Support
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x804]
push str.true
push eax
call dword [sym.imp.MSVCR100.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x4043fc
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
je 0x4043fc
push str.SetProcessDPIAware
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4043fc
call eax
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0x58
push edi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push edi
push ebx
mov dword [ebp - 0x808], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
fild dword [ebp - 0x808]
fdiv qword [0x4164c0]
call fcn.00404420
mov dword [esi + 0x58], eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401d92
leave
ret

Function at 0x40494a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x40495e
xor al, al
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40495a
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x40495a
add ecx, 0x2b
cmp word [eax + 0x18], cx
sete al
pop ebp
ret

Function at 0x404b8f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push str.SoftwarekingsoftOffice6.0CommonApplication_Settings
push 0x80000001
mov edi, ecx
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404bf1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push esi
push str.oleForceShowSplash
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404be8
cmp dword [ebp - 8], esi
setne al
mov dword [edi + 0x4c], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret
Function at 0x4053e9
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4054d6
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4054d5
push edi
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x28], 0
jne 0x405429
mov dword [ebp - 0x28], 0x1000
mov edi, dword [ebp + 0x10]
lea edx, [ebx + esi - 1]
xor esi, esi
xor ecx, ecx
mov dword [ebp + 8], ebx
mov dword [ebp - 8], edx
test edi, edi
je 0x405448
mov eax, dword [edi]
mov ecx, dword [eax]
cmp ecx, eax
jne 0x405448
xor edi, edi
cmp ebx, edx
jae 0x4054c7
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
test edi, edi
je 0x4054b4
mov edx, dword [ecx + 0xc]
cmp esi, edx
seta bl
cmp edx, esi
jae 0x405474
mov eax, dword [edi]
mov ecx, dword [ecx]
cmp ecx, eax
sete dl
test dl, dl
jne 0x4054c7
cmp dword [ecx + 0xc], esi
jb 0x405464
test bl, bl
je 0x40549b
mov eax, dword [ebp - 0x28]
mov edx, dword [ecx + 8]
add eax, esi
cmp eax, edx
jae 0x40549b
mov eax, edx
sub eax, esi
xor edx, edx
div dword [ebp - 0x28]
test eax, eax
jne 0x405492
inc eax
imul eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
jmp 0x4054af
mov eax, dword [ebp - 0x28]
add eax, esi
cmp eax, dword [ecx + 8]
jb 0x4054af
cmp esi, dword [ecx + 0xc]
ja 0x4054af
mov eax, dword [ebp + 8]
mov al, byte [eax]
add esi, dword [ebp - 4]
jmp 0x4054b9
mov eax, dword [ebp + 8]
mov al, byte [eax]
mov eax, dword [ebp - 4]
add dword [ebp + 8], eax
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 8]
jb 0x40544c
test edi, edi
je 0x4054cf
cmp ecx, dword [edi]
je 0x4054d4
mov eax, dword [ebp - 8]
mov al, byte [eax]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4054d9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00404a46
xor ebx, ebx
test eax, eax
je 0x405604
push ebx
push 0x48000000
push 3
push ebx
push 7
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x405519
xor al, al
jmp 0x405645
push 4
push 0x1000
mov edi, 0x100000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x405512
push 0x14
lea eax, [ebp - 0x20]
push ebx
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x18], ebx
cmp eax, ebx
je 0x40555a
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
jne 0x40555a
mov dword [ebp + 0xc], ebx
mov eax, dword [ebp + 0xc]
mov edx, edi
cmp eax, ebx
je 0x405598
mov ecx, dword [ebp - 0x18]
cmp dword [esi + 0xc], ecx
jae 0x405580
mov ecx, dword [eax]
mov esi, dword [esi]
cmp esi, ecx
sete al
cmp al, bl
jne 0x4055ea
mov eax, dword [ebp - 0x18]
cmp dword [esi + 0xc], eax
jb 0x40556d
mov eax, dword [esi + 8]
cmp dword [ebp - 0x18], eax
ja 0x40558b
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xc]
sub eax, dword [ebp - 0x18]
inc eax
cmp eax, edi
jae 0x405598
mov edx, eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push edx
push dword [ebp - 0xc]
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4055d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4055ea
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4055ea
mov eax, dword [ebp - 4]
cmp eax, ebx
jbe 0x4055ea
add dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
jmp 0x40555a
push 0x8000
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405643
push 9
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
cmp esi, ebx
je 0x405512
push esi
call fcn.0040494a
pop ecx
test al, al
je 0x405512
push dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
push dword [eax + esi + 0x50]
push esi
call fcn.004053e9
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4061fd
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp edi, dword [ebp + 0xc]
je 0x406238
push esi
push dword [edi]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40622f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 4
cmp edi, dword [ebp + 0xc]
jne 0x40620a
pop esi
lea ecx, [ebp + 8]
pop edi
pop ebp
jmp fcn.004060e1
Function at 0x4062a8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x40637e
cmp word [edi], bx
je 0x40637e
cmp esi, ebx
je 0x40637e
push 0x820
lea eax, [ebp - 0x824]
push ebx
push eax
mov dword [ebp - 0x828], 0x824
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x82c], eax
cmp ebx, 0xffffffff
je 0x40637e
lea eax, [ebp - 0x828]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
jmp 0x406365
lea eax, [ebp - 0x804]
push edi
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x406358
mov eax, dword [ebp - 0x82c]
cmp dword [ebp - 0x820], eax
je 0x406358
lea eax, [ebp - 0x820]
push eax
mov ecx, esi
call fcn.00406242
lea eax, [ebp - 0x828]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406328
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
xor ecx, ecx
cmp eax, dword [esi + 4]
setne cl
mov eax, ecx
jmp 0x406380
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401d92
leave
ret

Function at 0x407217
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 8]
mov esi, ecx
push 0x407043
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], eax
test eax, eax
je 0x407250
lea ecx, [esi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp + 8]
push edx
push eax
call fcn.00406c6d
pop esi
leave
ret 4

Function at 0x408a77
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x811c9dc5
jmp 0x408a92
movzx edx, word [ecx]
imul eax, eax, 0x1000193
xor eax, edx
add ecx, 2
cmp ecx, dword [ebp + 0xc]
jne 0x408a84
pop ebp
ret
Function at 0x408fa2
Capabilities:
Get common file path

Disassembly:
push 0x850
mov eax, 0x412191
call fcn.004019d4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x858], eax
xor eax, eax
xor ebx, ebx
push 0x7fe
mov word [ebp - 0x838], ax
lea eax, [ebp - 0x836]
push ebx
push eax
mov dword [ebp - 0x85c], ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x838]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x840], 7
mov dword [ebp - 0x844], ebx
mov word [ebp - 0x854], ax
push 9
pop ecx
mov word [ebp - 0x38], ax
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0xf
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.MSVCR100.dll__itow]
push eax
call edi
mov esi, dword [sym.imp.MSVCR100.dll_wcslen]
lea eax, [ebp - 0x38]
push eax
call esi
add esp, 0x10
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x854]
call fcn.004021e9
lea eax, [ebp - 0x38]
push 0xf
push eax
push eax
call edi
lea eax, [ebp - 0x38]
push eax
call esi
add esp, 0x10
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x854]
call fcn.0040564a
mov edi, str..exe
push edi
call esi
pop ecx
push eax
push edi
lea ecx, [ebp - 0x854]
call fcn.0040564a
cmp dword [ebp - 0x840], 8
mov eax, dword [ebp - 0x854]
jae 0x40909d
lea eax, [ebp - 0x854]
push eax
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [ebp - 0x858]
lea eax, [ebp - 0x838]
push eax
call fcn.004021b7
push ebx
push 1
lea ecx, [ebp - 0x854]
call fcn.0040236a
mov eax, dword [ebp - 0x858]
call fcn.00401d83
ret
Function at 0x4090d7
Capabilities:
Accept command line arguments
Copy file
Create process on windows

Disassembly:
push 0x90c
mov eax, 0x412206
call fcn.004019d4
lea ecx, [ebp - 0x918]
call fcn.00401f0f
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x848]
call fcn.004021b7
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x918]
mov byte [ebp - 4], 1
call fcn.004026ca
push ebx
push 1
lea ecx, [ebp - 0x848]
mov byte [ebp - 4], bl
call fcn.0040236a
push 0x416d14
lea ecx, [ebp - 0x89c]
call fcn.004021b7
push str.Temporary
lea ecx, [ebp - 0x848]
mov byte [ebp - 4], 2
call fcn.004021b7
lea eax, [ebp - 0x89c]
push eax
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x918]
mov byte [ebp - 4], 3
call fcn.00408675
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.0040236a
push ebx
push 1
lea ecx, [ebp - 0x89c]
mov byte [ebp - 4], bl
call fcn.0040236a
lea eax, [ebp - 0x880]
push eax
lea ecx, [ebp - 0x918]
call fcn.00407940
lea eax, [ebp - 0x864]
push eax
lea ecx, [ebp - 0x918]
mov byte [ebp - 4], 4
call fcn.00408846
lea eax, [ebp - 0x82c]
push eax
mov byte [ebp - 4], 5
call fcn.00408fa2
pop ecx
mov ecx, dword [ebp - 0x82c]
push 8
pop esi
cmp dword [ebp - 0x818], esi
jae 0x4091df
lea ecx, [ebp - 0x82c]
mov eax, dword [ebp - 0x880]
cmp dword [ebp - 0x86c], esi
jae 0x4091f3
lea eax, [ebp - 0x880]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x409243
xor esi, esi
push ebx
push 1
lea ecx, [ebp - 0x82c]
call fcn.0040236a
push ebx
push 1
lea ecx, [ebp - 0x864]
call fcn.0040236a
push ebx
push 1
lea ecx, [ebp - 0x880]
call fcn.0040236a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x918]
call fcn.00404701
mov eax, esi
call fcn.00401d83
ret
xor eax, eax
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [ebp - 0x864]
cmp dword [ebp - 0x850], esi
jae 0x409295
lea edi, [ebp - 0x864]
cmp dword [ebp - 0x818], esi
mov esi, dword [ebp - 0x82c]
jae 0x4092a9
lea esi, [ebp - 0x82c]
call fcn.00408a44
push eax
lea eax, [ebp - 0x810]
push eax
push edi
push esi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov esi, ecx
jmp 0x409202
Function at 0x4092cf
Capabilities:
Accept command line arguments

Disassembly:
push 0x9c
mov eax, 0x412251
call fcn.004019d4
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xa8]
call fcn.00401f0f
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004021b7
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.004026ca
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0040236a
push 0x416d18
lea ecx, [ebp - 0x2c]
call fcn.004021b7
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.004086e0
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.0040236a
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xa8]
call fcn.004089a5
push esi
push eax
mov byte [ebp - 4], 3
call fcn.00405ed6
mov ecx, eax
call fcn.00405ee0
mov ecx, eax
call fcn.0040d5c6
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.0040236a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.00404701
mov eax, esi
call fcn.00401d83
ret 4
Function at 0x40a516
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x14
push 0
push esi
mov edi, ecx
mov dword [esi + 0x14], 1
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x40a571
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e5
je 0x40a55d
push 0
push esi
mov ecx, edi
call fcn.0040a577
jmp 0x40a570
call ebx
cmp eax, 0x217
jne 0x40a570
push 0
push esi
mov ecx, edi
call fcn.0040a6b8
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0x40a6b8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
and dword [ebp + 8], 0
push edi
mov edi, 0x90
push edi
push 0
push dword [esi + 0x18]
mov ebx, ecx
mov dword [esi + 0x14], 2
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
lea eax, [ebp + 8]
push eax
push edi
push dword [esi + 0x18]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a718
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
je 0x40a718
call edi
cmp eax, 0xea
je 0x40a718
push 0
push esi
mov ecx, ebx
call fcn.0040a577
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40a7e1
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
and dword [ebp - 0xc], 0
push ebx
mov byte [ebp - 0x20], 0
push esi
push edi
mov ebx, ecx
mov dword [ebx + 4], eax
xor eax, eax
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x20]
call fcn.0040a4f2
xor esi, esi
mov edx, 0x40000003
cmp dword [ebp + 0x18], esi
je 0x40a829
mov edx, 0x40080003
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
jb 0x40a834
mov ecx, dword [ecx]
lea eax, [ebp - 0xc]
push eax
push esi
mov eax, 0x400
push eax
push eax
push 0xff
push 6
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x40a85a
xor eax, eax
jmp 0x40a879
push esi
push ebx
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, dword [ebp + 0x10]
jne 0x40a856
push esi
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.0040a516
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40b359
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x412673
call fcn.00401651
mov esi, ecx
xor ebx, ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x40b383
xor eax, eax
jmp 0x40b4a4
mov eax, dword [esi + 0x1c]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411359
xor edi, edi
pop ecx
mov dword [esi + 0x24], eax
cmp dword [esi + 0x1c], ebx
jle 0x40b3cf
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push 0x40b1ab
push ebx
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x24]
mov dword [ecx + edi*4], eax
mov eax, dword [esi + 0x24]
cmp dword [eax + edi*4], ebx
je 0x40b37c
inc edi
cmp edi, dword [esi + 0x1c]
jl 0x40b3a5
mov edi, dword [esi + 0x1c]
xor ecx, ecx
push 8
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00411359
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x40b41f
push fcn.0040a4e3
push 0x40a4d9
push edi
mov dword [eax], edi
add eax, 4
push 8
push eax
mov dword [ebp - 0x10], eax
call fcn.00403adc
mov eax, dword [ebp - 0x10]
jmp 0x40b421
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x1c]
xor ecx, ecx
push 0x1c
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411359
xor edi, edi
pop ecx
mov dword [esi + 0x28], eax
cmp dword [esi + 0x1c], ebx
jle 0x40b4a1
mov dword [ebp - 0x10], ebx
push 0xa0
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, ebx
je 0x40b465
mov ecx, eax
call fcn.0040a68e
jmp 0x40b467
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 0x28]
mov dword [edx + ecx + 0x18], eax
xor eax, eax
cmp edi, ebx
sete al
push eax
mov eax, dword [esi + 0x28]
add eax, ecx
push eax
push dword [esi + 0x20]
mov eax, dword [esi + 0x2c]
push esi
push esi
lea ecx, [eax + edi*8]
call fcn.0040a7e1
test eax, eax
je 0x40b37c
add dword [ebp - 0x10], 0x1c
inc edi
cmp edi, dword [esi + 0x1c]
jl 0x40b44d
xor eax, eax
inc eax
call fcn.00401cff
ret
Function at 0x40b807
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x40b8d9
cmp byte [eax], bl
je 0x40b8d9
cmp dword [ebp + 8], 0xffffffff
je 0x40b8d9
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp edi, ebx
jbe 0x40b8d3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x14
lea eax, [ebp - 0x18]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40b873
call esi
cmp eax, 0x3e5
jne 0x40b8c1
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40b8ac
push ebx
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov dword [ebp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x40b8c1
mov eax, dword [ebp + 0x10]
add dword [ebp + 0xc], eax
sub edi, eax
cmp edi, ebx
ja 0x40b845
mov esi, ebx
jmp 0x40b8d3
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov esi, 0x800705b4
call fcn.0040b7de
pop ecx
pop ecx
jmp 0x40b8d3
call esi
cmp eax, ebx
jle 0x40b8d1
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
pop edi
mov eax, esi
pop esi
jmp 0x40b8de
mov eax, 0x80070057
pop ebx
leave
ret 0x10

Function at 0x40b8e3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0
push esi
push edi
je 0x40b97b
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x40b97b
push 0x14
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40b945
call esi
cmp eax, 0x3e5
je 0x40b945
call esi
test eax, eax
jle 0x40b980
and eax, 0xffff
or eax, 0x80070000
jmp 0x40b980
push dword [ebp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
lea eax, [ebp - 0x14]
je 0x40b966
push eax
push edi
call fcn.0040b7de
pop ecx
pop ecx
mov eax, 0x800705b4
jmp 0x40b980
push 0
push dword [ebp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x40b933
xor eax, eax
jmp 0x40b980
mov eax, 0x80070057
pop edi
pop esi
leave
ret 0x14