joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d9b5c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400d9bda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400d9bd1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400d9bd1
mov rax, qword [rbp - 8]
jmp 0x1400d9bef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400d9ba4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1418d6058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1418d61df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
Function at 0x140001010
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword gs:[0x60]
xor r12d, r12d
mov r13, rdx
mov rcx, qword [rax + 0x18]
add rcx, 0x10
mov qword [rsp + 0x60], rcx
mov r15, qword [rcx]
cmp r15, rcx
je 0x140001220
mov edx, 0x20b
mov r8d, 0x5a4d
nop dword [rax]
cmp qword [r15 + 0x60], 0
je 0x1400011d8
mov rsi, qword [r15 + 0x30]
test rsi, rsi
je 0x1400011d8
movsxd rax, dword [rsi + 0x3c]
mov r14d, dword [rax + rsi + 0x88]
add r14, rsi
cmp word [rsi], r8w
jne 0x1400011fd
cmp word [rax + rsi + 0x18], dx
jne 0x1400010a6
cmp dword [rax + rsi + 0x8c], 0
jbe 0x1400011d8
mov ebp, dword [r14 + 0x18]
xor edi, edi
test ebp, ebp
je 0x1400011d3
mov ebx, dword [r14 + 0x20]
add rbx, rsi
nop dword [rax + rax]
mov r11d, dword [rbx]
xor r10d, r10d
add r11, rsi
mov eax, 0x93a77b10
movzx r9d, byte [r11]
test r9b, r9b
je 0x140001193
mov ebp, 0x93a77b10
movzx r8d, r9b
sub r9b, 0x41
cmp r9b, 0x19
lea ecx, [r8 + 0x20]
movzx edx, cl
cmova edx, r8d
movsx r8d, dl
cmp eax, r8d
jne 0x140001104
xor ecx, ecx
jmp 0x140001129
movd xmm0, r8d
movd xmm2, eax
movdqa xmm1, xmm0
pandn xmm1, xmmword [0x140003300]
pand xmm1, xmm2
pandn xmm2, xmm0
por xmm1, xmm2
movd ecx, xmm1
lea eax, [r10 - 0x6c5884f0]
imul eax, r8d
add eax, ecx
mov ecx, r10d
test r10d, r10d
cmove ecx, ebp
movd xmm0, eax
pshufd xmm0, xmm0, 0
movd eax, xmm0
cmp ecx, ebp
jne 0x140001154
xor ecx, ecx
jmp 0x140001178
movd xmm1, ecx
movd xmm2, ebp
movdqa xmm0, xmm1
pandn xmm0, xmmword [0x140003300]
pand xmm0, xmm2
pandn xmm2, xmm1
por xmm0, xmm2
movd ecx, xmm0
imul eax, ecx
inc r10d
movzx r9d, byte [r10 + r11]
add eax, r8d
test r9b, r9b
jne 0x1400010e0
mov ebp, dword [r14 + 0x18]
mov ecx, eax
cmp r13, rcx
je 0x1400011aa
inc edi
add rbx, 4
cmp edi, ebp
jb 0x1400010c0
jmp 0x1400011c3
mov eax, dword [r14 + 0x24]
mov ecx, dword [r14 + 0x1c]
add rax, rsi
add rcx, rsi
movzx edx, word [rax + rdi*2]
mov r12d, dword [rcx + rdx*4]
add r12, rsi
mov rcx, qword [rsp + 0x60]
mov r8d, 0x5a4d
mov edx, 0x20b
test r12, r12
jne 0x1400011e5
mov r15, qword [r15]
cmp r15, rcx
je 0x140001220
jmp 0x140001060
mov rbx, qword [rsp + 0x68]
mov rax, r12
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.DOS_header_e_magic_mismatch
lea rcx, [rsp + 0x70]
call fcn.140001000
lea rdx, [0x140003a30]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Cannot_find_desired_export.
lea rcx, [rsp + 0x70]
call fcn.140001000
lea rdx, [0x140003a30]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140010fb0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rbp
push rdi
push r13
sub rsp, 0x38
mov rax, qword [0x140054030]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r13, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
mov edx, 0x7c
call qword [sym.imp.MSVCR90.dll_wcschr]
mov rbp, rax
test rax, rax
jne 0x140010ff5
xor ebx, ebx
mov ax, bx
jmp 0x1400110d5
lea rdx, [0x140037d70]
lea rcx, [rax - 4]
mov r8d, 2
call qword [sym.imp.MSVCR90.dll_wcsncmp]
test eax, eax
jne 0x140011019
mov dword [rdi + 8], 2
jmp 0x140011063
lea rdx, [0x140037d78]
lea rcx, [rbp - 4]
mov r8d, 2
call qword [sym.imp.MSVCR90.dll_wcsncmp]
test eax, eax
jne 0x14001103d
mov dword [rdi + 8], 3
jmp 0x140011063
lea rdx, [0x140037d80]
lea rcx, [rbp - 4]
mov r8d, 2
call qword [sym.imp.MSVCR90.dll_wcsncmp]
test eax, eax
jne 0x140011162
mov dword [rdi + 8], 1
cmp dword [rdi + 8], 3
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x30], r12
jne 0x140011080
cmp byte [rdi + 0xc], 0
jne 0x140011080
mov dword [rdi + 8], 2
lea rcx, [rbp + 2]
mov edx, 0x7c
call qword [sym.imp.MSVCR90.dll_wcschr]
mov rsi, rax
test rax, rax
je 0x140011158
mov r8, rax
lea rdx, [rbp + 2]
lea rcx, [rdi + 0x10]
sub r8, rbp
sar r8, 1
dec r8
call qword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const____ptr64__unsigned_long_long_unsigned___int64_____ptr64]
lea rcx, [rdi + 0x10]
mov rdx, r13
call qword [sym.imp.MSVCP90.dll_bool___cdecl_std::operator__wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64__wchar_t_const____ptr64_]
test al, al
je 0x1400110ec
mov eax, 0x6d
mov rsi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002ab10
add rsp, 0x38
pop r13
pop rdi
pop rbp
pop rbx
ret
lea rbp, [rsi + 2]
mov edx, 0x7c
mov rcx, rbp
call qword [sym.imp.MSVCR90.dll_wcschr]
mov rsi, rax
test rax, rax
je 0x140011158
xor ebx, ebx
lea rdx, [rsp + 0x20]
mov rcx, rbp
lea r8d, [rbx + 0x10]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.MSVCR90.dll_wcstoul]
mov dword [rdi + 0x38], eax
cmp qword [rsp + 0x20], rsi
jne 0x140011158
lea rcx, [rsi + 2]
lea r8d, [rbx + 0x10]
xor edx, edx
call qword [sym.imp.MSVCR90.dll_wcstoul]
mov ecx, eax
mov qword [rdi + 0x248], rcx
test eax, eax
je 0x140011158
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140011158
mov ax, bx
jmp 0x1400110cb
mov eax, 0x68
jmp 0x1400110cb
mov eax, 0x68
jmp 0x1400110d5
Function at 0x140014960
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
mov rbx, rcx
lea rax, vtable.CFunctionTimeCost.0
mov qword [rsp + 0x28], rax
call qword [sym.imp.MSVCR90.dll_clock]
mov ebp, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], 0
lea r12, str.CSkinFinerApp::PrepareAutoSliders
mov qword [rsp + 0x40], r12
call sub.mfc90u.dll_AfxFailMaxChars
mov rcx, qword [rax + 8]
call sub.mfc90u.dll_ATL::CStringT_char_class_StrTraitMFC_DLL_char_class_ATL::ChTraitsCRT_char_____::AppendFormat
nop
lea rdx, [rbx + 0xc88]
lea r9, [rbx + 0x1488]
lea r8, [rbx + 0x1458]
mov rcx, rbx
call fcn.140013720
cmp byte [rbx + 0x13a0], 0
je 0x140014a38
mov rax, qword [rbx + 0x1458]
mov qword [rbx + 0x13a8], rax
mov rax, qword [rbx + 0x1460]
mov qword [rbx + 0x13b0], rax
mov rax, qword [rbx + 0x1468]
mov qword [rbx + 0x13b8], rax
mov rax, qword [rbx + 0x1470]
mov qword [rbx + 0x13c0], rax
mov rax, qword [rbx + 0x1478]
mov qword [rbx + 0x13c8], rax
mov rax, qword [rbx + 0x1480]
mov qword [rbx + 0x13d0], rax
cmp byte [rbx + 0x13e8], 0
je 0x140014a4d
mov eax, dword [rbx + 0x1488]
mov dword [rbx + 0x13ec], eax
lea rcx, [rsp + 0x70]
call fcn.14001a850
nop
call qword [sym.imp.MSVCR90.dll_clock]
sub eax, ebp
mov r8d, eax
mov rdx, r12
lea rcx, str.__s__Time_Cost:__d_n
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r12
pop rdi
pop rsi
jmp fcn.14001a8a0
Function at 0x1400184d0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
nop
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140038490]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.PECtrl.dll_public:_void___cdecl_PECTRL::CPhotoEditorApp::GetWebsiteUrl_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t_______ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64_const___ptr64]
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x14001853d
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.mfc90u.dll_CView::CView]
add rsp, 0x40
pop rbx
ret

Function at 0x140018af0
Capabilities:
Create directory

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rsi, rcx
call qword [sym.imp.PECtrl.dll_protected_virtual:_void___cdecl_PECTRL::CPhotoEditorApp::InitWorkingFolders_void____ptr64]
lea rcx, [rsi + 0xf38]
lea rdx, str..sfpreset
call qword [sym.imp.mfc90u.dll_CTreeCtrl::CTreeCtrl]
lea r8, str.presets
lea rdx, [rsi + 0x550]
lea rcx, [rsp + 0x40]
call fcn.140009ac0
nop
mov rdx, rax
lea rcx, [rsi + 0xf30]
call qword [sym.imp.mfc90u.dll_CToolBarCtrl::CToolBarCtrl]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc90u.dll_CView::CView]
xor edx, edx
mov rcx, qword [rsi + 0xf30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea r8, str._batch.xml
lea rdx, [rsi + 0x550]
lea rcx, [rsp + 0x40]
call fcn.140009ac0
nop
lea rcx, [rsi + 0x1548]
mov rdx, rax
call qword [sym.imp.mfc90u.dll_CToolBarCtrl::CToolBarCtrl]
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.mfc90u.dll_CView::CView]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14001a8a0
Capabilities:
Print debug messages

Disassembly:
test rcx, rcx
je 0x14001a949
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
sub rsp, 0x38
mov r8, rcx
or rcx, 0xffffffffffffffff
mov qword [r11 - 0x18], rdi
xor eax, eax
mov rdi, r8
repne scasb al, byte [rdi]
not rcx
cmp rcx, 1
je 0x14001a940
mov qword [r11 - 0x10], rsi
lea rsi, [r11 + 0x10]
mov rcx, r8
mov rdx, rsi
call qword [sym.imp.MSVCR90.dll__vscprintf]
test eax, eax
jle 0x14001a93b
inc eax
mov qword [rsp + 0x30], rbx
movsxd rdi, eax
mov rcx, rdi
call sub.mfc90u.dll_new__
mov r8, qword [rsp + 0x40]
mov r9, rsi
mov rcx, rax
mov rdx, rdi
mov rbx, rax
call qword [sym.imp.MSVCR90.dll_vsprintf_s]
test eax, eax
jle 0x14001a929
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test rbx, rbx
je 0x14001a936
mov rcx, rbx
call sub.mfc90u.dll_CStatusBar::CStatusBar
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
add rsp, 0x38
repz ret
Function at 0x14001a950
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x10]
lea rax, vtable.CFunctionTimeCost.0
mov rbx, rcx
mov qword [rcx], rax
call qword [sym.imp.MSVCR90.dll_clock]
mov rdx, qword [rbx + 0x18]
sub eax, dword [rbx + 8]
test rdi, rdi
je 0x14001a999
lea rcx, str.__s___s._Time_Cost:__d_n
mov r9d, eax
mov r8, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14001a8a0
lea rcx, str.__s__Time_Cost:__d_n
mov r8d, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14001a8a0
Function at 0x140023fb0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x140024007
cmp byte [rcx + 0x70], dl
jne 0x140023ffa
mov byte [rcx + 0x70], 1
mov dword [rcx + 0x74], 2
mov rdx, qword [str.Failed_to_open_file]
add rcx, 0x78
call qword [reloc.MSVCP90.dll___4__basic_string_DU__char_traits_D_std__V__allocator_D_2__std__QEAAAEAV01_PEBD_Z]
mov dword [rbx + 0xa8], 0xffffffff
mov dword [rbx + 0xa4], 0xffffffff
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
mov qword [rsp + 0x30], rbp
call fcn.1400233a0
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rsi
mov dword [rbx + 0xc], 0xffffffff
mov dword [rbx + 8], 0xffffffff
call qword [sym.imp.MSVCR90.dll_fseek]
mov rcx, rsi
call qword [sym.imp.MSVCR90.dll_ftell]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
movsxd rbp, eax
call qword [sym.imp.MSVCR90.dll_fseek]
test ebp, ebp
jg 0x140024094
cmp byte [rbx + 0x70], 0
jne 0x140024082
mov byte [rbx + 0x70], 1
mov dword [rbx + 0x74], 0xc
mov rdx, qword [str.Error_document_empty.]
lea rcx, [rbx + 0x78]
call qword [reloc.MSVCP90.dll___4__basic_string_DU__char_traits_D_std__V__allocator_D_2__std__QEAAAEAV01_PEBD_Z]
mov dword [rbx + 0xa8], 0xffffffff
mov dword [rbx + 0xa4], 0xffffffff
xor al, al
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
lea eax, [rbp + 1]
mov qword [rsp + 0x38], rdi
movsxd rcx, eax
call sub.mfc90u.dll_new__
mov r9, rsi
mov r8d, 1
mov rcx, rax
mov rdx, rbp
mov rdi, rax
mov byte [rax], 0
call qword [sym.imp.MSVCR90.dll_fread]
cmp rax, 1
je 0x140024107
mov rcx, rdi
call sub.mfc90u.dll_delete__
cmp byte [rbx + 0x70], 0
jne 0x140024103
mov byte [rbx + 0x70], 1
mov dword [rbx + 0x74], 2
mov rdx, qword [str.Failed_to_open_file]
lea rcx, [rbx + 0x78]
call qword [reloc.MSVCP90.dll___4__basic_string_DU__char_traits_D_std__V__allocator_D_2__std__QEAAAEAV01_PEBD_Z]
mov dword [rbx + 0xa8], 0xffffffff
mov dword [rbx + 0xa4], 0xffffffff
xor al, al
jmp 0x140024168
mov byte [rdi + rbp], 0
cmp byte [rdi], 0
mov rax, rdi
mov rcx, rdi
je 0x14002413e
movzx edx, byte [rax]
cmp dl, 0xd
jne 0x140024131
mov byte [rcx], 0xa
inc rax
inc rcx
cmp byte [rax], 0xa
jne 0x140024139
inc rax
jmp 0x140024139
mov byte [rcx], dl
inc rcx
inc rax
cmp byte [rax], 0
jne 0x140024116
mov byte [rcx], 0
mov rax, qword [rbx]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x10]
mov rcx, rdi
call sub.mfc90u.dll_delete__
xor r11d, r11d
cmp byte [rbx + 0x70], r11b
sete al
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
Function at 0x14002b09f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140054030]
jne 0x14002ab2a
rol rcx, 0x10
test cx, 0xffff
jne 0x14002ab26
repz ret
ror rcx, 0x10
jmp 0x14002aff8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140055910]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140055a08]
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 0x14002b07d
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, [0x140055910]
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 0x14002b09f
mov rax, qword [rsp + 0x88]
mov qword [0x140055a08], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400559a8], rax
mov rax, qword [0x140055a08]
mov qword [0x140055880], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140055990], rax
mov dword [0x140055870], 0xc0000409
mov dword [0x140055874], 1
mov rax, qword [0x140054030]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140054038]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140055908], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140032b40]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140055908], 0
jne 0x14002b126
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 0x140002890
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
movsxd rbx, edx
mov rsi, rcx
mov rdx, rbx
mov r9d, 0x40
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rbx
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call fcn.140064990
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8, rdi
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140003f00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140003f31
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x140003fab
mov rdi, r14
mov rcx, rbx
call fcn.140006070
test rax, rax
jle 0x140003f83
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140064990
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140003f9b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140003fa3
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140003f45
sub r14, rdi
jmp 0x14000408f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140003fc2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003fc4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003ff6
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140064990
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000408c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004031
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000406d
nop word [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140030950
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000408c
cmp rbp, rax
ja 0x140004040
test rbp, rbp
je 0x14000408c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140030950
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140015c80
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140015760
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140015cbf
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140067348]
jmp 0x140015cc9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x14003eb20
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret

Function at 0x1400418d0
Capabilities:
Get geographical location

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140040e90
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140041937
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x140067350]
jmp 0x140041959
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140041c60
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret
Function at 0x140043720
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140064060
sub rsp, rax
mov rax, qword [0x140086040]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140088a40]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140043912
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140043866
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140043866
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14004384b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1400437e8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400438d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140043931
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14004390d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140043931
jmp 0x1400437be
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.14000c3f0
add rsp, 0x1498
pop rdi
pop rsi
ret