joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002ff60
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2a8
mov r14, rcx
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
lea rdi, [rsp + 0x50]
mov rcx, rdi
mov edx, 0x107
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov rcx, rdi
call fcn.1400ce950
mov word [rsp + rax + 0x50], 0x2a5c
mov byte [rsp + rax + 0x52], 0
lea rdx, [rsp + 0x160]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
je 0x140030000
mov rdi, rax
lea rbx, [rsp + 0x160]
mov rsi, qword [sym.imp.KERNEL32.dll_FindNextFileA]
nop word cs:[rax + rax]
nop dword [rax + rax]
mov rcx, rbx
mov edx, 0x140
call r14
mov rcx, rdi
mov rdx, rbx
call rsi
test eax, eax
jne 0x14002ffe0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
mov edx, 4
call r14
lea rcx, [rsp + 0x30]
mov edx, 0x20
call fcn.14002fe10
test al, al
je 0x140030047
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov edx, 0x20
call r14
mov edx, 0x20
mov rcx, rdi
call fcn.1400778a0
mov rcx, r14
call fcn.14003d390
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1400b8cc0
nop
add rsp, 0x2a8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140030070
Capabilities:
Get memory capacity

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0xa0], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x78], rax
lea rsi, [rsp + 0x78]
mov ecx, 9
mov rdx, rsi
mov r8d, 8
call fcn.14002fb40
call qword [sym.imp.USER32.dll_GetCapture]
mov qword [rsp + 0x78], rax
mov ecx, 0xa
mov rdx, rsi
mov r8d, 8
call fcn.14002fb40
call qword [sym.imp.USER32.dll_GetClipboardOwner]
mov qword [rsp + 0x78], rax
mov ecx, 0xb
mov rdx, rsi
mov r8d, 8
call fcn.14002fb40
mov ecx, 0x1cbf
call qword [sym.imp.USER32.dll_GetQueueStatus]
mov dword [rsp + 0x74], eax
lea rdx, [rsp + 0x74]
mov ecx, 0xc
mov r8d, 4
call fcn.14002fb40
lea rsi, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, 0xd
mov rdx, rsi
mov r8d, 8
call fcn.14002fb40
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, 6
mov rdx, rsi
mov r8d, 0x38
call fcn.14002fb40
lea rsi, [rsp + 0x98]
lea r14, [rsp + 0x90]
lea rdi, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0x20], rsi
lea rbx, [rsp + 0x80]
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_GetThreadTimes]
mov ecx, 0xe
mov rdx, rbx
mov r8d, 0x20
call fcn.14002fb40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], rsi
mov rcx, rax
mov rdx, rbx
mov r8, rdi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
mov ecx, 0xf
mov rdx, rbx
mov r8d, 0x20
call fcn.14002fb40
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400b8cc0
nop
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400561e0
Capabilities:
Get common file path
Set current directory

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x138
mov ebx, r9d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140129050]
xor rax, rsp
mov qword [rsp + 0x130], rax
test r8b, r8b
je 0x140056229
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add eax, 0xffffffff
cmp eax, 0x103
setb bpl
jmp 0x14005622b
xor ebp, ebp
mov dword [rdi], 0x88
xor eax, eax
test rsi, rsi
je 0x14005623f
cmp byte [rsi], 0
cmovne rax, rsi
mov qword [rdi + 0x50], rax
mov rcx, rdi
test bl, bl
je 0x140056252
call qword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x140056258
call qword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov edi, eax
test rsi, rsi
je 0x14005627c
mov ecx, 0x104
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
add eax, 0xfffffefc
cmp eax, 0xfffffefc
ja 0x14005627c
mov byte [rsi], 0
test bpl, bpl
je 0x14005628c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test edi, edi
setne bl
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400b8cc0
mov eax, ebx
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x1400ce950
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x1400ce96d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1400ce9c8
test al, 7
jne 0x1400ce960
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1400ce981
mov rdx, qword [rax - 8]
test dl, dl
je 0x1400ce9f2
test dh, dh
je 0x1400ce9ec
shr rdx, 0x10
test dl, dl
je 0x1400ce9e6
test dh, dh
je 0x1400ce9e0
shr rdx, 0x10
test dl, dl
je 0x1400ce9da
test dh, dh
je 0x1400ce9d4
shr edx, 0x10
test dl, dl
je 0x1400ce9ce
test dh, dh
jne 0x1400ce981
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400cffa0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400cffc8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400cffc8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180a7d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.180a7d1df
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 0x180a7d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a7d06f
add dl, dl
jne 0x180a7d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a7d0f6
xor eax, eax
add dl, dl
jne 0x180a7d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180a7d1ad
add dl, dl
jne 0x180a7d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a7d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a7d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a7d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180a7d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180a7d07e
mov eax, 1
add dl, dl
jne 0x180a7d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180a7d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a7d0fb
sub eax, ebx
mov ebx, 1
jne 0x180a7d14c
mov ecx, 1
add dl, dl
jne 0x180a7d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180a7d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a7d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a7d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180a7d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180a7d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180a7d15d
cmp eax, 0x7d00
jae 0x180a7d19b
cmp eax, 0x500
jb 0x180a7d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a7d07e
cmp eax, 0x7f
ja 0x180a7d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180a7d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180a7d1d2
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 0x180a7d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400187a0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400187b0]
mov dword [rax], 1
mov rax, qword [0x1400187c0]
mov dword [rax], 1
mov rax, qword [0x140018740]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140018790]
mov dword [0x14001c020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140018870]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140018850]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140018690]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x14000154b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call dbg.__main
mov dword [rbp - 4], 0x1ff
mov eax, dword [rbp - 4]
cdqe
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp - 0x10], rax
mov eax, dword [rbp - 4]
movsxd rcx, eax
mov rdx, qword [0x14001c040]
mov rax, qword [rbp - 0x10]
mov r8, rcx
mov rcx, rax
call sym.memcpy
mov rax, qword [rbp - 0x10]
call rax
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x14000ae80
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 0x14000aef0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14001c0c4]
mov r12, rcx
test ebx, ebx
jle 0x14000b020
mov rax, qword [0x14001c0c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000af3c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000afc3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000af20
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x14000b042
mov rax, qword [0x14001c0c8]
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 [0x14001c0c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b027
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000afbc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000afd0
add dword [0x14001c0c4], 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 [0x14001c0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000afbc
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 0x14000af47
mov rax, qword [0x14001c0c8]
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 0x14000b5c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14001c120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001c100]
test rbx, rbx
je 0x14000b614
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 0x14000b60b
test r12, r12
je 0x14000b60b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b5f0
lea rcx, [0x14001c120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000b830
Capabilities:
Parse pe header

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

Function at 0x14000b860
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 0x14000b8ac
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 0x14000b8a3
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000b8ae
add rax, 0x28
cmp rax, r9
jne 0x14000b890
xor eax, eax
ret

Function at 0x14000b8b0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x14000b940
mov rdx, qword [0x140018740]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000b92e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000b92e
cmp word [rax + 0x18], 0x20b
jne 0x14000b92e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x14000b940
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x14000b919
add r12, 0x28
cmp r12, rsi
je 0x14000b940
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x14000b910
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 0x14000b950
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140018740]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000b970
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000b978
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000b970
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000b9c5
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 0x14000b9bc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000b970
add rax, 0x28
cmp rax, r9
jne 0x14000b9a8
xor eax, eax
ret

Function at 0x14000b9d0
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x140018740]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14000ba30
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14000ba38
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000ba30
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000ba78
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000ba6f
test rcx, rcx
je 0x14000ba30
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14000ba60
xor eax, eax
ret

Function at 0x14000ba80
Capabilities:
Parse pe header

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

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

Disassembly:
mov rax, qword [0x140018740]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000bae0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000bae8
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000bae0
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000bae0
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 0x14000bb24
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000bb38
add rax, 0x28
cmp r9, rax
jne 0x14000bb10
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x140018740]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14000bb72
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14000bb80
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000bb72
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14000bb72
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x14000bb72
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 0x14000bbcd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14000bbe0
add rdx, 0x28
cmp r10, rdx
jne 0x14000bbb8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000bbef
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000bbff
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000bbd6
test ecx, ecx
jg 0x14000bbe8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000bcd0
Capabilities:
Allocate thread local storage

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x14000bd00
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp dbg.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
add ax, 0x629
add dword [0x14b0929a4], eax
add rax, 0x6740603
sahf
add eax, 0xfef031c
add dword [0x1453fad99], eax
and byte [rsi], al
add dword [0x15508f1a6], eax
add eax, 0x5053c15
invalid
invalid
invalid
invalid
invalid
add eax, 0x5053c15
invalid
invalid
sbb al, byte [rbx]
ja 0x14003a816
cmp eax, dword [0x1468baadb]
cmp al, 5
or dword [rsi], eax
add edx, dword [rdx + rdi*2 + 0x6190566]
cmp al, 5
adc ecx, dword [rdx + 5]
add rax, 0x58083c09
add rax, 0x58083c09
add eax, 0xe2030607
outsd dx, dword [rsi]
add dword [0x1328cadef], eax
add eax, 0xf603060d
not byte [0x14638acef]
not byte [0x14638acef]
add dword [0x18c0bae03], eax
add eax, 0x5010611
invalid
xchg esp, eax
add eax, 0x903060f
add ax, 0x611
add dword [rsi], eax
xchg esp, eax
add eax, 0x5010615
adc eax, 0x13050106
cmp al, 6
invalid
invalid
add ecx, dword [rsi]
invalid
add eax, 0xe053c36
add edi, esi
jns 0x14003a893
add eax, 0x6d6060c
invalid
invalid
or eax, 0x7ab70306
enter 0x1a05, 6
sbb al, byte [rsi]
sbb al, byte [rsi]
add dword [0x1458cae4d], eax
cmp al, byte [rsi]
add edx, dword [rbx + 1]
add eax, 0x582d030b
or eax, dword [rbx]
sub eax, 0x6140558
movsd dword [rdi], dword [rsi]
invalid
sub eax, dword [rsi]
invalid
or eax, dword [rbx]
sub eax, 0x6140558
movsd dword [rdi], dword [rsi]
add eax, 0x517062b
invalid
adc ax, word [0x14504ae76]
adc al, 6
movsb byte [rdi], byte [rsi]
add eax, 0x5010616
adc dword [rsi], eax
invalid
push 5
xor eax, dword [rsi]
add dword [0x14d08f2a4], eax
invalid
invalid
add ebx, dword [rcx + rax + 0xe05583c]
add esp, edx
jle 0x14003a835
loop 0x14003a914
sahf
add eax, 0x3cc0314
add rax, 0x7cb60319
mov dh, 0x7c
mov dh, 0x7c
add ax, 0x313
retf
add eax, 0xdc03060d
jge 0x14003a909
add eax, 0x501061a
or eax, 0x3a058906
invalid
invalid
cmp al, byte [rsi]
mov dword [0xd206aef8], eax
jg 0x14003a8c1
add eax, 0xee030f
pop rax
lsl ebp, esi
add byte [rax + 5], bl
add eax, 0x5a30614
cmp al, byte [rsi]
add ecx, dword [rbp + 0x1605017f]
add eax, 0x5a30614
cmp al, byte [rsi]
add ecx, dword [rbp + 0x1605017f]
add esi, ebx
add byte [rdx + 5], cl
add rax, 0x136e060f
add eax, 0x5010611
add rax, 0x136e060f
add eax, 0x5010611
adc al, 6
movabs dword [0x6a06110501061605], eax
add eax, 0x56a0611
invalid
invalid
add dword [0x14908f32d], eax
invalid
pop rbp
add eax, 0x5010658
pop rax
invalid
add dword [0x1455ce90d], eax
sbb dword [rbx], eax
mov cl, 0x7e
cmp al, 5
pop rax
add ecx, edx
add eax, 0x56a0611
invalid
pop rax
invalid
add dword [rax + 0x5994060d], edi
xchg esp, eax
pop rcx
add edi, esi
jle 0x14003a96c
add eax, 0x5130612
invalid
sbb dword [rbx], eax
mov edi, 0xf05587f
add eax, ecx
add byte [rax + rbx*2], bh
add eax, 0xc903060d
add bl, byte [rax + 5]
invalid
Function at 0x14000bd40
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x14000bd80
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000bd98
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x140012f60
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
cmp byte [0x1400153c0], 0
jne 0x14001306a
mov byte [0x1400153c0], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x140013040
mov r12, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [r12], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add r12, rax
mov rcx, r12
call sym.__cxa_demangle
mov ecx, 2
mov rbx, qword [dbg.__acrt_iob_func]
mov r13, rax
call rbx
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x140013031
call rbx
mov rcx, r12
mov rdx, rax
call sym.fputs
mov ecx, 2
call rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x1400160e1]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x14001302c
mov rcx, r13
call sym.free
call sym.__cxa_rethrow
call rbx
mov rcx, r13
mov rdx, rax
call sym.fputs
jmp 0x140012ffb
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x1400130ff
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov r12, rax
call rbx
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rbx
mov rdx, rax
mov rcx, r12
call sym.fputs
mov ecx, 2
call rbx
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x140013065
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x140013065
Function at 0x180012ba0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rbx, qword [rcx - 8]
mov rsi, rdx
mov rcx, rdx
movsxd rdi, r8d
call qword [0x180020940]
cmp edi, 0x1d
ja 0x180013a6e
lea rdx, [0x180000000]
mov rax, rsi
add rsp, 0x3e0
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret