joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420770
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov edi, ecx
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 8], edx
mov dword [esp + 0x1c], edx
movzx ecx, byte [0x5819cc]
xor ecx, 3
xor eax, eax
mov dword [esp + 0x10], ecx
mov ebx, dword [eax*8 + 0x52e0b8]
mov dword [esp + 0x14], eax
mov eax, dword [eax*8 + 0x52e0b4]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov byte [esp + 0x2b], bl
lea ecx, [ebx + ebx]
push ecx
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00501dd0
add esp, 0xc
mov word [esp + ebx*2 + 0x20], 0
movzx eax, byte [esp + 0x2b]
test al, al
mov ecx, dword [esp + 0x24]
mov edx, eax
mov dword [esp + 0xc], ecx
cmovs edx, ecx
cmp edx, dword [esp + 8]
jbe 0x420810
test al, al
js 0x420850
mov ecx, dword [esp + 0x10]
jmp 0x420866
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
test edx, edx
je 0x42087a
test al, al
lea esi, [esp + 0x20]
cmovs esi, dword [esp + 4]
xor ebx, ebx
nop dword [eax]
movzx ecx, word [edi + ebx*2]
cmp cx, word [esi + ebx*2]
jne 0x420806
add ebx, 1
cmp edx, ebx
jne 0x420830
jmp 0x42087a
push dword [esp + 0x20]
call fcn.004fe838
add esp, 4
movzx ecx, byte [0x5819cc]
xor ecx, 3
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, ecx
jb 0x4207a1
jmp 0x420906
test al, al
js 0x420888
mov ecx, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
jmp 0x42089e
push dword [esp + 4]
call fcn.004fe838
add esp, 4
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
xor ebx, ebx
test ecx, ecx
je 0x42090c
cmp ecx, dword [esp + 8]
je 0x42090c
lea eax, [esp + 0x18]
push 0
push 0x52e168
push eax
mov ebx, ecx
call fcn.0042b530
mov edx, ebx
add esp, 0xc
sub eax, ebx
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
cmovb edx, ecx
sub ecx, edx
cmp ecx, eax
cmovae ecx, eax
cmp ecx, esi
jne 0x420906
test esi, esi
je 0x42090a
add edx, edx
add edx, dword [esp + 0x18]
xor eax, eax
nop word cs:[eax + eax]
nop
movzx ecx, word [edx + eax*2]
cmp cx, word [edi + eax*2]
sete bl
jne 0x42090c
add eax, 1
cmp esi, eax
jne 0x4208f0
jmp 0x42090c
xor ebx, ebx
jmp 0x42090c
mov bl, 1
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4224a0
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.00433510
mov dword [esi], 0
test eax, eax
je 0x422504
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
add ecx, 1
cmp ecx, 2
jb 0x4224ea
mov dword [ebp - 0x10], eax
call fcn.00424a50
push dword [esi]
call fcn.00435200
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x4224fd
mov dword [esi], ebx
mov ebx, eax
call fcn.00424a50
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 4]
lea eax, [edi + 4]
push eax
call fcn.004225f0
lea ecx, [esi + 0x10]
call fcn.00448510
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
Function at 0x424a60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x5819e8], 0
jne 0x424c8a
mov esi, dword [0x5819d8]
test esi, esi
je 0x424aa1
test byte [0x57f150], 1
jne 0x424b88
jmp 0x424c8a
push 0xc
call fcn.004fe808
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0
push edi
call fcn.00516c94
add esp, 4
cmp eax, 0x7ffffff0
jae 0x424ca1
mov ebx, eax
cmp eax, 5
jae 0x424afb
mov byte [esi + 0xb], bl
mov eax, esi
test ebx, ebx
jne 0x424b27
jmp 0x424b3a
lea edi, [ebx + 8]
and edi, 0xfffffff8
js 0x424ca8
lea eax, [edi + edi]
push eax
call fcn.004fe808
add esp, 4
mov dword [esi], eax
or edi, 0x80000000
mov dword [esi + 8], edi
mov dword [esi + 4], ebx
lea edi, [ebp - 0x218]
mov ecx, ebx
add ecx, ebx
push ecx
push edi
push eax
mov edi, eax
call fcn.00501dd0
mov eax, edi
add esp, 0xc
mov word [eax + ebx*2], 0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x424b4b
mov eax, dword [esi + 4]
mov ecx, esi
push eax
push 0x5c
call fcn.0041d6de
cmp eax, 0xffffffff
mov bl, 1
je 0x424b69
add eax, 1
mov ecx, esi
push 0xffffffffffffffff
push eax
call fcn.0041d3c4
mov ecx, esi
push 0x52e2f0
call fcn.0041d102
mov dword [0x5819d8], esi
test byte [0x57f150], 1
je 0x424c8a
cmp byte [esi + 0xb], 0
jns 0x424b90
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x52e260]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x5819e8], eax
add eax, 1
cmp eax, 1
ja 0x424c8a
mov word [ebp - 0x218], 0
lea esi, [ebp - 0x218]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x424c88
cmp eax, 0x104
ja 0x424c88
mov ecx, dword [0x5819d8]
push esi
call fcn.0041d286
mov ecx, dword [0x5819d8]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x424c15
mov edx, ecx
jmp 0x424c1a
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
cmp word [edx + eax*2 - 2], 0x5c
je 0x424c32
push 0x52e2ec
call fcn.0041d102
mov ecx, dword [0x5819d8]
push 0x52e2f0
call fcn.0041d102
mov eax, dword [0x5819d8]
cmp byte [eax + 0xb], 0
jns 0x424c49
mov eax, dword [eax]
movaps xmm0, xmmword [0x52e260]
sub esp, 0x1c
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x5819e8], eax
add eax, 1
cmp eax, 1
ja 0x424c8a
mov dword [0x5819e8], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.0041c034
call fcn.00510edd
int3
Function at 0x432740
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
pop ebp
jmp fcn.00432750
Function at 0x432ab0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x458
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [esp + 0x450], eax
lea ebx, [esp + 0x248]
push 0x196
push str..._.._base_files_file_util_win.cc
push 0x52e927
push ebx
call fcn.00424a20
add esp, 0x10
lea ecx, [esp + 8]
push 0
push ebx
call fcn.0042ec60
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x432b08
mov eax, dword [esi]
push 0x104
push eax
push ebx
call fcn.0042d540
add esp, 0xc
push ebx
call fcn.004027e0
add esp, 4
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x432b2a
mov eax, dword [edi]
lea ebx, [esp + 0x40]
push 0x104
push eax
push ebx
call fcn.0042d540
add esp, 0xc
push ebx
call fcn.004027e0
add esp, 4
cmp byte [esi + 0xb], 0
mov eax, esi
jns 0x432b50
mov eax, dword [esi]
cmp byte [edi + 0xb], 0
mov ecx, edi
jns 0x432b5a
mov ecx, dword [edi]
sub esp, 0x18
movaps xmm0, xmmword [0x52ab20]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov bl, 1
test eax, eax
jne 0x432bc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00433ae0
add esp, 4
cmp byte [edi + 0xb], 0
jns 0x432b93
mov edi, dword [edi]
cmp byte [esi + 0xb], 0
mov dword [esp + 4], eax
jns 0x432b9f
mov esi, dword [esi]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x432bc9
test eax, eax
jne 0x432bc9
mov eax, dword [esp + 4]
cmp eax, 0xfffffffc
jne 0x432bc5
call fcn.00433ac0
mov dword [esi], eax
xor ebx, ebx
lea ecx, [esp + 8]
call fcn.0042ed80
mov ecx, dword [esp + 0x450]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x432bf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [esp + 0x48], eax
mov ebx, esp
push 0x1c9
push str..._.._base_files_file_util_win.cc
push str.PathExists
push ebx
call fcn.00424a20
add esp, 0x10
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push ebx
call fcn.0042ec60
cmp byte [edi + 0xb], 0
jns 0x432c3a
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov ecx, esi
call fcn.0042ed80
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x432c70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21a]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
add esi, 0xffffffff
cmp esi, 0x102
ja 0x432d08
cmp word [ebp - 0x21a], 0
je 0x432cd2
xor ecx, ecx
nop word cs:[eax + eax]
nop dword [eax + eax]
lea eax, [ecx + 1]
cmp word [ebp + ecx*2 - 0x218], 0
mov ecx, eax
jne 0x432cc0
jmp 0x432cd4
xor eax, eax
lea ebx, [ebp - 0x234]
mov ecx, ebx
push eax
push edi
call fcn.00422630
lea edi, [ebp - 0x228]
mov ecx, ebx
push edi
call fcn.00423af0
mov ecx, dword [ebp + 8]
push edi
call fcn.00422730
mov ecx, edi
call fcn.004226f0
mov ecx, ebx
call fcn.004226f0
cmp esi, 0x103
setb bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x432d30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x218
mov esi, dword [ebp + 8]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [ebp - 0xc], eax
sub esp, 0x14
lea edi, [ebp - 0x214]
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x52e8d0]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x432d99
cmp word [ebp - 0x214], 0
je 0x432d99
xor eax, eax
nop
cmp word [ebp + eax*2 - 0x212], 0
lea eax, [eax + 1]
jne 0x432d80
mov ecx, esi
push eax
push edi
call fcn.00422630
jmp 0x432dd4
lea edi, [ebp - 0x220]
mov ecx, edi
call fcn.004225d0
push edi
call fcn.00432c70
add esp, 4
mov ecx, esi
test al, al
je 0x432dbd
push edi
call fcn.00422600
jmp 0x432dc9
push 3
push 0x52e940
call fcn.00422630
lea ecx, [ebp - 0x220]
call fcn.004226f0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004fe871
mov eax, esi
add esp, 0x218
pop esi
pop edi
pop ebp
ret

Function at 0x433040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x260
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [esp + 0x258], eax
lea edi, [esp + 0x50]
push 0x38c
push str..._.._base_files_file_util_win.cc
push 0x52e972
push edi
call fcn.00424a20
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push edi
call fcn.0042ec60
mov word [esp + 0x50], 0
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
add esi, 0xffffffff
cmp esi, 0x103
ja 0x4330ef
cmp word [esp + 0x50], 0
je 0x4330bf
xor ecx, ecx
nop
lea eax, [ecx + 1]
cmp word [esp + ecx*2 + 0x52], 0
mov ecx, eax
jne 0x4330b0
jmp 0x4330c1
xor eax, eax
mov ebx, esp
mov ecx, ebx
push eax
push edi
call fcn.00422630
lea edi, [esp + 0xc]
mov ecx, ebx
push edi
call fcn.00423af0
mov ecx, dword [ebp + 8]
push edi
call fcn.00422730
mov ecx, edi
call fcn.004226f0
mov ecx, ebx
call fcn.004226f0
cmp esi, 0x104
setb bl
lea ecx, [esp + 0x18]
call fcn.0042ed80
mov ecx, dword [esp + 0x258]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x433120
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [esp + 0x48], eax
mov ebx, esp
push 0x39c
push str..._.._base_files_file_util_win.cc
push 0x52e987
push ebx
call fcn.00424a20
add esp, 0x10
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push ebx
call fcn.0042ec60
cmp byte [edi + 0xb], 0
jns 0x43316a
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov ecx, esi
call fcn.0042ed80
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x433300
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4f8
mov eax, ecx
mov ecx, dword [0x57ffac]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
lea esi, [ebp - 0x2a4]
mov ecx, esi
mov dword [ebp - 0x504], edx
push edx
push 3
push 0
push eax
call fcn.004358c0
lea eax, [ebp - 0x500]
mov ecx, esi
push eax
call fcn.00435b10
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x433351
mov eax, dword [ebp - 0x4fc]
test eax, eax
je 0x4334bd
lea ebx, [ebp - 0x4f4]
xor edi, edi
jmp 0x43337a
mov edi, esi
test eax, eax
je 0x4334bf
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.00435a90
mov eax, dword [ebp - 0x4f4]
test al, 1
je 0x4333dd
cmp byte [ebp + 8], 0
jne 0x4333bd
mov ecx, ebx
call fcn.00435830
test al, al
je 0x4333b7
mov ecx, ebx
call fcn.00435830
xor esi, esi
test al, al
je 0x433440
jmp 0x433478
mov eax, dword [ebp - 0x4f4]
and eax, 0xfffffffe
cmp byte [ebp - 0x4f5], 0
lea ecx, [ebp - 0x500]
jns 0x4333d5
mov ecx, dword [ebp - 0x500]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, ebx
call fcn.00435830
test al, al
je 0x433440
xor esi, esi
cmp byte [ebp + 8], 0
je 0x433478
lea ecx, [ebp - 0x500]
mov edx, dword [ebp - 0x504]
push 1
call fcn.00433300
add esp, 4
mov esi, eax
test eax, eax
jne 0x433478
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x433425
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, 0
test eax, eax
jne 0x433478
jmp 0x433462
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x433455
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
jne 0x433478
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.004027e0
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.00435b10
lea ecx, [ebp - 0x500]
push ebx
call fcn.00422730
mov ecx, ebx
call fcn.004226f0
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x433370
mov eax, dword [ebp - 0x4fc]
jmp 0x433370
xor esi, esi
lea ecx, [ebp - 0x500]
call fcn.004226f0
lea ecx, [ebp - 0x2a4]
call fcn.00435a20
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe871
mov eax, esi
add esp, 0x4f8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4336c0
Capabilities:
Read 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 edi, dword [ebp + 0x14]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [esp + 0x68], eax
lea ebx, [esp + 0x10]
push 0x3e
push str..._.._base_files_file_win.cc
push str.Read
push ebx
call fcn.00424a20
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push ebx
call fcn.0042ec60
test edi, edi
js 0x433763
lea ecx, [esp + 0x28]
call fcn.00434400
call fcn.004484f0
test al, al
je 0x433729
lea ecx, [esp + 0x28]
push 0
push edi
push esi
push str.File::Read
call fcn.00448570
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc]
push ebx
push eax
push edi
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43376a
mov ebx, dword [esp + 0xc]
jmp 0x43377a
mov ebx, 0xffffffff
jmp 0x433783
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 0x28]
call fcn.00448550
lea ecx, [esp + 0x30]
call fcn.0042ed80
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x4337b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [esp + 0x50], eax
lea ebx, [esp + 8]
push 0x57
push str..._.._base_files_file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.00424a20
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push ebx
call fcn.0042ec60
test edi, edi
js 0x433837
mov ebx, dword [ebp + 8]
lea ecx, [esp + 8]
call fcn.00434400
call fcn.004484f0
test al, al
je 0x43381c
lea ecx, [esp + 8]
push 0
push edi
push esi
push str.File::ReadAtCurrentPos
call fcn.00448570
lea eax, [esp + 4]
push 0
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43383e
mov ebx, dword [esp + 4]
jmp 0x43384e
mov ebx, 0xffffffff
jmp 0x433857
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 8]
call fcn.00448550
lea ecx, [esp + 0x18]
call fcn.0042ed80
mov ecx, dword [esp + 0x50]
xor ecx, ebp
call fcn.004fe871
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x433880
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 edi, dword [ebp + 0x14]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [esp + 0x68], eax
lea ebx, [esp + 0x10]
push 0x73
push str..._.._base_files_file_win.cc
push str.Write
push ebx
call fcn.00424a20
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push ebx
call fcn.0042ec60
lea ecx, [esp + 0x28]
call fcn.00434400
call fcn.004484f0
test al, al
je 0x4338e9
mov eax, edi
sar eax, 0x1f
lea ecx, [esp + 0x28]
push eax
push edi
push esi
push str.File::Write
call fcn.00448570
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc]
push ebx
push eax
push edi
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [esp + 0xc]
lea ecx, [esp + 0x28]
call fcn.00448550
lea ecx, [esp + 0x30]
call fcn.0042ed80
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004fe871
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x433950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [esp + 0x50], eax
lea ebx, [esp + 8]
push 0x88
push str..._.._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.00424a20
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push ebx
call fcn.0042ec60
test edi, edi
js 0x4339e6
mov ebx, dword [ebp + 8]
lea ecx, [esp + 8]
call fcn.00434400
call fcn.004484f0
test al, al
je 0x4339bf
lea ecx, [esp + 8]
push 0
push edi
push esi
push str.File::WriteAtCurrentPos
call fcn.00448570
lea eax, [esp + 4]
push 0
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [esp + 4]
lea ecx, [esp + 8]
call fcn.00448550
jmp 0x4339eb
mov esi, 0xffffffff
lea ecx, [esp + 0x18]
call fcn.0042ed80
mov ecx, dword [esp + 0x50]
xor ecx, ebp
call fcn.004fe871
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x433a10
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, ecx
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [esp + 0x54], eax
lea edi, [esp + 8]
push 0x9c
push str..._.._base_files_file_win.cc
push str.GetLength
push edi
call fcn.00424a20
add esp, 0x10
lea ecx, [esp + 0x18]
push 0
push edi
call fcn.0042ec60
lea ecx, [esp + 8]
call fcn.00434400
call fcn.004484f0
test al, al
je 0x433a75
lea ecx, [esp + 8]
push 0
push 0
push esi
push str.File::GetLength
call fcn.00448570
mov eax, esp
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb esi, esi
mov edi, dword [esp + 4]
or edi, esi
or esi, dword [esp]
lea ecx, [esp + 8]
call fcn.00448550
lea ecx, [esp + 0x18]
call fcn.0042ed80
mov ecx, dword [esp + 0x54]
xor ecx, ebp
call fcn.004fe871
mov eax, esi
mov edx, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x433b90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x57ffac]
xor eax, ebp
mov dword [esp + 0x58], eax
lea esi, [esp + 0x10]
push 0x15a
push str..._.._base_files_file_win.cc
push str.DoInitialize
push esi
call fcn.00424a20
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push esi
call fcn.0042ec60
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov ecx, 1
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
test eax, eax
je 0x433d36
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov ecx, ebx
and ecx, 0x40
shl ecx, 0x18
test bl, bl
cmovns 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
mov edi, eax
shl edi, 8
mov ebx, edi
and ebx, 0x2000000
or ebx, esi
and edi, 0x8000000
or edi, ebx
mov esi, dword [ebp + 8]
xor edx, 3
cmp byte [esi + 0xb], 0
jns 0x433cbc
mov esi, dword [esi]
mov ebx, dword [esp + 8]
mov eax, dword [esp + 4]
push 0
push edi
push eax
push 0
push edx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, dword [ebx]
cmp eax, edi
je 0x433d1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebx]
add eax, 1
cmp eax, 2
jb 0x433d02
call fcn.00424a50
push dword [ebx]
call fcn.00435200
add esp, 4
mov dword [ebx], 0
lea eax, [edi + 1]
cmp eax, 2
jb 0x433d11
mov dword [ebx], edi
call fcn.00424a50
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx]
add eax, 1
cmp eax, 2
jae 0x433d47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00433ae0
add esp, 4
mov dword [ebx + 0x14], eax
jmp 0x433d78
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [edi + 0x14], 0xffffffff
jmp 0x433d78
mov eax, dword [esp + 0xc]
shr eax, 0xa
mov dword [ebx + 0x14], 0
mov byte [ebx + 0x19], al
mov eax, dword [ebp + 0xc]
test al, 4
jne 0x433d69
test al, 0xa
je 0x433d78
mov byte [ebx + 0x18], 1
jmp 0x433d78
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [ebx + 0x18]
lea ecx, [esp + 0x20]
call fcn.0042ed80
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.004fe871
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8