joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400824e0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140082688
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 0x140082545
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140082545
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140082545
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 0x14008257c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400825d2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400825d2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400825d2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400825d2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400825d2
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.140081f90
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 0x140082634
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14005e720
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140082360
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 0x140082680
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14005e720
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140083df0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400c5080]
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 0x140083e85
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 0x140083ee6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14005e720
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.140097730
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 0x140083fa1
sub ecx, 1
je 0x140084014
sub ecx, 1
je 0x140083f50
cmp ecx, 1
je 0x140083f33
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400a4d00]
call fcn.14005e720
jmp 0x140084014
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140083b20
test eax, eax
je 0x140084014
jmp 0x140083eba
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 0x140084014
sub rax, rsi
cmp rax, rbp
jae 0x140084014
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14005e8a0
jmp 0x140084014
cmp r8d, 4
jle 0x140084014
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 0x140084014
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14005e640
mov esi, eax
test eax, eax
je 0x140083ff3
mov edx, 5
mov rcx, rbx
call fcn.140084ae0
mov eax, esi
jmp 0x140083eba
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14006cf10
mov rcx, r14
call fcn.14006d1f0
test eax, eax
je 0x140083eb8
mov edx, 5
mov rcx, rbx
call fcn.140084ae0
mov eax, Ordinal_46
jmp 0x140083eba
Function at 0x140096db0
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 0x140096df2
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 0x140096e39
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 0x140096e92
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 0x140096e50
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140096ed3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400aa48a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400aa48b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140096ea0
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 0x180002380
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call fcn.1800017f0
mov rdx, qword [0x180004040]
mov rsi, rax
test rdx, rdx
jne 0x18000245a
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
nop dword [rax + rax]
mov r10, qword [rcx + 0x30]
movsxd rax, dword [r10 + 0x3c]
mov ebx, dword [rax + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x180002437
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x180002437
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xe7fe91b0
lea rax, [rdi + r9*4]
mov edx, dword [rax + r10]
add rdx, r10
movzx eax, byte [rdx]
inc rdx
test al, al
je 0x180002432
nop
movsx eax, al
lea rdx, [rdx + 1]
xor eax, r8d
imul r8d, eax, 0x1000193
movzx eax, byte [rdx - 1]
test al, al
jne 0x180002410
cmp r8d, 0xdedf3ffb
je 0x18000243c
test r9d, r9d
jne 0x1800023f0
mov rcx, qword [rcx]
jmp 0x1800023c0
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov edx, dword [rcx + rdx*4]
add rdx, r10
mov qword [0x180004040], rdx
mov rcx, rsi
call rdx
mov rdx, qword [0x180004048]
mov rsi, rax
test rdx, rdx
jne 0x18000252a
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rcx + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov ebx, dword [rdx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x180002507
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x180002507
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x6795f96e
lea rax, [rdi + r9*4]
mov eax, dword [rax + r10]
add rax, r10
movzx edx, byte [rax]
inc rax
test dl, dl
je 0x180002502
nop
movsx edx, dl
lea rax, [rax + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rax - 1]
test dl, dl
jne 0x1800024e0
cmp r8d, 0xdea88b44
je 0x18000250c
test r9d, r9d
jne 0x1800024c0
mov rcx, qword [rcx]
jmp 0x180002490
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov edx, dword [rcx + rdx*4]
add rdx, r10
mov qword [0x180004048], rdx
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp rdx
Function at 0x2fc4d1140
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d2220
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d1b42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d1bda
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d1bbe
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 0x2fc4d1bb2
cmp qword [rbp - 0x10], 0
je 0x2fc4d1bb2
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 0x2fc4d1b78
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d1bdb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d1ce0
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 0x2fc4d1d08
mov eax, 0
jmp 0x2fc4d1d56
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 0x2fc4d1d31
mov eax, 0
jmp 0x2fc4d1d56
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 0x2fc4d1d51
mov eax, 0
jmp 0x2fc4d1d56
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d1d5c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d1dda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d1dd1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d1dd1
mov rax, qword [rbp - 8]
jmp 0x2fc4d1def
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d1da4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x422ef8
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rbx, r9
mov rax, qword [rbx]
mov rdx, qword [rbx + 8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rdx
movzx eax, word [rbp - 0x30]
test ax, ax
jne 0x422f35
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0x18]
mov r8d, dword [rax + 0x30]
mov rax, qword [rbp + 0x18]
mov r9, qword [rax + 0x28]
mov rax, qword [rbp + 0x18]
mov r10d, dword [rax + 0x20]
mov rax, qword [rbp + 0x18]
mov rcx, qword [rax + 0x18]
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rdx
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
mov r8d, r10d
mov rdx, rcx
mov rcx, qword [rbp + 0x10]
call fcn.004204c9
mov rax, qword [rbp + 0x20]
mov edx, 4
mov rcx, rax
call fcn.0040c0ea
mov rax, qword [rbp - 0x18]
test rax, rax
je 0x423023
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x30
mov r9, rax
mov r8d, 2
mov edx, 1
lea rcx, [0x0048b19c]
call sub.msvcrt.dll_fwrite
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
lea rdx, [rax + 0x30]
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.msvcrt.dll_fputs
mov rax, qword [rbp - 0x20]
test rax, rax
je 0x423009
mov rax, qword [rbp - 0x20]
mov edx, eax
lea rcx, str.0x_lx
call sub.msvcrt.dll_printf
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x30
mov rdx, rax
mov ecx, 0x3e
call sub.msvcrt.dll_fputc
mov rax, qword [rbp - 0x18]
add rsp, 0x78
pop rbx
pop rbp
ret

Function at 0x4236cc
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
mov dword [rbp - 4], 0xc
jmp 0x42374b
mov eax, dword [rbp + 0x10]
and eax, 1
test eax, eax
je 0x423744
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
lea rdx, [rax + 0x30]
mov eax, dword [rbp - 4]
cdqe
lea rcx, [rax*8]
lea rax, [0x0046c4e0]
mov rax, qword [rcx + rax]
mov rcx, rax
call sub.msvcrt.dll_fputs
cmp dword [rbp + 0x10], 1
jbe 0x423744
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x30
mov r9, rax
mov r8d, 2
mov edx, 1
lea rcx, [0x0048b3a9]
call sub.msvcrt.dll_fwrite
shr dword [rbp + 0x10], 1
sub dword [rbp - 4], 1
cmp dword [rbp + 0x10], 0
jne 0x4236e0
nop
add rsp, 0x30
pop rbp
ret
Function at 0x42641b
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp - 4], 1
jmp 0x4265a1
mov rax, qword [rbp + 0x10]
neg rax
and rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
not rax
and qword [rbp + 0x10], rax
cmp dword [rbp - 4], 0
je 0x42645c
mov dword [rbp - 4], 0
jmp 0x426476
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x30
mov rdx, rax
mov ecx, 0x20
call sub.msvcrt.dll_putc
cmp qword [rbp - 0x10], 0x10
ja case.0x4264a4.0
mov rax, qword [rbp - 0x10]
lea rdx, [rax*4]
lea rax, [0x0048bb0c]
mov eax, dword [rdx + rax]
movsxd rdx, eax
lea rax, [0x0048bb0c]
add rax, rdx
jmp rax
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x30
mov r9, rax
mov r8d, 6
mov edx, 1
lea rcx, str.ORIGIN
call sub.msvcrt.dll_fwrite
jmp 0x4265a1
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x30
mov r9, rax
mov r8d, 8
mov edx, 1
lea rcx, str.SYMBOLIC
call sub.msvcrt.dll_fwrite
jmp 0x4265a1
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x30
mov r9, rax
mov r8d, 7
mov edx, 1
lea rcx, str.TEXTREL
call sub.msvcrt.dll_fwrite
jmp 0x4265a1
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x30
mov r9, rax
mov r8d, 8
mov edx, 1
lea rcx, str.BIND_NOW
call sub.msvcrt.dll_fwrite
jmp 0x4265a1
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x30
mov r9, rax
mov r8d, 0xa
mov edx, 1
lea rcx, str.STATIC_TLS
call sub.msvcrt.dll_fwrite
jmp 0x4265a1
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x30
mov r9, rax
mov r8d, 7
mov edx, 1
lea rcx, str.unknown
call sub.msvcrt.dll_fwrite
nop
cmp qword [rbp + 0x10], 0
jne 0x426433
lea rcx, [0x00488d34]
call sub.msvcrt.dll_puts
nop
add rsp, 0x30
pop rbp
ret
Function at 0x429cd1
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rdx
mov dword [rbp - 0x20], r8d
mov eax, dword [rbp - 0x20]
imul rax, qword [rbp - 0x28]
mov rdx, rax
mov rax, qword [rbp - 0x30]
mov rax, qword [rax + 0x10]
cmp rdx, rax
jbe 0x429d2f
mov rax, qword [rbp - 0x28]
mov rdx, rax
lea rcx, [0x00484733]
call fcn.0040bdf5
mov rdx, rax
lea rcx, str.Invalid_number_of_dynamic_entries:__s_n
call fcn.0045d76f
mov eax, 0
jmp 0x429e82
mov edx, dword [rbp - 0x20]
mov rax, qword [rbp - 0x28]
mov rcx, rax
call fcn.0045c4b7
mov qword [rbp - 0x58], rax
cmp qword [rbp - 0x58], 0
jne 0x429d75
mov rax, qword [rbp - 0x28]
mov rdx, rax
lea rcx, [0x00484733]
call fcn.0040bdf5
mov rdx, rax
lea rcx, str.Out_of_memory_reading__s_dynamic_entries_n
call fcn.0045d76f
mov eax, 0
jmp 0x429e82
mov rax, qword [rbp - 0x30]
mov r8, qword [rax + 8]
mov edx, dword [rbp - 0x20]
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x58]
mov r9, r8
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_fread
cmp qword [rbp - 0x28], rax
je 0x429dd8
mov eax, dword [rbp - 0x20]
imul rax, qword [rbp - 0x28]
mov rdx, rax
lea rcx, [0x00484733]
call fcn.0040bdf5
mov rdx, rax
lea rcx, str.Unable_to_read_in__s_bytes_of_dynamic_data_n
call fcn.0045d76f
mov rax, qword [rbp - 0x58]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 0
jmp 0x429e82
mov rax, qword [rbp - 0x28]
mov edx, 8
mov rcx, rax
call fcn.0045c4b7
mov qword [rbp - 0x60], rax
cmp qword [rbp - 0x60], 0
jne 0x429e61
mov rax, qword [rbp - 0x28]
mov rdx, rax
lea rcx, [0x00484733]
call fcn.0040bdf5
mov rdx, rax
lea rcx, str.Out_of_memory_allocating_space_for__s_dynamic_entries_n
call fcn.0045d76f
mov rax, qword [rbp - 0x58]
mov rcx, rax
call sub.msvcrt.dll_free
mov eax, 0
jmp 0x429e82
mov rax, qword [0x004a2e00]
mov rax, qword [rax]
mov edx, dword [rbp - 0x20]
mov ecx, dword [rbp - 0x20]
imul rcx, qword [rbp - 0x28]
mov r8, rcx
mov rcx, qword [rbp - 0x58]
add rcx, r8
mov r8, qword [rbp - 0x28]
lea r9, [r8*8]
mov r8, qword [rbp - 0x60]
lea rbx, [r9 + r8]
call rax
mov qword [rbx], rax
mov rax, qword [rbp - 0x28]
lea rdx, [rax - 1]
mov qword [rbp - 0x28], rdx
test rax, rax
jne 0x429e29
mov rax, qword [rbp - 0x58]
mov rcx, rax
call sub.msvcrt.dll_free
mov rax, qword [rbp - 0x60]
add rsp, 0x38
pop rbx
pop rbp
ret
Function at 0x4302dc
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
cmp dword [rbp + 0x10], 0
je 0x430403
mov dword [rbp - 4], 1
mov eax, dword [rbp + 0x10]
and eax, 1
test eax, eax
je 0x430330
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x30
mov r9, rax
mov r8d, 4
mov edx, 1
lea rcx, str.INEX
call sub.msvcrt.dll_fwrite
mov dword [rbp - 4], 0
mov eax, dword [rbp + 0x10]
and eax, 2
test eax, eax
je 0x430366
cmp dword [rbp - 4], 0
je 0x430349
lea rax, [0x00488d34]
jmp 0x430350
lea rax, [0x0048d6eb]
mov rdx, rax
lea rcx, str._sUFLO
call sub.msvcrt.dll_printf
mov dword [rbp - 4], 0
mov eax, dword [rbp + 0x10]
and eax, 4
test eax, eax
je 0x43039c
cmp dword [rbp - 4], 0
je 0x43037f
lea rax, [0x00488d34]
jmp 0x430386
lea rax, [0x0048d6eb]
mov rdx, rax
lea rcx, str._sOFLO
call sub.msvcrt.dll_printf
mov dword [rbp - 4], 0
mov eax, dword [rbp + 0x10]
and eax, 8
test eax, eax
je 0x4303d2
cmp dword [rbp - 4], 0
je 0x4303b5
lea rax, [0x00488d34]
jmp 0x4303bc
lea rax, [0x0048d6eb]
mov rdx, rax
lea rcx, str._sDIV0
call sub.msvcrt.dll_printf
mov dword [rbp - 4], 0
mov eax, dword [rbp + 0x10]
and eax, 0x10
test eax, eax
je 0x43041d
cmp dword [rbp - 4], 0
je 0x4303eb
lea rax, [0x00488d34]
jmp 0x4303f2
lea rax, [0x0048d6eb]
mov rdx, rax
lea rcx, str._sINVAL
call sub.msvcrt.dll_printf
jmp 0x43041d
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x30
mov rdx, rax
mov ecx, 0x30
call sub.msvcrt.dll_fputc
nop
add rsp, 0x30
pop rbp
ret
Function at 0x4318da
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov dword [rbp + 0x10], ecx
cmp dword [rbp + 0x10], 0
je 0x431b54
mov dword [rbp - 4], 1
mov eax, dword [rbp + 0x10]
and eax, 1
test eax, eax
je 0x43192e
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x30
mov r9, rax
mov r8d, 9
mov edx, 1
lea rcx, str.fjathplus
call sub.msvcrt.dll_fwrite
mov dword [rbp - 4], 0
mov eax, dword [rbp + 0x10]
and eax, 2
test eax, eax
je 0x431964
cmp dword [rbp - 4], 0
je 0x431947
lea rax, [0x00488d34]
jmp 0x43194e
lea rax, [0x0048d6eb]
mov rdx, rax
lea rcx, str._svis3b
call sub.msvcrt.dll_printf
mov dword [rbp - 4], 0
mov eax, dword [rbp + 0x10]
and eax, 4
test eax, eax
je 0x43199a
cmp dword [rbp - 4], 0
je 0x43197d
lea rax, [0x00488d34]
jmp 0x431984
lea rax, [0x0048d6eb]
mov rdx, rax
lea rcx, str._sadp
call sub.msvcrt.dll_printf
mov dword [rbp - 4], 0
mov eax, dword [rbp + 0x10]
and eax, 8
test eax, eax
je 0x4319d0
cmp dword [rbp - 4], 0
je 0x4319b3
lea rax, [0x00488d34]
jmp 0x4319ba
lea rax, [0x0048d6eb]
mov rdx, rax
lea rcx, str._ssparc5
call sub.msvcrt.dll_printf
mov dword [rbp - 4], 0
mov eax, dword [rbp + 0x10]
and eax, 0x10
test eax, eax
je 0x431a06
cmp dword [rbp - 4], 0
je 0x4319e9
lea rax, [0x00488d34]
jmp 0x4319f0
lea rax, [0x0048d6eb]
mov rdx, rax
lea rcx, str._smwait
call sub.msvcrt.dll_printf
mov dword [rbp - 4], 0
mov eax, dword [rbp + 0x10]
and eax, 0x20
test eax, eax
je 0x431a3c
cmp dword [rbp - 4], 0
je 0x431a1f
lea rax, [0x00488d34]
jmp 0x431a26
lea rax, [0x0048d6eb]
mov rdx, rax
lea rcx, str._sxmpmul
call sub.msvcrt.dll_printf
mov dword [rbp - 4], 0
mov eax, dword [rbp + 0x10]
and eax, 0x40
test eax, eax
je 0x431a72
cmp dword [rbp - 4], 0
je 0x431a55
lea rax, [0x00488d34]
jmp 0x431a5c
lea rax, [0x0048d6eb]
mov rdx, rax
lea rcx, str._sxmont2
call sub.msvcrt.dll_printf
mov dword [rbp - 4], 0
mov eax, dword [rbp + 0x10]
and eax, 0x80
test eax, eax
je 0x431aaa
cmp dword [rbp - 4], 0
je 0x431a8d
lea rax, [0x00488d34]
jmp 0x431a94
lea rax, [0x0048d6eb]
mov rdx, rax
lea rcx, str._snsec
call sub.msvcrt.dll_printf
mov dword [rbp - 4], 0
mov eax, dword [rbp + 0x10]
and eax, 0x1000
test eax, eax
je 0x431ae2
cmp dword [rbp - 4], 0
je 0x431ac5
lea rax, [0x00488d34]
jmp 0x431acc
lea rax, [0x0048d6eb]
mov rdx, rax
lea rcx, str._sfjathhpc
call sub.msvcrt.dll_printf
mov dword [rbp - 4], 0
mov eax, dword [rbp + 0x10]
and eax, 0x2000
test eax, eax
je 0x431b1a
cmp dword [rbp - 4], 0
je 0x431afd
lea rax, [0x00488d34]
jmp 0x431b04
lea rax, [0x0048d6eb]
mov rdx, rax
lea rcx, str._sfjdes
call sub.msvcrt.dll_printf
mov dword [rbp - 4], 0
mov eax, dword [rbp + 0x10]
and eax, 0x10000
test eax, eax
je 0x431b6e
cmp dword [rbp - 4], 0
je 0x431b35
lea rax, [0x00488d34]
jmp 0x431b3c
lea rax, [0x0048d6eb]
mov rdx, rax
lea rcx, str._sfjaes
call sub.msvcrt.dll_printf
mov dword [rbp - 4], 0
jmp 0x431b6e
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x30
mov rdx, rax
mov ecx, 0x30
call sub.msvcrt.dll_fputc
mov rax, qword [sym.imp.msvcrt.dll___iob_func]
call rax
add rax, 0x30
mov rdx, rax
mov ecx, 0xa
call sub.msvcrt.dll_fputc
nop
add rsp, 0x30
pop rbp
ret