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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x80], 0
jg 0x140015675
xor eax, eax
jmp 0x14001583c
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x68], 0
je 0x14001569e
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x14001583c
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x14001573e
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.14000b560
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.1400121a0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
nop
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x80], 0
je 0x14001582c
mov rcx, qword [rsp + 0x70]
call fcn.140010c90
mov qword [rsp + 0x58], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x1400157df
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x78]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x1400157dd
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x14001583c
jmp 0x140015764
cmp qword [rsp + 0x20], 0
jbe 0x14001582c
mov rax, qword [rsp + 0x70]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x68
ret
Function at 0x140015850
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x140015889
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140015978
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x140015920
cmp qword [rsp + 0x20], 0
jle 0x140015920
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x1400158c9
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.1400121a0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rsp + 0x50], 0
jle 0x140015968
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x140015968
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x140027178
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 0x1400271b2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400271b7
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 0x140027200
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14002e370]
cmp byte [rcx + rax], 0
je 0x140027200
dec r8
sub rdx, 1
jne 0x1400271e6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14002844c
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1400139f0
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 0x1400112df
Capabilities:
Create thread
Execute command

Disassembly:
jmp 0x1400123e0
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x1400230f2]
call fcn.1400113f2
nop
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400110aa]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
lea rdx, str.Hello_World__n
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011087
nop
lea rcx, str.pause
call qword [sym.imp.ucrtbased.dll_system]
nop
xor eax, eax
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x1400112e9
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014d40
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014d60
xor al, al
jmp 0x140014de1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014d73
xor al, al
jmp 0x140014de1
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 0x140014d9d
xor al, al
jmp 0x140014de1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014db1
xor al, al
jmp 0x140014de1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014dc3
xor al, al
jmp 0x140014de1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014ddf
xor al, al
jmp 0x140014de1
mov al, 1
add rsp, 0x38
ret
Function at 0x140012a90
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001141f
movzx eax, al
test eax, eax
jne 0x140012ab0
mov ecx, 7
call fcn.14001138e
nop
mov byte [rsp + 0x20], 0
call fcn.1400113a2
mov byte [rsp + 0x21], al
cmp dword [0x14001d868], 1
jne 0x140012ad4
mov ecx, 7
call fcn.14001138e
nop
jmp 0x140012b2c
cmp dword [0x14001d868], 0
jne 0x140012b27
mov dword [0x14001d868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111f9
test eax, eax
je 0x140012b08
mov eax, 0xff
jmp 0x140012c31
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011398
mov dword [0x14001d868], 2
jmp 0x140012b2c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001137a
call fcn.14001130c
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012b89
mov rcx, qword [rsp + 0x30]
call fcn.14001119f
movzx eax, al
test eax, eax
je 0x140012b89
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.14001133e
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140012bbd
mov rcx, qword [rsp + 0x38]
call fcn.14001119f
movzx eax, al
test eax, eax
je 0x140012bbd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400113d9
nop
call fcn.140012ce0
mov dword [rsp + 0x28], eax
call fcn.1400112e9
movzx eax, al
test eax, eax
jne 0x140012bdc
mov ecx, dword [rsp + 0x28]
call fcn.140011064
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140012beb
call fcn.1400113e3
nop
xor edx, edx
mov cl, 1
call fcn.14001118b
mov eax, dword [rsp + 0x28]
jmp 0x140012c31
add rsp, 0x68
ret
Function at 0x140001040
Capabilities:
Encode data using xor
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xf0
mov edi, edx
mov r8, rcx
test rcx, rcx
je 0x140001191
test edx, edx
je 0x140001191
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001191
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001191
movups xmm0, xmmword [rax + 0x18]
lea rcx, [rsp]
xor r9d, r9d
movups xmm1, xmmword [rax + 0x28]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x38]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x48]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [rcx - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rcx], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm1
mov eax, dword [rsp + 0x70]
add rax, r8
mov r10d, dword [rax + 0x20]
mov ebp, dword [rax + 0x1c]
add r10, r8
mov r11d, dword [rax + 0x24]
add rbp, r8
mov esi, dword [rax + 0x14]
add r11, r8
test esi, esi
je 0x140001191
nop dword [rax]
movzx eax, word [r11]
mov edx, dword [r10]
add rdx, r8
mov ebx, dword [rbp + rax*4]
mov eax, 0x47362036
add rbx, r8
movzx ecx, byte [rdx]
test cl, cl
je 0x14000117d
nop dword [rax]
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, eax
shr ecx, 0xf
xor eax, ecx
movzx ecx, byte [rdx]
test cl, cl
jne 0x140001160
cmp edi, eax
je 0x1400011ac
inc r9d
add r11, 2
add r10, 4
cmp r9d, esi
jb 0x140001140
xor eax, eax
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rax, rbx
jmp 0x140001193
Function at 0x1400011c0
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x110
mov edi, ecx
test ecx, ecx
je 0x1400012ad
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x18]
mov r10, qword [rdx + 0x20]
test r10, r10
je 0x1400012ad
mov esi, 0x104
nop dword [rax + rax]
movzx eax, word [r10 + 0x48]
test ax, ax
je 0x1400012ad
cmp ax, si
jae 0x1400012ad
mov r11, qword [r10 + 0x50]
xor r9d, r9d
cmp word [r11], r9w
je 0x14000125c
xor ebx, ebx
xor eax, eax
nop dword [rax + rax]
movzx r8d, byte [rax + r11]
lea eax, [r8 - 0x20]
movzx ecx, al
lea edx, [r8 - 0x61]
cmp dl, 0x19
cmova ecx, r8d
inc r9d
mov byte [rsp + rbx], cl
mov ebx, r9d
lea rax, [r9 + r9]
cmp word [rax + r11], 0
jne 0x140001230
mov byte [rsp + r9], 0
lea rdx, [rsp]
movzx ecx, byte [rsp]
mov eax, 0x47362036
test cl, cl
je 0x14000129d
nop dword [rax]
nop word [rax + rax]
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, eax
shr ecx, 0xf
xor eax, ecx
movzx ecx, byte [rdx]
test cl, cl
jne 0x140001280
cmp eax, edi
je 0x1400012c4
mov r10, qword [r10]
test r10, r10
jne 0x140001200
xor eax, eax
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov rax, qword [r10 + 0x20]
jmp 0x1400012af
Function at 0x140002420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov r8, qword [rcx]
mov r14, rcx
movabs rcx, 0xffffffff00000000
movzx eax, word [r8 + 0x14]
mov r12, qword [r8 + 0x30]
mov r9d, dword [r14 + 0x68]
and r12, rcx
dec r9
mov r11d, dword [rax + r8 + 0x20]
not r9
mov ecx, dword [rax + r8 + 0x28]
or r11, r12
and r9, r11
mov qword [rsp + 0x20], r11
mov qword [rsp + 0x28], r9
test ecx, ecx
jne 0x140002488
mov edx, dword [rax + r8 + 0x3c]
test dl, 0x40
je 0x140002480
mov ecx, dword [r8 + 0x20]
jmp 0x140002488
test dl, dl
jns 0x140002488
mov ecx, dword [r8 + 0x24]
mov edx, dword [rax + r8 + 0x3c]
mov r13d, 1
mov r15d, r13d
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
mov r10d, ecx
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], 0
cmp r13w, word [r8 + 6]
jae 0x140002589
lea rdi, [r8 + 0x64]
add rdi, rax
nop word [rax + rax]
mov esi, dword [rdi - 0x1c]
mov ebx, dword [r14 + 0x68]
or rsi, r12
mov eax, dword [rdi - 0x14]
neg rbx
and rbx, rsi
test eax, eax
jne 0x14000250c
mov ecx, dword [rdi]
test cl, 0x40
je 0x140002504
mov eax, dword [r8 + 0x20]
jmp 0x14000250c
test cl, cl
jns 0x14000250c
mov eax, dword [r8 + 0x24]
mov ebp, eax
cmp r9, rbx
je 0x140002550
lea rax, [r10 + r11]
cmp rax, rbx
ja 0x140002550
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.140002360
test eax, eax
je 0x14000262c
mov edx, dword [rdi]
mov r11, rsi
mov r8, qword [r14]
mov r9, rbx
mov qword [rsp + 0x20], rsi
mov r10d, ebp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rbp
jmp 0x140002570
mov ecx, dword [rdi]
mov eax, ecx
and eax, edx
or edx, ecx
bt eax, 0x19
jb 0x140002562
btr edx, 0x19
mov r10, rbp
sub r10, r11
add r10, rsi
mov qword [rsp + 0x30], r10
movzx eax, word [r8 + 6]
inc r15d
add rdi, 0x28
mov dword [rsp + 0x38], edx
cmp r15d, eax
jl 0x1400024e0
test r10, r10
je 0x1400025ad
bt edx, 0x19
jae 0x1400025d7
cmp r11, r9
jne 0x1400025ad
mov r9, qword [r14 + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [r14 + 0x30]
mov eax, r13d
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
ret
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x70]
mov rax, rcx
shr rcx, 0x1e
shr rax, 0x1d
and ecx, r13d
and eax, r13d
lea rcx, [rcx + rax*2]
mov eax, edx
shr rax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, section..data
mov eax, dword [rax + rcx*4]
mov r8d, eax
bts r8d, 9
mov rcx, r11
and edx, 0x4000000
mov rdx, r10
cmove r8d, eax
call qword [0x1400066c0]
test eax, eax
jne 0x1400025ad
xor eax, eax
jmp 0x1400025b0
Function at 0x140003200
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
jne 0x140003243
lea ecx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
test rsi, rsi
je 0x140003323
test rbx, rbx
je 0x1400032b1
cmp rbp, rsi
jae 0x140003283
test rbx, rbx
je 0x1400032b1
mov r8, rsi
mov rcx, rbp
sub r8, rbp
mov rdx, rbx
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140003270
jmp 0x1400032b1
jbe 0x1400032b1
lea rcx, [rbx - 1]
mov r8, rsi
add rcx, rbp
mov rdx, rbx
sub r8, rbp
nop word [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx - 1]
sub rdx, 1
jne 0x1400032a0
test rdi, rdi
je 0x140003380
test rbx, rbx
je 0x140003380
cmp rsi, rdi
jae 0x1400032f2
test rbx, rbx
je 0x14000332d
mov rdx, rdi
mov rcx, rbx
sub rdx, rsi
nop word [rax + rax]
movzx eax, byte [rdx + rsi]
mov byte [rsi], al
lea rsi, [rsi + 1]
sub rcx, 1
jne 0x1400032e0
jmp 0x14000332d
jbe 0x14000332d
lea rcx, [rbx - 1]
mov r8, rdi
add rcx, rsi
mov rdx, rbx
sub r8, rsi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx - 1]
sub rdx, 1
jne 0x140003310
jmp 0x14000332d
test rdi, rdi
je 0x140003380
test rbx, rbx
je 0x140003380
cmp rdi, rbp
jae 0x140003352
test rbx, rbx
je 0x140003380
mov rcx, rbp
sub rcx, rdi
nop dword [rax]
movzx eax, byte [rcx + rdi]
mov byte [rdi], al
lea rdi, [rdi + 1]
sub rbx, 1
jne 0x140003340
jmp 0x140003380
jbe 0x140003380
test rbx, rbx
je 0x140003380
lea rcx, [rbx - 1]
mov rdx, rbp
add rcx, rdi
sub rdx, rdi
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
mov byte [rcx], al
lea rcx, [rcx - 1]
sub rbx, 1
jne 0x140003370
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_HeapFree]
Function at 0x1400033b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd r12, dword [rsp + 0x80]
mov rdi, rdx
movsxd r14, r9d
mov rbp, r12
imul rbp, rdx
mov r13, rcx
lea r15d, [r14 - 1]
add rbp, rcx
mov qword [rsp + 0x60], rbp
cmp r14d, r12d
jge 0x1400035db
movsxd rsi, r15d
mov rbx, r14
imul rsi, rdi
imul rbx, rdi
add rsi, rcx
add rbx, rcx
nop word [rax + rax]
movsxd rcx, r14d
mov rdx, rbp
imul rcx, rdi
add rcx, r13
call r8
test eax, eax
jg 0x1400035ba
inc r15d
add rsi, rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x1400035cf
test rsi, rsi
je 0x140003533
test rdi, rdi
je 0x1400034c1
cmp rax, rsi
jae 0x140003493
test rdi, rdi
je 0x1400034c1
mov r8, rsi
mov rcx, rax
sub r8, rax
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140003480
jmp 0x1400034c1
jbe 0x1400034c1
lea rcx, [rdi - 1]
mov r8, rsi
add rcx, rbp
mov rdx, rdi
sub r8, rbp
nop word [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx - 1]
sub rdx, 1
jne 0x1400034b0
test rbx, rbx
je 0x1400035a1
test rdi, rdi
je 0x1400035a1
cmp rsi, rbx
jae 0x140003503
test rdi, rdi
je 0x14000353d
mov r8, rbx
mov rcx, rsi
sub r8, rsi
mov rdx, rdi
nop dword [rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400034f0
jmp 0x14000353d
jbe 0x14000353d
lea rcx, [rdi - 1]
mov r8, rbx
add rcx, rsi
mov rdx, rdi
sub r8, rsi
nop word [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx - 1]
sub rdx, 1
jne 0x140003520
jmp 0x14000353d
test rbx, rbx
je 0x1400035a1
test rdi, rdi
je 0x1400035a1
cmp rbx, rbp
jae 0x140003573
test rdi, rdi
je 0x1400035a1
mov r8, rbp
mov rcx, rbx
sub r8, rbx
mov rdx, rdi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140003560
jmp 0x1400035a1
jbe 0x1400035a1
test rdi, rdi
je 0x1400035a1
lea rcx, [rdi - 1]
mov r8, rbp
add rcx, rbx
mov rdx, rdi
sub r8, rbx
nop word [rax + rax]
movzx eax, byte [rcx + r8]
mov byte [rcx], al
lea rcx, [rcx - 1]
sub rdx, 1
jne 0x140003590
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x60]
inc r14d
add rbx, rdi
cmp r14d, r12d
jge 0x1400035db
mov r8, qword [rsp + 0x70]
jmp 0x140003410
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [r15 + 1]
mov r8, rdi
movsxd rbx, eax
mov rdx, rbp
mov rcx, rbx
imul rcx, rdi
add rcx, r13
call fcn.140003200
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400037e0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0xa0
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea edx, [rbx + 8]
mov r8d, 0xff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140003811
mov dword [rax], 0x12
mov rbx, rax
cmp dword [rbx], 0x15e
jle 0x1400039aa
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetCriticalSectionSpinCount]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetWindowContextHelpId]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
xor ecx, ecx
call qword [sym.imp.USER32.dll_RegisterClassW]
xor ecx, ecx
call qword [sym.imp.USER32.dll_IsWindowVisible]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
xor r9d, r9d
mov dword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_IsDialogMessageW]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, str.PORT_____
call fcn.140002df0
mov r8d, eax
lea r9, str.Test
lea rdx, str.IP_________________________
lea rcx, [rsp + 0x30]
call fcn.1400039c0
lea rcx, [rsp + 0x30]
call fcn.140003b30
test al, al
je 0x14000399c
call fcn.1400012e0
test eax, eax
je 0x14000399c
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xb8]
lea rdx, str.URI_DLL__________________________________________________________________________________
lea rcx, [rsp + 0x30]
call fcn.140003b40
test eax, eax
jne 0x14000399c
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0xb8]
call fcn.140001420
test rax, rax
je 0x14000399c
lea rdx, str.FUNCTION________________
mov rcx, rax
call fcn.140001b60
test rax, rax
je 0x14000398e
call rax
mov rcx, rax
mov rbx, rax
call fcn.140002bc0
mov r9, rax
lea rdx, str.URI_RES__________________________________________________________________________________
lea rax, [rsp + 0xc0]
mov r8, rbx
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x30]
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
call fcn.140003c50
test eax, eax
jne 0x14000398e
add rsp, 0xa0
pop rbx
ret
mov eax, 2
add rsp, 0xa0
pop rbx
ret
mov eax, 1
add rsp, 0xa0
pop rbx
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]