joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011168
Capabilities:
Write file on windows

Disassembly:
jmp 0x140026690
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, [0x14004710e]
call fcn.140011d7f
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x1400266e8
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 0x1400267fa
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 0x140026793
cmp qword [rbp + 0x28], 0
jle 0x140026793
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140026731
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.140011ca8
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 0x1400267e9
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x1400267e9
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 0x14001145b
Capabilities:
Check if file exists
Get file attributes
Get session user name

Disassembly:
jmp 0x140022c60
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x6e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x11e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x708]
mov rax, qword [0x14003f040]
xor rax, rbp
mov qword [rbp + 0x6a8], rax
lea rcx, [0x140047114]
call fcn.140011d7f
nop
mov dword [rbp + 0x134], 0x101
lea rdx, [rbp + 0x134]
lea rcx, [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x140022cdb
lea rcx, str.Failed_to_get_the_username_n
call fcn.14001166d
nop
xor al, al
jmp 0x140022e46
lea r9, [rbp + 0x10]
lea r8, str.C:Users_sAppDataLocalGoogleChromeUser_DataDefaultHistory
mov edx, 0x104
lea rcx, [rbp + 0x160]
call fcn.140011997
nop
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140022d11
mov al, 1
jmp 0x140022e46
mov edx, 0x110
lea rcx, [rbp + 0x290]
call fcn.140011974
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 0x20
lea rdx, [rbp + 0x160]
lea rcx, [rbp + 0x290]
call fcn.140011c7b
nop
lea rcx, [rbp + 0x290]
call fcn.140011064
movzx eax, al
test eax, eax
jne 0x140022d7c
mov byte [rbp + 0x654], 0
lea rcx, [rbp + 0x290]
call fcn.14001123a
movzx eax, byte [rbp + 0x654]
jmp 0x140022e46
mov dword [rbp + 0x3b4], 0
lea rcx, [rbp + 0x3d8]
call fcn.140011d66
nop
lea rdx, [rbp + 0x3d8]
lea rcx, [rbp + 0x290]
call fcn.1400117a3
mov qword [rbp + 0x678], rax
mov rax, qword [rbp + 0x678]
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov rcx, qword [rbp + 0x678]
add rcx, rax
mov rax, rcx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
movzx eax, al
test eax, eax
je 0x140022de8
mov eax, dword [rbp + 0x3b4]
inc eax
mov dword [rbp + 0x3b4], eax
jmp 0x140022d93
lea rcx, [rbp + 0x290]
call fcn.140011799
nop
mov eax, dword [rbp + 0x6d0]
cmp dword [rbp + 0x3b4], eax
jge 0x140022e0f
mov dword [rbp + 0x6a4], 1
jmp 0x140022e19
mov dword [rbp + 0x6a4], 0
movzx eax, byte [rbp + 0x6a4]
mov byte [rbp + 0x694], al
lea rcx, [rbp + 0x3d8]
call fcn.14001128a
nop
lea rcx, [rbp + 0x290]
call fcn.14001123a
movzx eax, byte [rbp + 0x694]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140034030]
call fcn.140011b40
mov rax, rdi
mov rcx, qword [rbp + 0x6a8]
xor rcx, rbp
call fcn.14001169a
lea rsp, [rbp + 0x6b8]
pop rdi
pop rbp
ret
Function at 0x1400117a8
Capabilities:
Terminate process

Disassembly:
jmp 0x1400298f0
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 0x140011988
Capabilities:
Parse pe header

Disassembly:
jmp 0x14002a420
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14002a440
xor al, al
jmp 0x14002a4c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14002a453
xor al, al
jmp 0x14002a4c1
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 0x14002a47d
xor al, al
jmp 0x14002a4c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14002a491
xor al, al
jmp 0x14002a4c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14002a4a3
xor al, al
jmp 0x14002a4c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002a4bf
xor al, al
jmp 0x14002a4c1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011d57
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400201e0
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 [0x14003f040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14004710e]
call fcn.140011d7f
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x140020247
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14002024e
mov al, 1
jmp 0x14002039e
call fcn.1400113c5
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.1400113c5
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.140011ae1
movzx eax, al
test eax, eax
je 0x14002029f
xor al, al
jmp 0x14002039e
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 0x140020304
cmp dword [rbp + 0x154], 1
je 0x14002030f
cmp dword [rbp + 0x154], 3
je 0x14002038d
jmp 0x14002039c
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 0x14002035f
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 0x14002035f
xor al, al
jmp 0x14002039e
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14002037a
mov dword [rbp + 0x154], 1
jmp 0x140020384
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14002039e
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14002039e
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140034750]
call fcn.140011b40
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.14001169a
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140011e10
Capabilities:
Get session user name

Disassembly:
jmp 0x140024310
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x14003f040]
xor rax, rbp
mov qword [rbp + 0x188], rax
lea rcx, [0x140047114]
call fcn.140011d7f
nop
mov dword [rbp + 4], 0x104
mov edx, 0x20
lea rcx, [rbp + 0x28]
call fcn.1400110b9
mov byte [rbp + 0x144], 0
lea rcx, [rbp + 0x124]
call fcn.140011659
movsxd rcx, dword [rbp + 4]
mov r9, rax
lea r8, [rbp + 0x144]
mov rdx, rcx
lea rcx, [rbp + 0x28]
call fcn.140011c35
nop
lea rcx, [rbp + 0x28]
call fcn.140011eab
lea rdx, [rbp + 4]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
nop
mov rcx, qword [rbp + 0x1b0]
call fcn.14001114f
mov qword [rbp + 0x178], rax
lea rcx, [rbp + 0x28]
call fcn.140011eab
mov rcx, qword [rbp + 0x178]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1400243f3
mov dword [rbp + 0x180], 1
jmp 0x1400243fd
mov dword [rbp + 0x180], 0
movzx eax, byte [rbp + 0x180]
mov byte [rbp + 0x164], al
lea rcx, [rbp + 0x28]
call fcn.14001141a
movzx eax, byte [rbp + 0x164]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x140033670]
call fcn.140011b40
mov eax, edi
mov rcx, qword [rbp + 0x188]
xor rcx, rbp
call fcn.14001169a
lea rsp, [rbp + 0x198]
pop rdi
pop rbp
ret
Function at 0x140027d20
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011de3
movzx eax, al
test eax, eax
jne 0x140027d40
mov ecx, 7
call fcn.140011b59
nop
mov byte [rsp + 0x20], 0
call fcn.140011ba9
mov byte [rsp + 0x21], al
cmp dword [0x14003f740], 1
jne 0x140027d64
mov ecx, 7
call fcn.140011b59
nop
jmp 0x140027dbc
cmp dword [0x14003f740], 0
jne 0x140027db7
mov dword [0x14003f740], 1
lea rdx, [0x140032770]
lea rcx, [0x140032440]
call fcn.140011672
test eax, eax
je 0x140027d98
mov eax, 0xff
jmp 0x140027ec1
lea rdx, [0x140032330]
lea rcx, [section..rdata]
call fcn.140011b90
mov dword [0x14003f740], 2
jmp 0x140027dbc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011b31
call fcn.1400119e7
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140027e19
mov rcx, qword [rsp + 0x30]
call fcn.140011528
movzx eax, al
test eax, eax
je 0x140027e19
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 [0x140048020]
nop
call fcn.140011a82
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140027e4d
mov rcx, qword [rsp + 0x38]
call fcn.140011528
movzx eax, al
test eax, eax
je 0x140027e4d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011d1b
nop
call fcn.140027f70
mov dword [rsp + 0x28], eax
call fcn.140011988
movzx eax, al
test eax, eax
jne 0x140027e6c
mov ecx, dword [rsp + 0x28]
call fcn.140011104
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140027e7b
call fcn.140011d3e
nop
xor edx, edx
mov cl, 1
call fcn.1400114d8
mov eax, dword [rsp + 0x28]
jmp 0x140027ec1
add rsp, 0x68
ret

Function at 0x180593241
Capabilities:
Encode data using xor

Disassembly:
lea rsp, [rsp + 0x10]
je 0x18056aa71
mov ebx, 0x9f9d3c90
push r8
add bx, bx
movzx r8d, bl
lea rbx, [0x180573630]
movzx r8d, byte [r10]
push 0x1595d7b7
xor r8d, r11d
and r8d, 0xff
mov r8d, dword [rbx + r8*4]
shr r11d, 8
xor r11d, r8d
sal dword [rsp + 4], 0xc3
inc r10
xor r11d, 0x2b0e0ba4
dec rcx
lea rsp, [rsp + 8]
jne 0x180593261
jmp 0x18056aa6f
Function at 0x159a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0159a1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x159a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x159a06f
add dl, dl
jne 0x159a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x159a0f6
xor eax, eax
add dl, dl
jne 0x159a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x159a1ad
add dl, dl
jne 0x159a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x159a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x159a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x159a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x159a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x159a07e
mov eax, 1
add dl, dl
jne 0x159a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x159a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x159a0fb
sub eax, ebx
mov ebx, 1
jne 0x159a14c
mov ecx, 1
add dl, dl
jne 0x159a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x159a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x159a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x159a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x159a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x159a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x159a15d
cmp eax, 0x7d00
jae 0x159a19b
cmp eax, 0x500
jb 0x159a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x159a07e
cmp eax, 0x7f
ja 0x159a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x159a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x159a1d2
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 0x159a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14083aea0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rbx
movsx bx, r12b
movsxd rbx, eax
push r14
cmovs ebx, r8d
movzx ebx, r11w
not bh
push r13
movsx ebx, r9w
movzx rbx, si
push r9
setae bh
push r10
push rbp
movzx ebx, r10w
mov r9b, r11b
pushfq
bts r9, r15
push rsi
and r10b, 0x5b
push rdx
push r8
push rax
push r11
btr r11w, r11w
push rdi
bts r9w, sp
mov r11b, 0x52
rcr ax, cl
push rcx
not di
movabs r8, 0
cmp r11b, sil
rdtsc
push r8
mov r10, qword [rsp + 0x90]
add r10d, 0x14c95dc4
neg r10d
movsx rbx, si
dec r10d
rdtsc
xchg r11, rdi
not r10d
rol r10d, 1
sub r10d, 0x6d987f3c
xor dil, 0xb6
ror di, 0x9b
not r10d
bsf rdx, r11
lea r10, [r10 + r8]
sal r11b, cl
movabs rdx, 0x100000000
add r10, rdx
sal bh, cl
mov rdi, rsp
sub rsp, 0x180
rcr bh, cl
and r9b, 0x3e
and rsp, 0xfffffffffffffff0
test dx, si
mov r9b, r15b
sal bl, 0xcb
mov rbx, r10
movabs rax, 0
shl r11b, cl
shr r9d, 0xf7
sub rbx, rax
lea r11, [0x14071fe7a]
sub r10, 4
rol r9b, 0x5d
mov r9d, dword [r10]
cmp r11w, 0x2759
xor r9d, ebx
jmp 0x14077d281
inc r9d
ror r9d, 1
jmp 0x14085e1bf
push r15
jmp 0x14071fd8f
xor dword [rsp], r9d
rcr bl, cl
bt ebx, ebp
pop rbx
movsxd r9, r9d
cmp r15w, r8w
add r11, r9
jmp 0x14085b356
push r12
jmp 0x140805019
push r11
ret
dec r9d
cmc
neg r9d
cmc
rol r9d, 2
neg r9d
push rbx
rol bh, cl
bt rbx, 0x31
jmp 0x14080db3d
Function at 0x14001a22c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001a242
mov al, 1
jmp 0x14001a2a2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001a253
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001a2a0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001e2c4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001a2a0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001a2a0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001a2a0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001a2a2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001a69c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14004d070]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001a6f3
cmp word [rdx], r13w
jne 0x14001a6f3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001a6f8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001a81d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001a83e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001a731
mov rdx, r9
mov word [rbx], cx
jmp 0x14001a758
cmp r9, r8
jae 0x14001a768
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001a712
jmp 0x14001a81d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001a812
cmp dword [rsp + 0x80], esi
je 0x14001a812
lea r8, [0x14004d070]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001a7ea
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001a7ba
mov word [rbx], r13w
jmp 0x14001a81a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001a7c7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001a81a
cmp word [rsp + 0x70], r13w
jne 0x14001a7f7
cmp rbx, r14
je 0x14001a7b4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001b304
cmp word [rsp + 0x70], r13w
je 0x14001a81d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14004d070]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001a817
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001a81d
Function at 0x14001b6c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000a5e0
sub rsp, rax
mov rax, qword [0x14004b580]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140017b38
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001b70f
mov rax, rbp
jmp 0x14001b817
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4d070]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001b2fc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4d070]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001b813
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001b813
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001b2fc
test rax, rax
js 0x14001b813
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001b813
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001b805
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001b805
cmp byte [rcx], 0xd
jne 0x14001b7eb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001b7fa
cmp byte [rcx + 1], 0xa
jne 0x14001b7fa
inc rcx
jmp 0x14001b7fa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4ba00]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001b7cd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001b817
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140026410
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x408c50
Capabilities:
Get common file path
Set current directory

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x440
mov rbp, rsp
mov ebx, ecx
mov rsi, rdx
test bl, bl
je 0x408ca2
movzx ax, bl
add ax, 0x40
mov word [rbp + 0x438], ax
mov word [rbp + 0x43a], 0x3a
mov word [rbp + 0x43c], 0
mov ecx, 0x105
lea rdx, [rbp + 0x24]
call sub.kernel32.dll_GetCurrentDirectoryW
lea rcx, [rbp + 0x438]
call sub.kernel32.dll_SetCurrentDirectoryW
mov ecx, 0x105
lea rdx, [rbp + 0x22e]
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x408cc1
lea rcx, [rbp + 0x24]
call sub.kernel32.dll_SetCurrentDirectoryW
mov rcx, rsi
lea rdx, [rbp + 0x22e]
mov r8d, 0x105
call fcn.00411190
lea rsp, [rbp + 0x440]
pop rbx
pop rsi
pop rbp
ret

Function at 0x408d40
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor rdx, rdx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x408d55
call fcn.00408c30
add rsp, 0x28
ret
Function at 0x40cec0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x30
mov qword [rsp + 0x28], rcx
mov ebx, edx
mov rax, qword [rsp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rsp + 0x28]
call fcn.0040d460
mov esi, eax
test sil, sil
jne 0x40d082
test ebx, ebx
je 0x40d082
xor rdi, rdi
test r13d, r13d
jle 0x40cf9f
call sub.kernel32.dll_GetTickCount
mov r14d, eax
test r13d, r13d
jle 0x40cf7e
cmp ebx, 0xffffffff
je 0x40cf2b
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40cf2b
xor rsi, rsi
jmp 0x40d082
mov rax, qword [rsp + 0x28]
cmp dword [rax], 1
jg 0x40cf7e
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
jne 0x40cf70
xor eax, eax
mov ecx, 1
mov rdx, qword [rsp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40cf70
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40d082
call fcn.0040d5f0
sub r13d, 1
test r13d, r13d
jg 0x40cf12
nop
cmp ebx, 0xffffffff
je 0x40cf9f
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x40cf9a
xor rsi, rsi
jmp 0x40d082
sub eax, r14d
sub ebx, eax
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40cedb
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40cf9f
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rsp + 0x28]
call fcn.0040d130
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x0090f9a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40d00c
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40d009
sub eax, r14d
sub ebx, eax
jmp 0x40d00c
xor rbx, rbx
test sil, sil
je 0x40d040
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40d03d
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40d011
mov dil, 1
nop
jmp 0x40d05f
mov rax, qword [rsp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rsp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40d040
mov dil, 1
test dil, dil
je 0x40cfc4
nop
test sil, sil
je 0x40d082
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret