joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059c6
Capabilities:
Query environment variable
Set current directory

Disassembly:
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp byte [edi + 0x214], bl
je 0x405a04
cmp dword [edi + 0x208], ebx
je 0x4059fd
cmp dword [edi + 0x20c], ebx
je 0x4059fd
cmp dword [edi + 0x210], ebx
je 0x4059fd
cmp dword [edi + 0x218], ebx
je 0x4059fd
cmp dword [edi + 0x21c], ebx
je 0x4059fd
inc ebx
mov al, bl
jmp 0x405afe
push esi
mov byte [edi + 0x214], 1
mov esi, ebx
mov dword [edi + 0x20c], ebx
mov dword [edi + 0x208], ebx
push 0x104
push edi
push dword [esi + 0x44b320]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x208], eax
test eax, eax
jne 0x405a47
add esi, 4
cmp esi, 0x10
jb 0x405a1a
jmp 0x405a7d
push 0x5c
push edi
call fcn.0042a57d
pop ecx
pop ecx
xor ecx, ecx
push edi
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x44b4ac
push 0x104
push edi
call fcn.0042a4b5
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x20c], eax
mov eax, dword [edi + 0x208]
test eax, eax
je 0x405ade
mov ecx, dword [edi + 0x20c]
test ecx, ecx
je 0x405ade
push 0x44b4c4
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x210], eax
test eax, eax
je 0x405ac7
lea ecx, [edi + 0x218]
push ecx
push 0x44b4d0
call eax
lea eax, [edi + 0x21c]
push eax
push 0x44b4e0
call dword [edi + 0x210]
cmp dword [edi + 0x218], ebx
je 0x405ada
cmp dword [edi + 0x21c], ebx
je 0x405ada
xor ebx, ebx
inc ebx
mov al, bl
jmp 0x405afd
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push eax
call esi
push dword [edi + 0x20c]
call esi
mov dword [edi + 0x208], ebx
xor al, al
mov dword [edi + 0x20c], ebx
pop esi
pop edi
pop ebx
ret

Function at 0x406ee4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
mov eax, 0x446260
call fcn.0042bfb7
mov esi, dword [ebp + 8]
test esi, esi
je 0x406f92
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x406f92
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push esi
push eax
call fcn.00406f98
add esp, 0xc
and dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040f578
lea eax, [eax*2 + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp + 8]
mov esi, eax
call fcn.0040f578
lea ecx, [ebp + 8]
lea eax, [eax*2 + 2]
push eax
call fcn.0040f2b6
push eax
push esi
call fcn.00429850
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x406f92
call fcn.0040f557
call fcn.0042bf85
ret
Function at 0x407534
Capabilities:
Get file size
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
call fcn.004079eb
mov al, byte [ebp + 0xc]
lea ecx, [esi + 0xf8]
mov edi, dword [ebp + 8]
push edi
mov byte [esi + 4], al
call fcn.004052aa
xor ebx, ebx
mov dword [esi + 0xfc], ebx
test edi, edi
je 0x407608
cmp word [edi], bx
je 0x407608
mov dword [esi], ebx
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x10]
push 6
cmovb eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
lea eax, [esi + 0x28]
pop ecx
mov dword [eax - 4], ebx
mov dword [eax], ebx
lea eax, [eax + 0x20]
mov dword [eax - 0x1c], ebx
mov dword [eax - 0x18], ebx
mov dword [eax - 0x14], ebx
dec ecx
jne 0x407591
mov eax, dword [0x45bb6c]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [0x45bb72]
mov ecx, dword [0x45bb6c]
push eax
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], esi
push eax
push ebx
lea eax, [ebp - 8]
push eax
call fcn.0040744d
mov eax, dword [0x45bb6c]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
cmp dword [esi], ebx
je 0x40761b
push dword [esi]
or dword [esi + 0xc], 0xffffffff
push ebx
push 0x4000004
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
xor ecx, ecx
mov dword [esi + 0x10], eax
test eax, eax
setne al
jmp 0x407677
mov dword [esi], 0x17d78400
cmp byte [esi + 4], bl
je 0x407574
xor al, al
jmp 0x407677
push ebx
cmp byte [esi + 4], bl
je 0x40762d
push 3
push ebx
push 1
push SysReAllocString
jmp 0x407637
push 2
push ebx
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x407617
lea eax, [ebp - 4]
mov dword [ebp - 8], ebx
push eax
push dword [esi + 0xc]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x1c], eax
cmp byte [esi + 4], bl
je 0x407675
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi + 0xc]
jmp 0x4075f6
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4081fb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x45a100]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x45bb7c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x45bb7c
push edi
mov edi, 0x400
jne 0x40823d
push 0x2e
pop eax
push 0x10
push ebx
push 0xe
push edi
mov word [0x45bb7c], ax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
lea eax, [ebp - 0x804]
push eax
push 0
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea eax, [ebp - 0x804]
push eax
push dword [ebp + 0xc]
push esi
call fcn.0042a521
push ebx
push esi
call fcn.0042d845
add esp, 0x14
test eax, eax
je 0x408274
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a402
mov esp, ebp
pop ebp
ret

Function at 0x40836c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x45a100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push eax
push 0xf003f
push ebx
push edi
push esi
mov dword [ebp - 0x210], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4083dc
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.0040836c
pop ecx
pop ecx
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x210]
call ebx
test eax, eax
je 0x4083ba
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
inc eax
pop ebx
call fcn.0042a402
mov esp, ebp
pop ebp
ret
Function at 0x40889f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042d165
pop ecx
push edi
mov esi, eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ecx, dword [ebp + 8]
push esi
call fcn.004051c4
push esi
call fcn.0042bf1d
mov eax, dword [ebp + 8]
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4088f5
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push 0x44b7a4
push dword [ebp + 8]
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x408916
xor al, al
jmp 0x408983
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x44b7b4
push dword [ebp + 0xc]
mov esi, eax
mov dword [ebp - 4], ebx
lea eax, [ebp - 4]
push eax
call fcn.0042dc90
add esp, 0xc
cmp dword [ebp - 4], ebx
jne 0x408969
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408965
test al, 0x10
jne 0x408965
xor ebx, ebx
inc ebx
mov al, bl
jmp 0x408982
push dword [ebp - 4]
push edi
push 1
push esi
call fcn.0042e08f
push dword [ebp - 4]
call fcn.0042debf
add esp, 0x14
mov al, 1
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408989
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, 0x104
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x408a0f
push 0x5c
push esi
call fcn.0042a57d
push dword [ebp + 0xc]
add eax, 2
mov ecx, edi
mov edx, eax
sub edx, esi
sar edx, 1
sub ecx, edx
push ecx
push eax
call fcn.0042a521
push esi
push dword [ebp + 8]
call fcn.004088f5
add esp, 0x1c
test al, al
je 0x4089d7
mov al, 1
jmp 0x408a11
push edi
push esi
push 0x44acac
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x44b744
push edi
push esi
call fcn.0042a4b5
push dword [ebp + 0xc]
push edi
push esi
call fcn.0042a4b5
push esi
push dword [ebp + 8]
call fcn.004088f5
add esp, 0x20
test al, al
jne 0x4089d3
xor eax, eax
mov word [esi], ax
xor al, al
pop edi
pop esi
pop ebp
ret
Function at 0x408b85
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x45a100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor ecx, ecx
push edi
mov edi, dword [ebp + 8]
push 5
mov word [ebp - 0x28], ax
mov word [ebp - 0x1c], ax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x34]
push eax
push 0x11
push edi
mov dword [ebp - 0x26], ecx
mov dword [ebp - 0x22], ecx
mov dword [ebp - 0x1a], ecx
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0xe], ecx
mov dword [ebp - 0xa], ecx
call esi
push 5
lea eax, [ebp - 0x40]
push eax
push 0x12
push edi
call esi
push 5
lea eax, [ebp - 0x28]
push eax
push 0x10
push edi
call esi
push 5
lea eax, [ebp - 0x1c]
push eax
push 0xf
push edi
call esi
push 5
lea eax, [ebp - 0x10]
push eax
push 0xe
push edi
call esi
push 5
lea eax, [ebp - 0x4c]
push eax
push 0x1010
push edi
call esi
lea eax, [ebp - 0x34]
push eax
call fcn.0042dad8
mov dword [ebx], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0042dad8
mov dword [ebx + 4], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042dad8
mov dword [ebx + 8], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042d6fe
mov dword [ebx + 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0042d6fe
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0042dad8
add esp, 0x18
mov dword [ebx + 0x14], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a402
mov esp, ebp
pop ebp
ret
Function at 0x408eae
Capabilities:
Parse pe header

Disassembly:
push 0x318
mov eax, 0x4463f4
call fcn.0042bfea
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x318]
call fcn.004080d9
xor ebx, ebx
mov dword [ebp - 4], ebx
test esi, esi
je 0x408fd5
movzx eax, word [esi]
test ax, ax
je 0x408fd5
push 0x22
pop ecx
cmp ax, cx
jne 0x408f40
push ecx
lea ebx, [esi + 2]
push ebx
call fcn.0042be6f
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x408f09
push eax
push esi
call fcn.0042be6f
pop ecx
pop ecx
mov edi, eax
sub edi, esi
sar edi, 1
lea eax, [edi - 1]
push eax
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0042d787
lea edi, [edi*2 - 2]
add esp, 0x10
cmp edi, 0x208
jae 0x408f3b
xor eax, eax
xor ebx, ebx
jmp 0x408f81
call fcn.0042d2e6
push 0x20
push esi
call fcn.0042be6f
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x408f5b
push ebx
push esi
call fcn.0042be6f
pop ecx
pop ecx
mov edi, eax
sub edi, esi
lea eax, [ebp - 0x218]
sar edi, 1
push edi
push esi
push 0x104
push eax
call fcn.0042d787
add edi, edi
add esp, 0x10
cmp edi, 0x208
jae 0x408f3b
xor eax, eax
push ebx
mov word [ebp + edi - 0x218], ax
lea ecx, [ebp - 0x318]
push 1
lea eax, [ebp - 0x218]
push eax
call fcn.00407534
lea ecx, [ebp - 0x318]
test al, al
je 0x408fdb
push ebx
push dword [ebp - 0x300]
lea eax, [ebp - 0x324]
push ebx
push ebx
push eax
call fcn.0040918b
mov eax, dword [ebp - 0x31c]
test eax, eax
jne 0x408fec
lea ecx, [ebp - 0x324]
mov byte [ebp - 4], bl
call fcn.00408187
lea ecx, [ebp - 0x318]
or dword [ebp - 4], 0xffffffff
call fcn.00408141
xor al, al
call fcn.0042bf99
ret
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408fc7
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x408fc7
mov edx, 0x20b
mov byte [ebp - 4], 0
cmp word [ecx + eax + 0x18], dx
lea ecx, [ebp - 0x324]
sete bl
call fcn.00408187
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x318]
call fcn.00408141
mov al, bl
jmp 0x408fe6
Function at 0x4090ac
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x45a100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov word [ebp - 8], 0x500
push eax
xor ebx, ebx
push 8
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x18]
call fcn.0042a292
pop ecx
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push edi
push 2
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x40915f
cmp ebx, dword [edi]
jae 0x40915c
lea esi, [edi + 8]
push dword [esi - 4]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x409152
test byte [esi], 4
je 0x409152
test dword [esi], 0xffffffef
jne 0x40915a
inc ebx
add esi, 8
cmp ebx, dword [edi]
jb 0x409135
cmp ebx, dword [edi]
setne bl
push edi
call fcn.0042a25a
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a402
mov esp, ebp
pop ebp
ret

Function at 0x4091e1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x45a100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x414]
push 0x207
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4092a4
push 0x3c
lea eax, [ebp - 0x450]
push esi
push eax
call fcn.0042a420
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x434], eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x450]
mov dword [ebp - 0x450], 0x3c
push eax
mov dword [ebp - 0x44c], 0x40
mov dword [ebp - 0x448], esi
mov dword [ebp - 0x444], 0x44b710
mov dword [ebp - 0x43c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x409282
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4092a2
cmp byte [ebp + 0x10], 0
je 0x409296
push 0xffffffffffffffff
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042a402
mov esp, ebp
pop ebp
ret
Function at 0x41123b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x45a100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x45bc7c
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x45bbfc], esi
je 0x4112b6
cmp dword [0x45bc08], esi
je 0x4112b6
push 0x12237
call dword [0x45bc10]
push esi
push esi
push edi
call dword [0x45bbfc]
cmp dword [0x45bc54], 0
mov esi, eax
je 0x4112b6
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0x44c47c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x804]
push eax
push edi
call dword [0x45bc54]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.0042a402
mov esp, ebp
pop ebp
ret
Function at 0x413279
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx], 0xffffffff
jne 0x41328e
xor al, al
jmp 0x413313
push esi
push edi
xor esi, esi
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], esi
xor eax, eax
stosd dword es:[edi], eax
push esi
push esi
push 1
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x413300
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x217
je 0x413300
call edi
cmp eax, 0x3e5
jne 0x413303
push 0x1388
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x413303
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x413303
cmp dword [ebp - 0x18], esi
jne 0x413303
xor esi, esi
inc esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop edi
setne al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413426
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 4]
push ebx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
test edi, edi
jne 0x41345e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x41348f
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
push 0xffffffffffffffff
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x41348f
push 1
lea eax, [ebp - 4]
push eax
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edi, eax
xor eax, eax
test edi, edi
pop edi
cmovne eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x413511
Capabilities:
Create thread
Resume thread

Disassembly:
push 0x27c
mov eax, 0x446ee9
call fcn.0042bfea
mov ebx, ecx
mov dword [ebp - 0x234], ebx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x220], eax
call fcn.004134a0
xor edi, edi
mov dword [ebp - 0x288], 0x44
push 0x3c
lea eax, [ebp - 0x280]
mov dword [ebp - 0x284], edi
push edi
push eax
call fcn.0042a420
add esp, 0xc
lea ecx, [ebx + 0x28]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x244], xmm0
call fcn.004133c9
test al, al
jne 0x413581
xor eax, eax
jmp 0x413702
lea eax, [ebp - 0x218]
push eax
push 0x44c8a0
push 0x44c8bc
call fcn.00408989
add esp, 0xc
test al, al
je 0x41357a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004051c4
push esi
mov dword [ebp - 4], edi
call fcn.0042d6fe
mov esi, dword [ebp - 0x230]
mov dword [ebp - 0x21c], eax
pop ecx
test esi, esi
je 0x4135d3
mov ecx, esi
call fcn.004059ae
jmp 0x4135d5
mov eax, edi
push edi
push eax
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x288]
push eax
push edi
push edi
push 0x4000004
push edi
push edi
push edi
push dword [ebp - 0x21c]
push edi
call fcn.00401130
mov dword [ebp - 0x228], eax
test eax, eax
jne 0x413643
push edi
push edi
lea eax, [ebp - 0x224]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [ebp - 0x224]
mov ecx, dword [ebp - 0x220]
call fcn.004052aa
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x21c]
call fcn.0042a25a
cmp dword [ebp - 0x228], 0
pop ecx
je 0x4136f5
mov ecx, 0x45bce0
call fcn.00413398
push edx
push eax
push dword [ebp - 0x23c]
lea ecx, [ebx + 0x48]
call fcn.004112d5
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
lea ecx, [ebx + 0x28]
mov dword [ebx + 0x44], eax
call fcn.00413279
test al, al
jne 0x4136b5
mov ecx, dword [ebp - 0x220]
push 0x44c8d0
call fcn.004052aa
jmp 0x4136f5
push 8
call fcn.0042a681
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4136c8
mov dword [ebx + 4], edi
jmp 0x4136ca
mov ebx, edi
mov eax, dword [ebp - 0x234]
lea ecx, [ebx + 4]
push dword [ebp - 0x22c]
mov dword [ebx], eax
call fcn.004052aa
push ebx
push edi
push 0x41370a
call fcn.0042edfc
mov edi, dword [ebp - 0x23c]
add esp, 0xc
test esi, esi
je 0x413700
mov ecx, esi
call fcn.00403368
mov eax, edi
call fcn.0042bf99
ret 8