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

Disassembly:
jmp 0x140012e70
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]
nop
add rsp, 0x28
ret

Function at 0x140011280
Capabilities:
Allocate or change rwx memory
Create thread
Inject dll
Inject thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x1400117f0
push rbp
push rdi
sub rsp, 0x2d8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x76
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x288], rax
lea rcx, [0x14002309f]
call fcn.140011389
nop
xor r9d, r9d
lea r8, [rbp + 0x10]
mov edx, 0x104
lea rcx, str.d3d13.dll
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
nop
lea rdx, str.Minecraft_1.8.8
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [rbp + 0x138], rax
lea rdx, [rbp + 0x154]
mov rcx, qword [rbp + 0x138]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
nop
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.LoadLibraryA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x178], rax
mov r8d, dword [rbp + 0x154]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x198], rax
lea rcx, [rbp + 0x10]
call fcn.140011181
inc rax
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8, rax
xor edx, edx
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x1b8], rax
lea rcx, [rbp + 0x10]
call fcn.140011181
inc rax
mov qword [rsp + 0x20], 0
mov r9, rax
lea r8, [rbp + 0x10]
mov rdx, qword [rbp + 0x1b8]
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rbp + 0x1b8]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x178]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001ac40]
call fcn.140011325
mov eax, edi
mov rcx, qword [rbp + 0x288]
xor rcx, rbp
call fcn.1400111bd
lea rsp, [rbp + 0x298]
pop rdi
pop rbp
ret
Function at 0x14001128a
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400141c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400141e0
xor al, al
jmp 0x140014261
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400141f3
xor al, al
jmp 0x140014261
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 0x14001421d
xor al, al
jmp 0x140014261
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014231
xor al, al
jmp 0x140014261
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014243
xor al, al
jmp 0x140014261
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001425f
xor al, al
jmp 0x140014261
mov al, 1
add rsp, 0x38
ret
Function at 0x1400120a0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113b6
movzx eax, al
test eax, eax
jne 0x1400120c0
mov ecx, 7
call fcn.14001132f
nop
mov byte [rsp + 0x20], 0
call fcn.140011343
mov byte [rsp + 0x21], al
cmp dword [0x14001d868], 1
jne 0x1400120e4
mov ecx, 7
call fcn.14001132f
nop
jmp 0x14001213c
cmp dword [0x14001d868], 0
jne 0x140012137
mov dword [0x14001d868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111a9
test eax, eax
je 0x140012118
mov eax, 0xff
jmp 0x140012241
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011339
mov dword [0x14001d868], 2
jmp 0x14001213c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001131b
call fcn.1400112b2
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012199
mov rcx, qword [rsp + 0x30]
call fcn.14001115e
movzx eax, al
test eax, eax
je 0x140012199
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 [0x140024020]
nop
call fcn.1400112e4
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400121cd
mov rcx, qword [rsp + 0x38]
call fcn.14001115e
movzx eax, al
test eax, eax
je 0x1400121cd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011370
nop
call fcn.1400122f0
mov dword [rsp + 0x28], eax
call fcn.14001128a
movzx eax, al
test eax, eax
jne 0x1400121ec
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400121fb
call fcn.14001137a
nop
xor edx, edx
mov cl, 1
call fcn.14001114f
mov eax, dword [rsp + 0x28]
jmp 0x140012241
add rsp, 0x68
ret
Function at 0x1400155bc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001563a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015631
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015631
mov rax, qword [rbp - 8]
jmp 0x14001564f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015604
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001d88
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001dd2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001dd2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001dd2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001dd2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001dd2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001dd4
xor al, al
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
movsxd rax, dword [rcx + 4]
mov rbx, rcx
test eax, eax
je 0x14000104f
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000104f
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
je 0x14000104f
mov rcx, qword [rbx + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x140001054
mov eax, 0xc0000001
add rsp, 0x20
pop rbx
ret

Function at 0x1400012a0
Capabilities:
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
movsxd rax, dword [rcx]
mov rbx, rcx
test eax, eax
jne 0x1400012b7
mov eax, 0xc000000d
jmp 0x14000131e
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140001319
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140001319
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
mov rcx, rax
call fcn.1400013bc
mov rcx, qword [rsp + 0x30]
mov qword [0x140003010], rax
test rax, rax
jne 0x140001304
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, 0xc0000001
jmp 0x14000131e
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rax, qword [rbx + 8]
mov qword [rax], 1
xor eax, eax
jmp 0x14000131e
mov eax, 0xc0000225
add rsp, 0x20
pop rbx
ret

Function at 0x140001324
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
movsxd rax, dword [rcx + 4]
mov rbx, rcx
test eax, eax
je 0x1400013ac
and qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rsp + 0x40], 0
je 0x1400013ac
mov rdx, qword [rbx + 8]
mov rcx, qword [0x140003010]
mov rdi, qword [rbx + 0x18]
call fcn.140001664
test rax, rax
je 0x1400013ac
mov ecx, eax
mov edx, 0x1000
and ecx, 0xfff
mov r9d, 1
sub edx, ecx
mov rcx, qword [rbx + 0x10]
cmp edx, edi
cmovl edi, edx
and qword [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
movsxd r8, edi
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x1400013b1
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180002e20
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180002ff1
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
je 0x180002e52
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov ebx, dword [rcx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x180002ee7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x180002ee7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xaf6526ca
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x180002ee2
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x180002ec0
cmp r8d, 0x5561988a
je 0x180002eec
test r9d, r9d
jne 0x180002ea0
mov rax, qword [rax]
jmp 0x180002e70
mov ecx, dword [rbx + 0x24]
lea r8, [0x1800027b0]
add rcx, r10
movzx edx, word [rcx + r9*2]
xor r9d, r9d
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
xor ecx, ecx
mov qword [rsp + 0x28], rcx
add rax, r10
xor edx, edx
mov dword [rsp + 0x20], ecx
call rax
mov rsi, rax
test rax, rax
je 0x180002fd8
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
nop dword [rax]
mov r10, qword [rcx + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov ebx, dword [rdx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x180002fb7
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x180002fb7
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x9e608ed9
lea rax, [rdi + r9*4]
mov edx, dword [rax + r10]
add rdx, r10
movzx eax, byte [rdx]
inc rdx
test al, al
je 0x180002fb2
nop
movsx eax, al
lea rdx, [rdx + 1]
xor eax, r8d
imul r8d, eax, 0x1000193
movzx eax, byte [rdx - 1]
test al, al
jne 0x180002f90
cmp r8d, 0xfc951019
je 0x180002fbc
test r9d, r9d
jne 0x180002f70
mov rcx, qword [rcx]
jmp 0x180002f40
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rcx, rsi
add rax, r10
call rax
mov rsi, qword [rsp + 0x48]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
ret
mov eax, 1
add rsp, 0x38
ret
Function at 0x180006060
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x18000608e
xor eax, eax
jmp 0x180006174
cmp qword [rcx + 0x68], 0
je 0x18000609f
call fcn.180006190
jmp 0x180006174
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1800060b6
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800060b8
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800060ea
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.180020530
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x18000616e
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x180006121
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x18000614a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.18000f53c
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x18000616e
cmp rsi, rbx
ja 0x180006128
test rsi, rsi
je 0x18000616e
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.18000f53c
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180017820
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180007740
sub rsp, rax
mov rax, qword [0x180076040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180016400
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18001786f
mov rax, rbp
jmp 0x180017977
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x78740]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180018940
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x78740]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180017973
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180017973
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180018940
test rax, rax
js 0x180017973
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180017973
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180017965
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180017965
cmp byte [rcx], 0xd
jne 0x18001794b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18001795a
cmp byte [rcx + 1], 0xa
jne 0x18001795a
inc rcx
jmp 0x18001795a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x76470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18001792d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180017977
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180006a80
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180017b98
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180017bae
mov al, 1
jmp 0x180017c0e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180017bbf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180017c0c
mov ecx, dword [rcx + 0x18]
nop
call fcn.18001e45c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180017c0c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180017c0c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180017c0c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180017c0e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180017ce0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x180078740]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180017d37
cmp word [rdx], r13w
jne 0x180017d37
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180017d3c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180017e61
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180017e82
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180017d75
mov rdx, r9
mov word [rbx], cx
jmp 0x180017d9c
cmp r9, r8
jae 0x180017dac
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180017d56
jmp 0x180017e61
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180017e56
cmp dword [rsp + 0x80], esi
je 0x180017e56
lea r8, [0x180078740]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180017e2e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180017dfe
mov word [rbx], r13w
jmp 0x180017e5e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180017e0b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180017e5e
cmp word [rsp + 0x70], r13w
jne 0x180017e3b
cmp rbx, r14
je 0x180017df8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180018948
cmp word [rsp + 0x70], r13w
je 0x180017e61
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x180078740]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180017e5b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180017e61
Function at 0x18001aef8
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 0x18001af28
xor eax, eax
jmp 0x18001afeb
mov rbp, rbx
cmp word [rax], si
je 0x18001af4d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18001af34
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18001af30
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.180019610
movsxd r14, eax
test eax, eax
jne 0x18001af8b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18001af21
mov rcx, r14
call fcn.180014c04
mov rdi, rax
test rax, rax
jne 0x18001afa4
xor ecx, ecx
call fcn.1800122cc
jmp 0x18001af80
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.180019610
test eax, eax
jne 0x18001afd5
mov rcx, rdi
call fcn.1800122cc
jmp 0x18001afdf
xor ecx, ecx
call fcn.1800122cc
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 0x18001d83c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1800126c4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18001d8dd
cmp ebx, dword [rsp + 0x30]
je 0x18001d8d6
test esi, esi
je 0x18001d8d6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18001d8b1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18001d8be
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18001d89b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18001d8c2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18001d8df
mov eax, 1
jmp 0x18001d8df
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180020290
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800202b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800202b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x401424
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.004011ac
add rsp, 0x28
jmp 0x40143c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x004119f0], rdi
je 0x40149c
cmp rax, rdi
jne 0x40148f
mov r12d, 1
jmp 0x40149c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401475
mov eax, dword [0x004119e8]
cmp eax, 1
jne 0x4014b1
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x401518
mov eax, dword [0x004119e8]
cmp eax, ebx
jne 0x40150e
mov dword [0x004119e8], 1
lea r13, [0x004095d0]
lea rdi, [0x004095b8]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x401500
cmp eax, ebx
jne 0x401500
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x4014f5
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x4014de
cmp eax, ebx
je 0x401518
mov eax, 0xff
jmp 0x401660
mov dword [0x00411b1c], 1
mov eax, dword [0x004119e8]
cmp eax, 1
jne 0x401540
lea rdx, [0x004095b0]
lea rcx, [0x00409598]
call sub.msvcrt.dll__initterm
mov dword [0x004119e8], 2
cmp r12d, ebx
jne 0x40154f
mov rax, rbx
xchg qword [0x004119f0], rax
cmp qword [0x004119f8], rbx
je 0x401577
lea rcx, [0x004119f8]
call fcn.0040536c
cmp eax, ebx
je 0x401577
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x004119f8]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x40158d
mov eax, 0xff
jmp 0x401660
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x401612
cmp word [rcx], bx
je 0x4015a8
cmp edx, ebx
jne 0x401612
cmp word [rcx], bx
je 0x4015be
cmp word [rcx], 0x20
ja 0x4015be
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x4015a8
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x00400000]
call fcn.00401680
mov dword [0x00411b18], eax
cmp dword [0x0041160c], ebx
jne 0x4015fc
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x00411b1c], ebx
jne 0x401610
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x00411b18]
jmp 0x401660
cmp word [rcx], 0x22
jne 0x401625
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x401599
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret