joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14029b790
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1402d7c69], 0
mov r12, rcx
mov rdi, rdx
je 0x14029b818
lea rdx, [0x1402bb60a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14029b930
mov rsi, qword [0x1402d7b38]
jmp 0x14029b7d5
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x14029b7d0
movzx r8d, word [rdx + 4]
lea r9, [rdx + 6]
mov rcx, r12
mov rdx, r9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140289430
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1402d7b38], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x1402d7b38], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x1402d7b38], rcx
test eax, eax
je 0x14029b918
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop word [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x14029b880
not eax
cmp r9d, eax
jne 0x14029b9c9
mov byte [0x1402d7c69], 1
jmp 0x14029b7a9
cmp byte [0x1402d7c68], 0
jne 0x14029b7c0
mov rbx, qword [sym.imp.python38.dll_PyDict_New]
lea rsi, [0x1402d7328]
call rbx
mov qword [0x1402d8240], rax
call rbx
mov qword [0x1402d8238], rax
call rbx
mov qword [0x1402d8230], rax
call rbx
mov qword [0x1402d8228], rax
call rbx
mov qword [0x1402d8220], rax
call rbx
mov qword [0x1402d8218], rax
call rbx
mov qword [0x1402d8210], rax
call rbx
mov rbp, qword [sym.imp.python38.dll_PyLong_FromLong]
mov rbx, 0xfffffffffffffffb
mov qword [0x1402d8208], rax
nop dword [rax]
mov ecx, ebx
call rbp
mov qword [rsi + rbx*8], rax
add rbx, 1
cmp rbx, 0x101
jne 0x14029b9a8
mov byte [0x1402d7c68], 1
jmp 0x14029b7c0
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax + rax]
Function at 0x1402a3230
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1402aae40
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1402aae40
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1402a3ee2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1402d8688]
test eax, eax
je 0x1402a3f7a
lea rax, [0x1402d8660]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1402d8690]
mov qword [rbp - 8], rax
jmp 0x1402a3f5e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1402a3f52
cmp qword [rbp - 0x10], 0
je 0x1402a3f52
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1402a3f18
lea rax, [0x1402d8660]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1402a3f7b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1402a4080
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1402a40a8
mov eax, 0
jmp 0x1402a40f6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1402a40d1
mov eax, 0
jmp 0x1402a40f6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1402a40f1
mov eax, 0
jmp 0x1402a40f6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1402a40fc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1402a417a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1402a4171
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1402a4171
mov rax, qword [rbp - 8]
jmp 0x1402a418f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1402a4144
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003ad0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400d8900]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor eax, eax
mov dword [rsp + 0x20], eax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], al
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x30], 0x80
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov rcx, qword [rdi + 0x18]
test eax, eax
je 0x140003b8e
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140003b50
cmp rbx, rcx
ja 0x140003b84
mov rsi, rdi
cmp rcx, 0x10
jb 0x140003b6a
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rbx
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140077690
mov byte [rsi + rbx], 0
jmp 0x140003bd7
lea r9, [rsp + 0x40]
mov rdx, rbx
jmp 0x140003bcf
cmp rcx, 5
jb 0x140003bc3
mov rbx, rdi
cmp rcx, 0x10
jb 0x140003ba0
mov rbx, qword [rdi]
mov qword [rdi + 0x10], 5
mov r8d, 5
lea rdx, str.error
mov rcx, rbx
call fcn.140077690
mov byte [rbx + 5], 0
jmp 0x140003bd7
lea r9, str.error
mov edx, 5
mov rcx, rdi
call fcn.140009030
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140075420
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140010710
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [rcx + 0x28]
nop
cmp rax, qword [rcx + 0x10]
jb 0x14001073f
xor al, al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, reloc.WS2_32.dll_recv
call fcn.140075440
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14001079b
mov ecx, 8
call fcn.140075440
test rax, rax
je 0x140010768
mov qword [rax], rdi
mov qword [rsp + 0x48], rax
lea rsi, [rbx + 8]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14000fb10]
xor edx, edx
xor ecx, ecx
call fcn.14007e880
mov qword [rbx], rax
test rax, rax
je 0x1400107ba
jmp 0x14001079d
xor ebx, ebx
mov rdx, rbx
mov rcx, rdi
call fcn.140010570
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov dword [rsi], 0
mov ecx, 6
call fcn.140073108
int3
Function at 0x140010960
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
xor r15d, r15d
mov eax, dword [rcx + 0x20]
nop
test eax, eax
je 0x140010993
lea eax, [r15 - 1]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov eax, 1
xchg dword [rcx + 0x20], eax
cmp rdx, qword [rcx + 8]
cmovb rdx, qword [rcx + 8]
mov rbp, qword [rcx + 0x10]
cmp rdx, rbp
cmovbe rbp, rdx
mov rsi, r15
test rbp, rbp
je 0x140010a3f
nop dword [rax + rax]
mov rax, qword [rdi + 0x28]
nop
cmp rax, qword [rdi + 0x10]
jae 0x140010a37
mov ecx, reloc.WS2_32.dll_recv
call fcn.140075440
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140010a29
mov ecx, 8
call fcn.140075440
test rax, rax
je 0x1400109f6
mov qword [rax], rdi
jmp 0x1400109f9
mov rax, r15
mov qword [rsp + 0x70], rax
lea r14, [rbx + 8]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x14000fb10]
xor edx, edx
xor ecx, ecx
call fcn.14007e880
mov qword [rbx], rax
test rax, rax
je 0x140010a52
jmp 0x140010a2c
mov rbx, r15
mov rdx, rbx
mov rcx, rdi
call fcn.140010570
inc rsi
cmp rsi, rbp
jb 0x1400109c0
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov dword [r14], r15d
mov ecx, 6
call fcn.140073108
int3
Function at 0x14001b630
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.1400933c8
cdqe
add rsp, 0x28
ret

Function at 0x14001b930
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x14001b9fb
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.14001f550
cmp eax, 4
jne 0x14001b9ac
cmp byte [0x1400db6f4], r14b
jne 0x14001b9b8
lea r9d, [rax - 2]
mov dword [rsp + 0x50], r14d
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov edx, eax
test eax, eax
jne 0x14001b9fd
mov eax, dword [rsp + 0x50]
jmp 0x14001b9d7
imul eax, dword [0x1400db6f0], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1400db6f0], eax
rol eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x14001b9f2
sub rsi, rdi
nop
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x14001b9e0
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x14001b960
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14001ba10
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r11, rsp
push rsi
push r12
push r14
push r15
sub rsp, 0xd8
mov rax, qword [0x1400d8900]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, r8
lea r15, [rsp + 0x30]
and rax, 0xfffffffffffffffe
mov r14, r8
mov rsi, rdx
mov r12, rcx
cmp rax, 0x100
jae 0x14001bbbc
test r14b, 1
je 0x14001bbbc
mov qword [r11 - 0x28], rbp
dec r14
mov qword [r11 - 0x30], rdi
mov rbp, r14
shr rbp, 1
lea rdi, [rsp + 0x30]
mov qword [r11 + 0x18], rbx
mov ecx, 0x2b
mov qword [r11 - 0x38], r13
je 0x14001bb3b
xor r13d, r13d
nop word [rax + rax]
mov ebx, 4
lea rdx, [rsp + 0x20]
cmp rbp, rbx
mov r8d, 4
mov rcx, r12
cmovb rbx, rbp
call fcn.14001f550
cmp eax, 4
jne 0x14001badc
cmp byte [0x1400db6f4], r13b
jne 0x14001baec
lea r9d, [rax - 2]
mov dword [rsp + 0x20], r13d
mov r8d, eax
lea rdx, [rsp + 0x20]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x14001bb7d
mov eax, dword [rsp + 0x20]
jmp 0x14001bb0b
imul eax, dword [0x1400db6f0], 0x41c64e6d
mov ecx, r13d
add eax, 0x3039
mov dword [0x1400db6f0], eax
rol eax, 0x10
mov dword [rsp + 0x20], eax
test rbx, rbx
je 0x14001bb32
sub rbp, rbx
nop dword [rax]
nop word [rax + rax]
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x14001bb20
mov dword [rsp + 0x20], eax
test rbp, rbp
jne 0x14001ba90
mov eax, ecx
test ecx, ecx
jne 0x14001bb7d
test r14, r14
je 0x14001bb78
lea rdx, [0x1400a9a00]
nop dword [rax]
movzx ecx, byte [r15]
lea r15, [r15 + 1]
mov eax, ecx
and ecx, 0xf
shr rax, 4
movzx eax, byte [rax + rdx]
mov byte [rsi], al
movzx eax, byte [rcx + rdx]
mov byte [rsi + 1], al
add rsi, 2
sub r14, 2
jne 0x14001bb50
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x110]
mov r13, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xd0]
mov rdi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140075420
add rsp, 0xd8
pop r15
pop r14
pop r12
pop rsi
ret
mov eax, 0x2b
jmp 0x14001bb9d
Function at 0x140032940
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1400d8900]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x1400329a6
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140032989
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x140032983
shr ax, 8
cmp al, 2
je 0x1400329a6
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140075420
add rsp, 0x1e8
ret
call fcn.140060570
test eax, eax
jne 0x140032bc0
mov qword [rsp + 0x200], rsi
lea rcx, str.kernel32
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x1400329e6
mov qword [0x1400db7e8], rsi
jmp 0x140032b7d
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x1400ab5c8]
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x1400ab5d8]
call fcn.1400892c8
test rax, rax
je 0x140032a4a
mov rcx, rbx
test rbp, rbp
je 0x140032a3c
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x140032b3c
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x140032b3c
test rbp, rbp
je 0x140032a79
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140032a79
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x140032b3c
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r14d, eax
test eax, eax
je 0x140032b34
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [fcn.1400811bc]
mov rdi, rax
test rax, rax
je 0x140032b2b
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140032b2b
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop dword [rax]
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140032ad0
mov dword [rdi + rax*2], 0x5c
cmp word [rdi + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x140032ae2
lea rdx, [rcx + rcx]
sub rdx, rbx
add rdx, rdi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rdx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140032b00
mov rcx, rdi
test rbp, rbp
je 0x140032b22
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x140032b28
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.14007e49c]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1400db7e8], rsi
test rsi, rsi
je 0x140032b7d
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400db7e0]
test rax, rax
cmovne rcx, rax
mov qword [0x1400db7e0], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.140060120
test al, al
lea rcx, [0x1400dd398]
setne byte [0x1400dd390]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140075420
add rsp, 0x1e8
ret
Function at 0x140035910
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [case.0x140023a80.0]
mov rdi, rax
test rax, rax
je 0x14003598d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x1400359b8
cmp ebx, esi
je 0x1400359b8
cmp ebx, 0x8000
ja 0x1400359b8
cmp ebx, esi
jb 0x1400359b3
mov edx, ebx
mov rcx, rdi
call qword [case.0x140023a80.0]
mov rdi, rax
test rax, rax
jne 0x140035950
mov rcx, rbp
call qword [fcn.14007e49c]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x140035998
mov rcx, rdi
jmp 0x140035990

Function at 0x140038360
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x140038375
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.140037de0

Function at 0x140039080
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.14002d400
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.14001b0f0
mov rcx, rdi
mov rsi, rax
call fcn.14001b0f0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140039130
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.14002d400
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.14002d490
cmp rax, 0x3e8
ja 0x140039161
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1400390e0
test rsi, rsi
je 0x14003913d
mov rcx, rsi
call fcn.14007e49c
test rbx, rbx
je 0x14003914a
mov rcx, rbx
call fcn.14007e49c
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x14003916e
mov rcx, rsi
call fcn.14007e49c
test rbx, rbx
je 0x14003917b
mov rcx, rbx
call fcn.14007e49c
mov eax, 1
jmp 0x14003914c
Function at 0x140043510
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x18]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1a8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14004356f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.140030730
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.1400430b0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
cmp edx, 0x1f
jne 0x1400438bd
push rsi
push rdi
push r15
sub rsp, 0x20
mov rsi, qword [rcx + 0x1a0]
mov rdi, rcx
mov r15, qword [rcx + 0x18]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbp
lea rbx, [rsi + 0x1eb8]
mov qword [rsp + 0x58], r14
lea r14, [rsi + 0x1cb8]
mov qword [rbx], r14
mov rax, r14
cmp r14, rbx
jae 0x140043762
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14004377b
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14004377b
mov byte [rax], 0x1f
inc qword [rbx]
movzx ecx, word [rsi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rsi + 0x1caa]
movzx ebp, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1400437b1
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x50]
cmp r9, rbx
jae 0x140043807
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140043807
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140043807
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140043807
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140043807
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rsi + 0x1ec0], r9
lea r8, [rsi + 0x1cba]
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rdi
call fcn.1400431e0
mov rcx, qword [r15 + 0x1a8]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140043869
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.140030730
lea rdx, [rsi + 0x1cbb]
mov r8d, 4
mov rcx, rdi
call fcn.1400435a0
mov rcx, qword [r15 + 0x1a8]
lea rdx, [rsi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1400438b5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.140030730
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret