joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004b4ba
Capabilities:
Create udp socket

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov edi, edx
test cx, cx
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor r14d, r14d
mov ecx, ebx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14004b59d
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2739
je 0x14004b519
mov esi, eax
cmp eax, 0x2726
jne 0x14004b578
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x14004b582
mov rsi, rax
xor r14d, r14d
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
jne 0x14004b59d
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
mov rcx, rsi
call qword [sym.imp.ws2_32.dll_closesocket]
mov rsi, rdi
jmp 0x14004b597
shl rsi, 0x20
or rsi, 2
jmp 0x14004b597
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
lea rsi, [rax*2 + 2]
sub rsi, rax
mov r14d, 1
mov rax, r14
mov rdx, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14004cdcd
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov al, byte [0x14008fbb8]
mov edx, 0x10
xor ecx, ecx
call fcn.140042681
test rax, rax
je 0x14004cea6
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x14004cea8]
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdi, rax
mov rdx, rax
test rax, rax
jne 0x14004ce94
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, qword [r14]
test rax, rax
je 0x14004ce49
mov rcx, rbx
call rax
cmp qword [r14 + 8], 0
je 0x14004ce6d
cmp qword [r14 + 0x10], 0x11
jb 0x14004ce5b
mov rbx, qword [rbx - 8]
mov rcx, qword [0x14008fb30]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x14008fb30]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
lea rdx, [rax*2 + 2]
sub rdx, rax
xor eax, eax
test rdi, rdi
sete al
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2
Function at 0x14004d57b
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0xa0
mov rsi, rcx
mov esi, ecx
movups xmm0, xmmword [0x14007f190]
lea rax, [rsp + 0x60]
movaps xmmword [rax], xmm0
mov ecx, 0xffffffff
invalid
invalid
invalid
invalid
cmp r8, rcx
cmovb rcx, r8
xorps xmm0, xmm0
push rdi
invalid
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor eax, eax
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne case.0x14003ebd0.244
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
adc eax, 0x27c4b
mov eax, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0
add byte [rax], al
add byte [rax], al
cmp eax, 0xc0000011
je 0x14004d61a
cmp eax, 0x103
je case.0x14001cbba.340
test eax, eax
js case.0x140041b9d.100
invalid
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
jmp 0x14004d61a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ecx, 1
mov rax, rcx
add rsp, 0xa0
pop rsi
ret
lea rcx, [rsp + 0x58]
mov byte [rcx + 4], 0
mov dword [rcx], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rdx, [rsp + 0x70]
mov qword [rdx], rax
mov qword [rdx + 8], 1
lea rax, [rsp + 0x50]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
call fcn.14004c1b4
mov rcx, rax
call fcn.14004c201
mov ecx, 7
int 0x29
ud2

Function at 0x14004df76
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xa0
add byte [rax], al
Function at 0x140050484
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov qword [rsp + 0x58], rcx
mov byte [rsp + 0x4f], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rsp + 0x68], ecx
xor eax, eax
mov qword [rsp + 0x78], rax
mov r12d, 8
xorps xmm6, xmm6
lea r14, [rsp + 0x80]
mov r15, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
mov sil, 1

Function at 0x140050f67
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
cmp qword [rdx], 0
jne 0x140051099
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rdx + 0x18]
mov rax, qword [rbx]
mov r8, qword [rbx + 0x10]
cmp rax, r8
jne 0x140050fae
test rax, rax
mov eax, 0x10
mov edx, 1
cmove rdx, rax
mov rcx, rbx
call fcn.140019b37
mov rax, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
add rdx, r8
mov rcx, rax
xor rcx, r8
not r8
and r8, rax
add r8, r8
sub r8, rcx
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov rax, qword [rdi + 0x10]
lea r9, [rsp + 0x2c]
mov dword [r9], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x140051011
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x140051044
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x140051048
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
lea rcx, [rax + 2]
movabs rdx, 0x6d00000000
cmp rax, rdx
je 0x14005104c
movabs rdx, 0x3e500000000
cmp rax, rdx
jne 0x14005107f
lea rax, [rsp + 0x30]
jmp 0x14005105a
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x140051085
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
mov qword [rax], 0
call fcn.140040de6
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x14005108f
cmp rax, 2
jne 0x140050ffa
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x140051004
ud2

Function at 0x140056d26
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
cmp rcx, 0xffffffffffffffff
je 0x140056d71
lea r9, [rsp + 0x34]
mov dword [r9], 1
mov dword [rsp + 0x20], 4
mov edx, 6
mov r8d, 1
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140056d5e
xor eax, eax
jmp 0x140056d6c
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
ud2
Function at 0x140059b22
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15, rdx
movabs r12, 0x865deeffd762ad5c
mov r13, qword [r8 + 8]
mov rbp, qword [r8 + 0x10]
mov r14, qword [rcx + 0x10]
mov rsi, qword [rcx + 0x18]
mov qword [rsp + 0x30], r8
mov rax, qword [r8]
add rax, rbp
mov qword [rsp + 0x50], rax
mov rax, r13
xor rax, rbp
mov rdx, rbp
not rdx
and rdx, r13
add rdx, rdx
sub rdx, rax
mov eax, 0x7fffffff
cmp rdx, rax
cmovae rdx, rax
mov qword [rsp + 0x48], rdx
mov rax, qword [rcx + 0x20]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x58]
mov rdx, r14
mov r8, r15
xor r9d, r9d
call fcn.140056aa8
mov al, byte [rsp + 0x61]
cmp al, 3
je 0x140059d0c
mov rdi, qword [rsp + 0x58]
cmp al, 2
je 0x140059d13
cmp r13, rbp
jb 0x140059d6d
cmp rsi, 0xffffffffffffffff
je 0x140059d6d
movzx ebx, byte [rsp + 0x60]
mov rcx, rsi
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
xor r9d, r9d
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x140059d1a
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x274a
je 0x140059d1f
shl rax, 0x20
mov rcx, r12
not rcx
mov rdx, r12
and rdx, 0xfffffffffffffffd
mov esi, ecx
and esi, 2
or rsi, rdx
xor rcx, r12
and rcx, rax
xor rsi, r12
xor rsi, rcx
mov rcx, rsi
call fcn.14003ebb8
cmp al, 0xd
jne 0x140059c93
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140059c93
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
lock inc qword [rdx]
jle 0x140059d6d
mov r13, r12
mov r12, r15
mov r15, rbp
add rcx, 0x10
mov r8, qword [rax + 0x10]
mov r9b, byte [rax + 0x18]
call fcn.14003e50b
test rax, rax
je 0x140059c85
mov rbp, rax
mov rcx, rsi
call fcn.140040de6
mov rsi, rbp
mov rbp, r15
mov r15, r12
mov r12, r13
mov r13, qword [rsp + 0x28]
mov rcx, rsi
call fcn.14003ebb8
cmp al, 0xd
jne 0x140059d57
not edi
or rdi, 0xffffffffffffffcc
mov rax, qword [r14 + 0x90]
mov rcx, rbx
shl rcx, 0x10
mov edx, eax
shr edx, 0x10
cmp bl, dl
jne 0x140059cfa
mov edx, eax
and edx, 0x2f
mov r8, rdx
xor r8, rdi
not r8
or rdx, rdi
and rdx, r8
mov r8, rdx
or r8, rcx
not r8
not rdx
mov r9, rcx
not r9
and r9, rdx
or r9, r8
not r9
lock cmpxchg qword [r14 + 0x90], r9
jne 0x140059cb7
mov rcx, rsi
call fcn.140040de6
mov rsi, qword [rsp + 0x40]
jmp 0x140059b98
mov eax, 1
jmp 0x140059d15
xor eax, eax
mov rsi, rdi
jmp 0x140059d59
movsxd r8, eax
jmp 0x140059d22
xor r8d, r8d
mov rax, rbp
and rax, r8
mov rcx, rbp
xor rcx, r8
lea rax, [rcx + rax*2]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rdx + 0x18]
cmp rax, rcx
jbe 0x140059d47
mov qword [rdx + 0x18], rax
mov rcx, rax
add rbp, r8
jb 0x140059d6d
cmp rcx, rax
jb 0x140059d6d
mov qword [rdx + 0x10], rax
xor esi, esi
xor eax, eax
mov rdx, rsi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x14005a1d4
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov ebx, r9d
mov rdi, r8
movabs rax, 0x8000000000000000
cmp qword [rcx], rax
jne 0x14005a262
mov r15, qword [rcx + 8]
xor ecx, ecx
mov eax, 2
lock cmpxchg qword [r15 + 0x10], rcx
je 0x14005a2a2
test rdi, rdi
sete al
test ebx, ebx
sete cl
mov edx, eax
or dl, cl
cmp dl, 1
jne 0x14005a223
xor al, cl
je 0x14005a2a2
lea rsi, [r15 + 0x20]
mov cl, 1
xor eax, eax
lock cmpxchg byte [r15 + 0x20], cl
jne 0x14005a33e
mov ecx, 1
xor eax, eax
lock cmpxchg qword [r15 + 0x10], rcx
jne 0x14005a282
lea r14, [r15 + 0x18]
call fcn.14004b5ad
mov rcx, rax
mov r9d, 0x3b9aca00
add rcx, rdi
jae 0x14005a2ae
jmp 0x14005a2ed
cmp qword [rdx], 0
je 0x14005a34b
mov r8, rdi
mov r9d, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp 0x140052b51
cmp rax, 2
jne 0x14005a34b
xor eax, eax
xchg qword [r15 + 0x10], rax
xor ecx, ecx
mov al, 1
lock cmpxchg byte [r15 + 0x20], cl
jne 0x14005a32b
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
movabs rcx, 0xb521ae5ca4dfa01a
sub rax, rcx
add rdi, rcx
add rdi, rax
add edx, ebx
cmp edx, 0x3b9aca00
jb 0x14005a2ea
cmp rdi, 0xffffffffffffffff
je 0x14005a25d
movabs rax, 0xe64da1618d3eedfd
sub rdi, rax
add rdi, rax
inc rdi
add edx, 0xc4653600
mov r9d, edx
mov rcx, r14
mov rdx, rsi
mov r8, rdi
call fcn.14003f1df
xor eax, eax
xchg qword [r15 + 0x10], rax
movabs rcx, 0xc7936eb84b05eac2
mov rdx, rcx
not rdx
add rdx, rcx
add rdx, rax
cmp rdx, 2
jae 0x14005a34b
xor ecx, ecx
mov al, 1
lock cmpxchg byte [rsi], cl
je 0x14005a2a2
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140072fcf
mov rcx, rsi
call fcn.140072cd8
jmp 0x14005a237
ud2
Function at 0x14005afab
Capabilities:
Get number of processors

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
cmp qword [rcx + 0x20], 0
jne 0x14005b0c2
cmp qword [rsi], 0
mov rax, qword [rsi + 8]
mov edx, 0xc0
mov ecx, 0x120
cmove rcx, rdx
cmp dword [rax + rcx + 0x80], 0x3b9aca00
je 0x14005b0d1
mov edi, dword [rax + rcx + 0x60]
mov eax, dword [0x14008fbbc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
movzx eax, byte [rax + 0x108]
test rax, rax
je 0x14005b011
cmp eax, 1
je 0x14005b03e
jmp 0x14005b06c
mov eax, dword [0x14008fbbc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rbx, [rax + 0xb8]
lea rdx, [0x140055f18]
mov rcx, rbx
call fcn.14004b921
mov byte [rbx + 0x50], 1
mov eax, dword [0x14008fbbc]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + 0xf0]
test rax, rax
je 0x14005b06c
cmp qword [rax], 0
je 0x14005b075
mov rax, qword [rax + 8]
mov eax, dword [rax + 0x18]
jmp 0x14005b077
mov ecx, edi
call fcn.140058302
jmp 0x14005b077
xor eax, eax
test edi, edi
je 0x14005b0d1
xor edx, edx
div edi
mov edi, edx
cmp qword [rsi + 0x20], 0
je 0x14005b098
mov rax, qword [rsi + 0x48]
test rax, rax
je 0x14005b098
mov rcx, qword [rsi + 0x50]
call qword [rax + 0x18]
mov qword [rsi + 0x20], 1
xorps xmm0, xmm0
movups xmmword [rsi + 0x28], xmm0
mov qword [rsi + 0x38], 0
mov qword [rsi + 0x40], 0xffffffffffffffff
movups xmmword [rsi + 0x48], xmm0
movups xmmword [rsi + 0x51], xmm0
mov dword [rsi + 0x68], edi
add rsi, 0x28
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
ud2
Function at 0x14005ce2e
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
sub esp, 0x28

Function at 0x140060308
Capabilities:
Parse pe header

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

Function at 0x140066310
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14006610c
Function at 0x140069584
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 0x1400695b4
xor eax, eax
jmp 0x140069677
mov rbp, rbx
cmp word [rax], si
je 0x1400695d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400695c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400695bc
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.1400694a4
movsxd r14, eax
test eax, eax
jne 0x140069617
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x1400695ad
mov rcx, r14
call fcn.14006a460
mov rdi, rax
test rax, rax
jne 0x140069630
xor ecx, ecx
call fcn.140067b04
jmp 0x14006960c
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.1400694a4
test eax, eax
jne 0x140069661
mov rcx, rdi
call fcn.140067b04
jmp 0x14006966b
xor ecx, ecx
call fcn.140067b04
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 0x14006cdd0
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.140068574
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14006ce5a
cmp byte [rbp - 0x21], r15b
je 0x14006ce55
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14006ce90
call fcn.14006ac70
test eax, eax
jne 0x14006ce7c
cmp byte [rbp - 0x21], r15b
je 0x14006ce74
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14006ce90
cmp byte [rbp - 0x21], r15b
je 0x14006ce8d
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.140067b54
test eax, eax
jne 0x14006cf30
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140068574
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14006cecf
cmp byte [rbp - 0x21], r15b
je 0x14006cf04
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14006cf04
call fcn.14006ac70
test eax, eax
jne 0x14006cef0
cmp byte [rbp - 0x21], r15b
je 0x14006cee9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14006cf04
cmp byte [rbp - 0x21], r15b
je 0x14006cf01
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.140067b54
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14006cf30
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14006cf33
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14006cf41
mov rcx, rdi
call fcn.140067b04
cmp byte [rbp + 0x3f], r15b
je 0x14006cf50
mov rcx, qword [rbp + 0x27]
call fcn.140067b04
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 0x14006fad0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14006faf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14006faf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14007364b
Capabilities:
Link many functions at runtime

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rcx, [0x14007e238]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x1400736a0
mov rdi, rax
lea rdx, [0x14007e259]
mov rcx, rax
sar edi, 0x15
xchg dword [rdx], ebx
add byte [rax], al

Function at 0x140073960
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
jo 0x1400739b9
mov edi, eax
Function at 0x180018630
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x180018651
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x18001867e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180018680
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1800186d9
test ecx, ecx
jle 0x1800186b9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1800186d9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1800186d9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
sbb byte [0x1dc9cf7b4], dl
add al, 0x3b
cmp al, 0xfd
loop 0x18040ebb1
sbb ah, byte [rdx]
and al, 0x27
xor eax, 0x33c3b37
mov ah, 0
add eax, dword [rax]
add edi, edi
mov word [rbx], es
invalid
Function at 0x180018700
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180018722
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x180018731
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180018754
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180018756
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180018792
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18001882e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1800187cd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x18001880e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x18001882e
cmp rbx, rax
ja 0x1800187e0
test rbx, rbx
je 0x18001882e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
in eax, dx
Function at 0x180018c30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1802df040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x180018c5d
xor eax, eax
jmp 0x180018dc9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180018c97
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180018c97
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x180018dc9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x180018dbc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180018cda
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
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x180018d05
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180018dc1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180018d74
sub eax, 1
je 0x180018d74
cmp eax, 2
jne 0x180018dbc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180018dc1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180018da2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x180018dbc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180018dc1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1801200f0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret