joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400050a0
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400f80c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rdx + 0x18], 0xf
mov edi, r9d
mov rsi, qword [rsp + 0xa0]
mov rbx, r8
mov rcx, qword [rsp + 0xb0]
jbe 0x1400050d7
mov rdx, qword [rdx]
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], r8
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r8
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r8d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14000514a
cmp qword [rbx + 0x18], 0xf
jbe 0x140005112
mov rbx, qword [rbx]
mov eax, dword [rsp + 0xa8]
mov r9d, edi
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete al
jmp 0x14000514c
xor al, al
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400c60f0
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret

Function at 0x140005630
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140005658
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000567e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140005680
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400056d9
test ecx, ecx
jle 0x1400056b9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400056d9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400056d9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140005700
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140005722
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140005738
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140005754
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005756
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005792
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000582e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400057cd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000580e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000582e
cmp rbx, rax
ja 0x1400057e0
test rbx, rbx
je 0x14000582e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140005ca0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400f80c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140005ccd
xor eax, eax
jmp 0x140005e39
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005d07
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140005d07
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140005e39
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140005e2c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140005d4a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005d75
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140005e31
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005de4
sub eax, 1
je 0x140005de4
cmp eax, 2
jne 0x140005e2c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140005e31
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005e12
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140005e2c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140005e31
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400c60f0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400080b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400f80c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140008183
cmp byte [rcx + 0x71], 0
je 0x140008183
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14000817f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140008144
sub eax, 1
je 0x140008148
cmp eax, 2
jne 0x14000817f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400c60f0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140008176
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000817f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000812c
xor al, al
jmp 0x14000812c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400c60f0
add rsp, 0x60
pop rbx
ret
Function at 0x140019570
Capabilities:
Terminate process

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x1400f80c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, r9
mov rsi, r8
mov ebx, edx
mov rbp, rcx
call fcn.140043c00
test rax, rax
je 0x1400195a7
mov eax, 1
jmp 0x140019729
cmp ebx, 0x112
ja 0x140019668
je 0x140019652
cmp ebx, 2
je 0x140019645
cmp ebx, 5
je 0x14001962d
cmp ebx, 0x100
jne 0x140019676
cmp rsi, 0x2e
jne 0x140019697
xor edx, edx
call fcn.14005da80
lea rcx, [0x140145e50]
call fcn.140019740
mov rcx, rax
call fcn.14005c330
mov edx, 0xfffffe0c
call fcn.140058130
lea edx, [rsi - 1]
call fcn.140057f80
lea edx, [rsi - 0x2d]
call fcn.14005c350
mov rcx, qword [0x140145db0]
test rcx, rcx
je 0x140019624
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp rsi, 1
je 0x140019727
movzx eax, di
mov dword [0x140145de8], eax
jmp 0x140019727
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x140019727
mov rax, rsi
and eax, 0xfff0
cmp rax, 0xf100
je 0x140019727
jmp 0x140019676
mov eax, ebx
sub eax, 0x200
je 0x140019697
cmp eax, 1
je 0x14001968c
mov r9, rdi
mov r8, rsi
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.USER32.dll_DefWindowProcW]
jmp 0x140019729
mov dword [0x140145dc0], edi
jmp 0x140019727
cmp rsi, 1
jne 0x140019727
xorps xmm0, xmm0
lea rdx, [rsp + 0x40]
mov rcx, rbp
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [0x140145dc0]
movsx ecx, ax
movsx edx, di
sub edx, ecx
shr edi, 0x10
add dword [rsp + 0x40], edx
movsx ecx, word [0x140145dc2]
movsx edx, di
sub edx, ecx
add dword [rsp + 0x44], edx
test ax, ax
js 0x140019727
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
movsx ecx, word [0x140145dc0]
cmp ecx, eax
jg 0x140019727
cmp word [0x140145dc2], 0x13
ja 0x140019727
mov r9d, dword [rsp + 0x44]
lea rdx, [rsi - 2]
mov r8d, dword [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x30], 0x45
mov rcx, rbp
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400c60f0
add rsp, 0x68
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14001c040
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 0x14001c09d
lea rbx, [0x1400dcbe0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14001c084
cmp r10, 2
jb 0x14001c084
cmp byte [r9], r8b
jne 0x14001c084
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 0x14001c060
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14001c0df
lea rbx, [0x1400dcbe0]
cmp r8b, 0x23
jne 0x14001c0c3
cmp byte [r9], r8b
jne 0x14001c0c3
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 0x14001c0b0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x14001c220
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14001c23a
mov qword [r8], 0
lea rdx, [0x1400e1d74]
call fcn.14001c0f0
mov rbx, rax
test rax, rax
jne 0x14001c25a
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 0x14001c331
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 0x14001c331
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14001c331
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 0x14001c331
cmp rdi, 0xffffffffffffffff
je 0x14001c331
mov rax, qword [0x140145e00]
test rax, rax
je 0x14001c2ce
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14001c331
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 0x14001c31e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140145e00]
test rax, rax
je 0x14001c313
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14001c33a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14001c32c
mov qword [r14], rdi
mov rax, rsi
jmp 0x14001c33c
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 0x14001e870
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xd0]
mov rax, qword [rcx + 0xd8]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x1400dcbe0]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [0x140145e00]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ec4], ebx
jne 0x14001e906
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.140030ca0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14002af40
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400f80c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140145e00]
mov edi, ecx
cmp byte [rbx + 0x423d], 0
jne 0x14002afa1
cmp byte [rbx + 0x423e], 0
jne 0x14002afa1
movsx r9d, word [rbx + 0x5332]
lea r8, str.Tooltip__02d
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x20]
call fcn.14001bf00
test dil, 1
je 0x14002b0c8
jmp 0x14002b02a
movss xmm1, dword [rbx + 0x3898]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5332]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1400e44c4]
mulss xmm1, dword [0x1400e44ac]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xdfc]
addss xmm1, dword [rbx + 0xe00]
mov qword [rbx + 0x3fa8], rax
mov dword [rbx + 0x3f94], 1
movss dword [rbx + 0x3fa0], xmm0
movss dword [rbx + 0x3fa4], xmm1
movss xmm0, dword [rbx + 0x38f4]
mulss xmm0, dword [0x1400e4424]
or dword [rbx + 0x3f90], 0x41
movss dword [rbx + 0x3ff0], xmm0
call fcn.14001bf00
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14002b080
lea r11, [0x1400dcbe0]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x14002b063
cmp byte [r8], r9b
jne 0x14002b063
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 0x14002b050
not ecx
call fcn.140023e80
test rax, rax
je 0x14002b0c8
cmp byte [rax + 0x96], 0
je 0x14002b0c8
mov byte [rax + 0x9d], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb8], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5332]
mov edx, reloc.WS2_32.dll_recv
movsx r9d, word [rbx + 0x5332]
call fcn.14001bf00
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.1400265f0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400c60f0
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14002f870
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 + 0x53e0], 0
lea rbx, [rcx + 0x53e8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14002f917
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14002f8ca
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.1400319e0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14001c740
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x53e0]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x53f0]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140145da7]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14002f91f
mov rcx, rbx
call fcn.14001c740
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14002fe90
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140145e00]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14002fef3
mov qword [rsp], rbx
lea rbx, [0x1400dcbe0]
nop dword [rax]
cmp r9b, 0x23
jne 0x14002fed3
cmp byte [r8], r9b
jne 0x14002fed3
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14002fec0
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5390]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x14002ff27
mov r10, qword [r10 + 0x5398]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x14002ff2e
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x14002ff14
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x140052310
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x1400f80c0]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x38], rcx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea edx, [r13 + 1]
lea rcx, str.Apidog
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r12, rax
test rax, rax
je 0x1400523a5
cmp qword [rbx + 0x18], 0xf
jbe 0x140052375
mov rbx, qword [rbx]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r15, rax
test rax, rax
jne 0x1400523cb
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x18], r13
xor r8d, r8d
lea rdx, [0x1400dac75]
mov rcx, rbp
call fcn.14000c490
jmp 0x1400524d5
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov rdi, r13
mov qword [rsp + 0x50], r13
mov r14d, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x58], r14
mov byte [rsp + 0x40], dil
mov dword [rsp + 0x38], r13d
lea r9, [rsp + 0x38]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400524b1
movzx ebx, byte [rsp + 0x30]
nop word [rax + rax]
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x1400524b1
mov esi, eax
mov rax, r14
sub rax, rdi
cmp rsi, rax
ja 0x14005246a
lea rax, [rdi + rsi]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
cmp r14, 0xf
cmova rax, qword [rsp + 0x40]
add rdi, rax
mov r8d, esi
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rsi], 0
jmp 0x140052485
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x60]
movzx r8d, bl
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.14000e940
lea r9, [rsp + 0x38]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400524b1
mov r14, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
jmp 0x140052420
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbp + 0x10], xmm1
mov rax, rbp
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400c60f0
mov rbx, qword [rsp + 0x4c0]
add rsp, 0x470
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005d0a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400f80c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
cmp byte [0x140145da2], 0
je 0x14005d1c7
xor eax, eax
xchg byte [rcx + 0x38], al
cmp dword [rcx + 0x48], 0
je 0x14005d118
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rdi + 0x48], eax
jne 0x14005d0eb
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movups xmm0, xmmword [rdi + 0x40]
movaps xmmword [rsp + 0x40], xmm0
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x14005d111
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xorps xmm0, xmm0
movups xmmword [rdi + 0x40], xmm0
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400c6144
mov qword [rax], rdi
lea rcx, [0x14005c910]
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400198a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14005d1b3
cmp dword [rdi + 0x48], 0
jne 0x14005d1ac
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm1
cmp dword [rdi + 0x48], 0
je 0x14005d1a0
movaps xmmword [rsp + 0x30], xmm1
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x14005d1a0
xorps xmm0, xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x14005d1cf
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov eax, 1
xchg byte [rcx + 0x38], al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400c60f0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret