joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14018ebb8
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rcx, rdx
call fcn.14018eb68
test eax, eax
js 0x14018ec46
movzx eax, word [rdi + 6]
mov word [rbx], ax
mov qword [rbx + 0x10], rsi
lea rcx, [rbx + 0x18]
mov r9d, esi
mov r8, rdi
xor edx, edx
call fcn.14018eefc
test eax, eax
js 0x14018ec46
mov qword [rsp + 0x20], 3
lea rax, [0x14001f998]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdi
xor r9d, r9d
lea r8d, [r9 + 0x28]
lea rdx, [rsp + 0x20]
mov ecx, 0xb9
call sub.ntdll.dll_NtQuerySystemInformation
mov eax, dword [rsp + 0x78]
jmp 0x14018ec46
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1402fb9a4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov r14, qword [rbp + 0x77]
mov r12, r9
and qword [rbp - 0x21], 0
mov r15d, r8d
and dword [rbp + 0x67], 0
mov rdi, rdx
and dword [rbp - 0x39], 0
mov rsi, rcx
cmp dword [r14], r8d
jae 0x1402fb9ee
mov edi, 0x80049e19
jmp 0x1402fbb64
mov rax, qword [rdx]
and qword [rbp - 0x31], 0
and qword [rbp - 0x29], 0
and qword [rbp - 0x19], 0
mov rbx, qword [rax]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
lea r8, [rbp - 0x29]
lea rdx, [0x140412078]
mov rcx, rdi
call rax
test eax, eax
je 0x1402fba30
mov edi, 0x80049e2f
jmp 0x1402fbabe
mov rdi, qword [rbp - 0x29]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x30]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
lea rdx, [rbp - 0x31]
mov rcx, rdi
call rax
mov edi, eax
test eax, eax
js 0x1402fbabe
mov rdx, qword [rbp - 0x31]
lea r8, [rbp - 0x19]
mov rcx, rsi
call fcn.1402fb0d8
mov edi, eax
test eax, eax
js 0x1402fbabe
lea rax, [0x140050598]
mov qword [rbp - 0x11], 3
mov qword [rbp - 9], rax
lea rdx, [rbp - 0x11]
lea rax, [rbp + 0x77]
mov qword [rbp + 7], rsi
mov qword [rbp - 1], rax
xor r9d, r9d
mov rax, qword [rbp - 0x29]
mov ecx, 0xb9
mov qword [rbp + 0xf], rax
mov rax, qword [rbp - 0x19]
mov qword [rbp + 0x17], rax
lea r8d, [r9 + 0x38]
lea rax, [rbp - 0x21]
mov qword [rbp + 0x1f], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rbp + 0x77]
mov rsi, qword [rbp - 0x31]
test rsi, rsi
je 0x1402fbae7
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
mov rcx, rsi
call rax
and qword [rbp - 0x31], 0
mov rsi, qword [rbp - 0x29]
test rsi, rsi
je 0x1402fbb0b
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rax, qword [0x1403c1610]
mov rcx, rbx
call rax
mov rax, rbx
mov rcx, rsi
call rax
test edi, edi
js 0x1402fbb64
mov eax, dword [r14]
mov r8d, r15d
mov r9, qword [rbp + 0x7f]
mov rdx, r12
mov rcx, qword [rbp - 0x21]
mov dword [rbp + 0x67], eax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
call fcn.1401661ac
mov edi, eax
test eax, eax
js 0x1402fbb64
mov eax, dword [r14]
lea r9, [rbp - 0x39]
mov r8d, dword [rbp + 0x67]
sub eax, r8d
mov rdx, qword [rbp + 0x7f]
mov rcx, qword [rbp - 0x21]
mov dword [rbp - 0x39], eax
call fcn.140166514
mov edi, eax
test eax, eax
js 0x1402fbb64
mov ecx, dword [rbp + 0x67]
add ecx, dword [rbp - 0x39]
mov dword [r14], ecx
mov rcx, qword [rbp - 0x21]
call fcn.140165518
lea r11, [rsp + 0x90]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14000af30
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x14000af30
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400573f0]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x38]
xor ebx, ebx
mov dword [rsp + 0x30], ebx
call fcn.14000106e
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea rcx, str.CommandLine:__s_n
mov rdx, rax
call fcn.140011420
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.14000123a
mov rdi, rax
test rax, rax
jne 0x14000afa0
lea rcx, str.ERROR:_Failed_to_parse_command_line._n
call fcn.140011420
lea ebx, [rdi + 2]
jmp 0x14000b082
mov ecx, dword [rsp + 0x30]
mov rdx, rax
call fcn.1400014ec
test eax, eax
jne 0x14000afd5
lea rcx, str.ERROR:_One_or_more_required_parameters_is_missing._n
call fcn.140011420
mov rdx, qword [rdi]
lea rcx, str.USAGE:__s__p__portname___f__infpath___m__print_driver_name___c__Network___h__hostname___a__IP_Address___d__deviceID___e__MAC_Address__n
call fcn.140011420
mov ebx, 3
jmp 0x14000b07a
mov rdx, qword [0x140059148]
lea rcx, [rsp + 0x38]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call fcn.1400010c3
test al, al
je 0x14000b05a
mov r9, qword [0x140059180]
mov r8, qword [0x140059150]
mov rdx, qword [0x140059140]
lea rcx, [rsp + 0x38]
call fcn.140001410
test al, al
jne 0x14000b04e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [0x140059140]
mov r8, qword [0x140059148]
mov edx, eax
mov rax, qword [0x140059150]
lea rcx, str.ERROR__lu_:_Failed_to_install_inf__s_for_model__s_and_port__s._n
mov qword [rsp + 0x20], rax
call fcn.140011420
mov ebx, 2
lea rcx, [rsp + 0x38]
call fcn.1400011ef
jmp 0x14000b07a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x140059148]
lea rcx, str.ERROR__lu_:_Failed_to_open_inf_file__s._n
mov edx, eax
call fcn.140011420
mov ebx, 2
mov rcx, rdi
call fcn.140012e00
lea rcx, str.hpbniprint_returning_with_exit_code_0x_X._n
mov edx, ebx
call fcn.140011420
lea rcx, [rsp + 0x38]
call fcn.14000104b
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140013030
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x140010a30
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400573f0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rdx
mov rdi, rcx
lea rbx, [rcx + 8]
cmp qword [rbx + 0x20], 0x10
jb 0x140010a6f
mov rcx, qword [rbx + 8]
jmp 0x140010a73
lea rcx, [rbx + 8]
lea rdx, [0x14004a9f0]
test rsi, rsi
cmovne rdx, rsi
call fcn.1400136bc
test eax, eax
je 0x140010b9c
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x140010aa4
call fcn.140013d38
mov qword [rdi + 0x30], 0
test rsi, rsi
je 0x140010b8a
mov qword [rsp + 0x48], 0xf
mov qword [rsp + 0x40], 0
mov byte [rsp + 0x30], 0
mov r8d, 0xf
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov edx, eax
mov rax, qword [rsp + 0x48]
cmp rdx, rax
jbe 0x140010b4c
mov rdi, qword [rsp + 0x40]
cmp rdi, rdx
ja 0x140010b2a
cmp rax, rdx
je 0x140010b2a
mov r8b, 1
lea rcx, [rsp + 0x28]
call fcn.1400014c4
test al, al
je 0x140010b25
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rax, qword [rsp + 0x30]
mov byte [rax + rdi], 0
mov rax, qword [rsp + 0x48]
jmp 0x140010b2a
mov rax, qword [rsp + 0x48]
lea rdx, [rsp + 0x30]
cmp rax, 0x10
cmovae rdx, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov rax, qword [rsp + 0x48]
lea rdx, [rsp + 0x30]
cmp rax, 0x10
cmovae rdx, qword [rsp + 0x30]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.140001226
nop
cmp qword [rsp + 0x48], 0x10
jb 0x140010b9c
mov rcx, qword [rsp + 0x30]
call fcn.140012144
jmp 0x140010b9c
xor r8d, r8d
lea rdx, [0x14004a9f0]
mov rcx, rbx
call fcn.140001226
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140013030
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140013a00
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140013a89
movsxd rax, dword [0x14000003c]
lea rdi, [0x140000000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x140013a4b
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x140013a99
mov ecx, 0x20b
cmp word [rax + 0x18], cx
je 0x140013a61
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x140013a99
cmp dword [rax + 0x84], 0xe
ja 0x140013a75
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
jmp 0x140013a99
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0xb0], ebx
jmp 0x140013a99
xor ebx, ebx
mov dword [rsp + 0xb0], ebx
lea rdi, [0x140000000]
mov ecx, 1
call fcn.1400f0000
test eax, eax
jne 0x140013ac9
cmp dword [0x140059290], 1
jne 0x140013ab5
call fcn.14001e42c
mov ecx, 0x1c
call fcn.14001e1d8
mov ecx, 0xff
call fcn.14001d1a8
call fcn.140016a98
test eax, eax
jne 0x140013af4
cmp dword [0x140059290], 1
jne 0x140013ae0
call fcn.14001e42c
mov ecx, 0x10
call fcn.14001e1d8
mov ecx, 0xff
call fcn.14001d1a8
call fcn.14001f02c
nop
call fcn.14001ecd0
test eax, eax
jns 0x140013b0d
mov ecx, 0x1b
call fcn.14001d13c
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x14005b7a0], rax
call fcn.14001eb1c
mov qword [0x140059280], rax
call fcn.14001ea24
test eax, eax
jns 0x140013b39
mov ecx, 8
call fcn.14001d13c
call fcn.14001e71c
test eax, eax
jns 0x140013b4c
mov ecx, 9
call fcn.14001d13c
mov ecx, 1
call fcn.14001d2d8
test eax, eax
je 0x140013b61
mov ecx, eax
call fcn.14001d13c
call fcn.14001e6a0
test byte [rsp + 0x6c], 1
movzx edx, word [rsp + 0x70]
mov r9d, 0xa
cmovne r9d, edx
mov r8, rax
xor edx, edx
mov rcx, rdi
call fcn.14000138e
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x140013b98
mov ecx, eax
call fcn.14001d514
call fcn.14001d52c
jmp 0x140013bb9
mov eax, edi
jmp 0x140013bc2
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
sub rsp, 0x28
call fcn.14001f110
add rsp, 0x28
jmp 0x140013a00
Function at 0x14001bf4f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400573f0]
jne 0x14001304a
rol rcx, 0x10
test cx, 0xffff
jne 0x140013046
repz ret
ror rcx, 0x10
jmp 0x14001bea8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400593a0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140059498]
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 0x14001bf2d
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, [0x1400593a0]
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 0x14001bf4f
mov rax, qword [rsp + 0x88]
mov qword [0x140059498], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140059438], rax
mov rax, qword [0x140059498]
mov qword [0x140059310], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140059420], rax
mov dword [0x140059300], 0xc0000409
mov dword [0x140059304], 1
mov rax, qword [0x1400573f0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1400573f8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140059398], eax
mov ecx, 1
call fcn.140019798
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14004bbb8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140059398], 0
jne 0x14001bfd6
mov ecx, 1
call fcn.140019798
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x14001d520
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14001d388
Function at 0x140030050
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140016754
xor ebx, ebx
mov rdi, rax
cmp qword [0x14005a078], rbx
jne 0x140030156
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14003022b
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003022b
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14005a078], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14005a080], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14005a088], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14005a098], rax
test rax, rax
je 0x14003014d
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14005a090], rax
jmp 0x14003015d
mov rax, qword [0x14005a090]
jmp 0x140030164
mov rax, qword [0x14005a090]
mov r11, qword [0x14005a098]
cmp rax, rdi
je 0x1400301cc
cmp r11, rdi
je 0x1400301cc
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14005a098]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x1400301cc
test rax, rax
je 0x1400301cc
call rsi
test rax, rax
je 0x1400301c6
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400301c6
test byte [rsp + 0x38], 1
jne 0x1400301cc
bts ebp, 0x15
jmp 0x14003020a
mov rcx, qword [0x14005a080]
cmp rcx, rdi
je 0x14003020a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003020a
call rax
mov rbx, rax
test rax, rax
je 0x14003020a
mov rcx, qword [0x14005a088]
cmp rcx, rdi
je 0x14003020a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003020a
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14005a078]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003022b
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14003022d
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1800024d0
Capabilities:
Contain obfuscated stackstrings
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 8], rcx
push rbp
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
xor r15d, r15d
mov dword [rbp + 0x1d0], r15d
mov dword [rsp + 0x20], 0x73676572
mov dword [rsp + 0x24], 0x32337276
mov dword [rsp + 0x28], 0x6578652e
lea ecx, [r15 + 0xc]
call fcn.180013ffc
mov rsi, rax
mov qword [rsp + 0x50], rax
lea rdi, [rax + 0xc]
mov qword [rsp + 0x60], rdi
lea r8d, [r15 + 0xc]
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.180037d60
mov qword [rsp + 0x58], rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x180046cc0]
movdqu xmmword [rsp + 0x40], xmm1
mov word [rsp + 0x30], r15w
mov dword [rbp + 0x1d0], 1
cmp rsi, rdi
je 0x1800025ca
mov rbx, rsi
nop dword [rax + rax]
movzx r9d, byte [rbx]
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
cmp rcx, rdx
jae 0x1800025b8
lea rax, [rcx + 1]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x30]
cmp rdx, 7
cmova rax, qword [rsp + 0x30]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r15w
jmp 0x1800025c2
lea rcx, [rsp + 0x30]
call fcn.180006740
inc rbx
cmp rbx, rdi
jne 0x180002580
xor r14b, r14b
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180002669
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x74]
call fcn.180038400
mov dword [rsp + 0x70], 0x238
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18000265f
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova r8, qword [rsp + 0x30]
lea rax, [rbp - 0x64]
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x180002644
add rax, 2
test ecx, ecx
jne 0x180002630
test edx, edx
je 0x18000265c
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180002611
jmp 0x18000265f
mov r14b, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x1800026a7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800026a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002710
call fcn.180013ff4
movdqa xmm0, xmmword [0x180046cc0]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r15w
test rsi, rsi
je 0x1800026ef
sub rdi, rsi
cmp rdi, 0x1000
jb 0x1800026e4
add rdi, 0x27
mov rcx, qword [rsi - 8]
sub rsi, rcx
lea rax, [rsi - 8]
cmp rax, 0x1f
ja 0x180002716
mov rsi, rcx
mov rdx, rdi
mov rcx, rsi
call fcn.180013ff4
movzx eax, r14b
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.18001b33c
nop
call fcn.18001b33c
int3
Function at 0x180003370
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1800033a1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x18000341b
mov rdi, r14
mov rcx, rbx
call fcn.180004db0
test rax, rax
jle 0x1800033f3
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.180037d60
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18000340b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180003413
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1800033b5
sub r14, rdi
jmp 0x1800034ff
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180003432
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180003434
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180003466
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180037d60
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1800034fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1800034a1
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x1800034dd
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18001c4a0
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1800034fc
cmp rbp, rax
ja 0x1800034b0
test rbp, rbp
je 0x1800034fc
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18001c4a0
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180012e38
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x180012e72
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180012e77
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x180012ec0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18003c930]
cmp byte [rcx + rax], 0
je 0x180012ec0
dec r8
sub rdx, 1
jne 0x180012ea6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x18002827c
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.1800148d0
sub rsp, rax
mov rax, qword [0x18004f080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180026e68
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800282cb
mov rax, rbp
jmp 0x1800283d3
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 + 0x51960]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180027eb8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x51960]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800283cf
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 0x1800283cf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180027eb8
test rax, rax
js 0x1800283cf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800283cf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800283c1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800283c1
cmp byte [rcx], 0xd
jne 0x1800283a7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800283b6
cmp byte [rcx + 1], 0xa
jne 0x1800283b6
inc rcx
jmp 0x1800283b6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4f4d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180028389
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800283d3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800148a0
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 0x180028868
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18002887e
mov al, 1
jmp 0x1800288de
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18002888f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800288dc
mov ecx, dword [rcx + 0x18]
nop
call fcn.180032874
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800288dc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800288dc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800288dc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800288de
xor al, al
add rsp, 0x20
pop rbx
ret