joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407890
Capabilities:
Create directory
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9ca5
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x515080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [0x517dc4]
cmp eax, dword [esi + 4]
jle 0x4079a8
push 0x517dc4
call fcn.004a1c6f
add esp, 4
cmp dword [0x517dc4], 0xffffffff
jne 0x4079a8
mov dword [ebp - 4], 0
push 0x38
mov dword [ebp - 0x5c], 0x517dc8
mov dword [0x517dc8], 0
mov dword [0x517dcc], 0
mov dword [0x517dd0], 0
call fcn.004a1f32
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [0x517dcc], eax
mov byte [ebp - 4], 1
mov dword [0x517dd4], 0
mov dword [0x517dd8], 0
mov dword [0x517ddc], 0
mov byte [ebp - 4], 2
mov ecx, 0x517dd4
push dword [0x517dcc]
mov dword [0x517de0], 7
push 0x10
mov dword [0x517de4], 8
mov dword [0x517dc8], 0x3f800000
call fcn.00407bf0
mov byte [ebp - 4], 0
push 0x4e0d40
call fcn.004a1f0f
mov dword [ebp - 4], 0xffffffff
push 0x517dc4
call fcn.004a1c1e
add esp, 8
mov eax, dword [0x517db4]
cmp eax, dword [esi + 4]
jle 0x4079f0
push 0x517db4
call fcn.004a1c6f
add esp, 4
cmp dword [0x517db4], 0xffffffff
jne 0x4079f0
mov dword [ebp - 4], 5
push 0x4e0ca0
call fcn.004a1f0f
mov dword [ebp - 4], 0xffffffff
push 0x517db4
call fcn.004a1c1e
add esp, 8
cmp dword [edi + 0x14], 7
mov esi, edi
mov ebx, dword [edi + 0x10]
jbe 0x4079fd
mov esi, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
add ebx, ebx
je 0x407a19
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x407a08
push edx
push edi
lea eax, [ebp - 0x68]
push eax
call fcn.00408620
mov esi, dword [0x517dcc]
mov eax, dword [eax + 4]
test eax, eax
cmovne esi, eax
cmp esi, dword [0x517dcc]
jne 0x407a41
mov esi, 0x515b38
jmp 0x407a44
add esi, 0x20
cmp dword [esi + 0x10], 0
je 0x407a64
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x407a54
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, esi
jmp 0x407ae8
cmp dword [edi + 0x14], 7
mov edx, edi
jbe 0x407a6e
mov edx, dword [edi]
push 0
lea ecx, [ebp - 0x58]
call fcn.00406d10
add esp, 4
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x40]
push edi
call fcn.004048c0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x58]
push eax
call fcn.004048c0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00407cf0
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0xc
mov ecx, eax
call fcn.004040e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x40]
call fcn.004040e0
mov esi, dword [ebp - 0x60]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004040e0
lea eax, [esi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1bc0
mov esp, ebp
pop ebp
ret
Function at 0x4086e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x40870a
mov edx, dword [esp + 0xc]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x4086f4
pop edi
mov eax, edx
pop esi
ret
mov eax, dword [esp + 0xc]
pop edi
pop esi
ret

Function at 0x408810
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x4c9efd
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x515080]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x105
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40895b
cmp eax, 0x105
jae 0x40895b
call fcn.004046f0
mov ebx, eax
test ebx, ebx
je 0x408980
mov eax, dword [ebx]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, ebx
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403700
test al, al
jne 0x4088cc
lea ecx, [ebp]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4088b0
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00403890
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push 1
push 0x4ef1fc
call fcn.004025b0
test edi, edi
jne 0x4088ea
xor ecx, ecx
jmp 0x4088ff
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4088f0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.004025b0
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.004a310c
add esp, 8
test eax, eax
jne 0x40891f
xor ebx, ebx
jmp 0x40892c
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x408957
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov eax, ebx
jmp 0x40895d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004a1bc0
lea esp, [ebp + 0x210]
pop ebp
ret
push 0x80004005
call fcn.00402720
int3
Function at 0x408fc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca06d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x515080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
je 0x4090b8
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
push dword [ebx]
mov dword [ebp - 0x10], 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4090b8
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4090b8
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a1f67
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push esi
push 0
push 0
push dword [ebx]
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x409066
xor bl, bl
jmp 0x40908b
mov eax, esi
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409070
mov ecx, dword [ebp + 0xc]
sub eax, edx
sar eax, 1
push eax
push esi
call fcn.00403890
mov bl, 1
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.004a1f62
add esp, 4
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4090d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.004a2cb0
push 0xffffffffffffffff
push 0x4ca0ad
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x515080]
xor eax, ebp
mov dword [ebp + 0x8000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
cmp dword [ecx + 4], 0
mov eax, dword [ebp + 0x800c]
mov dword [ebp - 0x24], eax
jne 0x409126
xor al, al
jmp 0x409226
cmp byte [ebp + 0x8010], 0
je 0x409139
mov ecx, eax
call fcn.00409700
mov ecx, dword [ebp - 0x18]
xor ebx, ebx
nop dword [eax + eax]
push 0
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], 0x3fff
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push ebx
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x409211
mov edi, dword [ebp - 0x10]
call fcn.004046f0
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40925a
mov ecx, dword [eax]
push 2
push edi
mov esi, dword [ecx]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x1c]
call esi
mov esi, eax
test esi, esi
je 0x409255
lea ecx, [esi + 0x10]
mov dword [ebp - 0x20], ecx
test edi, edi
js 0x40924b
cmp edi, dword [ecx - 8]
jg 0x40924b
mov dword [ecx - 0xc], edi
xor eax, eax
add edi, edi
mov word [edi + ecx], ax
test edi, edi
je 0x4091d3
push edi
lea eax, [ebp]
push eax
push ecx
call fcn.004a3620
add esp, 0xc
mov dword [ebp - 4], 1
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
push eax
call fcn.004097c0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40920e
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x14]
inc ebx
test eax, eax
jne 0x40921e
mov ecx, dword [ebp - 0x18]
jmp 0x409140
cmp eax, 0x103
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8000]
xor ecx, ebp
call fcn.004a1bc0
lea esp, [ebp + 0x8004]
pop ebp
ret 8
push 0x80070057
call fcn.00402720
call fcn.00402740
push 0x80004005
call fcn.00402720
int3
Function at 0x40a810
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca3bf
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x515080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x40a94f
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 0x18], eax
call fcn.004046f0
mov edi, eax
test edi, edi
je 0x40a94f
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
push edi
push dword [0x516d48]
mov dword [ebp - 0x14], 3
call fcn.0040b110
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jne 0x40a8f7
push 0
push edi
push dword [0x516d48]
lea ecx, [ebp - 0x10]
call fcn.0040b110
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.00409b90
mov eax, 3
mov dword [ebp - 0x14], eax
and eax, 0xfffffffd
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40a93b
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402720
int3
Function at 0x40c3a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca79d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x515080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x14], 0x4ed624
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x40c3fd
xor edi, edi
jmp 0x40c408
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0x4ed624
test esi, esi
je 0x40c428
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c6d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca89d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x515080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
movzx ebx, cx
push 0x1004
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x40c725
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a1f67
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push edi
push esi
push 0x1004
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x40c760
xor bl, bl
jmp 0x40c7a8
dec eax
lea ecx, [ebp - 0x14]
push eax
push esi
call fcn.00409c10
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push eax
call fcn.00409b90
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40c7a6
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x10]
mov bl, 1
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.004a1f62
add esp, 4
mov dword [ebp - 0x10], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ead0
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x4cad75
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x515080]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push ecx
mov byte [edx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x24], 0x4ed624
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x40ec61
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ec61
test ebx, ebx
je 0x40ec61
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push 0x10000
call fcn.00408760
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x40eb80
xor bl, bl
jmp 0x40ec4b
xor edi, edi
mov byte [ebp + 0x68], 0
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
mov dword [ebp], 0x67452301
mov dword [ebp + 4], 0xefcdab89
mov dword [ebp + 8], 0x98badcfe
mov dword [ebp + 0xc], 0x10325476
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x10]
push eax
push 0x10000
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ebf5
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x40ebf5
lea eax, [ecx + edi]
cmp eax, ebx
ja 0x40ebe6
push ecx
push esi
lea ecx, [ebp]
call fcn.004104c0
add edi, dword [ebp - 0x10]
jmp 0x40ebb0
sub ebx, edi
lea ecx, [ebp]
push ebx
push esi
mov dword [ebp - 0x10], ebx
call fcn.004104c0
lea ecx, [ebp]
call fcn.00410590
cmp byte [ebp + 0x68], 0
jne 0x40ec07
xor bl, bl
jmp 0x40ec48
mov esi, dword [ebp - 0x1c]
xor edi, edi
nop dword [eax]
mov dl, byte [ebp + edi + 0x58]
mov cl, dl
shr cl, 4
cmp cl, 0xa
sbb al, al
and dl, 0xf
and al, 0xd9
add al, 0x57
add al, cl
cmp dl, 0xa
mov byte [esi + edi*2], al
sbb al, al
and al, 0xd9
add al, 0x57
add al, dl
mov byte [esi + edi*2 + 1], al
inc edi
cmp edi, 0x10
jl 0x40ec10
mov byte [esi + 0x20], 0
mov bl, 1
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 0
push esi
call fcn.004a1f62
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x40ec63
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], 0x4ed624
test edi, edi
je 0x40ec83
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.004a1bc0
lea esp, [ebp + 0x70]
pop ebp
ret
Function at 0x40f8c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb0d5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x515080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040f270
test al, al
je 0x40f907
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.0040f4b0
cmp dword [ebp - 0x28], 0
jle 0x40fac7
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00402750
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
xor eax, eax
mov ecx, dword [ebp - 0x28]
dec ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], ecx
lea ebx, [eax + 1]
cmp ecx, ebx
jle 0x40fa72
lea ecx, [esi - 0x10]
call fcn.00402750
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
push 1
push 0x4ef1fc
call fcn.004025b0
test ebx, ebx
js 0x40fac7
cmp ebx, dword [ebp - 0x28]
jge 0x40fac7
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x18]
mov eax, dword [eax + ebx*4]
push dword [eax - 0xc]
push eax
call fcn.004025b0
mov edi, dword [ebp - 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40f9da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 0xb7
je 0x40f9da
cmp dword [ebp - 0x1c], 1
jne 0x40fa3a
push 1
push 0x4ef1fc
lea ecx, [ebp - 0x10]
call fcn.004025b0
cmp ebx, dword [ebp - 0x28]
jge 0x40fac7
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x10]
mov eax, dword [eax + ebx*4]
push dword [eax - 0xc]
push eax
call fcn.004025b0
mov byte [ebp - 4], 2
lea ecx, [edi - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40fa2c
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x10]
inc ebx
cmp ebx, dword [ebp - 0x20]
jge 0x40fa6f
jmp 0x40f970
cmp ebx, 1
jle 0x40fa47
lea ecx, [ebp - 0x10]
call fcn.0040ef90
mov byte [ebp - 4], 2
lea ecx, [edi - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40fa6f
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4e2514]
mov ecx, ebx
call edi
mov eax, dword [ebp - 0x14]
xor ebx, ebx
cmp eax, 0xb7
cmovne ebx, eax
mov byte [ebp - 4], 0
lea ecx, [esi - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40faa4
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00409700
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8000000b
call fcn.00402720
int3
Function at 0x410160
Capabilities:
Delete file
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb1a5
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x515080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040fc10
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
mov ebx, dword [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x41021e
push eax
lea ecx, [ebp - 0x14]
call fcn.00408760
mov esi, dword [ebp - 0x14]
test al, al
jne 0x4101d1
mov edi, 8
jmp 0x410226
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41021e
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4ef1fc
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x410226
cmp dword [ebp - 0x24], 0
je 0x410226
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
test ecx, ecx
je 0x410210
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x410226
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x410226
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 0
cmp byte [ebp - 0x2c], 0
je 0x410237
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.004a1f62
add esp, 4
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.004a1f62
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411d20
Capabilities:
Hash data using fnv

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
push edx
lea eax, [esp + 8]
push eax
call fcn.004124e0
mov eax, dword [esp + 4]
test eax, eax
je 0x411d76
add eax, 0xc
add esp, 8
ret 4
push str.invalid_unordered_map_K__T__key
call fcn.0048ad6a
int3

Function at 0x412c30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [esp + 0xc]
mov ecx, 0
sub esi, edi
sar esi, 1
add esi, esi
je 0x412c61
nop dword [eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x412c50
pop edi
mov eax, edx
pop esi
ret 8