joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180008880
Capabilities:
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r15, rdx
mov r14, rcx
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
xor r12d, r12d
mov ebx, r12d
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_GetMenuItemCount]
test eax, eax
jle 0x180008a84
nop dword [rax]
mov edx, ebx
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_GetMenuItemID]
movsxd rsi, eax
mov r9d, 0x400
lea r8, [rsp + 0x88]
mov edx, ebx
mov rcx, r15
call qword [sym.imp.mfc140u.dll_CDaoRecordset::GetIndexInfo]
lea rcx, [rsp + 0x90]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x20], rcx
mov r9d, esi
mov r8d, ebx
lea rdx, str._nLoad_i_d__ID_d____s__
lea rcx, [rsp + 0x90]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp esi, 0xffffffff
je 0x180008a62
test esi, esi
je 0x180008a4c
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x98]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__2]
mov rbp, rax
mov qword [rsp + 0x30], rax
mov rcx, qword [r14 + 8]
xor r9d, r9d
cmp esi, 0x800
je 0x180008a32
mov r8, rsi
mov edx, 0x100
call qword [sym.imp.USER32.dll_AppendMenuW]
call qword [sym.imp.mfc140u.dll_AfxFieldText]
mov edx, recv
xor ecx, ecx
call qword [sym.imp.mfc140u.dll_AfxCriticalNewHandler]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_LoadIconW]
mov r8, rax
mov edx, 0xffffffff
mov rcx, qword [r14 + 0x9b8]
call qword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
movsxd rcx, dword [r14 + 0x9d0]
lea rdx, [rcx + rcx*2]
mov dword [r14 + rdx*8 + 0x50], esi
movsxd rcx, dword [r14 + 0x9d0]
lea rdx, [rcx + rcx*2]
mov dword [r14 + rdx*8 + 0x54], eax
movsxd rax, dword [r14 + 0x9d0]
lea rcx, [rax + rax*2]
mov dword [r14 + rcx*8 + 0x58], r12d
movsxd rax, dword [r14 + 0x9d0]
add rax, 4
lea rax, [rax + rax*2]
lea rcx, [r14 + rax*8]
mov rdx, rbp
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
movsxd rax, dword [r14 + 0x9d0]
lea rcx, [rax + 5]
lea rcx, [rax + rcx*2]
lea rax, [r14 + rcx*8]
mov qword [rsp + 0x20], rax
mov r9, rsi
mov r8d, 0x100
mov edx, esi
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_ModifyMenuW]
inc dword [r14 + 0x9d0]
jmp 0x180008a41
xor r8d, r8d
mov edx, 0x900
call qword [sym.imp.USER32.dll_AppendMenuW]
nop
mov rcx, rbp
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
jmp 0x180008a62
xor r9d, r9d
xor r8d, r8d
mov edx, 0x900
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_AppendMenuW]
nop
lea rcx, [rsp + 0x90]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
inc ebx
mov rcx, qword [r15 + 8]
call qword [sym.imp.USER32.dll_GetMenuItemCount]
cmp ebx, eax
jl 0x1800088c0
lea rcx, [rsp + 0x88]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, 1
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140012990
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x1400129cd
lea rax, [rbx - 1]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x98], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.140012b2c
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140012acc
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.140012b2c
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jne 0x140012a40
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call fcn.140004650
mov esi, eax
cmp dword [rsp + 0x40], ebx
je 0x140012b0b
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x140012b0b
call fcn.1400119ec
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jne 0x140012af2
mov rcx, r14
call fcn.1400119ec
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
Function at 0x180024300
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180024328
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180024328
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x18002a2e0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
test edx, edx
je 0x18002a2fd
mov eax, 1
cmp edx, eax
jne 0x18002a352
mov qword [0x180075668], rcx
add rsp, 0x28
ret
cmp qword [0x180060a70], 0
je 0x18002a34d
cmp qword [0x180060a78], 8
mov qword [rsp + 0x20], rbx
lea rbx, [0x180060a60]
mov rcx, rbx
cmovae rcx, qword [0x180060a60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [0x180060a78], 8
cmovae rbx, qword [0x180060a60]
xor eax, eax
mov qword [0x180060a70], rax
mov word [rbx], ax
mov rbx, qword [rsp + 0x20]
mov eax, 1
add rsp, 0x28
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x14014bd99
Capabilities:
Encrypt data using rc4 prga

Disassembly:
pop r9
mov r9d, 0x16ac8185
movzx di, byte [r11 + r9*2 - 0x2d59030a]
mov r9b, byte [r11 + r9*4 - 0x5ab20612]
call fcn.1401439d0
mov r9, qword [rbx]
push 0xffffffff90aac811
mov eax, 0xe038d518
add rbx, 8
sub ax, 0xa491
and word [rsp + 6], ax
dec word [rsp + 5]
mov rbp, r9
movsx edi, al
mov rdi, rbx
mov edx, 0x2e00a500
bswap rdx
pop r9
jae 0x14016c640
mov eax, dword [rbp + r11 - 0x2d8b3a37]
xadd word [rsp + rbp - 0x2d8b3a34], bp
lea r11, [r11 + rbp*2 - 0x5b17ff50]
movzx ebp, word [r10 + rbp - 0x2d8bffaa]
add r10, 2
xor bp, bx
not byte [rsp + 6]
call fcn.14013e213
mov ecx, 0x441381a5
jmp 0x140157612
mov rcx, qword [rbx + rcx - 0x441381a5]
mov r10d, 0x653b5719
call fcn.14015a07d
Function at 0x140011384
Capabilities:
Terminate process

Disassembly:
jmp 0x140017c70
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001141f
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140014e60
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
mov rax, qword [0x140024040]
xor rax, rbp
mov qword [rbp + 0x418], rax
lea rcx, [0x14002a0f6]
call fcn.140011654
nop
mov dword [rbp + 4], 0
xor edx, edx
mov ecx, 2
call fcn.140011302
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
je 0x140014f0e
mov dword [rbp + 0x50], 0x238
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.1400113e8
test eax, eax
je 0x140014f0e
mov rdx, qword [rbp + 0x440]
lea rcx, [rbp + 0x7c]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x140014efd
mov eax, dword [rbp + 0x58]
mov dword [rbp + 4], eax
jmp 0x140014f0e
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.1400115a5
test eax, eax
jne 0x140014ee0
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001fc80]
call fcn.14001155f
mov eax, edi
mov rcx, qword [rbp + 0x418]
xor rcx, rbp
call fcn.14001131b
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret
Function at 0x14001148d
Capabilities:
Parse pe header

Disassembly:
jmp 0x140018fc0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140018fe0
xor al, al
jmp 0x140019061
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140018ff3
xor al, al
jmp 0x140019061
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001901d
xor al, al
jmp 0x140019061
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140019031
xor al, al
jmp 0x140019061
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140019043
xor al, al
jmp 0x140019061
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001905f
xor al, al
jmp 0x140019061
mov al, 1
add rsp, 0x38
ret
Function at 0x14001167c
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x140014d20
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x708
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x12a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x728]
mov rax, qword [0x140024040]
xor rax, rbp
mov qword [rbp + 0x6d8], rax
lea rcx, [0x14002a0f6]
call fcn.140011654
nop
mov qword [rbp + 8], 0
mov edx, dword [rbp + 0x700]
mov ecx, 0x18
call fcn.140011302
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
je 0x140014ddb
mov dword [rbp + 0x50], 0x438
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.140011410
test eax, eax
je 0x140014ddb
mov rdx, qword [rbp + 0x708]
lea rcx, [rbp + 0x80]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x140014dca
mov rax, qword [rbp + 0x68]
mov qword [rbp + 8], rax
jmp 0x140014ddb
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.1400110f5
test eax, eax
jne 0x140014da8
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001fd00]
call fcn.14001155f
mov rax, rdi
mov rcx, qword [rbp + 0x6d8]
xor rcx, rbp
call fcn.14001131b
lea rsp, [rbp + 0x6e8]
pop rdi
pop rbp
ret

Function at 0x140016dc0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001168b
movzx eax, al
test eax, eax
jne 0x140016de0
mov ecx, 7
call fcn.140011569
nop
mov byte [rsp + 0x20], 0
call fcn.1400115a0
mov byte [rsp + 0x21], al
cmp dword [0x140024b78], 1
jne 0x140016e04
mov ecx, 7
call fcn.140011569
nop
jmp 0x140016e5c
cmp dword [0x140024b78], 0
jne 0x140016e57
mov dword [0x140024b78], 1
lea rdx, [0x14001f660]
lea rcx, [0x14001f330]
call fcn.1400112fd
test eax, eax
je 0x140016e38
mov eax, 0xff
jmp 0x140016f61
lea rdx, [0x14001f220]
lea rcx, [section..rdata]
call fcn.140011582
mov dword [0x140024b78], 2
jmp 0x140016e5c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011555
call fcn.1400114ba
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140016eb9
mov rcx, qword [rsp + 0x30]
call fcn.140011285
movzx eax, al
test eax, eax
je 0x140016eb9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002b020]
nop
call fcn.1400114fb
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140016eed
mov rcx, qword [rsp + 0x38]
call fcn.140011285
movzx eax, al
test eax, eax
je 0x140016eed
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011627
nop
call fcn.140017010
mov dword [rsp + 0x28], eax
call fcn.14001148d
movzx eax, al
test eax, eax
jne 0x140016f0c
mov ecx, dword [rsp + 0x28]
call fcn.14001107d
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140016f1b
call fcn.140011640
nop
xor edx, edx
mov cl, 1
call fcn.140011258
mov eax, dword [rsp + 0x28]
jmp 0x140016f61
add rsp, 0x68
ret
Function at 0x1408dc380
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov r11d, 0x9e3779b9
cmp rdx, 3
jae 0x1408dc39c
mov eax, 0x9e3779b9
mov r10, rdx
jmp 0x1408dc438
mov r9d, 2
mov r10, rdx
mov eax, 0x9e3779b9
movzx ebx, byte [rcx]
add ebx, eax
movzx eax, byte [rcx + 1]
add eax, r11d
movzx edi, byte [rcx + 2]
add edi, r8d
sub ebx, eax
sub ebx, edi
mov esi, edi
shr esi, 0xd
xor esi, ebx
sub eax, edi
sub eax, esi
mov ebx, esi
shl ebx, 8
xor ebx, eax
sub edi, esi
sub edi, ebx
mov eax, ebx
shr eax, 0xd
xor eax, edi
sub esi, ebx
sub esi, eax
mov edi, eax
shr edi, 0xc
xor edi, esi
sub ebx, eax
sub ebx, edi
mov esi, edi
shl esi, 0x10
xor esi, ebx
sub eax, edi
sub eax, esi
mov ebx, esi
shr ebx, 5
xor ebx, eax
sub edi, esi
sub edi, ebx
mov eax, ebx
shr eax, 3
xor eax, edi
sub esi, ebx
sub esi, eax
mov r11d, eax
shl r11d, 0xa
xor r11d, esi
sub ebx, eax
sub ebx, r11d
mov r8d, r11d
shr r8d, 0xf
xor r8d, ebx
add rcx, 3
add r10, 0xfffffffffffffffd
cmp r10, r9
ja 0x1408dc3aa
add edx, r8d
cmp r10, 1
je 0x1408dc44e
cmp r10, 2
jne 0x1408dc453
movzx ebx, byte [rcx + 1]
add r11d, ebx
movzx ecx, byte [rcx]
add eax, ecx
sub eax, edx
sub eax, r11d
mov ecx, edx
shr ecx, 0xd
xor ecx, eax
sub r11d, edx
sub r11d, ecx
mov eax, ecx
shl eax, 8
xor eax, r11d
sub edx, ecx
sub edx, eax
mov ebx, eax
shr ebx, 0xd
xor ebx, edx
sub ecx, eax
sub ecx, ebx
mov edx, ebx
shr edx, 0xc
xor edx, ecx
sub eax, ebx
sub eax, edx
mov edi, edx
shl edi, 0x10
xor edi, eax
sub ebx, edx
sub ebx, edi
mov ecx, edi
shr ecx, 5
xor ecx, ebx
sub edx, edi
sub edx, ecx
mov eax, ecx
shr eax, 3
xor eax, edx
sub edi, ecx
sub edi, eax
sub ecx, eax
shl eax, 0xa
xor eax, edi
sub ecx, eax
shr eax, 0xf
xor eax, ecx
pop rbx
pop rdi
pop rsi
ret

Function at 0x1408dc720
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x128
mov rsi, rcx
lea rcx, [0x140d38898]
lea rdx, [0x140cff323]
call fcn.1408dc500
test eax, eax
jne 0x1408dc7af
lea rcx, [rsp + 0x20]
mov edx, 0x104
call sub.KERNEL32.dll_GetSystemDirectoryA
test eax, eax
jne 0x1408dc75a
xor eax, eax
jmp 0x1408dc7a4
mov edi, eax
mov rcx, rsi
call fcn.1408cafb0
lea ecx, [rdi + 1]
add rcx, rax
add rcx, 1
cmp rcx, 0x104
ja 0x1408dc756
inc rax
mov ecx, edi
add rcx, rsp
add rcx, 0x21
mov byte [rcx - 1], 0x5c
mov rdx, rsi
mov r8, rax
call fcn.1408daa80
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 8
call sub.KERNEL32.dll_LoadLibraryExA
nop
add rsp, 0x128
pop rdi
pop rsi
ret
mov rcx, rsi
xor edx, edx
mov r8d, 0x800
add rsp, 0x128
pop rdi
pop rsi
jmp sub.KERNEL32.dll_LoadLibraryExA
Function at 0x14091ad20
Capabilities:
Print debug messages
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
call sub.KERNEL32.dll_OutputDebugStringA
lea rcx, [0x140d010cc]
call fcn.1408dc720
test rax, rax
je 0x14091adfa
mov rdi, rax
lea rdx, [0x140d010d9]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
mov rbx, rax
lea rdx, [0x140d010ee]
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
mov r15, rax
lea rdx, [0x140d010fb]
mov rcx, rdi
call sub.KERNEL32.dll_GetProcAddress
test rbx, rbx
je 0x14091adf2
test r15, r15
je 0x14091adf2
mov r14, rax
test rax, rax
je 0x14091adf2
lea rax, [0x140d01111]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rsi
lea rdx, [0x140d0111f]
xor ecx, ecx
call rbx
test rax, rax
je 0x14091adf2
mov rbx, rax
xor eax, eax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 2
mov rcx, rbx
mov dx, 1
xor r8d, r8d
mov r9d, 0xc0070003
call r15
mov rcx, rbx
call r14
mov rcx, rdi
call sub.KERNEL32.dll_FreeLibrary
lea rcx, [0x140d01127]
call fcn.1408dc720
test rax, rax
je 0x14091ae3e
mov rdi, rax
lea rdx, [0x140d01132]
mov rcx, rax
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x14091ae36
lea r8, [0x140d0113e]
xor ecx, ecx
mov rdx, rsi
mov r9d, 0x10
call rax
mov rcx, rdi
call sub.KERNEL32.dll_FreeLibrary
call sub.KERNEL32.dll_GetCurrentProcess
mov rcx, rax
mov edx, 1
call sub.KERNEL32.dll_TerminateProcess
nop
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140a170f0
Capabilities:
Create directory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x848
mov rsi, rcx
lea rdi, [rsp + 0x38]
mov qword [rdi], rcx
lea rax, [rsp + 0x40]
lea rbx, [rsp + 0x30]
mov qword [rbx], rax
lea r14, [rsp + 0x840]
call fcn.1408cafb0
lea rdx, [rsi + rax]
add rdx, 1
mov dword [rsp + 0x20], 0
mov rcx, rdi
mov r8, rbx
mov r9, r14
call fcn.1408dace0
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
jne 0x140a1715b
lea rcx, [rsp + 0x40]
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
cmp eax, 1
sbb eax, eax
add rsp, 0x848
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140a17ef0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
call fcn.140b31c80
lea rbx, [rsp + 0x2c]
mov dword [rbx], 0xffffffff
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rdi
mov r8d, esi
mov r9, rbx
call sub.KERNEL32.dll_WriteFile
mov edx, dword [rbx]
xor ecx, ecx
cmp eax, 1
sbb rcx, rcx
or rcx, rdx
mov rax, rcx
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

Function at 0x140a45fa0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov eax, 0xfffffffb
test rcx, rcx
je 0x140a46118
mov r13, rdx
test rdx, rdx
je 0x140a46118
cmp byte [r13], 1
je 0x140a46118
mov rsi, r8
xor eax, eax
test r8, r8
je 0x140a46118
mov r14d, r9d
test r9d, r9d
jle 0x140a46118
mov rbx, rcx
mov rbp, qword [rsp + 0xa0]
mov edi, r14d
shr edi, 4
mov cl, byte [rcx + 0x14]
cmp cl, 2
je 0x140a4607f
mov eax, 0xfffffffb
cmp cl, 1
jne 0x140a46118
test edi, edi
je 0x140a4603c
lea rbx, [r13 + 0x54]
mov r9d, dword [r13 + 0x4c]
mov rcx, rsi
mov rdx, rbp
mov r8, rbx
call fcn.140b61080
add rsi, 0x10
add rbp, 0x10
dec edi
jg 0x140a4601e
mov r8d, r14d
and r8d, 0xf
mov ebx, 0x10
sub ebx, r8d
lea r15, [rsp + 0x20]
mov rcx, r15
mov rdx, rsi
call fcn.140c9b590
mov rcx, r15
sub rcx, rbx
add rcx, 0x10
mov edx, ebx
mov r8, rbx
call fcn.140c9b9f0
mov r9d, dword [r13 + 0x4c]
add r13, 0x54
mov rcx, r15
jmp 0x140a46102
test edi, edi
je 0x140a460c1
lea r15, [r13 + 0x54]
lea r12, [rsp + 0x20]
mov rax, rbx
mov rbx, rbp
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rax]
xorps xmm1, xmm0
movaps xmmword [rsp + 0x20], xmm1
mov r9d, dword [r13 + 0x4c]
mov rcx, r12
mov rdx, rbp
mov r8, r15
call fcn.140b61080
add rsi, 0x10
lea rbp, [rbp + 0x10]
mov rax, rbx
dec edi
jg 0x140a4608f
mov eax, r14d
and eax, 0xf
je 0x140a460df
mov edi, eax
xor edx, edx
mov cl, byte [rbx + rdx]
xor cl, byte [rsi + rdx]
mov byte [rsp + rdx + 0x20], cl
inc rdx
cmp rdx, rdi
jne 0x140a460cd
mov cl, 0x10
sub cl, al
mov dl, byte [rbx + rax]
xor dl, cl
mov byte [rsp + rax + 0x20], dl
inc rax
cmp rax, 0x10
jne 0x140a460e3
mov r9d, dword [r13 + 0x4c]
add r13, 0x54
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov r8, r13
call fcn.140b61080
add r14d, 0x10
and r14d, 0xfffffff0
mov eax, r14d
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140a460c4
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov eax, 0xfffffffb
test rcx, rcx
je 0x140a46118
mov r13, rdx
test rdx, rdx
je 0x140a46118
cmp byte [r13], 1
je 0x140a46118
mov rsi, r8
xor eax, eax
test r8, r8
je 0x140a46118
mov r14d, r9d
test r9d, r9d
jle 0x140a46118
mov rbx, rcx
mov rbp, qword [rsp + 0xa0]
mov edi, r14d
shr edi, 4
mov cl, byte [rcx + 0x14]
cmp cl, 2
je 0x140a4607f
mov eax, 0xfffffffb
cmp cl, 1
jne 0x140a46118
test edi, edi
je 0x140a4603c
lea rbx, [r13 + 0x54]
mov r9d, dword [r13 + 0x4c]
mov rcx, rsi
mov rdx, rbp
mov r8, rbx
call fcn.140b61080
add rsi, 0x10
add rbp, 0x10
dec edi
jg 0x140a4601e
mov r8d, r14d
and r8d, 0xf
mov ebx, 0x10
sub ebx, r8d
lea r15, [rsp + 0x20]
mov rcx, r15
mov rdx, rsi
call fcn.140c9b590
mov rcx, r15
sub rcx, rbx
add rcx, 0x10
mov edx, ebx
mov r8, rbx
call fcn.140c9b9f0
mov r9d, dword [r13 + 0x4c]
add r13, 0x54
mov rcx, r15
jmp 0x140a46102
test edi, edi
je 0x140a460c1
lea r15, [r13 + 0x54]
lea r12, [rsp + 0x20]
mov rax, rbx
mov rbx, rbp
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rax]
xorps xmm1, xmm0
movaps xmmword [rsp + 0x20], xmm1
mov r9d, dword [r13 + 0x4c]
mov rcx, r12
mov rdx, rbp
mov r8, r15
call fcn.140b61080
add rsi, 0x10
lea rbp, [rbp + 0x10]
mov rax, rbx
dec edi
jg 0x140a4608f
mov eax, r14d
and eax, 0xf
je 0x140a460df
mov edi, eax
xor edx, edx
mov cl, byte [rbx + rdx]
xor cl, byte [rsi + rdx]
mov byte [rsp + rdx + 0x20], cl
inc rdx
cmp rdx, rdi
jne 0x140a460cd
mov cl, 0x10
sub cl, al
mov dl, byte [rbx + rax]
xor dl, cl
mov byte [rsp + rax + 0x20], dl
inc rax
cmp rax, 0x10
jne 0x140a460e3
mov r9d, dword [r13 + 0x4c]
add r13, 0x54
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov r8, r13
call fcn.140b61080
add r14d, 0x10
and r14d, 0xfffffff0
mov eax, r14d
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140a4d550
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
mov ecx, dword [0x140d158b4]
cmp ecx, 0xffffffff
jne 0x140a4d56f
call sub.KERNEL32.dll_TlsAlloc
mov ecx, eax
mov dword [0x140d158b4], eax
movsxd rdx, esi
add rsp, 0x20
pop rsi
jmp sub.KERNEL32.dll_TlsSetValue