joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011569
Capabilities:
Create udp socket
Get socket status
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
jmp 0x140012ee0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x868
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x17e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x888]
mov rax, qword [0x140022040]
xor rax, rbp
mov qword [rbp + 0x828], rax
lea rcx, [0x1400280f4]
call fcn.140011514
nop
mov rax, qword [rbp + 0x850]
mov qword [rax], 0
lea rdx, [rbp + 0x10]
mov cx, 0x202
call fcn.1400112e9
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0
je 0x140012f5b
xor eax, eax
jmp 0x140013138
mov dword [rbp + 0x224], 0
mov r8d, reloc.WS2_32.dll_recvfrom
mov edx, 2
mov ecx, 2
call fcn.140011186
mov dword [rbp + 0x224], eax
cmp dword [rbp + 0x224], 0
jge 0x140012f90
xor eax, eax
jmp 0x140013138
lea rax, [rbp + 0x4b8]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rbp + 0x4b8], 0x1b
mov eax, 2
mov word [rbp + 0x558], ax
mov cx, 0x7b
call fcn.1400114b5
mov word [rbp + 0x55a], ax
lea rcx, str.120.25.115.20
call fcn.14001121c
mov dword [rbp + 0x55c], eax
mov dword [rbp + 0x5b4], select
movsxd rax, dword [rbp + 0x224]
mov dword [rsp + 0x28], select
lea rcx, [rbp + 0x558]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, 0x30
lea rdx, [rbp + 0x4b8]
mov rcx, rax
call fcn.14001140b
mov dword [rbp + 0x1e4], eax
cmp dword [rbp + 0x1e4], 0
jge 0x140013039
call fcn.1400114ec
mov dword [rbp + 0x5d4], eax
xor eax, eax
jmp 0x140013138
mov dword [rbp + 0x270], 0
cmp dword [rbp + 0x270], 0x40
jae 0x14001306f
movsxd rax, dword [rbp + 0x224]
mov ecx, dword [rbp + 0x270]
mov qword [rbp + rcx*8 + 0x278], rax
mov eax, dword [rbp + 0x270]
inc eax
mov dword [rbp + 0x270], eax
xor eax, eax
test eax, eax
jne 0x140013043
mov dword [rbp + 0x498], 0xa
mov dword [rbp + 0x49c], 0
mov eax, dword [rbp + 0x224]
inc eax
lea rcx, [rbp + 0x498]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x270]
mov ecx, eax
call fcn.1400114bf
test eax, eax
jle 0x14001311d
movsxd rax, dword [rbp + 0x224]
lea rcx, [rbp + 0x5b4]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x588]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, 0x30
lea rdx, [rbp + 0x508]
mov rcx, rax
call fcn.1400110b4
mov dword [rbp + 0x204], eax
cmp dword [rbp + 0x204], 0
jle 0x14001311d
movsxd rax, dword [rbp + 0x530]
mov ecx, 0x83aa7e80
sub rax, rcx
mov ecx, eax
call fcn.140011041
mov eax, eax
mov rcx, qword [rbp + 0x850]
mov qword [rcx], rax
movsxd rax, dword [rbp + 0x224]
mov rcx, rax
call fcn.14001135c
nop
call fcn.14001125d
nop
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001ef00]
call fcn.140011460
mov rax, rdi
mov rcx, qword [rbp + 0x828]
xor rcx, rbp
call fcn.140011280
lea rsp, [rbp + 0x838]
pop rdi
pop rbp
ret
Function at 0x140016320
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001153c
movzx eax, al
test eax, eax
jne 0x140016340
mov ecx, 7
call fcn.14001146a
nop
mov byte [rsp + 0x20], 0
call fcn.14001148d
mov byte [rsp + 0x21], al
cmp dword [0x140022b78], 1
jne 0x140016364
mov ecx, 7
call fcn.14001146a
nop
jmp 0x1400163bc
cmp dword [0x140022b78], 0
jne 0x1400163b7
mov dword [0x140022b78], 1
lea rdx, [0x14001e660]
lea rcx, [0x14001e330]
call fcn.140011267
test eax, eax
je 0x140016398
mov eax, 0xff
jmp 0x1400164c1
lea rdx, [0x14001e220]
lea rcx, [section..rdata]
call fcn.14001147e
mov dword [0x140022b78], 2
jmp 0x1400163bc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011456
call fcn.1400113b6
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140016419
mov rcx, qword [rsp + 0x30]
call fcn.1400111f9
movzx eax, al
test eax, eax
je 0x140016419
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 [0x140029020]
nop
call fcn.1400113fc
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001644d
mov rcx, qword [rsp + 0x38]
call fcn.1400111f9
movzx eax, al
test eax, eax
je 0x14001644d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400114f1
nop
call fcn.140016570
mov dword [rsp + 0x28], eax
call fcn.14001138e
movzx eax, al
test eax, eax
jne 0x14001646c
mov ecx, dword [rsp + 0x28]
call fcn.140011078
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001647b
call fcn.1400114fb
nop
xor edx, edx
mov cl, 1
call fcn.1400111e0
mov eax, dword [rsp + 0x28]
jmp 0x1400164c1
add rsp, 0x68
ret
Function at 0x140012900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x90], 0
jne 0x140012954
xor eax, eax
jmp 0x140012b04
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov eax, 0xffff0000
mov rcx, qword [rsp + 0x98]
and rcx, rax
mov rax, rcx
test rax, rax
jne 0x140012a5d
mov rax, qword [rsp + 0x98]
and rax, 0xffff
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 0x10]
sub rax, rcx
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x140012aff
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x28]
dec eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x50], 0
je 0x140012aff
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
call fcn.140010b70
test eax, eax
jne 0x140012ade
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x140012aff
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
jmp 0x140012a69
mov rax, qword [rsp + 0x58]
add rsp, 0x88
ret
Function at 0x1400203b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x14005a300]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x1400203e4
xor eax, eax
jmp 0x1400205da
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x140020415
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140020600
jmp 0x1400205da
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call fcn.14000b120
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x1400204c3
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.1400035a0
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call fcn.14000e710
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.14000cc30
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.14001d690
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x1400205ca
mov rcx, qword [rsp + 0x80]
call fcn.14001b160
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x140020578
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.14002ccb8
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x140020573
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x1400205da
jmp 0x1400204ef
cmp qword [rsp + 0x50], 0
jbe 0x1400205ca
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.14002ccb8
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140022760
add rsp, 0x78
ret

Function at 0x14002316c
Capabilities:
Parse pe header

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

Function at 0x1400302d8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140030090
Function at 0x140037754
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x140037786
call fcn.14002e7e0
mov dword [rax], 0x16
call fcn.140029648
jmp 0x1400378a5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400378a5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400378a5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400377b5
lock or dword [rcx + 0x14], 0x10
jmp 0x1400378a5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400377c9
call fcn.140038e28
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400353d8
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140038584
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140037893
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14003785e
mov rcx, rsi
call fcn.1400353d8
cmp eax, edi
je 0x140037849
mov rcx, rsi
call fcn.1400353d8
cmp eax, 0xfffffffe
je 0x140037849
mov rcx, rsi
call fcn.1400353d8
movsxd rbx, eax
lea r14, [0x14005cd70]
mov rcx, rsi
sar rbx, 6
call fcn.1400353d8
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140037850
lea rdx, [0x14005a6f0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14003785e
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x140037882
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x140037882
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x140037882
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400378a8
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x140037bf0
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.140022700
sub rsp, rax
mov rax, qword [0x14005a300]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400353d8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140037c3f
mov rax, rbp
jmp 0x140037d47
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 + 0x5cd70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140038d70
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5cd70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140037d43
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 0x140037d43
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140038d70
test rax, rax
js 0x140037d43
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140037d43
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140037d35
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140037d35
cmp byte [rcx], 0xd
jne 0x140037d1b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140037d2a
cmp byte [rcx + 1], 0xa
jne 0x140037d2a
inc rcx
jmp 0x140037d2a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5a740]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140037cfd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140037d47
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140022760
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 0x1400380c8
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14005cd70]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140038126
cmp word [rdx], r12w
jne 0x140038126
or byte [rax + r8*8 + 0x38], cl
jmp 0x14003812c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140038287
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140038262
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140038165
mov rcx, r9
jmp 0x140038188
cmp r9, rdx
jae 0x14003819f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140038149
jmp 0x140038287
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003825c
cmp dword [rsp + 0x80], edi
je 0x14003825c
mov rdx, r14
lea r11, [0x14005cd70]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140038235
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140038208
mov word [rbx], r12w
jmp 0x140038283
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140038211
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140038283
cmp word [rsp + 0x70], r12w
jne 0x140038242
cmp rbx, rsi
je 0x140038202
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140038d7c
cmp word [rsp + 0x70], r12w
je 0x140038287
mov word [rbx], r13w
jmp 0x140038283
lea r11, [0x14005cd70]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14003827f
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140038287
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003c284
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14003c30b
mov rsi, rbx
cmp word [rax], bp
je 0x14003c2ca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14003c2b4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003c2b0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140034114
mov rdi, rax
test rax, rax
je 0x14003c2f8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140044a90
mov rbp, rdi
xor ecx, ecx
call fcn.1400340d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140043bb8
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140038d7c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140038d7c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140043d08
cmp rax, 0xffffffffffffffff
je 0x140043d08
xor edi, edi
test rbp, rbp
jle 0x140043cb3
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140034054
mov rbx, rax
test rax, rax
jne 0x140043c40
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140043ca9
mov edx, 0x8000
mov ecx, r14d
call fcn.140030364
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14003743c
cmp eax, 0xffffffff
je 0x140043c89
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140043c50
mov edx, r15d
mov ecx, r14d
call fcn.140030364
jmp 0x140043ca9
cmp byte [rsi + 0x38], dil
je 0x140043ca0
cmp dword [rsi + 0x34], 5
jne 0x140043ca0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140043ca9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400340d0
jmp 0x140043d1c
jns 0x140043d1c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140038d7c
cmp rax, 0xffffffffffffffff
jne 0x140043cd4
cmp byte [rsi + 0x30], dil
je 0x140043d1c
mov edi, dword [rsi + 0x2c]
jmp 0x140043d1c
mov ecx, r14d
call fcn.14003ccbc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140043d1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140043d1c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140043d15
mov eax, dword [rsi + 0x2c]
jmp 0x140043d1a
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140038d7c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140044670
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140044698
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140044698
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14001ea70]
mov dword [rax], 1
mov rax, qword [0x14001ea80]
mov dword [rax], 1
mov rax, qword [0x14001ea90]
mov dword [rax], 1
mov rax, qword [0x14001ea10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret