joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1406c9ed9
Capabilities:
Encode data using base64

Disassembly:
neg byte [rsp + 0x10]
push qword [rsp + 0x18]
popfq
lea rsp, [rsp + 0x20]
ret
js 0x1405a6e57
mov ecx, 0x958cf3ae
ror dword [rax + 0x28], 1
fmul dword [rax + 0x284e2464]
and dword [rsi], ebx
fdiv dword [rsi - 0x42f74a29]
mov ah, 0xd7
cmpsd dword [rsi], dword [rdi]
pop rax
sub byte [r15 - 0x52], r9b
sub al, dl
call 0x1689d4f5c
mov cl, 0xbf
or dword [rdx + 0x3cb4eed7], esi
sub byte [rdi + 0x16284313], spl
push 0xffffffffffffffec
movsb byte [rdi], byte [rsi]
sub byte [r9 - 4], dil
mov dh, 0xd7
invalid
lea rbx, [rbx - 0x70d035dc]
push rdx
mov rdx, qword [rsp + 0x10]
not rdx
jle 0x1405bafbf
xchg qword [rsp + rdx*2 + 0x6151c366], rbx
mov rdx, qword [rsp + rdx + 0x30a8e1a3]
and word [rsp + 0x10], 0x293b
neg dword [rsp + 0x10]
js 0x1405281de
mov r13, qword [rsp + 0x18]
mov qword [rsp + 0x18], 0xffffffffc16a8495
push qword [rsp + 0x10]
popfq
lea rsp, [rsp + 0x18]
call fcn.1407cbc27
int3
jne 0x1405471ff

Function at 0x1406cd000
Capabilities:
Encode data using xor

Disassembly:
push r11
movabs r11, 0xfd3b5c1bbe967312
pushfq
or r11, r11
mov qword [rsp + 0x20], rbp
ja 0x1405c7e7a

Function at 0x1406d701f
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
setae byte [rsp + r12 + 0x21]
mov r12, qword [rsp + r12*4 + 0x6c]
ja 0x140565c21

Function at 0x1406d74de
Capabilities:
Encode data using base64

Disassembly:
lea rdx, [rdx + 0x5eb4da15]
test r13d, 0xb810153a
setl r12b
push rdi
xchg qword [rsp + r12 - 0x238115c0], rdx
mov r12, qword [rsp + r12*2 - 0x47022be8]
shr r13b, 0xa3
shr r13, 0xf3
mov rdi, r13
seta r13b
movzx r13d, byte [rsp + r13 - 0x2c4]
cmp r13b, dil
jge 0x14063d4f2
mov rdi, qword [rsp + r13 - 0xb3]
jno 0x140358bf8
jge 0x14050a9da
sbb esp, dword [rcx + 0x21]
add byte [rdx], al
add byte [rax], al
invalid
lea r14, [r14*4 + 0x1a5f7ba]
lea r13, [r14 + r13*4 + 0x3f90eca9]
mov r14, qword [rsp + 0x18]
mov r8, r13
call fcn.140596601
lea r10, [r12 + r12 - 0x16632780]
and r11w, r10w
lea r10, [r11 + riz - 0x78f31beb]
jge 0x14035037d
jbe 0x1403db94a
sub dh, byte [rcx]
movq qword [0x1bf728547], mm1
push rax
out dx, al
sub ebp, dword [rcx]
hlt

Function at 0x1406e4a84
Capabilities:
Encrypt data using speck
Packed with generic packer
Resolve function by parsing pe exports

Disassembly:
or dil, byte [rsp + 0x50]
lea rdi, [rdi + rdi*4 + 0x45be0f12]
jne 0x1406ad24b
test dword [rsp + 0x50], 0x85286fa0
mov rdi, qword [rsp + 0x20]
jl 0x140489560
jno 0x1406e6097
push qword [rsp + 8]
popfq
lea rsp, [rsp + 0x18]
ret
mov r14, qword [rsp + 0x48]
jno 0x1404a6b46

Function at 0x1406ea1a7
Capabilities:
Terminate process

Disassembly:
lea rax, [rax + 0x3aab5880]
cmp bl, r11b
bswap r10d
jle 0x1405d95f8
call fcn.1406f94d1

Function at 0x1406ea1fd
Capabilities:
Encode data using xor
Packed with generic packer
Terminate process

Disassembly:
bswap edx
shr r14b, 0xca
xchg qword [rsp + 0x40], rsi
mov r10, qword [rsp + 0x18]
not r14w
je 0x1404bb349

Function at 0x1406ea217
Capabilities:
Terminate process

Disassembly:
add qword [rsp], 0xffffffffbfbe8ac2
add qword [rsp + 0x18], 0xffffffffbf76f27c
push qword [rsp + 0x10]
popfq
lea rsp, [rsp + 0x20]
call fcn.14072efb7
Function at 0x1406ea238
Capabilities:
Terminate process

Disassembly:
push qword [rsp + 0x20]
popfq
lea rsp, [rsp + 0x28]
call fcn.1407f3663
xchg dword [0xdd53a1ca], eax
movabs al, byte [0x5ef3fc6c58fb101a]
pop rcx
nop
cmp eax, 0x65ef237f
xchg edx, eax
mov ch, 0x75
sbb dword [rbp + 0x31ed963a], 0x856a2466
lahf
lahf
retf
jbe 0x140642a1a

Function at 0x1406f6640
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
shl byte [rsp + 0x48], 0x17
js 0x1405568f6
and r8w, si
and r8d, 0x99b0d12
mov r8, qword [rsp + 0x58]
add qword [rsp + 0x70], rsi
setns byte [rsp + 0x48]
test dword [rsp + 0x70], 0xf33a7b85
jge 0x1406b5c69
jns 0x1403f51d9
mov rsi, qword [rsp + 0x60]
sets byte [rsp + 0x70]
and qword [rsp + 0x48], 0xffffffffd60d7aaa
test word [rsp + 0x48], 0x2005
push qword [rsp + 0x78]
popfq
lea rsp, [rsp + 0x80]
ret
setns sil
neg r8d
mov rcx, qword [rsp + 0x38]
sete r8b
jbe 0x140584464

Function at 0x1406f9643
Capabilities:
Get geographical location

Disassembly:
shl r9, 0x86
bswap r14
setb r9b
jns 0x1405cc091

Function at 0x1406fb9a2
Capabilities:
Encrypt data using speck
Packed with generic packer
Resolve function by parsing pe exports

Disassembly:
shr byte [rsp + 0x20], 0xa3
mov r13, qword [rsp + 0x48]
xor esi, esi

Function at 0x14070a213
Capabilities:
Encode data using xor

Disassembly:
test dword [rsp + rbp*2 - 0x18023fe0], 0x5f06c11a
mov qword [rsp + rbp*2 - 0x18023fd0], rbx
movzx rbp, bp
jl 0x14053c652
and word [rsp + rbp*2 - 0x3fe0], 0xf98a
neg dword [rsp + rbp - 0x1fe0]
shl qword [rsp + rbp*2 - 0x3fe0], 0x7e
push r15
lea rsp, [rsp + rbp*8 - 0xfff0]
ret

Function at 0x1407140a6
Capabilities:
Encode data using xor

Disassembly:
mov rsi, r8
not r8w
sub qword [rsp + rsi - 0x51a600ef], 0x481f6296
cmp rsi, qword [rsp + r8 - 0x51a6fef0]
push r12
lea rcx, [rcx + rsi - 0x5689ec55]
push rbx
push 0xffffffffc021732d

Function at 0x140727d62
Capabilities:
Encode data using xor
Set registry value

Disassembly:
seta r9b
mov r9d, r13d
neg r13d
add ebx, dword [rsp + rbx - 0x3f0c75cb]
js 0x14062c99f

Function at 0x140729618
Capabilities:
Packed with generic packer

Disassembly:
push rcx
movabs rcx, 0xff3e90aac0b85cb5
xor r15, 0xffffffffd534758c
shl r15, 0x17
push r15
ja 0x1404fd9ca
mov rdx, qword [rsp + 0x18]
call fcn.140411c7f
push rsp
invalid
shr qword [rsp + 0x70], 0xb2
and word [rsp + 0x70], 0xb1ab
sub word [rsp + 0x70], 0x49bc
cmp qword [rsp + 0x70], 0x30271ea7
push qword [rsp + 0x60]
popfq
lea rsp, [rsp + 0x78]
ret
sub di, 0x492
or dword [rsp + rdi - 0x3bc136], 0x8ab7aca9
je 0x1403d8c35
mov rdi, qword [rsp + rdi - 0x3bc17e]
jae 0x14042d27e
Function at 0x14000b4c0
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140019060]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14000b500
mov eax, 0xff
jmp 0x14000b6ab
mov r8d, dword [rsp + 0x3c]
and r8d, 0x7fff
mov r9d, dword [rsp + 0x40]
cmp r9d, 2
je 0x14000b51c
bts r8d, 0xf
mov edx, dword [rsp + 0x34]
mov ecx, edx
shl ecx, 8
mov eax, dword [rsp + 0x38]
add ecx, eax
mov dword [0x14001acc8], r9d
mov dword [0x14001acd0], ecx
mov dword [0x14001acd4], edx
mov dword [0x14001acd8], eax
mov dword [0x14001accc], r8d
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14000b593
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14000b593
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x14000b593
xor ebx, ebx
cmp dword [rax + 0x84], 0xe
jbe 0x14000b595
cmp dword [rax + 0xf8], ebx
setne bl
jmp 0x14000b595
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov edi, 1
mov ecx, edi
call fcn.14000d244
test eax, eax
jne 0x14000b5cb
cmp dword [0x14001a71c], 2
je 0x14000b5b7
call fcn.14000d028
mov ecx, 0x1c
call fcn.14000d074
mov ecx, 0xff
call fcn.14000cc40
call fcn.14000cb0c
test eax, eax
jne 0x14000b5f7
cmp dword [0x14001a71c], 2
je 0x14000b5e2
call fcn.14000d028
mov ecx, 0x10
call fcn.14000d074
mov ecx, 0xff
call fcn.14000cc40
nop
call fcn.14000d2b8
test eax, eax
jns 0x14000b60a
mov ecx, 0x1b
call fcn.14000cc5c
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x14001c8d0], rax
call fcn.14000da58
mov qword [0x14001a720], rax
call fcn.14000d554
test eax, eax
jns 0x14000b635
mov ecx, 8
call fcn.14000cc5c
call fcn.14000d834
test eax, eax
jns 0x14000b648
mov ecx, 9
call fcn.14000cc5c
mov ecx, edi
call fcn.14000cccc
test eax, eax
je 0x14000b65a
mov ecx, eax
call fcn.14000cc5c
mov r8, qword [0x14001acb8]
mov qword [0x14001ace8], r8
mov rdx, qword [0x14001acb0]
mov ecx, dword [0x14001acac]
call fcn.1400070f4
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
jne 0x14000b68b
mov ecx, eax
call fcn.14000d018
call fcn.14000ccb8
jmp 0x14000b6a9
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14018f000
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
sub rsp, 0x28
call fcn.14000d980
add rsp, 0x28
jmp 0x14000b4c0

Function at 0x14000c1ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x14000d074
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
lea r14, reloc.OLEAUT32.dll_SysReAllocString
mov edi, ecx
xor edx, edx
mov r8, r14
cmp ecx, dword [r8]
je 0x14000d0ab
inc edx
add r8, 0x10
movsxd rax, edx
cmp rax, 0x17
jb 0x14000d097
movsxd rbx, edx
cmp rbx, 0x17
jae 0x14000d225
mov ebp, 3
mov ecx, ebp
call fcn.14001085c
cmp eax, 1
je 0x14000d1e6
mov ecx, ebp
call fcn.14001085c
test eax, eax
jne 0x14000d0e5
cmp dword [section..data], 1
je 0x14000d1e6
cmp edi, 0xfc
je 0x14000d225
lea rdi, [0x14001acf0]
mov ebp, 0x314
lea r8, [0x140001a88]
mov rcx, rdi
mov edx, ebp
call fcn.14000db8c
test eax, eax
je 0x14000d127
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000ea70
lea rdx, [0x14001ad09]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14001ae0d], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14000d178
lea r8, [0x140001aa8]
lea rcx, [0x14001ad09]
mov edx, 0x2fb
call fcn.14000db8c
test eax, eax
je 0x14000d178
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000ea70
lea r8, [0x140001ac0]
mov rdx, rbp
mov rcx, rdi
call fcn.1400107cc
test eax, eax
je 0x14000d1a3
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000ea70
add rbx, rbx
mov rdx, rbp
mov rcx, rdi
mov r8, qword [r14 + rbx*8 + 8]
call fcn.1400107cc
test eax, eax
je 0x14000d1cf
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14000ea70
lea rdx, [0x140001ac8]
mov r8d, 0x12010
mov rcx, rdi
call fcn.1400108b4
jmp 0x14000d225
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14000d225
add rbx, rbx
or r8, 0xffffffffffffffff
mov rdx, qword [r14 + rbx*8 + 8]
inc r8
cmp byte [rdx + r8], 0
jne 0x14000d207
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14000d980
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140019060]
and qword [rbp + 0x18], 0
movabs rbx, 0x2b992ddfa232
cmp rax, rbx
jne 0x14000da3b
lea rcx, [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
xor qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
xor qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
shl rax, 0x18
xor qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [rbp + 0x10]
mov eax, eax
xor rax, qword [rbp + 0x10]
xor rax, rcx
lea rcx, [rbp + 0x20]
mov qword [rbp + 0x10], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [rbp + 0x20]
shl rax, 0x20
movabs rcx, 0xffffffffffff
xor rax, qword [rbp + 0x20]
xor rax, qword [rbp + 0x10]
and rax, rcx
movabs rcx, 0x2b992ddfa233
cmp rax, rbx
cmove rax, rcx
mov qword [0x140019060], rax
mov rbx, qword [rsp + 0x48]
not rax
mov qword [0x140019068], rax
add rsp, 0x20
pop rbp
ret

Function at 0x14000ea70
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x540
mov rax, qword [0x140019060]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14000eaed
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x14000eb0d
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, [0x140001af0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14000b710
add rsp, 0x540
pop rbx
ret
Function at 0x180001d10
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x180001d67
mov qword [0x1800faa20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rbx
mov qword [0x180100a48], rax
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x180001bd0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x180005ab0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov r10, rdx
mov rbx, rcx
test rdx, rdx
jne 0x180005ad1
mov rcx, qword [rcx]
mov dl, 0x30
mov rax, qword [rcx]
add rsp, 0x20
pop rbx
jmp qword [rax]
mov qword [rsp + 0x38], rdi
lea r9, [rcx + 0x10]
mov ecx, 1
test rdx, rdx
jns 0x180005bea
mov rax, rdx
mov byte [r9], reloc.WLDAP32.dll_Ordinal_45
cqo
mov r10, rax
xor r10, rdx
sub r10, rdx
mov rdx, r10
cmp r10, 0xa
jb 0x180005b47
movabs r8, 0x346dc5d63886594b
nop dword [rax]
cmp rdx, 0x64
jb 0x180005be3
cmp rdx, 0x3e8
jb 0x180005bdb
cmp rdx, 0x2710
jb 0x180005bd3
mov rax, r8
add ecx, 4
mul rdx
shr rdx, 0xb
cmp rdx, 0xa
jae 0x180005b10
inc ecx
mov r11d, ecx
lea rdi, str.00010203040506070809101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
lea rcx, [r11 + r9]
cmp r10, 0x64
jb 0x180005bb1
mov qword [rsp + 0x30], rsi
movabs rsi, 0x47ae147ae147ae15
nop dword [rax]
mov r8, r10
mov rax, rsi
mul r10
sub r10, rdx
shr r10, 1
add r10, rdx
shr r10, 6
imul rax, r10, 0x64
sub r8, rax
mov eax, r8d
lea rdx, [rax + rax]
movzx eax, byte [rdx + rdi + 1]
mov byte [rcx - 1], al
sub rcx, 2
movzx eax, byte [rdx + rdi]
mov byte [rcx], al
cmp r10, 0x64
jae 0x180005b70
mov rsi, qword [rsp + 0x30]
cmp r10, 0xa
jb 0x180005c44
mov eax, r10d
lea rdx, [rax + rax]
movzx eax, byte [rdx + rdi + 1]
mov byte [rcx - 1], al
movzx eax, byte [rdx + rdi]
mov byte [rcx - 2], al
jmp 0x180005c4c
add ecx, 3
jmp 0x180005b47
add ecx, 2
jmp 0x180005b47
inc ecx
jmp 0x180005b47
cmp rdx, 0xa
jb 0x180005b49
movabs r8, 0x346dc5d63886594b
nop
cmp rdx, 0x64
jb 0x180005b47
cmp rdx, 0x3e8
jb 0x180005c3c
cmp rdx, 0x2710
jb 0x180005c34
mov rax, r8
add ecx, 4
mul rdx
shr rdx, 0xb
cmp rdx, 0xa
jae 0x180005c00
jmp 0x180005b49
add ecx, 3
jmp 0x180005b49
add ecx, 2
jmp 0x180005b49
add r10b, 0x30
mov byte [rcx - 1], r10b
mov rcx, qword [rbx]
mov r8, r11
mov rdx, r9
mov rax, qword [rcx]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp qword [rax + reloc.WS2_32.dll_htonl]
Function at 0x180013ba0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1800f9b98]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180013c73
cmp byte [rcx + 0x71], 0
je 0x180013c73
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x180013c6f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180013c34
sub eax, 1
je 0x180013c38
cmp eax, 2
jne 0x180013c6f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800c73c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180013c66
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x180013c6f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180013c1c
xor al, al
jmp 0x180013c1c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800c73c0
add rsp, 0x60
pop rbx
ret
Function at 0x18001aee0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1800f9b98]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x18001af0d
xor eax, eax
jmp 0x18001b076
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x18001af4d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x18001af4d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x18001b06e
cmp qword [rdi + 0x80], 0
je 0x18001b069
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x18001af87
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x18001afb2
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x18001b06e
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 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 0x18001b021
sub eax, 1
je 0x18001b021
cmp eax, 2
jne 0x18001b069
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x18001b06e
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x18001b04f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x18001b069
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x18001b06e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800c73c0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18001fe00
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1800f9b98]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rax, qword [rcx]
lea rdi, [rsp + 0x58]
mov qword [rsp + 0x68], rax
lea rsi, [rsp + 0x60]
mov r9d, edx
mov dword [rsp + 0x60], 1
mov ecx, r8d
lea rbp, [rsp + 0x60]
movabs rax, 0x20c49ba5e353f7cf
imul r8
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0x3e8
mov dword [rsp + 0x58], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x5c], eax
xor eax, eax
test r8, r8
cmovs rdi, rax
cmp r9d, 1
mov qword [rsp + 0x20], rdi
cmovne rsi, rax
test r9d, r9d
mov r8, rsi
cmovne rbp, rax
xor r9d, r9d
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18001feda
nop dword [rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x18001fee0
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
cmp eax, 0xffffffff
je 0x18001feb0
test ebx, ebx
je 0x18001ff0a
jmp 0x18001fee7
cmp ebx, 0xffffffff
je 0x18001ff2d
jmp 0x18001feda
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800c73c0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Request_timed_out
lea rcx, [rsp + 0x30]
call fcn.18000b2c0
lea rdx, [0x1800f3aa0]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.1800238e0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, str.Failed_to_select_socket
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.18000baf0
lea rdx, [0x1800f38e0]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x180024150
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
jg 0x180024172
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x180024188
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 qword [rsp + 0x28], rbx
mov rbx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x1800241d2
cmp rax, rsi
mov rdi, rsi
mov rcx, r14
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, rbp
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, r14
add rbp, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [r14 + 0x80], 0
mov rdi, rbx
je 0x180024241
mov rcx, r14
call fcn.180014740
cmp rbx, 0xfff
jbe 0x180024221
mov r9, qword [r14 + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add rbp, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x18002425a
cmp rbx, rax
ja 0x1800241f0
test rdi, rdi
je 0x180024241
mov r9, qword [r14 + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x28]
mov rax, rsi
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rsi, rbx
jmp 0x180024244