joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011947
Capabilities:
Write file on windows

Disassembly:
jmp 0x140018480
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x14002e018]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x1400350f5]
call fcn.140011965
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x1400184e6
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400184ed
mov al, 1
jmp 0x140018647
call fcn.14001128a
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.14001128a
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.1400117e9
movzx eax, al
test eax, eax
je 0x140018548
xor al, al
jmp 0x140018647
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x1400185ad
cmp dword [rbp + 0x194], 1
je 0x1400185b8
cmp dword [rbp + 0x194], 3
je 0x140018636
jmp 0x140018645
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140018608
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140018608
xor al, al
jmp 0x140018647
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140018623
mov dword [rbp + 0x194], 1
jmp 0x14001862d
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x140018647
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140018647
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140028b90]
call fcn.1400117cb
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.140011479
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140014888
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400148b6
xor eax, eax
jmp 0x14001499c
cmp qword [rcx + 0x68], 0
je 0x1400148c7
call fcn.14000ce30
jmp 0x14001499c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400148de
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400148e0
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140014912
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140018c90
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140014996
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140014949
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140014972
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140024d58
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140014996
cmp rsi, rbx
ja 0x140014950
test rsi, rsi
je 0x140014996
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140024d58
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140014ff8
Capabilities:
Get geographical location

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

Function at 0x140017b5c
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14001d3a7
call fcn.140023fdc
mov dword [rax], 0x16
call fcn.14001d9b8
xor eax, eax
jmp 0x14001d435
mov rdx, r9
mov rcx, r8
call fcn.14001d30c
mov rbx, rax
test rax, rax
je 0x14001d432
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14001d238]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14001d41f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140023f50
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001d406
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14001d415
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14002a534
jmp 0x14001d432
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001d42f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140027bec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400279e8
Function at 0x140030ac8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140017610
sub rsp, rax
mov rax, qword [0x140053018]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002ecf8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140030b17
mov rax, rbp
jmp 0x140030c1f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x55a50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140031be8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x55a50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140030c1b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140030c1b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140031be8
test rax, rax
js 0x140030c1b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140030c1b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140030c0d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140030c0d
cmp byte [rcx], 0xd
jne 0x140030bf3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140030c02
cmp byte [rcx + 1], 0xa
jne 0x140030c02
inc rcx
jmp 0x140030c02
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x53420]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140030bd5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140030c1f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140016d20
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140030e40
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140030e56
mov al, 1
jmp 0x140030eb6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140030e67
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140030eb4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003576c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140030eb4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140030eb4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140030eb4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140030eb6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140030f88
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, [0x140055a50]
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 0x140030fdf
cmp word [rdx], r13w
jne 0x140030fdf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140030fe4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140031109
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003112a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003101d
mov rdx, r9
mov word [rbx], cx
jmp 0x140031044
cmp r9, r8
jae 0x140031054
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 0x140030ffe
jmp 0x140031109
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 0x1400310fe
cmp dword [rsp + 0x80], esi
je 0x1400310fe
lea r8, [0x140055a50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400310d6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400310a6
mov word [rbx], r13w
jmp 0x140031106
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 0x1400310b3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140031106
cmp word [rsp + 0x70], r13w
jne 0x1400310e3
cmp rbx, r14
je 0x1400310a0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140031bf0
cmp word [rsp + 0x70], r13w
je 0x140031109
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, [0x140055a50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140031103
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140031109
Function at 0x140034d34
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 0x140034d64
xor eax, eax
jmp 0x140034e27
mov rbp, rbx
cmp word [rax], si
je 0x140034d89
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140034d70
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140034d6c
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.1400333ac
movsxd r14, eax
test eax, eax
jne 0x140034dc7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140034d5d
mov rcx, r14
call fcn.14002db74
mov rdi, rax
test rax, rax
jne 0x140034de0
xor ecx, ecx
call fcn.14002a534
jmp 0x140034dbc
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.1400333ac
test eax, eax
jne 0x140034e11
mov rcx, rdi
call fcn.14002a534
jmp 0x140034e1b
xor ecx, ecx
call fcn.14002a534
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 0x140037cc0
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.14002a8e8
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 0x140037d61
cmp ebx, dword [rsp + 0x30]
je 0x140037d5a
test esi, esi
je 0x140037d5a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140037d35
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140037d42
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140037d1f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140037d46
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140037d63
mov eax, 1
jmp 0x140037d63
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003aefc
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.14001e8a0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003af86
cmp byte [rbp - 0x21], r15b
je 0x14003af81
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003afbc
call fcn.14002af68
test eax, eax
jne 0x14003afa8
cmp byte [rbp - 0x21], r15b
je 0x14003afa0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003afbc
cmp byte [rbp - 0x21], r15b
je 0x14003afb9
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.140026890
test eax, eax
jne 0x14003b05c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001e8a0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003affb
cmp byte [rbp - 0x21], r15b
je 0x14003b030
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003b030
call fcn.14002af68
test eax, eax
jne 0x14003b01c
cmp byte [rbp - 0x21], r15b
je 0x14003b015
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003b030
cmp byte [rbp - 0x21], r15b
je 0x14003b02d
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.140026890
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003b05c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003b05f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003b06d
mov rcx, rdi
call fcn.14002a534
cmp byte [rbp + 0x3f], r15b
je 0x14003b07c
mov rcx, qword [rbp + 0x27]
call fcn.14002a534
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 0x1400017c8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140002e80
nop
cmp dword [0x14000d0a8], 1
je 0x140001774
mov dword [0x14000d0a4], 1
mov byte [0x14000d0a0], r12b
test ebx, ebx
jne 0x140001760
mov rcx, qword [0x14000e078]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000174d
mov rcx, qword [0x14000e070]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x1400016ec
call fcn.1400027dc
cmp qword [rdi], rax
jne 0x1400016ec
jmp 0x1400016d2
cmp rdi, rsi
jb 0x14000174d
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1400027dc
mov qword [rdi], rax
call rbx
mov rcx, qword [0x14000e078]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x14000e070]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14000172b
cmp r13, rax
je 0x14000174b
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x1400016d2
lea rdx, [0x140007278]
lea rcx, [0x140007270]
call fcn.14000151c
lea rdx, [0x140007288]
lea rcx, [0x140007280]
call fcn.14000151c
nop
test r12d, r12d
je 0x140001783
mov ecx, 8
call fcn.140002d80
test r12d, r12d
jne 0x1400017ae
mov dword [0x14000d0a8], 1
lea ecx, [r12 + 8]
call fcn.140002d80
mov ecx, r15d
call fcn.1400014b0
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x14000163c

Function at 0x1400017d4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14000163c
Function at 0x140003670
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400027dc
xor ebx, ebx
mov rdi, rax
cmp qword [0x14000d778], rbx
jne 0x140003776
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14000384b
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000384b
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14000d778], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14000d780], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14000d788], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14000d798], rax
test rax, rax
je 0x14000376d
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14000d790], rax
jmp 0x14000377d
mov rax, qword [0x14000d790]
jmp 0x140003784
mov rax, qword [0x14000d790]
mov r11, qword [0x14000d798]
cmp rax, rdi
je 0x1400037ec
cmp r11, rdi
je 0x1400037ec
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14000d798]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1400037ec
test rax, rax
je 0x1400037ec
call rsi
test rax, rax
je 0x1400037e6
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400037e6
test byte [rsp + 0x38], 1
jne 0x1400037ec
bts ebp, 0x15
jmp 0x14000382a
mov rcx, qword [0x14000d780]
cmp rcx, rdi
je 0x14000382a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000382a
call rax
mov rbx, rax
test rax, rax
je 0x14000382a
mov rcx, qword [0x14000d788]
cmp rcx, rdi
je 0x14000382a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000382a
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14000d778]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000384b
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14000384d
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400062b7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000acc0]
jne 0x1400050aa
rol rcx, 0x10
test cx, 0xffff
jne 0x1400050a6
repz ret
ror rcx, 0x10
jmp 0x140006210
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000d8a0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14000d998]
mov qword [rsp + 0x58], r11
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 0x140006295
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, [0x14000d8a0]
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 0x1400062b7
mov rax, qword [rsp + 0x88]
mov qword [0x14000d998], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000d938], rax
mov rax, qword [0x14000d998]
mov qword [0x14000d810], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000d920], rax
mov dword [0x14000d800], 0xc0000409
mov dword [0x14000d804], 1
mov rax, qword [0x14000acc0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000acc8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000d898], eax
mov ecx, 1
call fcn.140004e94
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400083c8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000d898], 0
jne 0x14000633e
mov ecx, 1
call fcn.140004e94
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret