joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1403260f4
Capabilities:
Parse pe header

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

Function at 0x14032b0d8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14032af43
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14032af43
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14032af43
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14032af43
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14032af43
cmp dword [rcx + 0x84], 0xe
jbe 0x14032af43
cmp dword [rcx + 0xf8], 0
je 0x14032af43
mov ecx, ebx
call fcn.14032aff4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14032add0
nop
cmp dword [rbp + 0x20], 0
je 0x14032af91
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14032af9c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14032aed4
Function at 0x14033cb40
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14033cbc7
mov rsi, rbx
cmp word [rax], bp
je 0x14033cb86
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14033cb70
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14033cb6c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1403380c0
mov rdi, rax
test rax, rax
je 0x14033cbb4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140326420
mov rbp, rdi
xor ecx, ecx
call fcn.140338c08
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14034073c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140340752
mov al, 1
jmp 0x1403407b2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140340763
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1403407b0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14033d2e4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1403407b0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1403407b0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1403407b0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1403407b2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800016e0
Capabilities:
Encode data using xor
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov r9, rcx
test ecx, ecx
jle 0x18000179e
lea r10, [0x1800089a8]
mov rdx, rbx
mov rdi, r10
sub rdi, rbx
nop dword [rax]
movzx eax, byte [rdx]
inc rdx
mov byte [rdi + rdx - 1], al
test al, al
jne 0x180001720
xor ecx, ecx
test r9d, r9d
jle 0x18000175a
mov r8, r10
nop dword [rax + rax]
mov eax, ecx
inc r8
cdq
and eax, 1
xor eax, edx
sub eax, edx
add al, cl
inc ecx
add byte [r8 - 1], al
cmp ecx, r9d
jl 0x180001740
mov rcx, qword [0x180008848]
lea eax, [r9 + 1]
lea rdx, [0x18000819c]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
nop word [rax + rax]
movzx eax, byte [rbx]
inc rbx
mov byte [rdi + rbx - 1], al
test al, al
jne 0x180001790
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800017b0
Capabilities:
Encode data using xor
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
dec rcx
mov r9, rcx
test ecx, ecx
jle 0x18000186e
lea r10, [0x1800089b8]
mov rdx, rbx
mov rdi, r10
sub rdi, rbx
nop dword [rax]
movzx eax, byte [rdx]
inc rdx
mov byte [rdi + rdx - 1], al
test al, al
jne 0x1800017f0
xor ecx, ecx
test r9d, r9d
jle 0x18000182a
mov r8, r10
nop dword [rax + rax]
mov eax, ecx
inc r8
cdq
and eax, 1
xor eax, edx
sub eax, edx
add al, cl
inc ecx
add byte [r8 - 1], al
cmp ecx, r9d
jl 0x180001810
mov rcx, qword [0x180008848]
lea eax, [r9 + 1]
lea rdx, [0x1800081b4]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
nop word [rax + rax]
movzx eax, byte [rbx]
inc rbx
mov byte [rdi + rbx - 1], al
test al, al
jne 0x180001860
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180001880
Capabilities:
Encode data using xor
Set registry value

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
or rcx, 0xffffffffffffffff
xor eax, eax
lea rsi, [0x18000637c]
mov rdi, rsi
repne scasb al, byte [rdi]
not rcx
dec rcx
mov r9, rcx
test ecx, ecx
jle 0x180001944
xor edi, edi
mov qword [rsp + 0x40], rbx
lea rbx, [0x1800089c8]
mov rdx, rdi
nop
movzx eax, byte [rdx + rsi]
inc rdx
mov byte [rdx + rbx - 1], al
test al, al
jne 0x1800018c0
mov ecx, edi
test r9d, r9d
jle 0x1800018fa
mov r8, rbx
nop dword [rax]
mov eax, ecx
inc r8
cdq
and eax, 1
xor eax, edx
sub eax, edx
add al, cl
inc ecx
add byte [r8 - 1], al
cmp ecx, r9d
jl 0x1800018e0
mov rcx, qword [0x180008848]
lea eax, [r9 + 1]
lea rdx, [0x1800081cc]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
nop word [rax + rax]
movzx eax, byte [rdi + rsi]
inc rdi
mov byte [rdi + rbx - 1], al
test al, al
jne 0x180001930
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180003160
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x80
mov rbp, rcx
mov rcx, qword [0x180008858]
mov rdi, rdx
or edx, 0xffffffff
mov ebx, r8d
mov esi, 1
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [rsp + 0x40], ebx
mov r12, rax
mov qword [rsp + 0x50], rax
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x48], rdi
xor ebx, ebx
nop word [rax + rax]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x40]
mov r8d, esi
mov rcx, rbp
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x18000320e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x180003277
lea rdx, [rsp + 0x50]
or r9d, 0xffffffff
xor r8d, r8d
mov ecx, esi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0xffffffff
je 0x180003277
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAResetEvent]
lea r11, [rsp + 0xa8]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov rcx, rbp
mov qword [rsp + 0x20], r11
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x180003277
mov eax, dword [rsp + 0xb0]
sub dword [rsp + 0x40], eax
je 0x180003279
add qword [rsp + 0x48], rax
jmp 0x1800031d0
mov esi, ebx
mov rcx, r12
call qword [sym.imp.WS2_32.dll_WSACloseEvent]
mov rcx, qword [0x180008858]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea r11, [rsp + 0x80]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x1800032b0
Capabilities:
Get routing table

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x1c0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xor edi, edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8d, [rdi + 0x3c]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180003482
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rax
call sub.IPHLPAPI.DLL_GetIpForwardTable
cmp eax, 0x7a
jne 0x180003343
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180003482
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rbx
call sub.IPHLPAPI.DLL_GetIpForwardTable
test eax, eax
jne 0x18000346e
cmp dword [rbx], edi
mov qword [rsp + 0x1d8], rsi
mov esi, edi
jle 0x180003450
mov qword [rsp + 0x1d0], rbp
lea rbp, [rbx + 8]
nop dword [rax]
mov ecx, dword [rbp - 4]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
lea rcx, [rsp + 0x30]
mov edx, 0x80
mov r8, rax
call qword [sym.imp.MSVCR90.dll_strcpy_s]
mov ecx, dword [rbp]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
lea rcx, [rsp + 0xb0]
mov edx, 0x80
mov r8, rax
call qword [sym.imp.MSVCR90.dll_strcpy_s]
mov ecx, dword [rbp + 8]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
lea rcx, [rsp + 0x130]
mov edx, 0x80
mov r8, rax
call qword [sym.imp.MSVCR90.dll_strcpy_s]
lea rdx, str.0.0.0.0
lea rcx, [rsp + 0x30]
mov r8d, 7
call qword [sym.imp.MSVCR90.dll_strncmp]
test eax, eax
jne 0x180003413
lea r8d, [rax + 7]
lea rdx, str.0.0.0.0
lea rcx, [rsp + 0xb0]
call qword [sym.imp.MSVCR90.dll_strncmp]
test eax, eax
je 0x180003423
inc esi
add rbp, 0x38
cmp esi, dword [rbx]
jl 0x180003380
jmp 0x180003448
lea rcx, [0x1800089f8]
nop word [rax + rax]
movzx eax, byte [rsp + rdi + 0x130]
inc rdi
mov byte [rdi + rcx - 1], al
test al, al
jne 0x180003430
mov edi, 1
mov rbp, qword [rsp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x1d8]
jmp 0x180003482
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.180004640
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1c0
pop rdi
ret
Function at 0x1800034b0
Capabilities:
Initialize winsock library
Print debug messages

Disassembly:
sub rsp, 0x1d8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test edx, edx
je 0x180003581
cmp edx, 1
jne 0x1800035a1
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1800035a1
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x180008858], rax
test rax, rax
je 0x1800035a1
lea rcx, str.winsystem_message_Ok.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_KillTimer]
call fcn.1800032b0
test eax, eax
jne 0x180003544
nop
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1800032b0
test eax, eax
je 0x180003530
lea rcx, [0x180008a20]
xor edx, edx
mov r8d, 0x104
call sub.MSVCR90.dll_memset
lea r8, [0x1800089f8]
lea rdx, str._c_route_add_0.0.0.0_mask_0.0.0.0__s
lea rcx, [0x180008a20]
call qword [sym.imp.MSVCR90.dll_sprintf]
call fcn.1800043c0
mov byte [str.SOFTWARE_test], 0
jmp 0x1800035a1
mov rcx, qword [0x180008858]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x180008848]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.180004640
add rsp, 0x1d8
ret

Function at 0x1800035c0
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
lea rdx, str.Themes
mov r8d, 0xf01ff
mov rcx, rax
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, 0x1d
lea r8, [rsp + 0x20]
mov edx, 4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x180003637
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x180003650
cmp dword [rsp + 0x24], 1
je 0x180003658
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0xffffffff
jne 0x180003613
jmp 0x180003658
mov dword [rsp + 0x24], 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x180003680
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rsi, rcx
xor ebp, ebp
xor edx, edx
lea ecx, [rbp + 0xf]
mov dword [rsp + 0x20], 0x130
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call sub.KERNEL32.dll_Process32First
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x4c]
repne scasb al, byte [rdi]
not rcx
dec rcx
movsxd rdx, ecx
test ecx, ecx
jle 0x18000370e
nop word [rax + rax]
movzx ecx, byte [rsp + rax + 0x4c]
cmp cl, 0x41
jl 0x180003706
cmp cl, 0x5f
jg 0x180003706
add cl, 0x20
mov byte [rsp + rax + 0x4c], cl
inc rax
cmp rax, rdx
jl 0x1800036f0
lea rax, [rsp + 0x4c]
mov rdi, rsi
sub rdi, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + rdi]
sub edx, ecx
jne 0x180003732
inc rax
test ecx, ecx
jne 0x180003720
test edx, edx
je 0x180003749
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1800036d0
jmp 0x180003758
mov eax, dword [rsp + 0x28]
mov ebp, 1
mov dword [0x1800089a4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1800089f0], 0
mov eax, ebp
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180004640
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x180004b3b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [section..data]
jne 0x18000465a
rol rcx, 0x10
test cx, 0xffff
jne 0x180004656
repz ret
ror rcx, 0x10
jmp 0x180004a94
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180008310]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x180008408]
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 0x180004b19
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, [0x180008310]
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 0x180004b3b
mov rax, qword [rsp + 0x88]
mov qword [0x180008408], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800083a8], rax
mov rax, qword [0x180008408]
mov qword [0x180008280], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180008390], rax
mov dword [0x180008270], 0xc0000409
mov dword [0x180008274], 1
mov rax, qword [section..data]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180008008]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180008308], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180006338]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180008308], 0
jne 0x180004bc2
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
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 0x6da5d0e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6da7e5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6da5d268
mov rax, qword [0x6da7e5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6da5d12c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6da5d1b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6da5d110
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6da5d29d
mov rax, qword [0x6da7e5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6da7e5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6da5d280
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6da5d1ae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6da5d210
add dword [0x6da7e5e4], 1
cmp edi, 8
jae 0x6da5d1e3
test dil, 4
jne 0x6da5d254
test edi, edi
je 0x6da5d1d8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6da5d26f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6da5d1d8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6da5d1fc
jmp 0x6da5d1d8
add rsi, qword [0x6da7e5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6da5d1ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6da5d1d8
xor esi, esi
jmp 0x6da5d137
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6da5d1d8
mov rax, qword [0x6da7e5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6da5d9f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6da7e8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6da7e8a0]
test rbx, rbx
je 0x6da5da44
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6da5da3b
test rsi, rsi
je 0x6da5da3b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6da5da20
lea rcx, [0x6da7e8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6da5dc80
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6da5dc90
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6da5dca0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6da5dce1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6da5dcd8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6da5dce3
add rax, 0x28
cmp rax, r9
jne 0x6da5dcc4
xor eax, eax
ret

Function at 0x6da5dd80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6da7b1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6da5dded
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da5dded
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6da5dded
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6da5dde4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da5ddef
add rax, 0x28
cmp rax, r9
jne 0x6da5ddd0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6da5def0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6da7b1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6da5df10
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da5df08
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6da5df6d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6da5df64
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6da5df74
add rax, 0x28
cmp rax, r9
jne 0x6da5df50
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6da5df90
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6da7b1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6da5dffe
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6da5dffe
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6da5dffe
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6da5dffe
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6da5dff5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6da5e005
add rcx, 0x28
cmp rcx, rax
jne 0x6da5dfe0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6da5e018
jmp 0x6da5dffe
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6da5e026
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6da5dffe
test r9d, r9d
jg 0x6da5e010
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6da5e360
Capabilities:
Write file on windows

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