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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40e239
cmp eax, 0x104
ja 0x40e239
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x240]
call fcn.0040aa10
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x258]
call fcn.004055c0
mov ecx, eax
call fcn.00406120
cmp esi, eax
je 0x40e1c6
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407ca0
cmp dword [ebp - 0x214], 8
jb 0x40e1dd
push dword [ebp - 0x228]
call fcn.004a733a
add esp, 4
xor eax, eax
mov dword [ebp - 0x214], 7
cmp dword [ebp - 0x244], 8
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
jb 0x40e211
push dword [ebp - 0x258]
call fcn.004a733a
add esp, 4
cmp dword [ebp - 0x22c], 8
jb 0x40e228
push dword [ebp - 0x240]
call fcn.004a733a
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.004a7e44
mov esp, ebp
pop ebp
ret

Function at 0x40e270
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00406180
test al, al
jne 0x40e2e2
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00406180
test al, al
jne 0x40e2e2
cmp dword [edi + 0x10], 0x104
jae 0x40e2e2
cmp dword [esi + 0x10], 0x104
jae 0x40e2e2
cmp dword [esi + 0x14], 8
jb 0x40e2ab
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x40e2b3
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40e2e2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e2e2
test al, 1
je 0x40e2dc
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
pop edi
pop esi
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
ret
Function at 0x40e2f0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2f0
mov eax, dword [0x4f5470]
xor eax, esp
mov dword [esp + 0x2ec], eax
push ebx
push esi
xorps xmm0, xmm0
mov word [esp + 0x28], 0
lea eax, [esp + 0x20]
movlpd qword [esp + 0x20], xmm0
mov esi, ecx
movlpd qword [esp + 0x30], xmm0
push eax
push esi
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
call fcn.0040de80
add esp, 8
test al, al
je 0x40e44f
cmp byte [esp + 0x28], 0
jne 0x40e375
cmp dword [esi + 0x14], 8
jb 0x40e355
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
pop ebx
mov ecx, dword [esp + 0x2ec]
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
push 3
push 0
push esi
lea ecx, [esp + 0x54]
mov bl, 1
call fcn.0041ebd0
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x4c]
call fcn.0041eea0
cmp dword [esp + 0x18], 0
je 0x40e3e5
lea ebx, [ebx]
lea ecx, [esp + 8]
call fcn.0040e2f0
and bl, al
lea ecx, [esp + 0x48]
lea eax, [esp + 0x20]
push eax
call fcn.0041eea0
lea ecx, [esp + 8]
cmp ecx, eax
je 0x40e3cb
push 0xffffffffffffffff
push 0
push eax
call fcn.00407ca0
cmp dword [esp + 0x34], 8
jb 0x40e3de
push dword [esp + 0x20]
call fcn.004a733a
add esp, 4
cmp dword [esp + 0x18], 0
jne 0x40e3a0
cmp dword [esp + 0x1c], 8
jb 0x40e3f8
push dword [esp + 8]
call fcn.004a733a
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
test bl, bl
je 0x40e446
cmp dword [esi + 0x14], 8
jb 0x40e41b
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
lea ecx, [esp + 0x48]
setne bl
call fcn.0041ed90
mov al, bl
pop esi
pop ebx
mov ecx, dword [esp + 0x2ec]
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x48]
call fcn.0041ed90
mov ecx, dword [esp + 0x2f4]
mov al, 1
pop esi
pop ebx
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret

Function at 0x4100b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x4f5470]
xor eax, esp
mov dword [esp + 0x1c], eax
cmp dword [0x4f9f64], 0
je 0x4100de
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.004a72c4
add esp, 4
test eax, eax
je 0x4100fc
push 0
mov ecx, eax
call fcn.0040ff00
mov dword [0x4f9f64], eax
jmp 0x410106
mov dword [0x4f9f64], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 8]
call fcn.0040aa10
mov ecx, dword [0x4f9f64]
lea eax, [esp + 4]
push eax
call fcn.00410f70
cmp dword [esp + 0x18], 8
jb 0x410139
push dword [esp + 4]
call fcn.004a733a
add esp, 4
mov ecx, dword [esp + 0x1c]
mov al, 1
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret
Function at 0x410f70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x4f5470]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
xor ecx, ecx
mov dword [esp + 0x20], 7
mov word [esp + 0xc], cx
lea ecx, [esp + 0xc]
push ecx
push 3
push eax
mov dword [esp + 0x28], 0
call fcn.00413400
add esp, 0xc
cmp dword [esp + 0x1c], 0
je 0x410ff8
cmp dword [esp + 0x20], 8
lea ecx, [esp + 8]
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
cmovae eax, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [esp + 0xc]
call fcn.004101c0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x20], 8
jb 0x41100b
push dword [esp + 0xc]
call fcn.004a733a
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret 4
Function at 0x4167d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
cmp byte [esi], 0
je 0x4167f1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x4167f4
mov eax, dword [esi + 4]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test bl, bl
je 0x41687e
cmp byte [ebp + 0xc], 0
je 0x416903
cmp byte [esi], 0
je 0x41681e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x416821
mov eax, dword [esi + 4]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x416903
cmp dword [0x4f9f2c], 2
jg 0x416878
push 2
push 0x89
push str.d:webapps_b_build_slave_repo_build_src_baseprocessprocess_win.cc
lea ecx, [ebp - 0xb8]
mov dword [ebp - 4], 2
call fcn.0040a070
mov ecx, dword [ebp + 8]
add eax, 8
push ecx
push str.Error_waiting_for_process_exit__exit_code:
push eax
call fcn.00408da0
add esp, 8
mov ecx, eax
call fcn.0040aac0
test byte [ebp - 4], 2
jmp 0x4168f6
cmp dword [0x4f9f2c], 2
jg 0x4168f2
push 1
push 2
lea ecx, [ebp - 0xb0]
mov dword [ebp - 4], 4
mov dword [ebp - 0xb8], 2
call fcn.00409530
mov dword [ebp - 0x14], str.d:webapps_b_build_slave_repo_build_src_baseprocessprocess_win.cc
mov dword [ebp - 0x10], 0x90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x90
push str.d:webapps_b_build_slave_repo_build_src_baseprocessprocess_win.cc
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xc], eax
call fcn.0040a300
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xb0]
push ecx
push str.Unable_to_terminate_process__exit_code:
push eax
call fcn.00408da0
add esp, 8
mov ecx, eax
call fcn.0040aac0
test byte [ebp - 4], 4
je 0x416903
lea ecx, [ebp - 0xb8]
call fcn.0040a0c0
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x417470
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 8]
push edi
mov ebx, ecx
mov dword [esp + 0x14], 0
push eax
mov dword [esp + 0x10], 0
mov eax, dword [ebx + 4]
or eax, 0x20019
push eax
push 0
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417544
push eax
push eax
push eax
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push dword [esp + 0xc]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4174f0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0x10], 0
jne 0x41753f
mov eax, dword [ebx + 4]
mov edi, dword [ebx]
push str.RegDeleteKeyExW
push str.advapi32.dll
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41752e
push 0
push dword [esp + 0x18]
push esi
push edi
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x91
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x417580
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
lea eax, [esp + 8]
mov dword [esp + 0xc], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 8], 4
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 4
push eax
push 0
push dword [ebp + 8]
mov dword [esp + 0x20], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test edx, edx
jne 0x4175f6
mov ecx, dword [esp + 4]
cmp ecx, 4
je 0x4175d9
cmp ecx, 3
jne 0x4175f1
cmp dword [esp + 8], 4
jne 0x4175f1
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, edx
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov esp, ebp
pop ebp
ret 8

Function at 0x417600
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
lea eax, [esp + 0xc]
mov dword [esp + 4], 0xb
push eax
lea eax, [esp + 8]
mov dword [esp + 0xc], 8
push eax
push 0
push dword [ebp + 8]
xorps xmm0, xmm0
push dword [ecx]
movlpd qword [esp + 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test edx, edx
jne 0x41767d
mov ecx, dword [esp]
cmp ecx, 0xb
je 0x417659
cmp ecx, 3
jne 0x417678
cmp dword [esp + 4], 8
jne 0x417678
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
mov dword [ecx + 4], eax
mov eax, edx
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov esp, ebp
pop ebp
ret 8
Function at 0x417690
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.004aa360
mov eax, dword [0x4f5470]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
lea edx, [esp]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0xc], 0
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [esp + 0x20], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4177d7
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x417764
cmp word [esp + 0x10], ax
jne 0x417728
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.00408730
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417730
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00408730
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x4177d2
push 0x400
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], eax
test eax, eax
je 0x4177b7
cmp eax, 0x400
ja 0x4177b7
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.00406970
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret 8

Function at 0x417840
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417860
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x417ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x417da4
cmp dword [esi + 4], 0
jl 0x417da4
mov eax, dword [esi + 0x24]
lea ebx, [esi + 0x2c]
sub eax, dword [esi + 0x20]
xor edx, edx
mov ecx, dword [esi + 0x1c]
sar eax, 1
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
lea eax, [eax*2 - 2]
mov dword [ebx], eax
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x24]
cmove eax, edx
lea edx, [esi + 0x30]
push eax
push edx
push 0
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [esi + 8]
push eax
call fcn.00418170
add esp, 8
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
jne 0x417d89
mov ecx, dword [ebx]
mov eax, dword [esi + 0x24]
inc ecx
sub eax, dword [esi + 0x20]
shr ecx, 1
inc ecx
sar eax, 1
cmp ecx, eax
jbe 0x417d38
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push ecx
lea ecx, [esi + 0x20]
call fcn.00417fe0
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x20]
mov ecx, dword [ebp - 0xc]
sar eax, 1
cmp dword [ebp - 4], ecx
push ebx
lea eax, [eax*2 - 2]
mov dword [ebx], eax
mov eax, 0x4000
cmove ecx, eax
mov eax, dword [esi + 0x20]
xor edx, edx
mov dword [ebp - 4], ecx
cmp eax, dword [esi + 0x24]
cmove eax, edx
push eax
lea eax, [esi + 0x30]
push eax
push edx
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [esi + 8]
push eax
call fcn.00418170
add esp, 8
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x417da4
mov ecx, dword [ebx]
mov eax, dword [esi + 0x20]
inc ecx
shr ecx, 1
xor edx, edx
pop edi
pop esi
pop ebx
mov word [eax + ecx*2], dx
mov al, 1
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x417daf
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [esi + 0x20]
pop edi
mov word [eax], cx
xor al, al
mov dword [esi + 0x2c], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x417ed0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
or eax, 0x20019
push esi
mov esi, ecx
push esi
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417f1d
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x417f30
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
xor eax, eax
mov word [esi + 8], ax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi]
dec ecx
mov dword [esi + 4], ecx
test edx, edx
je 0x417f66
test ecx, ecx
js 0x417f66
lea eax, [ebp - 8]
mov dword [ebp + 0x10], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp + 0x10]
push eax
lea eax, [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x417f6c
xor eax, eax
mov word [esi + 8], ax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418bf0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [esi + 0x18], ecx
ja 0x418c42
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [esi + 8]
mov esi, dword [esi]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x418c5a
mov ecx, esi
jmp 0x418c5f
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x418c8c
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x418c6e
mov eax, dword [eax]
jmp 0x418c52
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
jne 0x418c7e
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x418fe0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 0x14]
xor ecx, eax
imul ecx, ecx, 0x1000193
and ecx, edx
cmp dword [ebx + 0x18], ecx
ja 0x419034
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov esi, dword [ebx]
lea edx, [ecx*8]
mov ecx, dword [ebx + 8]
mov dword [esp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x419063
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x419063
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp dword [esi + 8], ecx
je 0x4190a7
cmp esi, eax
jne 0x419057
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x419091
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + 8]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x4190c3
mov dword [ecx], edi
mov eax, dword [ebx + 8]
mov dword [eax + edx + 4], edi
jmp 0x4190e5
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.00419100
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x4190cb
mov dword [ecx], edi
jmp 0x4190e5
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x4190e5
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.00419150
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x419a40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x419a53
mov esi, dword [esi]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x419a6a
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 1
push ebx
call fcn.004ac7a8
mov edi, eax
add esp, 8
test edi, edi
je 0x419ae3
push edi
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x419ada
lea eax, [ebp - 8]
mov dword [ebp + 8], 0
push eax
lea eax, [ebp + 8]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x419ada
cmp dword [ebp + 8], 0
je 0x419ada
push 0x10
call fcn.004a72c4
add esp, 4
test eax, eax
je 0x419ae3
mov edx, dword [ebp + 8]
movzx ecx, word [edx + 2]
push ecx
movzx ecx, word [edx]
push ecx
push edi
mov ecx, eax
call fcn.00419980
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.004a7dd8
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41a420
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4f5470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov dword [ebp - 0x224], eax
movzx eax, word [edi + 8]
mov word [ebp - 0x14], ax
movzx eax, word [edi + 0xa]
mov word [ebp - 0x12], ax
call esi
mov word [ebp - 0x10], ax
movzx eax, word [edi + 0xa]
mov word [ebp - 0xe], ax
movzx eax, word [edi + 8]
mov word [ebp - 0xc], ax
mov eax, 0x4e4
mov word [ebp - 0xa], ax
call esi
mov word [ebp - 8], ax
xor esi, esi
mov eax, 0x4e4
mov word [ebp - 6], ax
lea ebx, [ebx]
movzx eax, word [ebp + esi*2 - 0x12]
movzx ecx, word [ebp + esi*2 - 0x14]
add esi, 2
push ebx
push eax
push ecx
push 0x4efed8
push 0x104
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004a9d8b
add esp, 0x1c
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [edi + 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41a4f4
mov edx, dword [ebp - 0x220]
test edx, edx
jne 0x41a50e
cmp esi, 8
jb 0x41a490
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x41a538
mov ecx, dword [ebp - 0x224]
xor eax, eax
push eax
push edx
call fcn.00408730
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a7e44
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a540
mov ecx, dword [ebp - 0x224]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00408730
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a7e44
mov esp, ebp
pop ebp
ret 8