joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180029d60
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x18003c010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x180029daf
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18003cb90]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x180029ded
cmp rsi, r14
jb 0x180029de5
cmp rsi, r15
jae 0x180029de5
cmp qword [rsi + 8], 0
jne 0x180029fb7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180029dd0
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180029e82
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180029e79
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180029e79
cmp dword [rsp + 0x40], 0x10000
je 0x180029efb
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180029e79
sub rbx, rbp
cmp rbx, r14
jae 0x180029e40
test rsi, rsi
jne 0x180029f60
cmp rdi, r15
ja 0x180029f9f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x180029f9f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180029f9f
cmp dword [rsp + 0x40], 0x10000
je 0x180029f31
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180029eb2
jmp 0x180029f9f
test rbx, rbx
je 0x180029e79
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180029f60
cmp rbx, r14
jae 0x180029e20
jmp 0x180029e82
test rdi, rdi
je 0x180029f9f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180029f60
cmp rdi, r15
jbe 0x180029e90
jmp 0x180029f9f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180029f70
mov rax, qword [0x18003cb90]
mov qword [rsi], rax
mov qword [0x18003cb90], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18002c270
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x18002a940
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18003c010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18002aa6b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x18002aa62
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x18002aa44
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18002aa44
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18002aa44
mov rdx, qword [rbx]
test rdx, rdx
jne 0x18002aa02
mov rcx, qword [0x18003c9d8]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x18002aa62
jmp 0x18002aa37
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x18002aa37
mov rcx, qword [0x18003c9d8]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18002aa62
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18002a9b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x18002aac3
cmp dword [rbx + 0xc], esi
jbe 0x18002aac3
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18002aabc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.18002a790
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x18002aa80
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18002c270
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x18002aaf0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18003c010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18003cb80]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18002ab63
mov eax, 0xa
jmp 0x18002abf6
test esi, esi
je 0x18002ab85
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18002aba8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18002aba8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18002aba1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18002aba8
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18002c270
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18002ac20
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18003cb8c]
mov ebx, edi
test ecx, ecx
je 0x18002ad5b
mov rax, qword [0x18003cb80]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x18002ac78
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18002ac50
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x18002ad5b
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.18002a940
mov r8d, dword [0x18003cb8c]
cmp ebx, r8d
jae 0x18002ace8
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18003cb80]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x18002ace1
mov edx, esi
mov ecx, ebx
call fcn.18002aaf0
mov edi, eax
test eax, eax
jne 0x18002ace8
mov r8d, dword [0x18003cb8c]
inc ebx
cmp ebx, r8d
jb 0x18002acb0
cmp qword [rsp + 0x20], 0
je 0x18002ad5b
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18002ad47
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18002ad38
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x18002ad10
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18003c9d8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18002b0d0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x18003c9d0], ebp
je 0x18002b127
cmp rbx, 0x20
jae 0x18002b110
xor ecx, ecx
jmp 0x18002b112
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18003c9d0], ebp
jne 0x18002b106
cmp qword [0x18003c9d8], r15
je 0x18002b221
test rdi, rdi
jne 0x18002b147
mov ecx, esi
call fcn.18002ac20
mov ebp, eax
jmp 0x18002b226
mov ecx, dword [0x18003cb8c]
mov ebx, r15d
test ecx, ecx
je 0x18002b16f
mov r8, qword [0x18003cb80]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x18002b179
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x18002b160
mov ebp, 4
jmp 0x18002b226
cmp ebx, 0xffffffff
je 0x18002b16f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18002b218
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.18002a940
mov edx, esi
mov ecx, ebx
call fcn.18002aaf0
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x18002b226
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18002b202
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18002b1f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x18002b1d0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18003c9d8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18002b226
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x18002b226
mov ebp, 2
xchg dword [0x18003c9d0], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18002c1e0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test edx, edx
je 0x18002c222
cmp edx, 1
jne 0x18002c24c
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x18002c180]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
cmp dword [0x18003cad8], 0
je 0x18002c24c
call fcn.18002b250
mov rcx, qword [0x18003cad0]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov qword [0x18003cad0], rax
mov dword [0x18003cad8], eax
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x1400111ef
Capabilities:
Terminate process

Disassembly:
jmp 0x140015180
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001126c
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012cb0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012cd0
xor al, al
jmp 0x140012d51
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012ce3
xor al, al
jmp 0x140012d51
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012d0d
xor al, al
jmp 0x140012d51
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012d21
xor al, al
jmp 0x140012d51
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012d33
xor al, al
jmp 0x140012d51
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012d4f
xor al, al
jmp 0x140012d51
mov al, 1
add rsp, 0x38
ret

Function at 0x140011ab0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011389
movzx eax, al
test eax, eax
jne 0x140011ad0
mov ecx, 7
call fcn.140011307
nop
mov byte [rsp + 0x20], 0
call fcn.14001131b
mov byte [rsp + 0x21], al
cmp dword [0x14001c220], 1
jne 0x140011af4
mov ecx, 7
call fcn.140011307
nop
jmp 0x140011b4c
cmp dword [0x14001c220], 0
jne 0x140011b47
mov dword [0x14001c220], 1
lea rdx, [0x140019660]
lea rcx, [0x140019330]
call fcn.14001119a
test eax, eax
je 0x140011b28
mov eax, 0xff
jmp 0x140011c51
lea rdx, [0x140019220]
lea rcx, [section..rdata]
call fcn.140011311
mov dword [0x14001c220], 2
jmp 0x140011b4c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400112f8
call fcn.14001128f
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140011ba9
mov rcx, qword [rsp + 0x30]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x140011ba9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140022020]
nop
call fcn.1400112c1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140011bdd
mov rcx, qword [rsp + 0x38]
call fcn.140011154
movzx eax, al
test eax, eax
je 0x140011bdd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011348
nop
call fcn.140011d00
mov dword [rsp + 0x28], eax
call fcn.14001126c
movzx eax, al
test eax, eax
jne 0x140011bfc
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140011c0b
call fcn.140011352
nop
xor edx, edx
mov cl, 1
call fcn.140011145
mov eax, dword [rsp + 0x28]
jmp 0x140011c51
add rsp, 0x68
ret
Function at 0x140008030
Capabilities:
Access peb ldr_data
Get process filename
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x70
mov rbx, rdx
lea rcx, [0x1400504e8]
lea rdx, [rsp + 0x80]
call fcn.140008c50
cmp qword [rax], 0
je 0x140008079
lea rdx, [rsp + 0x80]
lea rcx, [0x1400504e8]
call fcn.140008c50
mov rax, qword [rax]
add rsp, 0x70
pop rbx
ret
mov rax, qword gs:[0x60]
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rdi
mov rcx, qword [rax + 0x18]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r14
mov r12, qword [rcx + 0x20]
mov qword [rsp + 0x38], r15
cmp r12, rax
je 0x140008210
mov edi, 0x5a4d
mov rcx, qword [r12 + 0x40]
mov rdx, rbx
call fcn.140008b00
test al, al
je 0x1400081fe
mov rsi, qword [r12 + 0x20]
test rsi, rsi
je 0x1400081fe
cmp word [rsi], di
jne 0x1400081fe
movsxd rax, dword [rsi + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x1400081fe
mov ecx, dword [rax + rsi + 0x88]
test ecx, ecx
je 0x1400081fe
mov eax, dword [rsi + rcx + 0x1c]
lea rbp, [rsi + rcx]
add rax, rsi
mov qword [rsp + 0x98], rax
je 0x1400081fe
mov r15d, dword [rbp + 0x20]
add r15, rsi
je 0x1400081fe
mov r13d, dword [rbp + 0x24]
add r13, rsi
je 0x1400081fe
xor edi, edi
cmp dword [rbp + 0x14], edi
jbe 0x1400081f4
nop word [rax + rax]
mov ecx, dword [r15 + rdi*4]
add rcx, rsi
movsx rbx, byte [rcx]
test bl, bl
je 0x14000818d
inc rcx
call fcn.1400098f0
shl rax, 4
add rax, rbx
mov rcx, rax
shr rcx, 0x37
and ecx, 0x1e0
xor rcx, rax
movabs rax, 0xfffffffffffffff
and rcx, rax
jmp 0x14000818f
xor ecx, ecx
movabs rax, 0xfda62e3dc96ca226
lea rdx, [rsp + 0x90]
xor rcx, rax
movzx eax, word [r13 + rdi*2]
mov qword [rsp + 0x90], rcx
mov rcx, qword [rsp + 0x98]
mov ebx, dword [rcx + rax*4]
lea rcx, [0x1400504e8]
add rbx, rsi
call fcn.140008c50
mov qword [rax], rbx
mov rax, qword [rsp + 0x80]
cmp qword [rsp + 0x90], rax
je 0x14000823b
inc edi
cmp edi, dword [rbp + 0x14]
jb 0x140008150
mov rbx, qword [rsp + 0x88]
test rbx, rbx
jne 0x140008210
mov edi, 0x5a4d
mov r12, qword [r12]
lea rax, [rsp + 0x20]
cmp r12, rax
jne 0x1400080c0
xor eax, eax
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov r15, qword [rsp + 0x38]
add rsp, 0x70
pop rbx
ret
lea rdx, [rsp + 0x90]
lea rcx, [0x1400504e8]
call fcn.140008c50
mov rax, qword [rax]
jmp 0x140008212
Function at 0x1400109d0
Capabilities:
Receive http response

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x68]
sub rsp, 0x168
mov rax, qword [0x14004f040]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rax, r8
mov rdi, rcx
mov qword [rsp + 0x38], rcx
xor esi, esi
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rdx
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400100d0
nop
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.140010bc0
test al, al
jne 0x140010a31
mov rcx, rdi
call fcn.140014a30
jmp 0x140010b57
lea rcx, [rbp - 0x80]
call fcn.140011e00
test al, al
jne 0x140010a4b
mov rcx, rdi
call fcn.140014a30
jmp 0x140010b57
lea rcx, [rsp + 0x58]
call fcn.140014a30
nop
cmp byte [rbp + 0x30], 0
jne 0x140010b3e
mov dword [rsp + 0x40], 2
nop dword [rax + rax]
lea rcx, [rsp + 0x48]
call fcn.140014a30
nop
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x38], esi
lea rdx, [rsp + 0x30]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x140010b16
test eax, eax
je 0x140010b16
call fcn.140019aec
mov rbx, rax
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.140037f00
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x30]
mov rdx, rbx
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x140010ae1
mov dword [rbp + 0x34], 6
mov rcx, rbx
call fcn.140019718
jmp 0x140010b1a
mov r8d, dword [rsp + 0x38]
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140014970
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140015380
nop
lea rcx, [rsp + 0x68]
call fcn.140015200
mov rcx, rbx
call fcn.140019718
jmp 0x140010b1a
mov byte [rbp + 0x30], 1
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.140015990
nop
lea rcx, [rsp + 0x48]
call fcn.140015200
cmp byte [rbp + 0x30], 0
je 0x140010a70
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.1400148d0
nop
lea rcx, [rsp + 0x58]
call fcn.140015200
nop
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140010b66
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp + 0x40]
test rcx, rcx
je 0x140010b75
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140010b84
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [rbp + 0x34], 5
lea rcx, [rbp - 0x50]
call fcn.140010470
lea rcx, [rbp - 0x70]
call fcn.140002390
mov rax, rdi
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400199f0
add rsp, 0x168
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140011e00
Capabilities:
Read http header
Receive http response

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
xor edx, edx
mov rcx, qword [rcx + 0xc8]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140011ebf
mov rcx, qword [rbx + 0xc8]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x20000013
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x48], 4
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x140011ebf
mov eax, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rcx, qword [rbx + 0xc8]
xor r8d, r8d
mov dword [rbx + 0xac], eax
mov edx, 0x20000013
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x140011ebf
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0xa8], eax
mov al, 1
mov byte [rbx + 0xb0], 0
mov dword [rbx + 0xb4], 4
add rsp, 0x30
pop rbx
ret
mov dword [rbx + 0xb4], 6
xor al, al
add rsp, 0x30
pop rbx
ret
Function at 0x140013620
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x13d0
call fcn.140019a20
sub rsp, rax
mov rax, qword [0x14004f040]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov rsi, rcx
mov dword [rcx + 0x138c], 0xffffffff
mov edx, 0x1571
mov ebx, 1
mov dword [rcx + 0xc], edx
mov ecx, ebx
lea r8, [rsi + 0x10]
nop word [rax + rax]
mov eax, edx
lea r8, [r8 + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
inc rcx
mov dword [r8 - 4], edx
cmp rcx, 0x270
jb 0x140013670
mov dword [rsi + 8], 0x270
mov r9d, ebx
xor r8d, r8d
mov qword [rsi], 0
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
call fcn.14001a970
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x13b4], 0xffffffff
nop
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ebx
mov dword [rsp + rbx*4 + 0x34], eax
inc rbx
cmp rbx, 0x270
jb 0x1400136d0
mov r8d, 0x1388
mov dword [rsp + 0x30], 0x270
lea rdx, [rsp + 0x30]
lea rcx, [rsi + 8]
call fcn.140037860
mov rax, rsi
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.1400199f0
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140013740
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movsxd rsi, r8d
mov rbx, rcx
mov rcx, rsi
mov rbp, rdx
call fcn.140019aec
mov rcx, qword [rbx]
mov r8, rax
mov edx, esi
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov r8d, esi
mov rdx, rdi
mov rcx, rbp
call fcn.140014990
mov rcx, rdi
call fcn.140019718
mov rbx, qword [rsp + 0x40]
mov rax, rbp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret