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

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1801a2008]
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 0x1800b2585
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 0x1800b25e6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.18008bf10
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.180077000
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 0x1800b26a1
sub ecx, 1
je 0x1800b2714
sub ecx, 1
je 0x1800b2650
cmp ecx, 1
je 0x1800b2633
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1800ce630]
call fcn.18008bf10
jmp 0x1800b2714
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1800b2220
test eax, eax
je 0x1800b2714
jmp 0x1800b25ba
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 0x1800b2714
sub rax, rsi
cmp rax, rbp
jae 0x1800b2714
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.18008c090
jmp 0x1800b2714
cmp r8d, 4
jle 0x1800b2714
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 0x1800b2714
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.18008be30
mov esi, eax
test eax, eax
je 0x1800b26f3
mov edx, 5
mov rcx, rbx
call fcn.1800b31e0
mov eax, esi
jmp 0x1800b25ba
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.18009b440
mov rcx, r14
call fcn.18009b720
test eax, eax
je 0x1800b25b8
mov edx, 5
mov rcx, rbx
call fcn.1800b31e0
mov eax, Ordinal_45
jmp 0x1800b25ba
Function at 0x1800c55f0
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 0x1800c5632
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 0x1800c5679
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 0x1800c56d2
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 0x1800c5690
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1800c5713
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1800e3a22]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1800e3a23]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1800c56e0
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 0x180002c20
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x180002c7d
lea rbx, [0x1800d2c70]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180002c64
cmp r10, 2
jb 0x180002c64
cmp byte [r9], r8b
jne 0x180002c64
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180002c40
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180002cbf
lea rbx, [0x1800d2c70]
cmp r8b, 0x23
jne 0x180002ca3
cmp byte [r9], r8b
jne 0x180002ca3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180002c90
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x180002e00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180002e1a
mov qword [r8], 0
lea rdx, [0x1800d26bc]
call fcn.180002cd0
mov rbx, rax
test rax, rax
jne 0x180002e3a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x180002f11
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180002f11
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x180002f11
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x180002f11
cmp rdi, 0xffffffffffffffff
je 0x180002f11
mov rax, qword [0x1801025b0]
test rax, rax
je 0x180002eae
inc dword [rax + 0x3b0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180002f11
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x180002efe
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1801025b0]
test rax, rax
je 0x180002ef3
dec dword [rax + 0x3b0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180002f1a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180002f0c
mov qword [r14], rdi
mov rax, rsi
jmp 0x180002f1c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x180010de0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov rax, qword [0x1801025b0]
lea r10, [0x1800d2c70]
mov r9, qword [rax + 0x1d18]
movsxd rdx, dword [r9 + 0x108]
mov rax, qword [r9 + 0x110]
mov r8d, dword [rax + rdx*4 - 4]
not r8d
movzx eax, cl
movzx edx, r8b
shr r8d, 8
xor rdx, rax
movzx eax, byte [rsp + 0x31]
xor r8d, dword [r10 + rdx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x32]
xor r8d, dword [r10 + rcx*4]
movzx ecx, r8b
shr r8d, 8
xor rcx, rax
movzx eax, byte [rsp + 0x33]
xor r8d, dword [r10 + rcx*4]
lea rcx, [r9 + 0x108]
movzx edx, r8b
xor rdx, rax
shr r8d, 8
xor r8d, dword [r10 + rdx*4]
lea rdx, [rsp + 0x30]
not r8d
mov dword [rsp + 0x30], r8d
call fcn.1800226c0
add rsp, 0x28
ret

Function at 0x180011970
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1800ed080]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1801025b0]
mov edi, edx
cmp byte [rbx + 0x20d5], 0
jne 0x1800119d0
cmp byte [rbx + 0x20d6], 0
jne 0x1800119d0
mov r9d, dword [rbx + 0x3178]
lea r8, str.Tooltip__02d
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.180002ba0
test dil, 1
je 0x180011af6
jmp 0x180011a5f
movss xmm1, dword [rbx + 0x16ec]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x3178]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1800d8ae4]
mulss xmm1, dword [0x1800d8ad4]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x120]
addss xmm1, dword [rbx + 0x124]
mov qword [rbx + 0x1ddc], rax
mov dword [rbx + 0x1dc4], 1
movss dword [rbx + 0x1dd4], xmm0
mov byte [rbx + 0x1dfc], 1
movss dword [rbx + 0x1dd8], xmm1
movss xmm0, dword [rbx + 0x1748]
mulss xmm0, dword [0x1800d8a28]
or dword [rbx + 0x1dc0], 0x41
movss dword [rbx + 0x1e20], xmm0
call fcn.180002ba0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x180011ab0
lea r11, [0x1800d2c70]
nop
cmp r9b, 0x23
jne 0x180011a93
cmp byte [r8], r9b
jne 0x180011a93
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180011a80
not ecx
call fcn.18000a960
test rax, rax
je 0x180011af6
cmp byte [rax + 0xcf], 0
je 0x180011af6
mov byte [rax + 0xd6], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xf0], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x3178]
mov edx, reloc.WS2_32.dll_recv
mov r9d, dword [rbx + 0x3178]
call fcn.180002ba0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x22c0347
call fcn.18000d410
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800be3d0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180016770
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x3260], 0
lea rbx, [rcx + 0x3268]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180016817
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x1800167ca
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180022fd0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1800034d0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x3260]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x3270]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1801025a8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18001681f
mov rcx, rbx
call fcn.1800034d0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x180016c60
Capabilities:
Hash data with crc32

Disassembly:
push rbx
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10d, 0xffffffff
mov rbx, rcx
mov eax, r10d
test r9b, r9b
je 0x180016cb2
lea r11, [0x1800d2c70]
cmp r9b, 0x23
jne 0x180016c95
cmp byte [r8], r9b
jne 0x180016c95
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180016c82
mov r11, qword [0x1801025b0]
mov r10, qword [r11 + 0x3228]
test r10, r10
je 0x180016cf9
lea r9, [r10 + 4]
test r9, r9
je 0x180016cf9
not eax
cmp dword [r9], eax
je 0x180016d02
movsxd r8, dword [r9 - 4]
movsxd rdx, dword [r11 + 0x3220]
add r8, r9
add rdx, 4
xor r9d, r9d
add rdx, r10
cmp r8, rdx
cmovne r9, r8
test r9, r9
jne 0x180016cd0
mov rcx, rbx
pop rbx
jmp fcn.180016b70
mov rax, r9
pop rbx
ret
Function at 0x18001a1f0
Capabilities:
Hash data with crc32

Disassembly:
test r8d, r8d
jle 0x18001a42e
mov r11, rsp
push rbp
push rsi
sub rsp, 0x58
mov rax, qword [0x1800ed080]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [r11 - 0x18], rdi
mov rbp, rcx
mov qword [r11 - 0x20], r14
lea rdi, [rdx + 0x1a]
mov qword [r11 - 0x28], r15
mov r14d, 0xffffffff
lea r15, [0x1800d2c70]
mov qword [r11 + 0x18], rbx
movsxd rsi, r8d
nop dword [rax + rax]
mov edx, dword [rdi - 0x1a]
test edx, edx
je 0x18001a3f6
mov rcx, rbp
call fcn.180019880
mov r9d, dword [rdi - 0x16]
mov rbx, rax
test r9d, r9d
je 0x18001a2c1
movsxd rdx, dword [rbp + 0x31c0]
mov r8, qword [rbp + 0x31c8]
mov r10, rdx
shl r10, 4
add r10, r8
test rdx, rdx
je 0x18001a2b1
nop dword [rax]
mov rcx, rdx
shr rcx, 1
mov rax, rcx
add rax, rax
cmp dword [r8 + rax*8], r9d
jae 0x18001a2a9
lea r8, [r8 + rax*8]
mov rax, 0xffffffffffffffff
sub rax, rcx
add r8, 0x10
add rdx, rax
jmp 0x18001a2ac
mov rdx, rcx
test rdx, rdx
jne 0x18001a280
cmp r8, r10
je 0x18001a2c1
cmp dword [r8], r9d
jne 0x18001a2c1
mov rcx, qword [r8 + 8]
jmp 0x18001a2c3
xor ecx, ecx
mov qword [rbx + 0x10], rcx
movsx eax, word [rdi - 2]
movd xmm1, eax
movsx eax, word [rdi]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x40], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x44], xmm0
movsx eax, word [rdi + 2]
movd xmm1, eax
movsx eax, word [rdi + 4]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
movss dword [rbx + 0x48], xmm1
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x4c], xmm0
movsx eax, word [rdi + 6]
movd xmm1, eax
movsx eax, word [rdi + 8]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [rbx + 0xb8]
and eax, 0xfffffe49
movss dword [rbx + 0x50], xmm1
or eax, 0x49
mov dword [rbx + 0xb8], eax
cvtdq2ps xmm0, xmm0
movss dword [rbx + 0x54], xmm0
test rcx, rcx
je 0x18001a357
cmp qword [rcx + 0x18], 0
jne 0x18001a34c
mov qword [rcx + 0x18], rbx
jmp 0x18001a357
cmp qword [rcx + 0x20], 0
jne 0x18001a357
mov qword [rcx + 0x20], rbx
mov eax, dword [rdi - 0xe]
mov r9, rbx
mov dword [rbx + 0xb0], eax
movsx eax, byte [rdi - 0xa]
mov dword [rbx + 0x58], eax
mov eax, dword [rdi - 6]
and eax, 0x61fc20
or dword [rbx + 8], eax
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x18001a38c
nop
mov r9, rax
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x18001a380
mov r9d, dword [r9]
lea r8, str.DockNode__02X
mov edx, reloc.WS2_32.dll_sendto
lea rcx, [rsp + 0x20]
call fcn.180002ba0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov ecx, r14d
test r9b, r9b
je 0x18001a3e8
cmp r9b, 0x23
jne 0x18001a3cb
cmp byte [r8], r9b
jne 0x18001a3cb
cmp byte [r8 + 1], r9b
cmove ecx, r14d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r15 + rdx*4]
test r9b, r9b
jne 0x18001a3b8
not ecx
call fcn.18000a960
mov qword [rbx + 0x80], rax
add rdi, 0x24
sub rsi, 1
jne 0x18001a240
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800be3d0
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x18004bf60
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x13e0
call fcn.1800bf1e0
sub rsp, rax
mov rax, qword [0x1800ed080]
xor rax, rsp
mov qword [rsp + 0x13d0], rax
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13c4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x44], eax
nop dword [rax]
nop dword [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x44], eax
inc rdx
cmp rdx, 0x270
jb 0x18004bfb0
mov dword [rsp + 0x40], 0x270
mov edi, reloc.WLDAP32.dll_Ordinal_200
mov dword [rsp + 0x20], 3
mov esi, 0xffffffff
nop dword [rax]
lea rcx, [rsp + 0x40]
call fcn.180057700
mov ecx, eax
imul rax, rcx, 0x439
cmp eax, 0x319
ja 0x18004c02a
nop word [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.180057700
mov ecx, eax
imul rax, rcx, 0x439
cmp eax, 0x31a
jb 0x18004c010
shr rax, 0x20
lea rcx, [rsp + 0x40]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
call fcn.180057700
mov ecx, eax
mov rbx, rdi
movaps xmm1, xmm0
imul rax, rcx, 0x781
cmp eax, 0x781
jae 0x18004c07a
cmp eax, 0x4eb
jae 0x18004c07a
nop dword [rax]
lea rcx, [rsp + 0x40]
call fcn.180057700
mov ecx, eax
imul rax, rcx, 0x781
cmp eax, 0x4eb
jb 0x18004c060
mov rdx, qword [0x180102668]
shr rax, 0x20
cmp rdx, qword [0x180102670]
movss dword [rsp + 0x28], xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x24], xmm0
je 0x18004c0b8
unpcklps xmm0, xmm1
movsd qword [rdx], xmm0
add qword [0x180102668], 8
movsd qword [rsp + 0x24], xmm0
jmp 0x18004c0c9
lea r8, [rsp + 0x24]
lea rcx, [0x180102660]
call fcn.180056f10
lea rcx, [rsp + 0x40]
call fcn.180057700
mov eax, eax
lea rcx, [rsp + 0x40]
add rax, rax
shr rax, 0x20
lea eax, [rax*2 - 1]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call fcn.180057700
mov rdx, qword [0x180102680]
mov ecx, eax
mov eax, 1
add rcx, rcx
movss dword [rsp + 0x30], xmm1
shr rcx, 0x20
test ecx, ecx
cmove eax, esi
cmp rdx, qword [0x180102688]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x2c], xmm0
je 0x18004c141
unpcklps xmm0, xmm1
movsd qword [rdx], xmm0
add qword [0x180102680], 8
movsd qword [rsp + 0x2c], xmm0
jmp 0x18004c152
lea r8, [rsp + 0x2c]
lea rcx, [0x180102678]
call fcn.180056f10
mov rdx, qword [0x1801026f8]
cmp rdx, qword [0x180102700]
je 0x18004c172
mov dword [rdx], 3
add qword [0x1801026f8], 4
jmp 0x18004c17c
lea r8, [rsp + 0x20]
call fcn.180056d60
lea rdi, [rbx - 1]
test rdi, rdi
jne 0x18004bff0
mov rcx, qword [rsp + 0x13d0]
xor rcx, rsp
call fcn.1800be3d0
lea r11, [rsp + 0x13e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x18004c480
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rbx, rdx
mov rdi, rcx
mov rcx, rdx
call fcn.18004c510
test al, al
jne 0x18004c4ce
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x18004c4a9
mov r8, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x18004c4b3
mov rdi, qword [rdi]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
js 0x18004c4e2
mov rcx, rbx
call fcn.18004c970
nop
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
lea rdx, str.Erro_ao_baixar_o_arquivo.
lea rcx, [rsp + 0x38]
call fcn.180047bf0
lea rdx, [0x1800e82b0]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x18004c970
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0xc8
mov rax, qword [0x1800ed080]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [r11 - 0x48], xmm0
movups xmmword [r11 - 0x38], xmm0
movups xmmword [r11 - 0x28], xmm0
mov dword [rsp + 0x40], reloc.WS2_32.dll_WSASetLastError
mov dword [rsp + 0x44], 0x40
cmp qword [rcx + 0x18], 8
jb 0x18004c9cc
mov rcx, qword [rcx]
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x18004ca22
mov edx, 0x3e8
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800be3d0
add rsp, 0xc8
ret
lea rdx, str.Erro_ao_executar_o_arquivo.
lea rcx, [rsp + 0x28]
call fcn.180047bf0
lea rdx, [0x1800e82b0]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x18004da30
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0xf8
mov rax, qword [0x1800ed080]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0x70], WSAGetLastError
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xor edx, edx
cmp qword [rcx + 0x18], 0x10
movups xmmword [r11 - 0x50], xmm0
mov dword [r11 - 0x4c], 1
mov word [r11 - 0x48], dx
movups xmmword [r11 - 0x70], xmm0
movups xmmword [r11 - 0x60], xmm0
movups xmmword [r11 - 0x40], xmm0
movups xmmword [r11 - 0x30], xmm0
jb 0x18004da8e
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], edx
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x18004db07
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1800be3d0
add rsp, 0xf8
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1800be3d0
add rsp, 0xf8
ret

Function at 0x18004de30
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rdx + 0x18], 0x10
mov rdi, rdx
mov rbx, rcx
jb 0x18004de4a
mov rdx, qword [rdx]
cmp qword [rcx + 0x18], 0x10
jb 0x18004de54
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
test eax, eax
je 0x18004dec2
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Erro_ao_mover_o_arquivo
call fcn.1800547f0
cmp qword [rbx + 0x18], 0x10
mov r8, qword [rbx + 0x10]
jb 0x18004de7f
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1800565b0
lea rdx, str._para
mov rcx, rax
call fcn.1800547f0
cmp qword [rdi + 0x18], 0x10
mov r8, qword [rdi + 0x10]
jb 0x18004dea7
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rax
call fcn.1800565b0
lea rdx, [0x1800549c0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800516b0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800516d8
xor eax, eax
lea r8, [0x18004f6d0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret