joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180015700
Capabilities:
Connect to http server
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2770]
mov eax, 0x2870
call fcn.180017de0
sub rsp, rax
mov rax, qword [0x1800470b8]
xor rax, rsp
mov qword [rbp + 0x2760], rax
mov r13, r9
mov qword [rsp + 0x50], r8
mov rbx, rdx
lea rcx, str.RookIE_1.0
xor r15d, r15d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x48], r15d
xor edx, edx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x38], r15
lea r8d, [r15 + 0x50]
mov dword [rsp + 0x30], r15d
lea rdx, [0x180040068]
mov dword [rsp + 0x28], 3
mov rcx, rax
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov rdi, rax
call qword [sym.imp.WININET.dll_InternetConnectA]
test rdi, rdi
je 0x1800157d0
cmp qword [rbx + 0x18], 0x10
jb 0x1800157a3
mov rbx, qword [rbx]
mov qword [rsp + 0x28], r15
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x80000800
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov r14, rax
test rax, rax
jne 0x1800157fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
mov rcx, qword [rbp + 0x2760]
xor rcx, rsp
call fcn.180017e50
mov rbx, qword [rsp + 0x28b0]
add rsp, 0x2870
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r9, [rsp + 0x44]
mov dword [rsp + 0x44], 8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r15
mov edx, 0x20000005
mov rcx, r14
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov esi, 0x2800
mov dword [rsp + 0x40], 1
mov ecx, esi
mov edi, r15d
call fcn.180017cc0
mov rbx, rax
test rax, rax
je 0x1800157d0
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.1800195f0
mov r8d, esi
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.1800195f0
cmp dword [rsp + 0x40], r15d
jbe 0x1800158f4
lea r9, [rsp + 0x40]
mov r8d, 0x27ff
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [rsp + 0x40]
lea eax, [rdi + rcx]
cmp eax, esi
jbe 0x1800158d0
add esi, esi
mov r12, rbx
mov ecx, esi
mov r15d, esi
call fcn.180017cc0
mov rbx, rax
test rax, rax
je 0x1800157d0
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.1800195f0
mov r8d, edi
mov rdx, r12
mov rcx, rbx
call fcn.180019190
mov rcx, r12
call fcn.180017cb8
mov ecx, dword [rsp + 0x40]
xor r15d, r15d
mov r8d, ecx
lea rdx, [rsp + 0x60]
mov ecx, edi
add rcx, rbx
call fcn.180019190
mov ecx, dword [rsp + 0x40]
add edi, ecx
mov dword [r13], edi
test ecx, ecx
jne 0x180015867
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x50]
mov al, 1
mov qword [rcx], rbx
mov dword [r13], edi
jmp 0x1800157d2
Function at 0x14001b730
Capabilities:
Get file size

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

Function at 0x14001fbc0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001fbe8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001fbe8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002250]
mov r8d, 2
lea r9, str._J_ms8m
mov qword [rsp + 0x38], rax
lea rax, [0x140002240]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
adc dword [rsp + rbx*8], ebp
pop rcx
mov cl, dh
invalid

Function at 0x141436058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1414361df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141436089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14143606f
add dl, dl
jne 0x141436096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1414360f6
xor eax, eax
add dl, dl
jne 0x1414360a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1414361ad
add dl, dl
jne 0x1414360b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414360c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414360d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1414360dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1414360ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14143607e
mov eax, 1
add dl, dl
jne 0x141436106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141436113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1414360fb
sub eax, ebx
mov ebx, 1
jne 0x14143614c
mov ecx, 1
add dl, dl
jne 0x14143612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14143613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141436123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14143607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141436168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141436175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14143615d
cmp eax, 0x7d00
jae 0x14143619b
cmp eax, 0x500
jb 0x141436196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14143607e
cmp eax, 0x7f
ja 0x14143619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14143607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1414361d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14143607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005520]
mov dword [rax], 1
mov rax, qword [0x140005530]
mov dword [rax], 1
mov rax, qword [0x140005540]
mov dword [rax], 1
mov rax, qword [0x140005510]
mov dword [rax], 1
mov rax, qword [0x1400053e0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001c30
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002862
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009188]
test eax, eax
je 0x1400028fa
lea rax, [0x140009160]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009190]
mov qword [rbp - 8], rax
jmp 0x1400028de
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400028d2
cmp qword [rbp - 0x10], 0
je 0x1400028d2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002898
lea rax, [0x140009160]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400028fb
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140a21058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140a211df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a21089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a2106f
add dl, dl
jne 0x140a21096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a210f6
xor eax, eax
add dl, dl
jne 0x140a210a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a211ad
add dl, dl
jne 0x140a210b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a210c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a210d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a210dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a210ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a2107e
mov eax, 1
add dl, dl
jne 0x140a21106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a21113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a210fb
sub eax, ebx
mov ebx, 1
jne 0x140a2114c
mov ecx, 1
add dl, dl
jne 0x140a2112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a2113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a21123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a2107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a21168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a21175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a2115d
cmp eax, 0x7d00
jae 0x140a2119b
cmp eax, 0x500
jb 0x140a21196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a2107e
cmp eax, 0x7f
ja 0x140a2119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a2107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a211d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a2107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001150
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x18001c008]
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 0x18000119f
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x18001e120]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800011dd
cmp rsi, r14
jb 0x1800011d5
cmp rsi, r15
jae 0x1800011d5
cmp qword [rsi + 8], 0
jne 0x1800013a7
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800011c0
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 0x180001272
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 0x180001269
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 0x180001269
cmp dword [rsp + 0x40], 0x10000
je 0x1800012eb
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x180001269
sub rbx, rbp
cmp rbx, r14
jae 0x180001230
test rsi, rsi
jne 0x180001350
cmp rdi, r15
ja 0x18000138f
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 0x18000138f
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000138f
cmp dword [rsp + 0x40], 0x10000
je 0x180001321
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 0x1800012a2
jmp 0x18000138f
test rbx, rbx
je 0x180001269
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 0x180001350
cmp rbx, r14
jae 0x180001210
jmp 0x180001272
test rdi, rdi
je 0x18000138f
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 0x180001350
cmp rdi, r15
jbe 0x180001280
jmp 0x18000138f
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 0x180001360
mov rax, qword [0x18001e120]
mov qword [rsi], rax
mov qword [0x18001e120], 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.180003180
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x180001db0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18001c008]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180001edb
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180001ed2
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x180001eb4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x180001eb4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x180001eb4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x180001e72
mov rcx, qword [0x18001e0e0]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180001ed2
jmp 0x180001ea7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x180001ea7
mov rcx, qword [0x18001e0e0]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180001ed2
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180001e20
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180001f33
cmp dword [rbx + 0xc], esi
jbe 0x180001f33
nop word [rax + rax]
mov rax, qword [rbx]
xor edx, edx
mov ecx, esi
mov r8d, dword [rax + rcx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180001f2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180001bf0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180001ef0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180003180
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180002040
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov edx, dword [0x18001e11c]
xor edi, edi
mov ebx, edi
test edx, edx
je 0x180002170
mov rax, qword [0x18001e110]
add rax, 0x20
nop word [rax + rax]
mov ecx, dword [rax]
shl ecx, 0x1e
sar ecx, 0x1f
cmp ecx, 1
jne 0x180002094
inc ebx
add rax, 0x38
cmp ebx, edx
jb 0x180002070
mov eax, edi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180002170
mov edx, 0xffffffff
lea rcx, [rsp + 0x20]
mov r8d, 1
call fcn.180001db0
mov r8d, dword [0x18001e11c]
cmp ebx, r8d
jae 0x1800020f7
nop
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x18001e110]
mov edx, dword [rcx + rax + 0x20]
shl edx, 0x1e
sar edx, 0x1f
cmp edx, 1
je 0x1800020f0
mov ecx, ebx
call fcn.180001f60
mov edi, eax
test eax, eax
jne 0x1800020f7
mov r8d, dword [0x18001e11c]
inc ebx
cmp ebx, r8d
jb 0x1800020c0
cmp qword [rsp + 0x20], 0
je 0x180002170
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x18000215c
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
mov qword [rsp + 0x48], rsi
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 0x180002148
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 0x180002120
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18001e0e0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x18000b074
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 0x18000b0a4
xor eax, eax
jmp 0x18000b167
mov rbp, rbx
cmp word [rax], si
je 0x18000b0c9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000b0b0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000b0ac
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.18000af94
movsxd r14, eax
test eax, eax
jne 0x18000b107
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000b09d
mov rcx, r14
call fcn.18000952c
mov rdi, rax
test rax, rax
jne 0x18000b120
xor ecx, ecx
call fcn.18000958c
jmp 0x18000b0fc
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.18000af94
test eax, eax
jne 0x18000b151
mov rcx, rdi
call fcn.18000958c
jmp 0x18000b15b
xor ecx, ecx
call fcn.18000958c
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 0x1800108e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180010908
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180010908
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret