joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019d20
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x14003f080]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x101
lea rcx, [rsp + 0x30]
call qword [sym.imp.advapi32.dll_GetUserNameW]
test eax, eax
jne 0x140019d72
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001a220
add rsp, 0x250
pop rbx
ret
mov ecx, 0x18
call fcn.14001a150
mov rbx, rax
test rax, rax
je 0x140019dba
and qword [rax + 8], 0
lea rcx, [rsp + 0x30]
mov dword [rax + 0x10], 1
call qword [sym.imp.oleaut32.dll_SysAllocString]
mov qword [rbx], rax
test rax, rax
je 0x140019dba
mov qword [rsp + 0x28], rbx
lea rcx, [rsp + 0x28]
mov rbx, rax
call fcn.140019890
mov rax, rbx
jmp 0x140019d59
mov ecx, 0x8007000e
call fcn.14001ae30
int3

Function at 0x14001a6f8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001a742
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001a742
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001a742
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001a742
cmp dword [rcx + 0x84], 0xe
jbe 0x14001a742
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001a744
xor al, al
add rsp, 0x28
ret

Function at 0x14002169c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002148c
Function at 0x140024780
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400247b0
xor eax, eax
jmp 0x140024873
mov rbp, rbx
cmp word [rax], si
je 0x1400247d5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400247bc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400247b8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400246d0
movsxd r14, eax
test eax, eax
jne 0x140024813
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400247a9
mov rcx, r14
call fcn.140025634
mov rdi, rax
test rax, rax
jne 0x14002482c
xor ecx, ecx
call fcn.140022d60
jmp 0x140024808
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400246d0
test eax, eax
jne 0x14002485d
mov rcx, rdi
call fcn.140022d60
jmp 0x140024867
xor ecx, ecx
call fcn.140022d60
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140027cbc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400237d4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140027d46
cmp byte [rbp - 0x21], r15b
je 0x140027d41
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140027d7c
call fcn.140025e54
test eax, eax
jne 0x140027d68
cmp byte [rbp - 0x21], r15b
je 0x140027d60
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140027d7c
cmp byte [rbp - 0x21], r15b
je 0x140027d79
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140022db0
test eax, eax
jne 0x140027e1c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400237d4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140027dbb
cmp byte [rbp - 0x21], r15b
je 0x140027df0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140027df0
call fcn.140025e54
test eax, eax
jne 0x140027ddc
cmp byte [rbp - 0x21], r15b
je 0x140027dd5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140027df0
cmp byte [rbp - 0x21], r15b
je 0x140027ded
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140022db0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140027e1c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140027e1f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140027e2d
mov rcx, rdi
call fcn.140022d60
cmp byte [rbp + 0x3f], r15b
je 0x140027e3c
mov rcx, qword [rbp + 0x27]
call fcn.140022d60
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14002ad10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ad38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ad38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400110ff
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001d970
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, [0x14003f0fa]
call fcn.1400118ed
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001d9c7
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 0x14001dad3
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 0x14001da6c
cmp qword [rbp + 0x28], 0
jle 0x14001da6c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001da0c
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.140011870
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]
cmp qword [rbp + 0x130], 0
jle 0x14001dac2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001dac2
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 0x14001151e
Capabilities:
Terminate process

Disassembly:
jmp 0x1400218b0
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]
add rsp, 0x28
ret
Function at 0x140011654
Capabilities:
Parse pe header

Disassembly:
jmp 0x140020c70
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140020c90
xor al, al
jmp 0x140020d11
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140020ca3
xor al, al
jmp 0x140020d11
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 0x140020ccd
xor al, al
jmp 0x140020d11
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140020ce1
xor al, al
jmp 0x140020d11
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140020cf3
xor al, al
jmp 0x140020d11
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140020d0f
xor al, al
jmp 0x140020d11
mov al, 1
add rsp, 0x38
ret
Function at 0x1400118d4
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400187a0
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 [0x140037040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14003f0fa]
call fcn.1400118ed
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x140018806
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001880d
mov al, 1
jmp 0x14001895d
call fcn.140011294
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.140011294
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.14001172b
movzx eax, al
test eax, eax
je 0x14001885e
xor al, al
jmp 0x14001895d
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 0x1400188c3
cmp dword [rbp + 0x154], 1
je 0x1400188ce
cmp dword [rbp + 0x154], 3
je 0x14001894c
jmp 0x14001895b
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 0x14001891e
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 0x14001891e
xor al, al
jmp 0x14001895d
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140018939
mov dword [rbp + 0x154], 1
jmp 0x140018943
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001895d
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001895d
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002ad90]
call fcn.14001177b
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.14001146a
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x1400c0c40
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140126bf0], rbx
je 0x1400c0c8c
cmp rax, rbx
jne 0x1400c0c7f
mov ebx, 1
mov esi, ebx
jmp 0x1400c0c91
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400c0c64
mov ebx, 1
mov eax, dword [0x140126bf8]
cmp eax, ebx
jne 0x1400c0ca7
mov ecx, 0x1f
call fcn.1401be000
jmp 0x1400c0d0c
mov eax, dword [0x140126bf8]
test eax, eax
jne 0x1400c0d06
mov dword [0x140126bf8], ebx
lea r15, [0x1400d4960]
lea rdi, [0x1400d4948]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400c0cf8
test eax, eax
jne 0x1400c0cfc
cmp qword [rdi], 0
je 0x1400c0ced
mov rax, qword [rdi]
mov rcx, qword [0x1400d4338]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400c0cce
test eax, eax
je 0x1400c0d0c
mov eax, 0xff
jmp 0x1400c0de8
mov dword [0x140125758], ebx
mov eax, dword [0x140126bf8]
cmp eax, ebx
jne 0x1400c0d33
lea rdx, [0x1400d4940]
lea rcx, [0x1400d4340]
call sub.msvcrt.dll__initterm
mov dword [0x140126bf8], 2
test esi, esi
jne 0x1400c0d40
xor eax, eax
xchg qword [0x140126bf0], rax
cmp qword [0x140126c10], 0
je 0x1400c0d74
lea rcx, [0x140126c10]
call fcn.1400c1410
test eax, eax
je 0x1400c0d74
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140126c10]
mov r9, qword [0x1400d4338]
call r9
mov r8, qword [0x140125770]
mov rdx, qword [0x140125768]
mov ecx, dword [0x140125760]
call fcn.14000449c
mov dword [0x140125754], eax
cmp dword [0x140125778], 0
jne 0x1400c0da4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140125758], 0
jne 0x1400c0db9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140125754]
jmp 0x1400c0de8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400c14a4
add rsp, 0x28
jmp 0x1400c0c40

Function at 0x1400c130c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400c1358
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400c1350
cmp dword [rcx + 0x3c], edx
jl 0x1400c1350
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400c1350
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400c1358
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14075c0b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14075c237
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 0x14075c0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14075c0c7
add dl, dl
jne 0x14075c0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14075c14e
xor eax, eax
add dl, dl
jne 0x14075c0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14075c205
add dl, dl
jne 0x14075c10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14075c11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14075c128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14075c135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14075c142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14075c0d6
mov eax, 1
add dl, dl
jne 0x14075c15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14075c16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14075c153
sub eax, ebx
mov ebx, 1
jne 0x14075c1a4
mov ecx, 1
add dl, dl
jne 0x14075c186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14075c193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14075c17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14075c0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14075c1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14075c1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14075c1b5
cmp eax, 0x7d00
jae 0x14075c1f3
cmp eax, 0x500
jb 0x14075c1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14075c0d6
cmp eax, 0x7f
ja 0x14075c1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14075c0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14075c22a
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 0x14075c0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x4017f8
Capabilities:
Create thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x004054b0]
movsxd rcx, dword [rbx + 4]
call sub.msvcrt.dll_malloc
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, rax
mov ecx, 0x400
call rsi
mov edx, dword [rbx + 4]
mov rcx, r12
call fcn.00401704
test eax, eax
je 0x4017c8
mov edx, dword [rbx + 4]
lea r8, [rbx + 8]
mov rcx, r12
call fcn.00401595
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov r9d, 0x5c
div ecx
mov dword [rsp + 0x50], 0x5c
mov dword [rsp + 0x48], 0x65
mov dword [rsp + 0x40], 0x70
mov dword [rsp + 0x38], 0x69
mov dword [rsp + 0x30], 0x70
mov dword [rsp + 0x28], 0x5c
mov dword [rsp + 0x20], 0x2e
mov r8d, 0x5c
lea rcx, [0x00408980]
mov dword [rsp + 0x58], edx
lea rdx, section..rdata
call sub.msvcrt.dll_sprintf
xor ecx, ecx
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], 0
lea r8, [0x004016e6]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
add rsp, 0x68
jmp 0x4017a6

Function at 0x401d50
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 fcn.00402ec0
mov r8d, 0x1b
mov edx, 1
lea rcx, [0x004051e0]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00402ec0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x401dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00408614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x401f68
mov rax, qword [0x00408618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x401e0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401e97
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x401df0
mov rcx, r12
call fcn.00402b20
mov rbp, rax
test rax, rax
je 0x401fa2
mov rax, qword [0x00408618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00402c50
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401fb1
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401e90
sub eax, 4
and eax, 0xfffffffb
jne 0x401f20
add dword [0x00408614], 1
cmp ebx, 8
jae 0x401ec8
test bl, 4
jne 0x401f70
test ebx, ebx
je 0x401eb9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x401f90
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x401eb9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x401efa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00408618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401e90
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x00405258]
mov edx, eax
call fcn.00401d50
nop dword [rax]
xor edi, edi
jmp 0x401e17
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x401eb9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x401eb9
mov rdx, r12
lea rcx, [0x00405200]
call fcn.00401d50
mov rax, qword [0x00408618]
mov edx, dword [rbp + 8]
lea rcx, [0x00405220]
mov r8, qword [rax + rdi + 0x18]
call fcn.00401d50
nop
nop dword [rax]

Function at 0x402790
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x4027e4
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 0x4027db
test r12, r12
je 0x4027db
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4027c0
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]