joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800ab200
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 0x1800ab235
lea rdx, str.Couldnt_set_desired_mode
call fcn.18008d420
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x1800ab24c
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.18008d5a0
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x1800ab268
mov rcx, rdi
call fcn.1800ab140
jmp 0x1800ab39f
cmp esi, 0x14
jne 0x1800ab381
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xba0], 2
jne 0x1800ab2e9
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax]
test rdx, rdx
je 0x1800ab2e9
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.180076b40
test eax, eax
jne 0x1800ab39f
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x1800ab2de
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x1800ab2e9
mov rcx, qword [rsp + 0x50]
call qword [fcn.180205df0]
mov rdx, qword [rsi + 0xc08]
test rdx, rdx
jne 0x1800ab30d
cmp byte [rsi + 0xf0d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x180211b01]
test rbp, rbp
mov r9, r8
lea rax, [0x180213b80]
cmovne r9, rbp
lea rcx, [0x180216ee8]
cmovne r8, rax
call fcn.18007bd60
mov rcx, rbp
mov r14, rax
call qword [fcn.180205df0]
test r14, r14
jne 0x1800ab34c
lea ebx, [r14 + 0x1b]
jmp 0x1800ab3a1
lea rcx, [rdi + 0xa00]
mov r8, r14
lea rdx, [0x18021b6e0]
call fcn.1800c1360
mov rcx, r14
mov esi, eax
call qword [fcn.180205df0]
test esi, esi
je 0x1800ab375
mov ebx, esi
jmp 0x1800ab3a1
mov dword [rdi + 0xab8], 0x1f
jmp 0x1800ab3a1
cmp esi, 0x15
jne 0x1800ab38c
lea r8d, [rsi - 8]
jmp 0x1800ab395
cmp esi, 0x16
jne 0x1800ab3a1
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.1800aac70
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 0x1800b0c90
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x1800b0db4
cmp r8d, 0xff
jne 0x1800b0cf1
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x1800b0cdb
lea r8, [0x180000000]
mov r9, qword [r8 + r10*8 + 0x21d260]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.18008d5a0
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.18008d5a0
cmp r8d, 0xfb
jne 0x1800b0d03
lea r9, str.WILL
jmp 0x1800b0d41
cmp r8d, 0xfc
jne 0x1800b0d15
lea r9, str.WONT
jmp 0x1800b0d41
cmp r8d, 0xfd
jne 0x1800b0d27
lea r9, [0x18021dc84]
jmp 0x1800b0d41
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x1800b0d9d
cmp r10d, 0x27
jg 0x1800b0d74
lea r8, [0x180000000]
mov r8, qword [r8 + r10*8 + 0x21d880]
test r8, r8
jne 0x1800b0d84
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.18008d5a0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x1800b0d5b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.18008d5a0
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.18008d5a0
add rsp, 0x38
ret

Function at 0x1800b1100
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 0x1800b115f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.18008d420
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.1800b0c90
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800b2c20
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1804ccc40]
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 0x1800b2cb5
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 0x1800b2d16
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.18008d420
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.1800c6440
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 0x1800b2dd1
sub ecx, 1
je 0x1800b2e44
sub ecx, 1
je 0x1800b2d80
cmp ecx, 1
je 0x1800b2d63
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x18021b6e0]
call fcn.18008d420
jmp 0x1800b2e44
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1800b2950
test eax, eax
je 0x1800b2e44
jmp 0x1800b2cea
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 0x1800b2e44
sub rax, rsi
cmp rax, rbp
jae 0x1800b2e44
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.18008d5a0
jmp 0x1800b2e44
cmp r8d, 4
jle 0x1800b2e44
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 0x1800b2e44
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.18008d340
mov esi, eax
test eax, eax
je 0x1800b2e23
mov edx, 5
mov rcx, rbx
call fcn.1800b3910
mov eax, esi
jmp 0x1800b2cea
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.18009bd40
mov rcx, r14
call fcn.18009c020
test eax, eax
je 0x1800b2ce8
mov edx, 5
mov rcx, rbx
call fcn.1800b3910
mov eax, Ordinal_46
jmp 0x1800b2cea
Function at 0x1800c5be0
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 0x1800c5c22
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 0x1800c5c69
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 0x1800c5cc2
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 0x1800c5c80
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1800c5d03
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x180220e6a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x180220e6b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1800c5cd0
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 0x1800c5d28
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800c5d62
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800c5d67
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800c5db0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x1800c5db0
dec r8
sub rdx, 1
jne 0x1800c5d96
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14000103c
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
sub rsp, 0x28
mov rdx, rcx
lea r8, [rax + 0x10]
lea rcx, [section..data]
call qword [sym.imp.USER32.dll_wvsprintfA]
lea rcx, [section..data]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea r8, str.Loader
lea rdx, [section..data]
mov r9d, 0x200010
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
add rsp, 0x28
ret

Function at 0x140001098
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x300
mov r14, rcx
mov esi, 0x104
lea rcx, [rsp + 0xb0]
mov edx, esi
xor ebx, ebx
xor edi, edi
xor r13d, r13d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
mov dword [rsp + 0x348], eax
je 0x1400012a7
cmp eax, esi
jae 0x1400012ad
cmp word [rsp + 0xb0], bx
lea rcx, [rsp + 0xb0]
je 0x1400010fb
add rcx, 2
cmp word [rcx], bx
jne 0x1400010f2
lea rdx, str._version.dll
sub rdx, rcx
lea rax, [rsp + 0x2f6]
cmp rcx, rax
jae 0x140001123
movzx eax, word [rdx + rcx]
mov word [rcx], ax
add rcx, 2
cmp word [rdx + rcx], bx
jne 0x140001105
and word [rcx], bx
mov r8d, dword [0x14000540c]
lea rcx, [rsp + 0xb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test rax, rax
mov rbx, rax
je 0x1400012a7
lea rdx, str.GetFileVersionInfoW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rbp, rax
je 0x1400012a7
lea rdx, str.GetFileVersionInfoSizeW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rsi, rax
je 0x1400012a7
lea rdx, str.VerQueryValueW
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov r12, rax
je 0x1400012a7
lea rdx, [rsp + 0x350]
mov rcx, r14
call rsi
test eax, eax
mov dword [rsp + 0x348], eax
je 0x1400012ad
mov ecx, eax
call fcn.140001ab8
test rax, rax
mov rdi, rax
je 0x1400012ad
mov r8d, dword [rsp + 0x348]
mov edx, dword [rsp + 0x350]
mov r9, rax
mov rcx, r14
call rbp
test eax, eax
je 0x1400012ad
lea r9, [rsp + 0x348]
lea r8, [rsp + 0x20]
lea rdx, str.VarFileInfoTranslation
mov rcx, rdi
call r12
test eax, eax
je 0x1400012ad
cmp dword [rsp + 0x348], 4
jb 0x1400012ad
mov rax, qword [rsp + 0x20]
lea rdx, str.StringFileInfo_04x_04xArguments
lea rcx, [rsp + 0x30]
movzx r9d, word [rax + 2]
movzx r8d, word [rax]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0x348]
lea r8, [rsp + 0x358]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call r12
test eax, eax
je 0x1400012ad
cmp qword [rsp + 0x358], r13
je 0x1400012ad
mov eax, dword [rsp + 0x348]
test eax, eax
je 0x1400012ad
lea ecx, [rax + 1]
add rcx, rcx
call fcn.140001ab8
mov r8d, dword [rsp + 0x348]
mov rdx, qword [rsp + 0x358]
mov rcx, rax
mov r13, rax
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
mov r11d, dword [rsp + 0x348]
and word [r13 + r11*2], 0
jmp 0x1400012ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call fcn.140001ae0
test rbx, rbx
je 0x1400012c3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rax, r13
add rsp, 0x300
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400012d8
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
and qword [rax - 0x28], 0
and dword [rax - 0x30], 0
mov r8d, 3
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x38], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x14000131c
xor eax, eax
jmp 0x1400014db
lea rdx, [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [rsp + 0x68]
cmp eax, 0x10000
mov esi, eax
jae 0x14000133a
add ebx, 0xffffffff
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea ebp, [rax - 0x10000]
xor r9d, r9d
and ebp, 0xffff0000
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, rdi
sub esi, ebp
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rdi
mov r12, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12, r12
je 0x140001315
mov r9d, ebp
mov r8d, ebx
mov edx, 4
mov rcx, r12
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, r12
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbp, rbp
je 0x140001315
lea rdi, [rsi + rbp - 2]
mov dx, 0x7c
xor r12d, r12d
cmp byte [rdi], dl
lea rsi, [rsi + rbp - 4]
jne 0x140001456
cmp byte [rdi + 1], 0x3e
jne 0x140001456
lea rcx, [rbp + 2]
mov rbx, rdi
cmp rdi, rcx
jbe 0x1400014cf
lea rax, [rbx - 1]
cmp byte [rax], dl
jne 0x1400013e5
cmp byte [rbx - 2], 0x3c
je 0x1400013ed
mov rbx, rax
cmp rax, rcx
jmp 0x1400013d1
lea rax, [rbp + 5]
sub edi, ebx
cmp rbx, rax
jbe 0x140001421
cmp byte [rbx - 5], 0xef
jne 0x140001421
cmp byte [rbx - 4], 0xbb
jne 0x140001421
cmp byte [rbx - 3], 0xbf
jne 0x140001421
lea eax, [rdi + 1]
movsxd rcx, eax
add rcx, rcx
call fcn.140001ab8
xor edx, edx
mov ecx, 0xfde9
jmp 0x140001433
lea eax, [rdi + 1]
movsxd rcx, eax
add rcx, rcx
call fcn.140001ab8
xor edx, edx
xor ecx, ecx
mov r8, rbx
mov r9d, edi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r12, rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rcx, eax
and word [r12 + rcx*2], 0
jmp 0x1400014cf
cmp word [rsi], dx
jne 0x1400014cf
cmp word [rsi + 2], 0x3e
jne 0x1400014cf
lea rcx, [rbp + 4]
mov rbx, rsi
cmp rsi, rcx
jbe 0x1400014cf
lea rax, [rbx - 2]
cmp word [rax], dx
jne 0x14000147e
cmp word [rbx - 4], 0x3c
je 0x140001486
mov rbx, rax
cmp rax, rcx
jmp 0x14000146c
mov rdi, rsi
sub rdi, rbx
sar rdi, 1
lea eax, [rdi + 1]
movsxd rcx, eax
add rcx, rcx
call fcn.140001ab8
cmp rbx, rsi
mov r12, rax
mov rcx, rax
jae 0x1400014cb
movsxd rax, edi
sub rbx, rcx
lea rdx, [rcx + rax*2]
cmp rcx, rdx
jae 0x1400014cb
movzx eax, word [rbx + rcx]
mov word [rcx], ax
add rcx, 2
lea rax, [rbx + rcx]
cmp rax, rsi
jb 0x1400014b2
and word [rcx], 0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rax, r12
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x1400014f0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r14d, edx
mov rbx, rcx
call fcn.140001098
xor r15d, r15d
mov r13d, 2
mov rbp, rax
cmp rax, r15
jne 0x140001537
mov rcx, r13
call fcn.140001ab8
mov rbp, rax
mov word [rax], r15w
mov rcx, rbx
call fcn.1400012d8
cmp rax, r15
mov rsi, rax
jne 0x140001556
mov rcx, r13
call fcn.140001ab8
mov rsi, rax
mov word [rax], r15w
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
mov r12, rax
movzx ecx, word [rax]
cmp cx, 0x27
je 0x140001571
cmp cx, 0x22
jne 0x140001599
add rdi, r13
movzx eax, word [rdi]
cmp ax, r15w
je 0x140001599
cmp ax, cx
jne 0x140001571
cmp word [rdi + 2], cx
je 0x140001571
jmp 0x140001596
cmp ax, 0x20
je 0x1400015a2
cmp ax, 9
je 0x1400015a2
add rdi, r13
movzx eax, word [rdi]
cmp ax, r15w
jne 0x14000158a
mov r13, rdi
jmp 0x1400015b7
cmp ax, 0x20
je 0x1400015b3
cmp ax, 9
jne 0x1400015c0
add rdi, 2
movzx eax, word [rdi]
cmp ax, r15w
jne 0x1400015a7
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rbp
add ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, ebx
lea ebx, [rax + r14 + 0x20]
mov ecx, ebx
add rcx, rcx
call fcn.140001ab8
cmp r12, r13
lea ecx, [rbx - 1]
lea r8, [rax + rcx*2]
mov rcx, rax
mov r14, rax
jae 0x14000161f
sub r12, rax
cmp rcx, r8
jae 0x14000161f
movzx eax, word [r12 + rcx]
mov word [rcx], ax
add rcx, 2
lea rax, [r12 + rcx]
cmp rax, r13
jb 0x140001605
mov word [rcx], r15w
cmp word [rbp], r15w
je 0x14000165e
mov word [rcx], 0x20
cmp word [rbp], r15w
lea rax, [rcx + 2]
mov rcx, rax
je 0x14000165a
mov rdx, rbp
sub rdx, rax
cmp rcx, r8
jae 0x14000165a
movzx eax, word [rdx + rcx]
mov word [rcx], ax
add rcx, 2
cmp word [rdx + rcx], r15w
jne 0x140001643
mov word [rcx], r15w
cmp word [rsi], r15w
je 0x140001697
mov word [rcx], 0x20
cmp word [rsi], r15w
lea rax, [rcx + 2]
mov rcx, rax
je 0x140001693
mov rdx, rsi
sub rdx, rax
cmp rcx, r8
jae 0x140001693
movzx eax, word [rdx + rcx]
mov word [rcx], ax
add rcx, 2
cmp word [rdx + rcx], r15w
jne 0x14000167c
mov word [rcx], r15w
cmp word [rdi], r15w
je 0x1400016ca
mov word [rcx], 0x20
add rcx, 2
cmp word [rdi], r15w
je 0x1400016c6
sub rdi, rcx
cmp rcx, r8
jae 0x1400016c6
movzx eax, word [rdi + rcx]
mov word [rcx], ax
add rcx, 2
cmp word [rdi + rcx], r15w
jne 0x1400016af
mov word [rcx], r15w
mov rcx, rbp
call fcn.140001ae0
mov rcx, rsi
call fcn.140001ae0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rax, r14
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140001b48
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov edi, dword [rcx + 0x20]
mov rbx, rcx
sub edi, eax
mov qword [rcx + 0x18], rax
mov qword [rcx + 0x10], rax
je 0x140001b97
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140001bb5
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x140001ba4
add qword [rbx + 0x18], rcx
sub edi, ecx
jne 0x140001b68
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rbx + 0x18]
cmp qword [rbx + 8], rax
sbb eax, eax
not eax
and eax, 0x26
jmp 0x140001b99
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140001b99
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004aca40]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004aca50]
mov dword [rax], 1
mov rax, qword [0x004aca60]
mov dword [rax], 1
mov rax, qword [0x004aca30]
mov dword [rax], 1
mov rax, qword [0x004ac8b0]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x004aca20]
mov dword [0x004ca008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov rdx, qword [0x004ac960]
mov qword [rdx], rax
mov rdx, qword [0x004ac950]
mov qword [rdx], rax
mov rax, qword [0x004ac9e0]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004abfa0]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401e57
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x80]
lea rcx, [0x004a3018]
call sym.system
mov eax, dword [0x004ca050]
cmp eax, 2
jne 0x401eda
lea rax, [rbp - 0x51]
mov rcx, rax
call fcn.004612d0
lea rdx, [rbp - 0x51]
lea rax, [rbp - 0x60]
mov r8, rdx
lea rdx, [0x004a301c]
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.Slowsay_std::string_
mov dword [0x004ca044], 0x1869f
mov dword [0x004ca088], 0x1869f
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.0046a960
lea rax, [rbp - 0x51]
mov rcx, rax
call sym.std::allocator_char_::allocator__
lea rax, [rbp - 0x41]
mov rcx, rax
call fcn.004612d0
lea rdx, [rbp - 0x41]
lea rax, [rbp - 0x50]
mov r8, rdx
lea rdx, [0x004a3021]
mov rcx, rax
call sym.std::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_char_const__std::allocator_char__const_
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.Slowsay_std::string_
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.0046a960
lea rax, [rbp - 0x41]
mov rcx, rax
call sym.std::allocator_char_::allocator__
mov edx, dword [0x004ca088]
mov eax, dword [0x004ca044]
mov r8d, edx
mov edx, eax
lea rcx, [0x004a3031]
call sym.printf_char_const__::_
jmp 0x401f9a
add rsp, 0x48
pop rbx
pop rbp
ret