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

Disassembly:
push 0xffffffffda8e671c
lea rsp, [rsp + 0x38]
je 0x1406eccb8
push r9
mov edx, 0xf10fc23f
lea rdx, [0x1406ee578]
mov r9d, 0x29bdeba6
movzx r9d, byte [r8 + r9 - 0x29bdeba6]
xor r9d, r11d
and r9d, 0xff
push 0xa2d64a3
mov r9d, dword [rdx + r9*4]
push 0x19967714
dec qword [rsp + 4]
neg byte [rsp + 0xc]
shr r11d, 8
dec dword [rsp + 0xc]
inc dword [rsp + 9]
push 0x2f958715
xor r11d, r9d
inc r8
xor r11d, 0x2321d42e
ror word [rsp + 0xf], 0x81
sal byte [rsp + 4], 0xa1
dec r10
lea rsp, [rsp + 0x18]
jne 0x1406ecc3d
push 0xffffffffa8334c18
mov r9d, dword [rsp + 2]
mov r9, qword [rsp + 8]
lea rsp, [rsp + 0x10]
jmp 0x140711fab
call fcn.1406dd85f
xor r11d, r11d
push 0x68869303
test r10, r10
jmp 0x1406ecc1f
jmp 0x140700258
Function at 0x1400411f9
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
jmp 0x14008cc90
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x218
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x238]
mov rax, qword [0x1400f8040]
xor rax, rbp
mov qword [rbp + 0x1e0], rax
lea rcx, [0x14010b64e]
call fcn.1400432f1
nop
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, VariantTimeToDosDateTime
call fcn.1400429b4
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0xc0000004
jne 0x14008cd5d
cmp qword [rbp + 8], 0
je 0x14008cd25
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov eax, dword [rbp + 0x24]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 8]
mov ecx, VariantTimeToDosDateTime
call fcn.1400429b4
mov dword [rbp + 0x44], eax
jmp 0x14008cd02
cmp dword [rbp + 0x44], 0
jge 0x14008cd84
cmp qword [rbp + 8], 0
je 0x14008cd7d
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
xor eax, eax
jmp 0x14008ceb7
mov rax, qword [rbp + 8]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x14008cd9a
xor eax, eax
jmp 0x14008ceb7
mov dword [rbp + 0x84], 0
jmp 0x14008cdb4
mov eax, dword [rbp + 0x84]
inc eax
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
cmp dword [rbp + 0x84], eax
jae 0x14008cea2
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x128
mov rcx, qword [rbp + 0x68]
lea rax, [rcx + rax + 8]
mov ecx, dword [rbp + 0x84]
imul rcx, rcx, 0x128
mov rdx, qword [rbp + 0x68]
movzx ecx, word [rdx + rcx + 0x2e]
lea rax, [rax + rcx + 0x28]
mov rdx, rax
lea rcx, [rbp + 0xa8]
call fcn.140041f82
nop
mov rcx, qword [rbp + 0x210]
call fcn.1400412e4
mov qword [rbp + 0x1d8], rax
lea rcx, [rbp + 0xa8]
call fcn.1400412e4
mov rcx, qword [rbp + 0x1d8]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.ucrtbased.dll__stricmp]
test eax, eax
jne 0x14008ce90
mov eax, dword [rbp + 0x84]
imul rax, rax, 0x128
mov rcx, qword [rbp + 0x68]
mov rax, qword [rcx + rax + 0x18]
mov qword [rbp + 0xe8], rax
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x1c8], rax
lea rcx, [rbp + 0xa8]
call fcn.140041636
mov rax, qword [rbp + 0x1c8]
jmp 0x14008ceb7
lea rcx, [rbp + 0xa8]
call fcn.140041636
nop
jmp 0x14008cda6
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140042cd4
mov rax, rdi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rbp
call fcn.140042095
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret
Function at 0x14004130c
Capabilities:
Write file on windows

Disassembly:
jmp 0x140080110
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14010b129]
call fcn.1400432f1
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140080168
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14008027a
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x140080213
cmp qword [rbp + 0x28], 0
jle 0x140080213
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x1400801b1
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.14004308f
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x140080269
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140080269
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400416c2
Capabilities:
Create thread

Disassembly:
jmp 0x140096c10
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x1400f8040]
xor rax, rbp
mov qword [rbp + 0x120], rax
lea rcx, [0x14010b782]
call fcn.1400432f1
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.140041a19
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x108]
call fcn.140042117
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.140041744
nop
lea rcx, [rbp + 0x108]
call fcn.140041e1f
nop
lea rax, [0x1400426cb]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x150]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.14004277a
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x150]
mov qword [rcx], rax
mov rax, qword [rbp + 0x150]
cmp qword [rax], 0
je 0x140096d13
lea rcx, [rbp + 8]
call fcn.140041eb5
nop
jmp 0x140096d2c
mov rax, qword [rbp + 0x150]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.14004179e
nop
lea rcx, [rbp + 8]
call fcn.140041e1f
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x1400e26a0]
call fcn.140042cd4
mov rcx, qword [rbp + 0x120]
xor rcx, rbp
call fcn.140042095
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x14004195b
Capabilities:
Get common file path

Disassembly:
jmp 0x14008cad0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x438
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x458]
mov rax, qword [0x1400f8040]
xor rax, rbp
mov qword [rbp + 0x408], rax
mov dword [rbp + 0x3f4], 0
lea rcx, [0x14010b64e]
call fcn.1400432f1
nop
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rdx, [rbp + 0x10]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [rbp + 0x234], eax
cmp dword [rbp + 0x234], 0
je 0x14008cb5e
cmp dword [rbp + 0x234], 0x105
jbe 0x14008cb89
lea rdx, [0x1400dc2a0]
mov rcx, qword [rbp + 0x430]
call fcn.140041b31
mov eax, dword [rbp + 0x3f4]
or eax, 1
mov dword [rbp + 0x3f4], eax
mov rax, qword [rbp + 0x430]
jmp 0x14008cbfc
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcslen]
movzx eax, word [rbp + rax*2 + 0xe]
cmp eax, 0x5c
jne 0x14008cbd6
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll_wcslen]
lea rax, [rax + rax - 2]
mov qword [rbp + 0x3d8], rax
cmp qword [rbp + 0x3d8], 0x20a
jae 0x14008cbc2
jmp 0x14008cbc8
call fcn.1400428fb
nop
xor eax, eax
mov rcx, qword [rbp + 0x3d8]
mov word [rbp + rcx + 0x10], ax
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x430]
call fcn.140041b31
mov eax, dword [rbp + 0x3f4]
or eax, 1
mov dword [rbp + 0x3f4], eax
mov rax, qword [rbp + 0x430]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400df750]
call fcn.140042cd4
mov rax, rdi
mov rcx, qword [rbp + 0x408]
xor rcx, rbp
call fcn.140042095
lea rsp, [rbp + 0x418]
pop rdi
pop rbp
ret
Function at 0x14004232e
Capabilities:
Terminate process

Disassembly:
jmp 0x1400b8900
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 0x14004236f
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x14008c950
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x14010b64e]
call fcn.1400432f1
nop
mov rcx, qword [rbp + 0x180]
call fcn.140041f5a
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x188]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x188]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x28]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x48], rax
mov dword [rbp + 0x64], 0
jmp 0x14008c9cc
mov eax, dword [rbp + 0x64]
inc eax
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax + 6]
cmp dword [rbp + 0x64], eax
jae 0x14008ca74
mov eax, dword [rbp + 0x64]
imul rax, rax, 0x28
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov r8, qword [rbp + 8]
mov rdx, qword [rbp + 0x180]
mov rcx, rax
call fcn.140041c9e
test eax, eax
jne 0x14008ca6f
mov rax, qword [rbp + 0x88]
mov rcx, rax
call fcn.140041f5a
cmp qword [rbp + 8], rax
jne 0x14008ca6f
mov rax, qword [rbp + 0x88]
cmp dword [rax + 0xc], 0
jne 0x14008ca39
xor eax, eax
jmp 0x14008ca76
cmp qword [rbp + 0x190], 0
je 0x14008ca56
mov rax, qword [rbp + 0x190]
mov rcx, qword [rbp + 0x88]
mov ecx, dword [rcx + 8]
mov dword [rax], ecx
mov rax, qword [rbp + 0x88]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0x188]
add rcx, rax
mov rax, rcx
jmp 0x14008ca76
jmp 0x14008c9c4
xor eax, eax
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x140042554
Capabilities:
Delete registry key

Disassembly:
jmp 0x14008aa50
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2d8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x7e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2f8]
mov rax, qword [0x1400f8040]
xor rax, rbp
mov qword [rbp + 0x2a8], rax
lea rcx, [0x14010b513]
call fcn.1400432f1
nop
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14008aab9
xor al, al
jmp 0x14008ac8b
mov r8, qword [rbp + 0x2d0]
lea rdx, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp + 0x28]
call fcn.1400435a3
nop
lea rcx, [rbp + 0x28]
call fcn.140041b5e
mov rdx, rax
lea rcx, [rbp + 0x68]
call fcn.140043170
nop
mov r8, qword [rbp + 0x2d0]
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp + 0xb8]
call fcn.1400435a3
nop
lea rcx, [rbp + 0xb8]
call fcn.140041b5e
lea r8, [rbp + 0x98]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rbp + 0xf4], eax
cmp dword [rbp + 0xf4], 0
je 0x14008ab8f
cmp dword [rbp + 0xf4], 2
jne 0x14008ab66
mov byte [rbp + 0x214], 1
lea rcx, [rbp + 0xb8]
call fcn.140042da6
nop
lea rcx, [rbp + 0x28]
call fcn.140042da6
movzx eax, byte [rbp + 0x214]
jmp 0x14008ac8b
mov byte [rbp + 0x234], 0
lea rcx, [rbp + 0xb8]
call fcn.140042da6
nop
lea rcx, [rbp + 0x28]
call fcn.140042da6
movzx eax, byte [rbp + 0x234]
jmp 0x14008ac8b
mov rcx, qword [rbp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, str.NtUnloadDriver
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 0x68]
call qword [rbp + 0x118]
mov dword [rbp + 0x134], eax
cmp dword [rbp + 0x134], 0
je 0x14008ac16
lea rcx, [rbp + 0xb8]
call fcn.140041b5e
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rbp + 0xf4], eax
mov byte [rbp + 0x254], 0
lea rcx, [rbp + 0xb8]
call fcn.140042da6
nop
lea rcx, [rbp + 0x28]
call fcn.140042da6
movzx eax, byte [rbp + 0x254]
jmp 0x14008ac8b
lea rcx, [rbp + 0xb8]
call fcn.140041b5e
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov dword [rbp + 0xf4], eax
cmp dword [rbp + 0xf4], 0
je 0x14008ac67
mov byte [rbp + 0x274], 0
lea rcx, [rbp + 0xb8]
call fcn.140042da6
nop
lea rcx, [rbp + 0x28]
call fcn.140042da6
movzx eax, byte [rbp + 0x274]
jmp 0x14008ac8b
mov byte [rbp + 0x294], 1
lea rcx, [rbp + 0xb8]
call fcn.140042da6
nop
lea rcx, [rbp + 0x28]
call fcn.140042da6
movzx eax, byte [rbp + 0x294]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400df540]
call fcn.140042cd4
mov rax, rdi
mov rcx, qword [rbp + 0x2a8]
xor rcx, rbp
call fcn.140042095
lea rsp, [rbp + 0x2b8]
pop rdi
pop rbp
ret
Function at 0x140042810
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400ba3f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400ba410
xor al, al
jmp 0x1400ba491
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400ba423
xor al, al
jmp 0x1400ba491
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 0x1400ba44d
xor al, al
jmp 0x1400ba491
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400ba461
xor al, al
jmp 0x1400ba491
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400ba473
xor al, al
jmp 0x1400ba491
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400ba48f
xor al, al
jmp 0x1400ba491
mov al, 1
add rsp, 0x38
ret
Function at 0x140042eb9
Capabilities:
Parse pe header

Disassembly:
jmp 0x140088170
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14010b3b7]
call fcn.1400432f1
nop
mov rax, qword [rbp + 0x120]
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400881ad
xor eax, eax
jmp 0x1400881da
mov rax, qword [rbp + 8]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0x4550
je 0x1400881d6
xor eax, eax
jmp 0x1400881da
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140043247
Capabilities:
Write file on windows

Disassembly:
jmp 0x14007b4f0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x1400f8040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14010b129]
call fcn.1400432f1
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14007b557
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14007b55e
mov al, 1
jmp 0x14007b6ae
call fcn.140041979
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.140041979
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.140042b6c
movzx eax, al
test eax, eax
je 0x14007b5af
xor al, al
jmp 0x14007b6ae
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14007b614
cmp dword [rbp + 0x154], 1
je 0x14007b61f
cmp dword [rbp + 0x154], 3
je 0x14007b69d
jmp 0x14007b6ac
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14007b66f
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14007b66f
xor al, al
jmp 0x14007b6ae
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14007b68a
mov dword [rbp + 0x154], 1
jmp 0x14007b694
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14007b6ae
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14007b6ae
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140042cd4
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.140042095
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x1400433e1
Capabilities:
Print debug messages

Disassembly:
jmp 0x1400b6ed0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edx, edx
mov rdi, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140042a1d
and qword [rdi + 0x50], 0
lea rax, [0x140000000]
and dword [rdi + 0x58], 0
lea rcx, [rdi + 0x28]
and dword [rdi + 0x5c], 0
xor r8d, r8d
mov qword [rdi + 0x10], rax
xor edx, edx
mov qword [rdi + 8], rax
lea rax, [0x1400e49f0]
mov qword [rdi + 0x20], rax
mov dword [rdi], 0x60
mov dword [rdi + 0x18], 0xe00
call fcn.140042022
test eax, eax
jne 0x1400b6f67
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x1400b6f67
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400b6f60
lea rcx, str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x1400fb410], 1
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x1400b9210
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140043427
movzx eax, al
test eax, eax
jne 0x1400b9230
mov ecx, 7
call fcn.140042d01
nop
mov byte [rsp + 0x20], 0
call fcn.140042da1
mov byte [rsp + 0x21], al
cmp dword [0x1400fb748], 1
jne 0x1400b9254
mov ecx, 7
call fcn.140042d01
nop
jmp 0x1400b92ac
cmp dword [0x1400fb748], 0
jne 0x1400b92a7
mov dword [0x1400fb748], 1
lea rdx, [0x1400cdab0]
lea rcx, [0x1400cd780]
call fcn.14004202c
test eax, eax
je 0x1400b9288
mov eax, 0xff
jmp 0x1400b93b1
lea rdx, [0x1400cd670]
lea rcx, [section..rdata]
call fcn.140042d65
mov dword [0x1400fb748], 2
jmp 0x1400b92ac
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140042c9d
call fcn.1400428d8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400b9309
mov rcx, qword [rsp + 0x30]
call fcn.140041d07
movzx eax, al
test eax, eax
je 0x1400b9309
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 [0x14010d020]
nop
call fcn.140042a81
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400b933d
mov rcx, qword [rsp + 0x38]
call fcn.140041d07
movzx eax, al
test eax, eax
je 0x1400b933d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400431a7
nop
call fcn.1400b9420
mov dword [rsp + 0x28], eax
call fcn.140042810
movzx eax, al
test eax, eax
jne 0x1400b935c
mov ecx, dword [rsp + 0x28]
call fcn.140041258
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400b936b
call fcn.140043210
nop
xor edx, edx
mov cl, 1
call fcn.140041c3f
mov eax, dword [rsp + 0x28]
jmp 0x1400b93b1
add rsp, 0x68
ret
Function at 0x140006d70
Capabilities:
Parse pe header

Disassembly:
test rcx, rcx
je 0x140006da0
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x140006d9f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140006da5
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x140006d9f
mov eax, 0
jmp 0x140006d9f

Function at 0x140007420
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400073d0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400115f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409c1990]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14001165f
mov rcx, r9
call fcn.1400114c0
test eax, eax
je 0x14001165f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x14001165d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140011654
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14001165f
add rdx, 0x28
cmp rdx, r9
jne 0x140011640
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x180002220
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx eax, byte [rcx + 0x38]
movzx esi, byte [rcx + 0x3b]
mov rbx, rcx
add esi, eax
mov rax, qword [rcx + 0x28]
cmp esi, 8
ja 0x18000224a
movzx edi, byte [rax]
jmp 0x180002260
cmp esi, 0x10
ja 0x180002254
movzx edi, word [rax]
jmp 0x180002260
movzx edi, byte [rax + 2]
movzx eax, word [rax]
shl edi, 0x10
or edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
je 0x180002274
mov eax, esi
shr rax, 3
add qword [rbx + 0x28], rax
movzx eax, sil
and al, 7
mov byte [rbx + 0x38], al
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, 0x20
test eax, eax
je 0x180002294
mov ecx, r8d
sub ecx, esi
shl edi, cl
movzx edx, byte [rbx + 0x3b]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
sub r8d, edx
movzx ecx, r8b
shr edi, cl
mov ax, di
add rsp, 0x20
pop rdi
ret