joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140088a80
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400308e2
movzx eax, al
test eax, eax
jne 0x140088aa0
mov ecx, 7
call fcn.14003040a
nop
mov byte [rsp + 0x20], 0
call fcn.140030478
mov byte [rsp + 0x21], al
cmp dword [0x1400b8278], 1
jne 0x140088ac4
mov ecx, 7
call fcn.14003040a
nop
jmp 0x140088b1c
cmp dword [0x1400b8278], 0
jne 0x140088b17
mov dword [0x1400b8278], 1
lea rdx, [0x140094770]
lea rcx, [0x140094440]
call fcn.14002fb6d
test eax, eax
je 0x140088af8
mov eax, 0xff
jmp 0x140088c21
lea rdx, [0x140094330]
lea rcx, [section..rdata]
call fcn.140030455
mov dword [0x1400b8278], 2
jmp 0x140088b1c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400303bf
call fcn.140030158
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140088b79
mov rcx, qword [rsp + 0x30]
call fcn.14002f95b
movzx eax, al
test eax, eax
je 0x140088b79
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x1400c6020]
nop
call fcn.14003025c
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140088bad
mov rcx, qword [rsp + 0x38]
call fcn.14002f95b
movzx eax, al
test eax, eax
je 0x140088bad
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140030743
nop
call fcn.140088cd0
mov dword [rsp + 0x28], eax
call fcn.1400300b8
movzx eax, al
test eax, eax
jne 0x140088bcc
mov ecx, dword [rsp + 0x28]
call fcn.14002f212
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140088bdb
call fcn.140030793
nop
xor edx, edx
mov cl, 1
call fcn.14002f8e3
mov eax, dword [rsp + 0x28]
jmp 0x140088c21
add rsp, 0x68
ret
Function at 0x180001000
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x88
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp edx, 1
jne 0x1800011d2
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 - 8], rdi
mov qword [r11 - 0x10], r14
mov qword [r11 - 0x18], r15
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x1800031d0]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
lea rcx, str.GameAssembly.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rcx, [rsp + 0x28]
lea r15, [rax + 0x2da2e80]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r8d, dword [rsp + 0x2c]
xor edx, edx
mov r14, qword [rsp + 0x38]
mov rax, r15
mov rbp, qword [rsp + 0x30]
mov rsi, r15
div r8
mov edi, 1
sub rsi, rdx
lea rax, [rsi + 0x7fffffff]
cmp rax, r14
cmova r14, rax
lea rax, [rsi - 0x7fffffff]
cmp rax, rbp
cmovb rbp, rax
nop dword [rax]
nop dword [rax + rax]
mov edx, r8d
mov rbx, rsi
movsxd rax, edi
imul rax, rdx
sub rbx, rax
lea rcx, [rax + rsi]
cmp rcx, r14
jbe 0x1800010f2
cmp rbx, rbp
jb 0x18000118e
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x180001130
mov edx, dword [rsp + 0x2c]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x180001130
mov r8d, dword [rsp + 0x2c]
inc edi
jmp 0x1800010d0
lea rbx, [rax + 0xd]
mov edx, 0xa
lea r9, [rsp + 0x58]
mov qword [0x180004678], rbx
mov r8d, 0x40
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movsd xmm0, qword [r15]
lea r9, [rsp + 0x58]
movsd qword [rbx], xmm0
mov edx, 0xa
movzx eax, word [r15 + 8]
mov rcx, r15
mov word [rbx + 8], ax
movzx r8d, byte [r15 + 0xe]
mov eax, dword [r15 + 0xa]
mov dword [rbx + 0xa], eax
mov byte [rbx + 0xe], r8b
mov r8d, dword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r14, qword [rsp + 0x78]
mov eax, 1
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180001200
add rsp, 0x88
ret
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180001200
add rsp, 0x88
ret
Function at 0x180001000
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x18000104f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18001dfa0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x18000108d
cmp rsi, r14
jb 0x180001085
cmp rsi, r15
jae 0x180001085
cmp qword [rsi + 8], 0
jne 0x180001257
mov rsi, qword [rsi]
test rsi, rsi
jne 0x180001070
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x180001122
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x180001119
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001119
cmp dword [rsp + 0x40], 0x10000
je 0x18000119b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180001119
sub rbx, rbp
cmp rbx, r14
jae 0x1800010e0
test rsi, rsi
jne 0x180001200
cmp rdi, r15
ja 0x18000123f
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x18000123f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000123f
cmp dword [rsp + 0x40], 0x10000
je 0x1800011d1
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x180001152
jmp 0x18000123f
test rbx, rbx
je 0x180001119
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180001200
cmp rbx, r14
jae 0x1800010c0
jmp 0x180001122
test rdi, rdi
je 0x18000123f
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x180001200
cmp rdi, r15
jbe 0x180001130
jmp 0x18000123f
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x180001210
mov rax, qword [0x18001dfa0]
mov qword [rsi], rax
mov qword [0x18001dfa0], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180003420
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x1800014b0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1800015ff
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1800015f6
mov esi, 1
mov qword [rsp + 0x68], rbx
cmp dword [rsp + 0x20], 0x10
jb 0x1800015ac
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1800015ac
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1800015ac
mov rdx, qword [rdi]
test rdx, rdx
jne 0x18000156d
mov rcx, qword [0x18001df48]
mov r8d, 0x200
mov dword [rdi + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x1800015d5
lea rbx, [rdi + 0xc]
jmp 0x1800015a1
mov eax, dword [rdi + 8]
lea rbx, [rdi + 0xc]
cmp dword [rbx], eax
jb 0x1800015a1
mov rcx, qword [0x18001df48]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rdi + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x1800015d5
mov qword [rdi], rax
mov ecx, dword [rbx]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180001513
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1800015f1
mov r8, qword [rdi]
xor esi, esi
test r8, r8
je 0x1800015f1
mov rcx, qword [0x18001df48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rsi
mov rbx, qword [rsp + 0x68]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180003420
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x180001620
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov ebp, r8d
mov qword [rcx], 0
mov r14d, edx
mov qword [rcx + 8], 0
mov rdi, rcx
call fcn.1800014b0
test eax, eax
jne 0x180001667
mov eax, 9
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rdi], 0
je 0x1800016de
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x1800016c6
mov qword [rsp + 0x38], rsi
nop
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800016ba
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.180001300
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x180001680
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rbp, qword [rsp + 0x40]
xor eax, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x180001700
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x18001df90]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180001773
mov eax, 0xa
jmp 0x180001806
test esi, esi
je 0x180001795
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1800017b8
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x1800017b8
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x1800017b1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x1800017b8
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180003420
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180001830
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18001df9c]
mov ebx, edi
test ecx, ecx
je 0x1800019e3
mov rax, qword [0x18001df90]
add rax, 0x20
nop word [rax + rax]
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180001880
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180001860
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
cmp ebx, 0xffffffff
je 0x1800019e3
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rdi
call fcn.1800014b0
test eax, eax
jne 0x1800018ae
mov eax, 9
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], r12
mov r12, qword [rsp + 0x20]
mov qword [rsp + 0x70], r13
mov r13d, dword [rsp + 0x2c]
test r12, r12
je 0x180001933
test r13d, r13d
je 0x180001933
mov qword [rsp + 0x38], r14
mov r14, r12
mov qword [rsp + 0x30], r15
mov r15d, r13d
mov r8d, dword [r14]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x18000191f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, edi
test esi, esi
mov edx, 0xffffffff
mov rcx, rbp
setne r8b
call fcn.180001300
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add r14, 4
sub r15, 1
jne 0x1800018e1
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov r8d, dword [0x18001df9c]
cmp ebx, r8d
jae 0x180001978
nop
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18001df90]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180001971
mov edx, esi
mov ecx, ebx
call fcn.180001700
mov edi, eax
test eax, eax
jne 0x180001978
mov r8d, dword [0x18001df9c]
inc ebx
cmp ebx, r8d
jb 0x180001940
test r12, r12
je 0x1800019d4
test r13d, r13d
je 0x1800019c2
mov rsi, r12
mov rbp, r13
nop dword [rax + rax]
mov r8d, dword [rsi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x1800019b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsi, 4
sub rbp, 1
jne 0x180001990
mov rcx, qword [0x18001df48]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov r13, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x180001d00
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x18001df40], ebp
je 0x180001d57
cmp rbx, 0x20
jae 0x180001d40
xor ecx, ecx
jmp 0x180001d42
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18001df40], ebp
jne 0x180001d36
cmp qword [0x18001df48], r15
je 0x180001e51
test rdi, rdi
jne 0x180001d77
mov ecx, esi
call fcn.180001830
mov edi, eax
jmp 0x180001e56
mov ecx, dword [0x18001df9c]
mov ebx, r15d
test ecx, ecx
je 0x180001d9f
mov rdx, qword [0x18001df90]
mov rax, rdx
nop
cmp rdi, qword [rax]
je 0x180001da9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180001d90
mov edi, 4
jmp 0x180001e56
cmp ebx, 0xffffffff
je 0x180001d9f
mov eax, ebx
imul rcx, rax, 0x38
movzx eax, byte [rcx + rdx + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180001e48
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180001620
mov edi, eax
test eax, eax
jne 0x180001e56
mov edx, esi
mov ecx, ebx
call fcn.180001700
mov edi, eax
cmp qword [rsp + 0x20], r15
je 0x180001e56
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180001e32
mov rbx, qword [rsp + 0x20]
mov ebp, eax
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180001e28
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180001e00
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18001df48]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180001e56
neg esi
sbb edi, edi
add edi, 6
jmp 0x180001e56
mov edi, 2
xchg dword [0x18001df40], r15d
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
Function at 0x180002a60
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
test ebx, ebx
je 0x180002ab6
cmp ebx, 1
jne 0x180002aff
xor eax, eax
lea r8, [0x180002c20]
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]
test rax, rax
je 0x180002ab0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret
mov rcx, qword [0x18001df70]
test rcx, rcx
je 0x180002ac9
xor edx, edx
call fcn.180001d00
mov rcx, qword [0x18001df50]
test rcx, rcx
je 0x180002adb
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x18001df58]
test rcx, rcx
je 0x180002aed
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x18001df68]
test rcx, rcx
je 0x180002aff
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140004808
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 0x14000488c
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400063d0]
cmp byte [rcx + rax], 0
je 0x14000488c
dec r8
sub rdx, 1
jne 0x140004872
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400052d0
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140028030]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x140029010]
test eax, eax
jne 0x140001faa
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], ATL::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >::CStringT<wchar_t,class StrTraitMFC_DLL<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [rsp + 0x30]
or eax, 0xffffffff
sub ecx, 1
je 0x140001f92
cmp ecx, 1
jne 0x140001fa4
mov eax, dword [rsp + 0x24]
sub eax, 4
je 0x140001f8b
sub eax, ecx
je 0x140001f84
cmp eax, ecx
je 0x140001f7d
lea eax, [rcx + 0x22]
jmp 0x140001fa4
mov eax, 0x3c
jmp 0x140001fa4
mov eax, 0x32
jmp 0x140001fa4
mov eax, 0x28
jmp 0x140001fa4
cmp dword [rsp + 0x28], 0xa
mov eax, 0x62
mov ecx, 0x5f
cmovne eax, ecx
mov dword [0x140029010], eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140013160
add rsp, 0x158
ret
Function at 0x14000d0b0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x690
mov rax, qword [0x140028030]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov rsi, rcx
mov rcx, rdx
mov rdi, rdx
call fcn.14000d3e0
lea rcx, [rsp + 0x50]
mov r8, rdi
mov edx, 0x104
mov ebx, eax
call qword [sym.imp.MSVCR90.dll_wcscpy_s]
xor r11d, r11d
lea rax, [rsp + 0x470]
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], delete[]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x260]
lea rcx, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], delete[]
mov word [rsp + rbx*2 + 0x4e], r11w
call qword [sym.imp.MSVCR90.dll__wsplitpath_s]
cmp word [rsp + 0x260], 0
je 0x14000d15c
lea rdx, [rsp + 0x260]
mov rcx, rsi
call fcn.14000d0b0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCR90.dll__wmkdir]
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.140013160
lea r11, [rsp + 0x690]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14001366f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140028030]
jne 0x14001317a
rol rcx, 0x10
test cx, 0xffff
jne 0x140013176
repz ret
ror rcx, 0x10
jmp 0x1400135c8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140028990]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140028a88]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001364d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140028990]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001366f
mov rax, qword [rsp + 0x88]
mov qword [0x140028a88], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140028a28], rax
mov rax, qword [0x140028a88]
mov qword [0x140028900], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140028a10], rax
mov dword [0x1400288f0], 0xc0000409
mov dword [0x1400288f4], 1
mov rax, qword [0x140028030]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140028038]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140028988], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140019f18]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140028988], 0
jne 0x1400136f6
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret