joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140052110
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.1400716a0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov rbx, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xfec], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r14, [rbp + 0xfec]
mov qword [rbp + 0xfc8], r14
lea r15, [0x140059fc0]
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0xfb0]
mov rcx, rbx
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x140052301
mov r12, qword [sym.imp.KERNEL32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov r13, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], rbx
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfec], 0
je 0x1400521d7
cmp dword [rbp + 0xff0], 0
jne 0x140052316
mov eax, dword [rbp + 0xff4]
test rax, rax
je 0x140052316
cmp eax, 0x1000
ja 0x140052361
xor ebx, ebx
nop word cs:[rax + rax]
cmp rbx, rax
ja 0x140052346
lea rdx, [rbx + rbp]
add rdx, 0xffffffffffffffb0
mov rdi, rax
mov r8d, eax
sub r8d, ebx
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call r13
test eax, eax
je 0x140052309
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r12
cmp dword [rbp + 0xfec], 0
je 0x140052280
cmp dword [rbp + 0xff0], 0
jne 0x14005230f
mov eax, dword [rbp + 0xff4]
add rbx, rax
mov rax, rdi
cmp rbx, rdi
jne 0x140052220
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], r15
mov rbx, qword [rbp + 0xfe0]
mov rcx, rbx
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
jne 0x1400521d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140052316
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rbx
mov qword [rbp + 0xfd0], rax
mov rdx, rax
call fcn.140078100
jmp 0x14005237c
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov qword [rbp + 0xfd0], rax
mov rcx, rax
call fcn.140078080
ud2
Function at 0x140057130
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1400884b8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140057174
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1400571d3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400571e2
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14005721a
cmp eax, 0x103
je 0x140057224
test eax, eax
js 0x1400571ff
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14005721a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x140088518]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14004d9d0
mov rcx, rax
call fcn.140044ff0
mov ecx, 7
int 0x29
ud2

Function at 0x140057290
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1400884b8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400572d4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14005733a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140057371
test eax, eax
js 0x14005734b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140057364
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x140088518]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.14004d9d0
mov rcx, rax
call fcn.140044ff0
mov ecx, 7
int 0x29
ud2
Function at 0x1400573d0
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x140057425
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400574c1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x140057439
cmp eax, 0x2739
jne 0x14005748a
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x140057484
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x14005749f
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1400574c1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400574c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140059360
Capabilities:
Create pipe
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x128
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x90], xmm6
mov qword [rbp + 0x88], 0xfffffffffffffffe
mov qword [rbp + 0x38], rcx
mov byte [rbp + 0x85], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x34], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
mov rbx, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x18], rax
nop
Function at 0x14005a470
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14005a57f
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14005a4a8
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14005a542
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14005a561
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005a4fe
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14005a51b
jmp 0x14005a510
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14005a516
cmp eax, 0x6d
jne 0x14005a532
mov byte [rsi + 1], 0
jmp 0x14005a526
mov ecx, 1
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x14005a528
mov r8d, send
mov rcx, rbx
call fcn.140076960
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14005a4b5
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140076960
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x14005a4b5
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140076850
ud2
Function at 0x14005f100
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
sub esp, 0x88

Function at 0x140060260
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, send
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140060298
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.1400602b0
nop
add rsp, 0x38
ret

Function at 0x1400602b0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, send
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x1400602f3
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x14004bda0]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140077b80
ud2

Function at 0x1400623b0
Capabilities:
Resolve dns

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov r14, qword [rdx]
mov rbx, qword [rdx + 8]
movzx edi, word [rdx + 0x10]
mov rax, qword [0x1400a32e8]
cmp rax, 3
jne 0x1400624a6
cmp rbx, 0x17f
ja 0x1400624b8
lea r15, [rsp + 0x70]
mov rcx, r15
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8, rbx
call fcn.14006b3d0
cmp qword [rsp + 0x28], 0
je 0x140062434
lea rax, str.pv_b_
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1400624c9
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14006248e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x1400624c9
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], di
xor eax, eax
mov qword [rsi], rax
jmp 0x1400624c9
call fcn.140076d10
cmp rbx, 0x17f
jbe 0x1400623ea
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
call fcn.140076df0
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400624e0
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x140062502
mov qword [rsi + 8], rbx
mov qword [rsi], 1
jmp 0x1400625d7
mov rax, qword [0x1400a32e8]
cmp rax, 3
jne 0x1400625e2
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8d, 1
call fcn.1400573d0
cmp qword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x28]
je 0x140062543
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x1400625d7
cmp word [rbx], 0
je 0x140062564
movups xmm0, xmmword [rbx + 4]
mov eax, dword [rbx + 0x14]
mov edx, dword [rbx + 0x18]
movzx ecx, word [rbx + 0x1c]
mov r8d, 0x1c
mov r9w, 0x17
jmp 0x140062579
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, send
mov r9w, 2
xorps xmm0, xmm0
rol cx, 8
mov word [rsp + 0x20], r9w
mov word [rsp + 0x22], cx
mov dword [rsp + 0x24], eax
movups xmmword [rsp + 0x28], xmm0
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400625b5
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1400625d7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
call fcn.140076d10
jmp 0x140062513
Function at 0x14006fc20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14006fc9a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14006fc90
cmp r11, r10
ja 0x14006fd33
cmp r10, rdx
ja 0x14006fd47
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14006fc92
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14006fc70
jmp 0x14006fd07
ja 0x14006fc9a
mov r11, r10
cmp rax, r8
jne 0x14006fc42
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14006fd0b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14006fce0
mov r8, r10
sub ecx, r9d
jns 0x14006fcfe
jmp 0x14006fd0d
cmp r10, rdx
je 0x14006fd19
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14006fd0d
xor al, 1
cmp r8, rdx
jne 0x14006fcc0
jmp 0x14006fd0d
xor eax, eax
jmp 0x14006fd0d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140077c30
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140078100
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140078080
ud2

Function at 0x140071b9c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140071be6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140071be6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140071be6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140071be6
cmp dword [rcx + 0x84], 0xe
jbe 0x140071be6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140071be8
xor al, al
add rsp, 0x28
ret
Function at 0x140076df0
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.14006a270
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140076e4b
lea rax, str.pv_b_
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140076ec4
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140007940
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140076ed1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x140076ec4
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140007940
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x140076eb3
jmp 0x140076ec4
Function at 0x14003a888
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x120
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140216b40]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x20], 0x17e
lea r9, str.NGUtils::CPathUtils::CreatePathHierarchy
lea r8, [0x14021f3d0]
lea rcx, [rsp + 0x70]
call fcn.140053070
nop
cmp qword [rbx + 0x10], 0
jbe 0x14003a999
mov rcx, rbx
call fcn.14003a9d4
test al, al
jne 0x14003a9a1
cmp qword [rbx + 0x18], 8
jb 0x14003a900
mov rax, qword [rbx]
jmp 0x14003a903
mov rax, rbx
mov qword [rsp + 0x20], rax
lea r9, str.wstrPathToCreate__s
mov edx, 0x10
mov r8d, 0x184
lea rcx, [rsp + 0x70]
call fcn.14005353c
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140039f60
nop
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.14003a888
mov dword [rsp + 0x78], eax
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x14003a956
cmp eax, 0x8004ffff
jne 0x14003a988
cmp qword [rbx + 0x18], 8
jb 0x14003a960
mov rbx, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14003a988
call qword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
and eax, 0x80004005
mov dword [rsp + 0x78], eax
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.14003d54c
jmp 0x14003a9a1
mov dword [rsp + 0x78], 0x8004ffff
mov ebx, dword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.1400531b0
mov eax, ebx
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1400dd830
mov rbx, qword [rsp + 0x140]
add rsp, 0x120
pop rdi
ret

Function at 0x140045a50
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], r9
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r12, r8
mov ebp, ebx
mov edi, ebx
or rsi, 0xffffffffffffffff
mov r13, rdx
mov r15, rcx
add ebp, 0x200
test rdi, rdi
je 0x140045a96
mov rcx, rdi
call fcn.1400dce58
mov ecx, ebp
mov eax, 2
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1400ddae4
mov rdi, rax
test rax, rax
je 0x140045b20
mov word [rax], bx
lea rax, [r15 + 8]
cmp qword [rax + 0x18], 8
jb 0x140045ac5
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
lea r8, [0x1401cc718]
mov r9, rdi
mov dword [rsp + 0x20], ebp
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov r14d, eax
lea eax, [rbp - 1]
cmp r14d, eax
jae 0x140045a83
cmp word [rdi], bx
jne 0x140045af9
mov rsi, rbx
jmp 0x140045b02
inc rsi
cmp word [rdi + rsi*2], bx
jne 0x140045af9
mov rcx, qword [rsp + 0x78]
mov r8, rsi
mov rdx, rdi
call fcn.14003c268
mov rcx, rdi
call fcn.1400dce58
test r14d, r14d
setne al
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140045b40
Capabilities:
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x140216b40]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, r9
mov r14, r8
mov qword [rbp - 0x40], r8
mov r13, rdx
mov r15, rcx
xor ebx, ebx
mov esi, ebx
mov edi, ebx
jmp 0x140045b8b
mov r14, qword [rbp - 0x40]
add esi, 0x200
test rdi, rdi
je 0x140045b9e
mov rcx, rdi
call fcn.1400dce58
mov ecx, esi
call fcn.1400ddae4
mov rdi, rax
test rax, rax
je 0x140045cb3
mov byte [rax], bl
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], rbx
mov byte [rbp - 0x30], bl
lea r9, [r15 + 8]
cmp qword [r9 + 0x18], 8
jb 0x140045bda
mov rcx, qword [r9]
jmp 0x140045bdd
mov rcx, r9
mov rax, qword [r9 + 0x10]
lea rax, [rcx + rax*2]
cmp qword [r9 + 0x18], 8
jb 0x140045bef
mov r9, qword [r9]
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae r8, qword [rbp - 0x30]
add r8, qword [rbp - 0x20]
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x30]
call fcn.140046a04
lea rax, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rax, qword [rbp - 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, rdi
lea r8, [0x1401cca00]
mov rdx, r14
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov r14d, eax
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140045c69
inc rdx
mov r8d, 1
mov rcx, qword [rbp - 0x30]
call fcn.14003d46c
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], rbx
mov byte [rbp - 0x30], bl
lea eax, [rsi - 1]
cmp r14d, eax
jae 0x140045b87
cmp byte [rdi], bl
jne 0x140045c8d
mov r8, rbx
jmp 0x140045c9a
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdi + r8], bl
jne 0x140045c91
mov rdx, rdi
mov rcx, r12
call fcn.140040538
mov rcx, rdi
call fcn.1400dce58
test r14d, r14d
setne al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400dd830
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140048030
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1058
call fcn.1400dda90
sub rsp, rax
mov rax, qword [0x140216b40]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rdx, rcx
mov dword [rsp + 0x20], 0x100
lea rcx, [rsp + 0x30]
mov r9d, 0x20
xor r8d, r8d
call fcn.1401216e4
test eax, eax
je 0x14004808d
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400dd830
add rsp, 0x1058
ret
mov edx, 0x10
mov qword [rsp + 0x1068], rbx
lea ecx, [rdx - 0xf]
call fcn.140104be4
mov rbx, rax
test rax, rax
je 0x1400480d2
mov ecx, 0x20
mov dword [rax + 0xc], 0x20
mov dword [rax + 8], 0
call fcn.1400eb538
mov qword [rbx], rax
test rax, rax
jne 0x1400480db
mov rcx, rbx
call fcn.1400eb530
or rax, 0xffffffffffffffff
jmp 0x1400481b1
mov ecx, dword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x1050], rdi
call fcn.14012052c
mov edi, eax
test eax, eax
jle 0x140048188
mov qword [rsp + 0x1070], rsi
nop dword [rax]
mov esi, dword [rbx + 0xc]
mov ecx, esi
mov eax, dword [rbx + 8]
sub ecx, eax
cmp ecx, edi
jg 0x140048144
lea ecx, [rax + 8]
add esi, esi
add ecx, edi
cmp esi, ecx
jg 0x14004812e
lea esi, [rax + 8]
add esi, edi
mov rcx, qword [rbx]
movsxd rdx, esi
call fcn.14010b5a0
test rax, rax
je 0x140048166
mov dword [rbx + 0xc], esi
mov qword [rbx], rax
movsxd rcx, dword [rbx + 8]
lea rdx, [rsp + 0x40]
add rcx, qword [rbx]
movsxd r8, edi
call fcn.1400df7a0
add dword [rbx + 8], edi
movsxd rcx, dword [rbx + 8]
mov rax, qword [rbx]
mov byte [rcx + rax], 0
mov ecx, dword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
call fcn.14012052c
mov edi, eax
test eax, eax
jg 0x140048110
mov rsi, qword [rsp + 0x1070]
mov ecx, dword [rsp + 0x30]
call fcn.140121d38
mov rcx, qword [rbx]
test edi, edi
jns 0x1400481d1
call fcn.1400eb530
mov rcx, rbx
call fcn.1400eb530
or rax, 0xffffffffffffffff
mov rdi, qword [rsp + 0x1050]
mov rbx, qword [rsp + 0x1068]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400dd830
add rsp, 0x1058
ret
call fcn.140049390
mov rcx, qword [rbx]
mov rdi, rax
call fcn.1400eb530
mov rcx, rbx
call fcn.1400eb530
mov rax, rdi
jmp 0x1400481a9
Function at 0x14004fcec
Capabilities:
Create http request

Disassembly:
push rbx
sub rsp, 0x30
and dword [rsp + 0x20], 0
mov rbx, rcx
mov dword [rcx + 8], 1
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbx], rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret