joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401655a0
Capabilities:
Generate random numbers via winapi
Get memory capacity

Disassembly:
push rbx
mov eax, 0xd0
call fcn.1401abae0
sub rsp, rax
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000040
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, 0x40
test eax, eax
je 0x140165632
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x80]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x140165625
xorps xmm2, xmm2
cvtsi2sd xmm2, rbx
test rbx, rbx
jns 0x140165616
addsd xmm2, qword [0x140208060]
mov edx, ebx
lea rcx, [rsp + 0x80]
call fcn.1400ea9d0
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r9d, socket
mov dword [rsp + 0x20], 0xf0000040
lea r8, str.Intel_Hardware_Cryptographic_Service_Provider
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1401656a2
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x80]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x140165695
xorps xmm2, xmm2
cvtsi2sd xmm2, rbx
test rbx, rbx
jns 0x140165686
addsd xmm2, qword [0x140208060]
mov edx, ebx
lea rcx, [rsp + 0x80]
call fcn.1400ea9d0
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x1401656dd
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
jne 0x1401656c2
mov dword [reloc.WS2_32.dll_accept], eax
jmp 0x1401656dd
xorps xmm2, xmm2
lea rcx, [rsp + 0x40]
mov edx, 8
call fcn.1400ea9d0
cmp dword [reloc.WS2_32.dll_accept], 0
jne 0x1401656f9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xorps xmm2, xmm2
lea rcx, [rsp + 0x38]
mov edx, 4
mov dword [rsp + 0x38], eax
call fcn.1400ea9d0
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
movsd xmm2, qword [0x14023ca88]
lea rcx, [rsp + 0x48]
mov edx, 0x38
call fcn.1400ea9d0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movsd xmm2, qword [0x14023ca88]
lea rcx, [rsp + 0x3c]
mov edx, 4
mov dword [rsp + 0x3c], eax
call fcn.1400ea9d0
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401aad60
add rsp, 0xd0
pop rbx
ret
Function at 0x14018beb9
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14018c0aa
push rbx
mov eax, 0xd0
call fcn.1401abae0
sub rsp, rax
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xe8], rbp
mov rbx, rdx
mov qword [rsp + 0xf0], rsi
lea rbp, [r8 - 1]
mov qword [rsp + 0xf8], rdi
mov qword [rsp + 0xc8], r14
lea r14, [rcx + 0xc]
shr rbp, 3
mov qword [rsp + 0xc0], r15
inc rbp
lea r15, [rcx + 0x14]
nop word [rax + rax]
movzx eax, byte [rbx + 1]
mov rcx, r14
movzx edi, byte [rbx]
movzx esi, byte [rbx + 4]
lea rbx, [rbx + 8]
shl eax, 8
or edi, eax
movzx eax, byte [rbx - 6]
shl eax, 0x10
or edi, eax
movzx eax, byte [rbx - 5]
shl eax, 0x18
or edi, eax
movzx eax, byte [rbx - 3]
shl eax, 8
or esi, eax
mov dword [rsp + 0x20], edi
movzx eax, byte [rbx - 2]
shl eax, 0x10
or esi, eax
mov dword [rsp + 0x28], edi
movzx eax, byte [rbx - 1]
and byte [r14], 0xdf
and byte [r15], 0xbf
or byte [r14], 0x40
or byte [r15], 0x20
shl eax, 0x18
or esi, eax
mov dword [rsp + 0x24], esi
mov dword [rsp + 0x2c], esi
call fcn.140138d70
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.140138ac0
mov r8d, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.140135570
mov rcx, r15
call fcn.140138d70
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.140138ac0
mov r8d, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.140135570
mov r8d, dword [rsp + 0x20]
mov edx, dword [rsp + 0x24]
xor r8d, edi
xor edi, dword [rsp + 0x28]
xor edx, esi
xor esi, dword [rsp + 0x2c]
mov eax, edi
mov byte [r14], dil
shr eax, 8
mov byte [r14 + 1], al
mov eax, edi
shr eax, 0x10
mov byte [r14 + 2], al
mov eax, edx
shr eax, 8
shr edi, 0x18
mov byte [r14 + 3], dil
mov byte [r14 + 4], dl
mov byte [r14 + 5], al
mov eax, edx
shr eax, 0x10
mov byte [r14 + 6], al
mov eax, r8d
shr eax, 8
shr edx, 0x18
mov byte [r14 + 7], dl
mov byte [r15], r8b
mov byte [r15 + 1], al
mov eax, r8d
shr eax, 0x10
mov byte [r15 + 2], al
shr r8d, 0x18
mov byte [r15 + 3], r8b
mov byte [r15 + 4], sil
mov eax, esi
shr eax, 8
mov byte [r15 + 5], al
mov eax, esi
shr eax, 0x10
shr esi, 0x18
mov byte [r15 + 6], al
mov byte [r15 + 7], sil
sub rbp, 1
jne 0x14018bf20
mov r15, qword [rsp + 0xc0]
mov r14, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0xf0]
mov rbp, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401aad60
add rsp, 0xd0
pop rbx
ret
Function at 0x1401989e0
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x290
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rcx
mov ecx, 0x202
lea rdx, [rsp + 0xe0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140198acd
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], 0
mov r8d, 0x2b
lea rdx, str.An_issue_occured_while_WSAStartup_executed.
lea rcx, [rsp + 0x28]
call fcn.1400201f0
nop
lea r8, [rsp + 0x28]
mov edx, dword [0x140224120]
lea rcx, [rsp + 0x50]
call fcn.14019e430
lea rcx, [rsp + 0x50]
call fcn.14019e770
nop
mov rax, qword [rsp + 0x40]
cmp rax, 0x10
jb 0x140198acd
inc rax
mov rcx, qword [rsp + 0x28]
cmp rax, 0x1000
jb 0x140198ac8
test cl, 0x1f
je 0x140198a98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140198aa8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x140198ab8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x140198ac5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.1401ab39c
mov rax, rbx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1401aad60
add rsp, 0x290
pop rbx
ret

Function at 0x140198bd0
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rdi, rdx
xor r14d, r14d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor sil, sil
mov ebx, r14d
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_recv]
lea ebp, [r14 + 1]
test eax, eax
je 0x140198c36
cmp ebx, 0x64
jge 0x140198c31
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rdi]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
inc ebx
movzx esi, bpl
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x140198c07
jmp 0x140198c5f
test sil, sil
jne 0x140198c5f
mov rcx, qword [rdi]
lea r9, [rsp + 0x60]
mov edx, 0xffff
mov dword [rsp + 0x60], ebp
mov r8d, 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x140198c68
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140198f10
Capabilities:
Create thread
Receive data
Receive data on socket
Set socket configuration

Disassembly:
mov r11, rsp
push rbp
sub rsp, 0x70
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp byte [rcx + 0x10], 0
mov rbp, rcx
je 0x1401990d1
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 - 0x10], r14
xor r14d, r14d
mov qword [r11 - 0x18], r15
lea r15d, [r14 + 1]
nop
mov rcx, qword [rbp + 0x40]
lea r8, [rsp + 0x34]
xor eax, eax
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14019909a
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], r14d
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, reloc.WS2_32.dll_recv
call fcn.1401ab0b8
mov rbx, rax
test rax, rax
je 0x140198fba
xor eax, eax
mov qword [rbx], rax
mov qword [rbx + 8], rax
jmp 0x140198fbd
mov rbx, r14
lea rax, [rsp + 0x3c]
mov qword [rbx], rbp
mov qword [rsp + 0x28], rax
lea r8, [0x140198c80]
mov r9, rbx
mov dword [rsp + 0x20], r14d
xor edx, edx
mov qword [rbx + 8], rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x14019908f
lea edx, [rax + 0x10]
mov rcx, rbx
call fcn.1401ab3a4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
xor sil, sil
mov ebx, r14d
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x14019905a
cmp ebx, 0x64
jge 0x14019904a
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
inc ebx
movzx esi, r15b
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x140199016
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1401990a5
test sil, sil
je 0x14019905a
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1401990a5
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], r15d
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1401990a5
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1401990a5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1401990a5
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [rbp + 0x10], r14b
jne 0x140198f50
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401aad60
add rsp, 0x70
pop rbp
ret
Function at 0x140199300
Capabilities:
Create thread
Set socket configuration
Terminate process

Disassembly:
push rbx
sub rsp, 0x30
cmp byte [rcx + 0x10], 0
mov rbx, rcx
jne 0x14019942b
xor r8d, r8d
mov qword [rsp + 0x50], rsi
mov esi, 2
mov qword [rsp + 0x58], rdi
mov ecx, esi
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 1
mov rcx, rax
mov qword [rbx + 0x40], rax
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rbx + 0x40]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov dword [rsp + 0x48], 1
lea r8d, [rsi + 2]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
xor eax, eax
lea rcx, [rbx + 0x18]
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
mov word [rbx + 0x48], si
cmp qword [rcx + 0x18], 0x10
mov rsi, qword [rsp + 0x50]
jb 0x140199399
mov rcx, qword [rcx]
call qword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, word [rbx + 0x38]
mov dword [rbx + 0x4c], eax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rbx + 0x40]
lea rdx, [rbx + 0x48]
mov r8d, reloc.WS2_32.dll_recv
mov word [rbx + 0x4a], ax
call qword [sym.imp.WS2_32.dll_bind]
mov rdi, qword [rsp + 0x58]
test eax, eax
jne 0x14019942b
mov rcx, qword [rbx + 0x40]
lea edx, [rax + 5]
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x14019942b
lea rax, [rbx + 0x58]
mov byte [rbx + 0x10], 1
mov qword [rsp + 0x28], rax
lea r8, [0x140198ef0]
mov r9, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140199416
lea ecx, [rax + 3]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov byte [rbx + 0x10], 1
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret
Function at 0x140001210
Capabilities:
Encode data using xor

Disassembly:
push rdi
sub rsp, 0x20
xor eax, eax
lea rdi, [0x1400056d0]
mov ecx, 0x28
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
lea rdx, [0x1400056d0]
call qword [sym.imp.KERNEL32.dll_HeapWalk]
test eax, eax
je 0x1400012a4
mov qword [rsp + 0x30], rbx
lea rbx, [0x1400035e4]
nop dword [rax]
test byte [0x1400056de], 4
je 0x140001285
mov edx, dword [0x1400056d8]
xor eax, eax
mov rdi, qword [0x1400056d0]
test rdx, rdx
je 0x140001285
nop dword [rax]
mov rcx, rax
and ecx, 1
movzx ecx, byte [rcx + rbx]
xor byte [rax + rdi], cl
inc rax
cmp rax, rdx
jb 0x140001270
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
lea rdx, [0x1400056d0]
call qword [sym.imp.KERNEL32.dll_HeapWalk]
test eax, eax
jne 0x140001250
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001140
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
sub esp, 0x80
mov al, byte [rsp + 0x7f]

Function at 0x14004e820
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x30
lea rax, [fcn.14004e820]
mov qword [rsp + 0x28], 0x4f1db680
mov qword [rsp + 8], rax
jmp 0x14004e89f

Function at 0x140001920
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000196a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000196a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000196a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000196a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000196a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000196c
xor al, al
add rsp, 0x28
ret
Function at 0x6d8e1d20
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d9035e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8e1ea8
mov rax, qword [0x6d9035e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8e1d6c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8e1df5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8e1d50
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8e1edd
mov rax, qword [0x6d9035e8]
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 [0x6d9035e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8e1ec0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8e1dee
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8e1e50
add dword [0x6d9035e4], 1
cmp edi, 8
jae 0x6d8e1e23
test dil, 4
jne 0x6d8e1e94
test edi, edi
je 0x6d8e1e18
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8e1eaf
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 0x6d8e1e18
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 0x6d8e1e3c
jmp 0x6d8e1e18
add rsi, qword [0x6d9035e8]
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 0x6d8e1dee
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 0x6d8e1e18
xor esi, esi
jmp 0x6d8e1d77
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8e1e18
mov rax, qword [0x6d9035e8]
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 0x6d8e2630
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d9038c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d9038a0]
test rbx, rbx
je 0x6d8e2684
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 0x6d8e267b
test rsi, rsi
je 0x6d8e267b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8e2660
lea rcx, [0x6d9038c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8e28c0
Capabilities:
Parse pe header

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

Function at 0x6d8e28e0
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 0x6d8e2921
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 0x6d8e2918
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8e2923
add rax, 0x28
cmp rax, r9
jne 0x6d8e2904
xor eax, eax
ret

Function at 0x6d8e29c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d9001f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8e2a2d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8e2a2d
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 0x6d8e2a2d
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 0x6d8e2a24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8e2a2f
add rax, 0x28
cmp rax, r9
jne 0x6d8e2a10
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8e2b30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d9001f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8e2b50
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8e2b48
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 0x6d8e2bad
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 0x6d8e2ba4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8e2bb4
add rax, 0x28
cmp rax, r9
jne 0x6d8e2b90
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8e2bd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d9001f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8e2c3e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8e2c3e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8e2c3e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8e2c3e
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 0x6d8e2c35
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8e2c45
add rcx, 0x28
cmp rcx, rax
jne 0x6d8e2c20
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8e2c58
jmp 0x6d8e2c3e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8e2c66
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8e2c3e
test r9d, r9d
jg 0x6d8e2c50
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8e2fd0
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
Function at 0x4157c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41596b
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042fda0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
nop
jne 0x41582e
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x415841
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x415865
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x415879
cmp rbx, 0x1000
jae 0x415838
nop
jmp 0x4158e9
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop
cmp rbx, 0x1000
jae 0x41588d
xor edx, edx
jmp 0x4158e0
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.0042fda0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
nop
test dl, dl
jne 0x41586f
jmp 0x415855
call fcn.0045f0a0
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00434d60
lea rax, [0x004ccd4f]
mov ebx, 0x18
nop dword [rax + rax]
call fcn.00435660
mov rax, qword [rsp + 0x38]
call fcn.00435360
lea rax, [0x004ccddf]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.00435660
mov rax, qword [rsp + 0x30]
call fcn.00435360
call fcn.00434fc0
call fcn.00434de0
lea rax, [0x004cf7c9]
mov ebx, 0x21
call fcn.004335e0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045b520
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004157c0