joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f5090
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [0x140194f30]
mov rdi, rax
test rax, rax
je 0x1400f510d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x1400f5138
cmp ebx, esi
je 0x1400f5138
cmp ebx, 0x8000
ja 0x1400f5138
cmp ebx, esi
jb 0x1400f5133
mov edx, ebx
mov rcx, rdi
call qword [0x140194f30]
mov rdi, rax
test rax, rax
jne 0x1400f50d0
mov rcx, rbp
call qword [fcn.140119e26]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x1400f5118
mov rcx, rdi
jmp 0x1400f5110

Function at 0x1400fb510
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x140194f80]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x4c8]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], 0x80
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400fb58a
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.1400e0490
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x1400fb5af
lea rdx, str.Error_accept__ing_server_connect
call fcn.1400df830
lea eax, [rbx + 0x1f]
jmp 0x1400fb628
lea rdx, str.Connection_accepted_from_server_n
call fcn.1400df9b0
mov edx, 1
mov byte [rdi + 0x660], 0
mov rcx, rbx
mov qword [rdi + 0x4c8], rbx
call fcn.1400edde0
mov byte [rdi + 0xb2c], 1
cmp qword [rsi + 0x728], 0
je 0x1400fb626
mov dl, 1
mov rcx, rsi
call fcn.1400d0280
mov rcx, qword [rsi + 0x730]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x728]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.1400d0280
test ebx, ebx
je 0x1400fb626
mov rcx, rdi
call fcn.1400fbb40
mov eax, Ordinal_46
jmp 0x1400fb628
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140118040
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400fc620
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0xa00
cmp byte [rax + 0xf09], 0
jne 0x1400fc645
cmp dword [rax + 0x9f8], 0
je 0x1400fc671
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x1400fc671
lea rdx, str.MDTM__s
call fcn.140113670
test eax, eax
jne 0x1400fc67e
mov dword [rbx + 0xab8], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400fd4b0
add rsp, 0x20
pop rbx
ret
Function at 0x1400fd510
Capabilities:
Check http status code

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov rcx, qword [rcx]
mov esi, r8d
cmp eax, 0x64
jb 0x1400fd545
lea rdx, str.Couldnt_set_desired_mode
call fcn.1400df830
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x1400fd55c
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.1400df9b0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x1400fd578
mov rcx, rdi
call fcn.1400fd450
jmp 0x1400fd6af
cmp esi, 0x14
jne 0x1400fd691
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xba0], 2
jne 0x1400fd5f9
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400fd5f9
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.1400c9140
test eax, eax
jne 0x1400fd6af
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x1400fd5ee
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x1400fd5f9
mov rcx, qword [rsp + 0x50]
call qword [fcn.140119e26]
mov rdx, qword [rsi + 0xc08]
test rdx, rdx
jne 0x1400fd61d
cmp byte [rsi + 0xf0d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x140149949]
test rbp, rbp
mov r9, r8
lea rax, [0x14014f690]
cmovne r9, rbp
lea rcx, [0x14013f1f0]
cmovne r8, rax
call fcn.1400ce1b0
mov rcx, rbp
mov r14, rax
call qword [fcn.140119e26]
test r14, r14
jne 0x1400fd65c
lea ebx, [r14 + 0x1b]
jmp 0x1400fd6b1
lea rcx, [rdi + 0xa00]
mov r8, r14
lea rdx, [0x14014a560]
call fcn.140113670
mov rcx, r14
mov esi, eax
call qword [fcn.140119e26]
test esi, esi
je 0x1400fd685
mov ebx, esi
jmp 0x1400fd6b1
mov dword [rdi + 0xab8], 0x1f
jmp 0x1400fd6b1
cmp esi, 0x15
jne 0x1400fd69c
lea r8d, [rsi - 8]
jmp 0x1400fd6a5
cmp esi, 0x16
jne 0x1400fd6b1
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.1400fcf80
mov ebx, eax
mov r14, qword [rsp + 0x60]
mov eax, ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140102fa0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1401030c4
cmp r8d, 0xff
jne 0x140103001
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x140102feb
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x145510]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.1400df9b0
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.1400df9b0
cmp r8d, 0xfb
jne 0x140103013
lea r9, str.WILL
jmp 0x140103051
cmp r8d, 0xfc
jne 0x140103025
lea r9, str.WONT
jmp 0x140103051
cmp r8d, 0xfd
jne 0x140103037
lea r9, [0x140145f34]
jmp 0x140103051
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1401030ad
cmp r10d, 0x27
jg 0x140103084
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x145b30]
test r8, r8
jne 0x140103094
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.1400df9b0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x14010306b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.1400df9b0
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.1400df9b0
add rsp, 0x38
ret

Function at 0x140103410
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14010346f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400df830
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.140102fa0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140103620
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1401037c8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140103685
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140103685
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140103685
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x1401036bc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140103712
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140103712
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140103712
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140103712
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140103712
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1401030d0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140103774
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400df830
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.1401034a0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1401037c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400df830
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140104f30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140194f80]
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 0x140104fc5
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 0x140105026
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400df830
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.140118040
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 0x1401050e1
sub ecx, 1
je 0x140105154
sub ecx, 1
je 0x140105090
cmp ecx, 1
je 0x140105073
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14014a560]
call fcn.1400df830
jmp 0x140105154
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140104c60
test eax, eax
je 0x140105154
jmp 0x140104ffa
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 0x140105154
sub rax, rsi
cmp rax, rbp
jae 0x140105154
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400df9b0
jmp 0x140105154
cmp r8d, 4
jle 0x140105154
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 0x140105154
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400df750
mov esi, eax
test eax, eax
je 0x140105133
mov edx, 5
mov rcx, rbx
call fcn.140105c20
mov eax, esi
jmp 0x140104ffa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400ee050
mov rcx, r14
call fcn.1400ee330
test eax, eax
je 0x140104ff8
mov edx, 5
mov rcx, rbx
call fcn.140105c20
mov eax, Ordinal_46
jmp 0x140104ffa
Function at 0x140117ef0
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 0x140117f32
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 0x140117f79
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 0x140117fd2
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 0x140117f90
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140118013
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1401490d2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1401490d3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140117fe0
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 0x140119038
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14001b170], rbx
je 0x14000a96c
cmp rax, rbx
jne 0x14000a95f
mov ebx, 1
mov esi, ebx
jmp 0x14000a971
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000a944
mov ebx, 1
mov eax, dword [0x14001b178]
cmp eax, ebx
jne 0x14000a987
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14000a9ec
mov eax, dword [0x14001b178]
test eax, eax
jne 0x14000a9e6
mov dword [0x14001b178], ebx
lea r15, [0x14000c4b8]
lea rdi, [0x14000c4a0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x14000a9d8
test eax, eax
jne 0x14000a9dc
cmp qword [rdi], 0
je 0x14000a9cd
mov rax, qword [rdi]
mov rcx, qword [0x14000c480]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000a9ae
test eax, eax
je 0x14000a9ec
mov eax, 0xff
jmp 0x14000aac8
mov dword [0x14001a104], ebx
mov eax, dword [0x14001b178]
cmp eax, ebx
jne 0x14000aa13
lea rdx, [0x14000c498]
lea rcx, [0x14000c488]
call sub.msvcrt.dll__initterm
mov dword [0x14001b178], 2
test esi, esi
jne 0x14000aa20
xor eax, eax
xchg qword [0x14001b170], rax
cmp qword [0x14001b180], 0
je 0x14000aa54
lea rcx, [0x14001b180]
call fcn.14000ac90
test eax, eax
je 0x14000aa54
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14001b180]
mov r9, qword [0x14000c480]
call r9
mov r8, qword [0x14001a118]
mov rdx, qword [0x14001a110]
mov ecx, dword [0x14001a108]
call fcn.140005fbc
mov dword [0x14001a100], eax
cmp dword [0x14001a120], 0
jne 0x14000aa84
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14001a104], 0
jne 0x14000aa99
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14001a100]
jmp 0x14000aac8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140198000
add rsp, 0x28
jmp 0x14000a920

Function at 0x14000ab7c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000abc8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000abc0
cmp dword [rcx + 0x3c], edx
jl 0x14000abc0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000abc0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000abc8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x653927f0
Capabilities:
Get storage device properties

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x108
lea rbx, [rsp + 0x70]
mov rdi, rdx
mov ebp, ecx
xor edx, edx
mov rcx, rdi
mov rsi, r8
call fcn.65401388
mov rcx, rbx
mov r8d, ebp
lea rdx, str..PhysicalDrive_d
call qword [0x654235e8]
xor r9d, r9d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov r8d, 3
mov dword [rsp + 0x20], 3
call qword [0x65423308]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x653928dc
lea r12, [0x6541a240]
xor edx, edx
mov r8d, 0x2710
mov dword [rsp + 0x60], 0
lea r13, [rsp + 0x64]
mov qword [rsp + 0x64], 0
mov rcx, r12
mov dword [rsp + 0x6c], 0
call fcn.65401388
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x28], 0x2710
mov qword [rsp + 0x20], r12
mov r9d, 0xc
mov r8, r13
mov qword [rsp + 0x30], rax
mov edx, 0x2d1400
mov rcx, rbx
call qword [0x65423320]
test eax, eax
jne 0x65392904
mov rcx, rbx
call qword [0x65423300]
cmp rsi, 0x13
jbe 0x65392ab0
mov rdx, rdi
mov ecx, ebp
call fcn.65392440
add rsp, 0x108
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [0x6541a258]
test eax, eax
je 0x653928d3
add rax, r12
mov r15, qword [0x65423538]
mov r13d, 0x64
mov qword [rsp + 0x58], rax
mov r12, rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov r14, rax
test r13d, r13d
movzx edx, byte [r12]
je 0x653929e0
test dl, dl
je 0x653929e0
movsx ecx, dl
mov byte [rsp + 0x4e], dl
call r15
test eax, eax
je 0x65392a80
movzx edx, byte [rsp + 0x4e]
cmp dl, 0x39
jg 0x65392a60
sub edx, 0x30
movsx ecx, byte [r12 + 1]
shl edx, 4
mov byte [rsp + 0x4e], dl
mov byte [rsp + 0x4f], cl
call r15
test eax, eax
je 0x65392a80
movzx edx, byte [rsp + 0x4f]
cmp dl, 0x39
jg 0x65392a70
sub edx, 0x30
or dl, byte [rsp + 0x4e]
add r12, 2
movzx ecx, dl
mov byte [rsp + 0x4e], dl
call qword [0x65423530]
test eax, eax
je 0x65392a80
movzx edx, byte [rsp + 0x4e]
cmp dl, 0x20
je 0x65392936
sub r13d, 1
mov byte [r14], dl
add r14, 1
test r13d, r13d
movzx edx, byte [r12]
jne 0x65392944
mov r8, qword [rsp + 0x50]
mov byte [r14], 0
mov edx, dword [r8]
add r8, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x653929e9
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [r8 + 2]
mov ecx, eax
cmove r8, rdx
add cl, al
sbb r8, 3
sub r8, qword [rsp + 0x50]
cmp r8d, esi
mov r12d, r8d
jae 0x653928d3
mov rdx, qword [rsp + 0x50]
add r8, 1
mov rcx, rdi
call fcn.65401398
mov rcx, rbx
call qword [0x65423300]
test r12d, r12d
je 0x653928dc
xor eax, eax
jmp 0x653928f0
and edx, 0xffffffdf
sub edx, 0x37
jmp 0x6539296f
and edx, 0xffffffdf
sub edx, 0x37
jmp 0x6539299c
mov rcx, qword [rsp + 0x58]
call fcn.65401340
cmp eax, esi
mov r12d, eax
jae 0x653928d3
mov rdx, qword [rsp + 0x58]
lea r8, [rax + 1]
mov rcx, rdi
call fcn.65401398
jmp 0x65392a40
mov eax, 0xffffffff
jmp 0x653928f0
Function at 0x65392d20
Capabilities:
Get storage device properties

Disassembly:
sub rsp, 0x28
test r9, r9
mov eax, ecx
mov rcx, rdx
jne 0x65392d52
test eax, eax
je 0x65392d70
cmp eax, 1
je 0x65392d90
cmp eax, 2
je 0x65392da0
cmp eax, 3
je 0x65392db0
cmp eax, 4
jne 0x65392dba
mov edx, r8d
add rsp, 0x28
jmp fcn.653926f0
test eax, eax
je 0x65392d80
cmp eax, 1
jne 0x65392dd9
cmp byte [r9], 0x2a
mov edx, r8d
jne 0x65392db0
add rsp, 0x28
jmp fcn.65391f70
mov edx, r8d
add rsp, 0x28
jmp fcn.65392ac0
mov r8d, r8d
mov rcx, r9
add rsp, 0x28
jmp fcn.65392bb0
mov edx, r8d
add rsp, 0x28
jmp fcn.65392160
mov edx, r8d
add rsp, 0x28
jmp fcn.653922f0
mov eax, 0xffffffff
add rsp, 0x28
ret
lea r8, str.Unsupported_hardware_type
lea rcx, str..._src_hdinfo.c
mov edx, 0x82
call fcn.65384200
mov eax, 0xffffffff
jmp 0x65392db5
lea r8, str.Unsupported_hardware_type_with_name
lea rcx, str..._src_hdinfo.c
mov edx, 0x6d
call fcn.65384200
mov eax, 0xffffffff
jmp 0x65392db5
Function at 0x65398660
Capabilities:
Hash data with md5

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x6539869a
xor eax, eax
mov dword [rcx + 8], 0x67452301
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
mov dword [rcx + 0x18], 0
mov qword [rcx], 0
add rsp, 0x28
ret
lea rdx, str.src_hashes_md5.c
lea rcx, [0x6540d371]
mov r8d, 0xe9
call fcn.6539d600
nop
nop
nop word cs:[rax + rax]
Function at 0x653986c0
Capabilities:
Hash data with md5

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
mov rbx, rcx
mov rsi, rdx
je 0x653988d0
test rdx, rdx
je 0x653988e9
mov edx, dword [rcx + 0x18]
mov eax, 0x10
cmp edx, 0x3f
jbe 0x653986f4
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
lea r8d, [rdx*8]
add r8, qword [rcx]
mov eax, edx
mov qword [rcx], r8
lea ecx, [rdx + 1]
cmp ecx, 0x38
mov dword [rbx + 0x18], ecx
mov byte [rbx + rax + 0x1c], pe_nt_image_headers64
ja 0x65398850
cmp ecx, 0x38
lea rdi, [rbx + 0x1c]
je 0x65398819
mov edx, ecx
lea r9d, [rcx + 1]
mov eax, ecx
not edx
mov byte [rbx + rax + 0x1c], 0
and edx, 7
cmp r9d, 0x38
je 0x65398812
test edx, edx
je 0x653987bd
cmp edx, 1
je 0x653987ab
cmp edx, 2
je 0x6539879f
cmp edx, 3
je 0x65398793
cmp edx, 4
je 0x65398786
cmp edx, 5
je 0x65398779
cmp edx, 6
je 0x6539876d
mov byte [rbx + r9 + 0x1c], 0
lea r9d, [rcx + 2]
mov ecx, r9d
add r9d, 1
mov byte [rbx + rcx + 0x1c], 0
mov r10d, r9d
add r9d, 1
mov byte [rbx + r10 + 0x1c], 0
mov r11d, r9d
add r9d, 1
mov byte [rbx + r11 + 0x1c], 0
mov edx, r9d
add r9d, 1
mov byte [rbx + rdx + 0x1c], 0
mov eax, r9d
add r9d, 1
mov byte [rbx + rax + 0x1c], 0
mov ecx, r9d
add r9d, 1
cmp r9d, 0x38
mov byte [rbx + rcx + 0x1c], 0
je 0x65398812
lea r11d, [r9 + 1]
lea edx, [r9 + 2]
mov r10d, r9d
mov byte [rbx + r10 + 0x1c], 0
lea eax, [r9 + 3]
lea ecx, [r9 + 4]
mov byte [rbx + r11 + 0x1c], 0
lea r10d, [r9 + 5]
mov byte [rbx + rdx + 0x1c], 0
lea r11d, [r9 + 6]
lea edx, [r9 + 7]
add r9d, 8
cmp r9d, 0x38
mov byte [rbx + rax + 0x1c], 0
mov byte [rbx + rcx + 0x1c], 0
mov byte [rbx + r10 + 0x1c], 0
mov byte [rbx + r11 + 0x1c], 0
mov byte [rbx + rdx + 0x1c], 0
jne 0x653987bd
mov dword [rbx + 0x18], 0x38
mov qword [rbx + 0x54], r8
mov rdx, rdi
mov rcx, rbx
call fcn.65397e20
mov r9d, dword [rbx + 8]
xor eax, eax
mov dword [rsi], r9d
mov edi, dword [rbx + 0xc]
mov dword [rsi + 4], edi
mov r8d, dword [rbx + 0x10]
mov dword [rsi + 8], r8d
mov ebx, dword [rbx + 0x14]
mov dword [rsi + 0xc], ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
cmp ecx, 0x40
je 0x653988b7
lea edi, [rdx + 2]
mov byte [rbx + rcx + 0x1c], 0
cmp edi, 0x40
je 0x653988b0
lea r8d, [rdx + 3]
mov byte [rbx + rdi + 0x1c], 0
cmp r8d, 0x40
je 0x653988b0
lea r9d, [rdx + 4]
mov byte [rbx + r8 + 0x1c], 0
cmp r9d, 0x40
je 0x653988b0
lea r10d, [rdx + 5]
mov byte [rbx + r9 + 0x1c], 0
cmp r10d, 0x40
je 0x653988b0
lea r11d, [rdx + 6]
mov byte [rbx + r10 + 0x1c], 0
cmp r11d, 0x40
je 0x653988b0
cmp edx, 0x38
mov byte [rbx + r11 + 0x1c], 0
jne 0x653988b0
mov byte [rbx + 0x5b], 0
mov dword [rbx + 0x18], 0x40
lea rdi, [rbx + 0x1c]
mov rcx, rbx
mov rdx, rdi
call fcn.65397e20
mov r8, qword [rbx]
xor ecx, ecx
jmp 0x65398725
lea rdx, str.src_hashes_md5.c
lea rcx, [0x6540d371]
mov r8d, 0x106
call fcn.6539d600
lea rdx, str.src_hashes_md5.c
lea rcx, [0x6540d37c]
mov r8d, 0x107
call fcn.6539d600
nop
nop dword [rax]
nop word cs:[rax + rax]