joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800f4f50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x2050
call fcn.18011b7f0
sub rsp, rax
mov rax, qword [0x1802ec038]
xor rax, rsp
mov qword [rsp + 0x2040], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x20], rax
mov rbx, rdx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0x2000
nop dword [rax]
mov edx, 0x2000
lea rcx, [rsp + 0x20]
call fcn.1800e6d60
mov r9, rbx
mov edx, 1
mov r8d, 0x2000
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, qword [rsp + 0x30]
add r8, rax
mov qword [rsp + 0x30], r8
cmp rax, 0x2000
je 0x1800f4fa0
mov rdi, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
call fcn.1800e49b0
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x20], rax
je 0x1800f5058
mov rax, qword [rdi + 0x18]
mov rbx, qword [rdi + 0x10]
mov rcx, qword [rax + 8]
mov r10, qword [rax]
mov eax, dword [rbx - 0x18]
and eax, 0xf
cmp eax, 2
je 0x1800f5026
cmp eax, 7
je 0x1800f501c
xor ebx, ebx
jmp 0x1800f502a
mov rbx, qword [rbx - 0x20]
add rbx, 0x28
jmp 0x1800f502a
mov rbx, qword [rbx - 0x20]
mov r8, qword [rbx + 8]
xor r9d, r9d
mov rdx, qword [rbx]
call r10
mov edx, 0xfffffffe
mov qword [rbx], rax
mov rcx, rdi
mov qword [rbx + 8], 0
lea r8d, [rdx + 1]
call fcn.1800e4650
add qword [rdi + 0x10], 0xfffffffffffffff0
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.18011a030
mov rbx, qword [rsp + 0x2060]
add rsp, 0x2050
pop rdi
ret

Function at 0x1800f5080
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov eax, 0x2050
call fcn.18011b7f0
sub rsp, rax
mov rax, qword [0x1802ec038]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov rbx, rdx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], 0x2000
xor esi, esi
mov qword [rsp + 0x20], rax
mov rdx, r8
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x20]
mov rdi, r8
call fcn.1800e6d60
mov r9, rbx
lea edx, [rsi + 1]
mov r8, rdi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, qword [rsp + 0x30]
mov rbp, rax
mov rdi, qword [rsp + 0x38]
add r8, rax
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
mov qword [rsp + 0x30], r8
call fcn.1800e49b0
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x20], rax
je 0x1800f5174
mov rax, qword [rdi + 0x18]
mov rbx, qword [rdi + 0x10]
mov rcx, qword [rax + 8]
mov r10, qword [rax]
mov eax, dword [rbx - 0x18]
and eax, 0xf
cmp eax, 2
je 0x1800f5146
cmp eax, 7
je 0x1800f513c
mov ebx, esi
jmp 0x1800f514a
mov rbx, qword [rbx - 0x20]
add rbx, 0x28
jmp 0x1800f514a
mov rbx, qword [rbx - 0x20]
mov r8, qword [rbx + 8]
xor r9d, r9d
mov rdx, qword [rbx]
call r10
mov edx, 0xfffffffe
mov qword [rbx], rax
mov rcx, rdi
mov qword [rbx + 8], rsi
lea r8d, [rdx + 1]
call fcn.1800e4650
add qword [rdi + 0x10], 0xfffffffffffffff0
test rbp, rbp
setne sil
mov eax, esi
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.18011a030
mov rbx, qword [rsp + 0x2070]
add rsp, 0x2050
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800f9910
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x148
mov rax, qword [0x1802ec038]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov r14, r9
mov r15, rdx
lea r9, [0x1802bde94]
mov rbx, r8
lea rdx, str._s_s
mov rdi, rcx
call fcn.1800e4b30
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor esi, esi
mov rbp, rax
test rax, rax
jne 0x1800f997b
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbp, rax
test rax, rax
jne 0x1800f997b
lea rbx, [rdi + 0x10]
jmp 0x1800f99b1
mov rdx, qword [rdi + 0x18]
lea r8, str.LUA_NOENV
add rdx, 0x40
mov rcx, rdi
call fcn.1800e4c60
mov rax, qword [rdi + 0x10]
lea rbx, [rdi + 0x10]
add rax, 0xfffffffffffffff0
mov ecx, dword [rax + 8]
test ecx, ecx
je 0x1800f99f1
cmp ecx, 1
jne 0x1800f99ae
cmp dword [rax], esi
je 0x1800f99f1
mov qword [rbx], rax
test r14, r14
jne 0x1800f99be
mov rax, qword [rbx]
mov dword [rax + 8], esi
jmp 0x1800f99d9
mov rdx, r14
mov rcx, rdi
call fcn.180104810
mov rcx, qword [rbx]
mov qword [rcx], rax
movzx eax, byte [rax + 8]
or eax, 0x40
mov dword [rcx + 8], eax
mov rax, qword [rdi + 0x18]
add qword [rbx], 0x10
cmp qword [rax + 0x18], rsi
jle 0x1800f9a37
mov rcx, rdi
call fcn.1800f3980
jmp 0x1800f9a37
lea r9, [0x1802bdea4]
mov qword [rbx], rax
lea r8, [0x1802bdea8]
mov rdx, rbp
mov rcx, rdi
call fcn.1800e7de0
mov r9, r14
lea r8, [0x1802bdeac]
mov rdx, rax
mov rcx, rdi
call fcn.1800e7de0
mov edx, 0xfffffffe
mov rcx, rdi
lea r8d, [rdx + 1]
call fcn.1800e4650
add qword [rbx], 0xfffffffffffffff0
mov r8d, 0x105
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1800f9b1d
cmp eax, 0x105
je 0x1800f9b1d
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x1800f9b1d
mov byte [rax], sil
mov rax, qword [rbx]
sub rax, 0x10
mov ecx, dword [rax + 8]
and ecx, 0xf
cmp ecx, 4
je 0x1800f9ab4
cmp ecx, 3
jne 0x1800f9abb
mov rdx, rax
mov rcx, rdi
call fcn.1800fc020
mov rax, qword [rdi + 0x18]
cmp qword [rax + 0x18], rsi
jle 0x1800f9aad
mov rcx, rdi
call fcn.1800f3980
mov rax, qword [rbx]
sub rax, 0x10
mov rsi, qword [rax]
add rsi, 0x18
lea r9, [rsp + 0x20]
mov rdx, rsi
lea r8, [0x1802bde68]
mov rcx, rdi
call fcn.1800e7de0
mov edx, 0xfffffffe
mov rcx, rdi
lea r8d, [rdx + 1]
call fcn.1800e4650
add qword [rbx], 0xfffffffffffffff0
mov r8, r15
mov rdx, qword [rbx]
mov rcx, rdi
add rdx, 0xffffffffffffffd0
call fcn.1800e4ff0
add qword [rbx], 0xfffffffffffffff0
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.18011a030
add rsp, 0x148
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rdx, str.unable_to_get_ModuleFileName
mov rcx, rdi
call fcn.1800e6700
int3
Function at 0x1800fbac0
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, [0x180196ac0]
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 0x1800fbb1f
nop dword [rax]
movzx eax, byte [rbx + 1]
inc rbx
test byte [rax + r13 + 1], 8
jne 0x1800fbb10
mov qword [rsp + 0x20], r15
lea rdx, [rbx + 1]
mov ebp, 1
cmp al, 0x2d
jne 0x1800fbb36
mov r15d, ebp
jmp 0x1800fbb3f
cmp al, 0x2b
mov r15d, edi
cmovne rdx, rbx
cmp byte [rdx], 0x30
mov rbx, qword [rsp + 0x70]
jne 0x1800fbc78
movzx eax, byte [rdx + 1]
sub al, 0x58
test al, 0xdf
jne 0x1800fbc78
movsd xmm2, qword [0x1802bf438]
add rdx, 2
nop word [rax + rax]
movzx r8d, byte [rdx]
movsx rcx, r8b
cmp ecx, r14d
jne 0x1800fbb8a
test r11d, r11d
jne 0x1800fbbdf
mov r11d, ebp
inc rdx
jmp 0x1800fbb70
test byte [r8 + r13 + 1], 0x10
je 0x1800fbbdf
test r10d, r10d
jne 0x1800fbba1
cmp r8b, 0x30
jne 0x1800fbba1
inc esi
jmp 0x1800fbbd2
inc r10d
cmp r10d, 0x1e
jg 0x1800fbbcf
test byte [rcx + r13 + 1], 2
je 0x1800fbbb7
add ecx, 0xffffffd0
jmp 0x1800fbbbd
or ecx, 0x20
sub ecx, 0x57
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x1800fbbd2
inc r9d
test r11d, r11d
je 0x1800fbbda
dec r9d
inc rdx
jmp 0x1800fbb70
lea eax, [rsi + r10]
test eax, eax
je 0x1800fbc78
mov qword [r12], rdx
lea r9d, [r9*4]
movzx eax, byte [rdx]
sub al, 0x50
test al, 0xdf
jne 0x1800fbc5e
movzx ecx, byte [rdx + 1]
cmp cl, 0x2d
jne 0x1800fbc10
mov eax, 2
jmp 0x1800fbc1e
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 0x1800fbc78
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 0x1800fbc30
mov eax, edi
mov qword [r12], r8
neg eax
test ebp, ebp
cmove eax, edi
add r9d, eax
test r15d, r15d
je 0x1800fbc6a
xorps xmm1, xmmword [0x1802bf840]
mov edx, r9d
movaps xmm0, xmm1
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_ldexp]
jmp 0x1800fbc7b
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 0x180104750
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 0x180104777
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp fcn.1801045c0
movabs rax, 0x7fffffffffffffe7
cmp rbp, rax
jae 0x180104804
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.1800f97a0
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.1800f9780
int3
Function at 0x180113990
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x180113a03
lea ecx, [rdx + 7]
mov qword [rsp + 0x40], rdi
call fcn.18011a084
xor edi, edi
lea r8, [0x1801147d0]
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.18011a084
mov qword [rsp + 0x28], rdi
lea r8, [0x1801132f0]
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 0x180116500
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.180116750
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18011661a
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180116564
mov rax, qword [0x1802ec008]
cmp qword [rsp + 0x20], rax
ja 0x180116564
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180116526
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 0x180116595
jmp 0x18011661a
cmp dword [rsp + 0x50], 0x10000
jne 0x1801165fd
cmp qword [rsp + 0x48], 0x10000
jb 0x1801165fd
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 0x1801165db
mov rax, qword [rsp + 0x28]
jmp 0x18011661c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1801165eb
xor eax, eax
jmp 0x18011661c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180116615
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180116750
mov qword [rsp + 0x20], rax
jmp 0x180116526
xor eax, eax
add rsp, 0x68
ret

Function at 0x180116630
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.180116790
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180116746
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x18011668b
mov rax, qword [0x1802ec008]
cmp qword [rsp + 0x20], rax
ja 0x18011668b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18011664d
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 0x1801166bc
jmp 0x180116746
cmp dword [rsp + 0x50], 0x10000
jne 0x180116724
cmp qword [rsp + 0x48], 0x10000
jb 0x180116724
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 0x180116702
mov rax, qword [rsp + 0x28]
jmp 0x180116748
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180116712
xor eax, eax
jmp 0x180116748
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180116741
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180116790
mov qword [rsp + 0x20], rax
jmp 0x18011664d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1801167e0
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.180116d70
mov qword [rsp + 0x28], 0
cmp qword [0x1802f0ce8], 0
jne 0x180116828
cmp qword [0x1802f0ce0], 0
je 0x180116828
mov rax, qword [0x1802f0ce0]
mov qword [0x1802f0ce8], rax
cmp qword [0x1802f0ce8], 0
je 0x1801168ce
mov rax, qword [0x1802f0ce8]
cmp qword [rax + 0x10], 0
je 0x1801168ce
mov rax, qword [0x1802f0ce8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1801168ce
mov rax, qword [0x1802f0ce8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1801168ce
mov rax, qword [0x1802f0ce8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180116894
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18011689b
xor eax, eax
jmp 0x180116a49
mov rax, qword [0x1802f0ce8]
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 0x180116a49
mov rax, qword [0x1802f0ce0]
mov qword [0x1802f0ce8], rax
jmp 0x1801168f0
mov rax, qword [0x1802f0ce8]
mov rax, qword [rax + 8]
mov qword [0x1802f0ce8], rax
cmp qword [0x1802f0ce8], 0
je 0x18011693d
cmp qword [0x1802f0ce8], 0
je 0x18011693b
mov rax, qword [0x1802f0ce8]
cmp qword [rax + 0x10], 0
je 0x18011693b
mov rax, qword [0x1802f0ce8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18011693b
mov rax, qword [0x1802f0ce8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18011693b
jmp 0x18011686c
jmp 0x1801168de
mov rcx, qword [rsp + 0x60]
call fcn.180118c10
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.180116a50
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180116a47
mov rax, qword [rsp + 0x48]
mov qword [0x1802f0ce8], rax
mov rax, qword [0x1802f0ce8]
mov dword [rax], 0x52727464
mov rax, qword [0x1802f0ce8]
mov qword [rax + 0x10], 0
mov rax, qword [0x1802f0ce8]
mov rcx, qword [0x1802f0ce0]
mov qword [rax + 8], rcx
mov rax, qword [0x1802f0ce8]
mov qword [0x1802f0ce0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1802f0ce8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1801169f8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180116a32
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 0x1801169ee
mov rax, qword [0x1802f0ce8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18011686c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180117760
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 0x1801177a7
xor al, al
jmp 0x180117849
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 0x1801177d1
xor al, al
jmp 0x180117849
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 0x180117841
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 0x180117841
mov al, 1
jmp 0x180117849
jmp 0x180117847
xor al, al
add rsp, 0x78
ret

Function at 0x180117b50
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1802f0ce0]
mov qword [rsp + 0x28], rax
jmp 0x180117b70
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180117b9f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x180117b9d
call sub.KERNEL32.dll_GetLastError
jmp 0x180117ba1
jmp 0x180117b62
xor eax, eax
add rsp, 0x38
ret
Function at 0x180118260
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 [0x1802f0cf8], eax
je 0x18011828d
mov eax, 0x10dd
jmp 0x1801184a6
cmp dword [0x1802f0cfc], 0
je 0x1801182a1
mov eax, dword [0x1802f0cfc]
jmp 0x1801184a6
cmp qword [rsp + 0x78], 0
jne 0x1801182b3
mov eax, 0x57
jmp 0x1801184a6
cmp qword [rsp + 0x70], 0
jne 0x1801182c5
mov eax, 6
jmp 0x1801184a6
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x1801182f7
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x1802f0cfc], eax
mov rax, qword [rsp + 0x70]
mov qword [0x1802f0d00], rax
mov eax, dword [rsp + 0x20]
jmp 0x1801184a6
mov ecx, 0x30
call fcn.18011a084
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180118369
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x1802f0cfc], eax
cmp qword [rsp + 0x30], 0
je 0x180118354
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.18011a050
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x1802f0d00], rax
mov eax, dword [rsp + 0x20]
jmp 0x1801184a6
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.180118230
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.180118230
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 0x1801183c6
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x1801183e3
mov dword [rsp + 0x20], 9
cmp dword [0x1802f0cf0], 0
je 0x1801183de
jmp 0x18011832a
jmp 0x180118320
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x180118410
mov dword [rsp + 0x20], 9
cmp dword [0x1802f0cf0], 0
je 0x18011840b
jmp 0x18011832a
jmp 0x180118320
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 0x180118447
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180118320
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 [0x1802f0d10]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x1802f0d10], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x1801184b0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1802f0cf8], eax
je 0x1801184cb
mov eax, 0x10dd
jmp 0x1801185f0
mov rax, qword [0x1802f0d10]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180118575
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 0x180118540
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180118540
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180116eb0
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.18011a050
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x1801184d7
mov qword [0x1802f0d10], 0
call fcn.180117910
mov rax, qword [0x1802f0d08]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1801185d9
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.18011a050
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180118591
mov qword [0x1802f0d08], 0
mov dword [0x1802f0cf8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180118b20
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x1802f0cfc], 0
je 0x180118b3d
mov eax, dword [0x1802f0cfc]
jmp 0x180118c03
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180118b50
xor eax, eax
jmp 0x180118c03
mov ecx, 0x10
call fcn.18011a084
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x180118bbe
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180118ba3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.18011a050
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1802f0cfc], eax
mov qword [0x1802f0d00], 0
mov eax, dword [rsp + 0x20]
jmp 0x180118c03
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180118bd8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180118b79
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x1802f0d08]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x1802f0d08], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x18011b180
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 0x18011b204
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18013ed50]
cmp byte [rcx + rax], 0
je 0x18011b204
dec r8
sub rdx, 1
jne 0x18011b1ea
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret