joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140149180
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1401bb080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140149215
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140149276
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140123a80
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14015d6e0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140149331
sub ecx, 1
je 0x1401493a4
sub ecx, 1
je 0x1401492e0
cmp ecx, 1
je 0x1401492c3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140193d18]
call fcn.140123a80
jmp 0x1401493a4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140148eb0
test eax, eax
je 0x1401493a4
jmp 0x14014924a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1401493a4
sub rax, rsi
cmp rax, rbp
jae 0x1401493a4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140123c00
jmp 0x1401493a4
cmp r8d, 4
jle 0x1401493a4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1401493a4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1401239a0
mov esi, eax
test eax, eax
je 0x140149383
mov edx, 5
mov rcx, rbx
call fcn.140149e70
mov eax, esi
jmp 0x14014924a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1401322a0
mov rcx, r14
call fcn.140132580
test eax, eax
je 0x140149248
mov edx, 5
mov rcx, rbx
call fcn.140149e70
mov eax, Ordinal_46
jmp 0x14014924a
Function at 0x14015c140
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14015c182
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14015c1c9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14015c222
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x14015c1e0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14015c263
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14018e942]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14018e943]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14015c230
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14015c280
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 0x14015c2ba
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14015c2bf
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 0x14015c308
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14015c308
dec r8
sub rdx, 1
jne 0x14015c2ee
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14015dd14
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x130
mov rdi, rcx
test rcx, rcx
je 0x140001135
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x18]
mov rsi, qword [rdx + 0x20]
test rsi, rsi
je 0x140001135
mov ebp, 0x103
mov rbx, qword [rsi + 0x50]
test rbx, rbx
je 0x140001135
cmp word [rsi + 0x48], bp
jae 0x140001129
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.140002540
xor r10d, r10d
cmp word [rbx], r10w
je 0x1400010a0
cmp r10d, ebp
jae 0x1400010a0
movzx r8d, byte [rbx + r10*2]
lea edx, [r8 - 0x61]
cmp dl, 0x19
lea eax, [r8 - 0x20]
movzx ecx, al
cmova ecx, r8d
mov byte [rsp + r10 + 0x20], cl
inc r10d
cmp word [rbx + r10*2], 0
jne 0x140001074
xor r8d, r8d
mov byte [rsp + r10 + 0x20], 0
movzx r10d, byte [rsp + 0x20]
lea r9, [rsp + 0x20]
xor edx, edx
lea rax, [rsp + 0x20]
test r10b, r10b
je 0x1400010c8
inc rax
cmp byte [rax], 0
jne 0x1400010c0
lea rcx, [rsp + 0x20]
sub rax, rcx
movsxd rcx, edx
cmp rcx, rax
jae 0x1400010ea
movsx eax, byte [r9]
inc edx
ror r8d, 7
add r8d, eax
inc r9
jmp 0x1400010b6
movzx r11d, byte [rdi]
xor edx, edx
xor r9d, r9d
mov r10, rdi
mov rcx, rdi
test r11b, r11b
je 0x140001108
nop
inc rcx
cmp byte [rcx], 0
jne 0x140001100
sub rcx, rdi
movsxd rax, r9d
cmp rax, rcx
jae 0x140001124
movsx eax, byte [r10]
inc r9d
ror edx, 7
add edx, eax
inc r10
jmp 0x1400010f6
cmp r8d, edx
je 0x140001150
mov rsi, qword [rsi]
test rsi, rsi
jne 0x140001042
xor eax, eax
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rax, qword [rsi + 0x20]
jmp 0x140001137
Function at 0x1400015b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, qword [rcx + 0x20]
xor r12d, r12d
mov rbp, rdx
cmp dword [r13 + 4], r12d
jbe 0x1400016da
mov eax, dword [r13]
add rax, r12
mov edi, dword [rax + rbp]
lea rbx, [rax + rbp]
test edi, edi
jne 0x1400015fb
cmp dword [rbx + 0x10], edi
je 0x1400016da
mov ecx, dword [rax + rbp + 0xc]
mov esi, dword [rbx + 0x10]
add rcx, rbp
call fcn.140001430
mov r14, rax
test rax, rax
je 0x1400016fc
test edi, edi
jne 0x14000161d
mov edi, dword [rbx + 0x10]
cmp qword [rsi + rbp], 0
mov r15d, edi
lea rdi, [rsi + rbp]
lea rdx, [r15 + rbp]
je 0x1400016c9
mov rbx, rdi
sub r15, rsi
nop dword [rax]
mov rdx, qword [rdx]
test rdx, rdx
jns 0x140001664
movsxd rax, dword [r14 + 0x3c]
mov ecx, dword [rax + r14 + 0x88]
mov ecx, dword [rcx + r14 + 0x1c]
add rcx, r14
mov eax, dword [rcx + rdx*4]
add rax, r14
jmp 0x1400016ac
lea r8, [rbp + 2]
add r8, rdx
xor edx, edx
xor r9d, r9d
mov r10, r8
movzx r11d, byte [r8]
mov rax, r8
test r11b, r11b
je 0x140001688
nop
inc rax
cmp byte [rax], 0
jne 0x140001680
sub rax, r8
movsxd rcx, r9d
cmp rcx, rax
jae 0x1400016a4
movsx eax, byte [r10]
inc r9d
ror edx, 7
add edx, eax
inc r10
jmp 0x140001677
mov rcx, r14
call fcn.140001160
test rax, rax
je 0x1400016fc
add rbx, 8
mov qword [rdi], rax
mov rdi, rbx
cmp qword [rbx], 0
lea rdx, [r15 + rbx]
jne 0x140001640
mov eax, dword [r13 + 4]
add r12, 0x14
cmp r12, rax
jb 0x1400015e0
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor eax, eax
jmp 0x1400016df
Function at 0x1400025b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov edx, 0x5c
mov dword [rsp + 0x70], 0x4b005c
mov word [rbp - 0x7c], dx
mov rbx, rcx
xor edx, edx
mov dword [rsp + 0x74], 0x6f006e
mov r8d, 0x1f2
mov dword [rsp + 0x78], 0x6e0077
lea rcx, [rbp - 0x7a]
mov dword [rsp + 0x7c], 0x6c0044
mov dword [rbp - 0x80], 0x73006c
call fcn.140002540
movzx ecx, word [rsp + 0x70]
lea rax, [rbp + 0x180]
test cx, cx
je 0x140002640
lea rdx, [rsp + 0x70]
lea r8, [rbp + 0x180]
sub rdx, r8
nop dword [rax]
mov word [rax], cx
add rax, 2
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x140002630
xor edx, edx
mov word [rax], dx
lea rax, [rbp + 0x180]
test rbx, rbx
je 0x140002693
cmp word [rbp + 0x180], dx
je 0x140002669
nop word [rax + rax]
add rax, 2
cmp word [rax], dx
jne 0x140002660
movzx ecx, word [rbx]
test cx, cx
je 0x140002690
sub rbx, rax
nop dword [rax]
nop dword [rax + rax]
mov word [rax], cx
add rax, 2
movzx ecx, word [rbx + rax]
test cx, cx
jne 0x140002680
mov word [rax], dx
lea rax, [rbp + 0x180]
mov qword [rsp + 0x38], rax
lea rcx, [rbp + 0x180]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], dx
jne 0x1400026b0
add eax, eax
mov qword [rsp + 0x48], rdx
mov ecx, 0xfffc
mov dword [rsp + 0x40], 0x30
cmp eax, ecx
mov dword [rsp + 0x58], 0x40
xorps xmm0, xmm0
lea r8, [rbp + 0x3a0]
cmova eax, ecx
lea rdx, [rsp + 0x40]
mov word [rsp + 0x30], ax
mov ecx, 0xc
add ax, 2
mov word [rsp + 0x32], ax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
movdqu xmmword [rsp + 0x60], xmm0
call fcn.140005090
cmp dword [rbp + 0x3a0], 0
jl 0x14000274d
cmp rax, 0xffffffffffffffff
je 0x14000274d
lea rcx, [rbp + 0x3a0]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rax
mov dword [rsp + 0x20], 2
xor edx, edx
call fcn.140004f00
cmp dword [rbp + 0x3a0], 0
jge 0x14000274f
xor eax, eax
mov rbx, qword [rsp + 0x4a8]
add rsp, 0x490
pop rbp
ret

Function at 0x140004680
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
lea r8, [0x1400070c0]
nop dword [rax]
mov ecx, edx
lea r8, [r8 + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [r8 - 4], eax
cmp edx, 0x100
jb 0x140004690
ret

Function at 0x140004730
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14000475e
lea r10, [0x1400070c0]
nop dword [rax]
movzx r9d, byte [rdx]
lea rdx, [rdx + 1]
mov eax, ecx
shr ecx, 8
xor r9, rax
movzx eax, r9b
xor ecx, dword [r10 + rax*4]
sub r8, 1
jne 0x140004740
mov eax, ecx
ret
Function at 0x1400052f0
Capabilities:
Check os version
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x58
mov rax, qword gs:[0x60]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x10], 0
je 0x140005318
mov rax, qword [rsp + 0x10]
cmp dword [rax + 0x118], 0xa
je 0x14000531f
xor eax, eax
jmp 0x14000546e
mov rax, qword [rsp + 0x10]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
sub rax, 0x10
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x30]
mov qword [rsp], rax
cmp qword [rsp], 0
jne 0x140005353
xor eax, eax
jmp 0x14000546e
mov rax, qword [rsp]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140005372
xor eax, eax
jmp 0x14000546e
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x4550
je 0x14000539e
xor eax, eax
jmp 0x14000546e
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0
jne 0x1400053d1
xor eax, eax
jmp 0x14000546e
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp]
mov qword [0x140007080], rax
mov rax, qword [rsp + 0x18]
mov qword [0x140007088], rax
mov rax, qword [rsp + 0x20]
mov qword [0x140007090], rax
mov rax, qword [rsp + 8]
mov qword [0x140007098], rax
mov rax, qword [rsp + 0x30]
mov qword [0x1400070a0], rax
mov rax, qword [rsp + 0x38]
mov qword [0x1400070a8], rax
mov rax, qword [rsp + 0x40]
mov qword [0x1400070b0], rax
mov eax, 1
add rsp, 0x58
ret

Function at 0x140005b11
Capabilities:
Execute syscall

Disassembly:
mov rax, rcx
mov r10, rax
mov eax, dword [0x140007020]
syscall
ret
Function at 0x1400017e4
Capabilities:
Parse pe header

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

Function at 0x140004e0c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140004e7b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004e7b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004e7b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004e7b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004e7b
cmp dword [rcx + 0x84], 0xe
jbe 0x140004e7b
cmp dword [rcx + 0xf8], 0
je 0x140004e7b
mov ecx, ebx
call fcn.140004f20
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140004d14
nop
cmp dword [rbp + 0x20], 0
jne 0x140004edc
call fcn.140008664
cmp eax, 1
jne 0x140004ecc
xor dl, dl
jmp 0x140004ed6
call fcn.140008630
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140004ee7
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140004ef0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140004e0c

Function at 0x140004ff4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140004e0c
Function at 0x140008020
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 0x140008050
xor eax, eax
jmp 0x140008113
mov rbp, rbx
cmp word [rax], si
je 0x140008075
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000805c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140008058
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.140007f40
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x1400080b6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140008049
call fcn.140008f10
mov rdi, rax
test rax, rax
jne 0x1400080cc
xor ecx, ecx
call fcn.140006520
jmp 0x1400080ab
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.140007f40
test eax, eax
jne 0x1400080fd
mov rcx, rdi
call fcn.140006520
jmp 0x140008107
xor ecx, ecx
call fcn.140006520
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 0x14000ba1c
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.140006ff8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000baa6
cmp byte [rbp - 0x21], r15b
je 0x14000baa1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000badc
call fcn.140009754
test eax, eax
jne 0x14000bac8
cmp byte [rbp - 0x21], r15b
je 0x14000bac0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000badc
cmp byte [rbp - 0x21], r15b
je 0x14000bad9
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.14000658c
test eax, eax
jne 0x14000bb7c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140006ff8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000bb1b
cmp byte [rbp - 0x21], r15b
je 0x14000bb50
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000bb50
call fcn.140009754
test eax, eax
jne 0x14000bb3c
cmp byte [rbp - 0x21], r15b
je 0x14000bb35
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000bb50
cmp byte [rbp - 0x21], r15b
je 0x14000bb4d
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.14000658c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000bb7c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000bb7f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000bb8d
mov rcx, rdi
call fcn.140006520
cmp byte [rbp + 0x3f], r15b
je 0x14000bb9c
mov rcx, qword [rbp + 0x27]
call fcn.140006520
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 0x14000d9a0
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1400132e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001128f
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014620
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014640
xor al, al
jmp 0x1400146c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014653
xor al, al
jmp 0x1400146c1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001467d
xor al, al
jmp 0x1400146c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014691
xor al, al
jmp 0x1400146c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400146a3
xor al, al
jmp 0x1400146c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400146bf
xor al, al
jmp 0x1400146c1
mov al, 1
add rsp, 0x38
ret
Function at 0x140012520
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113b1
movzx eax, al
test eax, eax
jne 0x140012540
mov ecx, 7
call fcn.14001132a
nop
mov byte [rsp + 0x20], 0
call fcn.14001133e
mov byte [rsp + 0x21], al
cmp dword [0x14001e868], 1
jne 0x140012564
mov ecx, 7
call fcn.14001132a
nop
jmp 0x1400125bc
cmp dword [0x14001e868], 0
jne 0x1400125b7
mov dword [0x14001e868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111a9
test eax, eax
je 0x140012598
mov eax, 0xff
jmp 0x1400126c1
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011334
mov dword [0x14001e868], 2
jmp 0x1400125bc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011316
call fcn.1400112b2
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012619
mov rcx, qword [rsp + 0x30]
call fcn.14001115e
movzx eax, al
test eax, eax
je 0x140012619
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140024020]
nop
call fcn.1400112e4
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001264d
mov rcx, qword [rsp + 0x38]
call fcn.14001115e
movzx eax, al
test eax, eax
je 0x14001264d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011370
nop
call fcn.140012770
mov dword [rsp + 0x28], eax
call fcn.14001128f
movzx eax, al
test eax, eax
jne 0x14001266c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001267b
call fcn.14001137a
nop
xor edx, edx
mov cl, 1
call fcn.14001114f
mov eax, dword [rsp + 0x28]
jmp 0x1400126c1
add rsp, 0x68
ret