joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419170
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b57dc
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x50a360]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a360]
xor eax, esp
push eax
lea eax, [esp + 0x250]
mov dword fs:[0], eax
call fcn.00471eac
mov ecx, dword [eax + 4]
call fcn.0046b2c8
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x4a]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x264], ebx
mov word [esp + 0x50], ax
call fcn.00494750
add esp, 0xc
lea edx, [esp + 0x44]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x419357
call fcn.0046c2c1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41920d
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x1c]
push 0x4c5218
push edx
mov byte [esp + 0x264], 1
call fcn.00401cb0
push ebx
call fcn.00494170
add esp, 0x10
lea ecx, [esp + 0x2c]
mov esi, eax
mov edi, edx
call fcn.00475e73
mov ebp, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x34]
mov byte [esp + 0x260], 2
call fcn.00475f0b
cmp eax, ebx
je 0x419323
mov edi, edi
lea ecx, [esp + 0x2c]
call fcn.00475b3e
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0x38]
push 0x10
lea ecx, [esp + 0x30]
call edx
test eax, eax
je 0x419319
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00475de0
mov eax, esi
sub eax, dword [esp + 0x1c]
push ebx
mov ecx, edi
sbb ecx, dword [esp + 0x24]
push 0x15180
push ecx
push eax
call fcn.00496190
cmp edx, ebx
jl 0x419319
jg 0x4192ce
cmp eax, 1
jb 0x419319
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x30]
call fcn.0047610a
mov eax, dword [eax]
push 1
push eax
mov byte [esp + 0x260], 3
call fcn.004586f0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x258], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419319
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x24], ebx
jne 0x419270
lea ecx, [esp + 0x2c]
mov byte [esp + 0x258], 1
call fcn.00475e9c
lea eax, [ebp - 0x10]
mov byte [esp + 0x258], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419357
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x17]
mov dword [esp + 0x258], 0xffffffff
call fcn.00418aa0
mov ecx, dword [esp + 0x250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.004945a7
add esp, 0x248
ret
Function at 0x41b6b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b5aa8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a360]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0046c2c1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41b6f3
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov dword [esp + 0x2c], 0
call fcn.00419750
mov ebp, eax
lea edx, [esp + 0x18]
lea edi, [esi + 0x190]
mov ebx, 1
push edx
mov ecx, edi
mov byte [esp + 0x2c], bl
call fcn.00456fe0
mov ecx, dword [esi + 0x13c]
add ecx, 0xffffffff
mov byte [esp + 0x28], 2
js 0x41b854
cmp ecx, dword [esi + 0x13c]
jge 0x41b854
mov edx, dword [esi + 0x138]
mov eax, dword [eax]
lea ecx, [edx + ecx*4]
mov edx, dword [ebp]
mov ecx, dword [ecx]
push edx
push ecx
push eax
lea edx, [esp + 0x20]
push edx
call fcn.00401cb0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x28], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b798
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b7bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00456fb0
mov esi, dword [esp + 0x14]
mov eax, dword [eax]
push ebx
push 0
push esi
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test eax, eax
mov eax, dword [esp + 0x1c]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b806
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41b81a
mov ecx, dword [esp + 0x30]
push 0x31
push str.Unable_to_execute_third_party_comparison_program.
call fcn.00401860
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b83e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
call fcn.00464489
int3
Function at 0x41f170
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b5f31
mov eax, dword fs:[0]
push eax
sub esp, 0x5b4
mov eax, dword [0x50a360]
xor eax, esp
mov dword [esp + 0x5b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a360]
xor eax, esp
push eax
lea eax, [esp + 0x5c8]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x5d8]
xor ebp, ebp
cmp dword [0x50b910], ebp
je 0x41f271
mov eax, dword [0x50c040]
cmp eax, ebp
jne 0x41f3aa
mov ecx, ebx
call fcn.004014a0
push 0x206
lea ecx, [esp + 0x3c2]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x3c8], ax
call fcn.00494750
add esp, 0xc
push 0x104
lea edx, [esp + 0x3c0]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41f271
lea edi, [esp + 0x3bc]
mov dword [esp + 0x18], ebp
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bp
jne 0x41f220
mov ecx, 0xb
mov esi, str.drivers_sprdvcom.sys
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x30]
call fcn.0045e920
lea eax, [esp + 0x3bc]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x5d4], ebp
call fcn.0045e970
lea ecx, [esp + 0x30]
test eax, eax
jne 0x41f27b
mov dword [esp + 0x5d0], 0xffffffff
call fcn.00433c40
mov eax, 1
jmp 0x41f3aa
call fcn.0045eb80
push eax
lea ecx, [esp + 0x18]
call fcn.00402560
push 0x4c26e4
push 0x4c26e0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5d8], 1
call fcn.0040ad90
push 0x4ef7cc
push str.__.w
lea ecx, [esp + 0x1c]
call fcn.0040ad90
lea ecx, [esp + 0x1c]
call fcn.0046e650
mov edx, dword [esp + 0x14]
push 0x2e
lea ecx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x5dc], 2
call fcn.00459480
add esp, 0xc
cmp eax, 4
jne 0x41f35d
mov ecx, dword [esp + 0x24]
cmp ecx, ebp
jg 0x41f2ef
call fcn.00464489
cmp ecx, 1
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
jg 0x41f2ff
call fcn.00464489
cmp ecx, 2
mov esi, dword [eax + 4]
jg 0x41f30c
call fcn.00464489
cmp ecx, 3
mov ebx, dword [eax + 8]
jg 0x41f319
call fcn.00464489
mov ebp, dword [eax + 0xc]
push edx
call fcn.00495ca8
mov edi, eax
push esi
shl edi, 8
call fcn.00495ca8
mov esi, eax
add esi, edi
push ebx
shl esi, 8
call fcn.00495ca8
mov edi, eax
add edi, esi
push ebp
shl edi, 8
call fcn.00495ca8
add eax, edi
add esp, 0x10
cmp eax, 0x2000083
jb 0x41f370
mov dword [esp + 0x18], 1
jmp 0x41f370
mov eax, dword [esp + 0x14]
push eax
push str.Your_driver_version_is__s__it_is_too_low__nPlease_upgrade_download_driver____
push ebx
call fcn.00401cb0
add esp, 0xc
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
mov dword [0x50c040], esi
mov byte [esp + 0x5d0], 1
call fcn.0046e87c
lea ecx, [esp + 0x14]
call fcn.00401480
lea ecx, [esp + 0x30]
mov dword [esp + 0x5d0], 0xffffffff
call fcn.00433c40
mov eax, esi
mov ecx, dword [esp + 0x5c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5b0]
xor ecx, esp
call fcn.004945a7
add esp, 0x5c0
ret 4
Function at 0x432a30
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b74d8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a360]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
mov edi, dword [esp + 0x50]
xor esi, esi
cmp edi, esi
je 0x432bb9
mov eax, 0xffff
cmp word [ecx + 0x2f0], ax
je 0x432bb9
lea ecx, [esp + 0x28]
call fcn.00475e73
push esi
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x50], esi
call fcn.00475f0b
test eax, eax
jne 0x432aa4
mov dword [esp + 0x48], 0xffffffff
jmp 0x432bb0
mov ecx, dword [esp + 0x54]
or ebx, 0xffffffff
push ebx
push esi
call fcn.0047d5cf
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocStringLen
push edi
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, ebx
je 0x432bac
mov eax, dword [esp + 0x58]
cmp eax, esi
je 0x432ae9
push eax
push esi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
je 0x432bac
cmp edi, ebx
je 0x432bac
push edi
call fcn.00464376
add esp, 4
push esi
lea ecx, [esp + 0x20]
push ecx
push edi
mov ebx, eax
push ebx
push ebp
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x58]
push eax
movzx eax, word [edx + 0x2f0]
lea ecx, [esp + 0x20]
push ecx
push edi
push ebx
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x3c], 1
call fcn.00403d70
add esp, 0x1c
test eax, eax
je 0x432b85
cmp dword [esp + 0x50], 0x70
jne 0x432b85
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], 1
lea edi, [ecx + ebx]
movzx edx, byte [esi + edi]
mov ecx, dword [esp + 0x54]
push edx
call fcn.00411400
inc esi
cmp esi, 0x64
jl 0x432b71
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0046436b
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x48], 0xffffffff
call fcn.00475e9c
mov eax, dword [esp + 0x18]
jmp 0x432bbb
mov dword [esp + 0x48], ebx
lea ecx, [esp + 0x28]
call fcn.00475e9c
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc
Function at 0x434f20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b5b08
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x50a360]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x24]
push 1
push 1
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.004598e0
add esp, 0x10
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
push esi
xor ebx, ebx
mov dword [esi + 8], eax
push edx
lea ecx, [edi + 0x3b8]
mov dword [esp + 0x20], ebx
mov dword [esi + 0xc], eax
call fcn.00434550
test eax, eax
jne 0x434f92
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x434fba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
Function at 0x445c90
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
cmp dword [esp + 8], 0
push edi
mov edi, ecx
je 0x445e00
cmp dword [esp + 0x10], 1
jne 0x445e00
mov eax, dword [esp + 0x14]
test eax, eax
je 0x445e00
push ebx
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x445cdf
pop ebx
xor eax, eax
pop edi
pop ecx
ret 0x20
push esi
mov esi, dword [esp + 0x24]
mov eax, esi
or eax, dword [esp + 0x28]
je 0x445cf2
mov dword [esp + 0x1c], esi
jmp 0x445d01
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x1c], eax
mov esi, eax
mov ecx, dword [esp + 0x20]
push ebp
push ecx
lea edx, [esp + 0x20]
push edx
push esi
mov ecx, edi
mov dword [esp + 0x28], 0
call fcn.00445b40
mov ebp, eax
test ebp, ebp
je 0x445def
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x445def
add esi, 0x1ff
shr esi, 9
shl esi, 9
add esi, eax
push esi
call fcn.00464376
mov edi, eax
add esp, 4
test edi, edi
jne 0x445d55
push ebp
jmp 0x445de7
push esi
push 0xff
push edi
call fcn.00494750
mov eax, dword [esp + 0x28]
push eax
push ebp
push edi
call fcn.00494d40
push ebp
call fcn.0046436b
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
add esp, 0x1c
test eax, eax
jne 0x445d86
test ecx, ecx
je 0x445da2
push 0
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x30]
push ecx
push eax
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x445de6
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
push 0
lea edx, [esp + 0x14]
push edx
push ebp
lea ecx, [edi + eax]
push ecx
push ebx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x445de6
cmp dword [esp + 0x10], ebp
jne 0x445de6
mov edx, dword [esp + 0x18]
push ebx
mov dword [edx], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop esi
pop ebx
mov eax, edi
pop edi
pop ecx
ret 0x20
push edi
call fcn.0046436b
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop esi
pop ebx
xor eax, eax
pop edi
pop ecx
ret 0x20
xor eax, eax
pop edi
pop ecx
ret 0x20

Function at 0x445e10
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4495e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x50a360]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, dword [esp + 0x214]
push edi
mov edi, ecx
mov ecx, dword [esp + 0x21c]
test esi, esi
jne 0x44961d
push 0x19
push str.Configure_file_is_empty__n
call fcn.00401ab0
xor eax, eax
jmp 0x44971c
mov eax, esi
push ebx
lea ecx, [edi + 0x194]
lea ebx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x449630
sub eax, ebx
sar eax, 1
push eax
push esi
call fcn.00401860
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.00494750
add esp, 0xc
push esi
push 0x104
lea edx, [esp + 0x14]
push edx
push 0x4ef7cc
push 0x4ca054
push 0x4ca038
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x449687
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [edi + 0x134]
call fcn.00401860
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push esi
push 0
push str.ChangeCU
push 0x4ca038
call ebx
push esi
push 0
push str.CheckRoot
push 0x4ca038
mov dword [edi + 0x138], eax
call ebx
push esi
push 0
push str.BadFlashRate
push 0x4ca038
mov dword [edi + 0x190], eax
call ebx
push esi
push 0
push str.CheckBadFlashRate
push 0x4ca038
mov dword [edi + 0x248], eax
call ebx
push esi
push 0
push str.Inproduction
push 0x4ca038
mov dword [edi + 0x198], eax
call ebx
mov dword [edi + 0x2f4], eax
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
call fcn.004945a7
add esp, 0x20c
ret 8
Function at 0x44c9f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x50a360]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00494750
mov eax, dword [0x50b824]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00458600
lea edi, [esp + 0x1c]
add esp, 0x14
add edi, 0xfffffffe
jmp 0x44ca40
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x44ca40
mov ecx, 6
mov esi, str.BinPack.ini
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 8]
push ecx
push 0
push str.LoadPolicy
push str.Setting
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esp + 0x210]
pop edi
pop esi
xor ecx, esp
call fcn.004945a7
add esp, 0x20c
ret
add ecx, 0x1cec
jmp 0x44c9f0
Function at 0x44dfe0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b97a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a360]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x58]
xor ebp, ebp
mov dword [ebx], ebp
mov dword [edi], ebp
mov dword [eax], ebp
mov dword [ecx], ebp
cmp esi, ebp
je 0x44e1a0
lea ecx, [esp + 0x20]
call fcn.00475e73
push ebp
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x48], ebp
call fcn.00475f0b
test eax, eax
je 0x44e18f
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocStringLen
push esi
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x44e18f
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
cmp eax, ebp
je 0x44e188
cmp eax, 0xffffffff
je 0x44e188
push eax
call fcn.00464376
add esp, 4
push ebp
lea edx, [esp + 0x1c]
push edx
mov dword [ebx], eax
mov ecx, dword [edi]
push ecx
push eax
push esi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebx]
mov ebp, dword [edi]
mov dword [esp + 0x50], 0x5555aaaa
mov dword [esp + 0x48], 0xaaaa5555
lea ecx, [ecx]
push 0
push 0
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x5c]
push eax
lea esi, [ebx + ebp]
push esi
push ebx
call fcn.0044deb0
add esp, 0x18
cmp eax, esi
jae 0x44e11d
mov ecx, ebx
sub ecx, eax
push 0
add ecx, ebp
lea edi, [ecx + eax]
push 0
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x54]
push edx
push edi
push eax
mov esi, eax
call fcn.0044deb0
add esp, 0x18
cmp eax, edi
jb 0x44e14b
lea ecx, [ebx + ebp]
cmp eax, ecx
jb 0x44e0d0
test ebx, ebx
je 0x44e134
push ebx
call fcn.0046436b
mov eax, dword [esp + 0x50]
add esp, 4
mov dword [eax], 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], 0xffffffff
call fcn.00475e9c
mov eax, dword [esp + 0x14]
jmp 0x44e1a2
sub eax, esi
cmp eax, 8
jb 0x44e158
cmp dword [esi + 4], 0
jne 0x44e11d
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x4c]
mov dword [ecx + 0x124], 0
sub esi, dword [edx]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
add esi, 4
add eax, 0xfffffffc
mov dword [ecx], esi
mov dword [edx], eax
mov dword [esp + 0x14], 1
jmp 0x44e134
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov dword [esp + 0x40], 0xffffffff
call fcn.00475e9c
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0x14
Function at 0x4549d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x50a360]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax - 0xc]
push edi
mov edi, ecx
cmp dword [edi + 4], 0
mov dword [ebp - 8], esi
je 0x454a4c
test esi, esi
je 0x454a4c
push eax
mov dword [ebp - 0xc], 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x454a14
xor eax, eax
jmp 0x454a2d
lea esi, [eax + eax]
mov eax, esi
call fcn.004947d0
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.00401110
mov esi, dword [ebp - 8]
mov edx, dword [edi + 4]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454a68
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004945a7
mov esp, ebp
pop ebp
ret 4

Function at 0x454c20
Capabilities:
Create pipe

Disassembly:
push 0xffffffffffffffff
push 0x4b9e98
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a360]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
mov ebx, 5
mov dword [esp + 0x18], ebp
call fcn.0046c2c1
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x454c6e
push 0x80004005
call fcn.00401150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._spipe_s
push eax
mov dword [esp + 0x34], ebp
call fcn.00401cb0
mov eax, dword [esp + 0x3c]
add esp, 0x10
cmp eax, ebp
je 0x454cbf
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
lea eax, [esp + 0x20]
push str._spipe_s__d
push eax
call fcn.00401cb0
add esp, 0x14
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x454cd4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], ebp
push ebp
push ebp
push 0x400
push 0x400
push 1
push ebp
push 0x40000003
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x454d1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Failed_to_CreateNamedPipe___s__ErrorCode0x_x
call fcn.00495be3
dec ebx
add esp, 0xc
cmp ebx, ebp
mov dword [esi + 4], ebp
jg 0x454cc3
mov esi, dword [esp + 0x18]
jmp 0x454d1f
mov esi, 1
lea eax, [edi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x454d43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4