joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016c90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400373d0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140016ce7
cmp word [rdx], r13w
jne 0x140016ce7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140016cec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140016e11
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140016e32
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140016d25
mov rdx, r9
mov word [rbx], cx
jmp 0x140016d4c
cmp r9, r8
jae 0x140016d5c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140016d06
jmp 0x140016e11
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140016e06
cmp dword [rsp + 0x80], esi
je 0x140016e06
lea r8, [0x1400373d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140016dde
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140016dae
mov word [rbx], r13w
jmp 0x140016e0e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140016dbb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140016e0e
cmp word [rsp + 0x70], r13w
jne 0x140016deb
cmp rbx, r14
je 0x140016da8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400178f8
cmp word [rsp + 0x70], r13w
je 0x140016e11
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400373d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140016e0b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140016e11
Function at 0x14001b700
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14001b730
xor eax, eax
jmp 0x14001b7f3
mov rbp, rbx
cmp word [rax], si
je 0x14001b755
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001b73c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001b738
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140019d00
movsxd r14, eax
test eax, eax
jne 0x14001b793
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001b729
mov rcx, r14
call fcn.140017b5c
mov rdi, rax
test rax, rax
jne 0x14001b7ac
xor ecx, ecx
call fcn.140014544
jmp 0x14001b788
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140019d00
test eax, eax
jne 0x14001b7dd
mov rcx, rdi
call fcn.140014544
jmp 0x14001b7e7
xor ecx, ecx
call fcn.140014544
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14001e4bc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400141e4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14001e55d
cmp ebx, dword [rsp + 0x30]
je 0x14001e556
test esi, esi
je 0x14001e556
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001e531
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001e53e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001e51b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001e542
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001e55f
mov eax, 1
jmp 0x14001e55f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140020054
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000dce8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400200de
cmp byte [rbp - 0x21], r15b
je 0x1400200d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140020114
call fcn.1400148c0
test eax, eax
jne 0x140020100
cmp byte [rbp - 0x21], r15b
je 0x1400200f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140020114
cmp byte [rbp - 0x21], r15b
je 0x140020111
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140010390
test eax, eax
jne 0x1400201b4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000dce8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140020153
cmp byte [rbp - 0x21], r15b
je 0x140020188
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140020188
call fcn.1400148c0
test eax, eax
jne 0x140020174
cmp byte [rbp - 0x21], r15b
je 0x14002016d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140020188
cmp byte [rbp - 0x21], r15b
je 0x140020185
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140010390
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400201b4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400201b7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400201c5
mov rcx, rdi
call fcn.140014544
cmp byte [rbp + 0x3f], r15b
je 0x1400201d4
mov rcx, qword [rbp + 0x27]
call fcn.140014544
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14047cb1e
Capabilities:
Encode data using xor

Disassembly:
test rsi, rsi
lea rsp, [rsp + 0x10]
je 0x14046369f
push r11
push r9
mov r11d, 0x819f259a
bswap r11d
lea r11, [0x140474448]
mov r9d, 0xdf8b9cb8
movzx r9d, byte [rbx]
push 0xffffffffca815aa8
xor r9d, ecx
and r9d, 0xff
mov r9d, dword [r11 + r9*4]
shr ecx, 8
xor ecx, r9d
inc rbx
dec byte [rsp + 5]
xor ecx, 0x11b01035
dec rsi
lea rsp, [rsp + 8]
jne 0x140452bb9
call fcn.140463685
not ecx
call fcn.14047945e
lea rsp, [rsp + 8]
jmp fcn.140471ff8
xor ecx, ecx
jmp 0x140452b97
Function at 0x140003d54
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140003d8e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140003d93
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140003ddc
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400063d0]
cmp byte [rcx + rax], 0
je 0x140003ddc
dec r8
sub rdx, 1
jne 0x140003dc2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140004c3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004c86
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004c86
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004c86
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004c86
cmp dword [rcx + 0x84], 0xe
jbe 0x140004c86
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004c88
xor al, al
add rsp, 0x28
ret
Function at 0x180873201
Capabilities:
Create process on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xb0
xor eax, dword [rbp - 0x4f]
mov r9, 0x1b80
cmp cl, byte [str.YqvY3IT_Jrv_epkiRc_hfFU8U7__8p_x3A_S6luYlNp5KFDXh_u__C____WMTQ_UjW8oIkC5_:s_u_x_X_2CI]
jb 0x180873237
mov edx, ecx
sub r10, 0x6e4f
mov dword [rbp - 0x5c], eax
movzx ecx, al
mov r10, qword [rbp - 0x67]
or edx, 0x1053
mov eax, dword [rbp - 0x83]
mov r8, qword [rbp - 0x51]
sub cl, byte [rbp - 0x61]
mov edx, dword [rbp - 0x80]
mov ecx, ecx
cmp ecx, 0x69a5a5fe
je 0x180873284
sub qword [rbp - 0xac], r11
movzx eax, byte [0x180a8677c]
or edx, dword [rbp - 8]
movzx eax, cl
mov edx, dword [rbp - 0x2b]
mov cx, dx
sub eax, edx
mov edx, dword [rbp - 0x11]
mov r8, qword [rbp - 0x18]
sub rax, qword [rbp - 0x9a]
mov eax, edx
add r10, 0x3ff9
cmp rdx, qword [0x180a88fff]
je 0x1808732d1
mov edx, 0x5e63
lea rcx, [0x180a87a74]
test rax, 0xffffffffc797bce7
jno 0x1808732c9
mov dword [rbp - 0x25], eax
cmp ecx, ecx
je 0x1808732af
sub qword [0x180a893e5], r11
mov eax, ecx
add ecx, dword [0x180a85071]
cmp cx, cx
jb 0x1808732c6
movzx eax, word [rbp - 0xa2]
movzx ecx, cl
and r10, rdx
mov ecx, ecx
mov r11, r11
mov ecx, dword [rbp]
movzx eax, byte [0x180a874f8]
cmp ecx, ecx
jmp 0x1808732ed
movzx eax, byte [rbp - 0x41]
mov r10, qword [0x180a888d0]
cmp r10, 0xffffffff89f20e46
js 0x18087331c
mov dword [rbp - 0x46], ecx
mov r9, rcx
mov r10, qword [0x180a84f12]
call fcn.1808733db
sub dword [rbp - 0x3c], eax
mov dword [0x180a88c94], eax
mov edx, dword [rbp - 0x85]
cmp ecx, 0xf5b26423
je 0x18087334c
add rcx, rcx
and r10, 0x2d10
mov ecx, dword [rbp - 0x4a]
mov dx, word [0x180a873be]
mov qword [0x180a881c8], rdx
and qword [rbp - 0x84], r8
movzx eax, ah
mov ecx, dword [0x180a87d58]
add r10, 0xb197
mov ecx, 0x2f9a
mov ecx, dword [rbp - 0x86]
cmp r9, rcx
jo 0x180873371
call sub.KERNEL32.dll_CreateProcessInternalW
mov r8, qword [rbp - 0x71]
mov ecx, ecx
mov edx, dword [0x180a87a0f]
lea r9, [rbp - 0x63]
add r9, qword [rbp - 0x41]
mov ah, al
add ecx, dword [rbp - 0x49]
cmp eax, 0x4b59565b
jns 0x1808733c3
mov edx, 0xfdd9
lea rcx, [0x180a84afb]
lea r9, [rbp - 0x67]
sub r8, 0xfcc8
add ecx, dword [rbp - 0x5c]
add edx, 0x80a0
movzx eax, dl
sub ecx, 0x7ae1
and rax, rcx
mov ecx, dword [0x180a87ecb]
movzx edx, dx
cmp r10, 0x116232b5
je 0x1808733d9
add r8, r8
sub rdx, qword [0x180a853ed]
leave
ret
Function at 0x1808ae323
Capabilities:
Create pipe

Disassembly:
push rdi
push rsi
push r12
push r14
push rbx
push r15
push rbp
mov rbp, rsp
sub rsp, 0x1d0
test edx, ecx
je 0x1808ae354
mov rcx, qword [rbp - 0x179]
lea ebx, [0x180a84a26]
and edx, dword [0x180a84189]
and edx, dword [0x180a857c9]
sub r15, r15
or edx, dword [rbp - 0x10b]
mov esi, dword [rbp - 0x1bd]
test rcx, rsi
jno 0x1808ae384
mov r9, qword [0x180a85ab0]
lea rdx, [rbp - 0x154]
mov eax, dword [0x180a86205]
mov ebx, dword [rbp - 0x4d]
call fcn.1808ae58b
test r12, 0x4b691f20
jmp 0x1808ae479
cmp edi, dword [0x180a89174]
js 0x1808ae481
mov dword [rbp - 0x19b], esi
sub eax, dword [rbp - 0xbf]
xor r14, rcx
mov r12, rcx
or qword [0x180a85a8d], rsi
sub rdx, rcx
or r11, r8
or ecx, 0xe41d
and edx, 0x4eaa
add ebx, edi
xor esi, dword [rbp - 0x16e]
mov r11, r14
sub r9, rdi
mov rax, qword [rbp - 0x15a]
mov rbx, qword [rbp - 0x119]
mov edi, dword [0x180a8497a]
mov rbx, qword [0x180a89537]
mov bx, word [0x180a8450d]
mov rdi, qword [rbp - 0xba]
mov r10, qword [0x180a85461]
cmp rsi, qword [0x180a87adc]
je 0x1808ae51c
movzx eax, dh
mov ecx, dword [rbp - 0x45]
mov edi, dword [rbp - 0x191]
mov r15, qword [rbp - 0x1e]
call sub.KERNEL32.dll_CreateNamedPipeW
mov di, word [rbp - 0x12f]
mov r10, qword [rbp - 0x91]
mov dword [rbp - 0x170], ecx
mov eax, dword [rbp - 0x1b5]
lea r11, [0x180a84c91]
cmp esi, 0x4ddf3c07
jb 0x1808ae556
mov ebx, dword [rbp - 0xa4]
lea r12, [rbp - 0x180]
mov rsi, qword [rbp - 0x149]
add r10, qword [rbp - 0xa9]
mov ecx, dword [rbp - 0x43]
mov r9, qword [rbp - 0x169]
and ebx, dword [rbp - 0xed]
sub edx, edi
sub edi, 0x7fd
add dword [0x180a84d3b], edi
lea rax, [0x180a8516d]
mov dword [rbp - 0x148], edx
mov dword [rbp - 0x56], ecx
movzx esi, dl
mov rsi, r14
leave
pop r15
pop rbx
pop r14
pop r12
pop rsi
pop rdi
ret
Function at 0x1808ae4cf
Capabilities:
Create pipe

Disassembly:
push rdi
push rsi
push r12
push r14
push rbx
push r15
push rbp
mov rbp, rsp
sub rsp, 0x1d0
test edx, ecx
je 0x1808ae354
mov rcx, qword [rbp - 0x179]
lea ebx, [0x180a84a26]
and edx, dword [0x180a84189]
and edx, dword [0x180a857c9]
sub r15, r15
or edx, dword [rbp - 0x10b]
mov esi, dword [rbp - 0x1bd]
test rcx, rsi
jno 0x1808ae384
mov r9, qword [0x180a85ab0]
lea rdx, [rbp - 0x154]
mov eax, dword [0x180a86205]
mov ebx, dword [rbp - 0x4d]
call fcn.1808ae58b
test r12, 0x4b691f20
jmp 0x1808ae479
cmp edi, dword [0x180a89174]
js 0x1808ae481
mov dword [rbp - 0x19b], esi
sub eax, dword [rbp - 0xbf]
xor r14, rcx
mov r12, rcx
or qword [0x180a85a8d], rsi
sub rdx, rcx
or r11, r8
or ecx, 0xe41d
and edx, 0x4eaa
add ebx, edi
xor esi, dword [rbp - 0x16e]
mov r11, r14
sub r9, rdi
mov rax, qword [rbp - 0x15a]
mov rbx, qword [rbp - 0x119]
mov edi, dword [0x180a8497a]
mov rbx, qword [0x180a89537]
mov bx, word [0x180a8450d]
mov rdi, qword [rbp - 0xba]
mov r10, qword [0x180a85461]
cmp rsi, qword [0x180a87adc]
je 0x1808ae51c
movzx eax, dh
mov ecx, dword [rbp - 0x45]
mov edi, dword [rbp - 0x191]
mov r15, qword [rbp - 0x1e]
call sub.KERNEL32.dll_CreateNamedPipeW
mov di, word [rbp - 0x12f]
mov r10, qword [rbp - 0x91]
mov dword [rbp - 0x170], ecx
mov eax, dword [rbp - 0x1b5]
lea r11, [0x180a84c91]
cmp esi, 0x4ddf3c07
jb 0x1808ae556
mov ebx, dword [rbp - 0xa4]
lea r12, [rbp - 0x180]
mov rsi, qword [rbp - 0x149]
add r10, qword [rbp - 0xa9]
mov ecx, dword [rbp - 0x43]
mov r9, qword [rbp - 0x169]
and ebx, dword [rbp - 0xed]
sub edx, edi
sub edi, 0x7fd
add dword [0x180a84d3b], edi
lea rax, [0x180a8516d]
mov dword [rbp - 0x148], edx
mov dword [rbp - 0x56], ecx
movzx esi, dl
mov rsi, r14
leave
pop r15
pop rbx
pop r14
pop r12
pop rsi
pop rdi
ret
Function at 0x1809e2b47
Capabilities:
Get common file path

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x1d0
mov eax, dword [rbp - 0x13d]
push r10
cmp ecx, dword [0x180a88976]
je 0x1809e2b6c
movzx eax, al
mov eax, eax
sub edx, edx
mov eax, dword [rbp - 0x15]
lea r8, [rbp - 0x106]
mov dword [rbp - 0x14c], edx
mov qword [rbp - 0xf3], r10
call sub.KERNEL32.dll_GetWindowsDirectoryA
mov dword [rbp - 0x80], ecx
mov ax, dx
sub r11, qword [0x180a8633f]
and ecx, dword [rbp - 0x4d]
mov qword [0x180a865a2], rcx
mov r11, qword [rbp - 0x1c8]
mov dword [0x180a85db9], edx
movzx ecx, al
mov ax, cx
pop rax
test rcx, r9
jno 0x1809e2bba
mov edx, 0x86ff
mov dx, dx
mov edx, 0x2fda
cmp edx, edx
jmp 0x1809e2bd8
sub r11, 0x81cc
mov ecx, dword [rbp - 0x15c]
and rdx, r10
mov r10, qword [0x180a8679f]
cmp rax, qword [0x180a884b4]
je 0x1809e2c13
mov dword [rbp - 0x1c], eax
mov qword [0x180a88171], r10
mov qword [0x180a89709], rdx
mov eax, dword [0x180a87751]
mov cx, 0x25fb
mov rcx, r9
movzx ecx, cl
add eax, dword [0x180a884aa]
mov edx, eax
lea r8, [0x180a85c6e]
mov r11, qword [0x180a88c13]
mov qword [0x180a86275], r9
mov qword [rbp - 0x186], r10
mov r10, r9
sub ecx, dword [rbp - 0x1c2]
mov ecx, ecx
and rax, r8
mov rdx, qword [rbp - 0x66]
lea r8, [0x180a88a2d]
mov edx, edx
movzx edx, byte [rbp - 0x1bb]
test ecx, 0x76695b49
jne 0x1809e2c6d
mov eax, dword [0x180a85a7f]
mov rax, qword [rbp - 0x81]
mov r10, qword [0x180a89316]
xor r8, 0x6b06
cmp r10, qword [0x180a85a3b]
je 0x1809e2cb0
call fcn.1809e2cb2
mov r11, qword [0x180a86dbc]
xor r8, qword [rbp - 0x13f]
mov dword [rbp - 0x1a1], ecx
movzx eax, ch
mov eax, dword [rbp - 0x85]
mov dword [rbp - 0x25], edx
leave
ret
Function at 0x141cb0108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141cb028f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141cb0139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141cb011f
add dl, dl
jne 0x141cb0146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141cb01a6
xor eax, eax
add dl, dl
jne 0x141cb0155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141cb025d
add dl, dl
jne 0x141cb0166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cb0173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cb0180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cb018d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141cb019a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141cb012e
mov eax, 1
add dl, dl
jne 0x141cb01b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141cb01c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141cb01ab
sub eax, ebx
mov ebx, 1
jne 0x141cb01fc
mov ecx, 1
add dl, dl
jne 0x141cb01de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141cb01eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141cb01d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141cb012e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141cb0218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141cb0225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141cb020d
cmp eax, 0x7d00
jae 0x141cb024b
cmp eax, 0x500
jb 0x141cb0246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141cb012e
cmp eax, 0x7f
ja 0x141cb024e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141cb012e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141cb0282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x141cb012e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001040
Capabilities:
Get domain controller name
Impersonate user

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x260
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbp, rdx
mov rsi, rcx
xor r12d, r12d
lea r8, [rsp + 0x40]
xor edx, edx
xor ecx, ecx
xor bl, bl
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
call qword [sym.imp.NETAPI32.dll_NetGetDCName]
mov rcx, qword [rsp + 0x40]
mov edi, eax
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
lea r8, [0x180014994]
lea rcx, str.Logonuser:___s__s__n
mov rdx, rsi
call fcn.180001270
lea r11, [rsp + 0x30]
lea r9d, [r12 + 2]
mov qword [rsp + 0x28], r11
lea rdx, [0x180014994]
mov r8, rbp
mov rcx, rsi
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
je 0x180001128
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x180001128
xor edx, edx
mov r8d, 0xe0000000
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x180001108
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp bl, 1
jne 0x180001128
mov eax, 1
jmp 0x1800011d3
test edi, edi
jne 0x1800011d0
lea r8, [rsp + 0x38]
lea edx, [rdi + 0x64]
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
test eax, eax
jne 0x1800011d0
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x50]
mov r8d, 0x100
mov rdx, qword [rdx + 0x10]
call fcn.1800018a8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
lea r8, [rsp + 0x50]
lea rcx, str.Logonuser:___s__s__n
mov rdx, rsi
call fcn.180001270
lea r11, [rsp + 0x30]
lea r9d, [rdi + 2]
mov qword [rsp + 0x28], r11
lea rdx, [rsp + 0x50]
mov r8, rbp
mov rcx, rsi
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
je 0x1800011d0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x1800011d0
call fcn.180001010
movzx ebx, al
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.180001250
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x180001d13
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x18000126a
rol rcx, 0x10
test cx, 0xffff
jne 0x180001266
repz ret
ror rcx, 0x10
jmp 0x180001c6c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180018390]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180018488]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180001cf1
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180018390]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180001d13
mov rax, qword [rsp + 0x88]
mov qword [0x180018488], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180018428], rax
mov rax, qword [0x180018488]
mov qword [0x180018300], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180018410], rax
mov dword [0x1800182f0], 0xc0000409
mov dword [0x1800182f4], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180017008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180018388], eax
mov ecx, 1
call fcn.1800057fc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180012348]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180018388], 0
jne 0x180001d9a
mov ecx, 1
call fcn.1800057fc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret