joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140072c62
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x14007af90
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x478
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xb6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x498]
mov rax, qword [0x140197018]
xor rax, rbp
mov qword [rbp + 0x448], rax
lea rcx, [0x1401a9049]
call fcn.140075287
cmp qword [rbp + 0x478], 0
je 0x14007b00a
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rbp + 0x478]
movzx eax, word [rcx + rax]
test eax, eax
jne 0x14007b011
xor al, al
jmp 0x14007b206
mov r8d, 4
lea rdx, [0x140163558]
mov rcx, qword [rbp + 0x478]
call fcn.14007469d
test eax, eax
jne 0x14007b040
mov rax, qword [rbp + 0x478]
add rax, 8
mov qword [rbp + 0x478], rax
mov r8d, 2
lea rdx, [0x140163564]
mov rcx, qword [rbp + 0x478]
call fcn.14007469d
test eax, eax
jne 0x14007b06f
mov rax, qword [rbp + 0x478]
add rax, 4
mov qword [rbp + 0x478], rax
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
mov r8d, 0x104
mov rdx, qword [rbp + 0x478]
lea rcx, [rbp + 0x10]
call fcn.140075561
lea rax, [rbp + 0x10]
mov qword [rbp + 0x238], rax
mov dx, 0x2e
mov rcx, qword [rbp + 0x238]
call fcn.140072014
mov qword [rbp + 0x258], rax
cmp qword [rbp + 0x258], 0
je 0x14007b0df
xor eax, eax
mov rcx, qword [rbp + 0x258]
mov word [rcx], ax
mov rax, qword [rbp + 0x258]
add rax, 2
mov qword [rbp + 0x258], rax
mov qword [rbp + 0x278], 0
mov byte [rbp + 0x294], 0
cmp qword [rbp + 0x258], 0
je 0x14007b129
lea rdx, str.HTML
mov rcx, qword [rbp + 0x258]
call fcn.140075156
test eax, eax
je 0x14007b129
lea rdx, [0x140163580]
mov rcx, qword [rbp + 0x258]
call fcn.140075156
test eax, eax
jne 0x14007b153
mov r8d, 0x17
mov rdx, qword [rbp + 0x238]
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 0x278], rax
mov byte [rbp + 0x294], 1
jmp 0x14007b175
mov r8, qword [rbp + 0x258]
mov rdx, qword [rbp + 0x238]
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 0x278], rax
cmp qword [rbp + 0x278], 0
jne 0x14007b186
xor al, al
jmp 0x14007b206
mov rdx, qword [rbp + 0x278]
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x2b8], rax
cmp qword [rbp + 0x2b8], 0
jne 0x14007b1af
xor al, al
jmp 0x14007b206
mov rcx, qword [rbp + 0x2b8]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rcx, qword [rbp + 0x480]
mov qword [rcx], rax
mov rax, qword [rbp + 0x480]
cmp qword [rax], 0
jne 0x14007b1d7
xor al, al
jmp 0x14007b206
mov rdx, qword [rbp + 0x278]
mov rcx, qword [rbp + 0x470]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [rbp + 0x488]
mov dword [rcx], eax
mov rax, qword [rbp + 0x488]
cmp dword [rax], 0
jne 0x14007b204
xor al, al
jmp 0x14007b206
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140163060]
call fcn.140074990
mov rax, rdi
mov rcx, qword [rbp + 0x448]
xor rcx, rbp
call fcn.14007386a
lea rsp, [rbp + 0x458]
pop rdi
pop rbp
ret
Function at 0x1400736a3
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401102b0
mov rax, rcx
neg rcx
test rax, 7
je 0x1401102cd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140110328
test al, 7
jne 0x1401102c0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1401102e1
mov rdx, qword [rax - 8]
test dl, dl
je 0x140110352
test dh, dh
je 0x14011034c
shr rdx, 0x10
test dl, dl
je 0x140110346
test dh, dh
je 0x140110340
shr rdx, 0x10
test dl, dl
je 0x14011033a
test dh, dh
je 0x140110334
shr edx, 0x10
test dl, dl
je 0x14011032e
test dh, dh
jne 0x1401102e1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400736d5
Capabilities:
Query environment variable

Disassembly:
jmp 0x140127860
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1401273e0
lea rcx, [rsp + 0x20]
call fcn.140127430
movzx eax, al
test eax, eax
jne 0x1401278a5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140127410
mov rax, qword [rsp + 0x40]
jmp 0x14012799f
lea rcx, [rsp + 0x20]
call fcn.140127530
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.1401274d0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400738ec
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.14007331a
lea rcx, [rsp + 0x28]
call fcn.140073bb2
movzx eax, al
test eax, eax
jne 0x14012793f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.140074823
lea rcx, [rsp + 0x20]
call fcn.140127410
mov rax, qword [rsp + 0x50]
jmp 0x14012799f
lea rcx, [rsp + 0x20]
call fcn.140127530
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400751fb
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.140073874
lea rcx, [rsp + 0x28]
call fcn.140075769
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.140074823
lea rcx, [rsp + 0x20]
call fcn.140127410
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1400739e1
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400a0130
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14009fab0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a016f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401ab020]
jmp 0x1400a0179
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140073b3a
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1400a0060
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.14009fa30
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a00a1
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401ab020]
jmp 0x1400a00a7
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x140073bbc
Capabilities:
Get geographical location

Disassembly:
jmp 0x140133d00
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140132c30
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140133d67
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1401ab030]
jmp 0x140133d89
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.14007340f
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x140073bcb
Capabilities:
Terminate process

Disassembly:
jmp 0x14007e8c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140073dbf
Capabilities:
Print debug messages

Disassembly:
jmp 0x14013b110
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x140197018]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14013b136
jmp 0x14013b1b3
mov rcx, qword [rbp + 0x30]
call fcn.1400736a3
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14013b14f
jmp 0x14013b1b3
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14013b16c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14007291a
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140072cf8
test eax, eax
jne 0x14013b1b3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.14007386a
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x14007427e
Capabilities:
Parse pe header

Disassembly:
jmp 0x14007d870
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14007d890
xor al, al
jmp 0x14007d911
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14007d8a3
xor al, al
jmp 0x14007d911
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14007d8cd
xor al, al
jmp 0x14007d911
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14007d8e1
xor al, al
jmp 0x14007d911
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14007d8f3
xor al, al
jmp 0x14007d911
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14007d90f
xor al, al
jmp 0x14007d911
mov al, 1
add rsp, 0x38
ret
Function at 0x14007476f
Capabilities:
Terminate process

Disassembly:
jmp 0x140110bb0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x140110bde
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.140074edb
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140074f3a
Capabilities:
Print debug messages

Disassembly:
jmp 0x14011c1c0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140074fe9
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400a01a0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14009faf0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a01e9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401ab020]
jmp 0x1400a01f8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret
Function at 0x14013ceb0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14007291a
sub rsp, rax
mov rax, qword [0x140197018]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140199eb0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14013d0a2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x14013cff6
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x14013cff6
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14013cfdb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x14013cf78
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14013d062
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14013d0c1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14013d09d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14013d0c1
jmp 0x14013cf4e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14007386a
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x14013d170
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14007291a
sub rsp, rax
mov rax, qword [0x140197018]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140199eb0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14013d37d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x14013d2c9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14013d2c9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x14013d2a9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x14013d238
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14013d33d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14013d39c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x14013d378
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14013d39c
jmp 0x14013d20e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14007386a
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1001304e8
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100178108], rdi
je 0x100130548
cmp rax, rdi
jne 0x10013053b
mov r12d, 1
jmp 0x100130548
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100130521
mov eax, dword [0x100178100]
cmp eax, 1
jne 0x10013055d
lea ecx, [rax + 0x1e]
call fcn.100217000
jmp 0x1001305c4
mov eax, dword [0x100178100]
cmp eax, ebx
jne 0x1001305ba
mov dword [0x100178100], 1
lea r13, [0x100001c08]
lea rdi, [0x100001bf0]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x1001305ac
cmp eax, ebx
jne 0x1001305ac
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x1001305a1
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10013058a
cmp eax, ebx
je 0x1001305c4
mov eax, 0xff
jmp 0x10013070c
mov dword [0x100177464], 1
mov eax, dword [0x100178100]
cmp eax, 1
jne 0x1001305ec
lea rdx, [0x100001be8]
lea rcx, [0x100001b60]
call sub.msvcrt.dll__initterm
mov dword [0x100178100], 2
cmp r12d, ebx
jne 0x1001305fb
mov rax, rbx
xchg qword [0x100178108], rax
cmp qword [0x100178120], rbx
je 0x100130623
lea rcx, [0x100178120]
call fcn.100130cac
cmp eax, ebx
je 0x100130623
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100178120]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x100130639
mov eax, 0xff
jmp 0x10013070c
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x1001306be
cmp word [rcx], bx
je 0x100130654
cmp edx, ebx
jne 0x1001306be
cmp word [rcx], bx
je 0x10013066a
cmp word [rcx], 0x20
ja 0x10013066a
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x100130654
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.10005060c
mov dword [0x100177460], eax
cmp dword [0x100177444], ebx
jne 0x1001306a8
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100177464], ebx
jne 0x1001306bc
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100177460]
jmp 0x10013070c
cmp word [rcx], 0x22
jne 0x1001306d1
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x100130645
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.100130db4
add rsp, 0x28
jmp 0x1001304e8
Function at 0x140002700
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x140002768
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x140002738
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140019400
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x14000278c
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rsp + 0x250], rax
and dword [rsp + 0x30], 0
mov rbx, rcx
and dword [rsp + 0x34], 0
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rbx + 1]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rdi, eax
test eax, eax
jns 0x1400027f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 4
je 0x1400027c5
mov rax, rdi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140019400
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x140002a54
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x460
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov r14d, 2
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp word [rcx], r14w
je 0x140002a91
cmp word [rcx], 0x17
jne 0x140002aa0
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rsi], eax
mov esi, 0x401
lea rcx, [rsp + 0x40]
mov r8d, esi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x30], r14d
lea r8, [rsp + 0x40]
xor r14d, r14d
mov r9d, esi
mov dword [rsp + 0x28], r14d
mov edx, ebp
mov rcx, rbx
mov qword [rsp + 0x20], r14
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x140002b2c
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r14b
jne 0x140002ae6
cmp rbx, qword [rdi + 0x18]
ja 0x140002b1c
cmp qword [rdi + 0x18], 0x10
mov rsi, rdi
jb 0x140002b02
mov rsi, qword [rdi]
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], r14b
jmp 0x140002b2c
lea r9, [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
call fcn.140011980
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140019400
add rsp, 0x460
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call qword [rax + ioctlsocket]
test al, al
je 0x140006b2e
cmp rbx, 0x7fffffff
ja 0x140006b2e
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_recv]
cdqe
jmp 0x140006b32
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
je 0x140006b86
cmp rbx, 0x7fffffff
ja 0x140006b86
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
cdqe
jmp 0x140006b8a
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret