joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a8f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, dword [ebp + 8]
mov eax, dword [0x4e8024]
xor eax, ebp
mov dword [esp + 0xa8], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x60]
push 0x26b
push str..._.._base_files_file_util_win.cc
push str.CreateDirectoryAndGetError
push ebx
call fcn.00460cb0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.00460cf0
cmp byte [esi + 0xb], 0
mov ebx, esi
jns 0x42a95b
mov ebx, dword [esi]
mov edi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a995
mov bl, 1
test al, 0x10
je 0x42aa9a
lea ecx, [esp + 0x20]
call fcn.00460d50
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.0046f8c3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
dec eax
lea edi, [esp + 4]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, esi
push edi
call fcn.00453a90
movzx ecx, byte [edi + 0xb]
mov eax, ecx
test cl, cl
jns 0x42a9ba
mov eax, dword [esp + 8]
mov dword [esp], eax
movzx eax, byte [esi + 0xb]
mov edx, eax
test al, al
jns 0x42a9ca
mov edx, dword [esi + 4]
mov edi, dword [esp]
cmp edi, edx
je 0x42aab5
push dword [ebp + 0xc]
lea eax, [esp + 8]
push eax
call fcn.0042a8f0
add esp, 8
test al, al
je 0x42ab05
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
je 0x42aa0a
lea ecx, [esp + 4]
call fcn.00453a30
jmp 0x42a974
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], eax
cmp eax, 0xb7
jne 0x42aa87
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x60]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea eax, [esp + 0x10]
push 0x1de
push str..._.._base_files_file_util_win.cc
push str.DirectoryExists
push eax
call fcn.00460cb0
add esp, 0x10
mov ecx, edi
push 0
lea eax, [esp + 0x14]
push eax
call fcn.00460cf0
cmp byte [esi + 0xb], 0
jns 0x42aa67
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [esp + 0x60]
call fcn.00460d50
cmp esi, 0xffffffff
je 0x42aa87
and esi, 0x10
jne 0x42a9fc
cmp dword [ebp + 0xc], 0
je 0x42aafc
push dword [esp]
call fcn.00436590
add esp, 4
jmp 0x42aaf7
test edi, edi
je 0x42aaa6
mov eax, edi
mov dword [edi], 0xfffffff7
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x42a974
test edi, edi
je 0x42aae5
lea edi, [esp + 4]
test cl, cl
jns 0x42aac5
mov edi, dword [esp + 4]
mov ecx, esi
test al, al
jns 0x42aacd
mov ecx, dword [esi]
xor edx, edx
movzx eax, word [edi + edx*2]
cmp ax, word [ecx + edx*2]
mov eax, dword [esp]
jne 0x42a9d5
inc edx
cmp eax, edx
jne 0x42aacf
mov eax, 0xfffffffc
mov dword [esp], 2
cmp dword [ebp + 0xc], 0
je 0x42aafc
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x42a9fc
Function at 0x42ac40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x270
mov eax, dword [0x4e8024]
xor eax, ebp
mov dword [esp + 0x268], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x220]
movdqa xmmword [esi + 0x30], xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
lea ebx, [esp + 0x18]
push 0x398
push str..._.._base_files_file_util_win.cc
push 0x4d9a79
push ebx
call fcn.00460cb0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.00460cf0
lea esi, [esp + 0x1a]
push 0x206
push 0xff
push esi
call fcn.00472db0
add esp, 0xc
mov word [esi - 2], 0
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
add esi, 0xfffffefb
cmp esi, 0xfffffefc
jb 0x42ad11
push ebx
call fcn.00488da9
add esp, 4
mov edi, esp
mov ecx, edi
push eax
push ebx
call fcn.00453970
lea ebx, [esp + 0xc]
mov ecx, edi
push ebx
call fcn.004275a0
mov ecx, dword [ebp + 8]
push ebx
call fcn.00453a50
mov ecx, ebx
call fcn.00453a30
mov ecx, edi
call fcn.00453a30
cmp esi, 0xfffffefc
setae bl
lea ecx, [esp + 0x220]
call fcn.00460d50
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.0046f8c3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42ad40
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x508
mov ebx, edx
mov edi, ecx
mov eax, dword [0x4e8024]
xor eax, ebp
mov dword [esp + 0x500], eax
lea esi, [esp + 0x260]
push 0x2a0
push 0xff
push esi
call fcn.00472db0
add esp, 0xc
mov ecx, esi
mov dword [esp], ebx
push ebx
push 3
push 0
push edi
call fcn.00437030
xor eax, eax
dec eax
lea edi, [esp + 4]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, esi
push edi
call fcn.004371f0
movzx eax, byte [edi + 0xb]
test al, al
jns 0x42adae
mov eax, dword [esp + 8]
xor esi, esi
test eax, eax
je 0x42aebb
lea ebx, [esp + 0x10]
xor edi, edi
push 0x250
push 0xff
push ebx
call fcn.00472db0
add esp, 0xc
lea ecx, [esp + 0x260]
push ebx
call fcn.00437170
mov eax, dword [esp + 0x10]
test al, 1
jne 0x42aeee
mov ecx, ebx
call fcn.00437000
test al, al
jne 0x42ae6c
cmp byte [esp + 0xf], 0
lea eax, [esp + 4]
jns 0x42ae04
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42ae68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove esi, eax
test edi, edi
cmovne esi, edi
mov ecx, ebx
call fcn.00410640
lea ecx, [esp + 0x260]
push ebx
call fcn.004371f0
lea ecx, [esp + 4]
push ebx
call fcn.00453a50
mov ecx, ebx
call fcn.00453a30
movzx eax, byte [esp + 0xf]
test al, al
jns 0x42ae5c
mov eax, dword [esp + 8]
mov edi, esi
test eax, eax
jne 0x42adbe
jmp 0x42aebb
xor esi, esi
jmp 0x42ae25
xor esi, esi
cmp byte [ebp + 8], 0
lea ecx, [esp + 4]
je 0x42ae25
mov edx, dword [esp]
push 1
call fcn.0042ad40
add esp, 4
test eax, eax
jne 0x42af3e
cmp byte [esp + 0xf], 0
lea eax, [esp + 4]
js 0x42aee8
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x42ae25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor esi, esi
cmp ecx, 2
cmovne esi, eax
jmp 0x42ae25
lea ecx, [esp + 4]
call fcn.00453a30
lea ecx, [esp + 0x260]
call fcn.00437100
mov ecx, dword [esp + 0x500]
xor ecx, ebp
call fcn.0046f8c3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 4]
jmp 0x42ae98
cmp byte [ebp + 8], 0
je 0x42af04
and eax, 0xfffffffe
cmp byte [esp + 0xf], 0
jns 0x42af27
mov ecx, dword [esp + 4]
jmp 0x42af2b
lea ecx, [esp + 0x10]
call fcn.00437000
test al, al
je 0x42af38
lea ecx, [esp + 0x10]
call fcn.00437000
test al, al
je 0x42adf5
jmp 0x42ae68
lea ecx, [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x42adea
mov eax, dword [esp + 0x10]
jmp 0x42aef4
mov esi, eax
jmp 0x42ae25
Function at 0x42b1f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, edx
mov ebx, ecx
mov eax, dword [0x4e8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x42b227
mov eax, dword [0x4eac68]
cmp eax, 0xffffffff
je 0x42b2b4
mov ebx, 0x100000
test eax, eax
jne 0x42b227
mov ebx, 0x80000
push 0xc
call fcn.0046ecad
add esp, 4
mov esi, eax
mov dword [eax], 0
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x4eec30]
bt ecx, eax
jae 0x42b2a6
push edi
call fcn.0045abf0
add esp, 4
mov dword [esi], edi
mov edi, dword [ebp + 8]
test edi, edi
setne byte [esi + 4]
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
xor eax, eax
push eax
push 0x10000
push esi
push 0x42b5a0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x42b2d8
test edi, edi
je 0x42b336
mov dword [edi], eax
test eax, eax
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046f8c3
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x4f6c30], 1
jmp 0x42b258
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x4eac68
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x42b3a5
mov eax, dword [0x4eac68]
jmp 0x42b219
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x42b2f4
mov edi, eax
cmp eax, 0x5af
je 0x42b2f4
cmp edi, 0xe
jne 0x42b346
push ebx
call fcn.004b72f0
add esp, 4
test esi, esi
mov eax, dword [ebp - 0x20]
je 0x42b28d
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x4eec30]
bt edx, ecx
jae 0x42b325
push eax
call fcn.0045ad00
add esp, 4
push esi
call fcn.0046ecdd
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x42b28d
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x42b28d
mov eax, dword [0x4f8dbc]
mov ecx, dword [0x4ebde8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x42b3b4
lea ebx, [ebp - 0x1c]
push edi
push ebx
call fcn.00436c30
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x42b37e
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push eax
push ebx
push dword [0x4f8db8]
call fcn.004627d0
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x42b2fd
push dword [ebp - 0x1c]
call fcn.0046ecdd
jmp 0x42b2fa
mov dword [0x4eac68], 0
jmp 0x42b222
push 0x4f8dbc
call fcn.0046ed57
add esp, 4
cmp dword [0x4f8dbc], 0xffffffff
jne 0x42b363
push 0x20
push str.create_thread_last_error
call fcn.0043a680
add esp, 8
mov dword [0x4f8db8], eax
push 0x4f8dbc
call fcn.0046edcd
add esp, 4
jmp 0x42b363
Function at 0x42d650
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [ebp + 8]
mov eax, dword [0x4e8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor edi, edi
push edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42d69e
mov ebx, eax
xor eax, eax
dec eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
cmp ebx, 0x7ffffff0
jae 0x42d760
cmp ebx, 4
ja 0x42d6ab
lea edi, [ebp - 0x1c]
mov byte [edi + 0xb], bl
jmp 0x42d6d1
mov dword [esi + 4], edi
mov dword [esi], edi
mov dword [esi + 8], edi
jmp 0x42d74c
lea esi, [ebx + 8]
and esi, 0xfffffff8
lea eax, [esi + esi]
push eax
call fcn.0046ecad
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], eax
or esi, 0x80000000
mov dword [ebp - 0x14], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
mov eax, ebx
add eax, ebx
push eax
push 0
push edi
call fcn.00472db0
add esp, 0xc
mov word [edi + ebx*2], 0
cmp byte [ebp - 0x11], 0
jns 0x42d6f2
mov eax, dword [ebp - 0x1c]
jmp 0x42d6f5
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movzx ecx, byte [ebp - 0x11]
test eax, eax
je 0x42d733
mov edx, ecx
test cl, cl
jns 0x42d712
mov edx, dword [ebp - 0x18]
cmp eax, edx
jae 0x42d733
lea edi, [ebp - 0x1c]
mov ecx, edi
push 0
push eax
call fcn.00452ef0
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
movsd xmm0, qword [edi]
movsd qword [esi], xmm0
jmp 0x42d74c
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], eax
test cl, cl
jns 0x42d74c
push dword [ebp - 0x1c]
call fcn.0046ecdd
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046f8c3
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [ebp - 0x1c]
call fcn.004b4130
int3
Function at 0x42dda0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 8]
mov eax, dword [0x4e8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp + 0xc]
mov dword [ebp - 0x14], edi
call fcn.0044b580
mov ebx, 0x4fa608
push edi
push 0
push esi
push 0x400
push ebx
push dword [eax + 4]
push dword [eax]
call fcn.00473e94
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046f8c3
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4330a0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x4e8024]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
movzx ecx, byte [eax + 0xb]
test cl, cl
jns 0x4330c4
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov ebx, dword [ebp + 0xc]
lea esi, [ebp - 0x1c]
push ecx
push eax
push esi
call fcn.00457180
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x4330de
mov esi, dword [ebp - 0x1c]
lea edi, [ebp - 0x28]
push ebx
push dword [ebp + 8]
push edi
call fcn.00457180
add esp, 0xc
cmp byte [edi + 0xb], 0
jns 0x4330f7
mov edi, dword [ebp - 0x28]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x1d], 0
jns 0x433112
push dword [ebp - 0x28]
call fcn.0046ecdd
add esp, 4
cmp byte [ebp - 0x11], 0
jns 0x433123
push dword [ebp - 0x1c]
call fcn.0046ecdd
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046f8c3
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x4331b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, edx
mov edi, ecx
mov eax, dword [0x4e8024]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
push edx
push ecx
push esi
call fcn.00457180
add esp, 0xc
cmp byte [esi + 0xb], 0
jns 0x4331de
mov esi, dword [ebp - 0x1c]
xor eax, eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x11], 0
jns 0x4331fc
push dword [ebp - 0x1c]
call fcn.0046ecdd
add esp, 4
cmp dword [ebp + 8], 0
je 0x433294
test esi, esi
je 0x433294
xor eax, eax
dec eax
mov ecx, esi
add ecx, esi
cmovb ecx, eax
push ecx
call fcn.0046ed13
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, ebx
lea ebx, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.00457180
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x43323e
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x433258
push dword [ebp - 0x1c]
call fcn.0046ecdd
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x4332ad
push edi
call fcn.00488da9
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.004574c0
add esp, 0xc
cmp byte [ebx + 0xb], 0
js 0x4332b0
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebx], xmm0
push edi
call fcn.0046ed1c
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046f8c3
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
int3
push dword [ebx]
call fcn.0046ecdd
add esp, 4
jmp 0x43327c
Function at 0x4364a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x4e8024]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x88
push str..._.._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.00460cb0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.00460cf0
cmp dword [ebp + 0xc], 0
js 0x436567
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.004654b0
test al, al
jne 0x43656c
lea ebx, [esp + 0xc]
mov dword [ebx], 0xffffffff
push 0
push ebx
push dword [ebp + 0xc]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [ebx]
lea ecx, [esp + 0x10]
call fcn.00465550
lea ecx, [esp + 0x20]
call fcn.00460d50
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0046f8c3
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor esi, esi
dec esi
jmp 0x436547
lea ecx, [esp + 0x10]
push 0
push dword [ebp + 0xc]
push esi
push str.File::WriteAtCurrentPos
call fcn.004c28a0
jmp 0x43651c
Function at 0x4366d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov dword [esp + 8], ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x4e8024]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x30], xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x160
push str..._.._base_files_file_win.cc
push str.DoInitialize
push esi
call fcn.00460cb0
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.00460cf0
mov eax, ebx
and eax, 1
neg eax
and eax, 3
xor ecx, ecx
inc ecx
test bl, 2
cmove ecx, eax
test bl, 4
mov edx, 4
cmovne ecx, edx
test bl, 8
mov esi, 2
cmove esi, ecx
test bl, 0x10
mov eax, 5
cmove eax, esi
mov dword [esp + 4], eax
test eax, eax
je 0x4368eb
mov ecx, ebx
and ecx, 0x40
shl ecx, 0x18
test bl, 0x80
cmove edx, ecx
mov ecx, ebx
rol ecx, 0x1a
mov esi, ebx
shl esi, 0xb
and esi, 0x20000000
mov edi, ebx
shr edi, 4
and edi, 0x10000
and ecx, 0x80000100
or ecx, esi
or ecx, edi
or ecx, edx
mov esi, ebx
shr esi, 8
and esi, 3
mov edx, ebx
shr edx, 0xd
and edx, 4
or edx, esi
mov esi, ebx
and esi, 0x400
mov eax, ebx
mov dword [esp + 0xc], esi
mov ebx, esi
shl ebx, 0x14
mov esi, eax
shr esi, 3
and esi, 0x100
or esi, ebx
mov edi, eax
shr edi, 0xb
and edi, 2
or edi, esi
mov esi, eax
shl esi, 0xd
and esi, 0x4000000
or esi, edi
shl eax, 8
mov ebx, eax
and ebx, 0x2000000
or ebx, esi
and eax, 0x8000000
or eax, ebx
mov esi, dword [ebp + 8]
xor edx, 3
cmp byte [esi + 0xb], 0
jns 0x43680f
mov esi, dword [esi]
xor ebx, ebx
push ebx
push eax
push dword [esp + 0xc]
push ebx
push edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, dword [esp + 8]
cmp dword [esi], eax
je 0x436883
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
mov ebx, dword [ebp + 0xc]
jae 0x4368c9
mov ecx, edi
inc ecx
cmp ecx, 2
jb 0x436853
mov dword [esi], edi
mov edi, eax
call fcn.00460ce0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esi]
inc edi
cmp edi, 2
jb 0x436888
mov eax, dword [esp + 0xc]
shr eax, 0xa
mov dword [esi + 0x14], 0
mov byte [esi + 0x19], al
test bl, 4
jne 0x4368b8
test bl, 0xa
je 0x43689a
mov byte [esi + 0x18], 1
jmp 0x43689a
mov ebx, dword [ebp + 0xc]
jmp 0x43685c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00436590
add esp, 4
mov dword [esi + 0x14], eax
lea ecx, [esp + 0x20]
call fcn.00460d50
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.0046f8c3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [esi + 0x18]
jmp 0x43689a
mov dword [esp + 4], eax
call fcn.00460ce0
push dword [esi]
call fcn.004611a0
mov eax, dword [esp + 8]
add esp, 4
mov dword [esi], 0
jmp 0x436840
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
mov dword [eax + 0x14], 0xffffffff
jmp 0x43689a
Function at 0x436ac0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00460e80
mov dword [esi], 0
test eax, eax
je 0x436b07
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x436b39
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x436b00
mov dword [esi], ebx
mov ebx, eax
call fcn.00460ce0
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 4]
lea eax, [edi + 4]
push eax
call fcn.00453900
lea ecx, [esi + 0x10]
call fcn.004654e0
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov al, byte [edi + 0x18]
mov byte [esi + 0x18], al
mov al, byte [edi + 0x19]
mov byte [esi + 0x19], al
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.00460ce0
push dword [esi]
call fcn.004611a0
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
jmp 0x436aed
Function at 0x439780
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [0x4e8024]
xor eax, ebp
mov dword [esp + 0x78], eax
test ecx, ecx
je 0x439872
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x60], xmm0
mov word [esp + 0x50], 0x301
mov dword [esp + 0x54], ecx
mov eax, dword [eax]
mov dword [esp + 0x60], eax
sar eax, 0x1f
mov dword [esp + 0x64], eax
xor eax, eax
dec eax
lea ecx, [esp + 0x48]
mov dword [ecx + 4], eax
mov dword [ecx], eax
mov dword [esp], ecx
call fcn.004606c0
mov eax, dword [0x4fb160]
mov ecx, dword [0x4ebde8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4398ee
mov dword [esp], 0x4d70a1
call fcn.00461230
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
xor ebx, ebx
mov dword [esp + 0x40], ebx
mov dword [esp], edi
lea edi, [esp + 0x50]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
pxor xmm0, xmm0
movdqu xmmword [esp + 0x28], xmm0
movaps xmm0, xmmword [0x4d51f0]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x1c], 0x4d
mov ecx, esi
call fcn.004414c0
sub esp, 0x44
cmp byte [edi], 0
jne 0x4398d6
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.0046f8c3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp + ebx*8 + 0x60]
test esi, esi
je 0x4398e2
lea ecx, [esi + 0x5c]
call fcn.0044e470
lea ecx, [esi + 0x28]
call fcn.0044b460
mov ecx, esi
call fcn.0044e5f0
mov dword [esp], esi
call fcn.0046ecdd
jmp 0x4398e2
mov esi, dword [esp + ebx*8 + 0x60]
test esi, esi
je 0x4398e2
mov eax, dword [esi]
mov edi, dword [eax]
mov ecx, edi
call dword [section..00cfg]
mov dword [esp], 1
mov ecx, esi
call edi
sub esp, 4
mov al, byte [esp + ebx + 0x51]
jmp 0x4398de
mov al, byte [esp + ebx + 0x51]
cmp al, 8
je 0x4398ae
cmp al, 9
je 0x439885
inc ebx
movzx eax, byte [esp + 0x50]
cmp ebx, eax
jae 0x439872
jmp 0x4398d6
mov dword [esp], 0x4fb160
call fcn.0046ed57
cmp dword [0x4fb160], 0xffffffff
jne 0x43980c
mov dword [esp], 0
mov ecx, 0x4faf60
call fcn.00437f50
sub esp, 4
mov dword [esp], 0x4fb160
call fcn.0046edcd
jmp 0x43980c