joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d05
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x2001f
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403d65
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0x10], esi
push dword [ebp - 4]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
cmp edi, esi
pop edi
je 0x403d68
mov eax, dword [ebp + 0x14]
pop esi
leave
ret

Function at 0x403df5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x403e21
mov eax, 0x80004005
leave
ret
push esi
mov esi, dword [ebp + 0x18]
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 8], 3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 8], 3
je 0x403e57
mov eax, 0x80004005
jmp 0x403e67
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
leave
ret
Function at 0x404832
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 0x40496a
xor eax, eax
inc eax
mov dword [esi + 0x58], eax
cmp dword [esi + 0x44], eax
jl 0x40496a
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 0x404968
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 0x404968
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
je 0x404968
push str.SetProcessDPIAware
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x404968
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 [0x417740]
call fcn.00404980
mov dword [esi + 0x58], eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401d90
leave
ret

Function at 0x404e59
Capabilities:
Parse pe header

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

Function at 0x40509e
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 0x405100
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 0x4050f7
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 0x40571c
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 0x405809
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x405808
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 0x40575c
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 0x40577b
mov eax, dword [edi]
mov ecx, dword [eax]
cmp ecx, eax
jne 0x40577b
xor edi, edi
cmp ebx, edx
jae 0x4057fa
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
test edi, edi
je 0x4057e7
mov edx, dword [ecx + 0xc]
cmp esi, edx
seta bl
cmp edx, esi
jae 0x4057a7
mov eax, dword [edi]
mov ecx, dword [ecx]
cmp ecx, eax
sete dl
test dl, dl
jne 0x4057fa
cmp dword [ecx + 0xc], esi
jb 0x405797
test bl, bl
je 0x4057ce
mov eax, dword [ebp - 0x28]
mov edx, dword [ecx + 8]
add eax, esi
cmp eax, edx
jae 0x4057ce
mov eax, edx
sub eax, esi
xor edx, edx
div dword [ebp - 0x28]
test eax, eax
jne 0x4057c5
inc eax
imul eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
jmp 0x4057e2
mov eax, dword [ebp - 0x28]
add eax, esi
cmp eax, dword [ecx + 8]
jb 0x4057e2
cmp esi, dword [ecx + 0xc]
ja 0x4057e2
mov eax, dword [ebp + 8]
mov al, byte [eax]
add esi, dword [ebp - 4]
jmp 0x4057ec
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 0x40577f
test edi, edi
je 0x405802
cmp ecx, dword [edi]
je 0x405807
mov eax, dword [ebp - 8]
mov al, byte [eax]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40580c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00404f55
xor ebx, ebx
test eax, eax
je 0x405937
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 0x40584c
xor al, al
jmp 0x405978
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 0x405845
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 0x40588d
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
jne 0x40588d
mov dword [ebp + 0xc], ebx
mov eax, dword [ebp + 0xc]
mov edx, edi
cmp eax, ebx
je 0x4058cb
mov ecx, dword [ebp - 0x18]
cmp dword [esi + 0xc], ecx
jae 0x4058b3
mov ecx, dword [eax]
mov esi, dword [esi]
cmp esi, ecx
sete al
cmp al, bl
jne 0x40591d
mov eax, dword [ebp - 0x18]
cmp dword [esi + 0xc], eax
jb 0x4058a0
mov eax, dword [esi + 8]
cmp dword [ebp - 0x18], eax
ja 0x4058be
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xc]
sub eax, dword [ebp - 0x18]
inc eax
cmp eax, edi
jae 0x4058cb
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 0x40590b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x40591d
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 0x40591d
mov eax, dword [ebp - 4]
cmp eax, ebx
jbe 0x40591d
add dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
jmp 0x40588d
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 0x405976
push 9
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
cmp esi, ebx
je 0x405845
push esi
call fcn.00404e59
pop ecx
test al, al
je 0x405845
push dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
push dword [eax + esi + 0x50]
push esi
call fcn.0040571c
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 0x40661c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp edi, dword [ebp + 0xc]
je 0x406657
push esi
push dword [edi]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40664e
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 0x406629
pop esi
lea ecx, [ebp + 8]
pop edi
pop ebp
jmp fcn.00409047
Function at 0x4066c7
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 0x40679d
cmp word [edi], bx
je 0x40679d
cmp esi, ebx
je 0x40679d
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 0x40679d
lea eax, [ebp - 0x828]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
jmp 0x406784
lea eax, [ebp - 0x804]
push edi
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x406777
mov eax, dword [ebp - 0x82c]
cmp dword [ebp - 0x820], eax
je 0x406777
lea eax, [ebp - 0x820]
push eax
mov ecx, esi
call fcn.00406661
lea eax, [ebp - 0x828]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406747
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 0x40679f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401d90
leave
ret

Function at 0x4075e7
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 0x407413
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], eax
test eax, eax
je 0x407620
lea ecx, [esi + 0x24]
mov eax, dword [ecx]
lea edx, [ebp + 8]
push edx
push eax
call fcn.0040701d
pop esi
leave
ret 4

Function at 0x408e7f
Capabilities:
Hash data using fnv

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

Disassembly:
push 0x850
mov eax, 0x41255d
call fcn.004019d2
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.004021e7
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.00405aa3
mov edi, str..exe
push edi
call esi
pop ecx
push eax
push edi
lea ecx, [ebp - 0x854]
call fcn.00405aa3
cmp dword [ebp - 0x840], 8
mov eax, dword [ebp - 0x854]
jae 0x40946d
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.004021b5
push ebx
push 1
lea ecx, [ebp - 0x854]
call fcn.00402368
mov eax, dword [ebp - 0x858]
call fcn.00401d81
ret
Function at 0x4094a7
Capabilities:
Accept command line arguments
Copy file
Create process on windows

Disassembly:
push 0x90c
mov eax, 0x4125d2
call fcn.004019d2
lea ecx, [ebp - 0x918]
call fcn.00401f0d
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x848]
call fcn.004021b5
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x918]
mov byte [ebp - 4], 1
call fcn.004026c8
push ebx
push 1
lea ecx, [ebp - 0x848]
mov byte [ebp - 4], bl
call fcn.00402368
push 0x417d20
lea ecx, [ebp - 0x89c]
call fcn.004021b5
push str.Temporary
lea ecx, [ebp - 0x848]
mov byte [ebp - 4], 2
call fcn.004021b5
lea eax, [ebp - 0x89c]
push eax
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x918]
mov byte [ebp - 4], 3
call fcn.00408a5c
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.00402368
push ebx
push 1
lea ecx, [ebp - 0x89c]
mov byte [ebp - 4], bl
call fcn.00402368
lea eax, [ebp - 0x880]
push eax
lea ecx, [ebp - 0x918]
call fcn.00407d22
lea eax, [ebp - 0x864]
push eax
lea ecx, [ebp - 0x918]
mov byte [ebp - 4], 4
call fcn.00408c2d
lea eax, [ebp - 0x82c]
push eax
mov byte [ebp - 4], 5
call fcn.00409372
pop ecx
mov ecx, dword [ebp - 0x82c]
push 8
pop esi
cmp dword [ebp - 0x818], esi
jae 0x4095af
lea ecx, [ebp - 0x82c]
mov eax, dword [ebp - 0x880]
cmp dword [ebp - 0x86c], esi
jae 0x4095c3
lea eax, [ebp - 0x880]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x409613
xor esi, esi
push ebx
push 1
lea ecx, [ebp - 0x82c]
call fcn.00402368
push ebx
push 1
lea ecx, [ebp - 0x864]
call fcn.00402368
push ebx
push 1
lea ecx, [ebp - 0x880]
call fcn.00402368
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x918]
call fcn.00404c10
mov eax, esi
call fcn.00401d81
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 0x409665
lea edi, [ebp - 0x864]
cmp dword [ebp - 0x818], esi
mov esi, dword [ebp - 0x82c]
jae 0x409679
lea esi, [ebp - 0x82c]
call fcn.00408e2b
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 0x4095d2
Function at 0x40969f
Capabilities:
Accept command line arguments

Disassembly:
push 0x9c
mov eax, 0x41261d
call fcn.004019d2
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xa8]
call fcn.00401f0d
xor ebx, ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004021b5
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 1
call fcn.004026c8
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00402368
push 0x417d24
lea ecx, [ebp - 0x2c]
call fcn.004021b5
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.00408ac7
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00402368
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xa8]
call fcn.00408d8c
push esi
push eax
mov byte [ebp - 4], 3
call fcn.0040632f
mov ecx, eax
call fcn.00406339
mov ecx, eax
call fcn.0040d99b
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00402368
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.00404c10
mov eax, esi
call fcn.00401d81
ret 4
Function at 0x40a8e1
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 0x40a93c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e5
je 0x40a928
push 0
push esi
mov ecx, edi
call fcn.0040a942
jmp 0x40a93b
call ebx
cmp eax, 0x217
jne 0x40a93b
push 0
push esi
mov ecx, edi
call fcn.0040aa83
pop ebx
pop edi
pop esi
pop ebp
ret 8

Function at 0x40aa83
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 0x40aae3
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
je 0x40aae3
call edi
cmp eax, 0xea
je 0x40aae3
push 0
push esi
mov ecx, ebx
call fcn.0040a942
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40abb6
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.0040a8bd
xor esi, esi
mov edx, 0x40000003
cmp dword [ebp + 0x18], esi
je 0x40abfe
mov edx, 0x40080003
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
jb 0x40ac09
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 0x40ac2f
xor eax, eax
jmp 0x40ac4e
push esi
push ebx
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, dword [ebp + 0x10]
jne 0x40ac2b
push esi
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.0040a8e1
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40b72e
Capabilities:
Create thread

Disassembly:
push 0xc
mov eax, 0x412a3b
call fcn.0040164f
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 0x40b758
xor eax, eax
jmp 0x40b879
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.004116bd
xor edi, edi
pop ecx
mov dword [esi + 0x24], eax
cmp dword [esi + 0x1c], ebx
jle 0x40b7a4
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push 0x40b580
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 0x40b751
inc edi
cmp edi, dword [esi + 0x1c]
jl 0x40b77a
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.004116bd
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x40b7f4
push fcn.0040a8ae
push 0x40a8a4
push edi
mov dword [eax], edi
add eax, 4
push 8
push eax
mov dword [ebp - 0x10], eax
call fcn.00403bbe
mov eax, dword [ebp - 0x10]
jmp 0x40b7f6
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.004116bd
xor edi, edi
pop ecx
mov dword [esi + 0x28], eax
cmp dword [esi + 0x1c], ebx
jle 0x40b876
mov dword [ebp - 0x10], ebx
push 0xa0
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
cmp eax, ebx
je 0x40b83a
mov ecx, eax
call fcn.0040aa59
jmp 0x40b83c
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.0040abb6
test eax, eax
je 0x40b751
add dword [ebp - 0x10], 0x1c
inc edi
cmp edi, dword [esi + 0x1c]
jl 0x40b822
xor eax, eax
inc eax
call fcn.00401cfd
ret
Function at 0x40bbdc
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 0x40bcae
cmp byte [eax], bl
je 0x40bcae
cmp dword [ebp + 8], 0xffffffff
je 0x40bcae
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
cmp edi, ebx
jbe 0x40bca8
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 0x40bc48
call esi
cmp eax, 0x3e5
jne 0x40bc96
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40bc81
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 0x40bc96
mov eax, dword [ebp + 0x10]
add dword [ebp + 0xc], eax
sub edi, eax
cmp edi, ebx
ja 0x40bc1a
mov esi, ebx
jmp 0x40bca8
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
mov esi, 0x800705b4
call fcn.0040bbb3
pop ecx
pop ecx
jmp 0x40bca8
call esi
cmp eax, ebx
jle 0x40bca6
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
pop edi
mov eax, esi
pop esi
jmp 0x40bcb3
mov eax, 0x80070057
pop ebx
leave
ret 0x10

Function at 0x40bcb8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0xc], 0
push esi
push edi
je 0x40bd50
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x40bd50
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 0x40bd1a
call esi
cmp eax, 0x3e5
je 0x40bd1a
call esi
test eax, eax
jle 0x40bd55
and eax, 0xffff
or eax, 0x80070000
jmp 0x40bd55
push dword [ebp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
lea eax, [ebp - 0x14]
je 0x40bd3b
push eax
push edi
call fcn.0040bbb3
pop ecx
pop ecx
mov eax, 0x800705b4
jmp 0x40bd55
push 0
push dword [ebp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x40bd08
xor eax, eax
jmp 0x40bd55
mov eax, 0x80070057
pop edi
pop esi
leave
ret 0x14