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

Disassembly:
push 0x14
mov eax, 0x481e6b
call fcn.0048062c
mov ebx, ecx
mov eax, dword [0x4b457c]
xor esi, esi
mov ecx, 0x4b457c
mov dword [ebp - 0x1c], esi
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
push esi
push 0x80
push 2
push esi
push 1
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x14]
push 0x40000000
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x41394f
cmp dword [ebx + 0x18], esi
jne 0x413902
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 0x10]
call fcn.00412311
mov edi, dword [ebp - 0x10]
mov eax, dword [edi - 0xc]
push esi
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x41393b
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea ecx, [ebp - 0x20]
push ecx
push 2
lea ecx, [ebp - 0x10]
push ecx
push eax
mov byte [ebp - 0x10], 0xff
mov byte [ebp - 0xf], 0xfe
mov dword [ebp - 0x20], esi
call ebx
test eax, eax
je 0x413946
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push esi
lea edx, [ebp - 0x18]
push edx
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x14]
call ebx
test eax, eax
je 0x413946
mov dword [ebp - 0x1c], 1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
call fcn.0040214e
mov eax, dword [ebp - 0x1c]
call fcn.00480704
ret 4

Function at 0x413962
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push dword [ebp + 8]
xor eax, eax
mov byte [ebp - 4], bl
lea edi, [ebp - 3]
stosb byte es:[edi], al
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4139cf
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 2
jb 0x4139c8
push ebx
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4139c8
cmp byte [ebp - 4], 0xff
jne 0x4139c8
cmp byte [ebp - 3], 0xfe
jne 0x4139c8
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x414073
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x4b2068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 8], 0x80004005
call edi
cmp eax, ebx
mov dword [esi + 8], eax
je 0x4140d2
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x4140d2
cmp dword [esi], ebx
jne 0x4140d2
lea eax, [esi + 4]
push eax
push ebx
push esi
push 0x414163
push ebx
push ebx
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi], eax
je 0x4140d2
mov dword [ebp - 8], ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
pop edi
xor ecx, ebp
pop ebx
call fcn.0047f7b2
leave
ret
Function at 0x4142ca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], 4
je 0x414307
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push esi
push str.HiberbootEnabled
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414307
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
inc esi
mov eax, esi
pop esi
leave
ret 4

Function at 0x41463e
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 4
mov eax, 0x481f3f
call fcn.0048062c
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00402357
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41467e
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, esi
call fcn.00480704
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x414668
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x414668
lea ecx, [ebp - 0x10]
call fcn.0040813c
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x4146b5
xor esi, esi
jmp 0x41466b
push eax
call fcn.0041463e
test eax, eax
pop ecx
je 0x4146b1
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x414668
call edi
cmp eax, ebx
jne 0x4146b1
jmp 0x414668
Function at 0x414abd
Capabilities:
Create process on windows

Disassembly:
push 0x58
mov eax, 0x4815ab
call fcn.00480695
or eax, 0xffffffff
test edi, edi
mov esi, eax
je 0x414b9a
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
and dword [ebp - 4], 0
lea eax, [ebp - 0x64]
push eax
call fcn.00414933
test eax, eax
pop ecx
je 0x414b8b
mov esi, 0x496ee0
push esi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push esi
lea ecx, [ebp - 0x2c]
call dword [0x4892f8]
push 0x496ee4
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call dword [0x4892f8]
cmp dword [ebp - 0x30], 8
mov ecx, dword [ebp - 0x44]
jae 0x414b47
lea ecx, [ebp - 0x44]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x414b53
lea eax, [ebp - 0x28]
push 1
push 0
push ecx
push eax
push 0x496ef8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov byte [ebp - 4], 1
dec ecx
mov esi, ecx
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
call fcn.00480718
ret

Function at 0x414f5e
Capabilities:
Copy file

Disassembly:
mov eax, dword [0x4b4bf4]
test eax, eax
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
jne 0x414f79
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x414f7b
call eax
ret 8
Function at 0x4154a9
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x481f3f
call fcn.0048062c
mov eax, dword [0x4b457c]
mov ecx, 0x4b457c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov eax, 0x104
push eax
push eax
lea esi, [ebp - 0x10]
call fcn.004021fc
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, dword [ebp - 0x10]
test edi, edi
jne 0x4154ed
xor eax, eax
jmp 0x4154f5
push edi
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x10]
call fcn.0040212d
cmp dword [edi - 0xc], 0
jne 0x415515
xor esi, esi
lea eax, [edi - 0x10]
call fcn.0040214e
mov eax, esi
call fcn.00480704
ret
push str.drivershookport.sys
lea eax, [ebp - 0x10]
push eax
call fcn.004021d8
mov edi, dword [ebp - 0x10]
push 0
push edi
call dword [sym.imp.MSVCR80.dll__waccess]
mov esi, eax
neg esi
pop ecx
sbb esi, esi
pop ecx
inc esi
jmp 0x415505

Function at 0x4162c3
Capabilities:
Create process on windows

Disassembly:
push 0x58
mov eax, 0x4833ad
call fcn.0048062c
push 0x40
xor esi, esi
lea eax, [ebp - 0x60]
push esi
push eax
xor ebx, ebx
call sub.MSVCR80.dll_memset
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x4b457c]
xor edi, edi
inc edi
add esp, 0xc
mov ecx, 0x4b457c
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], esi
push str.__s___s
push eax
call fcn.00404e7f
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x10]
mov word [ebp - 0x34], si
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x416354
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, edi
cmp dword [ebp - 0x20], esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x416367
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x20], esi
cmp dword [ebp - 0x1c], esi
je 0x416374
push dword [ebp - 0x1c]
call edi
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040214e
mov eax, ebx
call fcn.00480704
ret
Function at 0x41662c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x4b2068]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa8]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x41668f
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call esi
cmp eax, edi
je 0x416745
mov eax, dword [ebp - 0x98]
dec eax
je 0x416731
dec eax
jne 0x416745
mov eax, dword [ebp - 0xa4]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x4166de
cmp dword [ebp - 0xa0], edx
jne 0x4166c8
xor eax, eax
cmp byte [ebp + 0x72], dl
setne al
add eax, 8
jmp 0x41672d
cmp dword [ebp - 0xa0], edi
jne 0x416716
xor eax, eax
cmp byte [ebp + 0x72], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x41672d
cmp eax, 5
jne 0x416708
cmp dword [ebp - 0xa0], 2
jne 0x4166ef
push eax
jmp 0x41670f
cmp dword [ebp - 0xa0], 1
jne 0x4166fc
mov edi, ecx
jmp 0x416745
cmp dword [ebp - 0xa0], edi
jne 0x416745
push 3
jmp 0x41670f
cmp eax, 4
ja 0x416712
push 4
pop edi
jmp 0x416745
cmp eax, ecx
jb 0x416745
cmp dword [ebp - 0xa0], 2
jae 0x416723
cmp eax, ecx
jbe 0x416745
cmp byte [ebp + 0x72], dl
jne 0x416745
call fcn.00416571
mov edi, eax
jmp 0x416745
mov eax, dword [ebp - 0x9c]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov ecx, dword [ebp + 0x74]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0047f7b2
add ebp, 0x78
leave
ret
Function at 0x416ff3
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
or dword [ebp - 0x10], 0xffffffff
push ebx
push esi
mov esi, dword [sym.imp.MSVCR80.dll__wfopen]
push edi
push 0x490678
push dword [ebp + 8]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 8], edi
call esi
push 0x48f34c
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call esi
add esp, 0x10
cmp dword [ebp - 4], edi
mov dword [ebp - 0xc], eax
je 0x4170c1
cmp eax, edi
je 0x4170b5
push 2
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.MSVCR80.dll_fseek]
call edi
push dword [ebp - 4]
call dword [sym.imp.MSVCR80.dll_ftell]
push ebx
push ebx
push dword [ebp - 4]
mov esi, eax
call edi
push esi
call fcn.0047e92c
add esp, 0x20
test eax, eax
mov dword [ebp - 8], eax
je 0x4170b5
push dword [ebp - 4]
push esi
push 1
push eax
call dword [sym.imp.MSVCR80.dll_fread]
lea edi, [esi + esi]
push edi
mov dword [ebp - 0x14], edi
call fcn.0047e92c
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x4170b5
push edi
push 0
push ebx
call sub.MSVCR80.dll_memset
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
call fcn.00416f7c
push dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
push 1
push ebx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x28
push dword [ebp - 4]
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
xor edi, edi
cmp dword [ebp - 0xc], edi
je 0x4170d0
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
cmp dword [ebp - 8], edi
je 0x4170de
push dword [ebp - 8]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
cmp ebx, edi
je 0x4170e9
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp + 0xc]
mov esi, 0x4b4d74
push dword [ebp + 8]
push dword [ebp - 0x10]
push 0x4973a0
call fcn.00411a60
add esp, 0x10
xor eax, eax
cmp dword [ebp - 0x10], edi
pop edi
pop esi
sete al
pop ebx
leave
ret
Function at 0x417111
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x41712a
mov eax, dword [ebp - 4]
jmp 0x417204
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x4171df
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4962c8]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4962c8]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4962c8]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4962c8]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4962c8]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x4962c8]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x4962c8]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4962c8]
dec ebp
jne 0x417149
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x4171fb
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x4962c8]
dec ecx
jne 0x4171e9
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417209
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x41a8f0
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4b2068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov word [ebp - 0x20c], di
call sub.MSVCR80.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, edi
mov dword [0x4b4e48], eax
je 0x41aaa2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinHttpOpen
push eax
call esi
push str.WinHttpConnect
push dword [0x4b4e48]
mov dword [0x4b4dec], eax
call esi
push str.WinHttpOpenRequest
push dword [0x4b4e48]
mov dword [0x4b4df0], eax
call esi
push str.WinHttpAddRequestHeaders
push dword [0x4b4e48]
mov dword [0x4b4df4], eax
call esi
push str.WinHttpSendRequest
push dword [0x4b4e48]
mov dword [0x4b4df8], eax
call esi
push str.WinHttpReceiveResponse
push dword [0x4b4e48]
mov dword [0x4b4dfc], eax
call esi
push str.WinHttpQueryHeaders
push dword [0x4b4e48]
mov dword [0x4b4e00], eax
call esi
push str.WinHttpReadData
push dword [0x4b4e48]
mov dword [0x4b4e04], eax
call esi
push str.WinHttpCloseHandle
push dword [0x4b4e48]
mov dword [0x4b4e08], eax
call esi
push str.WinHttpCrackUrl
push dword [0x4b4e48]
mov dword [0x4b4e0c], eax
call esi
push str.WinHttpSetOption
push dword [0x4b4e48]
mov dword [0x4b4e10], eax
call esi
push str.WinHttpSetTimeouts
push dword [0x4b4e48]
mov dword [0x4b4e14], eax
call esi
cmp dword [0x4b4dec], edi
mov dword [0x4b4e18], eax
je 0x41aa9c
cmp dword [0x4b4df8], edi
je 0x41aa9c
cmp dword [0x4b4e0c], edi
je 0x41aa9c
cmp dword [0x4b4df0], edi
je 0x41aa9c
cmp dword [0x4b4df4], edi
je 0x41aa9c
cmp dword [0x4b4e04], edi
je 0x41aa9c
cmp dword [0x4b4e08], edi
je 0x41aa9c
cmp dword [0x4b4e00], edi
je 0x41aa9c
cmp dword [0x4b4dfc], edi
je 0x41aa9c
cmp dword [0x4b4e10], edi
je 0x41aa9c
cmp dword [0x4b4e14], edi
je 0x41aa9c
cmp eax, edi
je 0x41aa9c
inc edi
mov dword [0x4b4de8], edi
mov ecx, dword [ebp - 4]
mov eax, dword [0x4b4de8]
pop edi
xor ecx, ebp
pop esi
call fcn.0047f7b2
leave
ret
Function at 0x41b3c1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
jb 0x41b3db
mov eax, dword [eax + 4]
jmp 0x41b3de
add eax, 4
push esi
push esi
push 3
push esi
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x41b4a4
cmp eax, esi
je 0x41b4a4
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
inc eax
lea ebx, [edi + 0xc]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::reserve_unsigned_int_]
mov esi, 0x80000
push esi
call dword [sym.imp.MSVCR80.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x41b49a
push esi
push 0
push eax
jmp 0x41b44f
cmp dword [ebp - 8], 0
je 0x41b46e
push dword [ebp - 8]
mov ecx, ebx
push dword [ebp - 4]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
push esi
push 0
push dword [ebp - 4]
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b435
cmp dword [ebx + 0x18], 0x10
mov ecx, dword [edi + 0x20]
jb 0x41b47c
mov eax, dword [ebx + 4]
jmp 0x41b47f
lea eax, [ebx + 4]
push dword [ebp - 4]
add ecx, eax
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], eax
mov dword [ebp - 0x10], 1
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp - 0x10]
pop esi
leave
ret

Function at 0x41b685
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x41b6cd
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x41b69e
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x41b6d2
test ecx, ecx
je 0x41b6cd
test edi, edi
ja 0x41b693
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41b6cf
Function at 0x41d165
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1208]
mov eax, 0x1288
call fcn.0047fd60
mov eax, dword [0x4b2068]
xor eax, ebp
mov dword [ebp + 0x1204], eax
mov eax, dword [ebp + 0x1210]
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x1214]
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1218]
push esi
push edi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x121c]
xor ebx, ebx
push 0x206
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0xffe]
push ebx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov word [ebp + 0xffc], bx
call sub.MSVCR80.dll_memset
mov esi, 0xfff
push esi
lea eax, [ebp - 3]
push ebx
push eax
mov byte [ebp - 4], bl
call sub.MSVCR80.dll_memset
add esp, 0x18
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
xor edi, edi
lea eax, [ebp - 0xc]
inc edi
push eax
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x41d2e6
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp + 0xffc]
push eax
mov word [ebp - 0x50], bx
mov dword [ebp - 0x54], 0x101
call fcn.00413af5
pop ecx
pop ecx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp + 0xffc]
push ebx
push ebx
push edi
push ebx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41d2e6
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x38]
call edi
push 0x1000
lea eax, [ebp - 4]
push ebx
push eax
mov dword [ebp - 8], ebx
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x41d2cd
cmp dword [ebp - 8], ebx
jbe 0x41d2b0
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], ebx
je 0x41d2b0
push dword [ebp - 8]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
lea edx, [ebp - 4]
push edx
call dword [eax]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1000
lea eax, [ebp - 4]
push ebx
push eax
mov dword [ebp - 8], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x41d295
mov dword [ebp - 8], ebx
cmp dword [ebp - 0xc], ebx
pop edi
pop esi
pop ebx
je 0x41d2f7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1204]
mov eax, dword [ebp - 8]
xor ecx, ebp
call fcn.0047f7b2
add ebp, 0x1208
leave
ret 0x10