joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1b10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov esi, dword [ebp + 8]
lea ebx, [ebp - 0x218]
push 0x208
push 0
push ebx
call fcn.0061e8c0
add esp, 0xc
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], 0
cmp eax, 0x103
jb 0x4a1b6a
mov dword [esi + 0x10], 0
mov word [esi], 0
jmp 0x4a1bac
push ebx
call fcn.005d3244
add esp, 4
mov edi, eax
cmp eax, 7
jbe 0x4a1b94
sub esp, 0xc
mov al, byte [ebp - 0x10]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], edi
call fcn.00405590
jmp 0x4a1bac
mov eax, edi
mov dword [esi + 0x10], edi
add eax, edi
push eax
push ebx
push esi
call fcn.0061e340
add esp, 0xc
mov word [esi + edi*2], 0
mov eax, esi
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4a1bc0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x128
mov eax, dword [0x6ccc30]
xor ecx, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
lock cmpxchg dword [0x6d0fd8], ecx
jne 0x4a1d1f
lea eax, [ebp - 0x128]
push 0x118
push 0
push eax
call fcn.0061e8c0
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov esi, 2
test eax, eax
je 0x4a1d15
mov eax, dword [ebp - 0x128]
cmp eax, 6
jne 0x4a1c42
cmp dword [ebp - 0x124], 0
jne 0x4a1c4b
cmp word [ebp - 0x18], 0
jne 0x4a1c4b
jmp 0x4a1d15
cmp eax, 7
jb 0x4a1d15
push 0x6585aa
call fcn.00436bb0
add esp, 4
test eax, eax
je 0x4a1d15
push 0x6585c0
call fcn.00436bb0
add esp, 4
test eax, eax
je 0x4a1d15
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x134], 0
lea eax, [ebp - 0x130]
push 0
push str.Microsoft_Primitive_Provider
push str.ECDH_P256
push eax
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
mov esi, eax
test eax, eax
je 0x4a1cb3
mov dword [ebp - 0x130], 0
jmp 0x4a1cc5
mov eax, dword [ebp - 0x130]
test eax, eax
je 0x4a1cc5
push 0
push eax
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
lea eax, [ebp - 0x134]
push 0
push str.Microsoft_Software_Key_Storage_Provider
push eax
call sub.ncrypt.dll_NCryptOpenStorageProvider
mov edi, eax
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x4a1cf6
push eax
call sub.ncrypt.dll_NCryptFreeObject
cmp dword [ebp - 0x134], 0
setne al
jmp 0x4a1cf8
xor eax, eax
or edi, esi
mov esi, 2
sete cl
cmp dword [ebp - 0x130], 0
setne dl
and dl, al
and dl, cl
movzx eax, dl
sub esi, eax
xor eax, eax
lock cmpxchg dword [0x6d0fd8], esi
cmp dword [0x6d0fd8], 1
mov ecx, dword [ebp - 0x10]
sete bl
xor ecx, ebp
call fcn.005ce525
mov eax, ebx
add esp, 0x128
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4a1d60
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x214
mov eax, dword [0x6ccc30]
mov bl, 1
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx], 0
jne 0x4a1e4f
mov esi, ecx
lea edi, [ebp - 0x218]
mov word [ebp - 0x218], 0
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
jbe 0x4a1dad
mov bl, byte [esi]
jmp 0x4a1e4f
lea eax, [esi + 4]
mov dword [ebp - 0x220], eax
push edi
call fcn.005d3244
add esp, 4
mov ebx, eax
mov eax, dword [esi + 0x18]
cmp eax, ebx
jae 0x4a1de9
sub esp, 0xc
mov al, byte [ebp - 0x21c]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], ebx
mov ecx, dword [ebp - 0x220]
call fcn.00405590
jmp 0x4a1e1a
mov ecx, dword [ebp - 0x220]
cmp eax, 8
jb 0x4a1df6
mov ecx, dword [ecx]
mov eax, ebx
mov dword [ebp - 0x220], ecx
mov dword [esi + 0x14], ebx
add eax, ebx
push eax
push edi
push ecx
call fcn.0061e340
add esp, 0xc
mov eax, dword [ebp - 0x220]
mov word [eax + ebx*2], 0
push 0x208
push 0
push edi
call fcn.0061e8c0
add esp, 0xc
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x101
ja 0x4a1e4b
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov bl, 1
test eax, eax
jne 0x4a1e4d
xor ebx, ebx
mov byte [esi], bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ce525
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4a1e70
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4a2040
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
cmp byte [esi], 0
je 0x4a1ece
cmp dword [esi + 0x14], 0
je 0x4a1ece
cmp dword [esi + 0x18], 8
lea ecx, [esi + 4]
mov dword [ebp - 0x24], esi
mov eax, ecx
jb 0x4a1eba
mov eax, dword [ecx]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], 1
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [ebp - 0x24]
mov ecx, dword [esi + 0x18]
cmp ecx, 8
jb 0x4a1f05
mov eax, dword [esi + 4]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4a1efb
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4a1f2a
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 7
mov word [esi + 4], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
call fcn.006207e0
nop word cs:[eax + eax]
push ebp
sub esp, 8
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 8
add ebp, 0xc
mov ecx, dword [ebp - 0x20]
call fcn.005d4a10
call fcn.0061de80
int3
Function at 0x4a20c0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4a2470
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov ecx, dword [0x6d301c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x6d107c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4a214b
movzx ecx, word [0x6d1058]
cmp ecx, 0xc
ja case.0x4a2118.1
xor eax, eax
jmp dword [ecx*4 + 0x6588b4]
mov eax, 2
jmp case.0x4a2118.0
mov eax, 1
jmp case.0x4a2118.0
mov eax, 3
jmp case.0x4a2118.0
mov eax, 4
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x6d107c
call fcn.005d3d07
add esp, 4
cmp dword [0x6d107c], 0xffffffff
jne 0x4a210a
mov dword [0x6d105c], 0
mov dword [0x6d1058], 0
mov dword [0x6d1064], 0
mov dword [0x6d1060], 0
mov dword [0x6d106c], 0
mov dword [0x6d1068], 0
mov dword [0x6d1074], 0
mov dword [0x6d1070], 0
mov dword [0x6d1078], 0
mov dword [ebp - 0x10], 0
push 0x6d1058
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x6d107c
call fcn.005d3d59
add esp, 4
jmp 0x4a210a
Function at 0x4a5750
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, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0x4a5be0
lea eax, [esi + 0x30]
mov ecx, dword fs:[0]
mov dword [esi + 0x30], ecx
mov dword fs:[0], eax
call fcn.004a59c0
movsd xmm1, qword [0x6d1140]
xorpd xmm0, xmm0
ucomisd xmm1, xmm0
jne 0x4a58eb
jp 0x4a58eb
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esi + 0x14], eax
call edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [0x6d301c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x6d1150]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4a5904
mov ecx, dword [0x6d301c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x6d1160]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4a593d
rdtsc
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi + 0xc], edx
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [esi]
mov edi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub ebx, dword [0x6d1158]
movsd xmm2, qword [0x658dc0]
sbb edi, dword [0x6d115c]
movd xmm1, ebx
fild qword [esi]
fstp qword [esi + 0x20]
movd xmm0, edi
punpckldq xmm1, xmm0
punpckldq xmm1, xmmword [0x658da0]
subpd xmm1, xmmword [0x658db0]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
xorpd xmm1, xmm1
divsd xmm0, qword [esi + 0x20]
ucomisd xmm2, xmm0
ja 0x4a58eb
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
sub eax, dword [0x6d1148]
sbb ecx, dword [0x6d114c]
movd xmm2, eax
movd xmm1, ecx
punpckldq xmm2, xmm1
punpckldq xmm2, xmmword [0x658da0]
subpd xmm2, xmmword [0x658db0]
movapd xmm1, xmm2
unpckhpd xmm1, xmm2
addsd xmm1, xmm2
divsd xmm1, xmm0
movsd qword [0x6d1140], xmm1
mov eax, dword [esi + 0x30]
mov dword fs:[0], eax
movsd qword [esi + 0x18], xmm1
fld qword [esi + 0x18]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x6d1150
call fcn.005d3d07
add esp, 4
cmp dword [0x6d1150], 0xffffffff
jne 0x4a57e4
rdtsc
mov dword [0x6d1148], eax
mov dword [0x6d114c], edx
push 0x6d1150
call fcn.005d3d59
add esp, 4
jmp 0x4a57e4
push 0x6d1160
call fcn.005d3d07
add esp, 4
cmp dword [0x6d1160], 0xffffffff
jne 0x4a5805
mov eax, esi
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 0x38], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [0x6d115c], ecx
mov dword [0x6d1158], eax
push 0x6d1160
call fcn.005d3d59
add esp, 4
jmp 0x4a5805
Function at 0x4a6630
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x6ccc30]
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 0x16]
mov dword [ebp - 0x234], eax
call edi
mov word [ebp - 0x228], ax
movzx eax, word [esi + 0x16]
mov dword [ebp - 0x230], eax
movzx eax, word [esi + 0x14]
mov dword [ebp - 0x22c], eax
call edi
mov word [ebp - 0x226], ax
lea eax, [ebp - 0x218]
push dword [ebp + 8]
push ebx
mov ebx, eax
push dword [ebp - 0x234]
push str.StringFileInfo_04x_04x_ls
push 0x104
push 0x104
push eax
call fcn.004a6880
add esp, 0x1c
lea eax, [ebp - 0x224]
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x220]
push eax
push ecx
push ebx
push dword [esi + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a66e9
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x4a66e9
mov edi, dword [ebp - 0x224]
test edi, edi
jne 0x4a680f
movzx eax, word [ebp - 0x228]
push dword [ebp + 8]
push dword [ebp - 0x230]
push eax
push str.StringFileInfo_04x_04x_ls
push 0x104
push 0x104
push ebx
call fcn.004a6880
add esp, 0x1c
lea eax, [ebp - 0x224]
mov dword [ebp - 0x220], 0
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push dword [esi + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a674f
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x4a674f
mov edi, dword [ebp - 0x224]
test edi, edi
jne 0x4a680f
push dword [ebp + 8]
push 0x4e4
push dword [ebp - 0x22c]
push str.StringFileInfo_04x_04x_ls
push 0x104
push 0x104
push ebx
call fcn.004a6880
add esp, 0x1c
lea eax, [ebp - 0x224]
mov dword [ebp - 0x220], 0
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push dword [esi + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a67ae
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x4a67ae
mov edi, dword [ebp - 0x224]
test edi, edi
jne 0x4a680f
movzx eax, word [ebp - 0x226]
push dword [ebp + 8]
push 0x4e4
push eax
push str.StringFileInfo_04x_04x_ls
push 0x104
push 0x104
push ebx
call fcn.004a6880
add esp, 0x1c
lea eax, [ebp - 0x224]
mov dword [ebp - 0x220], 0
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push dword [esi + 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a6872
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x4a6872
mov edi, dword [ebp - 0x224]
test edi, edi
je 0x4a6872
mov ecx, dword [ebp + 0xc]
lea edx, [edi - 1]
mov esi, dword [ecx + 0x14]
cmp esi, edx
jae 0x4a6837
sub esp, 0xc
mov bl, byte [ebp - 0x21c]
mov byte [esp + 4], bl
mov dword [esp + 8], eax
mov dword [esp], edx
call fcn.00405590
jmp 0x4a6857
cmp esi, 8
mov esi, ecx
jb 0x4a6840
mov esi, dword [ecx]
mov dword [ecx + 0x10], edx
add edx, edx
push edx
push eax
push esi
call fcn.0061e340
add esp, 0xc
mov word [esi + edi*2 - 2], 0
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ce525
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor ebx, ebx
jmp 0x4a6859
Function at 0x4a6b50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, edx
mov esi, ecx
test ecx, ecx
jne 0x4a6b9d
mov eax, dword [0x6c8c44]
cmp eax, 0xffffffff
jne 0x4a6b83
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x6c8c44
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x4a6b8e
mov eax, dword [0x6c8c44]
mov esi, 0x100000
test eax, eax
jne 0x4a6b9d
jmp 0x4a6b98
mov dword [0x6c8c44], 0
mov esi, 0x80000
push 0xc
call fcn.005d0220
add esp, 4
mov dword [eax], edi
mov edi, dword [ebp + 8]
mov ebx, eax
test edi, edi
setne byte [eax + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebx + 8], eax
push 0
push 0x10000
push ebx
push 0x4a6cc0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4a6bdc
test edi, edi
je 0x4a6c09
mov dword [edi], eax
jmp 0x4a6c10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x4a6bf3
cmp eax, 0x5af
je 0x4a6bf3
cmp eax, 0xe
jne 0x4a6bfc
push esi
call fcn.004a9b00
add esp, 4
push ebx
call fcn.005d31ac
add esp, 4
xor eax, eax
jmp 0x4a6c12
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4a7730
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x10
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x1ba
push str.files_file_util_win.cc
push str.PathExists
push eax
call fcn.004716a0
add esp, 0x10
cmp dword [esi + 0x14], 7
jbe 0x4a775d
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
add esp, 0x10
pop esi
pop ebp
ret

Function at 0x4a7770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4a7ce0
lea edi, [ebp - 0x256]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
jbe 0x4a77be
xor eax, eax
jmp 0x4a7802
push edi
call fcn.005d3244
add esp, 4
lea esi, [ebp - 0x34]
mov ecx, esi
push eax
push edi
call fcn.004058b0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x10], 0
mov ecx, esi
push eax
call fcn.004a1270
mov ecx, dword [ebp + 8]
lea esi, [ebp - 0x4c]
push esi
call fcn.00480640
mov ecx, esi
call fcn.00405be0
lea ecx, [ebp - 0x34]
call fcn.00405be0
mov al, 1
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x24c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4a7840
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x230
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4a7cf0
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x23c]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push esi
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4a78aa
cmp word [ebp - 0x23c], 0
je 0x4a78aa
push esi
call fcn.005d3244
add esp, 4
mov ecx, edi
push eax
push esi
call fcn.004058b0
jmp 0x4a78f1
lea esi, [ebp - 0x34]
mov ecx, esi
call fcn.00480620
mov dword [ebp - 0x10], 0
push esi
call fcn.004a7770
mov edi, dword [ebp + 8]
add esp, 4
test al, al
je 0x4a78d8
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.004a05b0
jmp 0x4a78e9
mov ecx, edi
push 3
push 0x659270
call fcn.004058b0
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.00405be0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4a7930
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x248
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4a7d00
lea edi, [ebp - 0x254]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x3a5
push str.files_file_util_win.cc
push 0x659288
push edi
call fcn.004716a0
add esp, 0x10
mov word [ebp - 0x254], 0
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x103
jbe 0x4a799f
xor eax, eax
jmp 0x4a79e3
push edi
call fcn.005d3244
add esp, 4
lea esi, [ebp - 0x34]
mov ecx, esi
push eax
push edi
call fcn.004058b0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x10], 0
mov ecx, esi
push eax
call fcn.004a1270
mov ecx, dword [ebp + 8]
lea esi, [ebp - 0x4c]
push esi
call fcn.00480640
mov ecx, esi
call fcn.00405be0
lea ecx, [ebp - 0x34]
call fcn.00405be0
mov al, 1
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x248
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4a8920
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 8]
cmp eax, 0x10000001
jae 0x4a8aae
dec eax
mov edi, ecx
lea edx, [ecx + 0xc]
mov esi, 1
or eax, 1
mov ebx, dword [edi + 4]
mov dword [ebp - 0x28], edx
bsr ecx, eax
xor ecx, 0x1f
neg cl
shl esi, cl
mov ecx, edx
lea eax, [esi + esi]
push ebx
push eax
call fcn.004a8490
lea edx, [esi - 1]
mov dword [ebp - 0x20], ebx
mov dword [edi + 0x18], edx
mov dword [edi + 0x1c], esi
mov eax, dword [edi + 4]
mov eax, dword [eax]
cmp ebx, eax
je 0x4a8aa4
mov dword [ebp - 0x14], edi
nop dword [eax]
mov ecx, dword [eax]
movzx esi, byte [eax + 9]
mov dword [ebp - 0x10], ecx
movzx ecx, byte [eax + 8]
xor ecx, 0x811c9dc5
imul ecx, ecx, 0x1000193
xor esi, ecx
imul ecx, esi, 0x1000193
movzx esi, byte [eax + 0xa]
xor esi, ecx
imul ecx, esi, 0x1000193
movzx esi, byte [eax + 0xb]
xor esi, ecx
imul ecx, esi, 0x1000193
and ecx, edx
mov edx, dword [ebp - 0x28]
lea edi, [ecx + ecx]
lea ebx, [ecx + ecx + 1]
mov edx, dword [edx]
mov esi, dword [edx + ecx*8]
cmp esi, dword [ebp - 0x20]
je 0x4a8a60
mov dword [ebp - 0x1c], edi
mov edi, dword [edx + ebx*4]
mov ecx, dword [eax + 8]
cmp ecx, dword [edi + 8]
jne 0x4a8a30
mov ecx, dword [edi]
cmp ecx, eax
je 0x4a8a14
mov esi, dword [eax + 4]
mov edi, dword [ebp - 0x10]
mov dword [esi], edi
mov dword [ebp - 0x1c], esi
mov esi, dword [edi + 4]
mov dword [esi], ecx
mov dword [ebp - 0x18], esi
mov esi, dword [ecx + 4]
mov dword [ebp - 0x24], esi
mov dword [esi], eax
mov esi, dword [ebp - 0x18]
mov dword [ecx + 4], esi
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
mov dword [edi + 4], ecx
mov dword [eax + 4], esi
mov dword [edx + ebx*4], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp dword [ebp - 0x20], ecx
jne 0x4a8a9a
jmp 0x4a8aa4
cmp esi, edi
je 0x4a8a6b
mov edi, dword [edi + 4]
cmp ecx, dword [edi + 8]
jne 0x4a8a30
mov edx, dword [eax + 4]
mov ebx, dword [ebp - 0x10]
mov ecx, dword [edi]
mov dword [edx], ebx
mov esi, dword [ebx + 4]
mov dword [esi], ecx
mov edi, dword [ecx + 4]
mov dword [edi], eax
mov dword [ecx + 4], esi
mov ecx, ebx
mov dword [ebx + 4], edx
mov dword [eax + 4], edi
jmp 0x4a8a92
mov ecx, dword [ebp - 0x10]
mov dword [edx + edi*4], eax
mov dword [edx + ebx*4], eax
jmp 0x4a8a92
mov edi, dword [eax + 4]
mov ecx, dword [ebp - 0x10]
mov dword [edi], ecx
mov dword [ebp - 0x18], edi
mov edi, dword [ecx + 4]
mov dword [edi], esi
mov ebx, dword [esi + 4]
mov dword [ebx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 0x18]
mov dword [ecx + 4], esi
mov esi, dword [ebp - 0x1c]
mov dword [eax + 4], ebx
mov dword [edx + esi*4], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x20], ecx
je 0x4a8aa4
mov edx, dword [eax + 0x18]
mov eax, ecx
jmp 0x4a8980
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.006068d7
int3
Function at 0x4aa1b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [0x6ccc30]
mov ebx, dword [ebp + 8]
xor eax, ebp
cmp ebx, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4aa29f
mov eax, dword [ecx + 0x20]
mov esi, ecx
cmp dword [eax], 0
je 0x4aa1f6
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
test ecx, ecx
jle 0x4aa1f6
dec ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
lea edx, [ecx + 1]
mov dword [eax], edx
mov byte [ecx], bl
jmp 0x4aa2ee
cmp dword [esi + 0x4c], 0
je 0x4aa2a3
mov eax, dword [esi + 0xc]
lea ecx, [esi + 0x3c]
cmp dword [eax], ecx
jne 0x4aa21e
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x54]
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov edi, dword [esi + 0x38]
test edi, edi
je 0x4aa2aa
mov byte [ebp - 0x31], bl
lea eax, [esi + 0x40]
mov ecx, dword [edi]
mov dword [ebp - 0x44], eax
mov ecx, dword [ecx + 0x1c]
mov dword [ebp - 0x40], ecx
call dword [0x64689c]
lea edx, [ebp - 0x31]
mov ecx, edi
lea eax, [ebp - 0x30]
mov edi, edx
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x10]
push edx
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x30]
push eax
push edi
push dword [ebp - 0x44]
call dword [ebp - 0x40]
mov ecx, 0xffffffff
cmp eax, 2
jae 0x4aa2cf
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
sub edi, eax
je 0x4aa28e
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00628833
mov ecx, 0xffffffff
add esp, 0x10
cmp edi, eax
jne 0x4aa2ec
mov byte [esi + 0x3d], 1
lea eax, [ebp - 0x31]
cmp dword [ebp - 0x38], eax
mov eax, 0xffffffff
jmp 0x4aa2e7
xor ebx, ebx
jmp 0x4aa2ee
mov ebx, 0xffffffff
jmp 0x4aa2ee
movsx eax, bl
push dword [esi + 0x4c]
push eax
call fcn.0062b458
add esp, 8
mov ecx, dword [ebp - 0x10]
mov esi, eax
cmp eax, 0xffffffff
cmovne esi, ebx
xor ecx, ebp
call fcn.005ce525
mov eax, esi
jmp 0x4aa2fa
cmp eax, 3
jne 0x4aa2ec
movsx eax, byte [ebp - 0x31]
push dword [esi + 0x4c]
push eax
call fcn.0062b458
add esp, 8
cmp eax, 0xffffffff
cmove ebx, eax
mov ecx, ebx
mov ebx, ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ce525
mov eax, ebx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret 4