joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c19ac
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x20
mov rax, qword [rsp + 0x60]
xor ebp, ebp
mov rbx, rcx
mov qword [rcx + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rcx + 8], r9
mov qword [rcx + 0x30], rax
mov eax, dword [rsp + 0x50]
mov word [rcx + 0x18], bp
mov qword [rcx + 0x20], rdx
mov dword [rcx + 0x3c], r8d
mov dword [rcx + 0x40], ebp
mov dword [rcx + 0x1c], eax
mov r12d, 0x8000
cmp byte [rsp + 0x68], bpl
jne 0x1000c1a0e
lea rcx, [rdx + 0x8000]
mov r8, r12
call sub.msvcrt.dll_memcpy
mov rcx, rbx
mov word [rbx + 0x44], bp
mov dword [rbx + 0x48], ebp
call fcn.1000c1e34
mov rdx, qword [rbx + 0x20]
mov r13d, 2
mov word [rbx + 0x54], r12w
mov dword [rbx + 0x4c], r12d
mov dword [rbx + 0x38], ebp
add rdx, r12
mov r8, r13
movzx eax, byte [rdx]
mov ecx, dword [rbx + 0x38]
inc rdx
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
sub r8, 1
mov dword [rbx + 0x38], ecx
jne 0x1000c1a39
cmp byte [rsp + 0x68], bpl
je 0x1000c1ab7
mov r8, rbp
mov r9, r12
mov rdx, qword [rbx + 0x28]
mov eax, ebp
movzx ecx, word [r8 + rdx]
add cx, r12w
cmp word [r8 + rdx], r12w
cmovae ax, cx
mov word [r8 + rdx], ax
add r8, r13
sub r9, 1
jne 0x1000c1a63
mov r8, rbp
mov r9, r12
mov rdx, qword [rbx + 0x30]
mov eax, ebp
movzx ecx, word [r8 + rdx]
add cx, r12w
cmp word [r8 + rdx], r12w
cmovae ax, cx
mov word [r8 + rdx], ax
add r8, r13
sub r9, 1
jne 0x1000c1a8f
jmp 0x1000c1ace
mov rcx, rbp
mov rdx, r12
mov rax, qword [rbx + 0x28]
mov word [rcx + rax], bp
add rcx, r13
sub rdx, 1
jne 0x1000c1abd
mov edx, 0x43
mov rcx, rbx
lea r8d, [rdx - 0x3b]
call fcn.1000c1b48
mov edx, 0x4b
mov rcx, rbx
lea r8d, [rdx - 0x43]
call fcn.1000c1b48
mov rcx, rbx
call fcn.1000c2ff8
add ax, r13w
movzx ecx, ax
mov rax, qword [rsp + 0x70]
mov dword [rax], ecx
cmp byte [rsp + 0x68], bpl
je 0x1000c1b20
mov rcx, qword [rbx + 0x20]
mov r8, r12
lea rdx, [rcx + 0x8000]
call sub.msvcrt.dll_memcpy
mov eax, dword [rbx + 0x40]
mov rbp, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
neg eax
sbb eax, eax
and eax, 3
add rsp, 0x20
pop r13
ret
Function at 0x140004858
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov rax, qword [0x1401ff510]
xor rax, rbp
mov qword [rbp + 0x18], rax
mov rdx, qword [rcx + 0x30]
lea r8, [0x1401d58f0]
and qword [rbp + 8], 0
mov rbx, rcx
lea rcx, [rbp + 8]
call fcn.1401638e0
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x1400049f5
mov edx, 0xfffffff0
lea r8d, [rdx + 0x12]
call fcn.14015f82c
mov r9, qword [rbp + 8]
lea rcx, [0x1402030c0]
mov esi, 1
mov edx, esi
lea r8d, [rsi + 0xf]
call fcn.140164cb8
mov rax, qword [0x1402030c0]
cmp rax, qword [0x140200110]
jne 0x1400049ec
mov rax, qword [0x1402030c8]
cmp rax, qword [0x140200118]
jne 0x1400049ec
mov rcx, qword [rbp + 8]
lea edx, [rsi - 0x15]
mov r8d, esi
call fcn.14015f82c
mov r9, qword [rbp + 8]
lea r8d, [rsi + 3]
mov edx, esi
lea rcx, [rbp]
call fcn.140164cb8
cmp rax, 4
jne 0x1400049ec
mov ecx, dword [rbp]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [rbp + 8]
lea edx, [rsi - 5]
sub edx, eax
mov dword [rbp], eax
mov r8d, esi
call fcn.14015f82c
movsxd rdx, dword [rbp]
lea rax, [rdx + 0x38]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x14000495b
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14015cbf0
sub rsp, rcx
mov r9d, esi
mov r8d, 8
lea rcx, [rsp + 0x20]
call fcn.140068a9c
mov rdx, rsi
mov rdi, rax
lea rcx, [rax + 8]
mov qword [rax], rcx
mov rcx, rax
movsxd r8, dword [rbp]
mov r9, qword [rbp + 8]
call fcn.140164cb8
movsxd rcx, dword [rbp]
cmp rax, rcx
jne 0x1400049ec
mov rcx, qword [rbx + 0x30]
lea rdx, str..msh
and qword [rbp + 0x10], 0
call fcn.140002508
mov rdx, rax
lea r8, [0x1401d5b80]
lea rcx, [rbp + 0x10]
call fcn.1401638e0
mov r9, qword [rbp + 0x10]
test r9, r9
je 0x1400049ec
movsxd r8, dword [rbp]
mov rdx, rsi
mov rcx, rdi
call fcn.140163560
mov rcx, qword [rbp + 0x10]
call fcn.14015f470
mov rcx, qword [rbp + 8]
call fcn.14015f470
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.14015c600
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140004b8c
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1401ff510]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ebx, ecx
xor r9d, r9d
mov ecx, 0x730
xor r8d, r8d
xor edx, edx
call fcn.140068c34
mov ecx, 0x18
mov rdi, rax
mov dword [rax + 0x564], 4
call fcn.140068f64
mov rcx, rax
mov qword [rdi], rax
call fcn.14006eb8c
or ebx, 0x18
mov qword [rdi + 0x28], rax
lea rcx, [rdi + 0x64]
mov dword [rdi + 0x60], ebx
mov edx, 0xff
call qword [sym.imp.WS2_32.dll_gethostname]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
movzx edx, byte [rsp + 0x21]
mov ecx, edx
sub ecx, 0x80
je 0x140004c24
cmp ecx, 0x7f
je 0x140004c1b
mov dword [rdi + 0x570], edx
jmp 0x140004c2e
and dword [rdi + 0x570], 0
jmp 0x140004c2e
mov dword [rdi + 0x570], 3
mov rax, qword [rdi]
mov edx, reloc.WS2_32.dll_recv
test rax, rax
lea rcx, [rax + 0x574]
mov rax, rdi
cmove rcx, rdx
mov qword [rcx], rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14015c600
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14000646c
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov ebx, edx
mov dil, cl
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
je 0x1400064fa
mov rcx, rax
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, 1
movzx eax, dil
mov word [rsp + 0x28], ax
mov dword [rsp + 0x20], esi
cmp ebx, esi
jne 0x1400064b4
mov dword [rsp + 0x2c], 2
jmp 0x1400064cb
cmp ebx, 3
jne 0x1400064bf
mov dword [rsp + 0x2c], ebx
jmp 0x1400064cb
xor eax, eax
cmp ebx, 4
cmove eax, esi
mov dword [rsp + 0x2c], eax
and dword [rsp + 0x30], 0
xor edx, edx
movzx ecx, dil
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
and qword [rsp + 0x38], 0
lea rdx, [rsp + 0x20]
mov r8d, 0x28
mov word [rsp + 0x2a], ax
mov ecx, esi
call qword [sym.imp.USER32.dll_SendInput]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140007718
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [0x140202e20], 0
mov rbp, r9
mov ebx, edx
mov rdi, rcx
je 0x140007795
cmp edx, 2
jl 0x14000777f
movzx ecx, word [rcx]
call qword [sym.imp.WS2_32.dll_ntohs]
cmp ax, 0xa
jne 0x14000777f
and qword [rsp + 0x28], 0
lea r8, [0x140006894]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14000777f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140202e20]
mov r8d, ebx
mov rdx, rdi
call fcn.140070078
mov eax, ebx
jmp 0x1400077ba
xor esi, esi
jmp 0x1400077a8
add esi, eax
mov edx, ebx
sub edx, esi
movsxd rcx, esi
add rcx, rdi
mov r9, rbp
lea r8, [0x140001654]
call fcn.140006fd0
test eax, eax
jne 0x140007799
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140008178
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r9
mov r8, rcx
test rdx, rdx
je 0x1400081c6
cmp dword [0x140202cac], 1
jne 0x1400081a2
cmp dword [0x140200120], 0
jne 0x1400081a2
xor eax, eax
jmp 0x140008235
and dword [0x140202ca8], 0
lea r9, [0x140001654]
mov dword [reloc.WS2_32.dll_accept], 1
mov qword [rsp + 0x20], rdi
call fcn.140008080
jmp 0x140008235
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x14]
call fcn.140068c34
cmp dword [0x140202cac], 1
lea rcx, [0x140001654]
mov dword [0x140202cdc], 1
mov qword [rax], rcx
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
jne 0x140008211
cmp dword [0x140200120], 0
jne 0x140008211
mov rcx, rax
call fcn.140163938
jmp 0x14000819b
and qword [rsp + 0x28], 0
lea r8, [fcn.140007b64]
and dword [rsp + 0x20], 0
mov r9, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x1400083dc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r15
mov r10d, dword [0x140202cf8]
mov ebp, edx
mov r11d, dword [0x140202ce8]
mov eax, r10d
cdq
xor r13d, r13d
idiv r11d
mov r15, r8
mov r12d, ecx
mov r9d, r13d
mov ebx, edx
test edx, edx
je 0x140008427
mov r8d, r11d
sub r8d, edx
add r8d, r10d
jmp 0x14000842a
mov r8d, r10d
sub r8d, ebp
sub r8d, dword [0x140202cc4]
test ebx, ebx
je 0x140008442
mov eax, r11d
sub eax, ebx
add eax, r10d
jmp 0x140008445
mov eax, r10d
sub eax, ebp
cmp r8d, eax
jge 0x1400084d3
mov eax, dword [0x140202cb0]
cdq
idiv r11d
test edx, edx
je 0x14000846b
mov eax, r11d
sub eax, edx
add eax, dword [0x140202cb0]
jmp 0x140008471
mov eax, dword [0x140202cb0]
imul eax, r8d
mov rdi, r13
add eax, r12d
imul eax, dword [0x140202d04]
movsxd rdx, eax
mov eax, dword [0x140202d04]
add rdx, r15
imul eax, r11d
movsxd rcx, eax
sar rcx, 2
lea rax, [rdx + rcx*4]
lea rcx, [rcx*4 + 3]
shr rcx, 2
cmp rdx, rax
cmova rcx, r13
test rcx, rcx
je 0x1400084cb
imul r9d, r9d, 0x1000193
inc rdi
xor r9d, dword [rdx]
lea rdx, [rdx + 4]
cmp rdi, rcx
jb 0x1400084b5
inc r8d
jmp 0x140008434
mov rbx, qword [rsp + 0x18]
mov eax, r9d
mov rbp, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
pop r15
pop r13
ret
Function at 0x140009a2c
Capabilities:
Create thread
Shutdown system

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x1401ff510]
xor rax, rsp
mov qword [rbp - 8], rax
xor esi, esi
mov r14d, edx
mov ebx, ecx
test ecx, ecx
jne 0x140009a63
xor eax, eax
jmp 0x140009bed
cmp ebx, 6
jne 0x140009a84
lea ecx, [rbx - 4]
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
lea ecx, [rbx - 2]
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
mov eax, 1
jmp 0x140009bed
cmp ebx, 7
jne 0x140009a8e
lea ecx, [rbx - 6]
jmp 0x140009a74
cmp ebx, 8
jne 0x140009a9e
or ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
jmp 0x140009a7a
cmp ebx, 9
jne 0x140009ad4
mov qword [rsp + 0x28], rsi
lea r8, [0x140006894]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp - 0x20], rax
test rax, rax
je 0x140009a7a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140009a7a
cmp ebx, 5
jg 0x140009a5c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x20]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140009a5c
lea r8, [rbp - 0x14]
xor ecx, ecx
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rbp - 0x20]
lea r8, [rbp - 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor edx, edx
mov dword [rbp - 0x18], 1
mov dword [rbp - 0xc], 2
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140009b50
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140009a5c
sub ebx, 1
je 0x140009b9f
sub ebx, 1
je 0x140009b87
sub ebx, 1
je 0x140009b7d
sub ebx, 1
je 0x140009b76
cmp ebx, 1
jne 0x140009be1
xor ecx, ecx
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_SetSystemPowerState]
jmp 0x140009bb8
mov ecx, 1
jmp 0x140009b6b
mov dword [rsp + 0x20], 1
jmp 0x140009b8b
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
lea r9d, [rdx + 1]
lea r8d, [rdx + 0x1e]
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
jmp 0x140009bb8
mov edx, 0x80000000
test r14d, r14d
je 0x140009bb0
mov ecx, 4
jmp 0x140009bb2
xor ecx, ecx
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x140009be1
mov rcx, qword [rbp - 0x20]
lea r8, [rbp - 0x18]
mov qword [rsp + 0x28], rsi
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rsi
mov dword [rbp - 0xc], esi
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, 1
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14015c600
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x14000ac98
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov r9, rdx
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movabs rax, 0xaaaaaaaaaaaaaaab
mov r10, rcx
mul rdx
shr rdx, 1
lea rax, [rdx + rdx*2]
sub r9, rax
lea r11, [rax + rcx]
cmp rcx, r11
je 0x14000ad2c
movzx eax, byte [r10 + 1]
movzx edx, byte [r10]
movzx ecx, byte [r10 + 2]
add r10, 3
shl rdx, 8
add rdx, rax
shl rdx, 8
add rdx, rcx
mov rax, rdx
shr rax, 0x12
mov al, byte [rax + rbx]
mov byte [r8], al
mov rax, rdx
shr rax, 0xc
and eax, 0x3f
mov al, byte [rax + rbx]
mov byte [r8 + 1], al
mov rax, rdx
shr rax, 6
and edx, 0x3f
and eax, 0x3f
mov al, byte [rax + rbx]
mov byte [r8 + 2], al
mov al, byte [rdx + rbx]
mov byte [r8 + 3], al
add r8, 4
cmp r10, r11
jne 0x14000acca
sub r9, 1
je 0x14000ad76
cmp r9, 1
jne 0x14000ad9a
movzx edx, byte [r10]
movzx eax, byte [r10 + 1]
shl edx, 8
add edx, eax
mov eax, edx
shr rax, 0xa
mov ecx, edx
and edx, 0xf
shr rcx, 4
and ecx, 0x3f
mov al, byte [rax + rbx]
mov byte [r8], al
shl edx, 2
mov al, byte [rcx + rbx]
mov byte [r8 + 1], al
mov al, byte [rdx + rbx]
mov byte [r8 + 2], al
mov byte [r8 + 3], 0x3d
jmp 0x14000ad9a
movzx ecx, byte [r10]
mov eax, ecx
and ecx, 3
shr rax, 2
shl ecx, 4
mov al, byte [rax + rbx]
mov byte [r8], al
mov al, byte [rcx + rbx]
mov byte [r8 + 1], al
mov word [r8 + 2], 0x3d3d
mov rbx, qword [rsp + 8]
ret
Function at 0x14003f6f4
Capabilities:
Get disk information
Get disk size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x1401ff510]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rax, rdx
lea r9, [rsp + 0x30]
mov rbx, rcx
lea rdx, [rsp + 0x50]
mov rcx, rax
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameA]
test eax, eax
je 0x14003f8a7
cmp byte [rsp + 0x50], 0
je 0x14003f8a7
mov rcx, rbx
call fcn.14000e5c4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14000e1cc
mov esi, 0xfffffffe
lea r8, str.name
mov edx, esi
mov rcx, rbx
call fcn.14000b988
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea r9, [rsp + 0x40]
mov edi, eax
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x14003f806
mov rcx, qword [rsp + 0x38]
xorps xmm1, xmm1
cvtsi2sd xmm1, rcx
test rcx, rcx
jns 0x14003f7ba
addsd xmm1, qword [0x1401e4508]
mov rcx, rbx
call fcn.14000dffc
lea r8, str.size
mov edx, esi
mov rcx, rbx
call fcn.14000b988
mov rax, qword [rsp + 0x40]
xorps xmm1, xmm1
cvtsi2sd xmm1, rax
test rax, rax
jns 0x14003f7ed
addsd xmm1, qword [0x1401e4508]
mov rcx, rbx
call fcn.14000dffc
lea r8, str.free
mov edx, esi
mov rcx, rbx
call fcn.14000b988
sub edi, 2
je 0x14003f84f
sub edi, 1
je 0x14003f846
sub edi, 1
je 0x14003f83d
sub edi, 1
je 0x14003f834
mov rcx, rbx
cmp edi, 1
je 0x14003f82b
lea rdx, str.UNKNOWN
jmp 0x14003f859
lea rdx, str.RAMDISK
jmp 0x14003f859
lea rdx, str.CDROM
jmp 0x14003f856
lea rdx, str.REMOTE
jmp 0x14003f856
lea rdx, str.FIXED
jmp 0x14003f856
lea rdx, str.REMOVABLE
mov rcx, rbx
call fcn.14000e1cc
lea r8, str.type
mov edx, esi
mov rcx, rbx
call fcn.14000b988
mov r9d, 0x18075380
mov dword [rsp + 0x20], 6
xor r8d, r8d
lea rdx, [0x14003f6c4]
mov rcx, rbx
call fcn.14000e80c
lea r8, str.toString
mov edx, esi
mov rcx, rbx
call fcn.14000b988
mov eax, 1
jmp 0x14003f8a9
xor eax, eax
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14015c600
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140043fbc
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor ebp, ebp
mov rbx, rcx
lea edi, [rbp + 1]
cmp dword [rcx + 8], ebp
jne 0x140043fe9
mov rax, qword [rbx + 0x70]
cmp dword [rax + 8], 0
jle 0x140044087
mov rax, qword [rbx + 0x70]
xor esi, esi
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x140043ffb
mov rsi, qword [rcx]
mov rcx, qword [rsi]
lea rdx, [rsi + 0x10]
mov r8d, dword [rsi + 0xc]
lea r9, [rsp + 0x50]
mov ebp, dword [rsi + 8]
lea rax, [rcx + 0x38]
mov rcx, qword [rcx + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r14d, eax
cmp eax, edi
jne 0x140044048
cmp dword [rbx + 8], 0
jne 0x14004409e
mov rcx, qword [rsi]
mov rcx, qword [rcx + 0x70]
call fcn.140069b34
mov rcx, rsi
call fcn.140163938
cmp dword [rbx + 8], 0
je 0x140043fdb
test r14d, r14d
jne 0x140044087
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140044075
mov rdx, qword [rbx + 0x50]
lea r9, [0x140043f4c]
mov rcx, qword [rbx + 0x58]
xor edi, edi
mov r8, rbx
call fcn.14006e908
jmp 0x1400440a0
mov rcx, qword [rbx]
mov rdx, rbx
mov edi, 0xfffffffc
call fcn.140043e28
jmp 0x1400440a0
cmp dword [rbx + 8], 0
jne 0x14004409e
test ebp, ebp
je 0x1400440a0
mov rcx, qword [rbx]
mov rdx, rbx
call fcn.140043ef8
jmp 0x1400440a0
xor edi, edi
mov rbx, qword [rsp + 0x58]
mov eax, edi
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x1400440e8
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rdx]
mov rbx, rdx
mov rcx, qword [rcx + 0x70]
call fcn.14006cf10
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x70]
cmp dword [rax + 8], 1
jne 0x140044114
add rsp, 0x20
pop rbx
jmp fcn.140043fbc
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1400442e4
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [rdx + 0x70]
mov rbx, rdx
call fcn.140069b34
mov rcx, rax
call fcn.140163938
mov rax, qword [rbx + 0x70]
cmp dword [rax + 8], 0
jne 0x140044318
mov rcx, qword [rbx]
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140043ef8
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140043fbc
Function at 0x14005bd28
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
or ebx, 0xffffffff
mov rdi, rcx
mov edx, ebx
call fcn.14000b2e8
mov r9, rax
lea r8, [0x1401d58ec]
mov edx, 0xfffc
lea rcx, [0x1402040c4]
mov rbp, rax
call fcn.1400010e4
mov rcx, rdi
lea esi, [rax + 4]
mov dword [0x1402040c0], esi
call fcn.14000e398
lea r8, [0x1401e0d60]
mov edx, ebx
mov rcx, rdi
call fcn.14004568c
mov rcx, rdi
mov rbx, rax
call fcn.14000ef10
test rbx, rbx
je 0x14005bdf1
lea ecx, [rsi + 8]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call fcn.140068c34
movsxd rdx, esi
mov r8, rbp
mov r9, rdx
mov rdi, rax
lea rcx, [rax + 8]
mov qword [rax], rbx
call section..text
mov rcx, qword [rbx + 0x18]
call fcn.14006e69c
mov rcx, qword [rbx + 0x18]
test eax, eax
jne 0x14005bde7
lea r9d, [rax + 1]
mov r8, rdi
lea rdx, [fcn.14005f85c]
call fcn.140068dd0
jmp 0x14005be22
mov rdx, rdi
call fcn.14005f85c
jmp 0x14005be22
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rcx, rax
lea rdx, [0x1402040c0]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call fcn.14000ef10
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140065268
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
add rcx, 0xb4
mov r10, r9
mov rdi, r8
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov dword [rcx + 0x18], eax
and dword [rbx + 0x1d0], eax
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0x1d8], rax
mov rax, qword [rsp + 0x68]
mov qword [rbx + 0x1e0], rax
test r9, r9
je 0x1400652cf
cmp word [r10], 0x17
mov edx, 0x1c
mov r8, r10
lea r9d, [rdx - 0xc]
cmove r9d, edx
call section..text
mov rax, qword [rsp + 0x78]
mov r8, rdi
mov r9, qword [rsp + 0x70]
mov rcx, rbx
mov qword [rsp + 0x60], rax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140064f70

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
or edx, 0xffffffff
mov rcx, qword [rcx + 0x270]
mov edi, 0xfffffffc
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [rbx + 0x2b8]
cmp qword [rax], 0
jbe 0x1400653c9
cmp qword [rbx + 0x268], 0
jne 0x1400653c9
cmp dword [rbx + 0x240], 0
je 0x140065388
mov rcx, qword [rbx + 0x2a8]
lea edx, [rdi + 0x13]
call fcn.140095e00
mov rdx, qword [rbx + 0x2b8]
xor r9d, r9d
mov rcx, qword [rbx + 0x50]
mov r8d, dword [rdx]
mov rdx, qword [rdx + 8]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x1400653c9
mov rdx, qword [rbx + 0x2b8]
cmp eax, dword [rdx]
jge 0x1400653b1
movsxd rcx, eax
add qword [rdx + 8], rcx
mov rax, qword [rbx + 0x2b8]
sub qword [rax], rcx
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 0x38]
call fcn.140068c34
xor edi, edi
mov dword [rax + 0x2c], 3
mov qword [rbx + 0x268], rax
mov qword [rbx + 0x260], rax
jmp 0x1400653c9
jne 0x1400653c9
and qword [rdx], 0
mov edi, 1
mov rcx, qword [rbx + 0x2b8]
cdqe
add qword [rcx + 8], rax
mov rcx, qword [rbx + 0x270]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov rbx, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x1400667b0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
and dword [rcx + 0x58], 0
lea rax, [0x1402140c0]
and dword [rcx + 0x5c], 0
mov rbx, rcx
and dword [rcx + 0x23c], 0
and dword [rcx + 0x28c], 0
mov qword [rcx + 0x50], rdx
mov qword [rcx + 0x208], r8
mov qword [rcx + 0x228], r9
mov dword [rcx + 0x240], 1
mov rcx, qword [rcx + 0x250]
cmp rcx, rax
je 0x140066822
movsxd rdx, dword [rbx + 0x25c]
call fcn.14016a0e4
test rax, rax
je 0x140066852
mov qword [rbx + 0x250], rax
mov eax, dword [rbx + 0x25c]
mov dword [rbx + 0x258], eax
and dword [rbx + 0x244], 0
lea r8, [rsp + 0x40]
and dword [rbx + 0x248], 0
mov edx, 0x8004667e
mov rcx, qword [rbx + 0x50]
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x82f
lea rdx, str...microstackILibAsyncSocket.c
mov r8d, ebx
mov dword [rsp + 0x20], eax
mov r9d, 0xfe
xor ecx, ecx
call fcn.14006e59c
mov r8d, ebx
lea rdx, str...microstackILibAsyncSocket.c
lea rcx, str.CRITICALEXIT__FILE:__s__LINE:__d_r_n
call fcn.140001090
mov ecx, 0xfe
call fcn.14015ecf8
int3

Function at 0x1400668f8
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
lea rdi, [rcx + 0x7c]
mov esi, 0x1c
cmp word [rdi], 0
mov rax, rdx
mov dword [rsp + 0x30], esi
je 0x140066942
cmp word [rdi], 0x17
lea ebx, [rsi - 0xc]
mov edx, ebx
mov r8, rdi
cmove edx, esi
mov rcx, rax
mov r9d, edx
call section..text
cmp word [rdi], 0x17
cmove ebx, esi
mov eax, ebx
jmp 0x140066955
mov rcx, qword [rcx + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140066968
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1401ff510]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp word [rcx + 0x7c], 0x17
mov dword [rsp + 0x20], 0x1c
jne 0x140066996
movzx ecx, word [rcx + 0x7e]
call qword [sym.imp.WS2_32.dll_ntohs]
jmp 0x1400669ca
cmp word [rcx + 0x7c], 2
je 0x14006698a
mov rcx, qword [rcx + 0x50]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp word [rsp + 0x28], 0x17
jne 0x1400669c0
movzx ecx, word [rsp + 0x2a]
jmp 0x14006698e
cmp word [rsp + 0x28], 2
je 0x1400669b9
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14015c600
add rsp, 0x58
ret