joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140076980
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor ecx, ecx
call fcn.140076bc0
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0x50]
call fcn.14006e6a0
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x198]
or eax, 0x4000
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x198], eax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x250]
add rax, 0xd10
mov rcx, rax
mov rdx, rsp
call sub.MSVCR110.dll__setjmp
test eax, eax
je 0x1400769f4
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x88]
jmp 0x140076bb5
mov rax, qword [rsp + 0x50]
movsx eax, word [rax + 0x19e]
test eax, eax
jne 0x140076a73
cmp dword [rsp + 0x60], 0
je 0x140076a73
mov rax, qword [rsp + 0x50]
movzx ecx, word [rsp + 0x60]
mov word [rax + 0x19e], cx
mov rax, qword [rsp + 0x50]
movsx eax, word [rax + 0x19e]
cmp eax, 0xa
jge 0x140076a37
mov dword [rsp + 0x38], 0xa
jmp 0x140076a47
mov rax, qword [rsp + 0x50]
movsx eax, word [rax + 0x19e]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
shl rax, 2
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.14007bc80
mov rcx, qword [rsp + 0x50]
mov qword [rcx + 0x1b0], rax
jmp 0x140076aa6
mov rax, qword [rsp + 0x50]
movsx eax, word [rax + 0x19e]
cmp eax, 0xa
jge 0x140076a8e
mov dword [rsp + 0x3c], 0xa
jmp 0x140076a9e
mov rax, qword [rsp + 0x50]
movsx eax, word [rax + 0x19e]
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x24], eax
cmp qword [rsp + 0x58], 0
je 0x140076ab9
mov rax, qword [rsp + 0x58]
mov dword [rax], 0
mov rcx, qword [rsp + 0x50]
call fcn.140079770
mov dword [rsp + 0x30], eax
cmp qword [rsp + 0x58], 0
je 0x140076b8e
cmp dword [rsp + 0x60], 0
jne 0x140076aee
mov rax, qword [rsp + 0x50]
movsx eax, word [rax + 0x19e]
test eax, eax
je 0x140076b8e
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x1a0], 0
je 0x140076b8e
cmp dword [rsp + 0x30], 0
jne 0x140076b8e
mov rax, qword [rsp + 0x50]
movsx eax, word [rax + 0x19e]
imul eax, eax, 0x3c
mov ecx, dword [rsp + 0x2c]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
jmp 0x140076b43
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x20], eax
jge 0x140076b74
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x1b0]
mov edx, dword [rsp + 0x2c]
cmp dword [rcx + rax*4], edx
jl 0x140076b72
mov eax, dword [rsp + 0x28]
add eax, 1
mov dword [rsp + 0x28], eax
jmp 0x140076b38
mov rax, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x1a0], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x198]
and eax, 0xffffbfff
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 0x198], eax
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret
Function at 0x14007df90
Capabilities:
Get hostname

Disassembly:
sub rsp, 0x448
mov rax, qword [0x1401ad1c0]
xor rax, rsp
mov qword [rsp + 0x438], rax
mov qword [rsp + 0x430], 0
mov edx, Ordinal_1026
lea rcx, [rsp + 0x30]
call qword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
jne 0x14007dfdb
lea rcx, [rsp + 0x30]
call fcn.14007e4c0
mov qword [rsp + 0x430], rax
mov rax, qword [rsp + 0x430]
mov rcx, qword [rsp + 0x438]
xor rcx, rsp
call fcn.14006b6a0
add rsp, 0x448
ret

Function at 0x14007e4c0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x468
mov rax, qword [0x1401ad1c0]
xor rax, rsp
mov qword [rsp + 0x458], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x38], 0
mov ecx, 1
call fcn.14007f400
test eax, eax
jne 0x14007e518
mov rax, qword [rsp + 0x30]
jmp 0x14007e62b
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x470]
call fcn.1400b0be0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14007e54e
mov rax, qword [rsp + 0x28]
mov qword [rsp + Ordinal_1111], rax
jmp 0x14007e55e
mov rax, qword [rsp + 0x470]
mov qword [rsp + Ordinal_1111], rax
mov rcx, qword [rsp + 0x450]
call qword [sym.imp.WSOCK32.dll_gethostbyname]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x28], 0
je 0x14007e58c
mov rcx, qword [rsp + 0x28]
call sub.MSVCR110.dll_free
mov qword [rsp + 0x28], 0
cmp qword [rsp + 0x40], 0
jne 0x14007e59e
mov rax, qword [rsp + 0x30]
jmp 0x14007e62b
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x18]
mov rcx, qword [rsp + 0x40]
movsx ecx, word [rcx + 0x10]
mov r9d, Ordinal_1026
lea r8, [rsp + 0x50]
mov rdx, qword [rax]
call fcn.14007e850
test eax, eax
jne 0x14007e5ce
mov rax, qword [rsp + 0x30]
jmp 0x14007e62b
mov rax, qword [rsp + 0x40]
movsx eax, word [rax + 0x10]
lea r9, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
mov r8, qword [rcx]
mov rdx, qword [rsp + 0x470]
mov ecx, eax
call fcn.14007f260
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
movsx eax, word [rax + 0x10]
mov rcx, qword [rsp + 0x40]
movsx ecx, word [rcx + 0x12]
mov rdx, qword [rsp + 0x40]
mov rdx, qword [rdx + 0x18]
mov r9d, eax
mov r8d, ecx
mov rdx, qword [rdx]
mov rcx, qword [rsp + 0x30]
call fcn.14007f380
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x458]
xor rcx, rsp
call fcn.14006b6a0
add rsp, 0x468
ret
Function at 0x14007f400
Capabilities:
Initialize winsock library

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x1e8
mov rax, qword [0x1401ad1c0]
xor rax, rsp
mov qword [rsp + 0x1d8], rax
cmp dword [0x1401cd658], 0
je 0x14007f42d
mov eax, 1
jmp 0x14007f46d
mov word [rsp + 0x1d0], Ordinal_266
lea rdx, [rsp + 0x30]
movzx ecx, word [rsp + 0x1d0]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x14007f45e
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call qword [sym.imp.WSOCK32.dll_WSACleanup]
xor eax, eax
jmp 0x14007f46d
mov dword [0x1401cd658], 1
mov eax, 1
mov rcx, qword [rsp + 0x1d8]
xor rcx, rsp
call fcn.14006b6a0
add rsp, 0x1e8
ret
Function at 0x14008ca70
Capabilities:
Delete registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x48], 0
mov ecx, dword [rsp + 0xb0]
call fcn.14008ea80
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov edx, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0x90]
call fcn.14008e870
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14008cbde
xor ecx, ecx
call fcn.14008ccc0
mov ecx, 1
call fcn.14008ccc0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14008cbde
mov rcx, qword [rsp + 0x58]
call fcn.14007bfb0
cmp qword [rsp + 0x90], 0
je 0x14008cbd4
cmp qword [rsp + 0x90], 0
je 0x14008cbd4
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0x88], 0
je 0x14008cb85
xor eax, eax
test eax, eax
je 0x14008cb85
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 0x88]
mov dword [rsp + 0x60], eax
jmp 0x14008cb8d
mov dword [rsp + 0x60], 0xffffffc1
mov rax, qword [rsp + 0x90]
mov ecx, dword [rsp + 0x60]
mov dword [rax + 0x88], ecx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xff
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x1de
mov edx, 0xffffffc1
mov rcx, qword [rsp + 0x90]
call fcn.14006e450
mov eax, 1
jmp 0x14008cca3
mov rcx, qword [rsp + 0x58]
call fcn.14007bfb0
cmp qword [rsp + 0xa0], 0
je 0x14008cc0f
cmp dword [rsp + 0xa8], 0
jne 0x14008cc24
mov rcx, qword [rsp + 0xa0]
call sub.MSVCR110.dll_strlen
test rax, rax
jne 0x14008cc24
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x14008cc96
cmp dword [rsp + 0xa8], 0
je 0x14008cc3d
movsxd rax, dword [rsp + 0xa8]
mov qword [rsp + 0x68], rax
jmp 0x14008cc53
mov rcx, qword [rsp + 0xa0]
call sub.MSVCR110.dll_strlen
add rax, 1
mov qword [rsp + 0x68], rax
cmp dword [rsp + 0xa8], 0
je 0x14008cc67
mov dword [rsp + 0x70], 3
jmp 0x14008cc6f
mov dword [rsp + 0x70], 1
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xa0]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x48]
call fcn.1400b1fe0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add rsp, 0x88
ret
Function at 0x14008ea30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x20], 0
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call fcn.14008be50
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14008ea62
mov rax, qword [rsp + 0x20]
jmp 0x14008ea6c
mov rcx, qword [rsp + 0x40]
call sub.MSVCR110.dll_getenv
add rsp, 0x38
ret

Function at 0x14008ea80
Capabilities:
Check os version

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0xe8
mov rax, qword [0x1401ad1c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp dword [rsp + 0xf0], 0
je 0x14008eab0
mov rax, 0xffffffff80000001
jmp 0x14008eafa
mov r8d, __WSAFDIsSet
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.MSVCR110.dll_memset
mov dword [rsp + 0x30], __WSAFDIsSet
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14008eaf3
cmp dword [rsp + 0xf0], 0
jne 0x14008eaf3
cmp dword [rsp + 0x34], 6
jb 0x14008eaf3
mov rax, 0xffffffff80000001
jmp 0x14008eafa
mov rax, 0xffffffff80000002
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14006b6a0
add rsp, 0xe8
ret
Function at 0x1400b0b20
Capabilities:
Check os version

Disassembly:
sub rsp, 0xe8
mov rax, qword [0x1401ad1c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp dword [0x1401cec70], 0
jne 0x1400b0bb3
mov r8d, __WSAFDIsSet
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.MSVCR110.dll_memset
mov dword [rsp + 0x30], __WSAFDIsSet
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1400b0ba9
cmp dword [rsp + 0x40], 1
jne 0x1400b0b7e
mov dword [0x1401cec6c], 2
jmp 0x1400b0ba9
cmp dword [rsp + 0x40], 2
je 0x1400b0b8c
cmp dword [rsp + 0x34], 6
jb 0x1400b0b98
mov dword [0x1401cec6c], 1
jmp 0x1400b0ba9
cmp dword [rsp + 0x40], 0
jne 0x1400b0ba9
mov dword [0x1401cec6c], 3
mov dword [0x1401cec70], 1
mov eax, dword [0x1401cec6c]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14006b6a0
add rsp, 0xe8
ret

Function at 0x1400b1c40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x48], 0
cmp qword [rsp + 0x60], 0
je 0x1400b1ca3
cmp qword [rsp + 0x68], 0
je 0x1400b1ca3
cmp qword [rsp + 0x70], 0
je 0x1400b1ca3
cmp qword [rsp + 0x78], 0
jne 0x1400b1ca8
jmp 0x1400b1dc0
mov rax, qword [rsp + 0x78]
mov dword [rax], 0
mov rax, qword [rsp + 0x70]
mov dword [rax], 0
lea rdx, [rsp + 0x4c]
mov rcx, qword [rsp + 0x68]
call fcn.1400b0be0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400b1dc0
cmp dword [rsp + 0x4c], 0
je 0x1400b1dc0
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x1400b1dc0
mov eax, dword [rsp + 0x4c]
add eax, 1
cdqe
mov rcx, rax
call sub.MSVCR110.dll_malloc
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400b1dc0
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x1400b1dc0
mov rax, qword [rsp + 0x70]
cmp dword [rax], 1
je 0x1400b1d8c
mov rax, qword [rsp + 0x70]
cmp dword [rax], 2
jne 0x1400b1da2
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
call fcn.1400b12c0
mov qword [rsp + 0x38], rax
jmp 0x1400b1dc0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x4c]
mov dword [rax], ecx
cmp qword [rsp + 0x30], 0
je 0x1400b1ddb
mov rcx, qword [rsp + 0x30]
call fcn.14007bfb0
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x40], 0
je 0x1400b1df6
mov rcx, qword [rsp + 0x40]
call fcn.14007bfb0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x38]
add rsp, 0x58
ret
Function at 0x1400b1e10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x48], 0
cmp qword [rsp + 0x60], 0
je 0x1400b1e73
cmp qword [rsp + 0x68], 0
je 0x1400b1e73
cmp qword [rsp + 0x70], 0
je 0x1400b1e73
cmp qword [rsp + 0x78], 0
jne 0x1400b1e78
jmp 0x1400b1f90
mov rax, qword [rsp + 0x78]
mov dword [rax], 0
mov rax, qword [rsp + 0x70]
mov dword [rax], 0
lea rdx, [rsp + 0x4c]
mov rcx, qword [rsp + 0x68]
call fcn.1400b0ff0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400b1f90
cmp dword [rsp + 0x4c], 0
je 0x1400b1f90
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x1400b1f90
mov eax, dword [rsp + 0x4c]
add eax, 1
cdqe
mov rcx, rax
call sub.MSVCR110.dll_malloc
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400b1f90
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x1400b1f90
mov rax, qword [rsp + 0x70]
cmp dword [rax], 1
je 0x1400b1f5c
mov rax, qword [rsp + 0x70]
cmp dword [rax], 2
jne 0x1400b1f72
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x40]
call fcn.1400b10d0
mov qword [rsp + 0x30], rax
jmp 0x1400b1f90
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x4c]
mov dword [rax], ecx
cmp qword [rsp + 0x38], 0
je 0x1400b1fab
mov rcx, qword [rsp + 0x38]
call fcn.14007bfb0
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x40], 0
je 0x1400b1fc6
mov rcx, qword [rsp + 0x40]
call fcn.14007bfb0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x30]
add rsp, 0x58
ret
Function at 0x1400b2070
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x40], 0
cmp qword [rsp + 0x60], 0
je 0x1400b20cc
cmp qword [rsp + 0x68], 0
je 0x1400b20cc
cmp qword [rsp + 0x78], 0
je 0x1400b20cc
cmp dword [rsp + 0x80], 0
jne 0x1400b20d1
jmp 0x1400b217c
cmp dword [rsp + 0x70], 1
je 0x1400b20df
cmp dword [rsp + 0x70], 2
jne 0x1400b214b
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x68]
call fcn.1400b0be0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400b20fd
jmp 0x1400b217c
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x78]
call fcn.1400b0be0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400b211b
jmp 0x1400b217c
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x40], eax
jmp 0x1400b217c
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x40], eax
cmp qword [rsp + 0x30], 0
je 0x1400b2197
mov rcx, qword [rsp + 0x30]
call fcn.14007bfb0
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x38], 0
je 0x1400b21b2
mov rcx, qword [rsp + 0x38]
call fcn.14007bfb0
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x1400b21d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x40], 0
cmp qword [rsp + 0x60], 0
je 0x1400b222c
cmp qword [rsp + 0x68], 0
je 0x1400b222c
cmp qword [rsp + 0x78], 0
je 0x1400b222c
cmp dword [rsp + 0x80], 0
jne 0x1400b2231
jmp 0x1400b22e9
cmp dword [rsp + 0x70], 1
je 0x1400b223f
cmp dword [rsp + 0x70], 2
jne 0x1400b22b8
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x68]
call fcn.1400b0ff0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400b2260
jmp 0x1400b22e9
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x78]
call fcn.1400b0ff0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400b227e
jmp 0x1400b22e9
mov eax, dword [rsp + 0x44]
shl eax, 1
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x40], eax
jmp 0x1400b22e9
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x70]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [rsp + 0x40], eax
cmp qword [rsp + 0x38], 0
je 0x1400b2304
mov rcx, qword [rsp + 0x38]
call fcn.14007bfb0
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x30], 0
je 0x1400b231f
mov rcx, qword [rsp + 0x30]
call fcn.14007bfb0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x1400b2390
Capabilities:
Get session user name

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
cmp dword [rsp + 0x58], 0
je 0x1400b23db
cmp qword [rsp + 0x50], 0
jne 0x1400b23db
jmp 0x1400b249a
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp dword [rsp + 0x28], 0
je 0x1400b249a
movsxd rax, dword [rsp + 0x28]
mov rcx, rax
call sub.MSVCR110.dll_malloc
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400b249a
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x1400b249a
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.1400b12c0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400b249a
cmp dword [rsp + 0x58], 0
je 0x1400b2492
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x28], eax
jle 0x1400b2467
mov eax, dword [rsp + 0x58]
sub eax, 1
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x58]
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call sub.MSVCR110.dll_memset
movsxd rax, dword [rsp + 0x28]
mov r8, rax
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call sub.MSVCR110.dll_memcpy
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x38], eax
cmp qword [rsp + 0x30], 0
je 0x1400b24b5
mov rcx, qword [rsp + 0x30]
call fcn.14007bfb0
mov qword [rsp + 0x30], 0
cmp qword [rsp + 0x30], 0
je 0x1400b24d0
mov rcx, qword [rsp + 0x30]
call fcn.14007bfb0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x38]
add rsp, 0x48
ret
Function at 0x1400b24e0
Capabilities:
Get session user name

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x30], 0
cmp dword [rsp + 0x58], 0
je 0x1400b252b
cmp qword [rsp + 0x50], 0
jne 0x1400b252b
jmp 0x1400b25ed
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp dword [rsp + 0x28], 0
je 0x1400b25ed
movsxd rax, dword [rsp + 0x28]
shl rax, 1
mov rcx, rax
call sub.MSVCR110.dll_malloc
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400b25ed
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
je 0x1400b25ed
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call fcn.1400b10d0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400b25ed
cmp dword [rsp + 0x58], 0
je 0x1400b25e5
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x28], eax
jle 0x1400b25ba
mov eax, dword [rsp + 0x58]
sub eax, 1
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x58]
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call sub.MSVCR110.dll_memset
movsxd rax, dword [rsp + 0x28]
mov r8, rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call sub.MSVCR110.dll_memcpy
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x38], eax
cmp qword [rsp + 0x20], 0
je 0x1400b2608
mov rcx, qword [rsp + 0x20]
call fcn.14007bfb0
mov qword [rsp + 0x20], 0
cmp qword [rsp + 0x30], 0
je 0x1400b2623
mov rcx, qword [rsp + 0x30]
call fcn.14007bfb0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x38]
add rsp, 0x48
ret
Function at 0x1400b2790
Capabilities:
Query environment variable

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x38], 0
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.1400b0be0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400b28c2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400b28c2
cmp dword [rsp + 0x60], 0
je 0x1400b28c2
movsxd rax, dword [rsp + 0x30]
mov rcx, rax
call sub.MSVCR110.dll_malloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400b28c2
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400b28c2
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.1400b12c0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400b28a6
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x30], eax
jle 0x1400b287f
mov eax, dword [rsp + 0x60]
sub eax, 1
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
mov r8, rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x58]
call sub.MSVCR110.dll_strncpy
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
mov byte [rcx + rax], 0
jmp 0x1400b28c2
mov dword [rsp + 0x30], 0
movsxd rax, dword [rsp + 0x60]
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call sub.MSVCR110.dll_memset
cmp qword [rsp + 0x28], 0
je 0x1400b28dd
mov rcx, qword [rsp + 0x28]
call fcn.14007bfb0
mov qword [rsp + 0x28], 0
cmp qword [rsp + 0x20], 0
je 0x1400b28f8
mov rcx, qword [rsp + 0x20]
call fcn.14007bfb0
mov qword [rsp + 0x20], 0
cmp qword [rsp + 0x38], 0
je 0x1400b2913
mov rcx, qword [rsp + 0x38]
call fcn.14007bfb0
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret