joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000b344
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
xor ebx, ebx
lea r10, [rdx + 0x10]
mov rsi, r8
mov dword [rbp + 0x40], ebx
mov r8d, dword [r8 + 0x50]
mov r14, r9
sub r8d, 0x10
mov dword [rbp + 0x48], ebx
mov rdi, rcx
mov dword [rbp + 0x50], ebx
mov eax, dword [rsi + 8]
lea r11d, [rbx + 1]
mov dword [rcx], eax
mov rax, qword [rbp + 0x60]
mov qword [rcx + 0x30], rax
movzx eax, word [rsi + 0x80]
mov word [rcx + 0x38], ax
mov dword [rbp - 0x10], ebx
cmp byte [rdx + 4], bl
jne 0x18000a987
mov rax, r10
mov ecx, 0x655f
test r8d, r8d
je 0x18000a987
mov edx, r8d
xor byte [rax], cl
add rax, r11
imul ecx, ecx, 0x4115
sub rdx, r11
jne 0x18000a977
cmp dword [0x180055948], ebx
je 0x18000a9cc
cmp dword [rsi + 0x60], ebx
je 0x18000a9cc
mov ecx, 0xbeef00
mov rdx, r10
mov r9d, r8d
test r8d, r8d
je 0x18000a9b8
movzx eax, byte [rdx]
add rdx, r11
imul ecx, ecx, 0x301
add ecx, eax
add r9d, 0xffffffff
jne 0x18000a9a4
test ecx, ecx
cmove ecx, r11d
not ecx
cmp dword [rsi + 0x60], ecx
je 0x18000a9cc
xor eax, eax
jmp 0x18000aaff
mov rdx, r10
mov rcx, r14
call fcn.18001f064
mov r15, rax
test rax, rax
jne 0x18000a9e4
mov dword [rsi + 0x60], ebx
jmp 0x18000a9c5
lea r9, [rbp + 0x40]
xor edx, edx
lea r8, str.Gdata
mov rcx, r15
call fcn.18000bed4
lea r9, [rbp + 0x48]
xor edx, edx
lea r8, str.Fdata
mov rcx, r15
mov rbx, rax
call fcn.18000bed4
lea r9, [rbp + 0x50]
xor edx, edx
lea r8, str.AttrData
mov rcx, r15
mov r12, rax
call fcn.18000bed4
lea r9, [rbp - 0x10]
xor edx, edx
lea r8, str.GinfData
mov rcx, r15
mov r13, rax
call fcn.18000bed4
mov rcx, r15
mov qword [rbp + 0x60], rax
call fcn.18001f224
mov r8d, dword [rbp + 0x40]
mov rdx, rbx
mov rcx, r14
call fcn.18001f064
xor ebx, ebx
mov qword [rdi + 8], rax
test rax, rax
jne 0x18000aa74
mov rcx, rdi
call fcn.18000b05c
jmp 0x18000a9df
mov r8d, dword [rbp + 0x48]
mov rdx, r12
mov rcx, r14
call fcn.18001f064
mov qword [rdi + 0x10], rax
test rax, rax
je 0x18000aa67
mov r8d, dword [rbp + 0x50]
mov rdx, r13
mov rcx, r14
call fcn.18001f064
mov qword [rdi + 0x18], rax
test rax, rax
je 0x18000aa67
mov rcx, qword [rdi + 8]
call fcn.18001f980
mov rcx, qword [rdi + 0x10]
mov dword [rdi + 0x20], eax
call fcn.18001f980
mov rcx, qword [rdi + 0x18]
mov dword [rdi + 0x24], eax
call fcn.18001f980
mov r8d, dword [rbp - 0x10]
mov dword [rdi + 0x28], eax
test r8d, r8d
jle 0x18000aaf3
mov rdx, qword [rbp + 0x60]
mov rcx, r14
call fcn.18001f064
mov qword [rdi + 0x40], rax
test rax, rax
je 0x18000aa67
mov rcx, rax
call fcn.18001f980
mov dword [rdi + 0x48], eax
jmp 0x18000aafa
mov dword [rdi + 0x48], ebx
mov qword [rdi + 0x40], rbx
mov eax, 1
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r10, r8
mov r11, rdx
mov r8, rcx
mov rdx, r10
mov rcx, r11
jmp 0x18000a90c
Function at 0x18000b508
Capabilities:
Encode data using xor

Disassembly:
mov rax, r8
mov r10, rdx
mov r8, rcx
mov rdx, rax
mov rcx, r10
jmp 0x18000b508
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, r8
lea r10, [rdx + 0x10]
mov r8d, dword [r8 + 0x40]
xor r12d, r12d
sub r8d, 0x10
mov dword [rsp + 0x60], r12d
mov r14, r9
mov dword [rsp + 0x68], r12d
movzx eax, word [rsi + 0x80]
mov rdi, rcx
mov word [rcx + 0x18], ax
lea r13d, [r12 + 1]
mov eax, dword [rsi + 8]
mov dword [rcx + 0x1c], eax
cmp byte [rdx + 4], r12b
jne 0x18000b57a
mov rax, r10
mov ecx, 0x655f
test r8d, r8d
je 0x18000b57a
mov edx, r8d
xor byte [rax], cl
add rax, r13
imul ecx, ecx, 0x4115
sub rdx, r13
jne 0x18000b56a
cmp dword [0x180055948], r12d
je 0x18000b5c1
cmp dword [rsi + 0x5c], r12d
je 0x18000b5c1
mov ecx, 0xbeefdead
mov rdx, r10
mov r9d, r8d
test r8d, r8d
je 0x18000b5ad
movzx eax, byte [rdx]
add rdx, r13
imul ecx, ecx, 0x301
add ecx, eax
add r9d, 0xffffffff
jne 0x18000b599
test ecx, ecx
cmove ecx, r13d
not ecx
cmp dword [rsi + 0x5c], ecx
je 0x18000b5c1
xor eax, eax
jmp 0x18000b688
mov rdx, r10
mov rcx, r14
call fcn.18001f064
mov rbp, rax
test rax, rax
jne 0x18000b5da
mov dword [rsi + 0x5c], r12d
jmp 0x18000b5ba
mov rcx, rbp
cmp word [rsi + 0x84], r12w
jne 0x18000b675
lea r9, [rsp + 0x60]
xor edx, edx
lea r8, str.DataL
call fcn.18000bed4
lea r9, [rsp + 0x68]
xor edx, edx
lea r8, str.DataH
mov rcx, rbp
mov rbx, rax
call fcn.18000bed4
mov rcx, rbp
mov r15, rax
call fcn.18001f224
mov r8d, dword [rsp + 0x60]
mov rdx, rbx
mov rcx, r14
call fcn.18001f064
mov qword [rdi], rax
test rax, rax
je 0x18000b5d4
mov r8d, dword [rsp + 0x68]
mov rdx, r15
mov rcx, r14
call fcn.18001f064
mov qword [rdi + 8], rax
test rax, rax
jne 0x18000b664
mov dword [rsi + 0x5c], r12d
mov rcx, qword [rdi]
call fcn.18001f224
jmp 0x18000b5ba
mov rcx, qword [rdi]
call fcn.18001f980
mov rcx, qword [rdi + 8]
mov dword [rdi + 0x10], eax
jmp 0x18000b67d
mov qword [rdi + 8], rbp
mov dword [rdi + 0x10], r12d
call fcn.18001f980
mov dword [rdi + 0x14], eax
mov eax, r13d
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000b984
Capabilities:
Encode data using xor

Disassembly:
mov rax, r8
mov r10, rdx
mov r8, rcx
mov rdx, rax
mov rcx, r10
jmp 0x18000b984
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x20
mov rbx, r8
lea r10, [rdx + 0x10]
mov r8d, dword [r8 + 0x20]
mov r11, r9
sub r8d, 0x10
mov rdi, rcx
cmp byte [rdx + 4], 0
mov ebp, 1
jne 0x18000b9d3
mov rax, r10
mov edx, 0x655f
test r8d, r8d
je 0x18000b9d3
mov ecx, r8d
xor byte [rax], dl
add rax, rbp
imul edx, edx, 0x4115
sub rcx, rbp
jne 0x18000b9c3
cmp dword [0x180055948], 0
je 0x18000ba16
cmp dword [rbx + 0x58], 0
je 0x18000ba16
mov ecx, 0xdeadbeef
mov rdx, r10
mov r9d, r8d
test r8d, r8d
je 0x18000ba06
movzx eax, byte [rdx]
add rdx, rbp
imul ecx, ecx, 0x301
add ecx, eax
add r9d, 0xffffffff
jne 0x18000b9f2
test ecx, ecx
cmove ecx, ebp
not ecx
cmp dword [rbx + 0x58], ecx
je 0x18000ba16
xor eax, eax
jmp 0x18000ba3f
mov rdx, r10
mov rcx, r11
call fcn.18001f064
mov qword [rdi], rax
test rax, rax
jne 0x18000ba2e
and dword [rbx + 0x58], eax
jmp 0x18000ba12
mov rcx, rax
call fcn.18001f980
mov dword [rdi + 8], eax
mov eax, ebp
mov qword [rdi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x18001e950
Capabilities:
Create thread

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, 0x50
xor r14d, r14d
mov rbp, r9
mov edi, r8d
mov rsi, rcx
movsxd r8, edx
lea r9d, [r14 + 1]
cmp dword [0x180056f4c], r9d
je 0x18001e9a8
xor ecx, ecx
xor eax, eax
cpuid
mov ecx, r14d
cmp eax, r9d
jb 0x18001e99b
mov eax, r9d
cpuid
and ecx, r9d
mov dword [0x180056f44], ecx
mov dword [0x180056f4c], r9d
xor edx, edx
mov rcx, rsi
call fcn.180010720
mov rax, qword [rsp + 0x80]
lea rbx, [rsi + 7]
and rbx, 0xfffffffffffffff8
lea r8, [0x18001eb98]
mov edx, 0x100000
mov ecx, 0x4000
cmp edi, edx
mov r9, rbx
mov qword [rbx + 8], rax
cmovle edi, ecx
mov rax, qword [rsp + 0x88]
lea rcx, [rsp + 0x30]
mov qword [rbx + 0x28], rax
mov edx, edi
mov eax, dword [0x180056f48]
mov dword [rbx + 0x38], eax
mov eax, 0x10000
cmovle eax, r14d
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], eax
mov qword [rbx], rbp
call fcn.18002055c
mov qword [rbx + 0x18], rax
test rax, rax
jne 0x18001ea3a
lea rdx, str.E2008073001:Failed_to_create_thread.
xor ecx, ecx
call fcn.18001db2c
mov rcx, rbx
call fcn.18001ea90
xor eax, eax
jmp 0x18001ea74
mov rdi, qword [rsp + 0x90]
test rdi, rdi
je 0x18001ea6a
mov edx, dword [rdi + 8]
mov rcx, rbx
call fcn.18001eb60
mov rdx, qword [rdi]
mov rcx, rbx
call fcn.18001eae4
jmp 0x18001ea6a
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rbx + 0x10]
test eax, eax
je 0x18001ea5f
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14006f860]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14006f870]
mov dword [rax], 1
mov rax, qword [0x14006f880]
mov dword [rax], 1
mov rax, qword [str.___a_]
mov dword [rax], 1
mov rax, qword [0x14006f6e0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14006f840]
mov dword [0x140072020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14006f800]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14006f7e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14006f690]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x140001540
Capabilities:
Get common file path
Write file on windows

Disassembly:
push rbp
push rdi
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x410], rcx
mov qword [rbp + 0x418], rdx
mov qword [rbp + 0x420], r8
mov dword [rbp + 0x428], r9d
lea rdx, [rbp + 0x1d0]
mov eax, 0
mov ecx, 0x41
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, rdi
mov word [rdx], ax
add rdx, 2
lea rdx, [rbp - 0x50]
mov eax, 0
mov ecx, 0x42
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, rdi
mov dword [rdx], eax
add rdx, 4
mov word [rdx], ax
add rdx, 2
lea rax, [rbp + 0x1d0]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetTempPathW]
call rax
test eax, eax
jne 0x1400015d8
mov eax, 0xffffffff
jmp 0x140001803
mov dword [rbp + 0x3e8], 0
mov byte [rbp + 0x3ef], 0
jmp 0x1400016fc
movzx edx, byte [rbp + 0x3ef]
lea rax, [rbp - 0x50]
mov dword [rsp + 0x28], edx
lea rdx, [rbp + 0x1d0]
mov qword [rsp + 0x20], rdx
lea r9, str._s_zu.jpg
mov r8d, 0x10a
mov edx, 0x10b
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__snwprintf_s]
call rax
mov dword [rbp + 0x3e8], eax
cmp dword [rbp + 0x3e8], 0
je 0x14000163f
cmp dword [rbp + 0x3e8], 0xffffffff
jne 0x140001649
mov eax, 0xffffffff
jmp 0x140001803
mov eax, dword [rbp + 0x3e8]
cdqe
mov word [rbp + rax*2 - 0x50], 0
lea rax, [rbp - 0x50]
lea rdx, [0x14006f152]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__wfopen]
call rax
mov qword [rbp + 0x3e0], rax
cmp qword [rbp + 0x3e0], 0
jne 0x14000168a
mov eax, 0xffffffff
jmp 0x140001803
movzx eax, byte [rbp + 0x3ef]
cdqe
lea rdx, [rax*4]
lea rax, [0x14006f0a0]
mov eax, dword [rdx + rax]
mov ecx, eax
movzx eax, byte [rbp + 0x3ef]
cdqe
lea rdx, [rax*8]
lea rax, [0x14006ea40]
mov rax, qword [rdx + rax]
mov rdx, qword [rbp + 0x3e0]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp + 0x3e0]
mov rcx, rax
call sym.fclose
movzx eax, byte [rbp + 0x3ef]
add eax, 1
mov byte [rbp + 0x3ef], al
cmp byte [rbp + 0x3ef], 0x25
jbe 0x1400015ee
mov word [rbp - 0x50], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8, qword [sym.play]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov byte [rbp + 0x3ee], 0
jmp 0x1400017f1
movzx edx, byte [rbp + 0x3ee]
lea rax, [rbp - 0x50]
mov dword [rsp + 0x28], edx
lea rdx, [rbp + 0x1d0]
mov qword [rsp + 0x20], rdx
lea r9, str._s_zu.jpg
mov r8d, 0x10a
mov edx, 0x10b
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__snwprintf_s]
call rax
mov dword [rbp + 0x3e8], eax
cmp dword [rbp + 0x3e8], 0
je 0x14000179d
cmp dword [rbp + 0x3e8], 0xffffffff
jne 0x1400017a4
mov eax, 0xffffffff
jmp 0x140001803
lea rax, [rbp - 0x50]
mov r9d, 3
mov r8, rax
mov edx, 0
mov ecx, 0x14
mov rax, qword [sym.imp.USER32.dll_SystemParametersInfoW]
call rax
mov eax, dword [rbp + 0x3e8]
cdqe
mov word [rbp + rax*2 - 0x50], 0
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
movzx eax, byte [rbp + 0x3ee]
add eax, 1
mov byte [rbp + 0x3ee], al
cmp byte [rbp + 0x3ee], 0x25
jbe 0x14000174c
jmp 0x140001740
add rsp, 0x478
pop rdi
pop rbp
ret
Function at 0x1400022f0
Capabilities:
Write file on windows

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

Function at 0x140002360
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400720b4]
mov r12, rcx
test ebx, ebx
jle 0x140002490
mov rax, qword [0x1400720b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1400023ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140002433
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140002390
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x1400024b2
mov rax, qword [0x1400720b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400720b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002497
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000242c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002440
add dword [0x1400720b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400720b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000242c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x1400023b7
mov rax, qword [0x1400720b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002970
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140072120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140072100]
test rbx, rbx
je 0x1400029c4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400029bb
test r12, r12
je 0x1400029bb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400029a0
lea rcx, [0x140072120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002be0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002bf8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002c00
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002c10
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002c5c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x140002c53
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x140002c5e
add rax, 0x28
cmp rax, r9
jne 0x140002c40
xor eax, eax
ret

Function at 0x140002c60
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002cf0
mov rdx, qword [0x14006f6e0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x140002cde
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002cde
cmp word [rax + 0x18], 0x20b
jne 0x140002cde
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002cf0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002cc9
add r12, 0x28
cmp r12, rsi
je 0x140002cf0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002cc0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x140002d00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14006f6e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002d20
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002d28
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002d20
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002d75
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002d6c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002d20
add rax, 0x28
cmp rax, r9
jne 0x140002d58
xor eax, eax
ret

Function at 0x140002d80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14006f6e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002da0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002da8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002da0
movzx r8d, word [rax + 6]
mov eax, r8d
ret
Function at 0x140002dc0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14006f6e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002de0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002de8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002de0
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002e28
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002e1f
test rcx, rcx
je 0x140002de0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002e10
xor eax, eax
ret

Function at 0x140002e30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14006f6e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002e50
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002e58
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140002e70
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14006f6e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002e90
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002e98
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002e90
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002e90
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002ed4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002ee8
add rax, 0x28
cmp r9, rax
jne 0x140002ec0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x140002f00
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14006f6e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002f22
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002f30
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002f22
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002f22
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x140002f22
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002f7d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002f90
add rdx, 0x28
cmp r10, rdx
jne 0x140002f68
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002f9f
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002faf
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002f86
test ecx, ecx
jg 0x140002f98
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140004620
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14006f790]
mov rax, qword [rsi]
test rax, rax
je 0x1400046b0
cmp qword [rax + 0x30], 0
jne 0x1400046d0
lea rbx, [0x14006ebe8]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140004680
cmp qword [rax + 0x30], 0
jne 0x1400046a0
lea rdx, [0x14006ebe8]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je sym.pthread_tls_init.cold
add rsp, 0x28
pop rbx
pop rsi
ret
call sym.__shmem3_winpthreads_tdm_init_local_region
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140004662
test rax, rax
jne 0x1400046a0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140004670
call sym.__shmem3_winpthreads_tdm_init_local_region
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140004640
test rax, rax
jne 0x1400046d0
call sym.__shmem3_winpthreads_tdm_init_local_region
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14000464b

Function at 0x1400046e0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x1400047f2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400047ca
add rax, 1
cmp rax, 0x6b
je 0x1400047e7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x1400047c0
cmp edx, 0x6a
je 0x1400047e7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sym.abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x1400047db