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

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140097098]
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 0x140061b55
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 0x140061bb6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14003c3e0
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.140074d30
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 0x140061c71
sub ecx, 1
je 0x140061ce4
sub ecx, 1
je 0x140061c20
cmp ecx, 1
je 0x140061c03
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140080c90]
call fcn.14003c3e0
jmp 0x140061ce4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400617f0
test eax, eax
je 0x140061ce4
jmp 0x140061b8a
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 0x140061ce4
sub rax, rsi
cmp rax, rbp
jae 0x140061ce4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14003c560
jmp 0x140061ce4
cmp r8d, 4
jle 0x140061ce4
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 0x140061ce4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14003c300
mov esi, eax
test eax, eax
je 0x140061cc3
mov edx, 5
mov rcx, rbx
call fcn.1400627b0
mov eax, esi
jmp 0x140061b8a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14004abe0
mov rcx, r14
call fcn.14004aec0
test eax, eax
je 0x140061b88
mov edx, 5
mov rcx, rbx
call fcn.1400627b0
mov eax, Ordinal_46
jmp 0x140061b8a
Function at 0x140074a80
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 0x140074ac2
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 0x140074b09
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 0x140074b62
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 0x140074b20
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140074ba3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14008641a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14008641b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140074b70
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 0x140075b4c
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14000acdd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000aced
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000acd5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000ad05
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000acf2
sub eax, 3
jb 0x14000ad1f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000ad56
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000ad46
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000ad44
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000ad33
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000ac92
jmp 0x14000acdd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1c00
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000ada2
cmp rsi, rcx
jae 0x14000adaa
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000ad89
cmp al, 0x8f
ja 0x14000ad89
cmp byte [rsi - 2], 0xf
je 0x14000ad8f
sub al, 0xe8
cmp al, 1
ja 0x14000ad73
cmp rsi, rcx
jae 0x14000adaa
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000ad79
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000adaa
lodsb al, byte [rsi]
jmp 0x14000ad89
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x8000]
mov eax, dword [rdi]
or eax, eax
je 0x14000ae07
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xa1dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14000adb7
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14000ae01
mov qword [rbx], rax
add rbx, 8
jmp 0x14000add7
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14000ae41
cmp al, 0xef
ja 0x14000ae33
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000ae13
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000ae22
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x21f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14000ae95
sub rsp, 0xffffffffffffff80
jmp 0x140001e98
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140018760]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x140018770]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1400155e0
jmp 0x14000123c
mov rax, qword [0x140018770]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140018770]
mov dword [rax], 1
mov rax, qword [0x1400187b0]
mov rdx, rax
mov rax, qword [0x1400187a0]
mov rcx, rax
call sub.ucrtbase.dll__initterm
jmp 0x14000123c
mov dword [0x14001d024], 1
mov rax, qword [0x140018770]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140018790]
mov rdx, rax
mov rax, qword [0x140018780]
mov rcx, rax
call sub.ucrtbase.dll__initterm
mov rax, qword [0x140018770]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140018760]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400186b0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400186b0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140014868
mov rax, qword [0x1400187f0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140018750]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.ucrtbase.dll__set_invalid_parameter_handler
call fcn.140014060
mov eax, dword [0x14001d004]
lea rdx, [0x14001d008]
mov ecx, eax
call fcn.14000147c
call fcn.140013cd7
mov rax, qword [0x1400186e0]
mov rax, qword [rax]
mov rdx, qword [0x14001d010]
mov qword [rax], rdx
mov rcx, qword [0x14001d010]
mov rdx, qword [0x14001d008]
mov eax, dword [0x14001d004]
mov r8, rcx
mov ecx, eax
call fcn.140013d00
mov dword [0x14001d01c], eax
mov eax, dword [0x14001d020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14001d01c]
mov ecx, eax
call sub.ucrtbase.dll_exit
mov eax, dword [0x14001d024]
test eax, eax
jne 0x14000136c
call sub.ucrtbase.dll__cexit
mov eax, dword [0x14001d01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140007f40
Capabilities:
Check if file exists
Delete file
Move file
Terminate process

Disassembly:
sub rsp, 0x28
call sub.ucrtbase.dll_puts
mov ecx, 2
call sub.ucrtbase.dll_exit
nop
nop word cs:[rax + rax]
nop

Function at 0x140007f60
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x1400270a0]
test rcx, rcx
je 0x140007f9b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007fc0
mov rcx, qword [0x1400270a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400280c0], 0
jne 0x140007fd8
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x1400270a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007f8e
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x140017390]
mov qword [rsp + 0x20], 0
lea rdi, [0x1400280e0]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400080a4
test al, 0x10
je 0x140007fa4
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007fa4
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140008050
jmp 0x140007fa4
Function at 0x14000ee90
Capabilities:
Create directory
Extract resource via kernel32 functions

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140015390
sub rsp, rax
mov eax, dword [0x14002c0e0]
mov rsi, rcx
test eax, eax
je 0x14000ef30
xor ebx, ebx
lea rdi, [0x14002a0e0]
test eax, eax
jg 0x14000eecc
jmp 0x14000eee0
add rbx, 1
cmp dword [0x14002c0e0], ebx
jle 0x14000eee0
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.ucrtbase.dll_wcscmp
test eax, eax
jne 0x14000eec0
jmp 0x14000ef17
mov rcx, rsi
call sub.ucrtbase.dll_wcslen
cmp rax, 2
jne 0x14000eef5
cmp word [rsi + 2], 0x3a
je 0x14000ef17
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000ef80
movsxd rbx, dword [0x14002c0e0]
cmp ebx, 0x3ff
jle 0x14000ef98
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str._HOME_
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140007820
test al, al
je 0x14000efba
movsxd rbx, dword [0x14002c0e0]
mov rcx, rdi
lea rdi, [0x14002a0e0]
call sub.ucrtbase.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x14002c0e0]
add eax, 1
mov dword [0x14002c0e0], eax
jmp 0x14000eeb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000ef04
xor eax, eax
jmp 0x14000ef1c
mov rcx, rsi
call sub.ucrtbase.dll__wcsdup
add dword [0x14002c0e0], 1
mov rdx, rax
lea rax, [0x14002a0e0]
mov qword [rax + rbx*8], rdx
jmp 0x14000ef17
mov rcx, rbx
call fcn.140007ea0
nop
nop word cs:[rax + rax]
nop
Function at 0x140014070
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.ucrtbase.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.ucrtbase.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.ucrtbase.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.1400153d0
call sub.ucrtbase.dll_abort
nop

Function at 0x140014d42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14002c208]
test eax, eax
je 0x140014dda
lea rax, [0x14002c1e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14002c210]
mov qword [rbp - 8], rax
jmp 0x140014dbe
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 0x140014db2
cmp qword [rbp - 0x10], 0
je 0x140014db2
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 0x140014d78
lea rax, [0x14002c1e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140014ddb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140014ee0
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 0x140014f08
mov eax, 0
jmp 0x140014f56
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 0x140014f31
mov eax, 0
jmp 0x140014f56
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 0x140014f51
mov eax, 0
jmp 0x140014f56
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x141107000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x14110700a
jmp 0x14110900f
jmp fcn.140b4e160
Function at 0x1800019a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x180037040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r14d, r14d
mov eax, 0x5a4d
mov rdi, rcx
mov esi, r14d
cmp word [rcx], ax
je 0x1800019d9
mov ebx, r14d
jmp 0x1800019ea
movsxd rbx, dword [rcx + 0x3c]
add rbx, rdi
cmp dword [rbx], 0x4550
cmovne rbx, r14
mov ebp, dword [rbx + 0x50]
lea rcx, [rsp + 0x28]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rax
call fcn.180001880
mov r10, qword [rsp + 0x30]
mov r9d, r14d
mov r11, qword [rsp + 0x28]
sub r10, r11
sar r10, 2
sub rbp, r10
je 0x180001a5f
mov rbx, r14
mov eax, r14d
test r10, r10
je 0x180001a50
mov rcx, r14
nop dword [rax]
mov r8d, dword [r11 + rcx*4]
lea ecx, [rax + r9]
movzx ecx, byte [rcx + rdi]
cmp ecx, r8d
je 0x180001a47
cmp r8d, 0xffffffff
jne 0x180001a54
inc eax
mov ecx, eax
cmp rcx, r10
jb 0x180001a30
lea rsi, [rbx + rdi]
inc r9d
mov ebx, r9d
cmp rbx, rbp
jb 0x180001a22
inc dword [0x180037a68]
test r11, r11
je 0x180001a9f
mov rdx, qword [rsp + 0x38]
mov rax, r11
sub rdx, r11
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x180001a97
mov r11, qword [r11 - 8]
add rdx, 0x27
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180001ac5
mov rcx, r11
call fcn.18000d8f0
mov rax, rsi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18000d1b0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
call fcn.180016788
int3
Function at 0x180002ba0
Capabilities:
Access peb ldr_data
Enumerate pe sections

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x68
mov rax, qword [0x180037040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, qword [rcx]
mov rsi, rdx
mov rdx, qword [0x18003b758]
mov rbp, r8
mov rdi, rcx
mov r14, qword [rax + 0x208]
test rdx, rdx
jne 0x180002ca9
mov rax, qword gs:[0x60]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x4c], 0x7865742e
mov byte [rsp + 0x50], 0x74
mov rbx, qword [rax + 0x10]
movsxd rcx, dword [rbx + 0x3c]
movzx eax, word [rcx + rbx + 0x14]
lea r8, [rcx + rbx]
add rax, 0x18
add r8, rax
movzx eax, word [rcx + rbx + 6]
lea rcx, [rax + rax*4]
lea r11, [r8 + rcx*8]
cmp r8, r11
je 0x180002c63
lea r9, [rsp + 0x4c]
sub r9, r8
nop dword [rax]
lea r10, [r8 + 5]
mov rax, r8
cmp r8, r10
je 0x180002c63
nop dword [rax]
movsx edx, byte [r9 + rax]
movzx ecx, byte [rax]
cmp ecx, edx
jne 0x180002c56
inc rax
cmp rax, r10
jne 0x180002c40
jmp 0x180002c63
add r8, 0x28
sub r9, 0x28
cmp r8, r11
jne 0x180002c30
mov eax, dword [r8 + 8]
mov ecx, dword [r8 + 0xc]
add rcx, rbx
mov word [rsp + 0x48], 0x26ff
mov rbx, qword [rsp + 0x60]
lea rdx, [rax + rcx]
cmp rax, 2
jb 0x180002ca2
movzx eax, word [rsp + 0x48]
lea r8, [rdx - 2]
nop dword [rax]
cmp ax, word [rcx]
je 0x180002c9f
cmp rcx, r8
je 0x180002ca2
inc rcx
jmp 0x180002c90
mov rdx, rcx
mov qword [0x18003b758], rdx
xor eax, eax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8, rbp
lea rax, [rsp + 0x30]
mov qword [rsp + 0x38], r14
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov rcx, rdi
call fcn.18000cf80
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000d1b0
add rsp, 0x68
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18001cadc
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 0x18001cb0c
xor eax, eax
jmp 0x18001cbcf
mov rbp, rbx
cmp word [rax], si
je 0x18001cb31
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001cb18
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001cb14
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.18001c9fc
movsxd r14, eax
test eax, eax
jne 0x18001cb6f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001cb05
mov rcx, r14
call fcn.1800195e0
mov rdi, rax
test rax, rax
jne 0x18001cb88
xor ecx, ecx
call fcn.180018880
jmp 0x18001cb64
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.18001c9fc
test eax, eax
jne 0x18001cbb9
mov rcx, rdi
call fcn.180018880
jmp 0x18001cbc3
xor ecx, ecx
call fcn.180018880
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 0x180022998
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, [0x1800386a0]
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 0x1800229ef
cmp word [rdx], r13w
jne 0x1800229ef
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800229f4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180022b19
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180022b3a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180022a2d
mov rdx, r9
mov word [rbx], cx
jmp 0x180022a54
cmp r9, r8
jae 0x180022a64
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 0x180022a0e
jmp 0x180022b19
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 0x180022b0e
cmp dword [rsp + 0x80], esi
je 0x180022b0e
lea r8, [0x1800386a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180022ae6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180022ab6
mov word [rbx], r13w
jmp 0x180022b16
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 0x180022ac3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180022b16
cmp word [rsp + 0x70], r13w
jne 0x180022af3
cmp rbx, r14
je 0x180022ab0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800228b8
cmp word [rsp + 0x70], r13w
je 0x180022b19
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, [0x1800386a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180022b13
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180022b19