joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000acec
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 0x14000ad1c
xor eax, eax
jmp 0x14000addf
mov rbp, rbx
cmp word [rax], si
je 0x14000ad41
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000ad28
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000ad24
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.14000ac0c
movsxd r14, eax
test eax, eax
jne 0x14000ad7f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000ad15
mov rcx, r14
call fcn.14000bbc8
mov rdi, rax
test rax, rax
jne 0x14000ad98
xor ecx, ecx
call fcn.14000926c
jmp 0x14000ad74
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.14000ac0c
test eax, eax
jne 0x14000adc9
mov rcx, rdi
call fcn.14000926c
jmp 0x14000add3
xor ecx, ecx
call fcn.14000926c
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 0x14000e2d0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140009cdc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000e35a
cmp byte [rbp - 0x21], r15b
je 0x14000e355
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000e390
call fcn.14000c3d8
test eax, eax
jne 0x14000e37c
cmp byte [rbp - 0x21], r15b
je 0x14000e374
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000e390
cmp byte [rbp - 0x21], r15b
je 0x14000e38d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400092bc
test eax, eax
jne 0x14000e430
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140009cdc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000e3cf
cmp byte [rbp - 0x21], r15b
je 0x14000e404
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000e404
call fcn.14000c3d8
test eax, eax
jne 0x14000e3f0
cmp byte [rbp - 0x21], r15b
je 0x14000e3e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000e404
cmp byte [rbp - 0x21], r15b
je 0x14000e401
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400092bc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000e430
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000e433
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000e441
mov rcx, rdi
call fcn.14000926c
cmp byte [rbp + 0x3f], r15b
je 0x14000e450
mov rcx, qword [rbp + 0x27]
call fcn.14000926c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140011280
Capabilities:
Parse pe header

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

Disassembly:
outsd dx, dword [rsi]
loopne 0x1400235eb
jbe 0x1400235dd
adc eax, 0x8b6419
add eax, 0xe046963e
and al, byte [rbp + 0x20]
or dword [rdi], 0x3d
rcr ebx, cl
invalid
call qword [rbx + InitCommonControls]
test eax, 0x5c3a69c2
leave
sub al, 0x5b
test byte [rax + 0x40], dl
cld
fadd qword [rdx - 0x4026ac7c]
push rsi
fnstcw word [rdx - 0x7df3b1fd]
jnp 0x140023602
clc
adc eax, edi
pop rdi
fimul word [rsi + 0x24af917d]
retf 0x410d
xchg ecx, eax
scasd eax, dword [rdi]
and al, 0xca
or eax, 0x610ee841
clc
add byte [rax], dh
invalid
cld
pop r11
jmp 0x14003732d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003733d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140037325
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140037355
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140037342
sub eax, 3
jb 0x14003736f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400373a6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140037396
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140037394
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140037383
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400372e2
jmp 0x14003732d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x22e00
mov dl, reloc.COMCTL32.dll_InitCommonControls
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400373f2
cmp rsi, rcx
jae 0x1400373fa
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400373d9
cmp al, 0x8f
ja 0x1400373d9
cmp byte [rsi - 2], 0xf
je 0x1400373df
sub al, 0xe8
cmp al, 1
ja 0x1400373c3
cmp rsi, rcx
jae 0x1400373fa
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400373c9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400373fa
lodsb al, byte [rsi]
jmp 0x1400373d9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x35000]
mov eax, dword [rdi]
or eax, eax
je 0x140037463
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x39dd4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140037407
jns 0x14003743c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140037446
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14003745d
mov qword [rbx], rax
add rbx, 8
jmp 0x140037427
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x18f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400374bb
sub rsp, 0xffffffffffffff80
jmp 0x140023590
Function at 0x140001e58
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ea2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ea2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.KERNEL32.dll_K32EnumProcessModules
jne 0x140001ea2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ea2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ea2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ea4
xor al, al
add rsp, 0x28
ret
Function at 0x140a95058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140a951df
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 0x140a95089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a9506f
add dl, dl
jne 0x140a95096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a950f6
xor eax, eax
add dl, dl
jne 0x140a950a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a951ad
add dl, dl
jne 0x140a950b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a950c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a950d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a950dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a950ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a9507e
mov eax, 1
add dl, dl
jne 0x140a95106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a95113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a950fb
sub eax, ebx
mov ebx, 1
jne 0x140a9514c
mov ecx, 1
add dl, dl
jne 0x140a9512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a9513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a95123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a9507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a95168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a95175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a9515d
cmp eax, 0x7d00
jae 0x140a9519b
cmp eax, 0x500
jb 0x140a95196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a9507e
cmp eax, 0x7f
ja 0x140a9519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a9507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a951d2
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 0x140a9507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x1406b4c5a
Capabilities:
Encode data using xor

Disassembly:
mov r9, qword [rsp + 0x18]
sub r13d, r13d
and r13b, 0x54
add r13b, 0x3c
xor r13b, 0x6b
jbe 0x1406b4c6a
mov r13, qword [rsp + 0x10]
call fcn.140b8cba4
loopne 0x1406b4c8c
invalid
fld xword [rdi - 0x5d]
mov al, 0xb1
mov ebp, 0xb972946e
out dx, al
enter 0xffffffffffffd0b3, 0xffffffffffffffef
out dx, al
fld dword [rdx]
in eax, dx
xchg ebp, ebp
add ebx, esp
ror ch, 1
adc dword [rbx - 0x113d4810], esp
outsd dx, dword [rsi]
hlt
Function at 0x1800011a0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov edx, 6
lea r9, [rsp + 0x48]
mov dword [rsp + 0x48], 1
lea r8d, [rdx - 5]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x1800012c0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x180015030]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
sete al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.180002f40
add rsp, 0x1d8
ret

Function at 0x180001510
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
mov eax, 0x1038
call fcn.1800031f0
sub rsp, rax
mov rax, qword [0x180015030]
xor rax, rsp
mov qword [rsp + 0x1020], rax
call fcn.1800014f0
test al, al
je 0x18000158d
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0xfff
mov byte [rsp + 0x20], 0
call fcn.180002f70
mov r8, qword [rsp + 0x1040]
lea r9, [rsp + 0x1048]
lea rcx, [rsp + 0x20]
mov edx, 0xfff
call fcn.180002f10
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.180002f40
add rsp, 0x1038
ret

Function at 0x1800017f0
Capabilities:
Print debug messages

Disassembly:
mov dword [rsp + 8], 1
lea rcx, str.Set_AcceptEx
mov eax, dword [rsp + 8]
xchg dword [0x180018fcc], eax
jmp fcn.180001510

Function at 0x180001810
Capabilities:
Print debug messages

Disassembly:
mov dword [rsp + 8], 1
lea rcx, str.Set_SO_UPDATE_ACCEPT_CONTEXT
mov eax, dword [rsp + 8]
xchg dword [0x180018fd0], eax
jmp fcn.180001510
Function at 0x180004c6b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180015030]
jne 0x180002f5a
rol rcx, 0x10
test cx, 0xffff
jne 0x180002f56
repz ret
ror rcx, 0x10
jmp 0x180004bc4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800190d0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800191c8]
mov qword [rsp + 0x58], rax
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 0x180004c49
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, [0x1800190d0]
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 0x180004c6b
mov rax, qword [rsp + 0x88]
mov qword [0x1800191c8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180019168], rax
mov rax, qword [0x1800191c8]
mov qword [0x180019040], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180019150], rax
mov dword [0x180019030], 0xc0000409
mov dword [0x180019034], 1
mov rax, qword [0x180015030]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180015038]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800190c8], eax
mov ecx, 1
call fcn.180008398
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180010870]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800190c8], 0
jne 0x180004cf2
mov ecx, 1
call fcn.180008398
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 0x18000a648
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x180015030]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1800058d4
xor ebx, ebx
cmp qword [0x18001a000], rbx
mov rdi, rax
jne 0x18000a75b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x18000a832
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000a832
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18001a000], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18001a008], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x18001a010], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x18001a020], rax
test rax, rax
je 0x18000a752
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x18001a018], rax
jmp 0x18000a762
mov rax, qword [0x18001a018]
jmp 0x18000a769
mov rax, qword [0x18001a018]
mov r11, qword [0x18001a020]
cmp rax, rdi
je 0x18000a7d0
cmp r11, rdi
je 0x18000a7d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x18001a020]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18000a7d0
test rax, rax
je 0x18000a7d0
call rsi
test rax, rax
je 0x18000a7ca
lea rcx, [rsp + 0x30]
mov r9d, reloc.WS2_32.dll_inet_ntoa
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18000a7ca
test byte [rsp + 0x40], 1
jne 0x18000a7d0
bts ebp, 0x15
jmp 0x18000a810
mov rcx, qword [0x18001a008]
cmp rcx, rdi
je 0x18000a810
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000a810
call rax
mov rbx, rax
test rax, rax
je 0x18000a810
mov rcx, qword [0x18001a010]
cmp rcx, rdi
je 0x18000a810
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000a810
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18001a000]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x18000a832
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x18000a834
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180002f40
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18000ae70
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x38
cmp dword [0x18001a080], 0
je 0x18000ae84
xor eax, eax
jmp 0x18000b0ef
cmp qword [0x18001a078], 0
je 0x18000ae9a
mov rax, qword [0x18001a078]
jmp 0x18000b0ef
mov r8d, 0x48
xor edx, edx
lea rcx, [0x18001a030]
call fcn.180002f70
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x18001a030], rax
xor r8d, r8d
xor edx, edx
lea rcx, str.dbghelp.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov qword [0x18001a038], rax
cmp qword [0x18001a038], 0
jne 0x18000af53
mov dword [0x18001a080], 1
cmp qword [0x18001a038], 0
je 0x18000aeff
mov rcx, qword [0x18001a038]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x18001a040], 0
mov qword [0x18001a048], 0
mov qword [0x18001a050], 0
mov qword [0x18001a058], 0
mov qword [0x18001a060], 0
mov qword [0x18001a068], 0
mov qword [0x18001a070], 0
xor eax, eax
jmp 0x18000b0ef
lea rdx, str.ImagehlpApiVersionEx
mov rcx, qword [0x18001a038]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18001a040], rax
lea rdx, str.SymInitialize
mov rcx, qword [0x18001a038]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18001a048], rax
lea rdx, str.SymSetOptions
mov rcx, qword [0x18001a038]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18001a050], rax
lea rdx, str.SymGetOptions
mov rcx, qword [0x18001a038]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18001a058], rax
lea rdx, str.SymLoadModule64
mov rcx, qword [0x18001a038]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18001a060], rax
lea rdx, str.SymGetModuleInfo64
mov rcx, qword [0x18001a038]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18001a068], rax
lea rdx, str.SymFromName
mov rcx, qword [0x18001a038]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18001a070], rax
mov r8d, 8
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.180002f70
mov r11d, reloc.WS2_32.dll_inet_addr
mov word [rsp + 0x20], r11w
cmp qword [0x18001a040], 0
je 0x18000b060
cmp qword [0x18001a048], 0
je 0x18000b060
cmp qword [0x18001a060], 0
je 0x18000b060
cmp qword [0x18001a068], 0
je 0x18000b060
cmp qword [0x18001a070], 0
jne 0x18000b065
jmp 0x18000aede
lea rcx, [rsp + 0x20]
call qword [0x18001a040]
movzx eax, word [rsp + 0x20]
cmp eax, 0xb
jge 0x18000b07f
jmp 0x18000aede
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x18001a030]
call qword [0x18001a048]
test eax, eax
jne 0x18000b09a
jmp 0x18000aede
cmp qword [0x18001a058], 0
je 0x18000b0da
cmp qword [0x18001a050], 0
je 0x18000b0da
call qword [0x18001a058]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
and eax, 0xfffffff8
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
or eax, 0x2704
mov dword [rsp + 0x28], eax
mov ecx, dword [rsp + 0x28]
call qword [0x18001a050]
lea rax, [0x18001a030]
mov qword [0x18001a078], rax
mov rax, qword [0x18001a078]
add rsp, 0x38
ret
Function at 0x18000b650
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x20], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x28]
call fcn.180002f70
jmp 0x18000b695
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x28]
add rax, rcx
mov qword [rsp + 0x20], rax
mov r8d, 0x30
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x18000b6b5
jmp 0x18000b74f
cmp dword [rsp + 0x48], 0x1000
jne 0x18000b6da
mov eax, dword [rsp + 0x4c]
and eax, 0xff
cmp eax, 1
je 0x18000b6da
mov eax, dword [rsp + 0x4c]
and eax, 0x100
test eax, eax
je 0x18000b6dc
jmp 0x18000b683
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x18000b712
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x40]
ja 0x18000b712
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x18000b717
jmp 0x18000b683
mov rax, qword [rsp + 0x58]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x58]
add rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
cmp dword [rax], 0x4550
jne 0x18000b683
mov rax, qword [rsp + 0x58]
jmp 0x18000b751
xor eax, eax
add rsp, 0x88
ret
Function at 0x18000b760
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x70], 0
jne 0x18000b788
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18000b7a9
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18000b91c
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x20]
add rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x18000b7de
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18000b91c
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
test eax, eax
jne 0x18000b7fd
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18000b91c
mov rax, qword [rsp + 0x30]
movzx ecx, word [rax + 0x14]
mov rax, qword [rsp + 0x30]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x38], 0
jmp 0x18000b82a
mov eax, dword [rsp + 0x38]
add eax, 1
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x38], eax
jae 0x18000b8fe
mov eax, dword [rsp + 0x38]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x28]
add rcx, rax
lea rdx, str..detour
call fcn.180009200
test eax, eax
jne 0x18000b8f9
mov ecx, dword [rsp + 0x38]
imul rcx, rcx, 0x28
mov rax, qword [rsp + 0x28]
cmp dword [rax + rcx + 0xc], 0
je 0x18000b889
mov ecx, dword [rsp + 0x38]
imul rcx, rcx, 0x28
mov rax, qword [rsp + 0x28]
cmp dword [rax + rcx + 0x10], 0
jne 0x18000b88b
jmp 0x18000b8fe
mov ecx, dword [rsp + 0x38]
imul rcx, rcx, 0x28
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax + rcx + 0xc]
mov rax, qword [rsp + 0x20]
add rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
cmp rax, 0x40
jb 0x18000b8ce
mov rax, qword [rsp + 0x40]
cmp dword [rax + 4], 0x727444
je 0x18000b8d0
jmp 0x18000b8fe
mov rax, qword [rsp + 0x40]
cmp dword [rax + 8], 0
jne 0x18000b8ea
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov dword [rcx + 8], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsp + 0x40]
jmp 0x18000b91c
jmp 0x18000b81f
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x18000b91c
add rsp, 0x68
ret