joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c100
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov edx, dword [0x4b9170]
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
lea ebx, [esp + 0x18]
xor edx, ebp
mov dword [esp + 0x28], edx
push 3
push ecx
push eax
push ebx
call fcn.0043bd10
add esp, 0x10
cmp dword [esp + 0x1c], 0
je 0x42c30d
mov esi, dword [esp + 0x18]
mov dword [esp + 0x24], 0
push 0x800
push 0
push str.api_ms_win_downlevel_shell32_l1_1_0.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [esp + 0xc], eax
je 0x42c17e
push 0x4a1dca
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42c18e
mov ecx, eax
lea eax, [esp + 0x24]
push eax
push esi
call ecx
jmp 0x42c18a
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
jmp 0x42c190
xor esi, esi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
test eax, eax
je 0x42c2a1
cmp eax, 0x15555556
mov dword [esp + 4], esi
mov dword [esp + 8], edi
jae 0x42c32e
mov ebx, eax
shl ebx, 2
lea edi, [ebx + ebx*2]
push edi
call fcn.00477160
add esp, 4
mov dword [esp + 0x1c], eax
mov esi, eax
mov dword [esp + 0x18], eax
add eax, edi
mov edi, ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 4]
jmp 0x42c227
test ebx, ebx
mov eax, esi
mov byte [esi + 0xb], bl
je 0x42c212
mov ecx, ebx
mov dword [esp], eax
add ecx, ebx
push ecx
push dword [esp + 0x14]
push eax
call fcn.0047a880
mov eax, dword [esp + 0xc]
add esp, 0xc
mov word [eax + ebx*2], 0
mov eax, dword [esp + 0x14]
add esi, 0xc
add eax, 4
add edi, 0xfffffffc
je 0x42c291
mov dword [esp + 0x14], eax
mov eax, dword [eax]
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esp + 0x10], eax
push eax
call fcn.0048cbc1
add esp, 4
cmp eax, 0x7ffffff0
jae 0x42c322
mov ebx, eax
cmp eax, 5
jb 0x42c1f0
mov dword [esp], edi
lea edi, [ebx + 8]
and edi, 0xfffffff8
js 0x42c329
lea eax, [edi + edi]
push eax
call fcn.00477160
add esp, 4
or edi, 0x80000000
mov dword [esi], eax
mov dword [esi + 8], edi
mov edi, dword [esp]
mov dword [esi + 4], ebx
jmp 0x42c1f9
mov dword [esp + 0x1c], esi
mov edi, dword [esp + 8]
mov esi, dword [esp + 4]
lea ebx, [esp + 0x18]
mov ecx, edi
push ebx
call fcn.0042bf40
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x42c2bf
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x42c30d
mov eax, dword [esp + 0x1c]
cmp eax, esi
jne 0x42c2e6
mov eax, esi
jmp 0x42c300
cmp esi, edi
mov eax, edi
je 0x42c2fc
cmp byte [eax - 1], 0
lea edi, [eax - 0xc]
jns 0x42c2e0
push dword [eax - 0xc]
call fcn.00477190
add esp, 4
jmp 0x42c2e0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
push eax
call fcn.00477190
add esp, 4
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.004771d1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ecx, esi
call fcn.00425ec0
call fcn.00488233
lea ecx, [esp + 0x18]
call fcn.0042772c
int3
Function at 0x42e270
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x42e2d7
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
mov edi, eax
inc ecx
cmp ecx, 2
jb 0x42e2b3
call fcn.0043d590
push eax
push dword [ebp + 4]
push esi
push dword [esi]
call fcn.0043d5f0
add esp, 0x10
push dword [esi]
call fcn.0043d5a0
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x42e2d0
mov dword [esi], ebx
call fcn.0043d590
push eax
push dword [ebp + 4]
push esi
push ebx
call fcn.0043d5c0
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x4300f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x4b9170]
mov edi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.0042c340
mov esi, eax
mov ecx, eax
push 0x4a301e
call fcn.0042c6d0
test al, al
jne 0x430131
mov ecx, esi
push str.vmodule
call fcn.0042c6d0
test al, al
je 0x430201
cmp dword [0x4bb550], 0
je 0x430163
lea edi, [ebp - 0x1c]
push str._g_vlog_info_prev
push 0x1ac
push str..._.._base_logging.cc
push edi
call fcn.0043bab0
add esp, 0x10
mov ecx, edi
call fcn.0043bb20
mov ecx, edi
call fcn.0043bb30
mov eax, dword [0x4bb554]
mov dword [0x4bb550], eax
push 0x10
call fcn.00477160
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], str.vmodule
push str.vmodule
call fcn.0048c610
add esp, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
lea edx, [ebp - 0x1c]
mov ecx, esi
push eax
push edx
call fcn.0042c740
mov dword [ebp - 0x38], 0x4a301e
push 0x4a301e
call fcn.0048c610
add esp, 4
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
lea ebx, [ebp - 0x30]
mov ecx, esi
push eax
push ebx
call fcn.0042c740
mov ecx, edi
push 0x4bb558
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.0043f170
cmp byte [ebp - 0x25], 0
mov dword [0x4bb554], edi
jns 0x4301ed
push dword [ebp - 0x30]
call fcn.00477190
add esp, 4
cmp byte [ebp - 0x11], 0
mov edi, dword [ebp + 8]
jns 0x430201
push dword [ebp - 0x1c]
call fcn.00477190
add esp, 4
mov eax, dword [edi]
mov bl, 1
test al, 1
mov dword [0x4b9150], eax
je 0x430297
mov eax, dword [0x4bb56c]
test eax, eax
je 0x43023f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4bb55c]
mov dword [0x4bb56c], 0
test ecx, ecx
jne 0x43026e
and byte [0x4b9150], 0xfe
jmp 0x430249
mov ecx, dword [0x4bb55c]
test ecx, ecx
jne 0x43026e
push 0xc
call fcn.00477160
add esp, 4
mov ecx, eax
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [0x4bb55c], eax
push dword [edi + 4]
call fcn.00426f98
cmp dword [edi + 0xc], 0
jne 0x430290
mov eax, dword [0x4bb55c]
cmp byte [eax + 0xb], 0
jns 0x430289
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004302b0
mov ebx, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004771d1
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4302b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x4b9170]
mov bl, 1
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x4bb56c], 0
jne 0x4304d8
mov esi, dword [0x4bb55c]
test esi, esi
je 0x4302f1
test byte [0x4b9150], 1
jne 0x4303e9
jmp 0x4304d8
push 0xc
call fcn.00477160
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.0047b380
add esp, 0xc
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.0048cbc1
add esp, 4
cmp eax, 0x7ffffff0
jae 0x4304ef
mov ebx, eax
cmp eax, 5
jae 0x43035e
mov eax, esi
test ebx, ebx
mov byte [esi + 0xb], bl
jne 0x43038a
jmp 0x43039d
lea edi, [ebx + 8]
and edi, 0xfffffff8
js 0x4304f6
lea eax, [edi + edi]
push eax
call fcn.00477160
add esp, 4
or edi, 0x80000000
mov dword [esi], eax
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.0047a880
mov eax, edi
add esp, 0xc
mov word [eax + ebx*2], 0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x4303ae
mov eax, dword [esi + 4]
mov ecx, esi
push eax
push 0x5c
call fcn.0042718c
cmp eax, 0xffffffff
mov bl, 1
je 0x4303ca
inc eax
mov ecx, esi
push 0xffffffffffffffff
push eax
call fcn.004270ae
mov ecx, esi
push str.debug.log
call fcn.00426e14
mov dword [0x4bb55c], esi
test byte [0x4b9150], 1
je 0x4304d8
cmp byte [esi + 0xb], 0
jns 0x4303f1
mov esi, dword [esi]
push 0
push 0x80
push 4
push 0
push 3
push 4
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4bb56c], eax
inc eax
cmp eax, 1
ja 0x4304d8
lea eax, [ebp - 0x216]
push 0x206
push 0xff
push eax
call fcn.0047b380
add esp, 0xc
lea esi, [ebp - 0x218]
mov word [ebp - 0x218], 0
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4304d6
cmp eax, 0x104
ja 0x4304d6
mov ecx, dword [0x4bb55c]
push esi
call fcn.00426f98
mov ecx, dword [0x4bb55c]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x430477
mov edx, ecx
jmp 0x43047c
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
cmp word [edx + eax*2 - 2], 0x5c
je 0x430494
push 0x4a1eda
call fcn.00426e14
mov ecx, dword [0x4bb55c]
push str.debug.log
call fcn.00426e14
mov eax, dword [0x4bb55c]
cmp byte [eax + 0xb], 0
jns 0x4304ab
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4bb56c], eax
inc eax
cmp eax, 1
ja 0x4304d8
mov dword [0x4bb56c], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004771d1
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.00425ec0
call fcn.00488233
int3
Function at 0x432390
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
movzx edx, byte [ebp + 0xc]
pop ebp
jmp fcn.004323a0
Function at 0x432790
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x4b9170]
lea esi, [ebp - 0x21a]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x20a
push 0xff
push esi
call fcn.0047b380
add esp, 0xc
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
xor ebx, ebx
cmp eax, 0x102
ja 0x432834
cmp word [ebp - 0x21a], 0
je 0x4327fe
xor ebx, ebx
nop word cs:[eax + eax]
nop dword [eax + eax]
cmp word [ebp + ebx*2 - 0x218], 0
lea ebx, [ebx + 1]
jne 0x4327f0
lea edi, [ebp - 0x234]
mov ecx, edi
push ebx
push esi
call fcn.0042e340
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.0042fae0
mov ecx, dword [ebp + 8]
push ebx
call fcn.0042e440
mov ecx, ebx
call fcn.0042e400
mov ecx, edi
call fcn.0042e400
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004771d1
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x432d20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov eax, dword [0x4b9170]
mov esi, dword [ebp + 8]
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
xor eax, ebp
mov dword [esp + 0x5c], eax
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
push 0x37d
push str..._.._base_files_file_util_win.cc
push 0x4a209c
push edi
call fcn.0043d560
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push edi
call fcn.0043ee10
cmp byte [esi + 0xb], 0
jns 0x432d8f
mov esi, dword [esi]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea esi, [esp + 0x10]
mov dword [esp + 0x10], 0
mov ecx, esi
push eax
call fcn.0042e270
mov eax, dword [esp + 0x10]
mov edi, 0xffffffff
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x432e04
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0xc], 0xffffffff
lea edx, [esp + 0xc]
push 0
push edx
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0xc], edi
mov ecx, 0xffffffff
cmove ecx, edi
xor edi, edi
cmp eax, 1
mov eax, dword [esp + 0x10]
sbb edi, edi
or edi, ecx
inc eax
cmp eax, 2
jb 0x432e34
call fcn.0043d590
push eax
push dword [ebp + 4]
push esi
push dword [esp + 0x1c]
call fcn.0043d5f0
add esp, 0x10
push dword [esp + 0x10]
call fcn.0043d5a0
add esp, 4
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x20]
call fcn.0043ef20
mov ecx, dword [esp + 0x5c]
xor ecx, ebp
call fcn.004771d1
mov eax, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x432e60
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, dword [0x4b9170]
mov edi, edx
mov esi, ecx
lea ebx, [ebp - 0x2a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x294
push 0xff
push ebx
call fcn.0047b380
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0x504], edi
push edi
push 3
push 0
push esi
call fcn.0043e110
lea eax, [ebp - 0x500]
mov dword [ebp - 0x500], 0xffffffff
mov dword [ebp - 0x4fc], 0xffffffff
mov dword [ebp - 0x4f8], 0xffffffff
mov ecx, ebx
push eax
call fcn.0043e370
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x432ee3
mov eax, dword [ebp - 0x4fc]
test eax, eax
je 0x43305d
lea ebx, [ebp - 0x4f4]
xor edi, edi
jmp 0x432f0a
test eax, eax
mov edi, esi
je 0x43305f
push 0x250
push 0xff
push ebx
call fcn.0047b380
add esp, 0xc
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.0043e2f0
mov eax, dword [ebp - 0x4f4]
test al, 1
je 0x432f80
cmp byte [ebp + 8], 0
jne 0x432f60
mov ecx, ebx
call fcn.0043e080
test al, al
je 0x432f5a
mov ecx, ebx
call fcn.0043e080
xor esi, esi
test al, al
je 0x432fe0
jmp 0x433018
mov eax, dword [ebp - 0x4f4]
and eax, 0xfffffffe
cmp byte [ebp - 0x4f5], 0
lea ecx, [ebp - 0x500]
jns 0x432f78
mov ecx, dword [ebp - 0x500]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, ebx
call fcn.0043e080
test al, al
je 0x432fe0
xor esi, esi
cmp byte [ebp + 8], 0
je 0x433018
mov edx, dword [ebp - 0x504]
lea ecx, [ebp - 0x500]
push 1
call fcn.00432e60
add esp, 4
mov esi, eax
test eax, eax
jne 0x433018
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x432fc8
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov esi, 0
jne 0x433018
jmp 0x433002
cmp byte [ebp - 0x4f5], 0
lea eax, [ebp - 0x500]
jns 0x432ff5
mov eax, dword [ebp - 0x500]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
jne 0x433018
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
and eax, 0xfffffffe
mov ecx, 0
cmp eax, 2
cmove esi, ecx
test edi, edi
mov ecx, ebx
cmovne esi, edi
call fcn.0040d920
lea ecx, [ebp - 0x2a4]
push ebx
call fcn.0043e370
lea ecx, [ebp - 0x500]
push ebx
call fcn.0042e440
mov ecx, ebx
call fcn.0042e400
movzx eax, byte [ebp - 0x4f5]
test al, al
jns 0x432f00
mov eax, dword [ebp - 0x4fc]
jmp 0x432f00
xor esi, esi
lea ecx, [ebp - 0x500]
call fcn.0042e400
lea ecx, [ebp - 0x2a4]
call fcn.0043e280
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004771d1
mov eax, esi
add esp, 0x4f8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4331c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov eax, dword [0x4b9170]
mov edi, dword [ebp + 0x14]
mov esi, ecx
lea ebx, [esp + 0x10]
pcmpeqd xmm0, xmm0
xor eax, ebp
mov dword [esp + 0x68], eax
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
push 0x73
push str..._.._base_files_file_win.cc
push str.Write
push ebx
call fcn.0043d560
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push ebx
call fcn.0043ee10
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x2c], 0xffffffff
call fcn.0043b2f0
call fcn.0043d480
test al, al
je 0x43325f
mov eax, edi
lea ecx, [esp + 0x28]
sar eax, 0x1f
push eax
push edi
push esi
push str.File::Write
call fcn.0043d500
mov eax, dword [ebp + 8]
pxor xmm0, xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], 0xffffffff
movdqa xmmword [esp + 0x10], xmm0
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
lea ecx, [esp + 0x28]
sbb esi, esi
or esi, dword [esp + 0xc]
call fcn.0043d4e0
lea ecx, [esp + 0x30]
call fcn.0043ef20
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004771d1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10

Function at 0x4332d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov eax, dword [0x4b9170]
mov esi, ecx
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
xor eax, ebp
mov dword [esp + 0x5c], eax
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
push 0x9c
push str..._.._base_files_file_win.cc
push str.GetLength
push edi
call fcn.0043d560
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push edi
call fcn.0043ee10
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
call fcn.0043b2f0
call fcn.0043d480
test al, al
je 0x43336b
lea ecx, [esp + 0x10]
push 0
push 0
push esi
push str.File::GetLength
call fcn.0043d500
lea eax, [esp + 8]
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0xffffffff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, dword [esp + 0xc]
xor esi, esi
cmp eax, 1
lea ecx, [esp + 0x10]
sbb esi, esi
or edi, esi
or esi, dword [esp + 8]
call fcn.0043d4e0
lea ecx, [esp + 0x20]
call fcn.0043ef20
mov ecx, dword [esp + 0x5c]
xor ecx, ebp
call fcn.004771d1
mov eax, esi
mov edx, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x4333d0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov eax, dword [0x4b9170]
mov ebx, dword [ebp + 8]
mov esi, ecx
lea edi, [esp + 0x20]
pcmpeqd xmm0, xmm0
xor eax, ebp
mov dword [esp + 0x68], eax
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
push 0xa9
push str..._.._base_files_file_win.cc
push str.SetLength
push edi
call fcn.0043d560
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push edi
mov edi, dword [ebp + 0xc]
call fcn.0043ee10
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x24], 0xffffffff
call fcn.0043b2f0
call fcn.0043d480
test al, al
je 0x433470
lea ecx, [esp + 0x20]
push edi
push ebx
push esi
push str.File::SetLength
call fcn.0043d500
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x24]
lea ecx, [esp + 0x2c]
movsd qword [esp + 4], xmm0
mov dword [esp + 0xc], ecx
mov dword [esp], eax
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x433544
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edi
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x433544
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x433544
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov eax, dword [esi]
sub esp, 0x14
movsd xmm0, qword [esp + 0x14]
movsd qword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
jmp 0x433546
xor ebx, ebx
lea ecx, [esp + 0x20]
call fcn.0043d4e0
lea ecx, [esp + 0x30]
call fcn.0043ef20
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.004771d1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x433810
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042e270
Function at 0x433850
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov eax, dword [0x4b9170]
mov esi, ecx
pcmpeqd xmm0, xmm0
mov edi, esp
xor eax, ebp
mov dword [esp + 0x48], eax
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
push 0x1a
push str..._.._base_files_memory_mapped_file_win.cc
push str.MapImageToMemory
push edi
call fcn.0043d560
add esp, 0x10
lea ecx, [esp + 0x10]
push 0
push edi
call fcn.0043ee10
mov ecx, esi
call fcn.00433090
test al, al
je 0x4338ee
mov ecx, esi
lea edi, [esi + 0x24]
call fcn.00427f10
push 0
push 0
push 0
push 0x11000002
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, edi
push eax
call fcn.0042e270
mov eax, dword [esi + 0x24]
lea ecx, [eax + 1]
cmp ecx, 2
jae 0x433910
xor ebx, ebx
lea ecx, [esp + 0x10]
call fcn.0043ef20
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004771d1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x1c], eax
je 0x4338ee
mov ecx, esp
mov dword [esp], 0x4a23f8
mov dword [esp + 4], eax
call fcn.00447a7c
mov eax, dword [eax + 0x50]
mov bl, 1
mov dword [esi + 0x20], eax
jmp 0x4338f0

Function at 0x433db2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
xor eax, eax
mov ecx, 8
mov edx, eax
mov esi, edx
and edx, 1
neg edx
shr esi, 1
and edx, 0xedb88320
xor edx, esi
dec ecx
jne 0x433dbf
mov dword [eax*4 + 0x4bb5c0], edx
inc eax
cmp eax, 0x100
jne 0x433db8
mov eax, 0xffffe400
mov ecx, dword [eax + 0x4bd1c0]
movzx edx, cl
shr ecx, 8
xor ecx, dword [edx*4 + 0x4bb5c0]
mov dword [eax + 0x4bd5c0], ecx
add eax, 4
jne 0x433de7
mov eax, 0x448180
mov dword [0x4bd5c4], 0x448230
mov dword [0x4bd5c0], eax
mov dword [0x4bb5bc], eax
call fcn.00448423
test eax, eax
jne 0x433e31
mov dword [0x4bb5bc], 0x448230
pop esi
pop ebp
ret
Function at 0x437cca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edx, dword [ebp + 0xc]
cmp edx, 0x40
jb 0x437d1e
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0x4d
jne 0x437d1e
cmp byte [ecx + 1], 0x5a
jne 0x437d1e
mov esi, dword [ecx + 0x3c]
mov edi, edx
xor eax, eax
sub edi, esi
cmp edi, 0x18
jb 0x437d20
cmp esi, edx
jae 0x437d20
cmp esi, 0x40
jb 0x437d20
mov edi, esi
and edi, 7
jne 0x437d20
cmp byte [ecx + esi], 0x50
jne 0x437d1e
cmp byte [ecx + esi + 1], 0x45
jne 0x437d1e
cmp byte [ecx + esi + 2], 0
jne 0x437d1e
cmp byte [ecx + esi + 3], 0
je 0x437d24
xor eax, eax
pop esi
pop edi
pop ebp
ret
add esi, 0x18
xor eax, eax
sub edx, esi
jbe 0x437d20
cmp edx, 2
jb 0x437d20
movzx eax, word [ebp + 0x10]
cmp word [ecx + esi], ax
sete al
jmp 0x437d20