joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d5af0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d64f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fb108]
test eax, eax
je 0x2fc4d658a
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fb110]
mov qword [rbp - 8], rax
jmp 0x2fc4d656e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d6562
cmp qword [rbp - 0x10], 0
je 0x2fc4d6562
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d6528
lea rax, [0x2fc4fb0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d658b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d6690
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d66b8
mov eax, 0
jmp 0x2fc4d6706
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d66e1
mov eax, 0
jmp 0x2fc4d6706
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d6701
mov eax, 0
jmp 0x2fc4d6706
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00514890]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x005148a0]
mov dword [rax], 1
mov rax, qword [0x005148b0]
mov dword [rax], 1
mov rax, qword [0x00514880]
mov dword [rax], 1
mov rax, qword [0x005145e0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010d0
mov rax, qword [0x00514870]
mov dword [0x0052600c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x005146e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x005146c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00514570]
cmp dword [rax], 1
je 0x401108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401120
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x4015a1
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x20]
mov qword [rbp - 8], rax
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8d, 1
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call sym.fwrite
cmp rax, 1
je 0x4015e7
mov eax, 0xffffffff
jmp 0x4015ec
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x402632
Capabilities:
Hash data using djb2

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0x1505
jmp 0x402672
mov rax, qword [rbp - 0x10]
shl rax, 5
mov rdx, rax
mov rax, qword [rbp - 0x10]
add rdx, rax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x10], rax
add qword [rbp - 8], 1
mov rax, qword [rbp - 8]
movzx eax, byte [rax]
movsx rax, al
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x402650
mov rax, qword [rbp - 0x10]
add rsp, 0x20
pop rbp
ret
Function at 0x414986
Capabilities:
Terminate thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call rax
mov edx, eax
lea rax, [rbp - 0x30]
mov r8d, edx
lea rdx, str.libusb_init_08X
mov rcx, rax
call sym.sprintf
lea rax, [rbp - 0x30]
mov r9, rax
mov r8d, 1
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x414bcc
mov rax, qword [rbp - 0x10]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
test eax, eax
je 0x414a0c
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x414bcd
mov eax, dword [0x004f1c40]
sub eax, 1
mov dword [0x004f1c40], eax
mov eax, dword [0x004f1c40]
test eax, eax
jns 0x414b9f
mov dword [rbp - 4], 0
jmp 0x414a5a
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 5
mov rdx, rax
lea rax, sym.unsupported_exit
mov rax, qword [rdx + rax]
call rax
add dword [rbp - 4], 1
cmp dword [rbp - 4], 3
jle 0x414a32
call sym.exit_polling
mov rax, qword [0x00528f48]
test rax, rax
je 0x414ad6
mov rax, qword [0x00528f68]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetEvent]
call rax
mov rax, qword [0x00528f48]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
test eax, eax
je 0x414ab8
mov rax, qword [0x00528f48]
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateThread]
call rax
mov rax, qword [0x00528f48]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov qword [0x00528f48], 0
mov dword [rbp - 4], 0
jmp 0x414b40
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rax*8]
lea rax, [0x00528f60]
mov rax, qword [rdx + rax]
test rax, rax
je 0x414b3c
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rax*8]
lea rax, [0x00528f60]
mov rax, qword [rdx + rax]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rax*8]
lea rax, [0x00528f60]
mov qword [rdx + rax], 0
add dword [rbp - 4], 1
cmp dword [rbp - 4], 1
jle 0x414adf
mov rax, qword [0x00528f70]
test rax, rax
je 0x414b70
mov rax, qword [0x00528f70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov qword [0x00528f70], 0
mov rax, qword [0x00528f50]
test rax, rax
je 0x414b9a
mov rax, qword [0x00528f50]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov qword [0x00528f50], 0
call sym.htab_destroy
mov rax, qword [rbp - 0x10]
mov r8d, 0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x414bcd
nop
add rsp, 0x50
pop rbp
ret
Function at 0x416c31
Capabilities:
Check if file exists

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x10]
mov rax, qword [rax + 0x20]
mov rcx, rax
call sym._device_priv
mov qword [rbp - 0x18], rax
mov rcx, qword [rbp + 0x10]
call sym._device_handle_priv
mov qword [rbp - 0x20], rax
mov eax, dword [0x00528f78]
test eax, eax
jne 0x416c82
mov eax, 0xfffffffd
jmp 0x416ddd
mov dword [rbp - 4], 0
jmp 0x416dce
mov rax, qword [rbp - 0x18]
mov edx, dword [rbp - 4]
movsxd rdx, edx
add rdx, 1
shl rdx, 5
add rax, rdx
mov rax, qword [rax]
test rax, rax
je 0x416dca
mov rax, qword [rbp - 0x18]
mov edx, dword [rbp - 4]
movsxd rdx, edx
add rdx, 1
shl rdx, 5
add rax, rdx
add rax, 8
mov rax, qword [rax]
movzx eax, byte [rax]
cmp al, 3
jne 0x416dca
mov rax, qword [rbp - 0x18]
mov edx, dword [rbp - 4]
movsxd rdx, edx
add rdx, 1
shl rdx, 5
add rax, rdx
mov rax, qword [rax]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000080
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0xffffffffffffffff
jne 0x416dae
mov ecx, 0
call sym.windows_error_str
mov rdx, rax
mov rax, qword [rbp - 0x18]
mov ecx, dword [rbp - 4]
movsxd rcx, ecx
add rcx, 1
shl rcx, 5
add rax, rcx
mov rcx, qword [rax]
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x30], rdx
mov edx, dword [rbp - 4]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rcx
lea r9, str.could_not_open_device__s__interface__d_:__s
lea r8, str.winusb_open
mov edx, 3
mov rcx, rax
call sym.usbi_log
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 2
je 0x416d99
cmp eax, 5
je 0x416da0
jmp 0x416da7
mov eax, 0xfffffffc
jmp 0x416ddd
mov eax, 0xfffffffd
jmp 0x416ddd
mov eax, 0xffffffff
jmp 0x416ddd
mov rax, qword [rbp - 0x20]
mov edx, dword [rbp - 4]
movsxd rdx, edx
shl rdx, 4
add rax, rdx
lea rdx, [rax + 8]
mov rax, qword [rbp - 0x28]
mov qword [rdx], rax
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0x1f
jle 0x416c8e
mov eax, 0
add rsp, 0x70
pop rbp
ret

Function at 0x419d50
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x419dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00529784]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x419f68
mov rax, qword [0x00529788]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x419e0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x419e97
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x419df0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x419fa2
mov rax, qword [0x00529788]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00529788]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x419fb1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x419e90
sub eax, 4
and eax, 0xfffffffb
jne 0x419f20
add dword [0x00529784], 1
cmp ebx, 8
jae 0x419ec8
test bl, 4
jne 0x419f70
test ebx, ebx
je 0x419eb9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x419f90
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x419eb9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x419efa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00529788]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x419e90
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor edi, edi
jmp 0x419e17
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x419eb9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x419eb9
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00529788]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x41a790
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00529a80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00529a60]
test rbx, rbx
je 0x41a7e4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x41a7db
test r12, r12
je 0x41a7db
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x41a7c0
lea rcx, [0x00529a80]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x41aa10
Capabilities:
Parse pe header

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

Function at 0x41aa30
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 0x41aa75
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x41aa6c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x41aa77
add rax, 0x28
cmp rax, r9
jne 0x41aa58
xor eax, eax
ret

Function at 0x41ab20
Capabilities:
Enumerate pe sections

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

Function at 0x41ac80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x005145e0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x41acef
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x41acef
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x41aced
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x41ace4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x41acf8
add rax, 0x28
cmp rax, r9
jne 0x41acd0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x41ad10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x005145e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x41ad88
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x41ad88
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x41ad88
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x41ad88
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x41ad7c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x41ad90
add rdx, 0x28
cmp rdx, r10
jne 0x41ad68
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x41ada0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x41adae
mov edx, dword [rax + 0xc]
test edx, edx
je 0x41ad85
test r8d, r8d
jg 0x41ad98
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret

Function at 0x425880
Capabilities:
Hash data using sha256

Disassembly:
push rbp
mov rbp, rsp
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov dword [rax], 0x6a09e667
mov rax, qword [rbp + 0x10]
add rax, 4
mov dword [rax], 0xbb67ae85
mov rax, qword [rbp + 0x10]
add rax, 8
mov dword [rax], 0x3c6ef372
mov rax, qword [rbp + 0x10]
add rax, 0xc
mov dword [rax], 0xa54ff53a
mov rax, qword [rbp + 0x10]
add rax, 0x10
mov dword [rax], 0x510e527f
mov rax, qword [rbp + 0x10]
add rax, 0x14
mov dword [rax], 0x9b05688c
mov rax, qword [rbp + 0x10]
add rax, 0x18
mov dword [rax], 0x1f83d9ab
mov rax, qword [rbp + 0x10]
add rax, 0x1c
mov dword [rax], 0x5be0cd19
nop
pop rbp
ret
Function at 0x428d10
Capabilities:
Hash data using sha256

Disassembly:
push rbp
mov rbp, rsp
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x24], 0
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x24]
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], edx
mov rax, qword [rbp + 0x10]
mov dword [rax], 0x6a09e667
mov rax, qword [rbp + 0x10]
mov dword [rax + 4], 0xbb67ae85
mov rax, qword [rbp + 0x10]
mov dword [rax + 8], 0x3c6ef372
mov rax, qword [rbp + 0x10]
mov dword [rax + 0xc], 0xa54ff53a
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x10], 0x510e527f
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x14], 0x9b05688c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x18], 0x1f83d9ab
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x1c], 0x5be0cd19
nop
pop rbp
ret

Function at 0x4294f0
Capabilities:
Authenticate hmac

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x18]
mov qword [rbp - 8], rax
cmp qword [rbp + 0x20], 0x40
jbe 0x429559
mov rax, qword [rbp + 0x10]
mov rcx, rax
call dbg.SHA256_Init
mov rax, qword [rbp + 0x10]
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call dbg.SHA256_Update
mov rdx, qword [rbp + 0x10]
lea rax, [rbp - 0x70]
mov rcx, rax
call dbg.SHA256_Final
lea rax, [rbp - 0x70]
mov qword [rbp - 8], rax
mov qword [rbp + 0x20], 0x20
mov rax, qword [rbp + 0x10]
mov rcx, rax
call dbg.SHA256_Init
lea rax, [rbp - 0x50]
mov r8d, 0x40
mov edx, 0x36
mov rcx, rax
call sym.memset
mov qword [rbp - 0x10], 0
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp + 0x20]
jae 0x4295c0
lea rdx, [rbp - 0x50]
mov rax, qword [rbp - 0x10]
add rax, rdx
movzx ecx, byte [rax]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
add rax, rdx
movzx eax, byte [rax]
xor ecx, eax
lea rdx, [rbp - 0x50]
mov rax, qword [rbp - 0x10]
add rax, rdx
mov byte [rax], cl
add qword [rbp - 0x10], 1
jmp 0x429584
mov rax, qword [rbp + 0x10]
lea rdx, [rbp - 0x50]
mov r8d, 0x40
mov rcx, rax
call dbg.SHA256_Update
mov rax, qword [rbp + 0x10]
add rax, 0x68
mov rcx, rax
call dbg.SHA256_Init
lea rax, [rbp - 0x50]
mov r8d, 0x40
mov edx, 0x5c
mov rcx, rax
call sym.memset
mov qword [rbp - 0x10], 0
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp + 0x20]
jae 0x429641
lea rdx, [rbp - 0x50]
mov rax, qword [rbp - 0x10]
add rax, rdx
movzx ecx, byte [rax]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
add rax, rdx
movzx eax, byte [rax]
xor ecx, eax
lea rdx, [rbp - 0x50]
mov rax, qword [rbp - 0x10]
add rax, rdx
mov byte [rax], cl
add qword [rbp - 0x10], 1
jmp 0x429605
mov rax, qword [rbp + 0x10]
lea rcx, [rax + 0x68]
lea rax, [rbp - 0x50]
mov r8d, 0x40
mov rdx, rax
call dbg.SHA256_Update
lea rax, [rbp - 0x70]
mov r8d, 0x20
mov edx, 0
mov rcx, rax
call sym.memset
nop
add rsp, 0x90
pop rbp
ret
Function at 0x42ffb0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push rbp
push rdi
sub rsp, 0x268
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x200], rcx
mov qword [rbp + 0x208], rdx
mov qword [rbp + 0x210], r8
mov rax, qword [rbp + 0x200]
mov rax, qword [rax + 0x228]
mov qword [rbp + 0x1c0], rax
mov qword [rbp + 0x1d8], 0
mov rax, qword [rbp + 0x208]
mov rcx, 0xffffffffffffffff
mov rdx, rax
mov eax, 0
mov rdi, rdx
repne scasb al, byte [rdi]
mov rax, rcx
not rax
lea rdx, [rax - 1]
mov rax, qword [rbp + 0x208]
add rax, rdx
mov word [rax], 0xa
add qword [rbp + 0x210], 1
jmp 0x430191
mov dword [rbp + 0x1b8], 1
mov dword [rbp + 0x1bc], 0
mov dword [rbp - 0x50], 0
mov dword [rbp + 0x1cc], 0
jmp 0x430079
mov eax, dword [rbp + 0x1cc]
mov rax, qword [rbp + rax*8 - 0x48]
cmp qword [rbp + 0x1c0], rax
je 0x430086
add dword [rbp + 0x1cc], 1
mov eax, dword [rbp - 0x50]
cmp dword [rbp + 0x1cc], eax
jb 0x43005e
jmp 0x430087
nop
mov eax, dword [rbp - 0x50]
cmp dword [rbp + 0x1cc], eax
jne 0x4300b5
mov eax, dword [rbp - 0x50]
cmp eax, 0x3f
ja 0x4300b5
mov eax, dword [rbp + 0x1cc]
mov rdx, qword [rbp + 0x1c0]
mov qword [rbp + rax*8 - 0x48], rdx
mov eax, dword [rbp - 0x50]
add eax, 1
mov dword [rbp - 0x50], eax
mov rax, qword [rbp + 0x1c0]
add eax, 1
mov ecx, eax
lea rdx, [rbp - 0x50]
lea rax, [rbp + 0x1b8]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8, rdx
mov edx, 0
mov rax, qword [sym.imp.WSOCK32.dll_select]
call rax
test eax, eax
jg 0x430104
call dbg.interrupted
test al, al
je 0x4300fa
jmp 0x43004b
mov eax, 1
jmp 0x430210
mov rax, qword [rbp + 0x210]
mov ecx, eax
mov rdx, qword [rbp + 0x1d8]
mov rax, qword [rbp + 0x208]
add rdx, rax
mov rax, qword [rbp + 0x200]
mov rax, qword [rax + 0x228]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
cdqe
mov qword [rbp + 0x1d0], rax
cmp qword [rbp + 0x1d0], 0
jns 0x430175
call dbg.sock_blocks
xor eax, 1
test al, al
je 0x43016a
mov eax, 2
jmp 0x430210
mov qword [rbp + 0x1d0], 0
mov rax, qword [rbp + 0x1d0]
add qword [rbp + 0x1d8], rax
mov rax, qword [rbp + 0x1d0]
sub qword [rbp + 0x210], rax
cmp qword [rbp + 0x210], 0
jg 0x430037
mov rax, qword [rbp + 0x200]
mov rax, qword [rax + 0x1c8]
lea rdx, [rax + 1]
mov rax, qword [rbp + 0x200]
mov qword [rax + 0x1c8], rdx
mov rax, qword [rbp + 0x200]
mov rdx, qword [rax + 0x1d0]
mov rax, qword [rbp + 0x1d8]
add rdx, rax
mov rax, qword [rbp + 0x200]
mov qword [rax + 0x1d0], rdx
mov rax, qword [rbp + 0x200]
mov rdx, qword [rax + 0x1d8]
mov rax, qword [rbp + 0x1d8]
add rdx, rax
mov rax, qword [rbp + 0x200]
mov qword [rax + 0x1d8], rdx
mov eax, 0
add rsp, 0x268
pop rdi
pop rbp
ret