joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431400
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [esp + 0x18], eax
mov edi, dword [ecx + 0x38]
test edi, edi
jne 0x4314c5
mov esi, ecx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0x9ffffff
lea edx, [esp + 0xc]
cmp edx, str.discarded
ja 0x431457
lea eax, [esp + 0x15]
cmp eax, str.discarded
ja 0x4314dc
mov dword [esp + 0x10], 0x65647261
mov dword [esp + 0xc], 0x63736964
mov word [esp + 0x14], 0x64
mov edi, esp
mov ecx, esi
push edx
push edi
call fcn.00431370
push 0x48
call fcn.00532780
add esp, 4
mov ebx, eax
mov ecx, eax
push edi
push dword [esi + 0x28]
lea eax, [esp + 0x14]
push eax
call fcn.00431f20
mov edi, dword [esi + 0x38]
mov dword [esi + 0x38], ebx
test edi, edi
je 0x4314af
mov ecx, edi
call fcn.00432010
push edi
call fcn.005327b0
add esp, 4
cmp byte [esp + 0x17], 0
jns 0x4314c2
push dword [esp + 0xc]
call fcn.005327b0
add esp, 4
mov edi, dword [esi + 0x38]
mov ecx, dword [esp + 0x18]
xor ecx, ebp
call fcn.005327f1
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
push str.char_traits::copy_overlapped_range
push str.__s2_____s1____s2_____s1__n
push 0xf1
push str.P:chromiumM115xpout_release...._buildtools_third_partylibc_trunkinclude__stringchar_traits.h
push str._s:_d:_assertion__s_failed:__s
call fcn.00404fa4
int3
Function at 0x432740
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x128
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x134], 0xffffffff
mov esi, 2
xor eax, eax
lock cmpxchg dword [0x5aa754], esi
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x4327d2
mov edi, dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x4327b4
mov dword [ebp - 0x134], 0xffffffff
xor eax, eax
lock cmpxchg dword [0x5aa754], esi
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x4327d2
mov eax, dword [ebp - 0x134]
cmp eax, 1
je 0x4328b4
mov eax, dword [ebp - 0x134]
cmp eax, 2
je 0x432790
call edi
jmp 0x432790
lea eax, [ebp - 0x128]
push 0x118
push 0
push eax
call fcn.00536680
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x130], 0
mov esi, dword [ebp - 0x128]
mov ebx, dword [ebp - 0x124]
cmp dword [0x5aa764], 0
je 0x432845
mov ecx, dword [0x5aa760]
test ecx, ecx
je 0x432871
call dword [section..00cfg]
lea eax, [ebp - 0x130]
push eax
push 0
push 0
push ebx
push esi
call ecx
mov ebx, dword [ebp - 0x130]
jmp 0x432880
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetProductInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x5aa760], eax
mov dword [0x5aa764], 1
test ecx, ecx
jne 0x432828
mov dword [ebp - 0x130], 0xffffffff
mov ebx, 0xffffffff
push 0x54
call fcn.00532780
add esp, 4
mov esi, eax
cmp byte [0x5aa78c], 0
je 0x4328ce
mov ecx, esi
push ebx
push 0x5aa768
push edi
call fcn.00432a10
mov dword [0x5aa750], esi
mov eax, 1
xchg dword [0x5aa754], eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, 0x5aa750
add esp, 0x128
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [0x5aa78c], 1
xorps xmm0, xmm0
movups xmmword [0x5aa768], xmm0
movups xmmword [0x5aa778], xmm0
mov dword [0x5aa788], 0
push 0x5aa768
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
jmp 0x432895

Function at 0x432910
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x5aa78c], 0
je 0x43294b
movzx eax, word [0x5aa768]
cmp eax, 0xc
ja case.0x432928.1
jmp dword [eax*4 + 0x567410]
mov eax, 2
pop ebp
ret
mov eax, 4
pop ebp
ret
mov eax, 1
pop ebp
ret
mov eax, 3
pop ebp
ret
mov byte [0x5aa78c], 1
xorps xmm0, xmm0
movups xmmword [0x5aa768], xmm0
movups xmmword [0x5aa778], xmm0
mov dword [0x5aa788], 0
push 0x5aa768
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
jmp 0x43291c
Function at 0x433200
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 8]
mov edx, dword [0x5a8564]
xor edx, ebp
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x14]
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x10]
push edx
push esi
push edi
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x433269
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x433269
cmp dword [ebp - 0x14], 4
jne 0x433269
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005327f1
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret 8

Function at 0x433280
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.00532af0
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x810]
push 0x800
push 0xff
push ebx
call fcn.00536680
add esp, 0xc
mov dword [ebp - 0x1014], 1
mov dword [ebp - 0x1018], 0x800
lea eax, [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
push eax
push ebx
push ecx
push 0
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x433357
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 2
je 0x43330a
mov edi, 0x3f4
cmp eax, 1
jne 0x433357
mov ecx, esi
push ebx
jmp 0x433350
lea edi, [ebp - 0x1010]
push 0x800
push 0xff
push edi
call fcn.00536680
add esp, 0xc
push 0x400
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x433357
mov ecx, esi
lea eax, [ebp - 0x1010]
push eax
call fcn.004296bc
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, edi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x433370
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.0054c5c4
add esp, 4
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x433ea0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [esp + 0x40], eax
movsd xmm1, qword [0x5aa7b8]
xorpd xmm0, xmm0
ucomisd xmm1, xmm0
jne 0x433fef
jp 0x433fef
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0xc], eax
call esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x5aa7c8]
test al, 1
je 0x434014
test al, 2
je 0x434036
rdtsc
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
lea ebx, [esp + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub esi, dword [0x5aa7d0]
sbb edi, dword [0x5aa7d4]
movd xmm0, edi
movd xmm1, esi
punpckldq xmm1, xmm0
movq qword [esp + 0x28], xmm1
fild qword [esp + 0x28]
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
fild qword [esp + 0x38]
fstp qword [esp + 0x30]
divsd xmm0, qword [esp + 0x30]
pxor xmm1, xmm1
movsd xmm2, qword [0x5677e8]
ucomisd xmm2, xmm0
ja 0x433fef
mov eax, dword [esp + 8]
sub eax, dword [0x5aa7c0]
mov ecx, dword [esp + 4]
sbb ecx, dword [0x5aa7c4]
movd xmm1, ecx
movd xmm2, eax
punpckldq xmm2, xmm1
punpckldq xmm2, xmmword [0x560c60]
subpd xmm2, xmmword [0x560c70]
movapd xmm1, xmm2
unpckhpd xmm1, xmm2
addsd xmm1, xmm2
divsd xmm1, xmm0
movsd qword [0x5aa7b8], xmm1
movsd qword [esp + 0x18], xmm1
fld qword [esp + 0x18]
fstp xword [esp + 0xc]
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.005327f1
fld xword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
or eax, 1
mov dword [0x5aa7c8], eax
rdtsc
mov dword [0x5aa7c0], eax
mov dword [0x5aa7c4], edx
mov eax, dword [0x5aa7c8]
test al, 2
jne 0x433f06
or eax, 2
mov dword [0x5aa7c8], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [0x5aa7d4], ecx
mov dword [0x5aa7d0], eax
jmp 0x433f06
Function at 0x434590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov edi, edx
mov ebx, ecx
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x4345ea
mov eax, dword [0x5a7474]
cmp eax, 0xffffffff
jne 0x4345d0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x5a7474
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x4345db
mov eax, dword [0x5a7474]
mov ebx, 0x100000
test eax, eax
jne 0x4345ea
jmp 0x4345e5
mov dword [0x5a7474], 0
mov ebx, 0x80000
push 0x10
call fcn.00532780
add esp, 4
mov esi, eax
mov dword [eax], 0
test byte [0x5aca20], 1
je 0x43460f
push 0
call fcn.004050a4
add esp, 4
mov edx, dword [ebp + 0x10]
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x5aca20]
bt ecx, eax
mov ecx, dword [ebp + 8]
jae 0x43463c
push edi
call fcn.00404fac
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add esp, 4
jmp 0x434648
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x5b4a20], 1
mov dword [esi], edi
test ecx, ecx
setne byte [esi + 4]
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
push 0
push 0x10000
push esi
push 0x434b90
push ebx
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x43467d
test edi, edi
je 0x4346d9
mov dword [edi], eax
jmp 0x4346e4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x434696
cmp eax, 0x5af
je 0x434696
cmp eax, 0xe
jne 0x4346fd
push ebx
call fcn.00460b80
add esp, 4
test esi, esi
mov eax, edi
je 0x4346e4
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x5aca20]
bt edx, ecx
jae 0x4346c6
push eax
call fcn.004050a4
add esp, 4
mov dword [esi], 0
push esi
call fcn.005327b0
add esp, 4
mov eax, edi
jmp 0x4346e4
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
test eax, eax
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [0x5aa80c], 0
je 0x434748
lea ebx, [ebp - 0x1c]
push eax
push ebx
call fcn.00445a60
add esp, 8
movzx eax, byte [ebp - 0x11]
test al, al
jns 0x434721
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push eax
push ebx
push dword [0x5aa808]
call fcn.0043d680
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x43469f
push dword [ebp - 0x1c]
call fcn.005327b0
jmp 0x43469c
mov byte [0x5aa80c], 1
push 0x20
push str.create_thread_last_error
mov ebx, eax
call fcn.0043d640
add esp, 8
mov dword [0x5aa808], eax
mov eax, ebx
jmp 0x434706
Function at 0x436860
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x18
mov edi, edx
mov esi, ecx
movzx eax, byte [ebp + 8]
mov ecx, dword [0x5a8564]
xor ecx, ebp
mov dword [ebp - 0xc], ecx
test al, al
jne 0x43688a
movzx eax, byte [0x5aa818]
test al, 1
jne 0x4368cc
test edi, edi
je 0x4368db
push edi
push esi
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x4368db
lea edi, [ebp - 0x20]
push 0x48
push 0x5679b8
push str.RandBytes
push edi
call fcn.00451690
add esp, 0x10
lea esi, [ebp - 0x10]
push edi
push str.success
push esi
call fcn.00458b50
add esp, 0xc
mov ecx, esi
call fcn.00458cb0
jmp 0x4368db
call fcn.0046be00
push edi
push esi
call fcn.0046dbb0
add esp, 8
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005327f1
add esp, 0x18
pop esi
pop edi
pop ebp
ret

Function at 0x4368f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], 0
test ebx, ebx
je 0x43694d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jb 0x436937
call fcn.004516c0
push dword [esi]
call fcn.00433080
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x436946
mov dword [esi], ebx
call fcn.004516c0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x436974
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, esi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea ebx, [ebp - 0x24]
push 0x40af00
push ebx
call fcn.00458760
add esp, 8
mov edi, eax
lea eax, [ebp + 8]
push 0x40af00
push eax
call fcn.00458760
add esp, 8
push edi
push eax
push str.handle___::GetCurrentProcess__
call fcn.00458910
add esp, 0xc
test eax, eax
je 0x43695e
mov edi, eax
push 0x2a
push str....._baseprocessprocess_win.cc
push str.Process
push ebx
call fcn.00451690
add esp, 0x10
mov eax, ebx
lea ebx, [ebp - 0x14]
push eax
push edi
push ebx
call fcn.00458bc0
add esp, 0xc
mov ecx, ebx
call fcn.00458cb0
jmp 0x43695e
Function at 0x4369e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov dword [eax], 0
lea ebx, [edi + 1]
cmp ebx, 2
jb 0x436a01
call fcn.004516c0
mov dword [esi], 0
test edi, edi
je 0x436a25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x436a5c
cmp ebx, 2
jae 0x436a7c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
movzx eax, byte [edi + 4]
mov byte [esi + 4], al
mov byte [edi + 4], 0
mov eax, dword [edi]
inc eax
cmp eax, 2
jb 0x436a50
call fcn.004516c0
push dword [edi]
call fcn.00433080
add esp, 4
mov dword [edi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.004516c0
push dword [esi]
call fcn.00433080
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
cmp ebx, 2
jb 0x436a1e
mov dword [esi], edi
mov edi, eax
call fcn.004516c0
mov eax, edi
jmp 0x436a1e

Function at 0x436a90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov dword [eax], 0
lea ebx, [edi + 1]
cmp ebx, 2
jae 0x436ab2
cmp dword [esi], edi
jne 0x436abb
jmp 0x436ad5
call fcn.004516c0
cmp dword [esi], edi
je 0x436ad5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x436b0c
cmp ebx, 2
jae 0x436b2c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
movzx eax, byte [edi + 4]
mov byte [esi + 4], al
mov byte [edi + 4], 0
mov eax, dword [edi]
inc eax
cmp eax, 2
jb 0x436b00
call fcn.004516c0
push dword [edi]
call fcn.00433080
add esp, 4
mov dword [edi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.004516c0
push dword [esi]
call fcn.00433080
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
cmp ebx, 2
jb 0x436ace
mov dword [esi], edi
mov edi, eax
call fcn.004516c0
mov eax, edi
jmp 0x436ace
Function at 0x436bf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 4], 0
je 0x436c16
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x436c18
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x436c3a
mov bl, 1
cmp byte [ebp + 0xc], 0
je 0x436c98
cmp byte [esi + 4], 0
je 0x436c79
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x436c7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 4], 0
je 0x436c4e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x436c50
mov eax, dword [esi]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x436c64
xor ebx, ebx
jmp 0x436c98
mov dword [ebp - 0x14], 0xffffffff
cmp byte [esi + 4], 0
je 0x436c89
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x436c8b
mov eax, dword [esi]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x436c98
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005327f1
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4385d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
call fcn.0046f430
mov byte [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi], 0x567c90
mov dword [esi + 0xc], 0
movaps xmm0, xmmword [0x567ad0]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
sub esp, 0x10
cmp dword [esi + 0xc], eax
je 0x438657
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0xc]
inc eax
cmp eax, 2
jb 0x43863b
call fcn.004516c0
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call fcn.00433080
mov dword [esi + 0xc], 0
lea eax, [edi + 1]
cmp eax, 2
jb 0x43864b
mov dword [esi + 0xc], edi
call fcn.004516c0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x43a650
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 eax, dword [0x5a8564]
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 edi, [esp + 0x10]
push 0x43
push str....._base_files_file_win.cc
push str.Read
push edi
call fcn.00451690
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push edi
call fcn.00440b40
mov ebx, 0xffffffff
cmp dword [ebp + 0xc], 0
js 0x43a75f
mov eax, dword [ebp + 0x14]
test eax, eax
js 0x43a75f
mov ebx, eax
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.00472540
test al, al
je 0x43a6fb
lea ecx, [esp + 0x28]
push 0
push ebx
push esi
push str.File::Read
call fcn.00472650
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 edi
push eax
push ebx
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43a746
mov ebx, dword [esp + 0xc]
test ebx, ebx
jns 0x43a756
int3
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 0x28]
call fcn.004725e0
lea ecx, [esp + 0x30]
call fcn.00440ba0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.005327f1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x43a780
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 [0x5a8564]
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 0x60
push str....._base_files_file_win.cc
push str.ReadAtCurrentPos
push ebx
call fcn.00451690
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push ebx
call fcn.00440b40
test edi, edi
js 0x43a843
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.00472540
test al, al
je 0x43a819
lea ecx, [esp + 0x10]
push 0
push edi
push esi
push str.File::ReadAtCurrentPos
call fcn.00472650
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 0x43a84a
mov ebx, dword [esp + 0xc]
test ebx, ebx
jns 0x43a85a
int3
mov ebx, 0xffffffff
jmp 0x43a863
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [esp + 0x10]
call fcn.004725e0
lea ecx, [esp + 0x20]
call fcn.00440ba0
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.005327f1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x43a890
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 [0x5a8564]
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 0x80
push str....._base_files_file_win.cc
push str.Write
push ebx
call fcn.00451690
add esp, 0x10
lea ecx, [esp + 0x30]
push 0
push ebx
call fcn.00440b40
mov edi, 0xffffffff
cmp dword [ebp + 0xc], 0
js 0x43a989
cmp dword [ebp + 0x14], 0
js 0x43a989
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x28], 0
call fcn.00472540
test al, al
je 0x43a93c
lea ecx, [esp + 0x28]
push 0
push dword [ebp + 0x14]
push esi
push str.File::Write
call fcn.00472650
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], 0xffffffff
lea eax, [esp + 0xc]
push ebx
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
cmp eax, 1
sbb edi, edi
or edi, dword [esp + 0xc]
lea ecx, [esp + 0x28]
call fcn.004725e0
lea ecx, [esp + 0x30]
call fcn.00440ba0
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.005327f1
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10