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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov eax, dword [0x49c3bc]
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x2c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x258
push str..._.._base_files_file_util_win.cc
push str.CreateDirectoryAndGetError
push edi
call fcn.0042e090
add esp, 0x10
lea ecx, [ebp - 0x38]
push 0
push edi
call fcn.0042e320
cmp byte [esi + 0xb], 0
mov ebx, esi
jns 0x422a36
mov ebx, dword [esi]
mov edi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x422a68
mov bl, 1
test al, 0x10
jne 0x422b7b
test edi, edi
je 0x422a59
mov dword [edi], 0xfffffff7
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x422b7b
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.00421460
movzx ecx, byte [ebp - 0x39]
test cl, cl
mov eax, ecx
jns 0x422a80
mov eax, dword [ebp - 0x40]
movzx edx, byte [esi + 0xb]
mov dword [ebp - 0x48], ebx
test dl, dl
mov edi, edx
jns 0x422a90
mov edi, dword [esi + 4]
cmp eax, edi
jne 0x422ad3
test eax, eax
je 0x422abf
test cl, cl
lea ecx, [ebp - 0x44]
jns 0x422aa2
mov ecx, dword [ebp - 0x44]
test dl, dl
mov edx, esi
jns 0x422aaa
mov edx, dword [esi]
xor edi, edi
nop dword [eax]
movzx ebx, word [ecx + edi*2]
cmp bx, word [edx + edi*2]
jne 0x422ad3
inc edi
cmp eax, edi
jne 0x422ab0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x422acc
mov dword [eax], 0xfffffffc
push 2
jmp 0x422b6b
mov edi, dword [ebp + 0xc]
push edi
lea eax, [ebp - 0x44]
push eax
call fcn.004229f0
add esp, 8
test al, al
je 0x422b71
push 0
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x422b73
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [ebp - 0x48], eax
jne 0x422b58
push 0x1bd
push str..._.._base_files_file_util_win.cc
push str.DirectoryExists
lea eax, [ebp - 0x2c]
push eax
call fcn.0042e090
add esp, 0x10
lea ecx, [ebp - 0x1c]
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.0042e320
cmp byte [esi + 0xb], 0
jns 0x422b3d
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.0042e410
cmp esi, 0xffffffff
je 0x422b58
and esi, 0x10
jne 0x422b73
mov esi, dword [ebp - 0x48]
test edi, edi
je 0x422b6a
push esi
call fcn.0042f520
add esp, 4
mov dword [edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea ecx, [ebp - 0x44]
call fcn.00420c10
lea ecx, [ebp - 0x38]
call fcn.0042e410
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00459221
mov eax, ebx
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x422ba0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x49c3bc]
lea esi, [esp + 0x38]
xor eax, ebp
mov dword [esp + 0x240], eax
push 0x37a
push str..._.._base_files_file_util_win.cc
push 0x48346b
push esi
call fcn.0042e090
add esp, 0x10
lea ecx, [esp + 0x2c]
push 0
push esi
call fcn.0042e320
mov word [esp + 0x38], 0
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x103
jbe 0x422c07
xor ebx, ebx
jmp 0x422cf3
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
push esi
call fcn.0046ebf8
add esp, 4
cmp eax, 0x7ffffff0
jae 0x422d14
mov ebx, eax
cmp eax, 5
jae 0x422c4c
lea esi, [esp + 0x20]
test ebx, ebx
mov byte [esp + 0x2b], bl
mov edi, esi
mov eax, esi
jne 0x422c7c
jmp 0x422c91
lea esi, [ebx + 8]
and esi, 0xfffffff8
js 0x422d1d
lea eax, [esi + esi]
push eax
call fcn.00459168
add esp, 4
or esi, 0x80000000
mov dword [esp + 0x20], eax
mov edi, eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
lea esi, [esp + 0x20]
mov eax, ebx
add eax, ebx
push eax
lea eax, [esp + 0x3c]
push eax
push edi
call fcn.0045caa0
add esp, 0xc
mov eax, esi
mov word [edi + ebx*2], 0
mov dword [esp + 4], eax
movzx eax, byte [eax + 0xb]
test al, al
jns 0x422cab
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
lea edi, [esp + 8]
mov ecx, edi
push eax
push esi
call fcn.00420ba0
lea ebx, [esp + 0x14]
mov ecx, edi
push ebx
call fcn.00421cc0
mov ecx, dword [ebp + 8]
push ebx
call fcn.00420c50
mov ecx, ebx
call fcn.00420c10
mov ecx, edi
call fcn.00420c10
mov eax, dword [esp + 4]
cmp byte [eax + 0xb], 0
jns 0x422cf1
push dword [esp + 0x20]
call fcn.004591e8
add esp, 4
mov bl, 1
lea ecx, [esp + 0x2c]
call fcn.0042e410
mov ecx, dword [esp + 0x240]
xor ecx, ebp
call fcn.00459221
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x20]
call fcn.00419c54
call fcn.0046cb17
int3
Function at 0x422d30
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4f0
mov eax, ecx
mov ecx, dword [0x49c3bc]
lea esi, [ebp - 0x29c]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov ecx, esi
mov dword [ebp - 0x4fc], edx
push edx
push 3
push 0
push eax
call fcn.0042f990
lea eax, [ebp - 0x4f8]
mov ecx, esi
push eax
call fcn.0042fb50
movzx eax, byte [ebp - 0x4ed]
test al, al
jns 0x422d81
mov eax, dword [ebp - 0x4f4]
test eax, eax
je 0x422ed0
lea ebx, [ebp - 0x4ec]
xor edi, edi
nop word cs:[eax + eax]
nop dword [eax + eax]
lea ecx, [ebp - 0x29c]
push ebx
call fcn.0042fad0
mov eax, dword [ebp - 0x4ec]
test al, 1
je 0x422ded
cmp byte [ebp + 8], 0
jne 0x422dcd
mov ecx, ebx
call fcn.0042f880
test al, al
jne 0x422ded
mov eax, dword [ebp - 0x4ec]
and eax, 0xfffffffe
cmp byte [ebp - 0x4ed], 0
lea ecx, [ebp - 0x4f8]
jns 0x422de5
mov ecx, dword [ebp - 0x4f8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, ebx
call fcn.0042f880
test al, al
je 0x422e50
xor esi, esi
cmp byte [ebp + 8], 0
je 0x422e88
mov edx, dword [ebp - 0x4fc]
lea ecx, [ebp - 0x4f8]
push 1
call fcn.00422d30
add esp, 4
mov esi, eax
test eax, eax
jne 0x422e88
cmp byte [ebp - 0x4ed], 0
lea eax, [ebp - 0x4f8]
jns 0x422e35
mov eax, dword [ebp - 0x4f8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov esi, 0
jne 0x422e88
jmp 0x422e72
cmp byte [ebp - 0x4ed], 0
lea eax, [ebp - 0x4f8]
jns 0x422e65
mov eax, dword [ebp - 0x4f8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
jne 0x422e88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
or eax, 1
mov ecx, 0
cmp eax, 3
cmove esi, ecx
test edi, edi
mov ecx, ebx
cmovne esi, edi
call fcn.00402810
lea ecx, [ebp - 0x29c]
push ebx
call fcn.0042fb50
lea ecx, [ebp - 0x4f8]
push ebx
call fcn.00420c50
mov ecx, ebx
call fcn.00420c10
movzx eax, byte [ebp - 0x4ed]
test al, al
jns 0x422ec4
mov eax, dword [ebp - 0x4f4]
test eax, eax
mov edi, esi
jne 0x422da0
jmp 0x422ed2
xor esi, esi
lea ecx, [ebp - 0x4f8]
call fcn.00420c10
lea ecx, [ebp - 0x29c]
call fcn.0042fa60
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00459221
mov eax, esi
add esp, 0x4f0
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x422f00
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 0x422f67
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
mov edi, eax
inc ecx
cmp ecx, 2
jb 0x422f43
call fcn.0042e0c0
push eax
push dword [ebp + 4]
push esi
push dword [esi]
call fcn.00430f80
add esp, 0x10
push dword [esi]
call fcn.00430f30
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x422f60
mov dword [esi], ebx
call fcn.0042e0c0
push eax
push dword [ebp + 4]
push esi
push ebx
call fcn.00430f50
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x428bf7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x49c3bc]
mov edi, dword [ebp + 8]
xor esi, esi
xor eax, ebp
mov dword [esp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x428c4b
mov ebx, eax
cmp eax, 0x7ffffff0
mov dword [esp + 0xc], esi
mov dword [esp + 8], esi
mov dword [esp + 0x10], esi
jae 0x428d33
cmp ebx, 5
jae 0x428c65
lea edi, [esp + 8]
mov eax, edi
mov byte [edi + 0xb], bl
jmp 0x428c8f
mov dword [edi + 4], esi
mov dword [edi], esi
mov dword [edi + 8], esi
mov ecx, dword [esp + 0x18]
xor ecx, ebp
call fcn.00459221
mov eax, edi
jmp 0x428d2b
lea esi, [ebx + 8]
and esi, 0xfffffff8
js 0x428d3c
lea eax, [esi + esi]
push eax
call fcn.00459168
add esp, 4
lea edi, [esp + 8]
or esi, 0x80000000
mov dword [edi], eax
mov dword [edi + 8], esi
mov dword [edi + 4], ebx
mov dword [esp + 4], edi
mov ecx, ebx
add ecx, ebx
push ecx
push 0
push eax
mov esi, eax
call fcn.0045d5a0
add esp, 0xc
mov word [esi + ebx*2], 0
mov esi, dword [esp + 4]
cmp byte [esi + 0xb], 0
jns 0x428cb9
mov edi, dword [esp + 8]
push ebx
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
movzx ecx, byte [esi + 0xb]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x428d04
test cl, cl
mov edx, ecx
jns 0x428cd9
mov edx, dword [esp + 0xc]
cmp eax, edx
jae 0x428d04
xor esi, esi
lea edi, [esp + 8]
mov ecx, edi
push esi
push eax
call fcn.0041a77c
movsd xmm0, qword [edi]
mov eax, dword [edi + 8]
mov dword [edi + 4], esi
mov dword [edi], esi
mov dword [edi + 8], esi
mov dword [ebx + 8], eax
movsd qword [ebx], xmm0
jmp 0x428d1e
xor eax, eax
test cl, cl
mov dword [ebx + 4], eax
mov dword [ebx], eax
mov dword [ebx + 8], eax
jns 0x428d1e
push dword [esp + 8]
call fcn.004591e8
add esp, 4
mov ecx, dword [esp + 0x18]
xor ecx, ebp
call fcn.00459221
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 8]
call fcn.00419c54
call fcn.0046cb17
Function at 0x4290ea
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x49c3bc]
mov ebx, dword [ebp + 8]
xor eax, ebp
mov esi, ebx
mov dword [esp + 0x20], eax
cmp byte [ebx + 0xb], 0
jns 0x42910e
mov esi, dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x429138
test al, 0x10
jne 0x42917c
push esi
push str.RecursiveDirectoryCreate
push str._hs___ls_directory_conflicts_with_an_existing_file.___n
call fcn.00429283
add esp, 0xc
xor ebx, ebx
jmp 0x42926e
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov eax, ebx
movzx ecx, byte [ebx + 0xb]
test cl, cl
jns 0x429155
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4291d1
lea edx, [eax + ecx*2]
movzx ecx, word [edx - 2]
add edx, 0xfffffffe
mov edi, 0xfffffffc
cmp word [edi + 0x483f24], cx
je 0x429196
add edi, 2
jne 0x429168
cmp edx, eax
jne 0x42915c
jmp 0x4291d1
push esi
push str.RecursiveDirectoryCreate
push str._hs___ls_directory_exists___n
call fcn.00429283
add esp, 0xc
mov bl, 1
jmp 0x42926e
sub edx, eax
cmp edx, 0xfffffffe
je 0x4291d1
lea eax, [ebx + 0xc]
lea edi, [esp + 4]
sar edx, 1
mov ecx, edi
push eax
push edx
push 0
push ebx
call fcn.0041a614
movsd xmm0, qword [edi]
mov ecx, dword [edi + 8]
lea eax, [esp + 0x10]
movsd qword [eax], xmm0
mov dword [eax + 8], ecx
push eax
call fcn.004290ea
add esp, 4
test al, al
je 0x42924c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x42925b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x42923b
lea edi, [esp + 4]
mov dword [esp], eax
mov ecx, edi
push esi
call fcn.0040879a
xor eax, eax
cmp byte [edi + 0xb], al
jns 0x429207
mov edi, dword [esp + 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne cl
and eax, 0x10
shr eax, 4
and al, cl
xor ecx, ecx
cmp byte [esp + 0xf], cl
jns 0x429234
push dword [esp + 4]
mov edi, eax
call fcn.004591e8
mov eax, edi
add esp, 4
test al, al
mov eax, dword [esp]
jne 0x42925b
push eax
push esi
push str.Failed_to_create_directory__ls__last_error_is__d_n
call fcn.00429283
add esp, 0xc
jmp 0x429259
push str.Failed_to_create_one_of_the_parent_directories
call fcn.00429283
add esp, 4
xor ebx, ebx
cmp byte [esp + 0x1b], 0
jns 0x42926e
push dword [esp + 0x10]
call fcn.004591e8
add esp, 4
mov ecx, dword [esp + 0x20]
xor ecx, ebp
call fcn.00459221
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x429283
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x49c3bc]
mov esi, dword [ebp + 8]
lea edi, [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
call fcn.004029b2
mov ebx, 0x49e854
push edi
push 0
push esi
push 0x400
push ebx
push dword [eax + 4]
push dword [eax]
call fcn.0045e4f7
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00459221
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x42970e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x49c3bc]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edi, [ebp - 0x218]
mov ebx, 0xfffffff4
xor eax, ebp
mov dword [ebp - 0x10], eax
mov word [edi], 0
mov eax, dword [ebx + 0x483ff4]
mov word [ebp - 0x218], 0
push 0x104
push edi
push eax
call esi
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x42976e
push dword [ebp + 8]
push eax
push edi
call fcn.004296a0
add esp, 0xc
test al, al
jne 0x429777
add ebx, 4
jne 0x42973a
xor ebx, ebx
jmp 0x429779
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00459221
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x429cca
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x49c3bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x49f054]
test eax, eax
jne 0x429dae
mov edi, 0xc
push edi
call fcn.00459168
add esp, 4
xor ebx, ebx
mov esi, eax
mov dword [0x49f054], eax
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
push edi
call fcn.00459168
add esp, 4
mov edi, eax
mov dword [eax + 4], ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [0x49f058], eax
call fcn.00428568
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x28]
mov eax, dword [eax + 8]
mov dword [ebp - 0x38], eax
push str.user_data_dir
call fcn.0040879a
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x34]
push eax
call fcn.0040879a
lea eax, [ebp - 0x28]
lea ebx, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.004288fa
add esp, 0xc
push edi
push esi
push dword [ebp - 0x38]
push ebx
call fcn.0042991c
add esp, 0x10
cmp byte [ebx + 0xb], 0
mov byte [ebp - 0x38], al
jns 0x429d81
push dword [ebp - 0x1c]
call fcn.004591e8
add esp, 4
cmp byte [ebp - 0x29], 0
jns 0x429d92
push dword [ebp - 0x34]
call fcn.004591e8
add esp, 4
cmp byte [ebp - 0x1d], 0
jns 0x429da3
push dword [ebp - 0x28]
call fcn.004591e8
add esp, 4
cmp byte [ebp - 0x38], 0
je 0x429dcf
mov eax, dword [0x49f054]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
call fcn.0041a6d6
mov bl, 1
test esi, esi
je 0x429dd1
mov ecx, esi
push dword [0x49f058]
call fcn.0041a6d6
jmp 0x429dd1
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00459221
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42c740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x49c3bc]
mov bl, 1
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [0x49f1b0], 0
jne 0x42c951
mov esi, dword [0x49f18c]
test esi, esi
je 0x42c80c
test byte [0x49c3cc], 1
je 0x42c951
cmp byte [esi + 0xb], 0
jns 0x42c788
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 [0x49f1b0], eax
inc eax
cmp eax, 1
ja 0x42c951
lea esi, [ebp - 0x218]
mov word [ebp - 0x218], 0
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x42c94f
cmp eax, 0x104
ja 0x42c94f
mov ecx, dword [0x49f18c]
push esi
call fcn.0041ad2e
mov ecx, dword [0x49f18c]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x42c8f0
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x5c
jne 0x42c8fd
jmp 0x42c90d
push 0xc
call fcn.00459168
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.0046ebf8
add esp, 4
cmp eax, 0x7ffffff0
jae 0x42c968
mov ebx, eax
cmp eax, 5
jae 0x42c866
mov eax, esi
test ebx, ebx
mov byte [esi + 0xb], bl
jne 0x42c892
jmp 0x42c8a5
lea edi, [ebx + 8]
and edi, 0xfffffff8
js 0x42c96f
lea eax, [edi + edi]
push eax
call fcn.00459168
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.0045caa0
mov eax, edi
add esp, 0xc
mov word [eax + ebx*2], 0
movzx eax, byte [esi + 0xb]
test al, al
jns 0x42c8b6
mov eax, dword [esi + 4]
mov ecx, esi
push eax
push 0x5c
call fcn.0041b128
inc eax
mov bl, 1
je 0x42c8cf
mov ecx, esi
push 0xffffffffffffffff
push eax
call fcn.0041ae6c
mov ecx, esi
push str.debug.log
call fcn.0041abb2
mov dword [0x49f18c], esi
test byte [0x49c3cc], 1
jne 0x42c780
jmp 0x42c951
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
cmp word [edx + eax*2 - 2], 0x5c
je 0x42c90d
push 0x4832f0
call fcn.0041abb2
mov ecx, dword [0x49f18c]
push str.debug.log
call fcn.0041abb2
mov eax, dword [0x49f18c]
cmp byte [eax + 0xb], 0
jns 0x42c924
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 [0x49f1b0], eax
inc eax
cmp eax, 1
ja 0x42c951
mov dword [0x49f1b0], 0
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00459221
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.00419c54
call fcn.0046cb17
int3
Function at 0x42f430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [0x49c3bc]
mov edi, dword [ebp + 0x14]
mov esi, ecx
lea ebx, [esp + 0x10]
xor eax, ebp
mov dword [esp + 0x38], eax
push 0x72
push str..._.._base_files_file_win.cc
push str.Write
push ebx
call fcn.0042e090
add esp, 0x10
lea ecx, [esp + 0x2c]
push 0
push ebx
call fcn.0042e320
lea ecx, [esp + 0x24]
call fcn.0042c090
call fcn.00446db0
test al, al
je 0x42f499
mov eax, edi
lea ecx, [esp + 0x24]
sar eax, 0x1f
push eax
push edi
push esi
push str.File::Write
call fcn.00446e30
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
movaps 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 + 0x24]
sbb esi, esi
or esi, dword [esp + 0xc]
call fcn.00446e10
lea ecx, [esp + 0x2c]
call fcn.0042e410
mov ecx, dword [esp + 0x38]
xor ecx, ebp
call fcn.00459221
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x431570
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, 0x38
mov eax, dword [0x49c3bc]
xorpd xmm0, xmm0
xor eax, ebp
mov dword [esp + 0x30], eax
movsd xmm1, qword [0x49f1e8]
ucomisd xmm1, xmm0
jne 0x4316f4
jp 0x4316f4
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0xc], eax
call edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [0x49f0e0]
mov edx, dword fs:[0x2c]
mov eax, dword [0x49f1f8]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x431719
mov ecx, dword [0x49f0e0]
mov edx, dword fs:[0x2c]
mov eax, dword [0x49f208]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x431752
rdtsc
lea esi, [esp + 0x28]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 8], eax
mov dword [esp + 4], edx
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub edi, dword [0x49f200]
movsd xmm2, qword [0x4849f8]
sbb ebx, dword [0x49f204]
movd xmm1, edi
fild qword [esp + 0x28]
fstp qword [esp + 0x20]
movd xmm0, ebx
punpckldq xmm1, xmm0
punpckldq xmm1, xmmword [0x4849d0]
subpd xmm1, xmmword [0x4849e0]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
xorpd xmm1, xmm1
divsd xmm0, qword [esp + 0x20]
ucomisd xmm2, xmm0
ja 0x4316f4
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub eax, dword [0x49f1f0]
sbb ecx, dword [0x49f1f4]
movd xmm2, eax
movd xmm1, ecx
punpckldq xmm2, xmm1
punpckldq xmm2, xmmword [0x4849d0]
subpd xmm2, xmmword [0x4849e0]
movapd xmm1, xmm2
unpckhpd xmm1, xmm2
addsd xmm1, xmm2
divsd xmm1, xmm0
movsd qword [0x49f1e8], xmm1
movsd qword [esp + 0x18], xmm1
fld qword [esp + 0x18]
fstp xword [esp + 0xc]
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.00459221
fld xword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x49f1f8
call fcn.00459267
add esp, 4
cmp dword [0x49f1f8], 0xffffffff
jne 0x4315e2
rdtsc
mov dword [0x49f1f0], eax
mov dword [0x49f1f4], edx
push 0x49f1f8
call fcn.004592dd
add esp, 4
jmp 0x4315e2
push 0x49f208
call fcn.00459267
add esp, 4
cmp dword [0x49f208], 0xffffffff
jne 0x431603
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [0x49f204], ecx
mov dword [0x49f200], eax
push 0x49f208
call fcn.004592dd
add esp, 4
jmp 0x431603