joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d7d8a10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f95e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d8b98
mov rax, qword [0x6d7f95e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d8a5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d8ae5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d8a40
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d8bcd
mov rax, qword [0x6d7f95e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f95e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d8bb0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d8ade
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d8b40
add dword [0x6d7f95e4], 1
cmp edi, 8
jae 0x6d7d8b13
test dil, 4
jne 0x6d7d8b84
test edi, edi
je 0x6d7d8b08
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d8b9f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d8b08
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d8b2c
jmp 0x6d7d8b08
add rsi, qword [0x6d7f95e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d8ade
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d8b08
xor esi, esi
jmp 0x6d7d8a67
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d8b08
mov rax, qword [0x6d7f95e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d9320
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f98c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f98a0]
test rbx, rbx
je 0x6d7d9374
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d936b
test rsi, rsi
je 0x6d7d936b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d9350
lea rcx, [0x6d7f98c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d95b0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7d95c0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7d95d0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7d9611
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d9608
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d9613
add rax, 0x28
cmp rax, r9
jne 0x6d7d95f4
xor eax, eax
ret

Function at 0x6d7d96b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f61f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d971d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d971d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d971d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d9714
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d971f
add rax, 0x28
cmp rax, r9
jne 0x6d7d9700
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d9820
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f61f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d9840
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d9838
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d989d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d9894
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d98a4
add rax, 0x28
cmp rax, r9
jne 0x6d7d9880
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d98c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f61f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d992e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d992e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d992e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d992e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d9925
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d9935
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d9910
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d9948
jmp 0x6d7d992e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d9956
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d992e
test r9d, r9d
jg 0x6d7d9940
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d9c90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140008dd0
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 case.default.0x140008df1
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 0x140008e1e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140008e20
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140008e79
test ecx, ecx
jle 0x140008e59
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 0x140008e79
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140008e79
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
add byte [rax], ch
add ch, ah
add ch, ah
add byte [rcx], ch
add al, ch
add al, ch
add byte [rdx], ch
add dl, ch
add dl, ch
add byte [rbx], ch
add bh, dh
add bh, dh
add byte [rax + rax], ch
cli
add dl, bh
add byte [0x13c1dc670], ch
sub eax, 0xfc00fc00
add byte [rsi], ch
add dh, bh
add dh, bh
add byte [rdi], ch
add dword [rbx], eax
add dword [rbx], eax
add byte [rax], dh
add dword [0x1711ccf85], eax
add dword [rsi], ecx
add dword [rsi], ecx
add byte [rdx], dh
add dword [rax], ebx
add dword [rax], ebx
add byte [rbx], dh
add dword [rdx], ebx
add dword [rdx], ebx
add byte [rcx + rax], dh
sbb al, 1
sbb al, 0
xor eax, 0x1e011e01
add byte [rsi], dh
add dword [rax], esp
add dword [rax], esp
add byte [rdi], dh
add dword [rdx], esp
add dword [rdx], esp
add byte [rax], bh
add dword [rcx + rax], esp
and al, 0
cmp dword [rcx], eax
add dword es:[rsi], esp
add byte [rdx], bh
add dword [rax], ebp
add dword [rax], ebp
add byte [rbx], bh
add dword [rdx], ebp
add dword [rdx], ebp
add byte [rcx + rax], bh
add dword [r13], r8d
cmp eax, 0x47014701
add byte [rsi], bh
add dword [rcx + 1], edx
push rcx
add byte [rdi], bh
add dword [rbx + 1], edx
push rbx
add byte [rax + 1], al
push rbp
add dword [rbp], edx
add dword [r11 + 1], esp
invalid
Function at 0x140008ea0
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 0x140008ec2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140008ed1
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 0x140008ef4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008ef6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140008f32
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 0x140008fce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140008f6d
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 0x140008fae
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 0x140008fce
cmp rbx, rax
ja 0x140008f80
test rbx, rbx
je 0x140008fce
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
add byte [0x1461cf912], ch
add byte [rdx], dh
xor al, byte [rax]
cmp eax, 0x62000900
add byte [rax + rax + 0x15], ah
add byte [rdi], ah
push 0xffffffff92001800
add byte [rdx - 0x52ffe600], dl
add byte [rax - 0x44ffe500], dh
add byte [rbx - 0x38ffe100], bh
add bh, al
add byte [rax], ah
add cl, cl
add cl, cl
add byte [rcx], ah
add al, dl
add ch, dl
add byte [rdx], ah
add bl, ah
add bl, ah
Function at 0x140009430
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400fc080]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000945d
xor eax, eax
jmp 0x1400095c9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140009497
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140009497
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 0x1400095c9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400095bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400094da
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 0x140009505
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 0x1400095c1
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 0x140009574
sub eax, 1
je 0x140009574
cmp eax, 2
jne 0x1400095bc
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 0x1400095c1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400095a2
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 0x1400095bc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400095c1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400ce030
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000ac50
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400fc080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000ad23
cmp byte [rcx + 0x71], 0
je 0x14000ad23
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14000ad1f
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 0x14000ace4
sub eax, 1
je 0x14000ace8
cmp eax, 2
jne 0x14000ad1f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ce030
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000ad16
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 0x14000ad1f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000accc
xor al, al
jmp 0x14000accc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ce030
add rsp, 0x60
pop rbx
ret
Function at 0x14001c2a0
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [rcx]
test edx, edx
jne 0x14001c2c8
mov dword [rcx + 4], 2
lea rax, [rcx + 4]
cmp edx, 3
jne 0x14001c2f1
mov dword [rax], 4
cmp edx, 0x22
jne 0x14001c2fc
mov dword [rax], Ordinal_79
ret
cmp edx, 1
jne 0x14001c2d2
mov dword [rcx + 4], edx
jmp 0x14001c2ad
cmp edx, 2
jne 0x14001c2ad
lea rax, [rcx + 4]
mov dword [rax], 3
cmp edx, 0x17
jne 0x14001c494
mov dword [rax], Ordinal_60
ret
cmp edx, 4
jne 0x14001c308
mov dword [rax], 5
cmp edx, 0x23
jne 0x14001c313
mov dword [rax], Ordinal_79
ret
cmp edx, 5
jne 0x14001c31f
mov dword [rax], 6
cmp edx, 0x24
jne 0x14001c32a
mov dword [rax], Ordinal_79
ret
cmp edx, 6
jne 0x14001c336
mov dword [rax], 8
cmp edx, 0x25
jne 0x14001c341
mov dword [rax], Ordinal_79
ret
cmp edx, 7
jne 0x14001c34d
mov dword [rax], 9
cmp edx, 0x26
jne 0x14001c358
mov dword [rax], Ordinal_79
ret
cmp edx, 8
jne 0x14001c364
mov dword [rax], recv
cmp edx, 0x27
jne 0x14001c36f
mov dword [rax], reloc.WLDAP32.dll_Ordinal_79
ret
cmp edx, 9
jne 0x14001c37b
mov dword [rax], reloc.WS2_32.dll_listen
cmp edx, 0x28
jne 0x14001c386
mov dword [rax], 0x50
ret
cmp edx, 0xa
jne 0x14001c392
mov dword [rax], reloc.WS2_32.dll_recv
cmp edx, 0x29
jne 0x14001c39d
mov dword [rax], 0x51
ret
cmp edx, 0xb
jne 0x14001c3a9
mov dword [rax], reloc.WS2_32.dll_recvfrom
cmp edx, 0x2a
jne 0x14001c3b4
mov dword [rax], 0x52
ret
cmp edx, 0xc
jne 0x14001c3c0
mov dword [rax], reloc.WS2_32.dll_select
cmp edx, 0x2b
jne 0x14001c3cb
mov dword [rax], 0x53
ret
cmp edx, 0xd
jne 0x14001c3d7
mov dword [rax], reloc.WS2_32.dll_send
cmp edx, 0x2c
jne 0x14001c3e2
mov dword [rax], 0x54
ret
cmp edx, 0xe
jne 0x14001c3ee
mov dword [rax], reloc.WS2_32.dll_sendto
cmp edx, 0x2d
jne 0x14001c3f9
mov dword [rax], 0x55
ret
cmp edx, 0xf
jne 0x14001c405
mov dword [rax], Ordinal_50
cmp edx, 0x2e
jne 0x14001c410
mov dword [rax], 0x56
ret
cmp edx, 0x10
jne 0x14001c41c
mov dword [rax], Ordinal_50
cmp edx, 0x2f
jne 0x14001c427
mov dword [rax], 0x57
ret
cmp edx, 0x11
jne 0x14001c433
mov dword [rax], reloc.WLDAP32.dll_Ordinal_50
cmp edx, 0x30
jne 0x14001c43e
mov dword [rax], 0x58
ret
cmp edx, 0x12
jne 0x14001c44a
mov dword [rax], 0x33
cmp edx, 0x31
jne 0x14001c455
mov dword [rax], 0x59
ret
cmp edx, 0x13
jne 0x14001c461
mov dword [rax], gethostname
cmp edx, 0x32
jne 0x14001c46c
mov dword [rax], 0x5a
ret
cmp edx, 0x14
jne 0x14001c478
mov dword [rax], gethostname
cmp edx, 0x33
jne 0x14001c477
mov dword [rax], Ordinal_26
ret
cmp edx, 0x15
jne 0x14001c484
mov dword [rax], gethostname
ret
cmp edx, 0x16
jne 0x14001c2e1
mov dword [rax], Ordinal_60
ret
cmp edx, 0x18
jne 0x14001c4a0
mov dword [rax], reloc.WS2_32.dll_gethostname
ret
cmp edx, 0x19
jne 0x14001c4ac
mov dword [rax], 0x41
ret
cmp edx, 0x1a
jne 0x14001c4b8
mov dword [rax], 0x42
ret
cmp edx, 0x1b
jne 0x14001c4c4
mov dword [rax], 0x43
ret
cmp edx, 0x1c
jne 0x14001c4d0
mov dword [rax], 0x44
ret
cmp edx, 0x1d
jne 0x14001c4dc
mov dword [rax], 0x45
ret
cmp edx, 0x1e
jne 0x14001c4e8
mov dword [rax], 0x46
ret
cmp edx, 0x1f
jne 0x14001c4f4
mov dword [rax], 0x47
ret
cmp edx, 0x20
jne 0x14001c500
mov dword [rax], 0x48
ret
cmp edx, 0x21
jne 0x14001c2bc
mov dword [rax], 0x49
ret
Function at 0x14001fee0
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 0x14001ff3d
lea rbx, [0x1400e3840]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14001ff24
cmp r10, 2
jb 0x14001ff24
cmp byte [r9], r8b
jne 0x14001ff24
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 0x14001ff00
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14001ff7f
lea rbx, [0x1400e3840]
cmp r8b, 0x23
jne 0x14001ff63
cmp byte [r9], r8b
jne 0x14001ff63
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 0x14001ff50
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400200c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1400200da
mov qword [r8], 0
lea rdx, [0x1400e33bc]
call fcn.14001ff90
mov rbx, rax
test rax, rax
jne 0x1400200fa
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 0x1400201d1
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 0x1400201d1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400201d1
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 0x1400201d1
cmp rdi, 0xffffffffffffffff
je 0x1400201d1
mov rax, qword [0x1401e6b00]
test rax, rax
je 0x14002016e
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 0x1400201d1
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 0x1400201be
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x1401e6b00]
test rax, rax
je 0x1400201b3
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400201da
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x1400201cc
mov qword [r14], rdi
mov rax, rsi
jmp 0x1400201dc
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 0x140023960
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xe8]
mov rax, qword [rcx + 0xf0]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x1400e3840]
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 [0x1401e6b00]
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rcx + 0x3ee8], ebx
jne 0x1400239f6
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.140037290
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140023a00
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
mov rax, qword [rcx + 0xf0]
lea r9, [0x1400e3840]
movss xmm2, dword [rcx + 0x108]
movss xmm3, dword [rcx + 0x10c]
movsxd rcx, dword [rcx + 0xe8]
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movzx ecx, r8b
shr r8d, 8
movss dword [rsp], xmm0
movzx eax, byte [rsp]
xor rcx, rax
movss xmm0, dword [rdx + 8]
movzx eax, byte [rsp + 1]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
movss xmm1, dword [rdx + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 2]
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 3]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 4]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 5]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 6]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 7]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 8]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 9]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xa]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xb]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xc]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xd]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0xe]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0xf]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x18
ret