joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bcd20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rdi, rcx
mov dword [rbp + 0x380], 0x400
xor ecx, ecx
mov dword [rbp + 0x390], 0xf003f
xorps xmm0, xmm0
mov qword [rsp + 0x30], rcx
mov rbx, r9
mov rax, r8
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rcx
mov r10, rdx
mov qword [rdi + 0x18], send
mov byte [rdi], cl
cmp qword [r8 + 0x18], 0x10
jb 0x1400bcd78
mov rax, qword [r8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x488], rsi
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
mov rcx, r10
xor r8d, r8d
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400bcf0f
cmp qword [rbx + 0x18], 0x10
jb 0x1400bcdb1
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x380]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x390]
lea rax, [rsp + 0x60]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400bcf0f
mov qword [rsp + 0x498], r14
lea rcx, [rsp + 0x38]
mov r14d, dword [rbp + 0x380]
xorps xmm0, xmm0
dec r14d
movups xmmword [rsp + 0x38], xmm0
cmp r14, 0x10
jae 0x1400bce34
mov r8d, r14d
mov qword [rsp + 0x48], r14
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x50], send
call fcn.1400e4ca0
mov byte [rsp + r14 + 0x38], 0
mov rsi, qword [rsp + 0x50]
jmp 0x1400bce77
mov eax, socket
mov rsi, r14
or rsi, 0xf
cmp rsi, rax
cmovb rsi, rax
lea rdx, [rsi + 1]
call fcn.140027ca0
mov r8, r14
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x48], r14
mov rcx, rax
mov qword [rsp + 0x50], rsi
mov rbx, rax
call fcn.1400e4ca0
mov byte [rbx + r14], 0
mov r14, qword [rsp + 0x498]
lea rax, [rsp + 0x38]
cmp rdi, rax
je 0x1400bceda
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400bcebf
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400bceba
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400bcf35
mov rcx, r8
call fcn.1400e2ce8
movups xmm0, xmmword [rsp + 0x38]
mov esi, send
mov byte [rsp + 0x38], 0
movups xmm1, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm1
cmp rsi, 0x10
jb 0x1400bcf0f
mov rcx, qword [rsp + 0x38]
lea rdx, [rsi + 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400bcf0a
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400bcf35
call fcn.1400e2ce8
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400bcf1f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x488]
mov rax, rdi
add rsp, 0x460
pop rdi
pop rbx
pop rbp
ret
call fcn.1400c4dd4
int3

Function at 0x1400bd8e0
Capabilities:
Get session user name

Disassembly:
push rbx
mov eax, 0x10020
call fcn.1400e3040
sub rsp, rax
mov rbx, rcx
mov dword [rsp + 0x10038], 0x7fff
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x10038]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1400bd92d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140036d20
mov rax, rbx
add rsp, 0x10020
pop rbx
ret
xorps xmm0, xmm0
mov rax, rbx
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], send
mov byte [rbx], 0
add rsp, 0x10020
pop rbx
ret
Function at 0x1400c04e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov dword [rsp + 0x28], 2
lea rdx, [rbp + 0x37]
mov r9b, 0x20
mov byte [rsp + 0x20], 0
mov r8d, 4
lea rcx, [0x140110360]
call fcn.1400b8910
cmp qword [rax + 0x18], 0x10
mov r8, qword [rax + 0x10]
jb 0x1400c0530
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0x17]
call fcn.140023c20
cmp qword [0x140112460], 0x10
lea r9, [0x140112448]
mov rcx, qword [rbp + 0x2f]
cmovae r9, qword [0x140112448]
mov rax, rcx
mov rsi, qword [rbp + 0x27]
mov rdi, qword [0x140112458]
sub rax, rsi
cmp rdi, rax
ja 0x1400c059f
cmp rcx, 0x10
lea rax, [rsi + rdi]
lea rbx, [rbp + 0x17]
mov qword [rbp + 0x27], rax
cmovae rbx, qword [rbp + 0x17]
mov r8, rdi
mov rdx, r9
lea rcx, [rbx + rsi]
call fcn.1400e4ca0
lea rax, [rdi + rbx]
mov byte [rax + rsi], 0
lea rax, [rbp + 0x17]
jmp 0x1400c05b5
movzx r8d, byte [rbp + 0x67]
lea rcx, [rbp + 0x17]
mov rdx, rdi
mov qword [rsp + 0x20], rdi
call fcn.140023160
xor ebx, ebx
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rbx
mov qword [rbp + 0xf], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 9], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 7], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], send
mov byte [rax], bl
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0x10
jb 0x1400c061e
mov rcx, qword [rbp + 0x17]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c0619
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c070f
call fcn.1400e2ce8
mov rdx, qword [rbp + 0x4f]
mov qword [rbp + 0x27], rbx
mov qword [rbp + 0x2f], send
mov byte [rbp + 0x17], bl
cmp rdx, 0x10
jb 0x1400c0668
mov rcx, qword [rbp + 0x37]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c0663
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c070f
call fcn.1400e2ce8
cmp qword [rbp + 0xf], 0x10
lea rcx, [rbp - 9]
mov rdx, qword [rbp + 7]
cmovae rcx, qword [rbp - 9]
call fcn.1400c2650
cmp qword [rbp + 0xf], 0x10
lea rdx, [rbp - 9]
mov rcx, qword [0x1401101b0]
cmovae rdx, qword [rbp - 9]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_recv]
mov rcx, qword [0x1401101b0]
test rcx, rcx
je 0x1400c06b3
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rdx, qword [rbp + 0xf]
cmp rdx, 0x10
jb 0x1400c06f0
mov rcx, qword [rbp - 9]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c06eb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c0709
call fcn.1400e2ce8
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400c4dd4
int3
call fcn.1400c4dd4
int3
Function at 0x1400c4660
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400c4691
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x1400c470b
mov rdi, r14
mov rcx, rbx
call fcn.1400a9f10
test rax, rax
jle 0x1400c46e3
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.1400e4ca0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400c46fb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400c4703
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400c46a5
sub r14, rdi
jmp 0x1400c47ef
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400c4722
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400c4724
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400c4756
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.1400e4ca0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400c47ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400c4791
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1400c47cd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400c8d0c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400c47ec
cmp rbp, rax
ja 0x1400c47a0
test rbp, rbp
je 0x1400c47ec
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400c8d0c
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400d05c8
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 0x1400d0637
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400d0637
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400d0637
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400d0637
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400d0637
cmp dword [rcx + 0x84], 0xe
jbe 0x1400d0637
cmp dword [rcx + 0xf8], 0
je 0x1400d0637
mov ecx, ebx
call fcn.1400d06e8
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.1400d04c4
nop
cmp dword [rbp + 0x20], 0
je 0x1400d0685
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400d0690
int3
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400d05c8

Function at 0x1400d07cc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400d05c8
Function at 0x1400d5984
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.1400e3040
sub rsp, rax
mov rax, qword [0x140110f68]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400d2e1c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400d59d3
mov rax, rbp
jmp 0x1400d5adb
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 + 0x112810]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400d6aa4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x112810]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400d5ad7
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 0x1400d5ad7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400d6aa4
test rax, rax
js 0x1400d5ad7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400d5ad7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400d5ac9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400d5ac9
cmp byte [rcx], 0xd
jne 0x1400d5aaf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400d5abe
cmp byte [rcx + 1], 0xa
jne 0x1400d5abe
inc rcx
jmp 0x1400d5abe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x110710]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400d5a91
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400d5adb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400e3620
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 0x1400d5cfc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400d5d12
mov al, 1
jmp 0x1400d5d72
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400d5d23
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400d5d70
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400dfa38
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400d5d70
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400d5d70
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400d5d70
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400d5d72
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400d5e44
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, [0x140112810]
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 0x1400d5e9b
cmp word [rdx], r13w
jne 0x1400d5e9b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400d5ea0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400d5fc5
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400d5fe6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400d5ed9
mov rdx, r9
mov word [rbx], cx
jmp 0x1400d5f00
cmp r9, r8
jae 0x1400d5f10
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 0x1400d5eba
jmp 0x1400d5fc5
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 0x1400d5fba
cmp dword [rsp + 0x80], esi
je 0x1400d5fba
lea r8, [0x140112810]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400d5f92
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400d5f62
mov word [rbx], r13w
jmp 0x1400d5fc2
mov ecx, recv
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 0x1400d5f6f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400d5fc2
cmp word [rsp + 0x70], r13w
jne 0x1400d5f9f
cmp rbx, r14
je 0x1400d5f5c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400d6aac
cmp word [rsp + 0x70], r13w
je 0x1400d5fc5
mov ecx, recv
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, [0x140112810]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400d5fbf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400d5fc5
Function at 0x1400dd2d8
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.1400ce878
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 0x1400dd379
cmp ebx, dword [rsp + 0x30]
je 0x1400dd372
test esi, esi
je 0x1400dd372
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400dd34d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400dd35a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400dd337
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400dd35e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400dd37b
mov eax, 1
jmp 0x1400dd37b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400e2368
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 0x1400e23ef
mov rsi, rbx
cmp word [rax], bp
je 0x1400e23ae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400e2398
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400e2394
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400d1970
mov rdi, rax
test rax, rax
je 0x1400e23dc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400e4ca0
mov rbp, rdi
xor ecx, ecx
call fcn.1400d1934
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 0x1400e34c8
Capabilities:
Parse pe header

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

Function at 0x1400e97bc
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 0x1400e9840
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400fd0d0]
cmp byte [rcx + rax], 0
je 0x1400e9840
dec r8
sub rdx, 1
jne 0x1400e9826
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400edea4
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.1400d6aac
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400d6aac
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400edff4
cmp rax, 0xffffffffffffffff
je 0x1400edff4
xor edi, edi
test rbp, rbp
jle 0x1400edf9f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400d3cf8
mov rbx, rax
test rax, rax
jne 0x1400edf2c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400edf95
mov edx, 0x8000
mov ecx, r14d
call fcn.1400eb81c
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.1400d51fc
cmp eax, 0xffffffff
je 0x1400edf75
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400edf3c
mov edx, r15d
mov ecx, r14d
call fcn.1400eb81c
jmp 0x1400edf95
cmp byte [rsi + 0x38], dil
je 0x1400edf8c
cmp dword [rsi + 0x34], 5
jne 0x1400edf8c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x1400edf95
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400d1934
jmp 0x1400ee008
jns 0x1400ee008
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400d6aac
cmp rax, 0xffffffffffffffff
jne 0x1400edfc0
cmp byte [rsi + 0x30], dil
je 0x1400ee008
mov edi, dword [rsi + 0x2c]
jmp 0x1400ee008
mov ecx, r14d
call fcn.1400dfa38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400ee008
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
jmp 0x1400ee008
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400ee001
mov eax, dword [rsi + 0x2c]
jmp 0x1400ee006
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400d6aac
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 0x140003510
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x490], rbx
mov rax, qword [0x14004f010]
xor rax, rbp
mov qword [rbp + 0x440], rax
mov rdi, rdx
mov dword [rbp], 0x438
mov edx, dword [rcx + 0x10]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
xor r14d, r14d
movabs r15, 0xffffffffffffff0
lea rcx, [rbp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x140003580
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x1400035fa
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400035ab
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14003be30
sub rsp, rcx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x1400035fa
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], r14
xor edx, edx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
lea r8, [rbp + 0x30]
mov r9d, 0xffffffff
mov byte [rbx], r14b
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rbx, r14
jmp 0x1400035fd
mov rbx, r14
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
jb 0x14000360a
mov rdx, qword [rdi]
sub rdx, rbx
nop dword [rax]
movzx ecx, byte [rbx]
movzx eax, byte [rbx + rdx]
sub ecx, eax
jne 0x140003622
inc rbx
test eax, eax
jne 0x140003610
test ecx, ecx
mov rcx, rsi
je 0x140003682
lea rdx, [rbp]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140003571
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14000367e
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140003679
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400036f9
mov rcx, r8
call fcn.14003b220
xor eax, eax
jmp 0x1400036c5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
mov rbx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x1400036c2
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400036bd
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400036f9
mov rcx, r8
call fcn.14003b220
mov rax, rbx
mov byte [rdi], r14b
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r14
mov rcx, qword [rbp + 0x440]
xor rcx, rbp
call fcn.14003adc0
mov rbx, qword [rbp + 0x490]
lea rsp, [rbp + 0x450]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3