joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40542c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40565c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4054af
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40565c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4054af
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405678
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405538
xor eax, eax
push ebp
push 0x405531
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405274
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405516
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405698
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405516
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405538
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405652
cmp byte [ebp - 0xd], 0
jne 0x40557f
cmp byte [ebp - 0x12], 0
je 0x405652
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405598
dec ebx
cmp byte [ebx], 0x2e
je 0x4055a7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405597
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405652
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4055e4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405652
cmp byte [ebp - 0xd], 0
je 0x405652
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405652
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ce8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405d4e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404560
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f68
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d38
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d55
lea eax, [ebp - 0x10]
call fcn.004042f0
ret

Function at 0x409ee0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x409f19
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043e0
jmp 0x409f22
mov eax, ebx
mov edx, esi
call fcn.00404344
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409f2c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x409f4d
mov al, byte [esp]
jmp 0x409f4f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b334
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b398
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404560
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00407454
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b39f
lea eax, [ebp - 0xc]
call fcn.004042f0
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x922303
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x36935a8e
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x412fc5
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x80000003
mov dword [ebp + 0x5060], eax
mov esi, 0x41b224
lea edi, [ebp + 0x5070]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, 0x20202020
mov cl, 0x36
rep stosd dword es:[edi], eax
push 0xffffffffffffff9f
call fcn.00413137
cmp dword [esp + 4], 0xffffff9b
jne fcn.00412ffc
ret 4

Function at 0x412ffc
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov ax, 0x20
mov word [ebp + 0x190fc], ax
mov esi, 0x41d680
mov dword [ebp - 0x14], esi
lea eax, [ebp + 0x5008]
push eax
add eax, 0x60
push eax
push 0
push 0x3f
push 0
add eax, 0x14094
push eax
push 0
add eax, 0xfffec07c
push eax
mov eax, dword [ebp + 0x5060]
push eax
mov al, 9
call sub.ADVAPI32.dll_RegCreateKeyExA
test edx, 0x341e
mov dword [ebp + 0x5058], eax
cmp dword [esp + 4], 0xffffff9c
jne fcn.00413052
ret 4

Function at 0x413052
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 1
mov dword [ebp + 0x5280], eax
mov edi, dword [ebp + 0x5280]
cmp byte [ebp + edi + 0x5177], 0
je 0x413081
cmp dword [ebp + 0x5280], 0x100
jg 0x413081
inc dword [ebp + 0x5280]
jmp 0x41305d
dec dword [ebp + 0x5280]
mov esi, 0x41d6d0
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 0x5280]
push eax
lea eax, [ebp + 0x5178]
push eax
mov eax, dword [ebp + 0x5278]
push eax
push 0
lea eax, [ebp + 0x5020]
push eax
mov eax, dword [eax + 0x48]
push eax
mov al, 6
call sub.ADVAPI32.dll_RegSetValueExA
test edx, 0x33a2
mov dword [ebp + 0x5058], eax
cmp dword [esp + 4], 0xffffff9d
jne 0x4130ce
ret 4
mov esi, 0x41d708
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 0x5280]
push eax
lea eax, [ebp + 0x5170]
push eax
mov eax, dword [ebp + 0x5278]
push eax
push 0
lea eax, [ebp + 0x5020]
push eax
mov eax, dword [eax + 0x48]
push eax
mov al, 6
call sub.ADVAPI32.dll_RegSetValueExA
test edx, 0x335b
mov dword [ebp + 0x5058], eax

Function at 0x41310b
Capabilities:
Query or enumerate registry value

Disassembly:
mov esi, 0x41b138
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 0x5068]
push eax
mov al, 1
call sub.ADVAPI32.dll_RegCloseKey
test edx, 0x3339
mov dword [ebp + 0x5058], eax
cmp dword [esp + 4], 0xffffff9e
jne fcn.00413137
ret 4

Function at 0x413137
Capabilities:
Query or enumerate registry value

Disassembly:
mov esi, 0x41d740
mov dword [ebp - 0x14], esi
lea eax, [ebp + 0x5068]
push eax
push 0x3f
push 0
add eax, 8
push eax
mov eax, dword [eax - 0x10]
push eax
mov al, 5
call sub.ADVAPI32.dll_RegOpenKeyExA
test edx, 0x3301
mov dword [ebp + 0x5058], eax
cmp dword [esp + 4], 0xffffff9f
jne fcn.0041316f
ret 4

Function at 0x41316f
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x100
mov dword [ebp + 0x5280], eax
mov esi, 0x41d770
mov dword [ebp - 0x14], esi
lea eax, [ebp + 0x5280]
push eax
add eax, 0xfffffef8
push eax
add eax, 0x100
push eax
push 0
add eax, 0xfffffda8
push eax
mov eax, dword [eax + 0x48]
push eax
mov al, 6
call sub.ADVAPI32.dll_RegQueryValueExA
test edx, 0x32b2
mov dword [ebp + 0x5058], eax
cmp dword [esp + 4], 0xffffffa0
jne fcn.004131be
ret 4
Function at 0x401620
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x210
mov eax, dword [0x41c028]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x40169a
push edi
push 0x105
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jbe 0x401696
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 2
push 0x10
push 0xf01ff
push str.WinToUSB_Fix_Server
push str.WinToUSBFix
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
je 0x401696
push eax
call edi
push esi
call edi
pop edi
call fcn.00401730
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
call fcn.00409551
add esp, 0x210
ret

Function at 0x4016c0
Capabilities:
Delete service
Query service status

Disassembly:
sub esp, 0x1c
push edi
call fcn.004017a0
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x401720
push ebx
push esi
push 0x10004
push str.WinToUSBFix
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40171b
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401718
cmp dword [esp + 0x10], 1
jne 0x401718
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret

Function at 0x401730
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x1c
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x40178c
push ebx
push esi
push 0x14
push str.WinToUSBFix
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x401787
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401784
cmp dword [esp + 0x10], 1
jne 0x401784
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret

Function at 0x4017a0
Capabilities:
Query service status
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4017ff
push ebx
push esi
push 0x24
push str.WinToUSBFix
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x4017fa
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4017f7
cmp dword [esp + 0x10], 4
jne 0x4017f7
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret
Function at 0x401a90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 8
push ebx
push esi
xor esi, esi
push edi
mov ebx, eax
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
cmp ebx, esi
jne 0x401ae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push esi
push esi
push eax
call fcn.004148f0
mov esi, eax
add esi, 0x260000
mov edi, edx
adc edi, 0xa
push edi
push esi
push 0x27
push str..FilePublic.cpp
push str._S__d_nRet0x_016llX_n
call fcn.004019b0
add esp, 0x14
mov eax, esi
mov edx, edi
pop edi
pop esi
pop ebx
add esp, 8
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401b1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push esi
push esi
push eax
call fcn.004148f0
mov esi, eax
add esi, 0x2e0000
mov edi, edx
adc edi, 0x15
push edi
push esi
push 0x2f
jmp 0x401acc
test eax, 0x800
je 0x401bc9
push esi
push esi
push 3
push esi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401b69
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push esi
push esi
push eax
call fcn.004148f0
mov esi, eax
add esi, 0x410000
mov edi, edx
adc edi, 0x70
push edi
push esi
push 0x42
jmp 0x401acc
push esi
lea eax, [esp + 0x14]
push eax
push esi
push esi
push 2
lea ecx, [esp + 0x20]
push ecx
push 0x9c040
push ebx
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x401bc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push esi
push esi
push eax
call fcn.004148f0
mov esi, eax
mov edi, edx
add esi, 0x500000
adc edi, 0x15
push edi
push esi
push 0x51
push str..FilePublic.cpp
push str._S__d_nRet0x_016llX_n
call fcn.004019b0
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, edi
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
Function at 0x401be0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x14]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ebx
cmp ecx, ebx
jne 0x401c1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push ebx
push ebx
push eax
call fcn.004148f0
mov esi, eax
add esi, 0x700000
mov edi, edx
adc edi, 0xa
push edi
push esi
push 0x71
jmp 0x401d88
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], ebx
call fcn.00402b60
movzx ebp, dx
mov ecx, ebx
add esp, 4
or ecx, ebp
mov edi, edx
mov esi, eax
mov dword [esp + 0x1c], edi
je 0x401c5d
push edi
push esi
push 0x4c2
push str..FilePublic.cpp
push str._S__d_nRet0x_016llX_n
call fcn.004019b0
add esp, 0x14
or ebx, ebp
jne 0x401d9a
cmp dword [esp + 0x14], ebx
jne 0x401c94
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push ebx
push ebx
push eax
call fcn.004148f0
mov esi, eax
add esi, 0x7c0000
mov edi, edx
adc edi, 0x7f
push edi
push esi
push 0x7d
jmp 0x401d88
mov ebp, dword [esp + 0x24]
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401cd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.004148f0
mov esi, eax
add esi, 0x840000
mov edi, edx
adc edi, 0x15
push edi
push esi
push 0x85
jmp 0x401d88
test bl, 1
je 0x401d15
mov edx, ebx
and edx, 0xfffffffe
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x401d15
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.004148f0
mov esi, eax
add esi, 0x8e0000
mov edi, edx
adc edi, 0x15
push edi
push esi
push 0x8f
jmp 0x401d88
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test ebx, 0x4000
je 0x401d61
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
test eax, eax
jne 0x401d61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.004148f0
mov esi, eax
add esi, 0x9a0000
mov edi, edx
adc edi, 0x15
push edi
push esi
push 0x9b
jmp 0x401d88
test ebx, 0x800
je 0x401d9a
mov eax, ebp
call fcn.00401a90
mov esi, eax
movzx ecx, dx
xor eax, eax
or eax, ecx
mov edi, edx
mov dword [esp + 0x1c], edi
je 0x401d9a
push edi
push esi
push 0xa6
push str..FilePublic.cpp
push str._S__d_nRet0x_016llX_n
call fcn.004019b0
add esp, 0x14
mov edx, edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x402920
Capabilities:
Create directory

Disassembly:
sub esp, 0x418
mov eax, dword [0x41c028]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push ebp
mov ebp, dword [esp + 0x424]
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
xor esi, esi
xor edi, edi
mov word [esp + 0x1c], ax
call fcn.0040e6d0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x22e]
push eax
mov word [esp + 0x230], dx
call fcn.0040e6d0
add esp, 0x18
test ebp, ebp
jne 0x4029aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push edi
push edi
push eax
call fcn.004148f0
mov esi, eax
add esi, 0x45b0000
mov edi, edx
adc edi, 0xa
push edi
push esi
push 0x45c
jmp 0x402b2f
push ebp
lea ecx, [esp + 0x14]
push 0x104
push ecx
call fcn.00409560
lea eax, [esp + 0x1c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4029c4
sub eax, edx
sar eax, 1
mov edx, 0x5c
cmp dx, word [esp + eax*2 + 0xe]
jne 0x4029fc
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4029e6
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0xe], cx
mov edx, 0x5c
push 0x418ebc
cmp dx, word [esp + 0x14]
je 0x402a14
lea eax, [esp + 0x14]
push eax
jmp 0x402a19
lea ecx, [esp + 0x1c]
push ecx
call fcn.00409cdf
add esp, 8
test eax, eax
jne 0x402a53
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.004148f0
mov esi, eax
add esi, 0x4810000
mov edi, edx
adc edi, 0xd
push edi
push esi
push 0x482
jmp 0x402b2f
push 0x418ebc
push 0
call fcn.00409cdf
add esp, 8
test eax, eax
jne 0x402a72
push eax
push eax
push 0x489
jmp 0x402b2f
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x418ebc
push 0
call fcn.00409cdf
add esp, 8
test eax, eax
je 0x402af2
lea edx, [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
push ebp
lea eax, [esp + 0x220]
push 0x104
push eax
call fcn.00409d8a
add esp, 0x10
push 0
lea ecx, [esp + 0x21c]
push ecx
call ebx
test eax, eax
jne 0x402a78
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402a78
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.004148f0
mov esi, eax
add esi, 0x4980000
mov edi, edx
adc edi, 0x15
push edi
push esi
push 0x499
jmp 0x402b2f
push 0
push ebp
call ebx
test eax, eax
jne 0x402b41
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x402b41
call ebx
push 0x10000
push 0
push 0
push eax
call fcn.004148f0
mov esi, eax
add esi, 0x4a40000
mov edi, edx
adc edi, 0x15
push edi
push esi
push 0x4a5
push str..FilePublic.cpp
push str._S__d_nRet0x_016llX_n
call fcn.004019b0
add esp, 0x14
mov ecx, dword [esp + 0x424]
mov edx, edi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409551
add esp, 0x418
ret
Function at 0x402b60
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x260
mov eax, dword [0x41c028]
xor eax, esp
mov dword [esp + 0x25c], eax
mov eax, dword [esp + 0x264]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x24c
mov esi, ecx
lea ecx, [esp + 0x20]
push ebp
push ecx
mov edi, edx
mov dword [esp + 0x20], eax
xor ebx, ebx
mov dword [esp + 0x24], ebp
call fcn.0040e6d0
add esp, 0xc
test esi, esi
jne 0x402be8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push esi
push esi
push eax
call fcn.004148f0
mov esi, eax
mov edi, edx
add esi, 0x4dd0000
adc edi, 0xa
push edi
push esi
push 0x4de
push str..FilePublic.cpp
push str._S__d_nRet0x_016llX_n
call fcn.004019b0
add esp, 0x14
mov eax, esi
mov edx, edi
jmp 0x402c6f
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x402c4e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x402c4a
call esi
cmp eax, 3
je 0x402c4a
call esi
push 0x10000
push 0
push 0
push eax
call fcn.004148f0
mov esi, eax
mov edi, edx
add esi, 0x4e70000
adc edi, 0x15
push edi
push esi
push 0x4e8
push str..FilePublic.cpp
push str._S__d_nRet0x_016llX_n
call fcn.004019b0
add esp, 0x14
mov eax, esi
mov edx, edi
jmp 0x402c6f
mov dword [edi], ebx
jmp 0x402c6b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
shr ecx, 4
and ecx, 1
mov dword [edx], ecx
push eax
mov dword [edi], 1
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, ebp
mov eax, ebx
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409551
add esp, 0x260
ret

Function at 0x4034a0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4165b1
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x41c028]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x3c]
xor ebx, ebx
mov dword [esp + 0xc], ebx
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x18], ax
mov eax, dword [esp + 0x44]
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
call fcn.00402eb0
mov eax, 0x418ec0
mov dword [esp + 0x34], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403502
sub eax, edx
sar eax, 1
push eax
mov eax, 0x418ec0
lea ecx, [esp + 0x14]
call fcn.00402f70
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0xffffffffffffffff
mov word [esi + 4], cx
push ebx
mov ecx, esi
call fcn.00402eb0
mov byte [esp + 0x34], bl
cmp dword [esp + 0x28], 8
mov dword [esp + 0xc], 1
jb 0x40355a
mov edx, dword [esp + 0x14]
push edx
call fcn.00409895
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x4040c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
lea eax, [esp + 8]
push eax
push 0x20019
xor edi, edi
push edi
push str.SYSTEMCurrentControlSetControl
push 0x80000002
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404121
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push edi
push edi
push eax
call fcn.004148f0
mov esi, eax
add esi, 0x1980000
mov edi, edx
adc edi, 0xe
push edi
push esi
push 0x199
jmp 0x40416f
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push str.FirmwareBootDevice
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x404181
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10000
push 0
push 0
push eax
call fcn.004148f0
mov esi, eax
add esi, 0x1a60000
mov edi, edx
adc edi, 0xe
push edi
push esi
push 0x1a7
push str..GetSystemVolume.cpp
push str._S__d_nRet0x_016llX_n
call fcn.004019b0
add esp, 0x14
mov eax, dword [esp + 8]
test eax, eax
je 0x404190
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, edi
pop edi
mov eax, esi
pop esi
add esp, 8
ret 8