joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10039ce0
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
push ecx
push edx
push 0x20000005
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 4

Function at 0x10039e50
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f71fb
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x1014f644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0xc
mov edi, ecx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x424], ebx
call fcn.10071bdd
add esp, 4
cmp eax, ebx
je 0x1003a011
mov esi, eax
mov dword [eax], eax
mov dword [ebp - 0x428], esi
mov dword [eax + 4], eax
push 0x400
lea ecx, [ebp - 0x410]
push ebx
push ecx
mov dword [ebp - 4], ebx
call fcn.1007ada0
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
lea edx, [ebp - 0x414]
push edx
push 0x400
lea eax, [ebp - 0x410]
push eax
push edi
mov dword [ebp - 0x414], 0x400
call ebx
test eax, eax
je 0x10039f63
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x10039faa
mov ecx, dword [ebp - 0x418]
push ecx
lea edx, [ebp + eax - 0x410]
push edx
lea eax, [ebp - 0x410]
push eax
push esi
lea ecx, [ebp - 0x428]
push ecx
call fcn.1003a090
push 0x400
lea edx, [ebp - 0x410]
push 0
push edx
call fcn.1007ada0
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
push 0x400
lea ecx, [ebp - 0x410]
push ecx
push edi
mov dword [ebp - 0x414], 0x400
call ebx
mov esi, dword [ebp - 0x428]
test eax, eax
jne 0x10039ef2
mov eax, dword [esi]
mov dword [esi], esi
mov dword [esi + 4], esi
cmp eax, esi
je 0x10039f81
mov edi, edi
mov edi, dword [eax]
push eax
call fcn.100719b6
add esp, 4
mov eax, edi
cmp edi, esi
jne 0x10039f70
push esi
call fcn.100719b6
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100719c1
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x41c]
mov edx, dword [ecx + 0x14]
mov ebx, dword [esi]
cmp edx, 0x10
jb 0x10039fbe
mov edi, dword [ecx]
jmp 0x10039fc0
mov edi, ecx
mov eax, dword [ecx + 0x10]
add eax, edi
cmp edx, 0x10
jb 0x10039fce
mov edx, dword [ecx]
jmp 0x10039fd0
mov edx, ecx
mov edi, dword [ebp - 0x418]
push edi
push esi
push ebx
push eax
push edx
call fcn.1003a1f0
mov eax, dword [esi]
mov dword [esi], esi
mov dword [esi + 4], esi
cmp eax, esi
je 0x1003a001
jmp 0x10039ff0
mov edi, dword [eax]
push eax
call fcn.100719b6
add esp, 4
mov eax, edi
cmp edi, esi
jne 0x10039ff0
push esi
call fcn.100719b6
add esp, 4
mov al, 1
jmp 0x10039f8c
lea edx, [ebp - 0x418]
push edx
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x418], ebx
call fcn.10071a69
push 0x10140c60
lea eax, [ebp - 0x434]
push eax
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.10077e5e
int3
Function at 0x1003b3d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f7fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1014f644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, ecx
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x4c], 0
je 0x1003b443
mov edi, 0x10
cmp dword [esi + 0x14], edi
jb 0x1003b41b
mov eax, dword [esi]
jmp 0x1003b41d
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne al
test al, al
je 0x1003b443
cmp dword [esi + 0x14], edi
jb 0x1003b436
mov eax, dword [esi]
jmp 0x1003b438
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x1003b468
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
push eax
mov eax, 0x1012f5d8
mov esi, ebx
call fcn.10006bc0
jmp 0x1003b533
lea ecx, [ebp - 0x48]
mov eax, esi
call fcn.10040fc0
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x1003b47e
mov eax, dword [eax]
mov ecx, eax
call fcn.1003b190
mov edi, eax
cmp dword [ebp - 0x34], esi
jb 0x1003b498
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.100719b6
add esp, 4
xor esi, esi
xor edx, edx
mov eax, 7
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], dx
cmp edi, esi
jne 0x1003b4c9
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x10], esi
mov word [ebx], ax
push esi
mov eax, 0x1012f5d8
mov esi, ebx
call fcn.10006bc0
jmp 0x1003b533
mov dword [ebp - 0x18], eax
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], cx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x1003b4e0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x2c]
call fcn.10006bc0
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.10071fc1
mov dword [ebx + 0x10], esi
xor edx, edx
mov dword [ebx + 0x14], 7
add esp, 4
lea edi, [ebp - 0x2c]
mov esi, ebx
mov word [ebx], dx
call fcn.100024e0
cmp dword [ebp - 0x18], 8
jb 0x1003b533
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100719b6
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100719c1
mov esp, ebp
pop ebp
ret
Function at 0x1003cba0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
cmp dword [eax + 0x10], 0x7ffe
push ebx
push esi
jbe 0x1003cbb9
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, 8
cmp dword [eax + 0x14], ebx
jb 0x1003cbc5
mov eax, dword [eax]
push eax
call fcn.10076b0c
mov esi, eax
add esp, 4
test esi, esi
je 0x1003cbb1
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.1007ada0
xor eax, eax
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x58], 0x44
mov word [ebp - 0x28], cx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
cmp dword [edi + 0x10], eax
je 0x1003cc0f
cmp dword [edi + 0x14], ebx
jb 0x1003cc0d
mov eax, dword [edi]
jmp 0x1003cc0f
mov eax, edi
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x58]
push ecx
push eax
push 0
push 0x420
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
push esi
sete bl
call fcn.10071fc1
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10040720
Capabilities:
Create thread

Disassembly:
cmp dword [edi + 0x14], 8
jb 0x1004072a
mov eax, dword [edi]
jmp 0x1004072c
mov eax, edi
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
mov dword [esi + 0xc], eax
push edi
lea ecx, [esi + 0x18]
or eax, 0xffffffff
call fcn.10006840
lea eax, [esi + 0x14]
push eax
push 0
push esi
push 0x10040780
push 0
push 0
call fcn.100767a7
mov ecx, dword [esi + 0xc]
add esp, 0x18
push 0xffffffffffffffff
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, 1
ret

Function at 0x10040c50
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10040c7f
mov ecx, dword [esi + 8]
push 0
push 0
push 0x12
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi + 8], 0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10040cb3
push 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10040ca2
mov eax, dword [esi + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0
ret
Function at 0x100412b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f7e20
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x1014f644]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x60], esi
xor eax, eax
mov edi, ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], esi
cmp dword [edi + 0x10], esi
je 0x1004132e
cmp dword [edi + 0x14], 0x10
jb 0x10041302
mov eax, dword [edi]
jmp 0x10041304
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne al
test al, al
je 0x1004132b
cmp dword [edi + 0x14], 0x10
jb 0x1004131e
mov eax, dword [edi]
jmp 0x10041320
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x10041357
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x5c]
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
cmp ebx, ecx
je 0x10041350
mov edx, dword [ebp - 0x58]
mov dword [ebx], eax
mov eax, dword [ebp - 0x54]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
jmp 0x10041428
cmp eax, esi
jmp 0x1004141d
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x4c], vtable.hive::FileReader.0
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x48], 0
push 0xffffffffffffffff
push esi
push edi
mov byte [ebp - 4], 2
call fcn.10006dc0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.10044880
test al, al
je 0x100413e7
sub esp, 0x18
mov dword [ebp - 0x60], esp
mov eax, esp
je 0x100413ba
mov dword [eax], vtable.std::tr1::_Impl_base2_bool__unsigned_char_const___unsigned_int_.0
lea ecx, [ebp - 0x5c]
mov dword [eax], vtable.._AV___Impl_no_alloc2_U___Callable_obj_V_lambda2___A0x99db0e54_hive___0A__tr1_std___NPBEI_tr1_std__.0
mov dword [eax + 4], ecx
lea edi, [ebp - 0x4c]
mov dword [eax + 0x10], eax
call fcn.10044a30
mov eax, dword [ebp - 0x2c]
cmp eax, esi
je 0x100413d8
cmp eax, 0xffffffff
je 0x100413d8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
lea edx, [ebp - 0x5c]
mov dword [ebx + 8], esi
mov dword [ebx + 4], esi
mov dword [ebx], esi
cmp ebx, edx
je 0x10041410
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
mov dword [ebx], eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], esi
mov dword [ebx + 8], edx
mov dword [ebx + 4], ecx
lea esi, [ebp - 0x4c]
call fcn.100447f0
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x10041428
push eax
call fcn.100719b6
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100719c1
mov esp, ebp
pop ebp
ret 4
Function at 0x10041660
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f7dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1014f644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x100416f7
cmp dword [esi + 0x14], 0x10
jb 0x100416a0
mov eax, dword [esi]
jmp 0x100416a2
mov eax, esi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push eax
call edi
test eax, eax
setne al
test al, al
je 0x100416f7
cmp dword [esi + 0x10], 0
je 0x100416f0
cmp dword [esi + 0x14], 0x10
jb 0x100416c4
mov eax, dword [esi]
jmp 0x100416c6
mov eax, esi
push eax
call edi
test eax, eax
setne al
test al, al
je 0x100416f0
cmp dword [esi + 0x14], 0x10
jb 0x100416dc
mov eax, dword [esi]
jmp 0x100416de
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x100416f0
mov edi, str.file
jmp 0x100416fc
mov edi, 0x1013625c
jmp 0x100416fc
mov edi, str.unexist
push esi
lea esi, [ebp - 0x2c]
call fcn.1005e7e0
push 0x1013624c
push ecx
push eax
push ecx
push 0x10136250
push ecx
push edi
push ebx
mov dword [ebp - 4], 0
call fcn.100418d0
add esp, 0xc
push eax
call fcn.100418d0
add esp, 0xc
push eax
call fcn.10012d70
add esp, 0xc
push eax
call fcn.100418d0
add esp, 8
cmp dword [ebp - 0x18], 0x10
jb 0x10041751
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100719b6
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100719c1
mov esp, ebp
pop ebp
ret
Function at 0x10041f90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f8ccc
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push esi
push edi
mov eax, dword [0x1014f644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0xd4]
push eax
mov dword [ebp - 0x14], 0
call fcn.10001ca0
mov dword [ebp - 4], 1
cmp dword [edi + 0x14], 8
jb 0x10041fe1
mov eax, dword [edi]
jmp 0x10041fe3
mov eax, edi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x100420c3
push ebx
call fcn.1006e7e5
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 2
cmp dword [edi + 0x14], 8
jb 0x10042010
mov edi, dword [edi]
push esi
push ebx
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x100420b2
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x28]
push edx
push str.VarFileInfoTranslation
push esi
mov dword [ebp - 0x18], 0x34
call edi
test eax, eax
je 0x100420b2
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x1012f5d4
push esi
mov dword [ebp - 0x20], 0
call edi
test eax, eax
je 0x100420b2
mov eax, dword [ebp - 0x1c]
movzx edx, word [eax + 0xc]
push edx
movzx edx, word [eax + 8]
push ecx
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xa]
push ecx
push ecx
push edx
push ecx
push eax
lea ecx, [ebp - 0xc4]
push ecx
call fcn.10001930
push eax
call fcn.100042f0
add esp, 8
push eax
call fcn.10001930
push eax
call fcn.100042f0
add esp, 8
push eax
call fcn.10001930
push eax
call fcn.100042f0
add esp, 8
push eax
call fcn.10001930
mov byte [ebp - 4], 1
test esi, esi
je 0x100420c3
push esi
call fcn.100719b6
add esp, 4
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xd4]
call fcn.10001dd0
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 0
call fcn.10001d40
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x74], vtable.std::ios_base.0
call fcn.1006e8b0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10042db0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f7d20
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1014f644]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
je 0x10042e1a
mov edi, 0x10
cmp dword [esi + 0x14], edi
jb 0x10042df2
mov eax, dword [esi]
jmp 0x10042df4
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne al
cmp al, bl
je 0x10042e1a
cmp dword [esi + 0x14], edi
jb 0x10042e0d
mov eax, dword [esi]
jmp 0x10042e0f
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x10042e21
mov al, 1
jmp 0x10042ec8
push 0xffffffffffffffff
mov dword [ebp - 4], ebx
push ebx
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x4c], vtable.hive::FileReader.0
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.10006dc0
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x4c]
mov dword [ebp - 4], 1
call fcn.10044880
test al, al
jne 0x10042e71
mov esi, edi
call fcn.100447f0
xor al, al
jmp 0x10042ec8
sub esp, 0x18
mov dword [ebp - 0x54], esp
mov eax, esp
je 0x10042e8d
mov ecx, dword [ebp + 8]
mov dword [eax], vtable.std::tr1::_Impl_base2_bool__unsigned_char_const___unsigned_int_.0
mov dword [eax], vtable.._AV___Impl_no_alloc2_U___Callable_obj_V_lambda1___A0xfb9d3d04_hive___0A__tr1_std___NPBEI_tr1_std__.0
mov dword [eax + 4], ecx
lea edi, [ebp - 0x4c]
mov dword [eax + 0x10], eax
call fcn.10044a30
mov byte [ebp - 0x4d], al
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x10042eae
cmp eax, 0xffffffff
je 0x10042eae
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x4c]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.100447f0
mov al, byte [ebp - 0x4d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100719c1
mov esp, ebp
pop ebp
ret 4
Function at 0x10043930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f8098
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1014f644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x34], eax
cmp ebx, esi
je 0x10043a42
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x10043a42
mov eax, dword [eax + 4]
cmp eax, esi
je 0x10043a3e
cmp eax, 0xffffffff
je 0x10043a3e
push esi
lea ecx, [ebp - 0x30]
push ecx
push edi
push ebx
push eax
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100439d5
add esi, dword [ebp - 0x30]
mov edi, dword [ebp + 0x10]
cmp esi, edi
jae 0x10043a42
mov ecx, dword [ebp - 0x34]
push 0
lea edx, [ebp - 0x30]
push edx
mov edx, dword [ecx + 4]
sub edi, esi
push edi
lea eax, [ebx + esi]
push eax
push edx
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100439a2
mov eax, dword [ebp - 0x34]
add eax, 8
push eax
lea esi, [ebp - 0x2c]
call fcn.1005e7e0
mov ebx, eax
mov dword [ebp - 4], 0
call fcn.10043e20
mov ecx, str.write_data_
mov esi, eax
call fcn.100468f0
mov esi, eax
push edi
lea ecx, [esi + 0x50]
push ecx
call fcn.10041b80
mov ecx, str.__to_file
call fcn.100468f0
mov ecx, ebx
mov esi, eax
call fcn.10041860
mov esi, eax
call fcn.10041890
mov edx, fcn.10043ea0
test edx, edx
je 0x10043a36
push eax
call fcn.10043ea0
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.10006cf0
xor al, al
jmp 0x10043a44
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100719c1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10044880
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 0x20]
sub esp, 8
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
je 0x1004489a
cmp eax, 0xffffffff
jne 0x10044931
lea esi, [edi + 4]
mov dword [edi + 0x20], ebx
cmp dword [esi + 0x10], ebx
je 0x10044940
cmp dword [esi + 0x14], 0x10
jb 0x100448b3
mov eax, dword [esi]
jmp 0x100448b5
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne al
cmp al, bl
je 0x10044940
cmp dword [esi + 0x14], 0x10
jb 0x100448cf
mov eax, dword [esi]
jmp 0x100448d1
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x10044940
cmp dword [esi + 0x14], 0x10
jb 0x100448e4
mov esi, dword [esi]
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10044940
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10044939
mov ecx, dword [ebp - 4]
cmp ecx, ebx
jl 0x10044939
mov eax, dword [ebp - 8]
jg 0x10044922
cmp eax, ebx
jbe 0x10044939
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x20], esi
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10044950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
push edi
mov byte [ecx], 0
test ebx, ebx
je 0x10044a0f
mov edi, esi
call fcn.10044880
test al, al
je 0x10044a0f
mov edx, dword [esi + 0x34]
xor edi, edi
cmp edx, dword [esi + 0x2c]
jg 0x100449e2
jl 0x10044995
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x28]
jae 0x100449e2
cmp edi, 0x400
jae 0x100449e2
push 0
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [esi + 0x20]
mov edx, 0x400
sub edx, edi
push edx
lea eax, [edi + ebx]
push eax
push ecx
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10044a0a
mov eax, dword [ebp + 8]
add edi, eax
add dword [esi + 0x30], eax
adc dword [esi + 0x34], 0
mov edx, dword [esi + 0x34]
cmp edx, dword [esi + 0x2c]
jl 0x10044995
jg 0x100449e2
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x28]
jb 0x10044995
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
mov edx, dword [esi + 0x34]
cmp edx, dword [esi + 0x2c]
jl 0x10044a18
jg 0x100449f9
mov eax, dword [esi + 0x30]
cmp eax, dword [esi + 0x28]
jb 0x10044a18
mov ecx, dword [ebp + 0x10]
mov eax, 1
mov byte [ecx], al
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
call fcn.10044850
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
pop edi
xor eax, eax
pop esi
mov byte [ecx], al
mov al, 1
pop ebx
pop ebp
ret 0xc
Function at 0x10046640
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100febc8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1014f644]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [esi + 0x10], 0
je 0x100466a6
mov edi, 0x10
cmp dword [esi + 0x14], edi
jb 0x1004667e
mov eax, dword [esi]
jmp 0x10046680
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
setne al
test al, al
je 0x100466a6
cmp dword [esi + 0x14], edi
jb 0x10046699
mov eax, dword [esi]
jmp 0x1004669b
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x100466aa
xor al, al
jmp 0x100466e7
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.1003b3d0
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
mov edi, 8
lea eax, [ebp - 0x2c]
call fcn.1003d7f0
test eax, eax
sete bl
cmp dword [ebp - 0x18], edi
jb 0x100466e5
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.100719b6
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100719c1
mov esp, ebp
pop ebp
ret