joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c30e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140112080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400c3175
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x1400c31d6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14009da00
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400d61f0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400c3291
sub ecx, 1
je 0x1400c3304
sub ecx, 1
je 0x1400c3240
cmp ecx, 1
je 0x1400c3223
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400fd004]
call fcn.14009da00
jmp 0x1400c3304
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400c2e10
test eax, eax
je 0x1400c3304
jmp 0x1400c31aa
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400c3304
sub rax, rsi
cmp rax, rbp
jae 0x1400c3304
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14009db80
jmp 0x1400c3304
cmp r8d, 4
jle 0x1400c3304
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x1400c3304
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14009d920
mov esi, eax
test eax, eax
je 0x1400c32e3
mov edx, 5
mov rcx, rbx
call fcn.1400c3dd0
mov eax, esi
jmp 0x1400c31aa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400ac200
mov rcx, r14
call fcn.1400ac4e0
test eax, eax
je 0x1400c31a8
mov edx, 5
mov rcx, rbx
call fcn.1400c3dd0
mov eax, Ordinal_45
jmp 0x1400c31aa
Function at 0x1400d60a0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400d60e2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400d6129
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400d6182
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400d6140
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400d61c3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400ec7fb]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400ec7fc]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400d6190
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x1400d72a8
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400d751a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400d751f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400d7568
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1400d7568
dec r8
sub rdx, 1
jne 0x1400d754e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400d7d2c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400d75f8
mov ebx, eax
test eax, eax
jne 0x1400d7d5c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400d7dbf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400d7db6
test al, 0x10
je 0x1400d7db6
bt eax, 0xa
jae 0x1400d7daf
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400d7dd0
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400d7dab
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400d7dab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x1400d7db6
and dword [rsp + 0x3c], 0
jmp 0x1400d7dbb
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180002dd0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x180002e02
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002e02
nop word cs:[rax + rax]
jmp 0x180002e00
mov rax, qword gs:[0x60]
mov r9, qword [rax + 0x18]
add r9, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r14b
or r14b, al
lea r11, [rcx - 1]
xor eax, eax
mov r10, r9
mov r10, qword [r10]
cmp r10, r9
je 0x180002f1b
mov rsi, r11
test r8b, r8b
je 0x180002f10
nop word cs:[rax + rax]
nop
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180002e80
sub rsi, rcx
je 0x180002f12
mov r15, qword [r10 + 0x60]
xor ebx, ebx
nop dword [rax]
test r14b, r14b
je 0x180002f00
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180002ef0
test ebp, ebp
jne 0x180002ef0
add rbx, 1
cmp rsi, rbx
jne 0x180002ea0
jmp 0x180002f17
test ebp, ebp
jne 0x180002e5c
jmp 0x180002f17
jmp 0x180002f00
jmp 0x180002f10
test r14b, r14b
je 0x180002f30
mov rax, qword [r10 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002f30
Function at 0x403490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp], rcx
mov qword [rbp - 8], rdx
cmp qword [rbp], 0
jne 0x4034bc
mov qword [rbp + 8], 0
jmp 0x403636
mov rax, qword [rbp]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x18]
movsxd rcx, dword [rcx + 0x3c]
add rax, rcx
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x20]
mov edx, dword [rcx + 0x88]
mov ecx, edx
add rax, rcx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 8]
cmp rax, 0xffff
ja 0x403551
mov rax, qword [rbp - 8]
mov cx, ax
mov word [rbp - 0x2a], cx
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x28]
mov r8d, dword [rdx + 0x1c]
mov edx, r8d
add rax, rdx
movzx r8d, word [rbp - 0x2a]
mov rdx, qword [rbp - 0x28]
sub r8d, dword [rdx + 0x10]
mov r8d, r8d
mov edx, r8d
mov r8d, dword [rax + rdx*4]
mov dword [rbp - 0x30], r8d
mov rax, qword [rbp - 0x10]
mov r8d, dword [rbp - 0x30]
mov edx, r8d
add rax, rdx
mov qword [rbp + 8], rax
jmp 0x403636
mov rax, qword [rbp - 0x28]
mov ecx, dword [rax + 0x18]
sub ecx, 1
mov dword [rbp - 0x34], ecx
mov dword [rbp - 0x38], 0
mov eax, dword [rbp - 0x38]
cmp eax, dword [rbp - 0x34]
ja 0x40362e
mov eax, dword [rbp - 0x38]
add eax, dword [rbp - 0x34]
shr eax, 1
mov dword [rbp - 0x3c], eax
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x28]
mov eax, dword [rdx + 0x20]
mov edx, eax
add rcx, rdx
mov eax, dword [rbp - 0x3c]
mov edx, eax
mov eax, dword [rcx + rdx*4]
mov dword [rbp - 0x40], eax
mov rcx, qword [rbp - 0x10]
mov eax, dword [rbp - 0x40]
mov edx, eax
add rcx, rdx
mov qword [rbp - 0x48], rcx
mov rcx, qword [rbp - 0x48]
mov rdx, qword [rbp - 8]
call fcn.004d9b50
mov dword [rbp - 0x4c], eax
cmp dword [rbp - 0x4c], 0
jge 0x4035c9
mov eax, dword [rbp - 0x3c]
add eax, 1
mov dword [rbp - 0x38], eax
jmp 0x403629
cmp dword [rbp - 0x4c], 0
jle 0x4035da
mov eax, dword [rbp - 0x3c]
sub eax, 1
mov dword [rbp - 0x34], eax
jmp 0x403627
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
mov edx, dword [rcx + 0x24]
mov ecx, edx
add rax, rcx
mov edx, dword [rbp - 0x3c]
mov ecx, edx
mov r8w, word [rax + rcx*2]
mov word [rbp - 0x4e], r8w
mov rax, qword [rbp - 0x10]
mov rcx, qword [rbp - 0x28]
mov edx, dword [rcx + 0x1c]
mov ecx, edx
add rax, rcx
movzx edx, word [rbp - 0x4e]
mov ecx, edx
mov edx, dword [rax + rcx*4]
mov dword [rbp - 0x54], edx
mov rax, qword [rbp - 0x10]
mov edx, dword [rbp - 0x54]
mov ecx, edx
add rax, rcx
mov qword [rbp + 8], rax
jmp 0x403636
jmp 0x403629
jmp 0x403565
mov qword [rbp + 8], 0
mov rax, qword [rbp + 8]
add rsp, 0x90
pop rbp
ret

Function at 0x408590
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov r8d, 0xffffffff
mov r9d, 0x6c078965
mov qword [rbp - 8], rcx
mov dword [rbp - 0xc], edx
mov rcx, qword [rbp - 8]
mov edx, dword [rbp - 0xc]
call fcn.004085c0
nop
add rsp, 0x30
pop rbp
ret
Function at 0x408b20
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], rcx
mov rcx, qword [rbp - 8]
cmp dword [rcx], 0x270
mov qword [rbp - 0x18], rcx
jne 0x408b49
mov rcx, qword [rbp - 0x18]
call fcn.00408bd0
jmp 0x408b61
mov eax, 0x4e0
mov rcx, qword [rbp - 0x18]
cmp eax, dword [rcx]
ja 0x408b5f
mov rcx, qword [rbp - 0x18]
call fcn.00408c90
jmp 0x408b61
mov rax, qword [rbp - 0x18]
mov ecx, dword [rax]
mov edx, ecx
add edx, 1
mov dword [rax], edx
mov ecx, ecx
mov r8d, ecx
mov ecx, dword [rax + r8*4 + 4]
mov dword [rbp - 0xc], ecx
mov ecx, dword [rbp - 0xc]
shr ecx, 0xb
and ecx, dword [rax + 0x1384]
xor ecx, dword [rbp - 0xc]
mov dword [rbp - 0xc], ecx
mov ecx, dword [rbp - 0xc]
shl ecx, 7
and ecx, 0x9d2c5680
xor ecx, dword [rbp - 0xc]
mov dword [rbp - 0xc], ecx
mov ecx, dword [rbp - 0xc]
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, dword [rbp - 0xc]
mov dword [rbp - 0xc], ecx
mov ecx, dword [rbp - 0xc]
shr ecx, 0x12
xor ecx, dword [rbp - 0xc]
mov dword [rbp - 0xc], ecx
mov eax, dword [rbp - 0xc]
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
add rsp, 0x40
pop rbp
ret

Function at 0x408bd0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
sub rsp, 0x18
lea rbp, [rsp + 0x10]
mov qword [rbp], rcx
mov rcx, qword [rbp]
mov dword [rbp - 4], 0x270
mov qword [rbp - 0x10], rcx
cmp dword [rbp - 4], 0x4e0
jge 0x408c83
xor eax, eax
mov ecx, 0x9908b0df
mov edx, dword [rbp - 4]
sub edx, 0x270
movsxd r8, edx
mov r9, qword [rbp - 0x10]
mov edx, dword [r9 + r8*4 + 4]
and edx, 0x80000000
mov r10d, dword [rbp - 4]
sub r10d, 0x270
add r10d, 1
movsxd r8, r10d
mov r10d, dword [r9 + r8*4 + 4]
and r10d, 0x7fffffff
or edx, r10d
mov dword [rbp - 8], edx
mov edx, dword [rbp - 8]
shr edx, 1
mov r10d, dword [rbp - 8]
and r10d, 1
cmp r10d, 0
cmovne eax, ecx
xor edx, eax
mov eax, dword [rbp - 4]
sub eax, 0x270
add eax, 0x18d
movsxd r8, eax
xor edx, dword [r9 + r8*4 + 4]
movsxd r8, dword [rbp - 4]
mov dword [r9 + r8*4 + 4], edx
mov eax, dword [rbp - 4]
add eax, 1
mov dword [rbp - 4], eax
jmp 0x408bed
add rsp, 0x18
pop rbp
ret
Function at 0x408c90
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov qword [rbp - 8], rcx
mov rcx, qword [rbp - 8]
mov dword [rbp - 0xc], 0
mov qword [rbp - 0x20], rcx
cmp dword [rbp - 0xc], 0xe3
jge 0x408d43
xor eax, eax
mov ecx, 0x9908b0df
mov edx, dword [rbp - 0xc]
add edx, 0x270
movsxd r8, edx
mov r9, qword [rbp - 0x20]
mov edx, dword [r9 + r8*4 + 4]
and edx, 0x80000000
mov r10d, dword [rbp - 0xc]
add r10d, 0x270
add r10d, 1
movsxd r8, r10d
mov r10d, dword [r9 + r8*4 + 4]
and r10d, 0x7fffffff
or edx, r10d
mov dword [rbp - 0x10], edx
mov edx, dword [rbp - 0x10]
shr edx, 1
mov r10d, dword [rbp - 0x10]
and r10d, 1
cmp r10d, 0
cmovne eax, ecx
xor edx, eax
mov eax, dword [rbp - 0xc]
add eax, 0x270
add eax, 0x18d
movsxd r8, eax
xor edx, dword [r9 + r8*4 + 4]
movsxd r8, dword [rbp - 0xc]
mov dword [r9 + r8*4 + 4], edx
mov eax, dword [rbp - 0xc]
add eax, 1
mov dword [rbp - 0xc], eax
jmp 0x408cad
jmp 0x408d45
cmp dword [rbp - 0xc], 0x26f
jge 0x408ddb
xor eax, eax
mov ecx, 0x9908b0df
mov edx, dword [rbp - 0xc]
add edx, 0x270
movsxd r8, edx
mov r9, qword [rbp - 0x20]
mov edx, dword [r9 + r8*4 + 4]
and edx, 0x80000000
mov r10d, dword [rbp - 0xc]
add r10d, 0x270
add r10d, 1
movsxd r8, r10d
mov r10d, dword [r9 + r8*4 + 4]
and r10d, 0x7fffffff
or edx, r10d
mov dword [rbp - 0x14], edx
mov edx, dword [rbp - 0x14]
shr edx, 1
mov r10d, dword [rbp - 0x14]
and r10d, 1
cmp r10d, 0
cmovne eax, ecx
xor edx, eax
mov eax, dword [rbp - 0xc]
sub eax, 0x270
add eax, 0x18d
movsxd r8, eax
xor edx, dword [r9 + r8*4 + 4]
movsxd r8, dword [rbp - 0xc]
mov dword [r9 + r8*4 + 4], edx
mov eax, dword [rbp - 0xc]
add eax, 1
mov dword [rbp - 0xc], eax
jmp 0x408d45
xor eax, eax
mov ecx, 0x9908b0df
mov edx, dword [rbp - 0xc]
add edx, 0x270
movsxd r8, edx
mov r9, qword [rbp - 0x20]
mov edx, dword [r9 + r8*4 + 4]
and edx, 0x80000000
mov r10d, dword [r9 + 4]
and r10d, 0x7fffffff
or edx, r10d
mov dword [rbp - 0x18], edx
mov edx, dword [rbp - 0x18]
shr edx, 1
mov r10d, dword [rbp - 0x18]
and r10d, 1
cmp r10d, 0
cmovne eax, ecx
xor edx, eax
xor edx, dword [r9 + 0x634]
movsxd r8, dword [rbp - 0xc]
mov dword [r9 + r8*4 + 4], edx
mov dword [r9], 0
add rsp, 0x20
pop rbp
ret
Function at 0x180002bb0
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x60]
mov r10, qword [rax + 0x18]
add r10, 0x10
mov eax, dword [0x180020a94]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a98], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r9b
or r9b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r14b
or r14b, al
lea rax, [rcx - 1]
mov r15, r10
test r8b, r8b
je 0x180002ce0
mov r15, qword [r15]
cmp r15, r10
je 0x180002d02
mov rdi, rax
test r9b, r9b
je 0x180002cf0
nop word cs:[rax + rax]
nop
cmp byte [rdi + 1], 0
lea rdi, [rdi + 1]
jne 0x180002c60
test r14b, r14b
je 0x180002d00
sub rdi, rcx
je 0x180002cc8
mov r12, qword [r15 + 0x60]
xor edx, edx
nop
movzx esi, word [r12 + rdx*2]
lea ebx, [rsi - 0x41]
lea ebp, [rsi + 0x20]
cmp bx, 0x1a
cmovae ebp, esi
movsx ebx, byte [rcx + rdx]
lea r13d, [rbx - 0x41]
lea r11d, [rbx + 0x20]
cmp r13b, 0x1a
cmovae r11d, ebx
sub ebp, r11d
test esi, esi
je 0x180002cc0
test ebp, ebp
jne 0x180002cc0
add rdx, 1
cmp rdi, rdx
jne 0x180002c80
jmp 0x180002cc8
test ebp, ebp
jne 0x180002c34
mov rax, qword [r15 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002ce0
jmp 0x180002cf0
jmp 0x180002d00
xor eax, eax
jmp 0x180002ccc
Function at 0x140002dac
Capabilities:
Parse pe header

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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x1800024c2
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x1800024c2
nop word cs:[rax + rax]
jmp 0x1800024c0
mov rax, qword gs:[0x60]
mov r11, qword [rax + 0x18]
add r11, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
or r9b, al
lea r10, [rcx - 1]
xor eax, eax
mov r14, r11
mov r14, qword [r14]
cmp r14, r11
je 0x180002598
mov rsi, r10
test r8b, r8b
je 0x1800025b0
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180002530
test r9b, r9b
je 0x1800025c0
sub rsi, rcx
je 0x180002594
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180002590
test ebp, ebp
jne 0x180002590
add rbx, 1
cmp rsi, rbx
jne 0x180002550
jmp 0x180002594
test ebp, ebp
jne 0x18000251c
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x1800025b0
jmp 0x1800025c0
Function at 0x180011350
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov r10d, ecx
and r10d, 7
je 0x180011384
cmp ecx, r10d
jge 0x180011372
mov rcx, rbx
call fcn.180010b40
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
xor r8d, r8d
mov eax, ecx
test ecx, ecx
jle 0x1800113be
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x1800113a0
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x1800113ed
mov edx, dword [0x180185410]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.zlib_corrupt
mov qword [rcx + rax], rdx
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x18001141f
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
nop dword [rax]
cmp rax, r8
jb 0x180011409
xor dl, dl
jmp 0x180011412
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x180011400
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x1800113c2
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x180011494
mov edx, dword [0x180185410]
mov rax, qword gs:[0x58]
mov ecx, 0x28
mov rax, qword [rax + rdx*8]
lea rdx, str.read_past_buffer
mov qword [rcx + rax], rdx
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x1800114ae
mov rcx, rbx
call fcn.180010c80
test eax, eax
je 0x180011487
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x18001ac90
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x180124040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rdx
lea rcx, [rsp + 0x38]
call fcn.180030660
mov rcx, rax
call fcn.18001abf0
test al, al
jne 0x18001acfe
mov r8, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x18001acdc
mov r8, qword [rbx]
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x18001ace9
mov rdx, qword [rdi]
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
nop
mov rcx, rdi
call fcn.18006f830
nop
mov rcx, rbx
call fcn.18006f830
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1800e23b0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x18001d840
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x180124040]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rbp + 7], rcx
mov qword [rbp + 0xf], rdx
xor esi, esi
mov rdx, rcx
lea rcx, [rbp - 0x39]
call fcn.180030660
nop
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.180030660
nop
lea ecx, [rsi + 0x40]
call fcn.1800e2674
movaps xmm0, xmmword [rbp - 0x39]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [rbp - 0x29]
movups xmmword [rax + 0x10], xmm1
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x21], 0xf
mov byte [rbp - 0x39], sil
movaps xmm0, xmmword [rbp - 0x19]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [rbp - 9]
movups xmmword [rax + 0x30], xmm1
mov qword [rbp - 9], rsi
mov qword [rbp - 1], 0xf
mov byte [rbp - 0x19], sil
mov qword [rbp + 0x27], rax
lea rcx, [rbp + 0x1f]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x180084800]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x17], rax
test rax, rax
je 0x18001d973
lea rcx, [rbp - 0x19]
call fcn.18006f830
lea rcx, [rbp - 0x39]
call fcn.18006f830
cmp dword [rbp + 0x1f], esi
je 0x18001d967
movaps xmm0, xmmword [rbp + 0x17]
movdqa xmmword [rbp + 0x27], xmm0
lea rcx, [rbp + 0x27]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x18001d967
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x17], xmm0
mov rcx, rbx
call fcn.18006f830
nop
mov rcx, rdi
call fcn.18006f830
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1800e23b0
mov rbx, qword [rsp + 0xe0]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp + 0x1f], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3