joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101713ba
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 0x18], ecx
push 0x1008c6fc
push 0x100000
mov dword [ebp - 0x1c], ebx
xor esi, esi
call fcn.102364fd
mov dword [ebp - 0x10], eax
pop ecx
pop ecx
test eax, eax
je 0x10171510
lea eax, [ebx + 0x94]
xor ecx, ecx
lea edi, [ebx + 0x14]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebx + 0xd4]
cmp ecx, eax
jae 0x10171505
inc ecx
push eax
push ecx
push 0x1008c0d8
mov dword [ebp - 0x20], ecx
call fcn.100d3a67
mov ebx, dword [edi]
add esp, 0xc
shl ebx, 0xc
xor eax, eax
mov dword [ebp - 4], eax
test eax, eax
jne 0x10171435
mov edi, ebx
cmp ebx, 0x100000
jbe 0x1017143a
mov edi, 0x100000
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebp - 0xc]
push edi
push dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10171465
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1008c118
jmp 0x1017148d
cmp dword [ebp - 8], edi
jne 0x101714da
push 0
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x101714ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1008c1e8
call fcn.100d3aab
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 4]
test esi, esi
jle 0x101714c0
movzx esi, si
or esi, 0x80070000
jmp 0x101714be
cmp dword [ebp - 8], edi
jne 0x101714d3
mov eax, dword [ebp - 4]
sub ebx, edi
sbb eax, 0
mov dword [ebp - 4], eax
test esi, esi
js 0x101714ea
test eax, eax
jne 0x10171435
test ebx, ebx
je 0x101714ea
jmp 0x10171427
push 0x1008c240
jmp 0x101714df
push 0x1008c170
call fcn.100d3aab
mov esi, 0x8000ffff
pop ecx
mov edi, dword [ebp - 0x14]
add dword [ebp - 0xc], 4
add edi, 8
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], edi
test esi, esi
jns 0x101713fc
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
jmp 0x1017151f
push 0x1008c2ac
call fcn.100d3aab
mov esi, 0x8007000e
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1017a65c
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x10285008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [0x102c7ff4]
mov ebx, ecx
test edi, edi
je 0x1017a6c2
mov eax, dword [edi]
lea ecx, [ebp - 0x418]
push 0
push 0x208
push ecx
mov esi, dword [eax + 0x40]
mov ecx, esi
call dword [0x102dc578]
mov ecx, edi
call esi
test eax, eax
js 0x1017a6b7
lea eax, [ebp - 0x418]
push eax
push 0x1005f420
call fcn.100d3a67
pop ecx
jmp 0x1017a6c1
push 0x1008f390
call fcn.100d3aab
pop ecx
push 0x100601b0
push 0x1005a41c
call fcn.100d3a67
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push 0x1008f3d8
call fcn.100d3a67
add esp, 0xc
push 0x1008f430
call fcn.100d3a67
pop ecx
push 0
mov edx, 0x10060658
xor ecx, ecx
call fcn.10147063
call fcn.101f6b95
push 0x1008f444
call fcn.100d3a67
pop ecx
push 0
mov edx, 0x100825d0
xor ecx, ecx
call fcn.10147063
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], 2
push eax
push 0
mov dword [ebp - 0x420], 0xc
call dword [sym.imp.dbghelp.dll_dbghelp]
test eax, eax
je 0x1017a75e
push dword [ebp - 0x41c]
push 0x1008f458
call fcn.100d3a67
pop ecx
pop ecx
push 1
xor dl, dl
mov ecx, ebx
call fcn.1014858f
cmp dword [0x102b9e70], 0
je 0x1017a77d
push 0x1008f48c
call fcn.100d3a67
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10236010
mov esp, ebp
pop ebp
ret
Function at 0x101df8fa
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov bl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 2
pop edi
test bl, bl
je 0x101df958
push 0x1009d5bc
call dword [sym.imp.msvcrt.dll_getenv]
pop ecx
test eax, eax
je 0x101df958
lea ecx, [esi + 0x10]
push ecx
push esi
lea edi, [esi + 0x18]
push edi
lea edx, [esi + 0x14]
push edx
push 0x1009d5d8
push eax
call dword [sym.imp.msvcrt.dll_sscanf]
add esp, 0x18
cmp eax, 2
jl 0x101df94e
cmp eax, 3
jle 0x101df955
cmp eax, 4
je 0x101dfa50
and dword [esi + 0x14], 0
and dword [edi], 0
push 2
pop edi
mov eax, dword [esi + 0x14]
cmp eax, 6
jae 0x101df97b
cmp dword [esi + 0xc], 0x1c0
jne 0x101df97b
mov dword [esi], 1
mov dword [esi + 0x10], 3
jmp 0x101dfa3c
sub eax, 0
je 0x101dfa28
sub eax, 4
je 0x101df9ea
dec eax
je 0x101df9cb
dec eax
je 0x101df9c3
dec eax
je 0x101df9bb
push 0x1009d670
call fcn.100d3aab
movzx eax, word [esi + 0x18]
push eax
push dword [esi + 0x14]
push 0x1009d6d8
call fcn.100d3aab
add esp, 0x10
mov eax, 0x80070057
jmp 0x101dfa52
mov dword [esi], 0x1900
jmp 0x101dfa39
mov dword [esi], 0x1644
jmp 0x101dfa39
movzx eax, word [esi + 0x18]
mov dword [esi + 0x10], edi
sub eax, 0
je 0x101df9e2
dec eax
jne 0x101dfa3c
mov dword [esi], 0x894
jmp 0x101dfa3c
mov dword [esi], 0x893
jmp 0x101dfa3c
movzx eax, word [esi + 0x18]
test eax, eax
je 0x101dfa20
cmp eax, 3
je 0x101dfa11
cmp eax, 0xa
je 0x101dfa09
cmp eax, 0x5a
jne 0x101dfa3c
mov dword [esi], 0xbb8
jmp 0x101dfa17
mov dword [esi], 0x7ce
jmp 0x101dfa17
mov dword [esi], 0x3b6
mov dword [esi + 0x10], 1
jmp 0x101dfa3c
mov dword [esi], 0x565
jmp 0x101dfa39
push 0x1009d5e8
call fcn.100d3aca
pop ecx
mov dword [esi], 0x893
mov dword [esi + 0x10], edi
test bl, bl
je 0x101dfa50
movzx eax, word [esi + 0x1a]
test eax, eax
je 0x101dfa50
mov dword [esi], eax
xor eax, eax
mov word [esi + 0x1a], ax
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x101e2c11
Capabilities:
Query environment variable

Disassembly:
push 4
mov eax, 0x10273e8e
call fcn.102375fd
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ecx, ecx
mov dword [esi], 0x10055778
mov dword [esi + 0x34], ecx
mov dword [ebp - 4], ecx
lea eax, [esi + 0x98c]
push 0x100000
mov dword [eax + 4], ecx
lea ecx, [esi + 0x998]
push eax
mov dword [eax], 0x1004f9c4
call fcn.10171cae
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
lea ecx, [esi + 0x9f0]
call fcn.100b5a8d
mov byte [ebp - 4], 2
lea eax, [esi + 0xc20]
push 0x1020f9b0
push 0x101e1cf0
push 2
push 0x58
push eax
call fcn.10236463
mov byte [ebp - 4], 3
push ecx
lea ecx, [esi + 0xcd4]
call fcn.1016823e
mov byte [ebp - 4], 4
push ecx
lea ecx, [esi + 0xdf0]
call fcn.100cd500
mov byte [ebp - 4], 5
push ecx
lea ecx, [esi + 0xe04]
call fcn.100cd500
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x18]
mov dword [esi + 8], eax
and ecx, 0xffffffc4
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
and eax, ebx
mov byte [0x1029b534], bl
or ecx, eax
mov word [esi + 0x10], 0
or ecx, 0xc0
mov dword [esi + 0x18], ecx
xor ecx, ecx
call fcn.101e1746
and dword [esi + 0x50], 0xfffffff7
mov ecx, esi
mov dword [esi + 0x48], eax
xor eax, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x28]
and eax, 0xfffffffd
mov dword [esi + 0x1c], ebx
or eax, ebx
xor ebx, ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0xcd0], ebx
mov dword [esi + 0xe20], ebx
mov dword [esi + 0xe24], ebx
call fcn.101072b2
push 0x10091cf8
mov dword [esi + 0x9e0], esi
mov dword [esi + 0x990], esi
call dword [sym.imp.msvcrt.dll_getenv]
pop ecx
test eax, eax
je 0x101e2d53
push eax
call dword [sym.imp.msvcrt.dll_atol]
pop ecx
mov dword [esi + 0x9c8], eax
mov dword [esi + 0x9e8], eax
mov ecx, esi
call fcn.101dccc0
mov dword [esi + 0xce8], ebx
mov dword [esi + 0xcec], ebx
mov dword [esi + 0xcf0], ebx
mov word [esi + 0xe18], bx
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.102375d0
ret 0xc
Function at 0x101e62cf
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, ecx
xor ebx, ebx
push edi
push 0x104
mov dword [ebp - 4], eax
lea edi, [eax + 0xe40]
push edi
push ebx
call dword [0x102a9c94]
test eax, eax
je 0x101e64dc
push 0x100a0d50
mov ecx, edi
call fcn.102111c7
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x101e6332
push 0x10088150
mov ecx, edi
call fcn.102111c7
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x101e64dc
push 0x4444
push 0x7777
push ebx
call dword [0x102a9c78]
mov esi, eax
test esi, esi
je 0x101e64dc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x101e64dc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x101e64dc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x101e64dc
mov esi, 0x104
push esi
push edi
call dword [0x102a9ca4]
test eax, eax
je 0x101e64d5
push esi
mov edx, 0x100a0d60
mov ecx, edi
call fcn.10210639
test eax, eax
je 0x101e64d5
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
push edi
call dword [0x102a9c60]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x101e63f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x101e63dd
mov eax, 0x80004005
jmp 0x101e64e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x101e64e1
movzx eax, ax
or eax, 0x80070000
jmp 0x101e64e1
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x10]
push 0
push eax
push esi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101e648f
cmp dword [ebp - 0x10], esi
jb 0x101e648f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 3
mov edx, edi
xor ebx, ebx
call fcn.101e5e80
mov esi, eax
test esi, esi
jne 0x101e64b5
push eax
push 0x80
push 3
push eax
push 3
push 0xc0000000
push 0x100a0d7c
call dword [0x102a9c60]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1048], eax
cmp eax, 0xffffffff
jne 0x101e648b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x101e646b
mov esi, 0x80004005
jmp 0x101e6480
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x101e6480
movzx esi, si
or esi, 0x80070000
push 8
xor edx, edx
call fcn.101e5e80
jmp 0x101e64b5
xor eax, eax
jmp 0x101e64e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x101e64a0
mov esi, 0x80004005
jmp 0x101e64b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x101e64b5
movzx esi, si
or esi, 0x80070000
mov eax, dword [ebp - 4]
and dword [eax + 0x1048], 0
test ebx, ebx
je 0x101e64ca
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [0x102a9c6c]
mov eax, esi
jmp 0x101e64e1
mov eax, 0x80070057
jmp 0x101e64e1
mov eax, 0x80004001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101f38e4
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
call fcn.101f39e6
push 0
push 0x80
push 0
pop eax
mov esi, ebx
and esi, 1
setne al
lea eax, [eax*2 + 2]
push eax
push 0
push 3
push 0xc0000000
push edi
call dword [0x102a9c60]
mov dword [0x102c823c], eax
test eax, eax
je 0x101f39c8
cmp eax, 0xffffffff
je 0x101f39c8
test bl, 2
je 0x101f3973
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x101f396e
mov eax, 0xfeff
push 0
mov word [esp + 0x14], ax
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [0x102c823c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x102c823c]
test esi, esi
je 0x101f3984
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x105
push 0xffffffffffffffff
mov edx, edi
mov ecx, 0x102c8020
call fcn.102105bd
and dword [0x102c865c], 0
or ebx, 0x80000000
push edi
push 0x100a2d90
mov dword [0x102c8664], ebx
call fcn.100d3a67
pop ecx
pop ecx
push 0
push 1
xor edx, edx
push 0x40
inc edx
pop ecx
call fcn.100d204f
jmp 0x101f39da
push 0x100a2d54
call fcn.100d3aab
and dword [0x102c823c], 0
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101f3cc9
Capabilities:
Write file on windows

Disassembly:
push 0x124
mov eax, 0x10274810
call fcn.10237635
mov ebx, ecx
mov dword [ebp - 0x128], ebx
mov edi, dword [ebp + 8]
test dl, 2
je 0x101f3d63
mov ecx, dword [ebp + 0xc]
xor esi, esi
mov eax, esi
mov ebx, edi
test ecx, ecx
jmp 0x101f3d3e
cmp word [ebx], 0xa
jne 0x101f3d39
push esi
lea ecx, [ebp - 0x12c]
add eax, eax
push ecx
push eax
push edi
mov edi, dword [ebp - 0x128]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea eax, [ebp - 0x12c]
push eax
push 4
push 0x100a2dfc
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x130]
add ebx, 2
mov eax, esi
mov edi, ebx
jmp 0x101f3d3d
inc eax
add ebx, 2
dec ecx
mov dword [ebp - 0x130], ecx
jne 0x101f3cf5
push esi
lea ecx, [ebp - 0x12c]
add eax, eax
push ecx
push eax
push edi
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x101f3e20
lea ecx, [ebp - 0x124]
call fcn.100d4b60
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
jne 0x101f3d7b
mov eax, esi
jmp 0x101f3db1
lea eax, [ebp - 0x128]
push eax
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x124]
call fcn.100d4bf2
neg eax
sbb eax, eax
not eax
and dword [ebp - 0x128], eax
jne 0x101f3da0
jmp 0x101f3e11
cmp dword [ebp - 0x11c], 1
sbb eax, eax
not eax
and eax, dword [ebp - 0x124]
mov edx, dword [ebp + 0xc]
mov ecx, esi
mov edi, eax
test edx, edx
jmp 0x101f3df8
cmp byte [edi], 0xa
jne 0x101f3df5
push esi
lea edx, [ebp - 0x12c]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea eax, [ebp - 0x12c]
push eax
push 2
push 0x100a2e04
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x128]
inc edi
mov ecx, esi
mov eax, edi
jmp 0x101f3df7
inc ecx
inc edi
dec edx
mov dword [ebp - 0x128], edx
jne 0x101f3dbc
push esi
lea edx, [ebp - 0x12c]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124]
call fcn.100b5ef7
call fcn.102375e9
ret 8
Function at 0x101f6b95
Capabilities:
Check if file exists
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x10285008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x102a5e48]
test ecx, ecx
js 0x101f6bc0
xor eax, eax
test ecx, ecx
sete al
jmp 0x101f6c90
push esi
mov esi, 0x104
lea ecx, [ebp - 0x24c]
mov edx, esi
call fcn.101f6b22
test eax, eax
je 0x101f6bec
push esi
mov edx, 0x100a4248
lea ecx, [ebp - 0x24c]
call fcn.10210639
test eax, eax
jne 0x101f6bf3
xor eax, eax
jmp 0x101f6c8f
push edi
push 0
push 0x80
push 3
push 0
xor edi, edi
lea eax, [ebp - 0x24c]
inc edi
push edi
push 0x80000000
push eax
call dword [0x102a9c60]
mov esi, eax
test esi, esi
je 0x101f6c7b
cmp esi, 0xffffffff
je 0x101f6c7b
push 0
lea eax, [ebp - 0x250]
mov dword [0x102a5e48], edi
push eax
push 0x40
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101f6c67
cmp dword [ebp - 0x250], 0x11
jbe 0x101f6c67
push 0x11
lea eax, [ebp - 0x44]
push 0x100a426c
push eax
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
neg eax
sbb eax, eax
and dword [0x102a5e48], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [0x102a5e48], eax
sete al
jmp 0x101f6c8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x101f6c8c
mov dword [0x102a5e48], edi
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10236010
mov esp, ebp
pop ebp
ret
Function at 0x101f7bf5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x10285008]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
push edi
xor eax, eax
lea edi, [esp + 0x18]
stosd dword es:[edi], eax
mov ebx, ecx
xor ecx, ecx
push ecx
push ecx
stosd dword es:[edi], eax
mov dword [esp + 0x18], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
inc edi
push edi
push ecx
call dword [0x102a9c58]
mov ecx, eax
mov dword [esp + 0x28], ecx
test ecx, ecx
jne 0x101f7c46
push 8
pop eax
jmp 0x101f7d98
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push 0x103
lea eax, [esp + 0x44]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101f7cc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x3e5
jne 0x101f7d48
xor esi, esi
call fcn.100d2d40
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x34]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x101f7d13
push edi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x101f7cfe
mov eax, dword [esp + 0x14]
cmp eax, 0x104
jae 0x101f7dad
mov byte [esp + eax + 0x38], 0
lea eax, [esp + 0x38]
push eax
push 0x100986bc
call fcn.100d3a67
pop ecx
pop ecx
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x28]
jmp 0x101f7c58
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x6d
je 0x101f7d5a
push esi
push 0x100a4908
jmp 0x101f7d53
cmp eax, edi
jne 0x101f7d26
push 0x100a496c
call fcn.100d3a67
pop ecx
mov edi, esi
jmp 0x101f7d5e
cmp eax, 2
jne 0x101f7d38
push 0x100a49a0
call fcn.100d3a67
pop ecx
jmp 0x101f7d5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push 0x100a49f8
jmp 0x101f7d53
cmp esi, 0x6d
je 0x101f7d5a
push esi
push 0x100a48b8
call fcn.100d3a67
pop ecx
pop ecx
mov edi, dword [esp + 0x10]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x101f7d88
cmp dword [ebx], esi
je 0x101f7d88
test edi, edi
jne 0x101f7d88
push 0x100a4a60
call fcn.100d3a67
pop ecx
call fcn.100d2d40
push dword [ebx + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10236010
mov esp, ebp
pop ebp
ret
call fcn.10236265
int3
Function at 0x101f7dd6
Capabilities:
Create pipe

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x10285008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], ecx
test esi, 0xbfffffff
je 0x101f7e16
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x101f7ebd
mov eax, dword [0x102c8238]
push edi
push eax
inc eax
mov dword [0x102c8238], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x100a4a94
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.10210597
add esp, 0x14
mov eax, 0x1000
or esi, 1
push ebx
push 0x1d4c0
push eax
push eax
push 1
push 0
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov edi, eax
cmp edi, 0xffffffff
je 0x101f7ea5
push 0
push 0x80
push 3
push ebx
push 0
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x101f7ea9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x101f7ebc
mov ecx, dword [ebp - 0x110]
mov dword [ecx], edi
mov ecx, dword [ebp - 0x10c]
mov dword [ecx], eax
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10236010
mov esp, ebp
pop ebp
ret 0x10
Function at 0x101f8455
Capabilities:
Write file on windows

Disassembly:
push 0x34c
mov eax, 0x10274bbd
call fcn.10237635
mov esi, ecx
lea ecx, [ebp - 0x34c]
call fcn.100b5a8d
and dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.100d4b2d
mov byte [ebp - 4], 1
cmp dword [esi], 0
je 0x101f848e
mov ebx, dword [esi + 0x28]
jmp 0x101f8492
imul ebx, dword [esi + 0x28], 0xa
push 0xa
mov eax, ebx
xor edx, edx
pop ecx
div ecx
mov edi, ebx
mov dword [ebp - 0x350], eax
cmp dword [esi + 4], 0
je 0x101f84d6
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x101f84d6
push eax
push dword [esi + 0x1c]
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov eax, dword [ebp - 0x350]
jne 0x101f84a3
cmp dword [esi], 0
je 0x101f8635
xor edx, edx
mov ecx, 0x3e8
mov eax, edi
div ecx
push eax
push 0x100a4f70
call fcn.100d3a67
pop ecx
pop ecx
call fcn.100d2d40
cmp dword [esi + 4], 0
push edi
je 0x101f851c
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x101f852d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x101f852d
mov edi, ebx
jmp 0x101f861f
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x101f8635
cmp dword [esi], 0
jne 0x101f8557
push 0
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x101f8635
cmp dword [esi], 0
jne 0x101f8557
cmp dword [esi + 0x2c], 0
jne 0x101f8592
mov ecx, 0x100a5008
jmp 0x101f855c
mov ecx, 0x100a4fc8
push 6
push 0
lea edx, [ebp - 0x34c]
call fcn.100d25c3
cmp dword [ebp - 0x344], 2
push 0x100a5078
sbb eax, eax
not eax
and eax, dword [ebp - 0x34c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x101f862a
cmp dword [esi + 4], 0
je 0x101f85ab
push 0
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x101f8635
cmp dword [esi], 0
je 0x101f861d
push 0xa
lea ecx, [ebp - 0x34c]
call fcn.100b59b1
cmp dword [ebp - 0x344], 2
lea ecx, [ebp - 0x354]
push ecx
sbb eax, eax
lea ecx, [ebp - 0x12c]
not eax
and eax, dword [ebp - 0x34c]
push 0xffffffffffffffff
push eax
call fcn.100d4bf2
neg eax
sbb eax, eax
not eax
and dword [ebp - 0x354], eax
je 0x101f8653
mov eax, dword [ebp - 0x124]
cmp eax, 2
jb 0x101f85ff
dec eax
jmp 0x101f8601
xor eax, eax
push 0
lea ecx, [ebp - 0x358]
push ecx
push eax
push dword [ebp - 0x12c]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101f8653
add edi, edi
mov eax, dword [ebp - 0x350]
jmp 0x101f84a3
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x101f8653
cmp dword [esi + 4], 0
jne 0x101f8648
push 0x100a496c
call fcn.100d3a67
pop ecx
jmp 0x101f8653
push 0xffffffffffffffff
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.100b5ef7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34c]
call fcn.100b5ef7
call fcn.102375e9
ret