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

Disassembly:
cmp edx, 0x1f
jne 0x14007c128
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 0x14007bfe5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14007bfe5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14007bfe5
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 0x14007c01c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x14007c072
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14007c072
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14007c072
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14007c072
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14007c072
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.14007ba30
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 0x14007c0d4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14005cc60
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.14007be00
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 0x14007c120
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14005cc60
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14007d890
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400b3080]
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 0x14007d925
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 0x14007d986
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14005cc60
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.140090360
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 0x14007da41
sub ecx, 1
je 0x14007dab4
sub ecx, 1
je 0x14007d9f0
cmp ecx, 1
je 0x14007d9d3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400a0e28]
call fcn.14005cc60
jmp 0x14007dab4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14007d5c0
test eax, eax
je 0x14007dab4
jmp 0x14007d95a
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 0x14007dab4
sub rax, rsi
cmp rax, rbp
jae 0x14007dab4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14005cde0
jmp 0x14007dab4
cmp r8d, 4
jle 0x14007dab4
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 0x14007dab4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14005cb80
mov esi, eax
test eax, eax
je 0x14007da93
mov edx, 5
mov rcx, rbx
call fcn.14007e580
mov eax, esi
jmp 0x14007d95a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140067030
mov rcx, r14
call fcn.140067310
test eax, eax
je 0x14007d958
mov edx, 5
mov rcx, rbx
call fcn.14007e580
mov eax, Ordinal_45
jmp 0x14007d95a
Function at 0x140090210
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 0x140090252
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 0x140090299
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 0x1400902f2
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 0x1400902b0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140090333
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14009f7a2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14009f7a3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140090300
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 0x140091258
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rcx
push r15
xor rax, rax
push rax
push rax
push rax
sub rsp, 0x28
call fcn.14003d030
push qword [rsp + 0x50]
push 0
push 1
pop rcx
pop rdx
pop r8
call sub.KERNEL32.dll_OpenProcess
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
je 0x140019996
push 1
push qword [rsp + 0x30]
pop rcx
pop rdx
call sub.KERNEL32.dll_TerminateProcess
and rax, rax
je 0x14001998c
mov qword [rsp + 0x30], 1
push qword [rsp + 0x28]
pop rcx
call sub.KERNEL32.dll_CloseHandle
mov rax, qword [rsp + 0x30]
jmp 0x1400199a0
add rsp, 0x40
pop r15
ret

Function at 0x14001db6f
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push rbp
push r15
mov rax, SafeArrayPutElement
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x14001db83
sub rsp, 0x28
call fcn.14003d030
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.14003d0a0
add rsp, 0x10
lea rax, [rsp + 0x30]
lea rax, [rsp + 0x98]
lea rbp, [rsp + 0x30]
mov dword [rbp], 0x68
mov dword [rbp + 0x3c], 1
mov r15, qword [rsp + 0xe8]
and r15, 2
and r15, r15
je 0x14001dbf5
lea rbp, [rsp + 0x30]
mov word [rbp + 0x40], 0
jmp 0x14001dc00
lea rbp, [rsp + 0x30]
mov word [rbp + 0x40], 1
lea rax, [rsp + 0x98]
mov rax, rax
push rax
lea rax, [rsp + 0x38]
mov rax, rax
push rax
push 0
push 0
push 0
push 0
push 0
push 0
push qword [rsp + 0x68]
push 0
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.KERNEL32.dll_CreateProcessW
add rsp, 0x50
mov qword [rsp + 0xb0], rax
cmp qword [rsp + 0xb0], 0
je 0x14001dccf
mov r15, qword [rsp + 0xe8]
and r15, 1
and r15, r15
je 0x14001dcc1
lea rbp, [rsp + 0x98]
push qword [rbp + 8]
pop rax
mov qword [rsp + 0xb8], rax
push 1
pop rcx
call fcn.1400299cc
lea rax, [rsp + 0xc0]
mov rax, rax
push rax
push qword [rsp + 0xc0]
pop rcx
pop rdx
call sub.KERNEL32.dll_GetExitCodeThread
movsxd r15, dword [rsp + 0xc0]
cmp r15, 0x103
je 0x14001dcbf
jmp 0x14001dcc1
jmp 0x14001dc87
lea rbp, [rsp + 0x98]
mov rax, qword [rbp]
jmp 0x14001dcd2
xor rax, rax
push rax
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.14003d140
add rsp, 0x28
pop rax
add rsp, 0xc8
pop r15
pop rbp
ret

Function at 0x14001e0cc
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14030c180]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x14001faa8
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14001f9f0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140313c20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140312060]
jmp 0x14001fae4
cmp qword [rbx + 0x18], rdi
je 0x14001faeb
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14001fadb
jmp 0x14001fb05
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140312060]
call fcn.14003cb2c
lea rcx, [0x140313c20]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14001fb20
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x14001fbe6
lea rcx, [0x140313c20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140312060]
jmp 0x14001fbaa
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14001fba7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140312060]
mov rdx, rsi
call fcn.14003cb2c
jmp 0x14001fbaa
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14001fb77
mov rdx, qword [0x14030c0f8]
lea rcx, [0x140312060]
mov rdi, rdx
inc rdx
mov qword [0x14030c0f8], rdx
lea edx, [rbx + 0x20]
call fcn.14003cb74
lea rcx, [0x140313c20]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x14001fd90
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14001fe07
movsxd rdx, ecx
lea rcx, [0x14001fcec]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [0x140312068]
test rbx, rbx
je 0x14001fe7a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14001fdfd
cmp byte [rbx + 0x20], 0
je 0x14001fdfd
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x14001fdc3
jmp 0x14001fe7a
mov rbx, qword [0x140312068]
test rbx, rbx
je 0x14001fe7a
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14001fe72
cmp byte [rbx + 0x21], 0
je 0x14001fe36
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.dll_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14001fe62
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.dll_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x140312068]
call fcn.14003cb2c
mov rbx, rdi
test rdi, rdi
jne 0x14001fe13
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14001ff48
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [0x140313cc0]
call fcn.14003be08
xor ebp, ebp
or esi, 0xffffffff
mov r14, rax
mov ebx, ebp
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
movzx edx, word [rax]
test dx, dx
je 0x140020045
mov rcx, qword [rsp + 0x40]
mov r9w, 0x22
cmp dx, 0x20
jne 0x14001ff9f
add rax, 2
cmp word [rax], 0x20
je 0x14001ff95
movzx edx, word [rax]
mov r8d, 1
cmp dx, r9w
jne 0x14001ffdd
add rax, 2
mov rbx, rax
movzx ecx, word [rax]
test cx, cx
je 0x14002001d
cmp cx, r9w
je 0x14001ffcf
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x14001ffbd
cmp word [rax], bp
je 0x14002001d
mov rcx, rax
add rax, 2
jmp 0x140020025
test dx, dx
je 0x140020022
mov rbx, rax
cmp dx, 0x20
je 0x14001ffcf
add rax, 2
cmp word [rax], r9w
jne 0x140020013
add rax, 2
movzx ecx, word [rax]
test cx, cx
je 0x14002001d
cmp cx, r9w
je 0x140020013
add rax, 2
movzx ecx, word [rax]
test cx, cx
jne 0x140020001
movzx edx, word [rax]
test dx, dx
jne 0x14001ffe5
jmp 0x14001ffcf
mov rcx, rax
jmp 0x140020025
mov r8d, ebp
cmp dword [r14], esi
jne 0x14002002f
test rdi, rdi
jne 0x14002004f
test r8d, r8d
je 0x140020036
inc esi
movzx edx, word [rax]
mov rbx, rbp
test dx, dx
jne 0x14001ff8f
test rdi, rdi
jne 0x140020064
movsxd rax, esi
jmp 0x140020066
test rbx, rbx
je 0x140020064
sub rcx, rbx
mov rax, rbx
sar rcx, 1
mov dword [rdi], ecx
inc dword [r14]
jmp 0x140020066
mov dword [rdi], ebp
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14002007c
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x140313cc0]
call fcn.14003be08
xor ecx, ecx
add rsp, 0x28
jmp fcn.14001ff48

Function at 0x140020110
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rcx, qword [0x140313cc0]
xor ebp, ebp
mov esi, edx
mov dword [rax + 8], ebp
call fcn.14003be08
test ebx, ebx
js 0x14002013f
mov dword [rax], ebx
lea rcx, [rsp + 0x30]
call fcn.14001ff48
mov edi, dword [rsp + 0x30]
mov edx, esi
mov ecx, edi
mov rbx, rax
call fcn.14003d3f0
mov ecx, ebp
jmp 0x14002017b
test edi, edi
je 0x140020180
movzx edx, word [rbx]
cmp dx, 0x22
jne 0x14002016e
inc ecx
jmp 0x140020175
mov word [rax], dx
add rax, 2
add rbx, 2
dec edi
cmp word [rbx], bp
jne 0x14002015d
mov word [rax], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.14003d530
Function at 0x14002092c
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
mov r9d, r8d
or r8d, 0xffffffff
jmp 0x140020ac8
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
xor eax, eax
mov ecx, 0x1000
mov r15d, r9d
mov r13d, r8d
mov edi, ecx
mov esi, eax
mov r14d, eax
mov r12d, eax
cmp edx, 0x18
je 0x140020c07
cmp edx, 2
je 0x140020c07
mov rcx, qword [0x140311830]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x90]
lea r8d, [r12 + 2]
lea rdx, [rsp + 0x34]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
je 0x140020bf0
mov r15, qword [rsp + 0x90]
mov ebp, edi
cmp dword [rsp + 0x38], 2
jne 0x140020be8
cmp r13d, 0xffffffff
je 0x140020b75
cmp r14d, r13d
jae 0x140020be8
add r14d, 2
test edi, edi
jne 0x140020ba0
mov rcx, qword [0x140311830]
movsxd r9, ebp
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
xor ecx, ecx
mov rbx, rax
movzx eax, word [rsp + 0x34]
cmp ax, 0xa
je 0x140020be8
cmp ax, 0xd
je 0x140020bc0
mov word [r12 + rbx], ax
inc esi
inc ebp
add r12, 2
dec edi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x34]
mov r8d, 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
jne 0x140020b63
mov r15d, dword [rsp + 0xa8]
movsxd rax, esi
mov edx, r15d
mov word [rbx + rax*2], cx
mov rcx, rbx
call fcn.1400b3030
jmp 0x140020cd0
mov r8, rcx
mov rcx, qword [0x140311830]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15d, dword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
mov rbx, rax
mov r13d, edi
cmp r15d, 0xffffffff
je 0x140020c3a
cmp r14d, r15d
jae 0x140020ca4
xor ecx, ecx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea r8d, [rcx + 1]
mov qword [rsp + 0x20], rcx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140020ca4
cmp dword [rsp + 0x38], 1
jne 0x140020ca4
inc r14d
test edi, edi
jne 0x140020c88
mov rcx, qword [0x140311830]
lea edx, [rdi + 8]
movsxd r9, r13d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rsp + 0x30]
cmp al, 0xa
je 0x140020ca4
cmp al, 0xd
je 0x140020c2f
mov byte [r12 + rbx], al
inc esi
inc r13d
inc r12
dec edi
jmp 0x140020c2f
mov r15d, dword [rsp + 0xa8]
xor ecx, ecx
cmp dword [rsp + 0x98], 0x18
movsxd rax, esi
mov edx, r15d
mov byte [rax + rbx], cl
mov rcx, rbx
jne 0x140020ccb
call fcn.1400b3090
jmp 0x140020cd0
call fcn.1400b33e0
mov rcx, qword [0x140311830]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140020ac8
Capabilities:
Read file on windows

Disassembly:
mov rcx, qword [rcx + 0x18]
mov r9d, r8d
or r8d, 0xffffffff
jmp 0x140020ac8
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
xor eax, eax
mov ecx, 0x1000
mov r15d, r9d
mov r13d, r8d
mov edi, ecx
mov esi, eax
mov r14d, eax
mov r12d, eax
cmp edx, 0x18
je 0x140020c07
cmp edx, 2
je 0x140020c07
mov rcx, qword [0x140311830]
xor edx, edx
mov r8d, 0x2000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x90]
lea r8d, [r12 + 2]
lea rdx, [rsp + 0x34]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
je 0x140020bf0
mov r15, qword [rsp + 0x90]
mov ebp, edi
cmp dword [rsp + 0x38], 2
jne 0x140020be8
cmp r13d, 0xffffffff
je 0x140020b75
cmp r14d, r13d
jae 0x140020be8
add r14d, 2
test edi, edi
jne 0x140020ba0
mov rcx, qword [0x140311830]
movsxd r9, ebp
lea edx, [rdi + 8]
add r9, r9
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
xor ecx, ecx
mov rbx, rax
movzx eax, word [rsp + 0x34]
cmp ax, 0xa
je 0x140020be8
cmp ax, 0xd
je 0x140020bc0
mov word [r12 + rbx], ax
inc esi
inc ebp
add r12, 2
dec edi
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x34]
mov r8d, 2
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
test eax, eax
jne 0x140020b63
mov r15d, dword [rsp + 0xa8]
movsxd rax, esi
mov edx, r15d
mov word [rbx + rax*2], cx
mov rcx, rbx
call fcn.1400b3030
jmp 0x140020cd0
mov r8, rcx
mov rcx, qword [0x140311830]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15d, dword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
mov rbx, rax
mov r13d, edi
cmp r15d, 0xffffffff
je 0x140020c3a
cmp r14d, r15d
jae 0x140020ca4
xor ecx, ecx
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea r8d, [rcx + 1]
mov qword [rsp + 0x20], rcx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140020ca4
cmp dword [rsp + 0x38], 1
jne 0x140020ca4
inc r14d
test edi, edi
jne 0x140020c88
mov rcx, qword [0x140311830]
lea edx, [rdi + 8]
movsxd r9, r13d
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edi, 0x1000
mov rbx, rax
mov al, byte [rsp + 0x30]
cmp al, 0xa
je 0x140020ca4
cmp al, 0xd
je 0x140020c2f
mov byte [r12 + rbx], al
inc esi
inc r13d
inc r12
dec edi
jmp 0x140020c2f
mov r15d, dword [rsp + 0xa8]
xor ecx, ecx
cmp dword [rsp + 0x98], 0x18
movsxd rax, esi
mov edx, r15d
mov byte [rax + rbx], cl
mov rcx, rbx
jne 0x140020ccb
call fcn.1400b3090
jmp 0x140020cd0
call fcn.1400b33e0
mov rcx, qword [0x140311830]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140021bf0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
xor edi, edi
mov r13, r8
mov rbx, rdx
lea eax, [rdi + 1]
mov r15, rcx
mov r12d, edi
cmp dword [rcx + 0x10], eax
jne 0x140021da7
test rdx, rdx
je 0x140021da7
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 7]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140021da7
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x140311830]
xor edx, edx
mov eax, eax
mov r8d, 0x200000
mov qword [rsp + 0xc8], rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x140021d9e
call fcn.140055a20
mov rsi, rax
test rax, rax
je 0x140021d8c
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sub.msvcrt.dll__wstat
mov edx, 0x1a4
mov rcx, rsi
call fcn.140055f80
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140056570
mov rax, qword [r15 + 0x38]
mov ecx, dword [rax + 0x10]
dec ecx
test ecx, 0xfffffffd
je 0x140021cea
mov rdx, r13
mov rcx, rsi
call fcn.1400554f0
jmp 0x140021d08
mov rcx, r13
call fcn.1400b3300
mov rcx, rsi
mov rdx, rax
mov rbx, rax
call fcn.140055f70
mov rcx, rbx
call fcn.1400b32f0
mov r13, qword [rsp + 0xc8]
mov rcx, rsi
mov rdx, r13
call fcn.140055fd0
mov edx, 0x8000
mov rcx, rsi
call fcn.140055dc0
mov rcx, qword [r15]
mov rdx, rsi
call fcn.140056720
jmp 0x140021d4e
mov rcx, qword [r15]
movsxd r8, eax
mov rdx, r14
movsxd rbx, eax
call fcn.1400566a0
cmp rax, rbx
jne 0x140021d78
add r12, rbx
lea r9, [rsp + 0xb0]
mov r8d, 0x200000
mov rdx, r14
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0xb0]
test eax, eax
jg 0x140021d35
cmp r12, r13
mov eax, 1
mov rcx, rsi
cmove rdi, rax
call fcn.140055790
mov rcx, qword [0x140311830]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret