joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008ce0
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movabs rax, 0xfffffffffffffff
mov rsi, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140008e5c
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsi + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x20], r14
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140008ba0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140008e25
mov qword [rsp + 0x58], rbp
movabs rdi, 0xcbf29ce484222325
movabs rbp, 0x100000001b3
movzx r9d, byte [rax + 0x10]
mov r11, qword [rsi + 0x30]
mov edx, r9d
mov rcx, qword [rcx]
xor rdx, rdi
imul rdx, rbp
and r11, rdx
shl r11, 4
add r11, qword [rsi + 0x18]
mov r8, qword [r11]
cmp r8, rbx
jne 0x140008da3
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140008e14
mov rdx, qword [r11 + 8]
cmp r9b, byte [rdx + 0x10]
jne 0x140008ddc
mov r10, qword [rdx]
cmp r10, rax
je 0x140008dd6
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140008e14
cmp r8, rdx
je 0x140008df0
mov rdx, qword [rdx + 8]
cmp r9b, byte [rdx + 0x10]
je 0x140008e36
cmp r8, rdx
jne 0x140008de1
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
jne 0x140008d71
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140008e14
lea rcx, str.invalid_hash_bucket_count
call fcn.14000c78c
int3
Function at 0x140009310
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12, r8
mov rsi, rdx
mov r14, rcx
movzx eax, byte [r8]
mov r13d, eax
movabs rcx, 0xcbf29ce484222325
xor r13, rcx
movabs rcx, 0x100000001b3
imul r13, rcx
mov rcx, qword [r14 + 0x30]
and rcx, r13
add rcx, rcx
mov rdx, qword [r14 + 0x18]
mov rbx, qword [rdx + rcx*8 + 8]
lea r8, [r14 + 8]
mov r15, qword [r8]
cmp rbx, r15
jne 0x140009376
mov rbx, r15
mov rbp, r15
jmp 0x1400093b6
mov rcx, qword [rdx + rcx*8]
cmp al, byte [rbx + 0x10]
je 0x14000938e
nop
cmp rbx, rcx
je 0x1400093b0
mov rbx, qword [rbx + 8]
cmp al, byte [rbx + 0x10]
jne 0x140009380
mov qword [rsi], rbx
mov byte [rsi + 8], 0
mov rax, rsi
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r15, rbx
mov rbp, rbx
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [r14 + 0x10], rax
je 0x140009528
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x28], 0
mov ecx, 0x18
call fcn.14000f65c
mov rdi, rax
mov qword [rsp + 0x28], rax
movzx eax, byte [r12]
mov byte [rdi + 0x10], al
mov byte [rdi + 0x11], 0
mov rdx, qword [r14 + 0x10]
add rdx, 1
xorps xmm0, xmm0
js 0x14000940a
cvtsi2ss xmm0, rdx
jmp 0x140009422
mov rcx, rdx
shr rcx, 1
mov rax, rdx
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
mov rcx, qword [r14 + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x140009435
cvtsi2ss xmm1, rcx
jmp 0x14000944a
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [r14]
seta al
test al, al
je 0x1400094c1
mov rcx, r14
call fcn.140008e70
mov rdx, rax
mov rcx, r14
call fcn.140008ce0
mov rdx, qword [r14 + 0x30]
and rdx, r13
add rdx, rdx
mov rcx, qword [r14 + 0x18]
mov rax, qword [rcx + rdx*8 + 8]
mov rbx, qword [r14 + 8]
cmp rax, rbx
jne 0x140009493
mov qword [rsp + 0x28], 0
jmp 0x1400094b4
mov rdx, qword [rcx + rdx*8]
movzx ecx, byte [rdi + 0x10]
cmp cl, byte [rax + 0x10]
je 0x1400094b1
mov rbx, rax
cmp rax, rdx
je 0x1400094f5
mov rax, qword [rax + 8]
cmp cl, byte [rax + 0x10]
jne 0x1400094a0
mov rbx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rbp, rbx
mov r15, qword [rsp + 0x20]
mov rdx, qword [rbx + 8]
inc qword [r14 + 0x10]
mov qword [rdi], r15
mov qword [rdi + 8], rdx
mov qword [rdx], rdi
mov qword [rbx + 8], rdi
mov rcx, qword [r14 + 0x18]
mov rax, qword [r14 + 0x30]
and rax, r13
add rax, rax
mov r8, qword [rcx + rax*8]
cmp r8, qword [r14 + 8]
jne 0x140009505
mov qword [rcx + rax*8], rdi
jmp 0x140009517
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
jmp 0x1400094b9
cmp r8, rbp
jne 0x140009510
mov qword [rcx + rax*8], rdi
jmp 0x14000951c
cmp qword [rcx + rax*8 + 8], rdx
jne 0x14000951c
mov qword [rcx + rax*8 + 8], rdi
mov qword [rsi], rdi
mov byte [rsi + 8], 1
jmp 0x140009395
lea rcx, str.unordered_map_set_too_long
call fcn.14000c78c
int3
Function at 0x14000e628
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 0x14000e656
xor eax, eax
jmp 0x14000e73c
cmp qword [rcx + 0x68], 0
je 0x14000e667
call fcn.14000e758
jmp 0x14000e73c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000e67e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000e680
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000e6b2
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140031220
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 0x14000e736
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000e6e9
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 0x14000e712
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.14001963c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000e736
cmp rsi, rbx
ja 0x14000e6f0
test rsi, rsi
je 0x14000e736
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14001963c
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 0x140010020
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001006a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001006a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001006a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001006a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001006a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001006c
xor al, al
add rsp, 0x28
ret
Function at 0x1400184d8
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 0x14001850f
call fcn.14001abd8
mov dword [rax], 0x16
call fcn.140018308
xor eax, eax
jmp 0x14001859d
mov rdx, r9
mov rcx, r8
call fcn.140018474
mov rbx, rax
test rax, rax
je 0x14001859a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400183a0]
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 0x140018587
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001ab4c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14001856e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14001857d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14001ee54
jmp 0x14001859a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140018597
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 0x14001bca8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001baa4
Function at 0x140023840
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.14000fca0
sub rsp, rax
mov rax, qword [0x140047040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140020f88
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002388f
mov rax, rbp
jmp 0x140023997
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 + 0x49790]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140024960
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x49790]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140023993
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 0x140023993
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140024960
test rax, rax
js 0x140023993
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140023993
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140023985
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140023985
cmp byte [rcx], 0xd
jne 0x14002396b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002397a
cmp byte [rcx + 1], 0xa
jne 0x14002397a
inc rcx
jmp 0x14002397a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x47470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14002394d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140023997
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000f280
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 0x140023bb8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140023bce
mov al, 1
jmp 0x140023c2e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140023bdf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140023c2c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140027e44
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140023c2c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140023c2c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140023c2c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140023c2e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140023d00
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, [0x140049790]
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 0x140023d57
cmp word [rdx], r13w
jne 0x140023d57
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140023d5c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140023e81
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140023ea2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140023d95
mov rdx, r9
mov word [rbx], cx
jmp 0x140023dbc
cmp r9, r8
jae 0x140023dcc
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 0x140023d76
jmp 0x140023e81
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 0x140023e76
cmp dword [rsp + 0x80], esi
je 0x140023e76
lea r8, [0x140049790]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140023e4e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140023e1e
mov word [rbx], r13w
jmp 0x140023e7e
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 0x140023e2b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140023e7e
cmp word [rsp + 0x70], r13w
jne 0x140023e5b
cmp rbx, r14
je 0x140023e18
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140024968
cmp word [rsp + 0x70], r13w
je 0x140023e81
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, [0x140049790]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140023e7b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140023e81
Function at 0x140027330
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 0x140027360
xor eax, eax
jmp 0x140027423
mov rbp, rbx
cmp word [rax], si
je 0x140027385
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002736c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140027368
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.140025a70
movsxd r14, eax
test eax, eax
jne 0x1400273c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140027359
mov rcx, r14
call fcn.14001fd2c
mov rdi, rax
test rax, rax
jne 0x1400273dc
xor ecx, ecx
call fcn.14001ee54
jmp 0x1400273b8
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.140025a70
test eax, eax
jne 0x14002740d
mov rcx, rdi
call fcn.14001ee54
jmp 0x140027417
xor ecx, ecx
call fcn.14001ee54
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 0x14002a398
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.140021494
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 0x14002a439
cmp ebx, dword [rsp + 0x30]
je 0x14002a432
test esi, esi
je 0x14002a432
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002a40d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002a41a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002a3f7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002a41e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002a43b
mov eax, 1
jmp 0x14002a43b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002d154
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.14001abf8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002d1de
cmp byte [rbp - 0x21], r15b
je 0x14002d1d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002d214
call fcn.14001f1b0
test eax, eax
jne 0x14002d200
cmp byte [rbp - 0x21], r15b
je 0x14002d1f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002d214
cmp byte [rbp - 0x21], r15b
je 0x14002d211
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.14001b1dc
test eax, eax
jne 0x14002d2b4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001abf8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002d253
cmp byte [rbp - 0x21], r15b
je 0x14002d288
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002d288
call fcn.14001f1b0
test eax, eax
jne 0x14002d274
cmp byte [rbp - 0x21], r15b
je 0x14002d26d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002d288
cmp byte [rbp - 0x21], r15b
je 0x14002d285
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.14001b1dc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002d2b4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002d2b7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002d2c5
mov rcx, rdi
call fcn.14001ee54
cmp byte [rbp + 0x3f], r15b
je 0x14002d2d4
mov rcx, qword [rbp + 0x27]
call fcn.14001ee54
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 0x14002f0a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002f0c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002f0c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x42fb50
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x42fb5d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x42fb6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x42fb55
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x42fb85
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x42fb72
sub eax, 3
jb 0x42fb9f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x42fbd6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x42fbc6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x42fbc4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x42fbb3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.0042fb12
jmp 0x42fb5d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xe000
mov dl, 6
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x42fc22
cmp rsi, rcx
jae 0x42fc2a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x42fc09
cmp al, 0x8f
ja 0x42fc09
cmp byte [rsi - 2], 0xf
je 0x42fc0f
sub al, 0xe8
cmp al, 1
ja 0x42fbf3
cmp rsi, rcx
jae 0x42fc2a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x42fbf9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x42fc2a
lodsb al, byte [rsi]
jmp 0x42fc09
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2d000]
mov eax, dword [rdi]
or eax, eax
je 0x42fc87
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x3dfb0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x42fc37
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x42fc81
mov qword [rbx], rax
add rbx, 8
jmp 0x42fc57
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.0042fd0a], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.0042fd0a
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x42fcfa
sub rsp, 0xffffffffffffff80
jmp 0x401500
Function at 0x140002314
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14008a040]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [rcx + 0x10]
mov rbx, rcx
cmp rax, 0xffffffffffffffff
je 0x14000fae8
mov rax, qword [rcx]
call qword [rax + 0x18]
mov qword [rsp + 0x30], 0
lea rcx, [rbx + 0x18]
mov dword [rsp + 0x28], 0x40000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx + 0x10], rax
mov rax, qword [rbx + 0x10]
cmp rax, 0xffffffffffffffff
je 0x14000fb76
lea rax, [rsp + 0x40]
mov byte [rbx + 0xb4], 1
mov qword [rsp + 0x28], rax
lea r8, [0x14000fd10]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0xa0], rax
mov rax, qword [rbx + 0xa0]
test rax, rax
jne 0x14000fb8b
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x10], 0xffffffffffffffff
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14006c170
add rsp, 0x50
pop rbx
ret
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14006c170
add rsp, 0x50
pop rbx
ret

Function at 0x14000fc70
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rbx, rcx
cmp rax, 0xffffffffffffffff
je 0x14000fd09
mov byte [rcx + 0xb4], 0
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetCommMask]
mov rcx, qword [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rbx + 0xa0]
mov edx, 0x64
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000fccc
mov rcx, qword [rbx + 0xa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xa0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0xd8]
mov qword [rbx + 0xa0], 0
mov qword [rbx + 0x10], 0xffffffffffffffff
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_ResetEvent]
add rsp, 0x20
pop rbx
ret