joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006fbd0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x1b0
mov rax, qword [0x1800a6040]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x1800a9be2]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x1800a9968]
xor r12d, r12d
lea r15, [0x1800a9c82]
mov ebx, 0x20
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x18006fd88
cmp ebx, 0x140
jb 0x18006fcef
cmp ebx, 0x14e
ja 0x18006fcef
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x64], 0x69
mov dword [rsp + 0x68], WSACleanup
mov dword [rsp + 0x6c], WSACleanup
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], WSACleanup
mov dword [rsp + 0x78], 0x6b
mov edi, dword [r14]
jmp 0x18006fcfe
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x18006fd51
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x18006fd88
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x80]
mov qword [rsp + 0x30], r12
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r15, 5
add r14, 4
add rbp, 2
cmp ebx, 0x15c
jle 0x18006fc51
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1800644a0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x180072a80
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1800a6040]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1800aa500], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x180072ad5
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800644a0
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1800aa500], rax
mov rcx, rax
test rax, rax
jne 0x180072b05
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x180072ae0
mov rbx, qword [rsp + 0x40]
test rcx, rcx
jne 0x180072b34
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.180068920
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800644a0
add rsp, 0x48
ret
lea rdx, str.OSMesaCreateContextExt
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800aa500]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x1800aa508], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800aa500]
lea rdx, str.OSMesaDestroyContext
mov qword [0x1800aa510], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800aa500]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x1800aa518], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800aa500]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x1800aa520], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800aa500]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x1800aa528], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1800aa500]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x1800aa530], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1800aa508], 0
mov qword [0x1800aa538], rax
je 0x180072c25
cmp qword [0x1800aa518], 0
je 0x180072c25
cmp qword [0x1800aa520], 0
je 0x180072c25
cmp qword [0x1800aa528], 0
je 0x180072c25
cmp qword [0x1800aa530], 0
je 0x180072c25
test rax, rax
jne 0x180072abe
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.180068920
mov rcx, qword [0x1800aa500]
test rcx, rcx
je 0x180072c53
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1800aa500], 0
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800644a0
add rsp, 0x48
ret
Function at 0x140a30058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140a301df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a30089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a3006f
add dl, dl
jne 0x140a30096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a300f6
xor eax, eax
add dl, dl
jne 0x140a300a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a301ad
add dl, dl
jne 0x140a300b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a300c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a300d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a300dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a300ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a3007e
mov eax, 1
add dl, dl
jne 0x140a30106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a30113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a300fb
sub eax, ebx
mov ebx, 1
jne 0x140a3014c
mov ecx, 1
add dl, dl
jne 0x140a3012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a3013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a30123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a3007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a30168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a30175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a3015d
cmp eax, 0x7d00
jae 0x140a3019b
cmp eax, 0x500
jb 0x140a30196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a3007e
cmp eax, 0x7f
ja 0x140a3019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a3007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a301d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a3007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x140029a2c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d034
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d034
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029b7c
cmp rax, 0xffffffffffffffff
je 0x140029b7c
xor edi, edi
test rbp, rbp
jle 0x140029b27
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f948
mov rbx, rax
test rax, rax
jne 0x140029ab4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029b1d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a99c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001dd10
cmp eax, 0xffffffff
je 0x140029afd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029ac4
mov edx, r15d
mov ecx, r14d
call fcn.14001a99c
jmp 0x140029b1d
cmp byte [rsi + 0x38], dil
je 0x140029b14
cmp dword [rsi + 0x34], 5
jne 0x140029b14
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029b1d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b700
jmp 0x140029b90
jns 0x140029b90
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d034
cmp rax, 0xffffffffffffffff
jne 0x140029b48
cmp byte [rsi + 0x30], dil
je 0x140029b90
mov edi, dword [rsi + 0x2c]
jmp 0x140029b90
mov ecx, r14d
call fcn.140018e54
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029b90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029b90
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029b89
mov eax, dword [rsi + 0x2c]
jmp 0x140029b8e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d034
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ac80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002aca8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002aca8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x142c8faf4
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffff92399cbc
xor ebx, ebx
test r8, r8
push 0xffffffffdf9413a7
mov qword [rsp + 0x10], 0xffffffff8f2bc12f
lea rsp, [rsp + 0x18]
je 0x142ca8d6d
push rsi
mov esi, 0xd998ed0b
and esi, esi
sar rsi, 0x5e
push r11
lea rsi, [0x142cba0c0]
mov r11d, 0x73ba9e30
shl r11b, 0x67
movzx r11d, byte [rcx + r11 - 0x73ba9e00]
xor r11d, ebx
and r11d, 0xff
push 0xffffffffcbb1ccb6
mov r11d, dword [rsi + r11*4]
shr ebx, 8
xor ebx, r11d
inc rcx
xor ebx, 0x9da9fd1f
dec r8
lea rsp, [rsp + 8]
jne 0x142c8fb2c
mov esi, 0x33ab51e
pop r11
call fcn.142ca8d5f
Function at 0x140011203
Capabilities:
Terminate process

Disassembly:
jmp 0x1400140e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x14001128a
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015430
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015450
xor al, al
jmp 0x1400154d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015463
xor al, al
jmp 0x1400154d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001548d
xor al, al
jmp 0x1400154d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400154a1
xor al, al
jmp 0x1400154d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400154b3
xor al, al
jmp 0x1400154d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400154cf
xor al, al
jmp 0x1400154d1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400113bb
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
jmp 0x140012ac0
push rbp
push rsi
push rdi
sub rsp, 0x4f0
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xd4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x4c8], rax
lea rcx, [0x1400230a5]
call fcn.140011384
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x1c4], eax
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x1e8], rax
lea rax, [rbp + 0x210]
lea rcx, str.192.168.0.4
mov rdi, rax
mov rsi, rcx
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x21c]
mov rdi, rax
xor eax, eax
mov ecx, 0xf3
rep stosb byte [rdi], al
mov eax, 2
mov word [rbp + 0x328], ax
mov cx, 0x1b58
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x32a], ax
lea r8, [rbp + 0x32c]
lea rdx, [rbp + 0x210]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x328]
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rbp + 0x1c4], eax
xor r9d, r9d
mov r8d, 0xff
lea rdx, [0x14001e1b4]
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp + 0x1c4], eax
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rcx, [rbp - 0x20]
lea rdx, [0x14001bdc0]
call fcn.14001131b
mov rcx, qword [rbp + 0x4c8]
xor rcx, rbp
call fcn.1400111bd
lea rsp, [rbp + 0x4d0]
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001ce0
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x178
mov rax, qword [0x14002a740]
xor rax, rsp
mov qword [rsp + 0x160], rax
cmp dword [rsp + 0x180], 0
jne 0x140001d0e
xor eax, eax
jmp 0x140001e17
mov rax, qword gs:[0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140001e15
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x48]
test eax, eax
je 0x140001e01
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x48]
cmp eax, 0x104
jge 0x140001e01
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x50]
movzx eax, word [rcx + rax*2]
test eax, eax
je 0x140001db2
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x50]
movzx eax, word [rcx + rax*2]
mov ecx, eax
call fcn.140013464
mov ecx, dword [rsp + 0x20]
mov byte [rsp + rcx + 0x50], al
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x140001d71
mov eax, dword [rsp + 0x20]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0x104
jae 0x140001dc8
jmp 0x140001dcd
call fcn.14000c960
mov rax, qword [rsp + 0x30]
mov byte [rsp + rax + 0x50], 0
lea rcx, [rsp + 0x50]
call fcn.14000bae0
cmp eax, dword [rsp + 0x180]
jne 0x140001dff
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x28]
mov rax, qword [rcx + rax + 0x20]
jmp 0x140001e17
jmp 0x140001e03
jmp 0x140001e15
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
jmp 0x140001d38
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14000cbe0
add rsp, 0x178
ret
Function at 0x14000c1f0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword gs:[0x60]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x10], 0
jne 0x14000c211
xor eax, eax
jmp 0x14000c363
mov rax, qword [rsp + 0x10]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
sub rax, 0x10
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x30]
mov qword [rsp], rax
cmp qword [rsp], 0
jne 0x14000c245
xor eax, eax
jmp 0x14000c363
mov rax, qword [rsp]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14000c264
xor eax, eax
jmp 0x14000c363
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x4550
je 0x14000c290
xor eax, eax
jmp 0x14000c363
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0
jne 0x14000c2c3
xor eax, eax
jmp 0x14000c363
mov rax, qword [rsp]
mov qword [0x14002b3f0], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x18]
mov dword [0x14002b3e8], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [0x14002b3d8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [0x14002b3d0], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [0x14002b3e0], rax
cmp qword [0x14002b3f0], 0
je 0x14000c358
cmp dword [0x14002b3e8], 0
je 0x14000c358
cmp qword [0x14002b3d8], 0
je 0x14000c358
cmp qword [0x14002b3d0], 0
je 0x14000c358
cmp qword [0x14002b3e0], 0
jne 0x14000c35e
xor eax, eax
jmp 0x14000c363
mov eax, 1
add rsp, 0x38
ret

Function at 0x14000d1fc
Capabilities:
Parse pe header

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

Function at 0x140013c38
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013a34
Function at 0x1400175fc
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 0x14001762c
xor eax, eax
jmp 0x1400176ef
mov rbp, rbx
cmp word [rax], si
je 0x140017651
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140017638
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140017634
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.14001751c
movsxd r14, eax
test eax, eax
jne 0x14001768f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140017625
mov rcx, r14
call fcn.140015adc
mov rdi, rax
test rax, rax
jne 0x1400176a8
xor ecx, ecx
call fcn.140015b3c
jmp 0x140017684
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.14001751c
test eax, eax
jne 0x1400176d9
mov rcx, rdi
call fcn.140015b3c
jmp 0x1400176e3
xor ecx, ecx
call fcn.140015b3c
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 0x14001a564
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140013294
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001a5ee
cmp byte [rbp - 0x21], r15b
je 0x14001a5e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001a624
call fcn.140017e00
test eax, eax
jne 0x14001a610
cmp byte [rbp - 0x21], r15b
je 0x14001a608
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001a624
cmp byte [rbp - 0x21], r15b
je 0x14001a621
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140015c68
test eax, eax
jne 0x14001a6c4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140013294
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001a663
cmp byte [rbp - 0x21], r15b
je 0x14001a698
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001a698
call fcn.140017e00
test eax, eax
jne 0x14001a684
cmp byte [rbp - 0x21], r15b
je 0x14001a67d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001a698
cmp byte [rbp - 0x21], r15b
je 0x14001a695
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140015c68
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001a6c4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001a6c7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001a6d5
mov rcx, rdi
call fcn.140015b3c
cmp byte [rbp + 0x3f], r15b
je 0x14001a6e4
mov rcx, qword [rbp + 0x27]
call fcn.140015b3c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14001d500
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001d528
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001d528
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x181425058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1814251df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x181425089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18142506f
add dl, dl
jne 0x181425096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1814250f6
xor eax, eax
add dl, dl
jne 0x1814250a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1814251ad
add dl, dl
jne 0x1814250b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1814250c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1814250d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1814250dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1814250ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18142507e
mov eax, 1
add dl, dl
jne 0x181425106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x181425113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1814250fb
sub eax, ebx
mov ebx, 1
jne 0x18142514c
mov ecx, 1
add dl, dl
jne 0x18142512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18142513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x181425123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18142507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x181425168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x181425175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18142515d
cmp eax, 0x7d00
jae 0x18142519b
cmp eax, 0x500
jb 0x181425196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18142507e
cmp eax, 0x7f
ja 0x18142519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18142507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1814251d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18142507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20