joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001888c
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x210]
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 0x224]
push eax
mov dword [ebp - 0x218], esi
call fcn.100102ed
mov eax, dword [ebx]
mov edi, esp
push esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x214], esi
mov esi, dword [eax + 0x14]
mov ecx, esi
push ebx
call dword [0x1008c6d4]
call esi
cmp edi, esp
je 0x100188ef
mov ecx, 4
int 0x29
mov esi, eax
test esi, esi
jns 0x100189e5
cmp esi, 0x800700d7
jne 0x100189e7
lea edx, [ebp - 0x228]
mov ecx, ebx
call fcn.10019079
mov esi, eax
test esi, esi
js 0x100189e7
mov esi, dword [ebx]
lea eax, [ebp - 0x218]
mov edi, esp
push eax
push 0x10004dc8
mov ecx, dword [esi]
push ebx
call dword [0x1008c6d4]
call dword [esi]
cmp edi, esp
je 0x10018942
mov ecx, 4
int 0x29
mov esi, eax
test esi, esi
js 0x100189e7
mov edi, dword [ebp - 0x228]
mov esi, 0x10003f08
mov eax, esi
test edi, edi
je 0x10018963
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10018985
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100189e7
movzx esi, si
or esi, 0x80070000
jmp 0x100189e7
test edi, edi
je 0x1001898f
mov esi, dword [ebp - 0x224]
lea eax, [ebp - 0x214]
push eax
push 0x40000000
push 1
push esi
call dword [sym.imp.MSOERT2.dll_OpenFileStreamW]
mov esi, eax
test esi, esi
js 0x100189e7
mov eax, dword [ebp - 0x218]
mov edi, esp
push 0
push dword [ebp - 0x214]
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0x18]
call dword [0x1008c6d4]
call dword [esi + 0x18]
cmp edi, esp
je 0x100189d4
mov ecx, 4
int 0x29
mov esi, eax
test esi, esi
js 0x100189e7
lea ecx, [ebp - 0x214]
call fcn.1000b34b
xor esi, esi
lea ecx, [ebp - 0x214]
call fcn.1000b34b
lea ecx, [ebp - 0x218]
call fcn.1000b34b
and dword [ebp - 0x228], 0
lea ecx, [ebp - 0x224]
call fcn.1000deab
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret
Function at 0x1001ae36
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x208
lea eax, [ebp - 0x824]
push ebx
xor esi, esi
mov edi, ecx
push esi
push eax
call sub.msvcrt.dll_memset
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.10031469
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.msvcrt.dll_memset
push ebx
lea eax, [ebp - 0x61c]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0x30
lea ecx, [ebp - 0x824]
call fcn.10029091
test eax, eax
js 0x1001afc4
mov ebx, 0x104
lea eax, [ebp - 0x824]
push ebx
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.msvcrt.dll__wfullpath]
add esp, 0xc
test eax, eax
je 0x1001afc4
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push ebx
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.msvcrt.dll__wfullpath]
add esp, 0xc
test eax, eax
je 0x1001afc4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x1001afc4
shr eax, 4
test al, 1
je 0x1001af1f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
jmp 0x1001af38
and ecx, 6
cmp cl, 6
je 0x1001afc4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x414]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x1001af41
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x1001afc4
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
jmp 0x1001afa5
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001afc4
and eax, 6
cmp al, 6
je 0x1001afc4
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x1001afc4
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x1001af7f
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret
Function at 0x1001f1bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x214], ebx
push esi
push edi
test ecx, ecx
je 0x1001f1ea
mov eax, dword [ecx + 0x2a8]
test eax, eax
jne 0x1001f1ef
mov eax, SysReAllocStringLen
xor ecx, ecx
mov dword [0x1008b490], ebx
mov word [0x1008b6a0], cx
mov word [0x1008b498], cx
lea ecx, [ebp - 0x214]
push ecx
push 0x20019
push ebx
push 0x10004f28
push eax
mov dword [0x1008b494], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001f2df
mov esi, ebx
test esi, esi
jne 0x1001f243
mov eax, 0x10004f00
mov edi, 0x1008b6a0
mov ebx, 0x1008b494
jmp 0x1001f252
mov eax, 0x10004f14
mov edi, 0x1008b498
mov ebx, 0x1008b490
xor ecx, ecx
mov dword [ebp - 0x21c], 4
mov word [ebp - 0x210], cx
xor edx, edx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x220], edx
push ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], edx
push ecx
lea ecx, [ebp - 0x220]
push ecx
push edx
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001f2d5
mov ecx, dword [ebp - 0x218]
test ecx, ecx
je 0x1001f2d5
cmp cx, 0x1f
jne 0x1001f2d5
push ecx
lea edx, [ebp - 0x210]
call fcn.10063735
test eax, eax
je 0x1001f2d5
lea eax, [ebp - 0x210]
mov edx, 0x104
push eax
mov ecx, edi
call fcn.1000b82d
mov eax, dword [ebp - 0x218]
mov dword [ebx], eax
inc esi
cmp esi, 2
jl 0x1001f22e
cmp dword [ebp - 0x214], 0
je 0x1001f2f4
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret
Function at 0x10028f90
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x3c
xor edi, edi
lea eax, [ebp - 0x78]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x100]
call fcn.10063b95
lea eax, [ebp - 0x3c]
push eax
push edi
push edi
push 0x1000941c
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderIDList]
mov esi, eax
test esi, esi
js 0x10029071
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x78]
push eax
mov dword [ebp - 0x78], 0x3c
mov dword [ebp - 0x6c], 0x10005004
mov dword [ebp - 0x5c], 0xa
mov dword [ebp - 0x74], 0x6000104
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
call fcn.10009abe
cmp dword [0x10089578], 5
jbe 0x1002904e
push 0x4000
push edi
call fcn.10009bda
test al, al
je 0x1002904e
mov dword [ebp - 0x18], 0x10005010
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0x28
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0x38]
mov edx, 0x10009529
push eax
sub esp, 0xc
call fcn.10009b4d
call fcn.10009a9a
cmp esi, 1
je 0x1002906f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10029071
movzx esi, si
or esi, 0x80070000
jmp 0x10029071
mov esi, edi
push dword [ebp - 0x3c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.10063c3a
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.10087900
mov esp, ebp
pop ebp
ret
Function at 0x1002b8da
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 8]
xor edi, edi
push eax
push 0xf003f
push edi
push 0x10003f0c
push SysReAllocStringLen
mov esi, edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002b95f
push ebx
push 4
pop ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x10005090
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, 0x1f4
test eax, eax
jne 0x1002b93a
mov esi, dword [ebp - 4]
push ebx
lea eax, [esi + 1]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x10005090
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1002d739
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
push 0xf003f
push esi
push 0x10003f0c
push SysReAllocStringLen
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002d7b3
push ebx
push edi
push 4
pop edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x10]
mov ebx, 0x100050d0
push eax
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1002d7a8
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0xa
push eax
push edi
push esi
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10032676
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 4
pop edi
push edi
xor esi, esi
mov dword [ebp - 0xc], edi
lea eax, [ebp - 8]
mov dword [ebp - 0x10], esi
push eax
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0x10]
mov ebx, 0x10005b20
push eax
push ebx
push 0x10005aec
call dword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
je 0x100326c0
mov eax, 0x80004005
jmp 0x100326ea
cmp dword [ebp - 4], esi
jne 0x100326ca
xor eax, eax
inc eax
jmp 0x100326ea
push 2
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push edi
push ebx
push 0x10005aec
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
neg eax
sbb eax, eax
and eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10032743
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 2
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push eax
push 4
push 0x10005abc
push 0x10005a68
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
neg eax
sbb eax, eax
and eax, 0x80004005
mov esp, ebp
pop ebp
ret

Function at 0x10032970
Capabilities:
Get common file path
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c0
mov eax, dword [0x1008a418]
xor eax, esp
mov dword [esp + 0x2bc], eax
push esi
push edi
xor edi, edi
lea eax, [esp + 0xb8]
push 0x208
push edi
push eax
mov dword [esp + 0x14], edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.10064351
lea ecx, [esp + 0x30]
call fcn.10063b95
call fcn.1006ce2a
lea edx, [esp + 8]
xor ecx, ecx
call fcn.10032556
test eax, eax
jns 0x100329d8
xor esi, esi
inc esi
jmp 0x10032a83
push dword [esp + 8]
lea ecx, [esp + 0x14]
call fcn.100644fa
mov esi, eax
test esi, esi
js 0x10032a83
lea eax, [esp + 0xb8]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
test esi, esi
js 0x10032a83
push 0x10005a3c
lea eax, [esp + 0xbc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x10032a26
mov esi, 0x8000ffff
jmp 0x10032a83
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x14]
call fcn.10064c51
mov esi, eax
test esi, esi
js 0x10032a83
push 2
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 4
push 0x10005b20
push 0x10005aec
call dword [sym.imp.SHLWAPI.dll_SHRegSetUSValueW]
test eax, eax
je 0x10032a6b
mov esi, 0x80004005
jmp 0x10032a83
lea eax, [esp + 0xb8]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_Ordinal_262]
mov esi, eax
test esi, esi
js 0x10032a83
mov esi, edi
lea ecx, [esp + 8]
call fcn.1000b34b
call fcn.10063c3a
lea ecx, [esp + 0x10]
call fcn.100643a1
mov ecx, dword [esp + 0x2c4]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.10087900
mov esp, ebp
pop ebp
ret
Function at 0x10033a90
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor eax, eax
mov dword [ebp - 8], 0x80004005
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push edx
mov ebx, ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
mov dword [ebp - 0xc], ecx
cmp ecx, 0xffffffff
je 0x10033c0a
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, dword [ebp + 0xc]
push esi
push edi
mov esi, 0x10005b80
mov dword [ebx + 0x10], edx
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x78], edx
mov esi, edx
mov dword [ebx + 0x7c], ecx
mov dword [ebx + 0x80], edx
mov dword [ebx + 0x94], edx
mov dword [ebx + 0x98], edx
mov dword [ebx + 0x9c], edx
mov dword [ebx + 0xa0], edx
mov dword [ebx + 0x14], 1
mov dword [ebx + 0x8c], 0xa4
mov dword [ebx + 0x88], edx
mov dword [ebx + 0x90], edx
mov dword [ebx + 0x84], eax
mov eax, esi
add eax, eax
mov dword [ebx + eax*8 + 0x1c], edx
mov dword [ebx + eax*8 + 0x24], edx
lea edx, [esi + 2]
shl edx, 4
mov dword [ebp - 0x14], edx
test esi, esi
jne 0x10033b55
mov edx, dword [ebx + 0x84]
add edx, dword [ebx + 0x8c]
push 8
jmp 0x10033b5f
mov edx, dword [ebx + eax*8 + 0x10]
add edx, dword [ebx + eax*8 + 8]
push 0x44
pop edi
imul edi, ecx
inc esi
mov ecx, dword [ebp - 0x14]
push 0
mov dword [ecx + ebx], edx
mov ecx, dword [ebp + 8]
mov dword [ebx + eax*8 + 0x18], edi
pop edx
cmp esi, 6
jl 0x10033b2c
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push edx
push eax
push 0xa4
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10033c08
push dword [ebx + 0x28]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
jne 0x10033baf
mov dword [ebp - 8], 0x8007000e
jmp 0x10033c08
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push 0
push eax
push dword [ebx + 0x84]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10033c08
and dword [ebp - 0xc], 0
add ebx, 0x18
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebx]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10033c08
mov eax, dword [ebp - 0xc]
add ebx, 0x10
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 6
jl 0x10033bd1
lea ecx, [ebp - 4]
call fcn.10037062
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [ebp - 8], eax
pop edi
pop esi
lea ecx, [ebp - 4]
call fcn.10037062
mov eax, dword [ebp - 8]
not eax
shr eax, 0x1f
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10033c21
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov ebx, edx
mov dword [ebp - 0x10], ebx
test esi, esi
je 0x10033d8e
mov eax, dword [esi + 0x10]
cmp dword [eax + 0x78], edi
jne 0x10033c5d
lea ecx, [esi + 0x18]
call fcn.10037062
lea ecx, [esi + 0x14]
call fcn.10037062
jmp 0x10033d8b
xor ecx, ecx
test ebx, ebx
sete cl
lea ecx, [ecx*4 + 0x14]
add ecx, esi
call fcn.10037062
mov eax, dword [esi + 0x10]
lea ecx, [ebx + 2]
push edi
add ecx, ecx
push edi
push dword [eax + ecx*8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10033d8e
mov eax, dword [esi + 0x10]
add ebx, ebx
mov eax, dword [eax + ebx*8 + 0x1c]
test eax, eax
je 0x10033d8e
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, eax
cmp dword [ebp - 0x10], edi
jne 0x10033d21
mov dword [esi + 0x18], ecx
test ecx, ecx
je 0x10033d8e
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x10]
push dword [eax + 0x1c]
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10033d8e
mov ebx, dword [esi + 0x10]
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x1c]
jne 0x10033d8e
mov eax, dword [esi + 0x18]
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, dword [ebx + 0x24]
mov edx, edi
test esi, esi
je 0x10033d8b
mov ecx, dword [ebp - 0x10]
mov ebx, eax
add ecx, 4
mov eax, dword [ecx]
add eax, 0x20
cmp eax, ebx
ja 0x10033d8e
inc edx
add ecx, 8
cmp edx, esi
jb 0x10033d0e
jmp 0x10033d8b
mov dword [esi + 0x14], ecx
test ecx, ecx
je 0x10033d8e
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x10]
push dword [eax + ebx*8 + 0x1c]
push ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10033d8e
mov edx, dword [esi + 0x10]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + ebx*8 + 0x1c]
jne 0x10033d8e
mov ebx, dword [edx + ebx*8 + 0x24]
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
test ebx, ebx
je 0x10033d86
lea eax, [ebp - 0x14]
push eax
push 0x20
pop edx
call fcn.100362ea
test eax, eax
js 0x10033d8e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc eax
add ecx, 0x44
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
cmp eax, ebx
jb 0x10033d62
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
xor edi, edi
inc edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10034037
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, dword [esi + 0x8c]
cmp eax, 0xa4
jb 0x100340f4
mov ecx, dword [esi + 0x84]
cmp ecx, dword [esi + 0x88]
jb 0x100340f4
lea edx, [ecx + eax]
cmp edx, eax
jb 0x1003407f
mov ecx, edx
jmp 0x10034082
or ecx, 0xffffffff
cmp edx, eax
jb 0x100340f4
mov eax, edi
mov dword [esp + 0x14], edi
add esi, 0x18
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], edi
cmp ebx, ecx
jb 0x100340f4
mov ecx, dword [esi]
cmp ecx, dword [esi + 4]
jb 0x100340f4
neg eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0xc]
sbb edx, edx
and edx, 0x3c
add edx, 8
call fcn.1000f917
test eax, eax
js 0x100340f4
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
cmp eax, dword [esi + 4]
je 0x100340ce
cmp eax, ecx
ja 0x100340f4
mov dword [esi + 4], eax
lea eax, [ecx + ebx]
cmp eax, ebx
jb 0x100340d9
mov ecx, eax
jmp 0x100340dc
or ecx, 0xffffffff
cmp eax, ebx
jb 0x100340f4
mov eax, dword [esp + 0x14]
add esi, 0x10
inc eax
mov dword [esp + 0x14], eax
cmp eax, 6
jl 0x1003408f
xor edi, edi
inc edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100340fd
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
xor ecx, ecx
xor esi, esi
push ecx
push ecx
mov eax, dword [edi + 0x10]
inc esi
push ecx
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1003413b
mov edx, dword [ebp - 4]
mov ecx, ebx
push 0
push 0xa4
call fcn.10035ff0
jmp 0x1003413d
xor eax, eax
test eax, eax
jne 0x10034148
xor esi, esi
jmp 0x100341c9
mov ecx, dword [edi + 0x10]
mov edx, ebx
call fcn.10034037
test eax, eax
je 0x10034141
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x24]
cmp eax, dword [ecx + 0x78]
je 0x10034168
or dword [ecx + 0x80], 0x10
push 0x10
pop edx
mov ecx, dword [edi + 0x10]
mov eax, dword [edx + ecx + 0x24]
cmp eax, dword [ecx + 0x78]
jbe 0x10034181
or dword [ecx + 0x80], 0x10
mov ecx, dword [edi + 0x10]
add edx, 0x10
cmp edx, 0x60
jb 0x1003416b
test byte [ecx + 0x80], 0x10
je 0x100341a9
push 0
lea eax, [ebp - 8]
push eax
push 0xa4
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100341c9
push ebx
xor edx, edx
mov ecx, edi
call fcn.10033c21
test eax, eax
je 0x10034141
mov edx, dword [edi]
mov ecx, edi
push ebx
call fcn.10033c21
mov esi, eax
neg esi
sbb esi, esi
neg esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100349cd
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov edi, 0x2000
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10034a82
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x10034a82
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10034a82
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10034a82
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x10034a82
test ebx, ebx
je 0x10034a7f
cmp ebx, edi
jae 0x10034a44
mov edi, ebx
push esi
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10034a82
cmp dword [ebp - 4], edi
jne 0x10034a82
push esi
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10034a82
cmp dword [ebp - 4], edi
jne 0x10034a82
mov eax, dword [ebp - 8]
sub ebx, edi
jne 0x10034a3e
xor esi, esi
inc esi
lea ecx, [ebp - 8]
call fcn.10037062
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8