joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800f7c10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x28
mov qword [rsp + 0x70], rbx
mov r12, rdx
mov rbx, rcx
call qword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll_localeconv]
xor edi, edi
lea r13, [0x1801914f0]
xorps xmm1, xmm1
mov r10d, edi
mov esi, edi
mov r9d, edi
mov r8, qword [rax]
mov r11d, edi
movsx r14d, byte [r8]
mov qword [r12], rbx
movzx eax, byte [rbx]
test byte [rax + r13 + 1], 8
je 0x1800f7c6f
nop dword [rax]
movzx eax, byte [rbx + 1]
inc rbx
test byte [rax + r13 + 1], 8
jne 0x1800f7c60
mov qword [rsp + 0x20], r15
lea rdx, [rbx + 1]
mov ebp, 1
cmp al, 0x2d
jne 0x1800f7c86
mov r15d, ebp
jmp 0x1800f7c8f
cmp al, 0x2b
mov r15d, edi
cmovne rdx, rbx
cmp byte [rdx], 0x30
mov rbx, qword [rsp + 0x70]
jne 0x1800f7dc8
movzx eax, byte [rdx + 1]
sub al, 0x58
test al, 0xdf
jne 0x1800f7dc8
movsd xmm2, qword [0x1802b9358]
add rdx, 2
nop word [rax + rax]
movzx r8d, byte [rdx]
movsx rcx, r8b
cmp ecx, r14d
jne 0x1800f7cda
test r11d, r11d
jne 0x1800f7d2f
mov r11d, ebp
inc rdx
jmp 0x1800f7cc0
test byte [r8 + r13 + 1], 0x10
je 0x1800f7d2f
test r10d, r10d
jne 0x1800f7cf1
cmp r8b, 0x30
jne 0x1800f7cf1
inc esi
jmp 0x1800f7d22
inc r10d
cmp r10d, 0x1e
jg 0x1800f7d1f
test byte [rcx + r13 + 1], 2
je 0x1800f7d07
add ecx, 0xffffffd0
jmp 0x1800f7d0d
or ecx, 0x20
sub ecx, 0x57
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x1800f7d22
inc r9d
test r11d, r11d
je 0x1800f7d2a
dec r9d
inc rdx
jmp 0x1800f7cc0
lea eax, [rsi + r10]
test eax, eax
je 0x1800f7dc8
mov qword [r12], rdx
lea r9d, [r9*4]
movzx eax, byte [rdx]
sub al, 0x50
test al, 0xdf
jne 0x1800f7dae
movzx ecx, byte [rdx + 1]
cmp cl, 0x2d
jne 0x1800f7d60
mov eax, 2
jmp 0x1800f7d6e
cmp cl, 0x2b
mov rax, rdi
mov ebp, edi
sete al
inc rax
lea r8, [rdx + rax]
movzx edx, byte [rdx + rax]
test byte [rdx + r13 + 1], 2
je 0x1800f7dc8
nop
movsx eax, dl
lea edi, [rdi + rdi*4]
inc r8
lea edi, [rdi - 0x18]
lea edi, [rax + rdi*2]
movzx eax, byte [r8]
movzx edx, al
test byte [rax + r13 + 1], 2
jne 0x1800f7d80
mov eax, edi
mov qword [r12], r8
neg eax
test ebp, ebp
cmove eax, edi
add r9d, eax
test r15d, r15d
je 0x1800f7dba
xorps xmm1, xmmword [0x1802b9720]
mov edx, r9d
movaps xmm0, xmm1
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_ldexp]
jmp 0x1800f7dcb
xorps xmm0, xmm0
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1801008a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
cmp r8, 0x28
ja 0x1801008c7
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp fcn.180100710
movabs rax, 0x7fffffffffffffe7
cmp rbp, rax
jae 0x180100954
mov qword [rsp + 0x30], rbx
lea r9, [r8 + 0x19]
xor edx, edx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rdi
mov rdi, qword [rcx + 0x18]
lea r8d, [rdx + 4]
mov ebx, dword [rdi + 0x50]
call fcn.1800f58f0
movzx ecx, byte [rdi + 0x54]
mov r8, rbp
and cl, 3
mov rdx, r14
mov rsi, rax
mov byte [rax + 9], cl
mov byte [rax + 8], 0x14
mov rcx, qword [rdi + 0x58]
mov qword [rax], rcx
lea rcx, [rax + 0x18]
mov qword [rdi + 0x58], rax
mov dword [rax + 0xc], ebx
mov byte [rax + 0xa], 0
mov byte [rax + rbp + 0x18], 0
mov qword [rax + 0x10], rbp
call sub.VCRUNTIME140.dll_memcpy
mov rdi, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call fcn.1800f58d0
int3

Function at 0x18010f630
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x18010f6a3
lea ecx, [rdx + 7]
mov qword [rsp + 0x40], rdi
call fcn.180115d44
xor edi, edi
lea r8, [0x180110470]
mov qword [rsp + 0x28], rdi
mov r9, rax
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
mov qword [rax], rbx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [rdi + 8]
call fcn.180115d44
mov qword [rsp + 0x28], rdi
lea r8, [0x18010ef90]
mov r9, rax
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
mov qword [rax], rbx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x1801121c0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180112410
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1801122da
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180112224
mov rax, qword [0x1802e7008]
cmp qword [rsp + 0x20], rax
ja 0x180112224
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1801121e6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180112255
jmp 0x1801122da
cmp dword [rsp + 0x50], 0x10000
jne 0x1801122bd
cmp qword [rsp + 0x48], 0x10000
jb 0x1801122bd
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18011229b
mov rax, qword [rsp + 0x28]
jmp 0x1801122dc
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1801122ab
xor eax, eax
jmp 0x1801122dc
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1801122d5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180112410
mov qword [rsp + 0x20], rax
jmp 0x1801121e6
xor eax, eax
add rsp, 0x68
ret

Function at 0x1801122f0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180112450
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180112406
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18011234b
mov rax, qword [0x1802e7008]
cmp qword [rsp + 0x20], rax
ja 0x18011234b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18011230d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18011237c
jmp 0x180112406
cmp dword [rsp + 0x50], 0x10000
jne 0x1801123e4
cmp qword [rsp + 0x48], 0x10000
jb 0x1801123e4
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1801123c2
mov rax, qword [rsp + 0x28]
jmp 0x180112408
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1801123d2
xor eax, eax
jmp 0x180112408
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180112401
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180112450
mov qword [rsp + 0x20], rax
jmp 0x18011230d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1801124a0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180112a30
mov qword [rsp + 0x28], 0
cmp qword [0x1802ed268], 0
jne 0x1801124e8
cmp qword [0x1802ed260], 0
je 0x1801124e8
mov rax, qword [0x1802ed260]
mov qword [0x1802ed268], rax
cmp qword [0x1802ed268], 0
je 0x18011258e
mov rax, qword [0x1802ed268]
cmp qword [rax + 0x10], 0
je 0x18011258e
mov rax, qword [0x1802ed268]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18011258e
mov rax, qword [0x1802ed268]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18011258e
mov rax, qword [0x1802ed268]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180112554
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18011255b
xor eax, eax
jmp 0x180112709
mov rax, qword [0x1802ed268]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180112709
mov rax, qword [0x1802ed260]
mov qword [0x1802ed268], rax
jmp 0x1801125b0
mov rax, qword [0x1802ed268]
mov rax, qword [rax + 8]
mov qword [0x1802ed268], rax
cmp qword [0x1802ed268], 0
je 0x1801125fd
cmp qword [0x1802ed268], 0
je 0x1801125fb
mov rax, qword [0x1802ed268]
cmp qword [rax + 0x10], 0
je 0x1801125fb
mov rax, qword [0x1802ed268]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1801125fb
mov rax, qword [0x1802ed268]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1801125fb
jmp 0x18011252c
jmp 0x18011259e
mov rcx, qword [rsp + 0x60]
call fcn.1801148d0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180112710
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180112707
mov rax, qword [rsp + 0x48]
mov qword [0x1802ed268], rax
mov rax, qword [0x1802ed268]
mov dword [rax], 0x52727464
mov rax, qword [0x1802ed268]
mov qword [rax + 0x10], 0
mov rax, qword [0x1802ed268]
mov rcx, qword [0x1802ed260]
mov qword [rax + 8], rcx
mov rax, qword [0x1802ed268]
mov qword [0x1802ed260], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1802ed268]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1801126b8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1801126f2
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1801126ae
mov rax, qword [0x1802ed268]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18011252c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180113420
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x180113467
xor al, al
jmp 0x180113509
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x180113491
xor al, al
jmp 0x180113509
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x180113501
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x180113501
mov al, 1
jmp 0x180113509
jmp 0x180113507
xor al, al
add rsp, 0x78
ret

Function at 0x180113810
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1802ed260]
mov qword [rsp + 0x28], rax
jmp 0x180113830
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18011385f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18011385d
call sub.KERNEL32.dll_GetLastError
jmp 0x180113861
jmp 0x180113822
xor eax, eax
add rsp, 0x38
ret
Function at 0x180113f20
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1802ed278], eax
je 0x180113f4d
mov eax, 0x10dd
jmp 0x180114166
cmp dword [0x1802ed27c], 0
je 0x180113f61
mov eax, dword [0x1802ed27c]
jmp 0x180114166
cmp qword [rsp + 0x78], 0
jne 0x180113f73
mov eax, 0x57
jmp 0x180114166
cmp qword [rsp + 0x70], 0
jne 0x180113f85
mov eax, 6
jmp 0x180114166
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x180113fb7
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x1802ed27c], eax
mov rax, qword [rsp + 0x70]
mov qword [0x1802ed280], rax
mov eax, dword [rsp + 0x20]
jmp 0x180114166
mov ecx, 0x30
call fcn.180115d44
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180114029
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x1802ed27c], eax
cmp qword [rsp + 0x30], 0
je 0x180114014
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.180115d10
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x1802ed280], rax
mov eax, dword [rsp + 0x20]
jmp 0x180114166
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.180113ef0
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.180113ef0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x180114086
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x1801140a3
mov dword [rsp + 0x20], 9
cmp dword [0x1802ed270], 0
je 0x18011409e
jmp 0x180113fea
jmp 0x180113fe0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x1801140d0
mov dword [rsp + 0x20], 9
cmp dword [0x1802ed270], 0
je 0x1801140cb
jmp 0x180113fea
jmp 0x180113fe0
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x180114107
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180113fe0
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x1802ed290]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x1802ed290], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x180114170
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1802ed278], eax
je 0x18011418b
mov eax, 0x10dd
jmp 0x1801142b0
mov rax, qword [0x1802ed290]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180114235
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180114200
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180114200
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180112b70
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.180115d10
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180114197
mov qword [0x1802ed290], 0
call fcn.1801135d0
mov rax, qword [0x1802ed288]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180114299
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.180115d10
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180114251
mov qword [0x1802ed288], 0
mov dword [0x1802ed278], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x1801147e0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1802ed27c], 0
je 0x1801147fd
mov eax, dword [0x1802ed27c]
jmp 0x1801148c3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180114810
xor eax, eax
jmp 0x1801148c3
mov ecx, 0x10
call fcn.180115d44
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18011487e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180114863
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.180115d10
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1802ed27c], eax
mov qword [0x1802ed280], 0
mov eax, dword [rsp + 0x20]
jmp 0x1801148c3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180114898
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180114839
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1802ed288]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1802ed288], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x180116e40
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180116ec4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180138d30]
cmp byte [rcx + rax], 0
je 0x180116ec4
dec r8
sub rdx, 1
jne 0x180116eaa
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140011098
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400110d6
cmp word [rcx], 0x5a4d
jne 0x1400110d6
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x1400110d6
call fcn.1400075c9
mov rcx, qword [0x1400ba830]
mov rbx, rax
call fcn.140015130
cmp byte [rax], 0
jne 0x1400110d6
cmp dword [rbx], 0x4550
je 0x1400110d8
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1400142a0
Capabilities:
Write file on windows

Disassembly:
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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14001a1d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140014310
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400bfb04]
test esi, esi
mov rbx, rcx
jle 0x140014440
mov rax, qword [0x1400bfb08]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14001435b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400143e5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140014340
mov rcx, rbx
call fcn.140014d80
test rax, rax
mov rdi, rax
je 0x140014462
mov rax, qword [0x1400bfb08]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140014ec0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400bfb08]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140014447
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400143de
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400143f0
add dword [0x1400bfb04], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400bfb08]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400143de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400142a0
nop dword [rax]
xor esi, esi
jmp 0x140014368
mov rax, qword [0x1400bfb08]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.1400142a0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.1400142a0
nop
nop word cs:[rax + rax]
nop dword [rax]