joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400064b0
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, qword [0x14000d940]
mov r15, r8
mov edi, ecx
test rbx, rbx
je 0x140006528
lea r9, str.KiFilterFiberContext
nop dword [rax + rax]
mov rax, qword [rbx + 8]
cmp r9, rax
je 0x14000656c
test rax, rax
je 0x140006520
mov r8, r9
sub r8, rax
nop dword [rax + rax]
movzx ecx, word [r8 + rax]
movzx edx, word [rax]
lea rax, [rax + 2]
test cx, cx
je 0x140006516
cmp cx, dx
je 0x140006500
movzx eax, dx
movzx ecx, cx
sub ecx, eax
je 0x14000656c
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400064e0
xor ebx, ebx
mov rcx, r15
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
movzx ecx, word [rax + 0x14]
lea rdx, [rax + 0x18]
add rdx, rcx
movzx ecx, word [rax + 6]
test ecx, ecx
je 0x1400066b9
nop word [rax + rax]
cmp dword [rdx], 0x54494e49
jne 0x14000655e
cmp byte [rdx + 4], 0
je 0x14000657b
add rdx, 0x28
add ecx, 0xffffffff
jne 0x140006550
jmp 0x1400066b9
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140006688
jmp 0x14000652a
mov r14d, dword [rdx + 0xc]
add r14, r15
je 0x1400066b9
cmp edi, 0x295a
ja 0x1400065ea
je 0x1400065b2
cmp edi, 0x1db1
je 0x1400065dc
cmp edi, 0x23f0
je 0x1400065ce
cmp edi, 0x2580
je 0x1400065c0
cmp edi, 0x2800
jne 0x14000660a
lea rsi, [0x14000d278]
mov edi, 0x20
jmp 0x14000662b
lea rsi, [0x14000d2a8]
mov edi, 0x20
jmp 0x14000662b
lea rsi, [0x14000d308]
mov edi, 0x21
jmp 0x14000662b
lea rsi, [0x14000d168]
mov edi, 0x19
jmp 0x14000662b
cmp edi, 0x3839
je 0x14000661f
cmp edi, 0x3ad7
je 0x14000661f
cmp edi, 0x3fab
je 0x140006611
cmp edi, 0x42ee
je 0x140006611
xor al, al
jmp 0x1400066bf
lea rsi, [0x14000d258]
mov edi, 0x1c
jmp 0x14000662b
lea rsi, str._SUVWAUAVAWH
mov edi, 0x11
mov qword [rsp + 0x40], rbp
mov rbx, r14
mov ebp, dword [rdx + 8]
cmp rbp, rdi
jb 0x14000667c
sub rbp, rdi
nop
movzx edx, byte [rsi]
mov r8, rbp
sub r8, rbx
mov rcx, rbx
add r8, r14
call fcn.140007e70
mov rbx, rax
test rax, rax
je 0x14000667c
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.140008640
test eax, eax
je 0x14000667e
inc rbx
mov rax, rbp
sub rax, rbx
add rax, r14
jne 0x140006640
xor ebx, ebx
mov rbp, qword [rsp + 0x40]
test rbx, rbx
je 0x1400066bc
mov rcx, qword [rsp + 0x60]
mov r8d, ebx
sub r8d, r15d
mov rdx, r15
call qword [sym.imp.ntdll.dll_RtlAddressInSectionTable]
mov rcx, qword [rsp + 0x68]
sub rax, r15
mov qword [rcx], rax
lea rax, [0x14000d18c]
mov qword [rcx + 8], rax
mov dword [rcx + 0x10], 3
test rbx, rbx
setne al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140007480
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r14d, r14d
lea rdi, [rbp - 0x21]
mov r10, rcx
mov qword [rbp - 0x29], r14
xor eax, eax
mov qword [rbp - 0x31], r14
xor sil, sil
mov qword [rbp - 0x39], r14
mov ecx, 0x10
mov rbx, rdx
rep stosb byte [rdi], al
test rdx, rdx
je 0x1400074e0
mov qword [rdx], r14
nop word [rax + rax]
xor r9d, r9d
lea rdx, [rbp - 0x21]
xor r8d, r8d
mov rcx, r10
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0x14000760d
mov dword [rsp + 0x50], r14d
lea rax, [rbp - 0x21]
mov qword [rsp + 0x48], r14
lea rdi, [rbp + 0x27]
mov dword [rsp + 0x40], 0x20
lea r9, [rbp + 0x27]
mov dword [rsp + 0x38], 1
lea r8, [rbp - 0x11]
mov qword [rbp - 1], rax
xorps xmm0, xmm0
xor eax, eax
mov dword [rsp + 0x30], 1
mov ecx, 0x10
mov dword [rsp + 0x28], r14d
rep stosb byte [rdi], al
lea rcx, [rbp - 0x29]
mov dword [rbp - 0x11], 0x30
mov edx, 0x100001
mov qword [rbp - 9], r14
mov dword [rbp + 7], 0x40
movdqu xmmword [rbp + 0xf], xmm0
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_NtCreateFile]
test eax, eax
js 0x140007601
mov rax, qword [rbp - 0x29]
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], 0x1000000
xor r8d, r8d
mov edx, 0xf001f
mov dword [rsp + 0x20], 2
call qword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
js 0x140007601
mov rcx, qword [rbp - 0x31]
lea rax, [rbp + 0x1f]
mov dword [rsp + 0x48], 2
lea r8, [rbp - 0x39]
mov dword [rsp + 0x40], r14d
xor r9d, r9d
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
lea rdx, [r9 - 1]
mov qword [rbp - 0x39], r14
mov qword [rbp + 0x1f], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
js 0x140007601
mov sil, 1
test rbx, rbx
je 0x140007618
mov rax, qword [rbp + 0x1f]
mov qword [rbx], rax
jmp 0x140007618
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
jmp 0x140007612
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp qword [rbp - 0x19], r14
je 0x140007628
lea rcx, [rbp - 0x21]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140007637
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x140007646
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [rbp - 0x39]
test sil, sil
jne 0x140007668
test rax, rax
je 0x140007668
mov rdx, rax
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov rax, qword [rbp - 0x39]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400081d0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140007cb0
Capabilities:
Create process on windows

Disassembly:
push rbx
push r14
sub rsp, 0xf8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov r14, rdx
mov rbx, rcx
test rdx, rdx
je 0x140007cde
mov dword [rdx], 0xffffffff
test rbx, rbx
jne 0x140007cea
xor eax, eax
jmp 0x140007e43
cmp word [rcx], 0
mov rax, rbx
mov qword [rsp + 0x128], rsi
mov qword [rsp + 0xf0], rdi
je 0x140007d0d
add rax, 2
cmp word [rax], 0
jne 0x140007d03
sub rax, rbx
sar rax, 1
lea rdi, [rax*2 + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140007e33
mov qword [rsp + 0x120], rbp
xor ebp, ebp
cmp rsi, rbx
je 0x140007d73
movzx ecx, word [rbx]
test cx, cx
je 0x140007d70
sub rbx, rsi
nop dword [rax + rax]
mov word [rax], cx
add rax, 2
movzx ecx, word [rbx + rax]
test cx, cx
jne 0x140007d60
mov word [rax], bp
xor eax, eax
lea rdi, [rsp + 0x50]
mov ecx, 0x18
rep stosb byte [rdi], al
lea rdi, [rsp + 0x70]
mov ecx, 0x68
rep stosb byte [rdi], al
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x68
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov rdx, rsi
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0xc000020
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rbp, qword [rsp + 0x120]
mov edi, eax
test eax, eax
je 0x140007e1d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rsi, qword [rsp + 0x128]
mov rdi, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400081d0
add rsp, 0xf8
pop r14
pop rbx
ret
Function at 0x180001184
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
push rdi
sub rsp, 0x30
and qword [rax + 0x18], 0
mov rdi, rcx
mov ebx, edx
lea rcx, [rax + 0x18]
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
mov r9d, 1
xor edx, edx
mov dword [rax - 0x18], 0xf0000020
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1800011e6
lea r9d, [rax + 1]
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
lea rcx, [rsp + 0x50]
xor edx, edx
mov dword [rsp + 0x20], 0xf0000028
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x18000120c
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
cmp eax, 1
je 0x1800011fd
xor ebx, ebx
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180001258
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
lea r10d, [rdx + 2]
mov r11d, edx
mov edi, 0xaaaaaaab
mov eax, edi
mov rsi, r8
mov rbx, rcx
mul r10d
shr edx, 1
shl edx, 2
inc edx
cmp dword [r9], edx
jae 0x18000129b
mov dword [r9], edx
mov eax, 6
jmp 0x18000138d
mov eax, edi
xor r10d, r10d
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mul r11d
shr edx, 1
lea ecx, [rdx + rdx*2]
test ecx, ecx
je 0x180001320
dec ecx
mov eax, edi
mul ecx
shr edx, 1
inc edx
mov edi, edx
lea r10d, [rdx + rdx*2]
movzx eax, byte [rbx]
shr rax, 2
mov al, byte [rax + r14]
mov byte [r8], al
movzx edx, byte [rbx]
movzx ecx, byte [rbx + 1]
shl edx, 4
shr ecx, 4
add r8, 4
add edx, ecx
add rbx, 3
and edx, 0x3f
mov al, byte [rdx + r14]
mov byte [r8 - 3], al
movzx eax, byte [rbx - 2]
movzx ecx, byte [rbx - 1]
shr ecx, 6
lea edx, [rcx + rax*4]
and edx, 0x3f
mov al, byte [rdx + r14]
mov byte [r8 - 2], al
movzx eax, byte [rbx - 1]
and eax, 0x3f
mov al, byte [rax + r14]
mov byte [r8 - 1], al
dec rdi
jne 0x1800012c3
cmp r10d, r11d
jae 0x180001381
movzx edi, byte [rbx]
inc r10d
cmp r10d, r11d
jae 0x180001336
movzx edx, byte [rbx + 1]
jmp 0x180001338
xor edx, edx
mov eax, edi
mov ecx, edx
shl edi, 4
shr rax, 2
shr ecx, 4
and eax, 0x3f
add ecx, edi
mov al, byte [rax + r14]
and ecx, 0x3f
mov byte [r8], al
mov al, byte [rcx + r14]
mov byte [r8 + 1], al
cmp r10d, r11d
jae 0x18000136f
and edx, 0xf
shl edx, 2
movsx ecx, byte [rdx + r14]
jmp 0x180001374
mov ecx, 0x3d
mov byte [r8 + 2], cl
mov byte [r8 + 3], 0x3d
add r8, 4
mov byte [r8], 0
sub r8d, esi
xor eax, eax
mov dword [r9], r8d
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
ret
Function at 0x180001448
Capabilities:
Encode data using xor

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 r12
push r14
push r15
sub rsp, 0x30
mov rbp, rcx
mov ecx, dword [r9]
mov rbx, r9
mov esi, r8d
mov rdi, rdx
call fcn.1800040f4
test eax, eax
jne 0x180001569
mov ecx, dword [r9 + 4]
lea eax, [rcx - 1]
cmp eax, 0x7f
ja 0x180001564
xor edx, edx
mov eax, r8d
div ecx
mov r8d, eax
test edx, edx
jne 0x180001564
test cl, 3
jne 0x180001564
movsxd rax, dword [r9]
lea r12, [0x180045720]
imul rax, rax, 0xb0
mov r10, qword [rax + r12 + 0x60]
test r10, r10
je 0x1800014e5
lea rax, [r9 + 0x88]
mov rdx, rdi
mov rcx, rbp
add r9, 8
mov qword [rsp + 0x20], rax
call r10
jmp 0x180001569
test esi, esi
je 0x180001560
lea r14, [r9 + 8]
xor edx, edx
test ecx, ecx
jle 0x18000150f
mov r8, rbp
mov rcx, r14
sub r8, rbx
mov eax, dword [r8 + rcx - 8]
add edx, 4
xor dword [rcx], eax
lea rcx, [rcx + 4]
cmp edx, dword [rbx + 4]
jl 0x1800014fc
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
mov rdx, rdi
mov rcx, r14
imul rax, rax, 0xb0
call qword [rax + r12 + 0x28]
test eax, eax
jne 0x180001569
xor edx, edx
cmp dword [rbx + 4], edx
jle 0x180001552
mov r8, rdi
mov rcx, r14
sub r8, rbx
mov eax, dword [r8 + rcx - 8]
add edx, 4
mov dword [rcx], eax
lea rcx, [rcx + 4]
cmp edx, dword [rbx + 4]
jl 0x18000153f
movsxd rcx, dword [rbx + 4]
add rdi, rcx
add rbp, rcx
sub esi, ecx
jne 0x1800014ed
xor eax, eax
jmp 0x180001569
mov eax, reloc.WS2_32.dll_recv
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x180001588
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x18003eec8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
mov ecx, dword [r9]
mov rbx, r9
mov esi, r8d
mov rbp, rdx
call fcn.1800040f4
test eax, eax
jne 0x1800016a6
mov ecx, dword [r9 + 4]
lea eax, [rcx - 1]
cmp eax, 0x7f
ja 0x1800016a1
xor edx, edx
mov eax, r8d
div ecx
mov r8d, eax
test edx, edx
jne 0x1800016a1
test cl, 3
jne 0x1800016a1
movsxd rax, dword [r9]
lea r15, [0x180045720]
imul rax, rax, 0xb0
mov r10, qword [rax + r15 + 0x68]
test r10, r10
je 0x180001624
lea rax, [r9 + 0x88]
mov rdx, rbp
mov rcx, rdi
add r9, 8
mov qword [rsp + 0x20], rax
call r10
jmp 0x1800016a6
test esi, esi
je 0x18000169d
movsxd rax, dword [rbx]
lea r8, [rbx + 0x88]
lea rdx, [rsp + 0x30]
mov rcx, rdi
imul rax, rax, 0xb0
call qword [rax + r15 + gethostbyname]
test eax, eax
jne 0x1800016a6
xor r8d, r8d
cmp dword [rbx + 4], r8d
jle 0x18000168e
lea r9, [rsp + 0x30]
mov r10, rdi
mov r11, rbp
sub r9, rdi
sub r10, rbx
sub r11, rbx
lea rdx, [rbx + 8]
lea rax, [r10 + rdx]
add r8d, 4
mov ecx, dword [r9 + rax - 8]
mov eax, dword [rax - 8]
xor ecx, dword [rdx]
mov dword [rdx], eax
lea rdx, [rdx + 4]
mov dword [r11 + rdx - 0xc], ecx
cmp r8d, dword [rbx + 4]
jl 0x18000166b
movsxd rax, dword [rbx + 4]
add rdi, rax
add rbp, rax
sub esi, dword [rbx + 4]
jne 0x180001628
xor eax, eax
jmp 0x1800016a6
mov eax, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180023180
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800039f4
Capabilities:
Hash data using sha256

Disassembly:
and dword [rcx + 0x28], 0
and qword [rcx], 0
xor eax, eax
mov dword [rcx + 8], 0x6a09e667
mov dword [rcx + 0xc], 0xbb67ae85
mov dword [rcx + 0x10], 0x3c6ef372
mov dword [rcx + 0x14], 0xa54ff53a
mov dword [rcx + 0x18], 0x510e527f
mov dword [rcx + 0x1c], 0x9b05688c
mov dword [rcx + 0x20], 0x1f83d9ab
mov dword [rcx + 0x24], 0x5be0cd19
ret

Function at 0x180004170
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [rcx + 0x70]
mov r13, r8
mov r15, rdx
call fcn.18000411c
test eax, eax
jne 0x1800042e2
movsxd rdi, dword [rsi + 0x70]
lea rbx, [0x180046d20]
shl rdi, 7
mov ecx, dword [rdi + rbx + 0x10]
mov r12d, dword [rdi + rbx + 0xc]
call fcn.18001a7dc
mov ecx, r12d
mov r14, rax
call fcn.18001a7dc
mov rbp, rax
test r14, r14
je 0x1800042d0
test rax, rax
je 0x1800042c8
mov rdx, rax
mov rcx, rsi
call qword [rdi + rbx + 0x68]
mov ebx, eax
test eax, eax
jne 0x1800042a8
lea r9, [0x180046d20]
xor r8d, r8d
cmp dword [rdi + r9 + 0x10], r8d
jbe 0x180004223
mov rax, qword [rsi + 0xe8]
mov cl, byte [rax + r8]
xor cl, 0x5c
mov byte [r8 + r14], cl
inc r8d
cmp r8d, dword [rdi + r9 + 0x10]
jb 0x180004207
mov rcx, rsi
call qword [rdi + r9 + 0x58]
mov ebx, eax
test eax, eax
jne 0x1800042a8
lea rax, [0x180046d20]
mov rdx, r14
mov rcx, rsi
mov r8d, dword [rdi + rax + 0x10]
call qword [rdi + rax + 0x60]
mov ebx, eax
test eax, eax
jne 0x1800042a8
lea rax, [0x180046d20]
mov r8d, r12d
mov rdx, rbp
mov rcx, rsi
call qword [rdi + rax + 0x60]
mov ebx, eax
test eax, eax
jne 0x1800042a8
lea rax, [0x180046d20]
mov rdx, r14
mov rcx, rsi
call qword [rdi + rax + 0x68]
mov ebx, eax
test eax, eax
jne 0x1800042a8
xor ecx, ecx
test r12d, r12d
je 0x1800042a2
mov rdx, r14
sub rdx, r15
cmp ecx, dword [r13]
jae 0x1800042a2
mov al, byte [rdx + r15]
inc ecx
mov byte [r15], al
inc r15
cmp ecx, r12d
jb 0x18000428b
mov dword [r13], ecx
xor ebx, ebx
mov rcx, qword [rsi + 0xe8]
call fcn.18001a79c
mov rcx, rbp
call fcn.18001a79c
mov rcx, r14
call fcn.18001a79c
mov eax, ebx
jmp 0x1800042e2
mov rcx, r14
call fcn.18001a79c
test rbp, rbp
je 0x1800042dd
mov rcx, rbp
call fcn.18001a79c
mov eax, reloc.WS2_32.dll_listen
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180004300
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, rcx
movsxd rbp, edx
mov edi, r9d
mov ecx, ebp
mov r13, r8
call fcn.18000411c
test eax, eax
jne 0x18000446d
mov rbx, rbp
lea rax, [0x180046d20]
mov dword [rsi + 0x70], ebp
shl rbx, 7
mov r15d, dword [rbx + rax + 0xc]
test r9d, r9d
jne 0x18000435b
lea eax, [r9 + 3]
jmp 0x18000446d
mov r12d, dword [rbx + rax + 0x10]
mov ecx, r12d
call fcn.18001a7dc
mov r14, rax
test rax, rax
jne 0x180004379
lea eax, [r14 + 0xd]
jmp 0x18000446d
mov rcx, r12
call fcn.18001a7dc
mov qword [rsi + 0xe8], rax
test rax, rax
jne 0x180004395
lea edi, [rax + 0xd]
jmp 0x180004463
lea r12, [0x180046d20]
mov rdx, r13
mov ecx, dword [rbx + r12 + 0x10]
cmp edi, ecx
jbe 0x1800043e6
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x30]
mov r9, rax
mov qword [rsp + 0x20], rcx
mov ecx, ebp
mov r8d, edi
call fcn.1800018bc
mov edi, eax
test eax, eax
jne 0x180004457
mov eax, dword [rbx + r12 + 0x10]
cmp r15d, eax
jae 0x18000440d
mov rcx, r15
sub eax, r15d
add rcx, qword [rsi + 0xe8]
jmp 0x180004406
mov r8, rdi
mov rcx, rax
call fcn.18001ae80
mov eax, dword [rbx + r12 + 0x10]
cmp edi, eax
jae 0x18000440d
mov rcx, qword [rsi + 0xe8]
sub eax, edi
add rcx, rdi
mov edx, eax
call fcn.1800040dc
xor r8d, r8d
cmp dword [rbx + r12 + 0x10], r8d
jbe 0x180004433
mov rax, qword [rsi + 0xe8]
mov cl, byte [rax + r8]
xor cl, 0x36
mov byte [r8 + r14], cl
inc r8d
cmp r8d, dword [rbx + r12 + 0x10]
jb 0x180004417
mov rcx, rsi
call qword [rbx + r12 + 0x58]
mov edi, eax
test eax, eax
jne 0x180004457
mov r8d, dword [rbx + r12 + 0x10]
mov rdx, r14
mov rcx, rsi
call qword [rbx + r12 + 0x60]
mov edi, eax
test eax, eax
je 0x180004463
mov rcx, qword [rsi + 0xe8]
call fcn.18001a79c
mov rcx, r14
call fcn.18001a79c
mov eax, edi
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000dcd4
Capabilities:
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
and qword [rsp + 0x50], 0
and dword [rbp + 0x3d8], 0
and dword [rsp + 0x40], 0
xor esi, esi
mov r15, r8
mov rbx, rcx
and qword [rsp + 0x60], rsi
lea rax, [0x18002d6d0]
mov r13, rdx
lea r8d, [rsi + 0x38]
lea rcx, [rsp + 0x68]
xor edx, edx
mov r14d, r9d
mov qword [rsp + 0x48], rax
call fcn.18001aa90
lea rcx, [rbp - 0x5f]
xor edx, edx
mov r8d, 0x3ff
mov byte [rbp - 0x60], sil
call fcn.18001aa90
mov edx, dword [r13 + 4]
lea rcx, [rsp + 0x60]
call fcn.1800160b8
mov rcx, qword [rsp + 0x70]
lea r8, [0x18002d6c4]
mov r9, rbx
mov edx, 0x400
call fcn.18001ab9c
lea ecx, [rsi + 0xc]
call fcn.180018d54
mov r9d, dword [r13 + 4]
and dword [rsp + 0x28], esi
and qword [rsp + 0x20], rsi
lea r8, [r13 + 8]
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.180015820
mov rcx, qword [rsp + 0x68]
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp byte [rcx + rax], sil
jne 0x18000dda4
mov r9, qword [rsp + 0x70]
mov edx, 0x400
test rax, rax
jne 0x18000ddce
lea r8, [0x18002d6c4]
lea rcx, [rbp - 0x60]
call fcn.18001ab9c
jmp 0x18000dde3
mov qword [rsp + 0x20], rcx
lea r8, [0x18002d6d8]
lea rcx, [rbp - 0x60]
call fcn.18001ab9c
mov ecx, 0x1a
call fcn.180018d54
mov rcx, qword [0x18003f478]
lea r8, [rbp - 0x60]
mov rdx, rax
lea rax, [0x18003f490]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov eax, dword [0x18003f48c]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rcx, rax
mov rbx, rax
call fcn.18000df24
mov rdx, qword [rsp + 0x60]
mov r8, rdi
inc r8
cmp byte [rdx + r8], sil
jne 0x18000de3c
mov eax, dword [rbp - 0x80]
mov r9, qword [rsp + 0x78]
mov rcx, rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov edx, dword [r13 + 4]
lea rcx, [rsp + 0x60]
call fcn.1800160ac
mov rcx, rbx
call fcn.18000e524
test eax, eax
je 0x18000de9f
lea rdx, [rbp + 0x3d8]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x18000de9f
mov eax, dword [rbp + 0x3d8]
cmp eax, r14d
jae 0x18000de9f
test eax, eax
jne 0x18000dec6
xor edi, edi
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
test r14d, r14d
je 0x18000de9f
mov edx, esi
lea r9, [rsp + 0x40]
mov r8d, 0x1000
add rdx, r15
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x18000def7
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x18000def7
add esi, eax
cmp esi, r14d
jb 0x18000decb
cmp esi, r14d
jae 0x18000de9f
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, ntohl
call fcn.180018d54
mov r9d, r14d
mov r8d, esi
mov rcx, rax
mov rdx, r15
call fcn.180016154
jmp 0x18000deaa
Function at 0x18000e054
Capabilities:
Connect to http server
Create http request

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x40
mov rbx, r8
mov edi, edx
mov rsi, rcx
mov dword [rax + 0x20], 0x3a980
call fcn.180019efc
mov r14d, 1
mov ecx, r14d
call fcn.180018d88
lea ecx, [r14 + 0x31]
and al, 8
neg al
sbb r9d, r9d
and r9d, 0x803000
add r9d, 0x84400200
mov dword [0x18003f48c], r9d
call fcn.180018d88
cmp ax, r14w
jne 0x18000e0be
bts dword [0x18003f48c], 0x13
mov ecx, 0x23
call fcn.180018d88
movzx ecx, ax
test ecx, ecx
je 0x18000e0f4
dec ecx
je 0x18000e0ec
dec ecx
je 0x18000e0e5
cmp ecx, 2
je 0x18000e0f4
mov rax, qword [0x18003f470]
jmp 0x18000e11e
xor r8d, r8d
xor edx, edx
jmp 0x18000e106
xor r8d, r8d
mov edx, r14d
jmp 0x18000e106
mov ecx, 0x20
call fcn.180018d54
mov edx, 3
mov r8, rax
and dword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [0x18003f470], rax
mov ebx, 4
lea r8, [rsp + 0x68]
mov rcx, rax
lea edx, [rbx + 1]
mov r9d, ebx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [0x18003f470]
lea r8, [rsp + 0x68]
lea edx, [rbx + 2]
mov r9d, ebx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [0x18003f470]
lea rax, [0x18003f490]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
xor r9d, r9d
movzx r8d, di
mov rdx, rsi
mov dword [rsp + 0x28], 3
and qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetConnectA]
lea ecx, [rbx + 0x1f]
mov qword [0x18003f478], rax
call fcn.180018d88
cmp ax, bx
jne 0x18000e1ed
lea edi, [rbx + 0x1d]
mov ecx, edi
call fcn.180018d34
mov ecx, edi
mov ebx, eax
call fcn.180018d54
mov rcx, qword [0x18003f478]
lea edx, [rdi + 0xa]
mov r9d, ebx
mov r8, rax
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov edi, 0x22
mov ecx, edi
call fcn.180018d34
mov ecx, edi
mov ebx, eax
call fcn.180018d54
mov rcx, qword [0x18003f478]
lea edx, [rdi + 0xa]
mov r9d, ebx
mov r8, rax
call qword [sym.imp.WININET.dll_InternetSetOptionA]
call fcn.180019f2c
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret