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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
mov eax, ecx
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov edi, edx
mov dword [ebp - 4], eax
jb 0x404b7b
mov edi, dword [edx]
mov ebx, dword [edx + 0x10]
xor ecx, ecx
mov esi, 0x811c9dc5
test ebx, ebx
je 0x404ba4
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x404b90
mov eax, dword [ebp - 4]
push esi
push edx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.00403f60
pop edi
pop esi
pop ebx
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x404bc4
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 4]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x405d20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46005d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov eax, ecx
push esi
push edi
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], 0x47005c
call fcn.0043663a
mov esi, eax
add esp, 4
test esi, esi
je 0x405d68
push 1
call fcn.0041f0d8
add esp, 4
mov dword [esi + 4], eax
jmp 0x405d6a
xor esi, esi
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea edx, [eax + 0x18]
lea ecx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], edx
mov dword [eax + 0x2c], ecx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [edx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx], 0
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0x470098
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x14]
mov dword [eax + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov dword [eax + 0x20], edx
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x2c], ecx
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [ecx], 0
mov dword [edx + 0x4c], 0
mov eax, dword [0x4880d0]
mov ecx, dword [0x4880d4]
mov dword [edx + 0x40], eax
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x406960
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [edi], 0x61707865
mov dword [edi + 4], 0x3320646e
mov dword [edi + 8], 0x79622d32
mov dword [edi + 0xc], 0x6b206574
movzx edx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi]
shl edx, 8
or edx, eax
mov dword [edi + 0x10], edx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x14], ecx
movzx ecx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x18], ecx
movzx ecx, byte [esi + 0xf]
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x1c], ecx
movzx ecx, byte [esi + 0x13]
movzx eax, byte [esi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x10]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x20], ecx
movzx ecx, byte [esi + 0x17]
movzx eax, byte [esi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x24], ecx
movzx ecx, byte [esi + 0x1b]
movzx eax, byte [esi + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x18]
mov edx, dword [ebp + 0xc]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x28], ecx
movzx ecx, byte [esi + 0x1f]
movzx eax, byte [esi + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x34], 0
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x38], ecx
movzx ecx, byte [edx + 7]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov eax, edi
mov dword [edi + 0x3c], ecx
pop edi
pop esi
pop ebp
ret 8
Function at 0x406af0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46020f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.0041e60b
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 0x406b96
push eax
push esi
call fcn.0041f1d8
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.0041e811
int3
Function at 0x40c2c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4613b5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe4
push ebx
push esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push 0
cmovae eax, dword [ebp + 0xc]
push ecx
push 0
push 0x103
push 0
push 0
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x40c417
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
push str.Service
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
call fcn.00441a9f
add esp, 4
lea ecx, [ebp - 0x24]
push eax
push str.Service
call fcn.00411b00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x14]
cmovae ecx, dword [ebp - 0x24]
add eax, eax
push eax
push ecx
push 1
push esi
push esi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x40c3c9
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x10]
cmp ecx, 8
jb 0x40c3b1
mov edx, dword [ebp - 0x24]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c3a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c455
push ecx
push edx
call fcn.0043666a
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov bl, 1
mov word [ebp - 0x24], ax
jmp 0x40c434
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
cmp ecx, 8
jb 0x40c403
mov edx, dword [ebp - 0x24]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40c3f9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c455
push ecx
push edx
call fcn.0043666a
add esp, 8
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
push 0
push 0x64
lea eax, [ebp - 0xf0]
push eax
push 0
push esi
push 0
push 0x1000
call dword [sym.imp.KERNEL32.DLL_FormatMessageW]
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00410af0
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0043b67f
int3
Function at 0x40dc40
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4617a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc28
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov edi, dword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x434]
push 0x200
push eax
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.DLL_FindFirstVolumeW]
mov ebx, eax
nop dword [eax + eax]
lea eax, [ebp - 0x1c]
push eax
push 0x400
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x40dd8c
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
je 0x40dd8c
test dword [ebp - 0x18], 0x80000
jne 0x40dd8c
lea eax, [ebp - 0xc34]
push eax
call fcn.00441a9f
add esp, 4
lea ecx, [ebp - 0xd]
push ecx
lea ecx, [ebp - 0xc34]
lea eax, [ecx + eax*2]
push eax
mov eax, ecx
lea ecx, [ebp - 0x34]
push eax
call fcn.00402790
mov esi, eax
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x40dd77
push 0x18
push esi
push eax
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.00439090
add esp, 0xc
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
add dword [edi + 4], 0x18
jmp 0x40dd80
push esi
push eax
mov ecx, edi
call fcn.00403a70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00410a70
push 0x200
lea eax, [ebp - 0x434]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextVolumeW]
test eax, eax
jne 0x40dcb0
push ebx
call dword [sym.imp.KERNEL32.DLL_FindVolumeClose]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40e770
Capabilities:
Create process on windows
Manipulate boot configuration
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46193e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
call fcn.0040e240
lea eax, [ebp - 0x2c]
push eax
call fcn.0040dc40
add esp, 4
mov dword [ebp - 4], edi
xor ecx, ecx
mov esi, dword [ebp - 0x2c]
mov eax, 0x2aaaaaab
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x28]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40e8b2
xor ebx, ebx
nop dword [eax]
lea ecx, [ebp - 0x48]
lea eax, [ebx + esi]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd]
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00404bd0
add esp, 0xc
lea ecx, [ebp - 0x48]
or edi, 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x30], 0
push 2
call fcn.00417020
mov byte [ebp - 4], 0
and edi, 0xfffffffe
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 2
lea eax, [ebp - 0x48]
mov esi, dword [0x487fc0]
cmp esi, dword [0x487fc4]
je 0x40e872
push 0x18
push eax
push esi
mov dword [ebp - 0x20], esi
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00439090
xor eax, eax
mov dword [ebp - 0x38], 0
add esp, 0xc
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x18], eax
mov byte [ebp - 4], 2
add dword [0x487fc0], 0x1c
jmp 0x40e87e
push eax
push esi
mov ecx, 0x487fbc
call fcn.00403be0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00410af0
mov ecx, dword [ebp - 0x28]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x2c]
add ebx, 0x18
inc dword [ebp - 0x14]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x14], eax
jb 0x40e7d0
call fcn.0040c990
cmp dword [0x486290], 8
mov esi, 0x48627c
push 0xf003f
cmovae esi, dword [0x48627c]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 2
mov ebx, eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x40e906
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 4
push 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push edi
call esi
push str.bcdedit__deletevalue_safeboot
call fcn.0043be60
push str.C:WindowsSystem32_bcdedit.exe__deletevalue_safeboot
call fcn.0043be60
push str.C:WindowsSysNative_bcdedit.exe__deletevalue_safeboot
call fcn.0043be60
add esp, 0xc
push 0
push 0
push str._C_shutdown__r__f__t_0
push 0x470558
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00409310
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40eef0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4619e5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push str.DefaultIcon
push 0x4861a4
push eax
call fcn.004033e0
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x103
push 0
push 0
push 0
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40efaa
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae ecx, dword [ebp + 8]
add eax, eax
push eax
push ecx
push 1
push 0
push 0x47041c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
push 0
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x40efc5
push 0
push 0x64
lea ecx, [ebp - 0xf4]
push ecx
push 0
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.DLL_FormatMessageW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00410af0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00410af0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x412520
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461dfe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push ebx
push esi
push 0
mov dword [ebp - 0x10], 0
push 0
mov dword [eax], 0
mov dword [eax + 4], 0x4865a8
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov esi, eax
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436678
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 1
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
test eax, eax
jne 0x4125ea
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 4], 0x4865a8
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 2
mov dword [esi + 0x18], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], al
jmp 0x4126d0
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00441a9f
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
push ebx
call fcn.00411b00
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c]
mov esi, dword [ebp + 8]
push 0x18
push eax
push esi
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00439090
xor eax, eax
mov dword [ebp - 0x1c], 0
add esp, 0xc
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 4
mov ecx, esi
push 1
mov dword [esi + 0x18], eax
call fcn.00417020
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x4126b9
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4126af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4126ef
push ecx
push edx
call fcn.0043666a
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], al
test ebx, ebx
je 0x4126dd
push ebx
call fcn.00436681
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0043b67f
int3
Function at 0x415d20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fd5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x10], 0
push esi
mov esi, ecx
push edi
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0043663a
mov edi, eax
add esp, 4
test edi, edi
je 0x415db2
push 1
call fcn.0041f0d8
add esp, 4
mov dword [edi + 4], eax
jmp 0x415db4
xor edi, edi
mov eax, dword [ebp + 8]
push ebx
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
mov edi, dword [eax + 4]
mov ecx, edi
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 1
push eax
call fcn.00405650
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov edx, 1
mov bl, al
mov dword [ebp - 0x10], edx
and edx, 0xfffffffe
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x415e28
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x415e28
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
pop ebx
jne 0x415e45
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x415e66
cmp byte [ebp + 0xc], 0
je 0x415e54
push esi
call fcn.0042318e
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x415e72
mov esi, str.ios_base::badbit_set
jmp 0x415e82
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.00416380
add esp, 8
lea ecx, [ebp - 0x2c]
push eax
push esi
call fcn.00407360
push 0x482b5c
lea eax, [ebp - 0x2c]
push eax
call fcn.004397ec
int3
Function at 0x419670
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4625fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x428]
push eax
mov dword [ebp - 0x10], 0
push 0x1ff
mov dword [esi], 0
mov dword [esi + 4], 0x4865a8
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x419794
cmp eax, 0x1ff
ja 0x419794
xor eax, eax
mov dword [ebp - 0x28], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x428]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.00441a9f
add esp, 4
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00411b00
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
mov esi, dword [ebp + 8]
mov ecx, esi
push 2
push eax
call fcn.00408620
mov dword [ebp - 0x10], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x41976f
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x419765
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4197f0
push ecx
push edx
call fcn.0043666a
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, esi
mov dword [ebp - 0x14], 7
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi], eax
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [esi + 4], 0x4865a8
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [ebp - 4], 1
mov dword [eax + 0x18], ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], 1
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0043b67f
int3

Function at 0x41deb0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45fd8e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x10], 0x104
push eax
push 2
call dword [sym.imp.KERNEL32.DLL_GetComputerNameExW]
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], 0
lea ecx, [eax + eax]
mov dword [esi + 0x14], 0
lea eax, [ebp - 0x21c]
mov dword [esi], 0
mov dword [esi + 0x10], 0
add eax, ecx
mov dword [esi + 0x14], 7
mov word [esi], dx
lea edx, [ebp - 0x21c]
cmp edx, eax
je 0x41df3f
sar ecx, 1
mov eax, edx
push ecx
push eax
mov ecx, esi
call fcn.00411b00
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], 1
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x44dd23
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x476118
push 0x476110
push str.FlsAlloc
push 0x1e
call fcn.0044db50
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44dd57
push dword [ebp + 8]
mov ecx, esi
call dword [0x4652c4]
call esi
jmp 0x44dd5d
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44dda1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x476128
push 0x476120
push str.FlsGetValue
push 0x20
call fcn.0044db50
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44ddd8
push dword [ebp + 8]
mov ecx, esi
call dword [0x4652c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsGetValue]