joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb01dfb
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ax, 0xed5a
lea esp, [esp + 6]
lea esp, [esp]
jmp 0xb01e58
mov ebp, dword [esp]
bsr si, si
dec ecx
neg edi
sub esp, 0x14
stc
jmp 0xb01e66
rdtsc
neg esi
mov edi, eax
stc
shr ecx, cl
mov dh, byte [esp]
jmp 0xb01e3f
setb ah
pushfd
rdtsc
pop word [esp + 9]
xchg dword [esp + 8], ebp
mov word [esp + 5], di
jmp 0xb01ebc
adc esi, eax
pop dword [esp + 0xa]
pushal
pushal
lea esp, [esp + 0x53]
rdtsc
jmp 0xb01ea6
rdtsc
btc cx, bp
sub esp, 0x1c
xchg ebp, ecx
std
setb dl
jmp 0xb01fcc
mov bx, 0x2816
xchg ah, dl
mov byte [esp + 0x14], ah
btc cx, di
xchg byte [esp + 1], dh
neg di
jmp 0xb01e7c
pop edi
setg bl
add esp, 1
rdtsc
xchg word [esp], bp
call fcn.00b01efd
lea ebp, [eax*4]
mov bh, 0x92
lea esi, [edx + ebp]
shr di, cl
xchg dword [esp + 0xa], esi
mov edi, dword [esp + 9]
jmp 0xb01fa8
stc
pop dword [esp + 5]
setle dl
xchg byte [esp + 7], bh
mov byte [esp + 5], bh
mov cx, si
jmp 0xb01f4d
or cl, cl
xchg word [esp + 0x17], bp
sub esp, 3
lea esp, [esp + 1]
jmp 0xb0204a
pop dword [esp + 7]
mov word [esp + 9], bp
lea edi, [esi*4]
mov cl, dh
std
mov word [esp + 0x1d], ax
jmp 0xb01f92
not al
not edx
mov edx, 0x1e4d162b
xchg byte [esp + 5], dl
pop word [esp + 0xf]
add esp, 0xa
jmp 0xb01f7d
lea esp, [esp + 0x28]
popal
call fcn.00b02005
Function at 0x402ca0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00403c10
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.00403c10
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x402d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x408cac]
test esi, esi
jle 0x402e20
mov eax, dword [0x408cb0]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x402d34
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x402db7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x402d20
mov dword [esp], ebx
call fcn.00403750
mov edi, eax
test eax, eax
je 0x402e47
mov eax, dword [0x408cb0]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00403890
mov edx, dword [0x408cb0]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402e27
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x402db0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x402dc0
add dword [0x408cac], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x408cb0]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402db0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00402ca0
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x402d3e
mov eax, dword [0x408cb0]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00402ca0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00402ca0
lea esi, cs:[esi]
nop
Function at 0x4033a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x408cc8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x408cc0]
sub esp, 4
test ebx, ebx
je 0x4033f5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x4033ee
test eax, eax
jne 0x4033ee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4033d0
mov dword [esp], 0x408cc8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403750
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x403775
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x403780
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x403775
push esi
push ebx
mov ebx, dword [esp + 0xc]
movzx eax, word [ecx + 0x400014]
movzx esi, word [ecx + 0x400006]
sub ebx, 0x400000
lea eax, [edx + eax + 0x18]
test si, si
je 0x4037c8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4037be
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4037ca
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x4037b0
xor eax, eax
pop ebx
pop esi
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401865
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
mov eax, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 4
cmp eax, 0x3e8
jae 0x4018a5
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x800]
push eax
call sub.MSVCRT.dll_swprintf
add esp, 0xc
lea ecx, [ebp - 0x800]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esp, ebp
pop ebp
ret

Function at 0x40199a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x40b084
lea eax, [ebp - 0x218]
push eax
call sub.MSVCRT.dll_wcscpy
add esp, 8
push 0x40b424
lea ecx, [ebp - 0x218]
push ecx
call sub.MSVCRT.dll_wcscat
add esp, 8
push 0x40b010
lea edx, [ebp - 0x218]
push edx
call sub.MSVCRT.dll_wcscat
add esp, 8
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x218]
push ecx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401a25
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b428
call fcn.00401865
add esp, 8
jmp 0x401ac0
mov edx, dword [ebp + 8]
push edx
call sub.MSVCRT.dll_wcslen
add esp, 4
lea eax, [eax + eax + 2]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 2
push 0
push 0x40b114
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401a6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b494
call fcn.00401865
add esp, 8
jmp 0x401abe
mov dword [ebp - 0xc], 7
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push 0x40b0f4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x401aa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40b4e0
call fcn.00401865
add esp, 8
cmp dword [ebp - 4], 0
je 0x401ab9
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
jmp 0x401ac2
jmp 0x401aa9
jmp 0x401aa9
mov esp, ebp
pop ebp
ret

Function at 0x401ac6
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push 0x40b084
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401af2
jmp 0x401b13
push 0x40b010
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 4], 0
je 0x401b11
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401b15
jmp 0x401b01
mov esp, ebp
pop ebp
ret
Function at 0x401b19
Capabilities:
Create service
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa54
mov dword [ebp - 0x634], 0
mov dword [ebp - 0xa48], 0
mov dword [ebp - 0xa4c], 0
mov dword [ebp - 0xa50], 0
lea eax, [ebp - 0xa4c]
push eax
push 0x20019
push 0
push 0x40b138
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xa50], eax
cmp dword [ebp - 0xa50], 0
jne 0x401bd1
mov dword [ebp - 4], 0x104
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0x40b18c
mov ecx, dword [ebp - 0xa4c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xa50], eax
mov edx, dword [ebp - 0xa4c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa50], 0
je 0x401bcf
push 0x40b528
call sub.MSVCRT.dll_wprintf
add esp, 4
jmp 0x401daf
jmp 0x401be3
push 0x40b570
call sub.MSVCRT.dll_wprintf
add esp, 4
jmp 0x401daf
push 0x40b1ac
lea eax, [ebp - 0x418]
push eax
call sub.MSVCRT.dll_wcscat
add esp, 8
push 0x40b5c0
lea ecx, [ebp - 0x418]
push ecx
call sub.MSVCRT.dll_wcscat
add esp, 8
push 0x40b1dc
lea edx, [ebp - 0x418]
push edx
call sub.MSVCRT.dll_wcscat
add esp, 8
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0xa44]
push ecx
call sub.MSVCRT.dll_wcscpy
add esp, 8
push 0x40b210
lea edx, [ebp - 0x418]
push edx
call sub.MSVCRT.dll_wcscat
add esp, 8
push 0x40b1f8
lea eax, [ebp - 0xa44]
push eax
call sub.MSVCRT.dll_wcscat
add esp, 8
cmp dword [ebp + 8], 0
je 0x401c6e
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xa54], ecx
jmp 0x401c78
mov dword [ebp - 0xa54], 0x40b264
mov edx, dword [ebp - 0xa54]
push edx
lea eax, [ebp - 0xa44]
push eax
call sub.MSVCRT.dll_wcscat
add esp, 8
push 0x40b5c8
lea ecx, [ebp - 0xa44]
push ecx
call sub.MSVCRT.dll_wcscat
add esp, 8
push 0x40b22c
lea edx, [ebp - 0xa44]
push edx
call sub.MSVCRT.dll_wcscat
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0
je 0x401d86
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x418]
push eax
push 1
push 3
push 0x10
push 0xf01ff
push 0x40b010
push 0x40b010
mov ecx, dword [ebp - 0x420]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0
je 0x401d4e
lea edx, [ebp - 0xa44]
push edx
call fcn.0040199a
add esp, 4
test eax, eax
jne 0x401d3f
push 0x40b010
push 0x40b5cc
call sub.MSVCRT.dll_wprintf
add esp, 8
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x401d77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x104
lea ecx, [ebp - 0x630]
push ecx
call fcn.00401f73
add esp, 0xc
push eax
push 0x40b5ec
call sub.MSVCRT.dll_wprintf
add esp, 8
mov edx, dword [ebp - 0x420]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x401daf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x104
lea eax, [ebp - 0x630]
push eax
call fcn.00401f73
add esp, 0xc
push eax
push 0x40b624
call sub.MSVCRT.dll_wprintf
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x401db3
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov dword [ebp - 0x234], 0
call fcn.00401ac6
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x401f46
push 0xf01ff
push 0x40b010
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x401f11
lea ecx, [ebp - 0x1c]
push ecx
push 1
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x401eba
push 0x40b010
push 0x40b65c
call sub.MSVCRT.dll_wprintf
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401e8e
cmp dword [ebp - 0x234], 0x12c
jae 0x401e8e
cmp dword [ebp - 0x18], 3
jne 0x401e8a
push 0x40b678
call sub.MSVCRT.dll_wprintf
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x234]
add edx, 1
mov dword [ebp - 0x234], edx
jmp 0x401e8c
jmp 0x401e8e
jmp 0x401e3d
cmp dword [ebp - 0x18], 1
jne 0x401ea8
push 0x40b010
push 0x40b67c
call sub.MSVCRT.dll_wprintf
add esp, 8
jmp 0x401eba
push 0x40b010
push 0x40b698
call sub.MSVCRT.dll_wprintf
add esp, 8
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x401edc
push 0x40b010
push 0x40b6c4
call sub.MSVCRT.dll_wprintf
add esp, 8
jmp 0x401f05
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x104
lea ecx, [ebp - 0x230]
push ecx
call fcn.00401f73
add esp, 0xc
push eax
push 0x40b6e0
call sub.MSVCRT.dll_wprintf
add esp, 8
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x401f3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x104
lea eax, [ebp - 0x230]
push eax
call fcn.00401f73
add esp, 0xc
push eax
push 0x40b718
call sub.MSVCRT.dll_wprintf
add esp, 8
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x401f6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x104
lea edx, [ebp - 0x230]
push edx
call fcn.00401f73
add esp, 0xc
push eax
push 0x40b74c
call sub.MSVCRT.dll_wprintf
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x402000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push edi
mov dword [ebp - 8], 0
mov word [ebp - 0x214], 0
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x212]
rep stosd dword es:[edi], eax
push 0x105
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4020a8
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_wcslen
add esp, 4
mov edx, 0x105
sub edx, eax
sub edx, 2
cmp dword [ebp - 4], edx
jae 0x4020a8
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [ebp + eax*2 - 0x216]
cmp ecx, 0x5c
je 0x402085
push 0x40c0a4
lea edx, [ebp - 0x214]
push edx
call sub.MSVCRT.dll_wcscat
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x214]
push ecx
call sub.MSVCRT.dll_wcscat
add esp, 8
lea edx, [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x403a82
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov dword [0x40f268], 3
mov eax, dword [ebp + 8]
add eax, 0xa28
mov dword [0x40f270], eax
mov dword [0x40f130], 3
mov ecx, dword [ebp + 0xc]
add ecx, 0x10c
mov dword [0x40f138], ecx
mov dword [0x40eec0], 3
mov edx, dword [ebp + 0xc]
add edx, 0x210c
mov dword [0x40eec8], edx
mov dword [0x40f388], 3
mov eax, dword [ebp + 0xc]
add eax, 0x2214
mov dword [0x40f390], eax
mov dword [0x40ef38], 0xa
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x231c]
mov eax, dword [ecx + 0x2320]
mov dword [0x40ef40], edx
mov dword [0x40ef44], eax
mov dword [0x40f2b0], 3
mov ecx, dword [ebp + 0xc]
add ecx, 0x2324
mov dword [0x40f2b8], ecx
mov dword [0x40ef68], 3
mov edx, dword [ebp + 0xc]
add edx, 0x242c
mov dword [0x40ef70], edx
mov dword [0x40eff8], 3
mov eax, dword [ebp + 0xc]
add eax, 0x2534
mov dword [0x40f000], eax
mov dword [0x40f040], 3
mov dword [0x40f058], 3
mov dword [0x40f070], 3
mov dword [0x40f088], 3
mov dword [0x40f0a0], 3
mov dword [0x40f048], 0x40bbb0
mov dword [0x40f060], 0x40bbc0
mov dword [0x40f078], 0x40bbd0
mov dword [0x40f090], 0x40bbe0
mov dword [0x40f0a8], 0x40bbf0
mov dword [0x40f370], 0xa
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x263c]
mov eax, dword [ecx + 0x2640]
mov dword [0x40f378], edx
mov dword [0x40f37c], eax
mov dword [0x40efe0], 3
mov ecx, dword [ebp + 0xc]
add ecx, 0x2644
mov dword [0x40efe8], ecx
mov dword [0x40f178], 3
mov dword [0x40f190], 3
mov dword [0x40f1a8], 3
mov dword [0x40f1c0], 3
mov dword [0x40f1d8], 3
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0x208
push 0x40bc00
mov edx, dword [ebp + 8]
add edx, 0x10f8
push edx
call sub.MSVCRT.dll_wcscpy
add esp, 8
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x403c7f
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp + 8]
add eax, 0x10f8
push eax
call sub.MSVCRT.dll_wcscat
add esp, 8
jmp 0x403c9b
mov ecx, dword [ebp + 8]
add ecx, 0x820
push ecx
mov edx, dword [ebp + 8]
add edx, 0x10f8
push edx
call sub.MSVCRT.dll_wcscat
add esp, 8
mov eax, dword [ebp + 8]
add eax, 0x10f8
mov dword [0x40f180], eax
push 0x40bc04
mov ecx, dword [ebp + 8]
add ecx, 0x1300
push ecx
call sub.MSVCRT.dll_wcscpy
add esp, 8
push 0x40bc08
mov edx, dword [ebp + 8]
add edx, 0x820
push edx
call sub.MSVCRT.dll_wcscmp
add esp, 8
test eax, eax
je 0x403cf5
mov eax, dword [ebp + 8]
add eax, 0x820
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x1300
push ecx
call sub.MSVCRT.dll_wcscat
add esp, 8
mov edx, dword [ebp + 8]
add edx, 0x1300
mov dword [0x40f198], edx
mov dword [0x40f1b0], 0x40bc20
mov dword [0x40f1c8], 0x40bc30
mov dword [0x40f1e0], 0x40bc40
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4043ef
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
push eax
push 2
call fcn.00402f0d
add esp, 8
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40446b
mov dword [ebp - 4], 0x4644
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0x40bed8
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x404472
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
push 4
call fcn.00402f0d
add esp, 8
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4044e0
mov dword [ebp - 4], 0x654
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0x40bee0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x404651
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
push 3
call fcn.00402f0d
add esp, 8
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4046bf
mov dword [ebp - 4], 0x53c
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push 0x40bef8
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x404c2b
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov dword [ebp - 4], 0x208
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404c5a
mov eax, dword [ebp - 8]
jmp 0x404cab
lea edx, [ebp - 0x418]
push edx
call fcn.00404caf
add esp, 4
test eax, eax
je 0x404c71
xor eax, eax
jmp 0x404cab
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_wcscat
add esp, 8
push 0x40bfe0
mov edx, dword [ebp + 8]
push edx
call sub.MSVCRT.dll_wcscat
add esp, 8
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRT.dll_wcscpy
add esp, 8
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x405087
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 0
je 0x405099
cmp dword [ebp + 0xc], 0
jne 0x4050a0
mov eax, 0x80070057
jmp 0x405112
mov eax, dword [ebp + 8]
mov word [eax], 0
mov ecx, dword [ebp + 0xc]
push ecx
push 1
call fcn.00402f0d
add esp, 8
lea edx, [ebp - 0xc]
push edx
push 0x20019
push 0
mov eax, dword [ebp + 0xc]
add eax, 0x618
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40510f
mov dword [ebp - 4], 0x108
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0x40b050
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x405116
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
je 0x405128
cmp dword [ebp + 0xc], 0
jne 0x40512f
mov eax, 0x80070057
jmp 0x40519f
mov eax, dword [ebp + 0xc]
push eax
push 1
call fcn.00402f0d
add esp, 8
lea ecx, [ebp - 8]
push ecx
push 2
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40519c
mov eax, dword [ebp + 8]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 4
shl eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 1
push 0
push 0x40b050
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x405f43
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x210], 0
mov eax, dword [ebp + 0xc]
push eax
push 2
call fcn.00402f0d
add esp, 8
lea ecx, [ebp - 0x218]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 0xc]
add edx, 0x618
push edx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x405fa2
jmp 0x40601c
mov dword [ebp - 0x214], 0x208
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x40c06c
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
je 0x405fe3
jmp 0x40601a
cmp dword [ebp + 8], 0
je 0x405ffc
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.MSVCRT.dll_wcscpy
add esp, 8
cmp dword [ebp - 0x218], 0
je 0x406012
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x210]
jmp 0x40601e
jmp 0x405ffc
jmp 0x405ffc
mov esp, ebp
pop ebp
ret