joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43df90
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov ebx, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x596ff8]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, word [ecx + 0x14]
mov dword [ebp - 0x234], eax
movzx eax, word [ecx + 0x16]
mov dword [ebp - 0x230], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call esi
mov word [ebp - 0x224], ax
movzx eax, word [ebx + 0x16]
mov dword [ebp - 0x22c], eax
movzx eax, word [ebx + 0x14]
mov dword [ebp - 0x228], eax
call esi
mov esi, edi
mov word [ebp - 0x222], ax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.00516da0
add esp, 0xc
push esi
push dword [ebp - 0x230]
push dword [ebp - 0x234]
push str.StringFileInfo_04x_04x_ls
push 0x104
push 0x104
push edi
call fcn.0043e220
add esp, 0x1c
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0xffffffff
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x21c]
push eax
push ecx
push edi
push dword [ebx + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43e072
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x43e072
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x43e1e9
push 0x208
push 0xff
push edi
call fcn.00516da0
add esp, 0xc
movzx eax, word [ebp - 0x224]
push esi
push dword [ebp - 0x22c]
push eax
push str.StringFileInfo_04x_04x_ls
push 0x104
push 0x104
push edi
call fcn.0043e220
add esp, 0x1c
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0xffffffff
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [ebx + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43e0f3
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x43e0f3
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x43e1e9
push 0x208
push 0xff
push edi
call fcn.00516da0
add esp, 0xc
push esi
push 0x4e4
push dword [ebp - 0x228]
push str.StringFileInfo_04x_04x_ls
push 0x104
push 0x104
push edi
call fcn.0043e220
add esp, 0x1c
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0xffffffff
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [ebx + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43e16d
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x43e16d
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x43e1e9
push 0x208
push 0xff
push edi
call fcn.00516da0
add esp, 0xc
movzx eax, word [ebp - 0x222]
push esi
push 0x4e4
push eax
push str.StringFileInfo_04x_04x_ls
push 0x104
push 0x104
push edi
call fcn.0043e220
add esp, 0x1c
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0xffffffff
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [ebx + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43e211
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x43e211
mov edx, dword [ebp - 0x220]
test edx, edx
je 0x43e211
mov ecx, dword [ebp + 0xc]
add edx, 0xffffffff
push edx
push eax
call fcn.004216da
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00512931
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor ebx, ebx
jmp 0x43e1f8
Function at 0x43e440
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.0043e450
Function at 0x43e890
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x460
mov ebx, dword [ebp + 8]
mov eax, dword [0x596ff8]
xor eax, ebp
mov dword [esp + 0x458], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
lea esi, [esp + 0x250]
push 0x19b
push str..._.._base_files_file_util_win.cc
push 0x544067
push esi
call fcn.0042a970
add esp, 0x10
lea ecx, [esp + 0x10]
push 0
push esi
call fcn.004391c0
push 0x208
push 0xff
push esi
call fcn.00516da0
add esp, 0xc
lea edi, [ebx + 2]
test byte [ebx], 1
mov eax, edi
je 0x43e921
mov eax, dword [ebx + 8]
push 0x104
push eax
push esi
call fcn.00437b00
add esp, 0xc
push esi
call fcn.00402910
add esp, 4
lea ebx, [esp + 0x48]
push 0x208
push 0xff
push ebx
call fcn.00516da0
add esp, 0xc
mov ecx, dword [ebp + 0xc]
lea esi, [ecx + 2]
test byte [ecx], 1
mov eax, esi
je 0x43e960
mov eax, dword [ecx + 8]
push 0x104
push eax
push ebx
call fcn.00437b00
add esp, 0xc
push ebx
call fcn.00402910
add esp, 4
mov ecx, dword [ebp + 8]
test byte [ecx], 1
mov eax, edi
je 0x43e985
mov eax, dword [ecx + 8]
mov edx, dword [ebp + 0xc]
test byte [edx], 1
mov ecx, esi
je 0x43e992
mov ecx, dword [edx + 8]
sub esp, 0x18
movaps xmm0, xmmword [0x53fce0]
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 0x43ea07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043fce0
add esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
test byte [eax], 1
je 0x43e9d2
mov esi, dword [eax + 8]
mov eax, dword [ebp + 8]
test byte [eax], 1
je 0x43e9dd
mov edi, dword [eax + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x43ea07
test eax, eax
jne 0x43ea07
mov eax, dword [esp + 0xc]
cmp eax, 0xfffffffc
jne 0x43ea03
call fcn.0043fcc0
mov dword [esi], eax
xor ebx, ebx
lea ecx, [esp + 0x10]
call fcn.00439230
mov ecx, dword [esp + 0x458]
xor ecx, ebp
call fcn.00512931
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43ea30
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, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x596ff8]
xor eax, ebp
mov dword [esp + 0x48], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
mov ebx, esp
push 0x1ce
push str..._.._base_files_file_util_win.cc
push str.PathExists
push ebx
call fcn.0042a970
add esp, 0x10
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push ebx
call fcn.004391c0
test byte [edi], 1
je 0x43eaa2
mov edi, dword [edi + 8]
jmp 0x43eaa5
add edi, 2
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov ecx, esi
call fcn.00439230
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.00512931
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x43ead0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x596ff8]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21a]
push 0x20a
push 0xff
push edi
call fcn.00516da0
add esp, 0xc
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
add esi, 0xffffffff
cmp esi, 0x102
ja 0x43eb78
cmp word [ebp - 0x21a], 0
je 0x43eb42
xor ecx, ecx
nop word cs:[eax + eax]
nop
lea eax, [ecx + 1]
cmp word [ebp + ecx*2 - 0x218], 0
mov ecx, eax
jne 0x43eb30
jmp 0x43eb44
xor eax, eax
lea ebx, [ebp - 0x234]
mov ecx, ebx
push eax
push edi
call fcn.00428140
lea edi, [ebp - 0x228]
mov ecx, ebx
push edi
call fcn.00429810
mov ecx, dword [ebp + 8]
push edi
call fcn.00428240
mov ecx, edi
call fcn.00428200
mov ecx, ebx
call fcn.00428200
cmp esi, 0x103
setb bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00512931
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x43eba0
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 [0x596ff8]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x214]
push 0x208
push 0xff
push edi
call fcn.00516da0
sub esp, 8
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x544010]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x43ec19
cmp word [ebp - 0x214], 0
je 0x43ec19
xor eax, eax
nop
cmp word [ebp + eax*2 - 0x212], 0
lea eax, [eax + 1]
jne 0x43ec00
mov ecx, esi
push eax
push edi
call fcn.00428140
jmp 0x43ec72
mov dword [ebp - 0x220], 0xffffffff
mov dword [ebp - 0x21c], 0xffffffff
mov dword [ebp - 0x218], 0xffffffff
lea edi, [ebp - 0x220]
mov ecx, edi
call fcn.004280e0
push edi
call fcn.0043ead0
add esp, 4
mov ecx, esi
test al, al
je 0x43ec5b
push edi
call fcn.00428110
jmp 0x43ec67
push 3
push 0x544080
call fcn.00428140
lea ecx, [ebp - 0x220]
call fcn.00428200
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00512931
mov eax, esi
add esp, 0x218
pop esi
pop edi
pop ebp
ret
Function at 0x43efa0
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 [0x596ff8]
xor eax, ebp
mov dword [esp + 0x268], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
lea edi, [esp + 0x60]
push 0x3aa
push str..._.._base_files_file_util_win.cc
push 0x5440b2
push edi
call fcn.0042a970
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push edi
call fcn.004391c0
lea eax, [esp + 0x62]
push 0x206
push 0xff
push eax
call fcn.00516da0
add esp, 0xc
mov word [esp + 0x60], 0
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
add esi, 0xffffffff
cmp esi, 0x103
ja 0x43f091
cmp word [esp + 0x60], 0
je 0x43f05f
xor ecx, ecx
nop dword [eax]
lea eax, [ecx + 1]
cmp word [esp + ecx*2 + 0x62], 0
mov ecx, eax
jne 0x43f050
jmp 0x43f061
xor eax, eax
lea ebx, [esp + 8]
mov ecx, ebx
push eax
push edi
call fcn.00428140
lea edi, [esp + 0x14]
mov ecx, ebx
push edi
call fcn.00429810
mov ecx, dword [ebp + 8]
push edi
call fcn.00428240
mov ecx, edi
call fcn.00428200
mov ecx, ebx
call fcn.00428200
cmp esi, 0x104
setb bl
lea ecx, [esp + 0x20]
call fcn.00439230
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.00512931
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x43f0c0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x596ff8]
xor eax, ebp
mov dword [esp + 0x48], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
mov ebx, esp
push 0x3ba
push str..._.._base_files_file_util_win.cc
push 0x5440c7
push ebx
call fcn.0042a970
add esp, 0x10
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push ebx
call fcn.004391c0
test byte [edi], 1
je 0x43f132
mov edi, dword [edi + 8]
jmp 0x43f135
add edi, 2
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov ecx, esi
call fcn.00439230
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.00512931
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43f2f0
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 ebx, edx
mov esi, ecx
mov eax, dword [0x596ff8]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x2a4]
push 0x294
push 0xff
push edi
call fcn.00516da0
add esp, 0xc
mov ecx, edi
mov dword [ebp - 0x504], ebx
push ebx
push 3
push 0
push esi
call fcn.00442bc0
mov dword [ebp - 0x500], 0xffffffff
mov dword [ebp - 0x4fc], 0xffffffff
mov dword [ebp - 0x4f8], 0xffffffff
lea eax, [ebp - 0x500]
mov ecx, edi
push eax
call fcn.00442e00
movzx eax, byte [ebp - 0x500]
test al, 1
je 0x43f4e9
mov eax, dword [ebp - 0x4fc]
test eax, eax
je 0x43f4f3
lea edi, [ebp - 0x4f4]
xor ebx, ebx
jmp 0x43f3a0
mov eax, dword [ebp - 0x4fc]
mov ebx, esi
test eax, eax
je 0x43f4f5
push 0x250
push 0xff
push edi
call fcn.00516da0
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push edi
call fcn.00442d80
mov eax, dword [ebp - 0x4f4]
test al, 1
je 0x43f416
cmp byte [ebp + 8], 0
jne 0x43f3f6
mov ecx, edi
call fcn.00442b30
test al, al
je 0x43f3f0
mov ecx, edi
call fcn.00442b30
xor esi, esi
test al, al
je 0x43f470
jmp 0x43f4a8
mov eax, dword [ebp - 0x4f4]
and eax, 0xfffffffe
test byte [ebp - 0x500], 1
lea ecx, [ebp - 0x4fe]
je 0x43f40e
mov ecx, dword [ebp - 0x4f8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, edi
call fcn.00442b30
test al, al
je 0x43f470
xor esi, esi
cmp byte [ebp + 8], 0
je 0x43f4a8
lea ecx, [ebp - 0x500]
mov edx, dword [ebp - 0x504]
push 1
call fcn.0043f2f0
add esp, 4
mov esi, eax
test eax, eax
jne 0x43f4a8
test byte [ebp - 0x500], 1
lea eax, [ebp - 0x4fe]
je 0x43f45e
mov eax, dword [ebp - 0x4f8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, 0
test eax, eax
jne 0x43f4a8
jmp 0x43f492
test byte [ebp - 0x500], 1
lea eax, [ebp - 0x4fe]
je 0x43f485
mov eax, dword [ebp - 0x4f8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
jne 0x43f4a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove esi, eax
test ebx, ebx
cmovne esi, ebx
mov ecx, edi
call fcn.00402910
lea ecx, [ebp - 0x2a4]
push edi
call fcn.00442e00
lea ecx, [ebp - 0x500]
push edi
call fcn.00428240
mov ecx, edi
call fcn.00428200
movzx eax, byte [ebp - 0x500]
test al, 1
jne 0x43f390
shr eax, 1
jmp 0x43f396
shr eax, 1
test eax, eax
jne 0x43f37f
xor esi, esi
lea ecx, [ebp - 0x500]
call fcn.00428200
lea ecx, [ebp - 0x2a4]
call fcn.00442d10
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00512931
mov eax, esi
add esp, 0x4f8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43f770
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 [0x596ff8]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x60], 0xffffffff
lea ebx, [esp + 0x10]
push 0x3e
push str..._.._base_files_file_win.cc
push str.Read
push ebx
call fcn.0042a970
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push ebx
call fcn.004391c0
test edi, edi
js 0x43f853
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00440f00
call fcn.004575b0
test al, al
je 0x43f80f
lea ecx, [esp + 0x28]
push 0
push edi
push esi
push str.File::Read
call fcn.00457630
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0xffffffff
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 0x43f85a
mov ebx, dword [esp + 0xc]
jmp 0x43f86a
mov ebx, 0xffffffff
jmp 0x43f873
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 0x28]
call fcn.00457610
lea ecx, [esp + 0x30]
call fcn.00439230
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00512931
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x43f8a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [0x596ff8]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
lea ebx, [esp + 0x10]
push 0x57
push str..._.._base_files_file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.0042a970
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push ebx
call fcn.004391c0
test edi, edi
js 0x43f965
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00440f00
call fcn.004575b0
test al, al
je 0x43f942
lea ecx, [esp + 0x10]
push 0
push edi
push esi
push str.File::ReadAtCurrentPos
call fcn.00457630
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
push 0
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43f96c
mov ebx, dword [esp + 0xc]
jmp 0x43f97c
mov ebx, 0xffffffff
jmp 0x43f985
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 0x10]
call fcn.00457610
lea ecx, [esp + 0x20]
call fcn.00439230
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00512931
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x43f9b0
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 [0x596ff8]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x60], 0xffffffff
lea ebx, [esp + 0x10]
push 0x73
push str..._.._base_files_file_win.cc
push str.Write
push ebx
call fcn.0042a970
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push ebx
call fcn.004391c0
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00440f00
call fcn.004575b0
test al, al
je 0x43fa4f
mov eax, edi
sar eax, 0x1f
lea ecx, [esp + 0x28]
push eax
push edi
push esi
push str.File::Write
call fcn.00457630
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0xffffffff
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.00457610
lea ecx, [esp + 0x30]
call fcn.00439230
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00512931
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x43fac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [0x596ff8]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
lea ebx, [esp + 0x10]
push 0x88
push str..._.._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.0042a970
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push ebx
call fcn.004391c0
test edi, edi
js 0x43fb94
mov ebx, dword [ebp + 8]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00440f00
call fcn.004575b0
test al, al
je 0x43fb65
lea ecx, [esp + 0x10]
push 0
push edi
push esi
push str.File::WriteAtCurrentPos
call fcn.00457630
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
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 + 0xc]
lea ecx, [esp + 0x10]
call fcn.00457610
jmp 0x43fb99
mov esi, 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00439230
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00512931
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x43fbc0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov eax, dword [0x596ff8]
xor eax, ebp
mov dword [esp + 0x5c], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
lea edi, [esp + 0x10]
push 0x9c
push str..._.._base_files_file_win.cc
push str.GetLength
push edi
call fcn.0042a970
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push edi
call fcn.004391c0
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00440f00
call fcn.004575b0
test al, al
je 0x43fc5b
lea ecx, [esp + 0x10]
push 0
push 0
push esi
push str.File::GetLength
call fcn.00457630
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0xffffffff
lea eax, [esp + 8]
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 + 0xc]
or edi, esi
or esi, dword [esp + 8]
lea ecx, [esp + 0x10]
call fcn.00457610
lea ecx, [esp + 0x20]
call fcn.00439230
mov ecx, dword [esp + 0x5c]
xor ecx, ebp
call fcn.00512931
mov eax, esi
mov edx, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x43fd90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x596ff8]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
mov dword [esp + 0x54], 0xffffffff
mov dword [esp + 0x50], 0xffffffff
lea esi, [esp + 0x10]
push 0x15a
push str..._.._base_files_file_win.cc
push str.DoInitialize
push esi
call fcn.0042a970
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push esi
call fcn.004391c0
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 0x43fee4
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
test byte [esi], 1
je 0x43fef5
mov esi, dword [esi + 8]
jmp 0x43fef8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [edi + 0x14], 0xffffffff
jmp 0x43ff70
add esi, 2
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
cmp dword [ebx], eax
je 0x43ff56
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebx]
add eax, 1
cmp eax, 2
jb 0x43ff3c
call fcn.0042a9a0
push dword [ebx]
call fcn.00441df0
add esp, 4
mov dword [ebx], 0
mov eax, edi
add eax, 1
cmp eax, 2
jb 0x43ff4d
mov dword [ebx], edi
call fcn.0042a9a0
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebx]
add edi, 1
cmp edi, 2
jae 0x43ff8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043fce0
add esp, 4
mov dword [ebx + 0x14], eax
lea ecx, [esp + 0x20]
call fcn.00439230
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.00512931
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
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 0x43ffb0
test al, 0xa
je 0x43ff70
mov byte [ebx + 0x18], 1
jmp 0x43ff70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [ebx + 0x18]
jmp 0x43ff70