joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140174cbc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140174cec
xor eax, eax
jmp 0x140174daf
mov rbp, rbx
cmp word [rax], si
je 0x140174d11
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140174cf8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140174cf4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14016e764
movsxd r14, eax
test eax, eax
jne 0x140174d4f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140174ce5
mov rcx, r14
call fcn.14016a0b8
mov rdi, rax
test rax, rax
jne 0x140174d68
xor ecx, ecx
call fcn.140167bb4
jmp 0x140174d44
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14016e764
test eax, eax
jne 0x140174d99
mov rcx, rdi
call fcn.140167bb4
jmp 0x140174da3
xor ecx, ecx
call fcn.140167bb4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140174dcc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140174e53
mov rsi, rbx
cmp word [rax], bp
je 0x140174e12
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140174dfc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140174df8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14016a0b8
mov rdi, rax
test rax, rax
je 0x140174e40
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140116340
mov rbp, rdi
xor ecx, ecx
call fcn.140167bb4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140177f7c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140165e08
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14017801d
cmp ebx, dword [rsp + 0x30]
je 0x140178016
test esi, esi
je 0x140178016
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140177ff1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140177ffe
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140177fdb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140178002
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14017801f
mov eax, 1
jmp 0x14017801f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14017d148
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1401515c8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14017d1d2
cmp byte [rbp - 0x21], r15b
je 0x14017d1cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14017d208
call fcn.140168d84
test eax, eax
jne 0x14017d1f4
cmp byte [rbp - 0x21], r15b
je 0x14017d1ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14017d208
cmp byte [rbp - 0x21], r15b
je 0x14017d205
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140152574
test eax, eax
jne 0x14017d2a8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401515c8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14017d247
cmp byte [rbp - 0x21], r15b
je 0x14017d27c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14017d27c
call fcn.140168d84
test eax, eax
jne 0x14017d268
cmp byte [rbp - 0x21], r15b
je 0x14017d261
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14017d27c
cmp byte [rbp - 0x21], r15b
je 0x14017d279
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140152574
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14017d2a8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14017d2ab
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14017d2b9
mov rcx, rdi
call fcn.140167bb4
cmp byte [rbp + 0x3f], r15b
je 0x14017d2c8
mov rcx, qword [rbp + 0x27]
call fcn.140167bb4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140184240
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140184268
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140184268
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400023ec
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x48], rdx
mov rdi, rcx
movsxd rax, dword [rcx + 0x3c]
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov r15d, dword [r8 + 0x1c]
add r15, rcx
mov r14d, dword [r8 + 0x20]
add r14, rcx
mov r13d, dword [r8 + 0x18]
mov r12d, dword [r8 + 0x24]
add r12, rcx
xor esi, esi
test r13d, r13d
jle 0x1400024de
mov edx, dword [r14]
add rdx, rdi
and qword [rsp + 0x20], 0
and qword [rsp + 0x30], 0
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
lea rcx, [rsp + 0x20]
call fcn.140001fec
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
setae bl
mov rbp, qword [rsp + 0x20]
cmovae rcx, rbp
mov rdx, qword [rsp + 0x30]
call fcn.140002518
mov qword [rsp + 0x40], rax
test bl, bl
je 0x1400024c8
mov rdx, qword [rsp + 0x38]
inc rdx
mov rax, rbp
cmp rdx, 0x1000
jb 0x1400024bb
add rdx, 0x27
mov rbp, qword [rbp - 8]
sub rax, rbp
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000250f
mov rcx, rbp
call fcn.1400676a4
mov rax, qword [rsp + 0x40]
cmp rax, qword [rsp + 0x48]
je 0x1400024fe
inc esi
add r14, 4
cmp esi, r13d
jl 0x140002443
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
movsxd rax, esi
movzx ecx, word [r12 + rax*2]
mov eax, dword [r15 + rcx*4]
add rax, rdi
jmp 0x1400024e0
call fcn.140071f2c
int3

Function at 0x14000254c
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rsi, r8
lea rcx, [0x1400bc4a8]
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
movabs rdx, 0x553a42d461183489
call fcn.1400023ec
mov rdi, qword [rsp + 0x78]
mov r10, rax
mov qword [0x1400ca590], rax
mov rax, qword [rdi]
test rax, rax
jne 0x1400025d9
and qword [rsp + 0x30], 0
mov ecx, 0xffffffff
mov rax, qword [0x1400ca598]
xor r8d, r8d
mov r9, qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call rax
mov r10, qword [0x1400ca590]
mov qword [rdi], rax
mov qword [rsp + 0x28], 1
mov r9, rsi
and qword [rsp + 0x20], 0
mov r8, rbp
xor edx, edx
mov rcx, rax
call r10
mov rcx, qword [rdi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbp, qword [rsp + 0x58]
test ebx, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
sete al
add rsp, 0x40
pop rdi
ret
Function at 0x140005424
Capabilities:
Enumerate process modules

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x1400c7690]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov edx, ecx
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
or rcx, 0xffffffffffffffff
mov rbx, rax
cmp rax, rcx
je 0x1400054ac
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call fcn.14006b5b0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
jmp 0x1400054a5
lea rdx, [0x1400bc4f0]
lea rcx, [rsp + 0x50]
call fcn.14009774c
test eax, eax
je 0x1400054cd
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140005482
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400673f0
add rsp, 0x470
pop rbx
ret
mov rax, qword [rsp + 0x48]
jmp 0x1400054b4
Function at 0x140005a10
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2090]
mov eax, 0x2190
call fcn.140067d50
sub rsp, rax
mov rax, qword [0x1400c7690]
xor rax, rsp
mov qword [rbp + 0x2080], rax
mov rbx, rcx
mov qword [rsp + 0x70], rcx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
xor r15d, r15d
mov qword [rsp + 0x68], r15
mov r8d, edx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
test rax, rax
jne 0x140005a9e
lea rcx, str._agent__cant_open_spawn_process
call fcn.1400045dc
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
mov qword [rbx], rcx
mov qword [rbx + 8], rdx
mov qword [rbx + 0x10], r8
jmp 0x140005bf9
mov edi, 0x2000
mov r8d, edi
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.14006b5b0
mov dword [rsp + 0x20], 3
lea r9, [rsp + 0x70]
mov r8d, edi
lea rdx, [rbp - 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
test eax, eax
je 0x140005bdf
mov esi, r15d
lea rdi, [rbp - 0x80]
mov rdx, qword [rdi]
test rdx, rdx
je 0x140005bcd
mov r9d, 0x100
lea r8, [rbp + 0x1f80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
je 0x140005bcd
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], r15b
lea rdx, [rbp + 0x1f80]
lea rcx, [rsp + 0x30]
call fcn.140001fec
mov rax, qword [rdi]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x60]
cmp rdx, qword [rsp + 0x68]
je 0x140005b84
mov qword [rdx], r15
mov qword [rdx + 0x10], r15
mov qword [rdx + 0x18], r15
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x30], r15b
mov rax, qword [rsp + 0x50]
mov qword [rdx + 0x20], rax
add qword [rsp + 0x60], 0x28
jmp 0x140005b94
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.140006af0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140005bcd
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005bc8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005c3b
call fcn.1400676a4
inc esi
add rdi, 8
cmp esi, 0x400
jl 0x140005add
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
mov qword [rbx + 0x10], rdx
mov qword [rbx + 8], rcx
mov qword [rbx], rax
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], r15
lea rcx, [rsp + 0x58]
call fcn.140002f08
mov rax, rbx
mov rcx, qword [rbp + 0x2080]
xor rcx, rsp
call fcn.1400673f0
mov rbx, qword [rsp + 0x21d0]
add rsp, 0x2190
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140071f2c
nop
int3
Function at 0x14000f070
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.140081d64
cdqe
add rsp, 0x28
ret
Function at 0x1400212d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xaa7], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x140021399
cmp qword [rcx + 0x260], 0
je 0x14002134e
mov qword [rsp + 0x40], rbx
call fcn.14000f7d0
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.14000fb20
mov rcx, qword [rdi + 0x1d8]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x260]
movzx edx, bl
mov rcx, rdi
call fcn.14000fb20
mov rbx, qword [rsp + 0x40]
jmp 0x140021399
mov ecx, esi
test edx, edx
je 0x14002135e
sub ecx, 1
je 0x14002135e
cmp ecx, 1
jne 0x140021399
mov r9, qword [rdi + 0x1d0]
lea rax, [0x14009d158]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.1400768e0
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.1400768e0
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140023570
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1400c7690]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x1400235d6
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400235b9
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1400235b3
shr ax, 8
cmp al, 2
je 0x1400235d6
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400673f0
add rsp, 0x1e8
ret
call fcn.1400559b0
test eax, eax
jne 0x1400237f0
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 0x140023616
mov qword [0x1400c8a08], rsi
jmp 0x1400237ad
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x14009d3b8]
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, [0x14009d370]
mov rbp, rax
mov rcx, rbx
lea rdx, [0x14009d3c8]
call fcn.140078b78
test rax, rax
je 0x14002367a
mov rcx, rbx
test rbp, rbp
je 0x14002366c
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x14002376c
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x14002376c
test rbp, rbp
je 0x1400236a9
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400236a9
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x14002376c
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 0x140023764
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x14002375b
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14002375b
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop dword [rax]
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140023700
mov dword [rdi + rax*2], 0x5c
cmp word [rdi + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x140023712
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 0x140023730
mov rcx, rdi
test rbp, rbp
je 0x140023752
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x140023758
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.1400762c0]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1400c8a08], rsi
test rsi, rsi
je 0x1400237ad
lea rdx, [0x14009d390]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400c8a00]
test rax, rax
cmovne rcx, rax
mov qword [0x1400c8a00], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.140055560
test al, al
lea rcx, [0x1400ca638]
setne byte [0x1400ca630]
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.1400673f0
add rsp, 0x1e8
ret
Function at 0x14002b910
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x14002b925
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.14002b390
Function at 0x140035d00
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.140015480
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.140033c20
mov rcx, rdi
mov rsi, rax
call fcn.140033c20
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140035db0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140015480
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140015510
cmp rax, 0x3e8
ja 0x140035de1
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 0x140035d60
test rsi, rsi
je 0x140035dbd
mov rcx, rsi
call fcn.1400762c0
test rbx, rbx
je 0x140035dca
mov rcx, rbx
call fcn.1400762c0
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 0x140035dee
mov rcx, rsi
call fcn.1400762c0
test rbx, rbx
je 0x140035dfb
mov rcx, rbx
call fcn.1400762c0
mov eax, 1
jmp 0x140035dcc
Function at 0x140036280
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor ebp, ebp
mov qword [r9], rbp
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x14003641e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x1400363fe
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x1400362ee
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400362e0
inc rbx
jmp 0x1400362f0
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x1400362fe
lea r14d, [rax + 0xe]
jmp 0x14003630b
cmp eax, 0x17
jne 0x1400363a4
lea r14d, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x1400363a4
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1400363a4
cmp rax, r14
jb 0x1400363a4
lea rcx, [rbx + 0x30]
add rcx, r14
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x1400363b3
mov ecx, dword [rdi]
mov r8, r14
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rsi + 0x30]
mov dword [rax + 0x10], r14d
xor eax, eax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x20], rcx
mov rdx, qword [rdi + 0x20]
call fcn.14006af00
test rbx, rbx
je 0x140036391
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, r14
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call fcn.14006af00
test rbp, rbp
cmove rbp, rsi
test r15, r15
je 0x1400363a1
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1400362d0
jmp 0x1400363b9
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x58]
test rcx, rcx
je 0x1400363d3
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x1400363f9
test rbp, rbp
je 0x1400363f5
nop dword [rax]
mov rbx, qword [rbp + 0x28]
mov rcx, rbp
call qword [fcn.1400762c0]
mov rbp, rbx
test rbx, rbx
jne 0x1400363e0
xor ebp, ebp
jmp 0x14003640d
test rbp, rbp
jne 0x14003640d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rbp
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret
Function at 0x140036920
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 0x1400369eb
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.14001b5e0
cmp eax, 4
jne 0x14003699c
cmp byte [0x1400c8a14], r14b
jne 0x1400369a8
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 0x1400369ed
mov eax, dword [rsp + 0x50]
jmp 0x1400369c7
imul eax, dword [0x1400c8a10], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1400c8a10], eax
rol eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x1400369e2
sub rsi, rdi
nop
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x1400369d0
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x140036950
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 0x140036a00
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r11, rsp
push rsi
push r12
push r14
push r15
sub rsp, 0xd8
mov rax, qword [0x1400c7690]
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 0x140036bac
test r14b, 1
je 0x140036bac
mov qword [r11 + 0x18], rbx
dec r14
mov qword [r11 - 0x28], rbp
mov ecx, 0x2b
mov qword [r11 - 0x30], rdi
mov rbp, r14
shr rbp, 1
lea rdi, [rsp + 0x30]
mov qword [r11 - 0x38], r13
je 0x140036b2b
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.14001b5e0
cmp eax, 4
jne 0x140036acc
cmp byte [0x1400c8a14], r13b
jne 0x140036adc
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 0x140036b6d
mov eax, dword [rsp + 0x20]
jmp 0x140036afb
imul eax, dword [0x1400c8a10], 0x41c64e6d
mov ecx, r13d
add eax, 0x3039
mov dword [0x1400c8a10], eax
rol eax, 0x10
mov dword [rsp + 0x20], eax
test rbx, rbx
je 0x140036b22
sub rbp, rbx
nop dword [rax]
nop word [rax + rax]
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x140036b10
mov dword [rsp + 0x20], eax
test rbp, rbp
jne 0x140036a80
mov eax, ecx
test ecx, ecx
jne 0x140036b6d
test r14, r14
je 0x140036b68
lea rdx, [0x1400a19b0]
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 0x140036b40
mov byte [rsi], 0
xor eax, eax
mov rdi, qword [rsp + 0xc8]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0x110]
mov r13, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1400673f0
add rsp, 0xd8
pop r15
pop r14
pop r12
pop rsi
ret
mov eax, 0x2b
jmp 0x140036b8d