joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4133b0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cbd98
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 edi, dword [ebp + 0xc]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
movzx eax, byte [edi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
lea eax, [ebp - 0x20]
imul ebx, ecx, 0x1000193
push ebx
push edi
push eax
call fcn.004124e0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x41343c
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
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
cmp dword [0x517c7c], 0x6666666
je 0x4135a9
mov dword [ebp - 0x18], 0x517c78
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0x28
mov dword [ebp - 0x14], 0
call fcn.004a1f32
mov ecx, dword [edi]
lea edx, [edi + 4]
mov esi, eax
add esp, 4
lea eax, [esi + 8]
mov dword [ebp - 0x14], esi
mov dword [eax], ecx
lea ecx, [eax + 4]
mov dword [ebp - 0x10], eax
push edx
call fcn.00410ff0
mov dword [ebp - 4], 2
mov ecx, dword [0x517c7c]
mov edi, dword [0x517c90]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4f6090]
mov eax, edi
shr eax, 0x1f
cvtpd2ps xmm3, xmm0
movd xmm0, edi
cvtdq2pd xmm0, xmm0
movaps xmm2, xmm3
addsd xmm0, qword [eax*8 + 0x4f6090]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [0x517c74]
divss xmm2, xmm1
comiss xmm2, xmm0
jbe 0x413537
divss xmm3, xmm0
movaps xmm0, xmm3
call fcn.00408720
call fcn.004c7450
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp edi, ecx
jae 0x413519
cmp edi, 0x200
jae 0x413517
shl edi, 3
cmp edi, ecx
jae 0x413519
mov edi, ecx
push edi
call fcn.00413ad0
push ebx
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004124e0
mov ecx, dword [0x517c7c]
mov edx, dword [eax]
jmp 0x41353a
mov edx, dword [ebp - 0x20]
mov edi, dword [edx + 4]
inc ecx
mov dword [0x517c7c], ecx
mov dword [esi], edx
mov dword [esi + 4], edi
mov dword [edi], esi
mov dword [edx + 4], esi
mov eax, dword [0x517c8c]
mov ecx, dword [0x517c80]
and eax, ebx
mov dword [ebp - 0x14], 0
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [0x517c78]
jne 0x413572
mov dword [ecx + eax*8], esi
jmp 0x413581
cmp ebx, edx
jne 0x41357b
mov dword [ecx + eax*8], esi
jmp 0x413585
cmp dword [ecx + eax*8 + 4], edi
jne 0x413585
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov dword [ebp - 4], 0xffffffff
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
push str.unordered_map_set_too_long
call fcn.0048ad4a
int3
Function at 0x413ad0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc05d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
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 eax, 0x1fffffff
mov edi, 1
bsr ecx, eax
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x413c70
lea eax, [ecx - 1]
mov esi, dword [0x517c78]
or eax, edi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x517c80
lea eax, [edi + edi]
push eax
call fcn.00407bf0
lea eax, [edi - 1]
mov dword [0x517c90], edi
mov dword [0x517c8c], eax
mov dword [ebp - 0x18], 0x517c74
mov dword [ebp - 4], 0
mov ecx, dword [0x517c78]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x413c2c
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
mov eax, dword [0x517c80]
imul edi, edi, 0x1000193
and edi, dword [0x517c8c]
mov ebx, dword [eax + edi*8]
lea eax, [eax + edi*8]
mov dword [ebp - 0x10], eax
cmp ebx, esi
jne 0x413bb8
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x413c22
mov eax, dword [eax + 4]
mov edi, dword [ecx + 8]
cmp edi, dword [eax + 8]
jne 0x413bef
mov eax, dword [eax]
cmp eax, ecx
je 0x413be7
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x14], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x14]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], ecx
jmp 0x413c22
cmp ebx, eax
je 0x413bff
mov eax, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x413c4e
cmp ebx, eax
jne 0x413bf3
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x14], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x14]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ecx, edx
cmp edx, esi
jne 0x413b64
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x14], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x14]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
jmp 0x413c22
push str.invalid_hash_bucket_count
call fcn.0048ad4a
int3
Function at 0x41ac40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cccff
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x515080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.0048b3c7
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x41acf1
push eax
push esi
call fcn.0048b282
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.0048adaa
int3
Function at 0x41d0b0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd16d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
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 esi, ecx
test byte [esi + 0x58], 8
je 0x41d0f0
push dword [esi + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
and byte [esi + 0x58], 0xf7
mov ebx, dword [esi + 0x34]
test ebx, ebx
jne 0x41d101
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ebx, eax
mov dword [ebp - 0x70], ebx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push 0x5c
push 0
push eax
call fcn.004a3ba0
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
push 0x5c
push ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esi + 0x54]
mov eax, ecx
and eax, 0x30
cmp al, 0x30
jne 0x41d13d
mov dword [ebp - 0x5c], 0x2bc
jmp 0x41d14f
movzx eax, byte [ebp - 0x57]
test cl, 1
mov ecx, 1
cmove eax, ecx
mov byte [ebp - 0x57], al
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
or byte [esi + 0x58], 8
mov dword [esi + 0x30], eax
mov dword [ebp - 4], 0xffffffff
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 0x41d2c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov bl, 1
mov ecx, dword [edi + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x41d31c
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [edi + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0xfffffffe
call dword [sym.imp.USER32.dll_GetParent]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea ecx, [esp + 0xc]
push ecx
push eax
push 0x4e
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
shr ecx, 2
test bl, cl
je 0x41d352
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov edi, dword [edi + 4]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push edi
movzx eax, ax
push eax
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
push 1
push 0
push 0
push dword [edi + 0x28]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
jbe 0x41d381
or byte [edi + 0x58], 2
push 1
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0xc
ret
Function at 0x420150
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x4201c9
mov esi, dword [esp + 0x10]
mov ecx, 1
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x420183
push edi
mov ecx, esi
call fcn.00402540
push edi
push dword [esi]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x4201ab
mov ecx, dword [esi]
test ecx, ecx
je 0x4201af
push dword [ecx - 8]
push ecx
call fcn.004a7162
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x4201c9
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4201c9
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
push 0x80070057
call fcn.00402720
int3
Function at 0x421b70
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
sub esp, 0x2c
mov eax, dword [0x515080]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [esp + 0x34]
lea eax, [esp + 4]
push eax
push 0x24
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
push 0
push ebx
movups xmmword [esp + 0x1c], xmm0
movups xmmword [esp + 0x2c], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x421bd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004a1bc0
add esp, 0x2c
ret 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x40]
mov edi, eax
cmp dword [esp + 0x14], esi
je 0x421c24
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0xc]
push eax
push 0x24
lea eax, [esp + 0x18]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x421c53
cmp dword [esp + 0x14], esi
je 0x421c24
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
ja 0x421c3a
cmp dword [esp + 0x14], esi
jne 0x421be5
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004a1bc0
add esp, 0x2c
ret 8
pop edi
pop esi
mov eax, 0x102
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.004a1bc0
add esp, 0x2c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a1bc0
add esp, 0x2c
ret 8
Function at 0x422b90
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x4ce418
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x515080]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
call fcn.004046f0
mov ebx, eax
test ebx, ebx
je 0x422cb7
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 [edi], eax
mov dword [ebp - 4], 1
lea eax, [edi + 4]
mov dword [ebp - 0x10], eax
call fcn.004046f0
mov ebx, eax
test ebx, ebx
je 0x422cb7
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 [edi + 4], eax
mov byte [ebp - 4], 3
lea eax, [ebp]
push eax
push 0
push 0
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x422c8b
push str.WindowsPowerShell_v1.0powershell.exe
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x422c8b
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x422c8b
lea ecx, [ebp]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422c70
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00403890
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004a1bc0
lea esp, [ebp + 0x20c]
pop ebp
ret
push 0x80004005
call fcn.00402720
int3
Function at 0x423350
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ce555
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x515080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push 0
mov edx, dword [edx]
push eax
call fcn.00407020
add esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00423610
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 7
jbe 0x4233b4
mov edx, dword [edx]
test edx, edx
jne 0x4233bc
xor ecx, ecx
jmp 0x4233d0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4233c1
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00403890
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004040e0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004040e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1bc0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x426c20
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cec67
mov eax, dword fs:[0]
push eax
sub esp, 0x10
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
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], 0
lea eax, [esi + 0x70]
mov dword [esi], 0x4f0e3c
mov dword [ebp - 0x18], eax
mov dword [eax], 0x4f0e30
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x30], 0
mov dword [ebp - 4], 0
xor ecx, ecx
mov dword [eax], 0x4f0e34
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov word [eax + 0x40], cx
mov dword [ebp - 4], 1
lea ebx, [esi + 0x10]
mov eax, dword [esi]
mov dword [ebp - 0x14], 1
mov eax, dword [eax + 4]
mov dword [esi + eax], 0x4f0e38
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + esi - 4], eax
mov eax, dword [esi]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov ecx, dword [eax + 4]
add ecx, esi
push ecx
push ebx
call fcn.00427940
mov dword [ebp - 4], 3
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], 0x4f0e44
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
lea eax, [ecx - 0x70]
mov dword [ecx + esi - 4], eax
mov ecx, ebx
call fcn.00427740
mov byte [ebp - 4], 4
lea eax, [esi + 0x10]
lea ebx, [eax + 4]
mov dword [eax], 0x4f0e84
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov byte [eax + 0x48], 0
lea edi, [eax + 0x14]
mov byte [eax + 0x3e], 0
lea ecx, [eax + 0x18]
mov dword [eax + 0x10], esi
lea edx, [eax + 0x24]
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x40], eax
mov ebx, dword [ebp - 0x18]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ebx, dword [ebp - 0x10]
mov eax, dword [0x5182ac]
lea ecx, [ebx + 0x10]
mov edx, dword [0x5182b0]
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x44], edx
mov dword [ecx + 0x38], 0
mov byte [ebp - 4], 5
sub esp, 8
push dword [ebp + 8]
call fcn.00427450
test eax, eax
jne 0x426e01
mov eax, dword [ebx]
push 0
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, ebx
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.0042aa00
mov dword [ebp - 4], 0xffffffff
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 0x10
Function at 0x42ca50
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf87b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
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 ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, eax
cmp eax, 0x208
jae 0x42cc05
xor ecx, ecx
lea esi, [ebp - 0x218]
mov word [ebp + eax - 0x218], cx
cmp word [ebp - 0x218], cx
je 0x42cac8
nop dword [eax + eax]
add esi, 2
cmp word [esi], cx
jne 0x42cac0
mov ecx, str.ADVINST_LOGS
mov eax, 0x41
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x42cad4
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42cb1a
xor al, al
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 4
mov ecx, dword [edi + 0x28]
mov eax, 0x5c
mov word [esi], ax
add esi, 2
cmp dword [ecx - 0xc], 0
jne 0x42cbaa
lea ecx, [ebp - 0x21c]
call fcn.0042cc10
mov dword [ebp - 4], 0
cmp word [esi], 0
mov ecx, dword [eax]
je 0x42cb59
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0
jne 0x42cb50
movzx eax, word [ecx]
test ax, ax
je 0x42cb72
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x42cb63
xor eax, eax
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x42cbd7
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
jmp 0x42cbd7
cmp word [esi], 0
je 0x42cbb9
add esi, 2
cmp word [esi], 0
jne 0x42cbb0
movzx eax, word [ecx]
test ax, ax
je 0x42cbd2
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x42cbc3
xor eax, eax
mov word [esi], ax
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42cbe0
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00403890
mov al, 1
jmp 0x42cafc
call fcn.004a2092
int3
Function at 0x4351e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0dfd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
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 ebx, ecx
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push esi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp byte [ebx + 0x40], 0
mov dword [ebp - 0x1c], eax
je 0x435247
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
mov byte [ebx + 0x10], 1
mov dword [ebp - 0x20], eax
call fcn.004046f0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x435324
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e2514]
mov ecx, dword [ebp - 0x14]
call esi
add eax, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.00434f90
mov ecx, dword [ebp - 0x1c]
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x10], 0
test ecx, ecx
je 0x4352b1
cmp dword [ebp - 0x10], ecx
je 0x4352b1
mov ebx, 0x2ee2
jmp 0x4352d3
test ebx, ebx
jne 0x4352d3
mov ebx, dword [eax + 4]
cmp ebx, dword [edi + 4]
je 0x4352d1
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e2514]
mov ecx, edi
call esi
mov dword [edi + 4], ebx
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x43530e
mov edi, dword [ecx]
push ecx
mov edx, dword [edi]
mov esi, dword [edx + 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 0x10
push 0x80004005
call fcn.00402720
int3