joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140181e02
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm14
movaps xmmword [rsp + 0x70], xmm13
movaps xmmword [rsp + 0x60], xmm12
movaps xmmword [rsp + 0x50], xmm11
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
aesimc xmm0, xmmword [rdx + 0x10]
aesimc xmm1, xmmword [rdx + 0x20]
aesimc xmm2, xmmword [rdx + 0x30]
aesimc xmm3, xmmword [rdx + 0x40]
aesimc xmm4, xmmword [rdx + 0x50]
aesimc xmm5, xmmword [rdx + 0x60]
aesimc xmm6, xmmword [rdx + 0x70]
aesimc xmm7, xmmword [rdx + 0x80]
aesimc xmm8, xmmword [rdx + 0x90]
aesimc xmm9, xmmword [rdx + 0xa0]
aesimc xmm10, xmmword [rdx + 0xb0]
aesimc xmm11, xmmword [rdx + 0xc0]
aesimc xmm12, xmmword [rdx + 0xd0]
movaps xmm13, xmmword [rdx]
movaps xmm14, xmmword [rdx + 0xe0]
movaps xmmword [rcx], xmm13
movdqa xmmword [rcx + 0x10], xmm0
movdqa xmmword [rcx + 0x20], xmm1
movdqa xmmword [rcx + 0x30], xmm2
movdqa xmmword [rcx + 0x40], xmm3
movdqa xmmword [rcx + 0x50], xmm4
movdqa xmmword [rcx + 0x60], xmm5
movdqa xmmword [rcx + 0x70], xmm6
movdqa xmmword [rcx + 0x80], xmm7
movdqa xmmword [rcx + 0x90], xmm8
movdqa xmmword [rcx + 0xa0], xmm9
movdqa xmmword [rcx + 0xb0], xmm10
movdqa xmmword [rcx + 0xc0], xmm11
movdqa xmmword [rcx + 0xd0], xmm12
movaps xmmword [rcx + 0xe0], xmm14
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
movaps xmm11, xmmword [rsp + 0x50]
movaps xmm12, xmmword [rsp + 0x60]
movaps xmm13, xmmword [rsp + 0x70]
movaps xmm14, xmmword [rsp + 0x80]
add rsp, 0x98
ret

Function at 0x140182eb4
Capabilities:
Hash data using sha256

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
add rcx, 0x28
call fcn.14017e2b4
mov byte [rsi + 0x68], 0
movups xmm0, xmmword [0x14025e780]
movups xmmword [rsi], xmm0
movups xmm0, xmmword [0x14025e790]
movups xmmword [rsi + 0x10], xmm0
and qword [rsi + 0x20], 0
add rsp, 0x20
pop rsi
ret

Function at 0x140182ee9
Capabilities:
Hash data using sha512

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
add rcx, 0x50
call fcn.14017e2d2
mov byte [rsi + 0xd0], 0
movaps xmm0, xmmword [0x14025e7c0]
movaps xmmword [rsi], xmm0
movaps xmm0, xmmword [0x14025e7d0]
movaps xmmword [rsi + 0x10], xmm0
movaps xmm0, xmmword [0x14025e7e0]
movaps xmmword [rsi + 0x20], xmm0
movaps xmm0, xmmword [0x14025e7f0]
movaps xmmword [rsi + 0x30], xmm0
xorps xmm0, xmm0
movaps xmmword [rsi + 0x40], xmm0
add rsp, 0x20
pop rsi
ret
Function at 0x14018312f
Capabilities:
Hash data using sha256

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x50]
call fcn.14017e2c7
lea r14, [rbx + 0x28]
lea rcx, [rsp + 0x30]
call fcn.14017e2c7
mov qword [rsp + 0x28], rbx
movzx r15d, byte [rbx + 0x68]
mov r12, qword [rbx + 0x20]
mov r13d, r15d
shl r13d, 3
mov byte [rbx + r15 + 0x28], 0x80
lea rcx, [r15 + 1]
lea r9, str.C:Users_admin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_block_buffer_0.10.4_srclib.rs
mov r8d, 0x40
mov rdx, r14
call fcn.14001ca54
xor ecx, ecx
cmp rdx, rcx
je 0x1401831a6
mov byte [rax + rcx], 0
inc rcx
jmp 0x140183198
shl r12, 9
or r12, r13
bswap r12
not r15d
test r15b, 0x38
jne 0x1401831df
lea r15, [rsp + 0x28]
mov rcx, r15
mov rdx, r14
call fcn.14018367f
lea r14, [rsp + 0x70]
mov rcx, r14
call fcn.14017e2b4
mov qword [r14 + 0x38], r12
mov rcx, r15
jmp 0x1401831e8
mov qword [rbx + 0x60], r12
lea rcx, [rsp + 0x28]
mov rdx, r14
call fcn.14018367f
mov byte [rbx + 0x68], 0
mov r14, qword [rsp + 0x28]
mov ecx, 0x20
mov edx, 4
call fcn.1400d279f
cmp rax, 8
mov ecx, 8
cmovb rcx, rax
xor eax, eax
cmp rcx, rax
je 0x14018322b
mov edx, dword [r14 + rax*4]
bswap edx
mov dword [rsp + rax*4 + 0x30], edx
inc rax
jmp 0x140183217
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
lea r14, [rsp + 0x50]
movaps xmmword [r14], xmm0
movaps xmmword [r14 + 0x10], xmm1
movups xmm0, xmmword [0x14025e790]
movups xmmword [rbx + 0x10], xmm0
movups xmm0, xmmword [0x14025e780]
movups xmmword [rbx], xmm0
and qword [rbx + 0x20], 0
mov byte [rbx + 0x68], 0
lea rbx, str.C:Users_admin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_snow_0.9.6_src_resolversdefault.rs
mov ecx, 0x20
mov rdx, rdi
mov r8, rsi
mov r9, rbx
call fcn.1400412d1
mov qword [rsp + 0x20], rbx
mov r9d, 0x20
mov rcx, rax
mov r8, r14
call fcn.1401c59a4
nop
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14018367f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword [rcx]
mov r8d, 1
jmp 0x1401770dc
Function at 0x140183859
Capabilities:
Hash data using sha512

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x138
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
lea rcx, [rsp + 0x70]
call fcn.14017e2b4
lea r14, [rbx + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14017e2b4
mov qword [rsp + 0x28], rbx
movzx r15d, byte [rbx + 0xd0]
mov r12, qword [rbx + 0x40]
mov r13, qword [rbx + 0x48]
mov ebp, r15d
shl ebp, 3
mov byte [rbx + r15 + 0x50], 0x80
lea rcx, [r15 + 1]
lea r9, str.C:Users_admin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_block_buffer_0.10.4_srclib.rs
mov r8d, 0x80
mov rdx, r14
call fcn.14001ca54
xor ecx, ecx
cmp rdx, rcx
je 0x1401838d7
mov byte [rax + rcx], 0
inc rcx
jmp 0x1401838c9
shld r13, r12, 0xa
shl r12, 0xa
or r12, rbp
bswap r12
bswap r13
not r15d
test r15b, 0x70
jne 0x14018391f
lea r15, [rsp + 0x28]
mov rcx, r15
mov rdx, r14
call fcn.140183e26
lea r14, [rsp + 0xb8]
mov rcx, r14
call fcn.14017e2d2
mov qword [r14 + 0x78], r12
mov qword [r14 + 0x70], r13
mov rcx, r15
jmp 0x140183932
mov qword [rbx + 0xc0], r13
mov qword [rbx + 0xc8], r12
lea rcx, [rsp + 0x28]
mov rdx, r14
call fcn.140183e26
mov byte [rbx + 0xd0], 0
mov r12, qword [rsp + 0x28]
mov r15d, 8
mov ecx, 0x40
mov edx, 8
call fcn.1400d279f
mov r14, rax
cmp rax, 8
cmovae r14, r15
shl r14d, 3
xor r13d, r13d
lea rbp, str.C:Users_admin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_sha2_0.10.8_srccore_api.rs
lea r15, [rsp + 0xb8]
cmp r14, r13
je 0x1401839b6
lea rcx, [rsp + r13]
add rcx, 0x30
mov rax, qword [r12 + r13]
bswap rax
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x20], rbp
mov edx, 8
mov r9d, 8
mov r8, r15
call fcn.1401c59a4
add r13, 8
jmp 0x14018397c
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmm2, xmmword [rsp + 0x50]
movups xmm3, xmmword [rsp + 0x60]
lea r14, [rsp + 0x70]
movaps xmmword [r14], xmm0
movaps xmmword [r14 + 0x10], xmm1
movaps xmmword [r14 + 0x20], xmm2
movaps xmmword [r14 + 0x30], xmm3
movaps xmm0, xmmword [0x14025e7f0]
movaps xmmword [rbx + 0x30], xmm0
movaps xmm0, xmmword [0x14025e7e0]
movaps xmmword [rbx + 0x20], xmm0
movaps xmm0, xmmword [0x14025e7d0]
movaps xmmword [rbx + 0x10], xmm0
movaps xmm0, xmmword [0x14025e7c0]
movaps xmmword [rbx], xmm0
xorps xmm0, xmm0
movaps xmmword [rbx + 0x40], xmm0
mov byte [rbx + 0xd0], 0
lea rbx, str.C:Users_admin.cargo_registry_srcindex.crates.io_6f17d22bba15001f_snow_0.9.6_src_resolversdefault.rs
mov ecx, 0x40
mov rdx, rdi
mov r8, rsi
mov r9, rbx
call fcn.1400412d1
mov qword [rsp + 0x20], rbx
mov r9d, 0x40
mov rcx, rax
mov r8, r14
call fcn.1401c59a4
nop
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140183e26
Capabilities:
Encode data using base64

Disassembly:
mov rcx, qword [rcx]
mov r8d, 1
jmp fcn.14017986a

Function at 0x140183e34
Capabilities:
Encode data using base64

Disassembly:
mov rcx, qword [rcx]
add qword [rcx + 0x40], r8
adc qword [rcx + 0x48], 0
jmp fcn.14017986a
Function at 0x14018ba90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140262968]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
adc eax, 0x41b0e
sbb eax, dword [rax + rax]
cmp eax, 0x103
jne 0x14018bb01
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
add al, 0
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14018bb2e
test eax, eax
js case.0x1400089d2.2009
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14018bb24
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
add ebx, dword [rbx]
add al, 0
mov edx, eax
shl rdx, 0x20
loop 0x14018bb3b
or rdx, 2
retf 0xb802
add bh, byte [rax + 1]
add byte [rax], al
invalid
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14018b320
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14018b3b0
mov ecx, 7
int 0x29
ud2
invalid
Function at 0x1401922b0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.140192730
mov rax, qword [rbp - 0x60]
movabs rdi, 0x8000000000000000
cmp rax, rdi
jne 0x140192306
lea rcx, [rbp - 0x58]
call fcn.14018b3d0
mov qword [rsi], rdi
jmp 0x140192548
mov qword [rbp + 0x3f8], rsi
mov qword [rbp + 0x3f0], rax
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x400], rax
Function at 0x140198ae0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x1e8
sub esp, 0x1e8

Function at 0x140199820
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
sub rsp, 0x20
in al, dx
and byte [rax - 0x73], cl
lea ebp, [rsp + 0x20]
insb byte [rdi], dx
and al, 0x20

Function at 0x140199870
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
Function at 0x1401a06b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.140192730
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
movabs rbx, 0x8000000000000000
cmp rcx, rbx
jne 0x1401a06ee
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], rbx
jmp 0x1401a0714
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rdx
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call fcn.1401a05d0
mov r14, qword [rbp - 0x10]
cmp r14, rbx
jne 0x1401a072d
lea rcx, [rbp - 8]
call fcn.14018b3d0
mov qword [rsi], rbx
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rdi, qword [rbp - 8]
mov r15, qword [rbp]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401a0750
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x1401a0720
mov qword [rsi], rbx
test r14, r14
je 0x1401a0720
mov edx, 2
mov rcx, rdi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp fcn.140001b50
Function at 0x1401a3760
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1402c6358]
mov edx, 0x10
xor ecx, ecx
call fcn.1401a7480
test rax, rax
je 0x1401a3834
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1401a3920]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1401a3826
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
cmp qword [rax + 8], 0
je 0x1401a3803
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140001b50
mov edx, 8
mov rcx, qword [rbp - 0x18]
call fcn.140001b50
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rdi
mov ecx, 8
mov edx, 0x10
call fcn.1401c6700
ud2
Function at 0x1401a6ab0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x1401a6c18
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x1401a6aed
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1401a6c02
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x1401a6be5
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rbp + 4], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rbp + 4]
mov r8d, eax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x1401a6b4c
mov eax, dword [rbp + 4]
mov ecx, 2
test rax, rax
je 0x1401a6b8f
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x1401a6b93
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x40], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x1401a6b97
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x1401a6bc1
lea rax, [rbp - 8]
jmp 0x1401a6ba3
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1401a6bc7
mov qword [rbp - 8], 1
lea rax, [rbp - 0x10]
mov qword [rax], 0
lea rcx, [rbp - 0x40]
call fcn.14018b3d0
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
cmp rcx, 2
jne 0x1401a6bd2
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
ret
test rcx, rcx
jne 0x1401a6b35
mov ecx, 1
jmp 0x1401a6b3f
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.1401cb2e0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x1401a6afa
mov r8d, 0x10
mov rcx, rbx
call fcn.1401cb2e0
mov rax, qword [rbx]
jmp 0x1401a6aed
mov qword [rbp - 0x40], 0
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.1401cb9c0
int3
Function at 0x1401c6294
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov r14, r8
inc r14
sete r13b
je 0x1401cb951
js 0x1401cb95d
mov rdi, r9
mov rbx, r8
mov r12, rdx
mov rsi, rcx
movzx eax, byte [0x1402c6358]
xor ecx, ecx
mov rdx, r14
call fcn.1401a7480
test rax, rax
je 0x1401cb962
mov r15, rax
mov rcx, rax
mov rdx, r12
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
cmp rbx, 0xf
ja 0x1401cb861
test rbx, rbx
je 0x1401cb8ab
xor eax, eax
nop
cmp byte [r12 + rax], 0
je 0x1401cb873
inc rax
cmp rbx, rax
jne 0x1401cb850
jmp 0x1401cb8ab
xor ecx, ecx
mov rdx, r12
mov r8, rbx
call fcn.14002c810
test rax, rax
je 0x1401cb8ab
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test r13b, r13b
jne 0x1401cb93f
mov edx, 1
mov rcx, r15
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.140001b50
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], rbx
lea rcx, [rbp - 0x30]
call fcn.140003750
mov rbx, rax
mov r14, rdx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x28], 1
mov qword [rbp], 0
lea r8, [rbp - 0x30]
mov r9, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1401cb90f
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x1401cb923
mov rcx, qword [rdi]
mov rax, qword [rbp]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rbx], 0
test r14, r14
je 0x1401cb93f
mov edx, 1
mov rcx, rbx
call fcn.140001b50
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, str.library_alloc_src_ffic_str.rs
call fcn.1401c7290
call fcn.1400035b0
mov ecx, 1
mov rdx, r14
call fcn.1401c66e0
int3
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004a9560]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004a9570]
mov dword [rax], 1
mov rax, qword [0x004a9580]
mov dword [rax], 1
mov rax, qword [0x004a9550]
mov dword [rax], 1
mov rax, qword [0x004a9410]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004a9540]
mov dword [0x004cd008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x004a9500]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004a88c0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401550
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
call sym.__main
lea rcx, str.shutdown__l
call sym.system
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x40b200
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x004cd624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x40b388
mov rax, qword [0x004cd628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40b24c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x40b2d5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x40b230
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40b3bd
mov rax, qword [0x004cd628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004cd628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40b3a0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40b2ce
sub eax, 0x40
and eax, 0xffffffbf
jne 0x40b330
add dword [0x004cd624], 1
cmp edi, 8
jae 0x40b303
test dil, 4
jne 0x40b374
test edi, edi
je 0x40b2f8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40b38f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x40b2f8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40b31c
jmp 0x40b2f8
add rsi, qword [0x004cd628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40b2ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x40b2f8
xor esi, esi
jmp 0x40b257
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40b2f8
mov rax, qword [0x004cd628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x40bb10
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004cd900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004cd8e0]
test rbx, rbx
je 0x40bb64
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40bb5b
test rsi, rsi
je 0x40bb5b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40bb40
lea rcx, [0x004cd900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]