joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a39d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400e9080]
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 0x1400a3a65
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 0x1400a3ac6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14007df20
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.1400b7380
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 0x1400a3b81
sub ecx, 1
je 0x1400a3bf4
sub ecx, 1
je 0x1400a3b30
cmp ecx, 1
je 0x1400a3b13
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400ce280]
call fcn.14007df20
jmp 0x1400a3bf4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400a3700
test eax, eax
je 0x1400a3bf4
jmp 0x1400a3a9a
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 0x1400a3bf4
sub rax, rsi
cmp rax, rbp
jae 0x1400a3bf4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14007e0a0
jmp 0x1400a3bf4
cmp r8d, 4
jle 0x1400a3bf4
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 0x1400a3bf4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14007de40
mov esi, eax
test eax, eax
je 0x1400a3bd3
mov edx, 5
mov rcx, rbx
call fcn.1400a46c0
mov eax, esi
jmp 0x1400a3a9a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14008c920
mov rcx, r14
call fcn.14008cc00
test eax, eax
je 0x1400a3a98
mov edx, 5
mov rcx, rbx
call fcn.1400a46c0
mov eax, Ordinal_45
jmp 0x1400a3a9a
Function at 0x1400b6990
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 [str._v_]
mov rdi, rax
test rax, rax
jne 0x1400b69d2
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 0x1400b6a19
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 0x1400b6a72
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 0x1400b6a30
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400b6ab3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400c9202]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400c9203]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400b6a80
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 0x1400b7a48
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, rax
lea rcx, str.Imagebase_is:__p_n
mov rbp, rax
movsxd rsi, dword [rax + 0x3c]
add rsi, rax
call fcn.140001240
xor r12d, r12d
mov edi, r12d
cmp r12w, word [rsi + 6]
jae 0x140001427
lea r15, str..packed
nop word [rax + rax]
movsxd rax, edi
lea rcx, [rax + rax*4]
lea r14, [rcx*8]
lea rbx, [r14 + rsi]
lea rdx, [rbx + 0x108]
lea rcx, str.Searching_section:__s_n
call fcn.140001240
mov rax, r12
nop dword [rax]
movzx ecx, byte [rbx + rax + 0x108]
inc rax
cmp cl, byte [r15 + rax - 1]
jne 0x140001419
cmp rax, 8
jne 0x140001360
mov ebx, dword [rsi + r14 + 0x114]
mov edi, dword [rsi + r14 + 0x118]
add rbx, rbp
je 0x140001427
mov rdx, rbx
lea rcx, str.Found_packed_section_VA:__p_n
call fcn.140001240
xor r9d, r9d
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x38]
mov edx, edi
mov rcx, rbx
call fcn.140002bc0
mov rcx, rax
mov rbx, rax
call fcn.1400014f0
mov ecx, eax
add rcx, rbx
mov dword [rsp + 0x30], 4
mov qword [0x140040c98], rcx
lea rcx, str.Creating_thread..._n
call fcn.140001240
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x1400012a0]
xor edx, edx
mov dword [rsp + 0x20], r12d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140001433
movzx eax, word [rsi + 6]
inc edi
cmp edi, eax
jl 0x140001330
lea rcx, str.Couldnt_find_.packed_section_n
call fcn.140001240
jmp 0x140001433

Function at 0x140001440
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
movzx ebp, r8b
mov rbx, rcx
cmp edx, 0x10
jae 0x1400014cd
test rcx, rcx
je 0x1400014cd
mov edx, 0x40
call fcn.140002fa0
test al, al
jne 0x1400014cd
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x1400014cd
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x1400014cd
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.140002fa0
test al, al
jne 0x1400014cd
cmp dword [rdi], 0x4550
jne 0x1400014cd
mov rcx, rbx
call fcn.1400019d0
movzx ecx, al
lea rax, [rsi + 0xf]
lea rax, [rax + rcx*2]
lea rax, [rdi + rax*8]
test bpl, bpl
jne 0x1400014cf
xor ecx, ecx
cmp dword [rax], ecx
cmove rax, rcx
jmp 0x1400014cf
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400014f0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140001558
mov edx, 0x40
call fcn.140002fa0
test al, al
jne 0x140001558
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140001558
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140001558
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.140002fa0
test al, al
jne 0x140001558
cmp dword [rdi], 0x4550
jne 0x140001558
mov rcx, rbx
call fcn.1400019d0
mov eax, dword [rdi + 0x28]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140001570
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x5a4d
test rcx, rcx
je 0x1400015eb
mov edx, 0x40
call fcn.140002fa0
test al, al
jne 0x1400015eb
cmp word [rbx], bp
jne 0x1400015eb
movsxd rax, dword [rbx + 0x3c]
lea rdi, [rbx + 0x3c]
cmp eax, 0x400
jg 0x1400015eb
lea rsi, [rbx + rax]
mov edx, 0xf8
mov rcx, rsi
call fcn.140002fa0
test al, al
jne 0x1400015eb
cmp dword [rsi], 0x4550
jne 0x1400015eb
mov edx, 0xf8
mov rcx, rsi
call fcn.140002fa0
test al, al
je 0x1400015e5
xor esi, esi
jmp 0x1400015f6
movzx esi, word [rsi + 0x18]
jmp 0x1400015f6
xor esi, esi
lea rdi, [rbx + 0x3c]
test rbx, rbx
je 0x140001648
mov edx, 0x40
mov rcx, rbx
call fcn.140002fa0
test al, al
jne 0x140001648
cmp word [rbx], bp
jne 0x140001648
movsxd rax, dword [rdi]
cmp eax, 0x400
jg 0x140001648
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.140002fa0
test al, al
jne 0x140001648
cmp dword [rdi], 0x4550
jne 0x140001648
mov eax, 0x20b
cmp si, ax
jne 0x140001643
mov rax, qword [rdi + 0x30]
jmp 0x14000164a
mov eax, dword [rdi + 0x34]
jmp 0x14000164a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001660
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400016e7
mov edx, 0x40
call fcn.140002fa0
test al, al
jne 0x1400016e7
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x1400016e7
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x1400016e7
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.140002fa0
test al, al
jne 0x1400016e7
cmp dword [rdi], 0x4550
jne 0x1400016e7
mov rcx, rbx
call fcn.1400019d0
mov rcx, rbx
test al, al
je 0x1400016d4
call fcn.140001780
mov eax, dword [rax + 0x50]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.140001700
mov eax, dword [rax + 0x50]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140001700
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140001770
mov edx, 0x40
call fcn.140002fa0
test al, al
jne 0x140001770
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140001770
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140001770
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.140002fa0
test al, al
jne 0x140001770
cmp dword [rdi], 0x4550
jne 0x140001770
mov rcx, rbx
call fcn.1400019d0
xor ecx, ecx
test al, al
cmove rcx, rdi
mov rax, rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140001780
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400017f0
mov edx, 0x40
call fcn.140002fa0
test al, al
jne 0x1400017f0
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x1400017f0
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x1400017f0
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.140002fa0
test al, al
jne 0x1400017f0
cmp dword [rdi], 0x4550
jne 0x1400017f0
mov rcx, rbx
call fcn.1400019d0
xor ecx, ecx
test al, al
cmovne rcx, rdi
mov rax, rcx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140001800
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x140001831
test rdx, rdx
je 0x140001843
mov r9d, 0x40
mov r8, rcx
call fcn.140002f70
test al, al
jne 0x140001851
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, 0x40
call fcn.140002fa0
test al, al
jne 0x140001831
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x140001831
movsxd rax, dword [rdi + 0x3c]
cmp eax, 0x400
jg 0x140001831
lea rbx, [rdi + rax]
test rsi, rsi
je 0x140001889
mov r9d, 0xf8
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140002f70
test al, al
je 0x140001831
jmp 0x14000189a
mov edx, 0xf8
mov rcx, rbx
call fcn.140002fa0
test al, al
jne 0x140001831
mov rsi, qword [rsp + 0x38]
xor eax, eax
cmp dword [rbx], 0x4550
cmovne rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140001940
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1400019be
mov edx, 0x40
call fcn.140002fa0
test al, al
jne 0x1400019be
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x1400019be
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x1400019be
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.140002fa0
test al, al
jne 0x1400019be
cmp dword [rdi], 0x4550
jne 0x1400019be
mov rcx, rbx
call fcn.1400019d0
movzx eax, al
add rax, 0xa
shl rax, 4
add rax, rdi
cmp dword [rax], 0
je 0x1400019be
test rax, rax
setne al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret
Function at 0x1400019d0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140001a4a
mov edx, 0x40
call fcn.140002fa0
test al, al
jne 0x140001a4a
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x140001a4a
movsxd rax, dword [rbx + 0x3c]
cmp eax, 0x400
jg 0x140001a4a
lea rdi, [rbx + rax]
mov edx, 0xf8
mov rcx, rdi
call fcn.140002fa0
test al, al
jne 0x140001a4a
cmp dword [rdi], 0x4550
jne 0x140001a4a
mov edx, 0xf8
mov rcx, rdi
call fcn.140002fa0
test al, al
jne 0x140001a4a
mov eax, 0x20b
cmp word [rdi + 0x18], ax
sete al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor al, al
add rsp, 0x20
pop rdi
ret

Function at 0x1400091d8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140009206
xor eax, eax
jmp 0x1400092ec
cmp qword [rcx + 0x68], 0
je 0x140009217
call fcn.140007a00
jmp 0x1400092ec
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000922e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140009230
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140009262
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14002b790
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1400092e6
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140009299
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400092c2
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140015a48
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1400092e6
cmp rsi, rbx
ja 0x1400092a0
test rsi, rsi
je 0x1400092e6
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140015a48
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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

Function at 0x14000af28
Capabilities:
Parse pe header

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

Function at 0x140018b68
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140018964
Function at 0x14001f9ac
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000a830
sub rsp, rax
mov rax, qword [0x14003e040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001cd34
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001f9fb
mov rax, rbp
jmp 0x14001fb03
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x40720]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140020acc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x40720]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001faff
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001faff
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140020acc
test rax, rax
js 0x14001faff
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001faff
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001faf1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001faf1
cmp byte [rcx], 0xd
jne 0x14001fad7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001fae6
cmp byte [rcx + 1], 0xa
jne 0x14001fae6
inc rcx
jmp 0x14001fae6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3e470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001fab9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001fb03
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000a1d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001fd24
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001fd3a
mov al, 1
jmp 0x14001fd9a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001fd4b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001fd98
mov ecx, dword [rcx + 0x18]
nop
call fcn.14002408c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001fd98
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001fd98
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001fd98
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001fd9a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001fe6c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140040720]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001fec3
cmp word [rdx], r13w
jne 0x14001fec3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001fec8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001ffed
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002000e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001ff01
mov rdx, r9
mov word [rbx], cx
jmp 0x14001ff28
cmp r9, r8
jae 0x14001ff38
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001fee2
jmp 0x14001ffed
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001ffe2
cmp dword [rsp + 0x80], esi
je 0x14001ffe2
lea r8, [0x140040720]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001ffba
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001ff8a
mov word [rbx], r13w
jmp 0x14001ffea
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001ff97
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001ffea
cmp word [rsp + 0x70], r13w
jne 0x14001ffc7
cmp rbx, r14
je 0x14001ff84
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140020ad4
cmp word [rsp + 0x70], r13w
je 0x14001ffed
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140040720]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001ffe7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001ffed
Function at 0x140023824
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140023854
xor eax, eax
jmp 0x140023917
mov rbp, rbx
cmp word [rax], si
je 0x140023879
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140023860
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002385c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140021e24
movsxd r14, eax
test eax, eax
jne 0x1400238b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002384d
mov rcx, r14
call fcn.14001bad8
mov rdi, rax
test rax, rax
jne 0x1400238d0
xor ecx, ecx
call fcn.14001ace4
jmp 0x1400238ac
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140021e24
test eax, eax
jne 0x140023901
mov rcx, rdi
call fcn.14001ace4
jmp 0x14002390b
xor ecx, ecx
call fcn.14001ace4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400265e0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14001d240
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140026681
cmp ebx, dword [rsp + 0x30]
je 0x14002667a
test esi, esi
je 0x14002667a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140026655
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140026662
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002663f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140026666
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140026683
mov eax, 1
jmp 0x140026683
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret