joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415a80
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [fcn.00419de0]
mov rsi, qword [rcx]
mov ecx, 1
call rbp
mov rdi, rax
test rsi, rsi
je 0x415b60
cmp qword [rsi], 0
lea r8, [rsi + 0x10]
mov rcx, rdi
lea rax, [0x00420018]
lea rdx, [0x00420019]
cmove r8, rax
call sub.msvcrt.dll_fprintf
lea r12, [0x00420019]
mov ebx, eax
movsxd rax, ebx
cmp rax, qword [rsi]
jge 0x415afa
cmp byte [rsi + rax + 0x10], 0
jne 0x415b40
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x415afa
add ebx, 1
movsxd rax, ebx
cmp rax, qword [rsi]
jl 0x415ada
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x0042001c]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.00419d68
lea r8, [rsi + rax + 0x10]
mov rdx, r12
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x415afa
add ebx, eax
jmp 0x415ad2
lea r8, [0x00420018]
mov rcx, rax
lea rdx, [0x00420019]
call sub.msvcrt.dll_fprintf
lea rsi, [0x00420019]
mov ebx, eax
nop
test ebx, ebx
jns 0x415afa
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
jne 0x415bb9
xor ecx, ecx
mov rdx, rdi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x415afa
add ebx, 1
test ebx, ebx
jns 0x415afa
movsxd r8, ebx
cmp byte [r8 + 0x10], 0
je 0x415b92
add r8, 0x10
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_fprintf
test eax, eax
jle 0x415afa
add ebx, eax
jmp 0x415b80
Function at 0x418d80
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0053f584]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x418f08
mov rax, qword [0x0053f588]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x418dcc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x418e55
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x418db0
mov rcx, rbx
call fcn.00419a20
test rax, rax
mov r12, rax
je 0x418f3d
mov rax, qword [0x0053f588]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00419b50
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0053f588]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x418f20
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x418e4e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x418eb0
add dword [0x0053f584], 1
cmp edi, 8
jae 0x418e83
test dil, 4
jne 0x418ef4
test edi, edi
je 0x418e78
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x418f0f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x418e78
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x418e9c
jmp 0x418e78
add rsi, qword [0x0053f588]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x418e4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.xkofehvqnukkkabtmeiacfefnksrgwtsk_0x_x
mov edx, eax
call fcn.0041cb70
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x418e78
xor esi, esi
jmp 0x418dd7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x418e78
mov rax, qword [0x0053f588]
lea rcx, str.__rvcoapvdjtafpqkqnxd_for__d_kmzdladcgjtgsvfv__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.0041cb70
lea rcx, str.ldwanglwxoxrkxzmzqxvzsseztgbejg
mov rdx, rbx
call fcn.0041cb70
nop
nop dword [rax]

Function at 0x419690
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0053f860]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0053f840]
test rbx, rbx
je 0x4196e4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4196db
test rsi, rsi
je 0x4196db
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4196c0
lea rcx, [0x0053f860]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x419a20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00535870]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x419a8d
mov rcx, r8
call fcn.00419900
test eax, eax
je 0x419a8d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x419a8d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x419a84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x419a8f
add rax, 0x28
cmp rax, r9
jne 0x419a70
xor eax, eax
add rsp, 0x28
ret

Function at 0x41cb70
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00419de0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.fjhuwwfikxivfadjtyrqpuaudt_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00419de0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140001000
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x680
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x670], rax
xor ebp, ebp
lea rdx, [rsp + 0x50]
mov ecx, 0x104
mov dword [rsp + 0x44], ebp
mov dword [rsp + 0x40], ebp
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14000121b
lea r9, str.delays.tmp
lea r8, [rsp + 0x50]
lea rdx, str._s_s
lea rcx, [rsp + 0x260]
call qword [sym.imp.USER32.dll_wsprintfW]
mov esi, ebp
nop
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x260]
mov dword [rsp + 0x28], 0x100
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000121b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0xfffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov rbx, rax
call fcn.140008b54
mov ecx, eax
call fcn.1400066bc
call fcn.140006690
mov ecx, eax
mov r8d, 0xfffff
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xff
sub ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.140016b90
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov r8d, 0xfffff
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rsp + 0x40]
test eax, eax
je 0x140001209
cmp edx, 0xfffff
jne 0x140001209
xor edx, edx
mov r8d, 0xfffff
mov rcx, rbx
call fcn.140016b90
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x260]
mov dword [rsp + 0x28], 0x4000100
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000121b
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rbp
mov r8d, 0xfffff
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x44]
test eax, eax
je 0x140001200
cmp edx, 0xfffff
jne 0x140001200
xor edx, edx
mov r8d, 0xfffff
mov rcx, rbx
call fcn.140016b90
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc rsi
cmp rsi, 0x7d0
jb 0x140001070
mov eax, 1
jmp 0x14000121d
lea rcx, str.___Read__d_Bytes_of__d__n
jmp 0x140001210
lea rcx, str.___Written__d_Bytes_of__d__n
mov r8d, 0xfffff
call fcn.140001b40
xor eax, eax
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140002250
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001250
Capabilities:
Encode data using xor
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov r12d, edx
mov rbp, rcx
test rcx, rcx
je 0x1400013d8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400013d8
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x1400013d8
movups xmm0, xmmword [rax + 0x18]
lea rcx, [rsp + 0x20]
xor esi, esi
movups xmm1, xmmword [rax + 0x28]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x38]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x48]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [rcx - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rcx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm1
mov r15d, dword [rsp + 0x90]
add r15, rbp
mov r13d, dword [r15 + 0x20]
mov ecx, dword [r15 + 0x1c]
add r13, rbp
mov edx, dword [r15 + 0x24]
add rcx, rbp
add rdx, rbp
mov qword [rsp + 0x150], rcx
mov qword [rsp + 0x160], rdx
cmp dword [r15 + 0x14], esi
jbe 0x1400013d8
nop dword [rax]
movzx eax, word [rdx + rsi*2]
xor ebx, ebx
mov edi, dword [r13 + rsi*4]
add rdi, rbp
mov r14d, dword [rcx + rax*4]
mov rcx, rdi
add r14, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
movsxd rdx, eax
test eax, eax
je 0x1400013ab
nop word [rax + rax]
movsx eax, byte [rcx + rdi]
inc rcx
add eax, ebx
imul ebx, eax, 0x101
mov eax, ebx
shr eax, 6
xor ebx, eax
cmp rcx, rdx
jne 0x140001390
lea eax, [rbx + rbx*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
cmp r12d, eax
je 0x1400013f5
mov rcx, qword [rsp + 0x150]
inc esi
mov rdx, qword [rsp + 0x160]
cmp esi, dword [r15 + 0x14]
jb 0x140001360
xor eax, eax
mov rbx, qword [rsp + 0x158]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, r14
jmp 0x1400013da
Function at 0x140001400
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x140
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdi, qword [rcx + 0x20]
test rdi, rdi
je 0x1400014ff
mov ebp, 0x104
nop dword [rax + rax]
movzx eax, word [rdi + 0x48]
test ax, ax
je 0x1400014ff
cmp ax, bp
jae 0x1400014ff
mov rax, qword [rdi + 0x50]
xor ebx, ebx
cmp word [rax], bx
je 0x140001495
xor esi, esi
xor ecx, ecx
movzx ecx, word [rcx + rax]
call fcn.1400068a4
inc ebx
mov byte [rsp + rsi + 0x20], al
mov rax, qword [rdi + 0x50]
mov esi, ebx
lea rcx, [rbx + rbx]
cmp word [rcx + rax], 0
jne 0x140001475
mov eax, ebx
cmp rax, rbp
jae 0x140001530
mov byte [rsp + rbx + 0x20], 0
lea rcx, [rsp + 0x20]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
movsxd rdx, eax
test eax, eax
je 0x1400014f3
nop dword [rax + rax]
movsx eax, byte [rsp + rcx + 0x20]
inc rcx
add eax, ebx
imul ebx, eax, 0x101
mov eax, ebx
shr eax, 6
xor ebx, eax
cmp rcx, rdx
jne 0x1400014c0
lea eax, [rbx + rbx*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
cmp eax, 0xfd2ad9bd
je 0x14000152a
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140001450
xor eax, eax
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140002250
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rax, qword [rdi + 0x20]
jmp 0x140001501
call fcn.140002378
int3
Function at 0x140001540
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x450
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, rdx
mov rdi, rcx
call fcn.140001400
mov edx, 0x54c1d227
mov rcx, rax
call fcn.140001250
lea rcx, str.wininet.dll
mov qword [0x140025cd0], rax
call rax
mov edx, 0x154be30f
mov rcx, rax
mov rbx, rax
call fcn.140001250
mov edx, 0x36430125
mov qword [0x140025c98], rax
mov rcx, rbx
call fcn.140001250
mov edx, 0xd8c64f22
mov qword [0x140025cd8], rax
mov rcx, rbx
call fcn.140001250
mov edx, 0xf1ff9642
mov qword [0x140025cb0], rax
mov rcx, rbx
call fcn.140001250
mov edx, 0x9e679473
mov qword [0x140025cc0], rax
mov rcx, rbx
call fcn.140001250
mov qword [0x140025cc8], rax
call fcn.140001400
mov rcx, rax
mov edx, 0xbb616e
call fcn.140001250
mov qword [0x140025c90], rax
test rax, rax
jne 0x14000161a
lea rcx, str.GetTickCount64_n
call fcn.140001b40
cmp qword [0x140025c98], 0
jne 0x140001630
lea rcx, str.InternetOpenA_n
call fcn.140001b40
cmp qword [0x140025cd8], 0
jne 0x140001646
lea rcx, str.InternetOpenUrlA_n
call fcn.140001b40
cmp qword [0x140025cb0], 0
jne 0x14000165c
lea rcx, str.InternetSetOptionA_n
call fcn.140001b40
cmp qword [0x140025cc0], 0
jne 0x140001672
lea rcx, str.InternetReadFile_n
call fcn.140001b40
cmp qword [0x140025cc8], 0
jne 0x140001688
lea rcx, str.InternetCloseHandle_n
call fcn.140001b40
xor ebx, ebx
lea rcx, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_114.0.0.0_Safari_537.36
xor r9d, r9d
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov dword [rsp + 0x20], ebx
lea edx, [rbx + 1]
call qword [0x140025c98]
mov rbp, rax
test rax, rax
je 0x1400016e0
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x4000000
mov rdx, rsi
mov rcx, rax
call qword [0x140025cd8]
mov rsi, rax
test rax, rax
jne 0x1400016ea
mov rcx, rbp
call qword [0x140025cc8]
mov eax, 0xffffffff
jmp 0x1400017b1
mov r9d, 4
mov qword [rsp + 0x480], r14
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], 0x3100
mov rcx, rsi
lea edx, [r9 + 0x1b]
call qword [0x140025cb0]
mov ecx, 1
call fcn.1400068d8
mov qword [rdi], rax
mov r14, 0xffffffffffffffff
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [0x140025cc0]
test eax, eax
je 0x14000178e
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140001795
mov rcx, qword [rdi]
lea edx, [rbx + rax]
add edx, 1
cmovb rdx, r14
call fcn.1400068d0
test rax, rax
je 0x1400017d4
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov ecx, ebx
add rcx, rax
mov qword [rdi], rax
call fcn.140016f50
add ebx, dword [rsp + 0x30]
mov rax, qword [rdi]
mov byte [rbx + rax], 0
cmp dword [rsp + 0x30], 0
ja 0x140001730
mov rcx, rsi
call qword [0x140025cc8]
mov rcx, rbp
call qword [0x140025cc8]
mov eax, ebx
mov r14, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140002250
mov rbx, qword [rsp + 0x488]
add rsp, 0x450
pop rdi
pop rsi
pop rbp
ret
jmp 0x1400017a9
Function at 0x140002c30
Capabilities:
Parse pe header

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

Function at 0x1400098e8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400096e4
Function at 0x14000efd4
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 0x14000f004
xor eax, eax
jmp 0x14000f0c7
mov rbp, rbx
cmp word [rax], si
je 0x14000f029
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000f010
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000f00c
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.14000eef4
movsxd r14, eax
test eax, eax
jne 0x14000f067
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000effd
mov rcx, r14
call fcn.14000aef8
mov rdi, rax
test rax, rax
jne 0x14000f080
xor ecx, ecx
call fcn.14000b3bc
jmp 0x14000f05c
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.14000eef4
test eax, eax
jne 0x14000f0b1
mov rcx, rdi
call fcn.14000b3bc
jmp 0x14000f0bb
xor ecx, ecx
call fcn.14000b3bc
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 0x1400133fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140013412
mov al, 1
jmp 0x140013472
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140013423
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140013470
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000f8f4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140013470
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140013470
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140013470
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140013472
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400140e4
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.1400066d4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001416e
cmp byte [rbp - 0x21], r15b
je 0x140014169
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400141a4
call fcn.14000b60c
test eax, eax
jne 0x140014190
cmp byte [rbp - 0x21], r15b
je 0x140014188
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400141a4
cmp byte [rbp - 0x21], r15b
je 0x1400141a1
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.14000d640
test eax, eax
jne 0x140014244
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400066d4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400141e3
cmp byte [rbp - 0x21], r15b
je 0x140014218
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140014218
call fcn.14000b60c
test eax, eax
jne 0x140014204
cmp byte [rbp - 0x21], r15b
je 0x1400141fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140014218
cmp byte [rbp - 0x21], r15b
je 0x140014215
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.14000d640
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140014244
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140014247
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140014255
mov rcx, rdi
call fcn.14000b3bc
cmp byte [rbp + 0x3f], r15b
je 0x140014264
mov rcx, qword [rbp + 0x27]
call fcn.14000b3bc
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 0x140016740
Capabilities:
Parse pe header

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

Function at 0x1800010f0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001118
xor eax, eax
lea r8, section..text
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140010e48
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140010eb7
xor ecx, ecx
push rax
call 0x1405fccd3
test rax, rax
je 0x140010eb7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010eb7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010eb7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010eb7
cmp dword [rcx + 0x84], 0xe
jbe 0x140010eb7
cmp dword [rcx + 0xf8], 0
je 0x140010eb7
mov ecx, ebx
call fcn.140010f68
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140010d44
nop
cmp dword [rbp + 0x20], 0
je 0x140010f05
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140010f10
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140010e48

Function at 0x140012b78
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xdeac
cmp ecx, eax
ja 0x140012bd0
je 0x140012bc7
mov eax, 0xc433
cmp ecx, eax
ja 0x140012bab
je 0x140012bc7
mov eax, ecx
sub eax, 0x2a
je 0x140012bc7
sub eax, 0xc402
je 0x140012bc7
sub eax, 1
je 0x140012bc7
sub eax, 1
je 0x140012bc7
cmp eax, 3
jmp 0x140012bc5
mov eax, ecx
sub eax, 0xc435
je 0x140012bc7
sub eax, 0x1263
je 0x140012c03
sub eax, 0x812
je 0x140012bc7
cmp eax, 1
jne 0x140012bc9
xor edx, edx
call 0x14068710e
movabs dword [0x740000dead2dc18b], eax
out dx, al
mov eax, ecx
sub eax, 0xdead
je 0x140012bc7
sub eax, 1
je 0x140012bc7
sub eax, 1
je 0x140012bc7
sub eax, 1
je 0x140012bc7
sub eax, 1
je 0x140012bc7
sub eax, 1
je 0x140012bc7
sub eax, 1
je 0x140012bc7
sub eax, 0x1f35
je 0x140012bc7
cmp eax, 1
jne 0x140012bc9
and edx, 8
jmp 0x140012bc9
Function at 0x14001e920
Capabilities:
Parse pe header

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