joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10086e20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x10086e51
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x10086e40
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x1008fa80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x1008faa2
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x44], eax
mov eax, dword [esi + 0x70]
push 1
add eax, 4
push eax
call fcn.101a1133
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp + 0xc]
mov byte [esi + 6], cl
cmp dword [eax + 0x58], 0
je 0x1008fac4
push ecx
push esi
call fcn.1008fc00
mov eax, dword [esi + 0x10]
push esi
mov eax, dword [eax + 0x58]
call eax
add esp, 0xc
push 1
call fcn.101b64a2
int3

Function at 0x10092ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov esi, 1
call fcn.10087a60
add esp, 4
sub eax, esi
je 0x10092b40
mov edi, dword [ebp + 0x10]
dec eax
push edi
push ebx
mov dword [ebp - 8], eax
call fcn.10088920
add esp, 8
cmp eax, 3
jne 0x10092b62
test esi, esi
je 0x10092b36
push edi
push ebx
call fcn.10088820
fstp qword [esp]
push str._.14g
push dword [ebp + 0xc]
call fcn.10088a90
add esp, 0x10
test eax, eax
jg 0x10092b8a
xor esi, esi
mov eax, dword [ebp - 8]
inc edi
test eax, eax
jne 0x10092b01
call fcn.101a3ea7
mov edi, dword [eax]
test esi, esi
je 0x10092b91
push 1
push ebx
call fcn.10087e50
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push edi
push ebx
call fcn.10088eb0
add esp, 0xc
test esi, esi
je 0x10092b36
push dword [ebp + 0xc]
push dword [ebp - 4]
push 1
push eax
call fcn.101b44f2
add esp, 0x10
cmp eax, dword [ebp - 4]
jne 0x10092b36
mov esi, 1
jmp 0x10092b38
push ebx
call fcn.10087fd0
push edi
call fcn.101b4f7b
push eax
push 0x10208e58
push ebx
call fcn.10087f10
push edi
push ebx
call fcn.10087f40
add esp, 0x1c
mov eax, 3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10092fc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
mov dword [ebp - 0x218], ebx
call fcn.10088d60
mov edi, dword [ebp + 0x10]
add esp, 8
mov ebx, dword [ebp - 0x214]
mov esi, 0x200
nop word [eax + eax]
lea eax, [ebp - 0x210]
push eax
call fcn.100899a0
cmp esi, edi
mov ecx, edi
push ebx
cmovbe ecx, esi
mov esi, ecx
push esi
push 1
push eax
call fcn.101b4cf1
add dword [ebp - 0x210], eax
add esp, 0x14
sub edi, eax
je 0x10093040
cmp eax, esi
je 0x10093010
lea eax, [ebp - 0x210]
push eax
call fcn.100899e0
mov ebx, dword [ebp - 0x218]
add esp, 4
test edi, edi
je 0x10093079
push 0xffffffffffffffff
push ebx
call fcn.10087d70
add esp, 8
test eax, eax
jne 0x10093079
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
Function at 0x100ab520
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f5f2c
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x1025e344]
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 dword [ebp - 0x10], esp
mov edi, ecx
lea esi, [edi + 0x28]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x100ab560
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100ab802
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x100ab81e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.100d55c0
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x100ab5a8
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x20]
call fcn.100d6790
mov eax, dword [edi + 0x4c]
cmp dword [eax - 0xc], 0
jne 0x100ab5d0
push dword [edi + 0x48]
push str.DELETE_FROM__s
lea eax, [ebp - 0x60]
push eax
call fcn.10004840
add esp, 0xc
jmp 0x100ab5e5
push eax
push dword [edi + 0x48]
push str.DELETE_FROM__s__s
lea eax, [ebp - 0x60]
push eax
call fcn.10004840
add esp, 0x10
mov esi, dword [ebp - 0x60]
push esi
lea ecx, [ebp - 0x20]
call fcn.100d60f0
mov dword [ebp - 0x64], eax
mov dword [edi + 0x40], 1
call fcn.100b5f40
mov edx, dword [eax]
push 0
mov ecx, eax
mov edx, dword [edx + 8]
call edx
movzx ecx, al
sub ecx, 1
jne 0x100ab6a6
push str.d:jenkins.jenkinsworkspacemaster_lucleanenginecleanenginecleanengine_src_result_manager_scan_result_db.cc
lea ecx, [ebp - 0x5c]
call fcn.100a3350
mov byte [ebp - 4], 4
push 0x10200ec8
lea ecx, [ebp - 0x44]
call fcn.100a3350
mov byte [ebp - 4], 5
call fcn.100b5f40
mov ebx, eax
push 0x75
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x100]
call fcn.10010bd0
mov edi, eax
mov byte [ebp - 4], 6
push str.result:
push edi
call fcn.1000fd60
add esp, 8
push dword [ebp - 0x64]
mov ecx, edi
call fcn.10019660
mov eax, dword [ebx]
push edi
mov ecx, ebx
call dword [eax + 0x1c]
mov byte [ebp - 4], 7
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x100]
call fcn.10012230
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
call fcn.10007910
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.10007910
lea ecx, [ebp - 0x20]
call fcn.100d5f10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.100d58d0
mov dword [ebp - 4], 1
jmp 0x100ab7e3
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100ab802
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
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.100d02f2
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004040
int3
Function at 0x100b52a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f6d0a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1025e344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x100b5464
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x100b546e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x100b5478
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
mov dword [esi + 0x10], eax
test edx, edx
jne 0x100b5382
xor ecx, ecx
jmp 0x100b53a0
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b5390
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.10006ab0
push edi
mov ecx, ebx
call fcn.100079d0
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x100b53bc
xor ecx, ecx
jmp 0x100b53d4
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b53c4
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.10006ab0
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.100b5cb0
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.100079d0
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100b5415
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x100b544e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100b544e
cmp dword [esi + 0x10], 0
je 0x100b5445
push dword [edi]
call fcn.101bdac4
add esp, 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
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 0xc
push 0x80004005
call fcn.10004040
push 0x80004005
call fcn.10004040
push 0x80004005
call fcn.10004040
int3
Function at 0x100b5ab0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f6df8
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x100b5c84
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x100b5b05
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x100b5c84
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x100b5b23
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x100b5c84
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x100b5b41
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x100b5c84
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x100b5b5f
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x100b5c84
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x100b5c84
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x100b5b84
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x2c]
mov dword [edi + 0x1c], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], ecx
jb 0x100b5bb7
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x100b5bcf
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x100b5c0d
mov esi, ecx
mov eax, SysReAllocString
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.10007020
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.1019fdb0
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x1020e0d8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.100b6470
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100b5c3b
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x100b5c74
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x100b5c74
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.10003810
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x4c]
call fcn.10003a70
lea ecx, [ebp - 0x28]
call fcn.10003a70
lea ecx, [ebp - 0x34]
call fcn.10019560
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d02f2
mov esp, ebp
pop ebp
ret 4
Function at 0x100b6030
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f6eb7
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1025e344]
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 edi, ecx
mov ebx, dword [ebp + 8]
lea esi, [edi + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x100b607a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b6086
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.10007210
cmp dword [edi + 0x28], 0
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
jne 0x100b60f3
push 0x48
call fcn.100cff51
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x100b60e7
push 0x48
push 0
push ebx
call fcn.101a08b0
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.100b52a0
jmp 0x100b60e9
xor eax, eax
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], eax
mov ecx, ebx
mov dword [ebp - 0x14], 7
sete al
lea edx, [ecx + 2]
lea eax, [eax*2 + 1]
mov dword [edi + 0x1c], eax
xor eax, eax
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b6120
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.10007210
push 3
push 0x1020e0d8
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10007090
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100b616f
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x100b61be
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x100b61be
push 0x10
xor eax, eax
mov dword [ebp - 0x40], 0
push str._______log_start
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.10007210
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x50]
call fcn.10003a70
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x100b61f4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100b61ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b6231
push edx
push ecx
call fcn.100cff81
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x100b6213
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
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.100d02f2
mov esp, ebp
pop ebp
ret 0x14
call fcn.101a3dde
int3
Function at 0x100b6d50
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x1025e344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x70], ebx
test edi, edi
je 0x100b6f18
test eax, eax
je 0x100b6f18
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x20
jl 0x100b6f18
push ecx
push ebx
push eax
call fcn.101a08b0
add esp, 0xc
push ebx
push 1
push 3
push ebx
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x84], edi
test edi, edi
je 0x100b6f18
cmp edi, 0xffffffff
je 0x100b6f11
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.100c1ca0
add esp, 8
lea eax, [ebp - 0x78]
xorps xmm0, xmm0
movq qword [ebp - 0x78], xmm0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100b6f11
mov eax, dword [ebp - 0x78]
or eax, dword [ebp - 0x74]
je 0x100b6ea7
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, eax
mov dword [ebp - 0x70], edx
test edx, edx
je 0x100b6f11
mov ecx, dword [ebp - 0x74]
xorps xmm0, xmm0
movq qword [ebp - 0x8c], xmm0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x7c], eax
cmp eax, ecx
jg 0x100b6ea7
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x8c]
jl 0x100b6e40
cmp edi, esi
jae 0x100b6ea7
nop
sub esi, edi
sbb ecx, eax
js 0x100b6e55
jg 0x100b6e50
cmp esi, 0x400000
jb 0x100b6e55
mov esi, 0x400000
push esi
push edi
push eax
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x100b6ea7
push esi
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.100c1cf0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x7c]
xor ebx, ebx
mov ecx, dword [ebp - 0x74]
add edi, 0x400000
adc eax, ebx
mov dword [ebp - 0x7c], eax
cmp eax, ecx
jge 0x100b6e9b
mov esi, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
jmp 0x100b6e40
jg 0x100b6ea7
mov esi, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
cmp edi, esi
jb 0x100b6e40
lea eax, [ebp - 0x6c]
push eax
call fcn.100c1b90
mov edi, dword [ebp - 0x80]
add esp, 4
xor esi, esi
nop dword [eax + eax]
movzx eax, byte [ebp + esi - 0x14]
push eax
push 0x1020e2fc
push 3
push edi
call fcn.10015d90
inc esi
add esp, 0x10
add edi, 2
cmp esi, 0x10
jl 0x100b6ec0
push dword [ebp + 0x10]
push dword [ebp - 0x80]
call fcn.101bf5d4
add esp, 8
mov esi, 1
test ebx, ebx
je 0x100b6efd
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x100b6f0b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x84]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100d02f2
mov esp, ebp
pop ebp
ret
Function at 0x100b7300
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f70f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1025e344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.100b73e0
push 0
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.100b75f0
add esp, 0x18
mov edx, dword [ebp - 0x14]
or esi, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100b736e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0x14], 0
je 0x100b739f
push 0
push dword [ebp - 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100b739f
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x101fe8a0
call fcn.10003660
jmp 0x100b73ad
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.10003600
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x100b73cc
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100b75f0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f71a0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1025e344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100b7709
cmp dword [ebp + 0x10], 0
je 0x100b7709
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x100b7759
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
mov dword [ebp - 4], 1
jge 0x100b766e
push 0x105
lea ecx, [ebp + 0xc]
call fcn.10006970
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [esi - 8]
push esi
call fcn.101a8a9d
add esp, 8
test eax, eax
js 0x100b7763
cmp eax, dword [esi - 8]
jg 0x100b7763
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp + 0x14], ecx
je 0x100b76f9
push ecx
push esi
push ecx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100b76f9
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x101fe8a0
call fcn.10003660
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100b76e6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.10003600
jmp 0x100b76c7
call fcn.100049d0
mov ecx, eax
test ecx, ecx
je 0x100b776d
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x101fe8a0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.10004060
test al, al
jne 0x100b7746
push 0
push 0x101fe8a0
mov ecx, esi
call fcn.10006ab0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10004040
push 0x80070057
call fcn.10004040
push 0x80004005
call fcn.10004040
int3
Function at 0x100be360
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f8070
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1025e344]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
je 0x100be4a9
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100be4a9
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100be4a9
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x100be4a9
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 5
push SysReAllocString
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
je 0x100be495
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100be48e
cmp dword [ebp - 0x1c], ebx
jne 0x100be48e
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
cmp eax, ecx
ja 0x100be42d
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x100be427
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x100be439
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.100b0705
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp - 0x20]
mov ecx, esi
push 0
call fcn.100b0679
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 8]
jne 0x100be48e
push edi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret