joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140151e24
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 0x140151e54
xor eax, eax
jmp 0x140151f17
mov rbp, rbx
cmp word [rax], si
je 0x140151e79
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140151e60
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140151e5c
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.14014dcd0
movsxd r14, eax
test eax, eax
jne 0x140151eb7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140151e4d
mov rcx, r14
call fcn.140149878
mov rdi, rax
test rax, rax
jne 0x140151ed0
xor ecx, ecx
call fcn.140149164
jmp 0x140151eac
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.14014dcd0
test eax, eax
jne 0x140151f01
mov rcx, rdi
call fcn.140149164
jmp 0x140151f0b
xor ecx, ecx
call fcn.140149164
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 0x140151f34
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 0x140151fbb
mov rsi, rbx
cmp word [rax], bp
je 0x140151f7a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140151f64
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140151f60
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140149878
mov rdi, rax
test rax, rax
je 0x140151fa8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14015fa10
mov rbp, rdi
xor ecx, ecx
call fcn.140149164
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 0x14015502c
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.140149518
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 0x1401550cd
cmp ebx, dword [rsp + 0x30]
je 0x1401550c6
test esi, esi
je 0x1401550c6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401550a1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401550ae
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14015508b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401550b2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401550cf
mov eax, 1
jmp 0x1401550cf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140157a5c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1401db200]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140157aa6
call fcn.140139b50
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.140139b70
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14012fd40
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140128970
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140157ab1
lea eax, [rbx + 1]
jmp 0x140157a93
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140157a91
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140157a93
Function at 0x140157d54
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.140132620
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140157dde
cmp byte [rbp - 0x21], r15b
je 0x140157dd9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140157e14
call fcn.14014bb0c
test eax, eax
jne 0x140157e00
cmp byte [rbp - 0x21], r15b
je 0x140157df8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140157e14
cmp byte [rbp - 0x21], r15b
je 0x140157e11
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.140140848
test eax, eax
jne 0x140157eb4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140132620
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140157e53
cmp byte [rbp - 0x21], r15b
je 0x140157e88
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140157e88
call fcn.14014bb0c
test eax, eax
jne 0x140157e74
cmp byte [rbp - 0x21], r15b
je 0x140157e6d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140157e88
cmp byte [rbp - 0x21], r15b
je 0x140157e85
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.140140848
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140157eb4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140157eb7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140157ec5
mov rcx, rdi
call fcn.140149164
cmp byte [rbp + 0x3f], r15b
je 0x140157ed4
mov rcx, qword [rbp + 0x27]
call fcn.140149164
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 0x140159290
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401592b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401592b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000d9a0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000da82
call fcn.140027020
test al, al
jne 0x14000da82
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x14000d9d2
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.140030ae0
test rax, rax
je 0x14000da17
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.140030ae0
mov rsi, rax
test rax, rax
je 0x14000da17
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x14000da4b
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.1400239a0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x14000da30
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1400157f0
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [0x1400c57c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rdx]
mov r14d, r8d
mov rbx, rcx
mov r9d, dword [rax + 8]
mov rax, qword [rdx + 0x18]
and r9d, 0xa
cmp r9b, 0xa
jne 0x14001583b
mov rdi, qword [rax + 0xd8]
mov rsi, qword [rax + 0xe0]
mov ebp, dword [rax + 0xe8]
jmp 0x140015849
mov rdi, qword [rax + 0x50]
mov rsi, qword [rax + 0x58]
mov ebp, dword [rax + 0x764]
mov qword [rsp + 0x80], r15
test rdi, rdi
je 0x140015a1b
mov r9, qword [rcx]
test r9, r9
je 0x14001588b
mov r8, r9
mov rax, rdi
sub r8, rdi
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140015883
inc rax
test ecx, ecx
jne 0x140015870
test edx, edx
je 0x140015a1b
mov rcx, qword [rbx + 8]
cmp rcx, r9
je 0x14001589a
call qword [fcn.14006f1b8]
mov rcx, qword [rbx + 0x10]
call qword [fcn.14006f1b8]
mov rcx, qword [rbx]
call qword [fcn.14006f1b8]
xor r15d, r15d
mov rcx, rdi
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx], r15
mov dword [rbx + 0x18], r15d
call qword [str.8_b_]
mov qword [rbx], rax
mov rcx, rax
test rax, rax
jne 0x14001590e
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400158e2
call qword [fcn.14006f1b8]
mov rcx, qword [rbx + 0x10]
call qword [fcn.14006f1b8]
mov rcx, qword [rbx]
call qword [fcn.14006f1b8]
mov eax, 0x1b
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx], r15
mov dword [rbx + 0x18], r15d
jmp 0x140015a24
test rsi, rsi
je 0x140015952
mov r8, rsi
sub r8, rdi
nop dword [rax]
movzx edx, byte [rdi]
movzx eax, byte [rdi + r8]
sub edx, eax
jne 0x140015933
inc rdi
test eax, eax
jne 0x140015920
test edx, edx
je 0x140015952
mov rcx, rsi
call qword [str.8_b_]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140015956
cmp qword [rbx], r15
je 0x1400158e2
xor ecx, ecx
jmp 0x1400158dc
mov qword [rbx + 8], rcx
mov rdi, qword [rbx]
test rdi, rdi
je 0x1400159a6
cmp byte [rdi], r15b
je 0x1400159a6
lea r8, [rsp + 0x20]
mov rdx, rdi
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x140015986
mov dword [rbx + 0x18], 1
jmp 0x140015a1b
lea r8, [rsp + 0x20]
mov rdx, rdi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x1400159a6
mov dword [rbx + 0x18], 2
jmp 0x140015a1b
mov rax, qword [rbx]
mov dword [rbx + 0x18], r15d
cmp byte [rax], r15b
je 0x140015a1b
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rax + rdi], r15b
jne 0x1400159c0
test rdi, rdi
je 0x1400159d8
cmp byte [rax + rdi - 1], 0x2e
jne 0x1400159d8
dec rdi
cmp rdi, 0xffff
jae 0x140015a1b
lea rdx, [rdi + 1]
mov ecx, 1
call qword [case.0x14000f285.3]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140015a05
mov rcx, qword [rbx + 8]
cmp rcx, qword [rbx]
jmp 0x1400158da
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, rax
call fcn.1400239f0
mov rax, qword [rbx + 0x10]
mov byte [rdi + rax], r15b
mov dword [rbx + 0x1c], ebp
xor eax, eax
mov dword [rbx + 0x20], r14d
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140069340
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001fed0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x14001fefa
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x14009f168]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14009f178]
mov rcx, rbx
mov r14, rax
call fcn.1400773f4
test rax, rax
je 0x14001ff5b
mov rcx, rbx
test r14, r14
je 0x14001ff48
xor edx, edx
mov r8d, 8
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test r14, r14
je 0x14001ff92
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001ff92
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x14002005c
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax + rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x14001ffc0
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x14002004e
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14002004e
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x14001fff3
mov dword [rsi + rax*2], 0x5c
inc rdi
cmp word [rsi + rdi*2], bp
jne 0x140020005
add rdi, rdi
sub rdi, rbx
add rdi, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rbx + rdi], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140020020
mov rcx, rsi
test r14, r14
je 0x140020045
xor edx, edx
mov r8d, 8
call r14
jmp 0x14002004b
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.14006f1b8]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x140027e30
Capabilities:
Convert ip address from string

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

Function at 0x140028130
Capabilities:
Convert ip address from string

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400c57c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor edi, edi
mov r14, rdx
mov rbp, rcx
cmp byte [rcx + 0xa4e], dil
je 0x140028352
cmp byte [rdx + 0x18], dil
mov qword [rsp + 0xc8], rsi
lea rsi, [rdx + 0x18]
je 0x14002834a
lea r8, [rsp + 0x20]
mov rdx, rsi
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x14002834a
lea r8, [rsp + 0x70]
mov rdx, rsi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x14002834a
cmp byte [rsi], dil
lea rdx, str.Host__s:_d_was_resolved.
mov r9d, dword [r14 + 0x14]
mov rcx, rbp
mov qword [rsp + 0x100], rbx
mov rbx, qword [r14]
mov qword [rsp + 0xc0], r15
lea r15, str._none_
mov r8, r15
cmovne r8, rsi
call fcn.14001bf20
mov edx, 0x400
lea rcx, [rsp + 0x30]
call fcn.14000dfe0
mov edx, 0x400
lea rcx, [rsp + 0x50]
call fcn.14000dfe0
test rbx, rbx
je 0x1400282b7
mov r14d, 0x20
mov ecx, dword [rbx + 4]
cmp ecx, 0x17
je 0x140028224
cmp ecx, 2
jne 0x1400282aa
xor eax, eax
mov byte [rsp + 0x80], 0
cmp ecx, 2
lea rsi, [rsp + 0x30]
cmovne rax, r14
add rsi, rax
cmp ecx, 2
je 0x140028251
cmp ecx, 0x17
jne 0x14002826c
mov rdx, qword [rbx + 0x20]
add rdx, 8
jmp 0x140028259
mov rdx, qword [rbx + 0x20]
add rdx, 4
mov r9d, 0x2e
lea r8, [rsp + 0x80]
call sub.WS2_32.dll_inet_ntop
mov rcx, rsi
call fcn.14000e000
test rax, rax
je 0x140028290
mov r8d, 2
lea rdx, [0x14009e6e4]
mov rcx, rsi
call fcn.14000dfa0
mov edi, eax
test edi, edi
jne 0x1400282d2
lea rdx, [rsp + 0x80]
mov rcx, rsi
call fcn.14000df40
mov edi, eax
test eax, eax
jne 0x1400282d2
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140028213
lea rcx, [rsp + 0x50]
call fcn.14000e000
test rax, rax
je 0x1400282e3
lea rcx, [rsp + 0x50]
call fcn.14000e010
jmp 0x1400282e6
lea rdx, str.too_many_IP__cant_show
mov rcx, rbp
call fcn.14001bf20
jmp 0x140028326
mov rax, r15
mov r8, rax
lea rdx, str.IPv6:__s
mov rcx, rbp
call fcn.14001bf20
lea rcx, [rsp + 0x30]
call fcn.14000e000
test rax, rax
je 0x140028314
lea rcx, [rsp + 0x30]
call fcn.14000e010
mov r15, rax
mov r8, r15
lea rdx, str.IPv4:__s
mov rcx, rbp
call fcn.14001bf20
lea rcx, [rsp + 0x30]
call fcn.14000dfb0
lea rcx, [rsp + 0x50]
call fcn.14000dfb0
mov r15, qword [rsp + 0xc0]
mov rbx, qword [rsp + 0x100]
mov rsi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140069340
add rsp, 0xd0
pop r14
pop rdi
pop rbp
ret
Function at 0x140031280
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.14000dd90
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.1400305b0
mov rcx, rdi
mov rsi, rax
call fcn.1400305b0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140031330
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.14000dd90
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.14000de20
cmp rax, 0x3e8
ja 0x140031361
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 0x1400312e0
test rsi, rsi
je 0x14003133d
mov rcx, rsi
call fcn.14006f1b8
test rbx, rbx
je 0x14003134a
mov rcx, rbx
call fcn.14006f1b8
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 0x14003136e
mov rcx, rsi
call fcn.14006f1b8
test rbx, rbx
je 0x14003137b
mov rcx, rbx
call fcn.14006f1b8
mov eax, 1
jmp 0x14003134c
Function at 0x1400318e0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rdi
push r12
push r13
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor ebp, ebp
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x140031a7f
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x140031a5f
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x20], r15
nop dword [rax]
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x14003194e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140031940
inc rbx
jmp 0x140031950
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x140031960
mov r15d, reloc.WS2_32.dll_recv
jmp 0x14003196f
cmp eax, 0x17
jne 0x140031a08
mov r15d, 0x1c
cmp qword [rsi + 0x20], 0
je 0x140031a08
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140031a08
cmp rax, r15
jb 0x140031a08
lea rcx, [rbx + 0x30]
add rcx, r15
call qword [section..data]
mov r14, rax
test rax, rax
je 0x140031a17
mov ecx, dword [rsi]
mov r8, r15
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], r15d
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call fcn.1400979e0
test rbx, rbx
je 0x1400319f5
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, r15
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call fcn.1400979e0
test rdi, rdi
cmove rdi, r14
test rbp, rbp
je 0x140031a05
mov qword [rbp + 0x28], r14
mov rbp, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x140031930
jmp 0x140031a1d
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x60]
test rcx, rcx
je 0x140031a37
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x140031a5a
test rdi, rdi
je 0x140031a56
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.14006f1b8]
mov rdi, rbx
test rbx, rbx
jne 0x140031a41
xor edi, edi
jmp 0x140031a6e
test rdi, rdi
jne 0x140031a6e
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x58]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x140032870
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 0x14003293c
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.140015b50
mov edx, eax
cmp eax, 4
jne 0x1400328f0
cmp byte [0x1400c6a8c], r14b
jne 0x1400328fa
mov r9d, 2
mov dword [rsp + 0x50], r14d
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb edx, edx
and edx, 2
test edx, edx
jne 0x14003293c
mov eax, dword [rsp + 0x50]
jmp 0x140032919
imul eax, dword [0x1400c6a88], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1400c6a88], eax
ror eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x140032933
sub rsi, rdi
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x140032921
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x1400328a0
mov rbx, qword [rsp + 0x40]
mov eax, edx
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140032960
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 rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x140032a28
xor ebp, ebp
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140015b50
cmp eax, 4
jne 0x1400329d1
cmp byte [0x1400c6a8c], bpl
jne 0x1400329db
mov r9d, 2
mov dword [rsp + 0x50], ebp
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x140032a2d
mov ecx, dword [rsp + 0x50]
jmp 0x1400329f8
imul ecx, dword [0x1400c6a88], 0x41c64e6d
add ecx, 0x3039
mov dword [0x1400c6a88], ecx
ror ecx, 0x10
mov dword [rsp + 0x50], ecx
cmp ecx, 0xfffffffc
jae 0x140032990
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x140032990
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x140035b80
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.0x14000f285.1]
mov rdi, rax
test rax, rax
je 0x140035bfd
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 0x140035c28
cmp ebx, esi
je 0x140035c28
cmp ebx, 0x8000
ja 0x140035c28
cmp ebx, esi
jb 0x140035c23
mov edx, ebx
mov rcx, rdi
call qword [case.0x14000f285.1]
mov rdi, rax
test rax, rax
jne 0x140035bc0
mov rcx, rbp
call qword [fcn.14006f1b8]
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 0x140035c08
mov rcx, rdi
jmp 0x140035c00

Function at 0x1400373f0
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 + 0x20]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
xor r9d, r9d
mov r8d, 3
mov rcx, qword [rcx + 0x220]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140037451
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.14001be30
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.140036f90
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret