joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000cdc0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000cdd8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000cde0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000cdf0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000ce3d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x14000ce34
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000ce3f
add rax, 0x28
cmp rax, r9
jne 0x14000ce20
xor eax, eax
ret

Function at 0x14000ce40
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14000ced0
mov rdx, qword [0x1405fa5e0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000cebe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000cebe
cmp word [rax + 0x18], 0x20b
jne 0x14000cebe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14000ced0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14000cea9
add rbx, 0x28
cmp rbx, rdi
je 0x14000ced0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14000cea0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000cee0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1405fa5e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000cf00
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000cf08
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000cf00
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000cf5d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000cf54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000cf00
add rax, 0x28
cmp rax, r9
jne 0x14000cf40
xor eax, eax
ret

Function at 0x14000cf60
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1405fa5e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000cf7f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000cf88
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000cf7f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x14000cfa0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1405fa5e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14000cfc0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14000cfc8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000cfc0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14000d010
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000d007
test rcx, rcx
je 0x14000cfc0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x14000cff8
xor eax, eax
ret

Function at 0x14000d020
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1405fa5e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000d03f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000d048
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14000d060
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1405fa5e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000d080
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000d088
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000d080
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14000d080
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14000d0d4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000d0e0
add rdx, 0x28
cmp rdx, r9
jne 0x14000d0c0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x14000d0f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1405fa5e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14000d112
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14000d120
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000d112
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14000d112
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14000d112
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000d175
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14000d188
add rdx, 0x28
cmp r10, rdx
jne 0x14000d160
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000d197
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000d1a7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000d17e
test ecx, ecx
jg 0x14000d190
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret

Function at 0x14000d470
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14000d4a0
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp dbg.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x14000d4e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x14000d510
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000d528
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x14000dd40
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1405f9a40]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x14000dd78
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14000dde0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x14000ddf0
mov esi, dword [0x1406211c8]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x14000de48
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x14000de90
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x14000dd67
mov rcx, rbx
call fcn.14000dca0
mov qword [rsi + r12*8 + 8], rax
jmp 0x14000dd67
call fcn.14000dca0
mov qword [rbx + 0x10], rax
jmp 0x14000dd67
mov r10d, dword [rsi]
test r10d, r10d
je 0x14000df21
mov r9d, dword [0x1405f0370]
test r9d, r9d
je 0x14000df49
lea rcx, [0x1406211e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x14000df2e
mov eax, dword [rsi]
test eax, eax
je 0x14000dd81
lea rcx, [0x1406211e0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14000dd81
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sym.calloc
mov rsi, rax
test rax, rax
je 0x14000df84
mov qword [rax], rdi
mov ecx, dword [0x1406211c8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14000ddbb
call r13
jmp 0x14000ddbb
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sym.realloc
mov rsi, rax
test rax, rax
je 0x14000df84
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sym.memset
jmp 0x14000de6b
lea rcx, [0x1406211e0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14000df7c
lea rdx, [0x14000dc50]
mov ecx, eax
mov dword [0x1406211c8], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x14000df84
mov dword [0x1405f0370], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14000de0c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x14000dd81
mov rax, qword [0x1406211c0]
lea r12, [rax + 1]
mov qword [0x1406211c0], r12
mov qword [rbx + 0x10], r12
jmp 0x14000de26
lock add dword [0x1405f0374], 1
je 0x14000ded9
mov r8d, dword [0x1405f0370]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x1405f0370]
test r8d, r8d
jne 0x14000df17
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x14000df70
jmp 0x14000df17
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000df09
call sym.abort
nop
nop word [rax + rax]
Function at 0x140016bf0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
lea rcx, str.msvcrt.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.rand_s
mov rcx, rax
call rsi
test rax, rax
je 0x140016c38
mov rcx, rbx
mov qword [dbg.init_rand_s], rax
add rsp, 0x28
pop rbx
pop rsi
jmp rax
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.SystemFunction036
mov rcx, rax
call rsi
mov qword [0x140621c00], rax
lea rax, [dbg.mingw_rand_s]
jmp 0x140016c1e

Function at 0x1400192b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov r9, qword [rcx + 0x40]
mov rsi, rdx
mov rbx, rcx
mov edx, 1
mov rcx, rsi
call sym.fread
mov edx, 0xffffffff
test rax, rax
jle 0x1400192dc
movzx edx, byte [rsi + rax - 1]
mov dword [rbx + 0x48], edx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140019f50
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x1405f3500], 0
jne 0x14001a056
mov byte [0x1405f3500], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14001a02c
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [dbg.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x14001a01d
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x1405f4481]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x14001a018
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x140019fe7
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x14001a0eb
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x14001a051
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x14001a051
Function at 0x14007a940
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x14007a988
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007a95a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14008e360
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x14008e388
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x14008e3d0
cdqe
add rsi, rax
sub rbx, rax
jne 0x14008e3a0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14008e3dc
call rbp
cmp dword [rax], 4
je 0x14008e3a0
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400b63e0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1405f3520]
jmp sym.__emutls_get_address

Function at 0x1400b63f0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1405f3520]
jmp sym.__emutls_get_address
Function at 0x140003274
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400032be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400032be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400032be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400032be
cmp dword [rcx + 0x84], 0xe
jbe 0x1400032be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400032c0
xor al, al
add rsp, 0x28
ret
Function at 0x10003b88
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10003bab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
add rsp, 0x20
pop rbx
ret

Function at 0x10003eac
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x238
mov rax, qword [rcx]
xor ebx, ebx
mov rsi, rcx
mov dword [rcx + 8], ebx
lea rdx, [rsp + 0x20]
mov ecx, 0x105
mov word [rax], bx
mov word [rsp + 0x20], bx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rdx, qword [rsi]
mov dword [rsi + 8], ebx
mov edi, ebx
mov word [rdx], bx
cmp word [rsp + 0x20], bx
mov ebp, eax
je 0x10003eff
lea rcx, [rsp + 0x20]
add rcx, 2
inc edi
cmp word [rcx], bx
jne 0x10003ef4
mov edx, edi
mov rcx, rsi
call fcn.1000178c
mov r11, qword [rsi]
lea rax, [rsp + 0x20]
movzx ecx, word [rax]
add rax, 2
mov word [r11], cx
add r11, 2
cmp cx, bx
jne 0x10003f11
lea ecx, [rbp - 1]
mov dword [rsi + 8], edi
cmp ecx, 0x103
setbe al
add rsp, 0x238
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x10003f40
Capabilities:
Check for time delay via gettickcount
Create directory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov rbp, r9
mov rsi, r8
mov r12b, dl
mov r13, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
shl ebx, 2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor edi, ebx
shl edi, 0xc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r14d, eax
xor r14d, edi
xor edi, edi
mov rcx, qword [rsi]
mov dword [rsi + 8], 0
xor ebx, ebx
mov word [rcx], 0
cmp word [r13], bx
je 0x10003fa8
mov rax, r13
add rax, 2
inc ebx
cmp word [rax], 0
jne 0x10003f9c
mov edx, ebx
mov rcx, rsi
call fcn.1000178c
mov r11, qword [rsi]
mov rcx, r13
movzx eax, word [rcx]
add rcx, 2
mov word [r11], ax
add r11, 2
test ax, ax
jne 0x10003fb8
test r12b, r12b
mov dword [rsi + 8], ebx
mov ebx, 1
je 0x10004047
mov r10d, r14d
xor r9d, r9d
lea r11d, [rbx + 7]
mov r8d, r10d
shr r10d, 4
and r8d, 0xf
cmp r8d, 0xa
lea eax, [r8 + 0x37]
lea edx, [r8 + 0x30]
movzx ecx, al
movzx eax, dl
cmovb ecx, eax
movsx eax, cl
mov word [rsp + r9*2 + 0x20], ax
add r9, rbx
sub r11, rbx
jne 0x10003fe3
test rbp, rbp
mov word [rsp + r9*2 + 0x20], r11w
je 0x1000402b
mov dx, 0x2e
mov rcx, rsi
call fcn.10003784
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.10003be4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 2
cmove eax, ebx
add r14d, eax
test rbp, rbp
mov r12b, bl
je 0x1000405e
lea rdx, [0x100ee938]
mov rcx, rsi
call fcn.10003be4
mov rcx, qword [rsi]
call fcn.100045f4
test al, al
je 0x10004077
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100040af
test rbp, rbp
je 0x1000408e
mov rdx, qword [rsi]
xor r8d, r8d
mov rcx, rbp
call fcn.1000481c
test al, al
jmp 0x1000409b
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100040da
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
je 0x100040af
cmp eax, 0xb7
jne 0x100040ba
add edi, ebx
cmp edi, 0x64
jb 0x10003f81
mov rax, qword [rsi]
mov dword [rsi + 8], 0
mov word [rax], 0
xor al, al
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov al, bl
jmp 0x100040cb

Function at 0x10004688
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
setne al
mov dword [rbx], ecx
add rsp, 0x30
pop rbx
ret
mov eax, dword [0x1013a0d0]
cmp r8d, eax
cmova r8d, eax
jmp 0x10004688

Function at 0x100046c4
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x58]
test eax, eax
setne al
mov dword [rbx], ecx
add rsp, 0x30
pop rbx
ret
mov eax, dword [0x1013a0d0]
cmp r8d, eax
cmova r8d, eax
jmp 0x10004688
Function at 0x100046d8
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1013a0d0]
mov rcx, qword [rcx]
mov rbx, r9
cmp r8d, eax
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
cmova r8d, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x50]
test eax, eax
mov dword [rbx], ecx
setne al
add rsp, 0x30
pop rbx
ret

Function at 0x10013bbc
Capabilities:
Encode data using base64

Disassembly:
push rbx
push rsi
push rdi
xor r9d, r9d
xor r10d, r10d
test r8d, r8d
mov rsi, rdx
mov rdi, rcx
movsxd rbx, r8d
jle 0x10013cc1
mov r8, rcx
xor r11d, r11d
xor edx, edx
cmp r10, rbx
jge 0x10013cc1
mov cl, byte [r10 + rsi]
lea eax, [rcx - 0x41]
cmp al, 0x19
ja 0x10013bfc
movsx eax, cl
sub eax, 0x41
jmp 0x10013c39
lea eax, [rcx - 0x61]
cmp al, 0x19
ja 0x10013c0b
movsx eax, cl
sub eax, 0x47
jmp 0x10013c39
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x10013c1a
movsx eax, cl
add eax, 4
jmp 0x10013c39
cmp cl, 0x2b
jne 0x10013c26
mov eax, 0x3e
jmp 0x10013c39
cmp cl, 0x2f
jne 0x10013c32
mov eax, 0x3f
jmp 0x10013c39
sub cl, 0x3d
neg cl
sbb eax, eax
inc r10
test eax, eax
js 0x10013c50
mov byte [rsp + rdx + 0x30], al
inc rdx
inc r11d
cmp rdx, 4
je 0x10013c55
cmp r10, rbx
jl 0x10013be9
cmp r11d, 2
mov dl, byte [rsp + 0x31]
jl 0x10013c7b
test rdi, rdi
je 0x10013c75
mov al, byte [rsp + 0x30]
mov cl, dl
shl al, 2
shr cl, 4
or cl, al
mov byte [r8], cl
inc r9d
inc r8
cmp r11d, 3
mov cl, byte [rsp + 0x32]
jl 0x10013c9d
test rdi, rdi
je 0x10013c97
mov al, cl
shl dl, 4
shr al, 2
or al, dl
mov byte [r8], al
inc r9d
inc r8
cmp r11d, 4
jl 0x10013cb8
test rdi, rdi
je 0x10013cb2
shl cl, 6
or cl, byte [rsp + 0x33]
mov byte [r8], cl
inc r9d
inc r8
cmp r10, rbx
jl 0x10013bdb
mov eax, r9d
pop rdi
pop rsi
pop rbx
ret
Function at 0x1001e790
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
movzx r10d, word [rcx]
je 0x1001e7c4
movzx r9d, byte [rdx]
movzx eax, r10b
lea r11, [0x1013deb0]
xor r9, rax
movzx eax, r10w
inc rdx
mov r10w, word [r11 + r9*2]
shr ax, 8
xor r10w, ax
dec r8
jne 0x1001e799
mov word [rcx], r10w
ret
Function at 0x10036c58
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rsi
push rdi
mov r10d, 0x14
mov rsi, r9
mov r9, rdx
cmp r8d, r10d
mov r11d, r8d
mov rdx, rcx
jb 0x10036dd1
movzx eax, word [r9]
xor edi, edi
mov word [rcx], ax
movzx eax, word [r9 + 2]
movzx r8d, word [rcx]
cmp r8w, 2
mov word [rcx + 2], ax
movzx eax, word [r9 + 4]
mov word [rcx + 4], ax
movzx eax, word [r9 + 6]
mov qword [rcx + 0x10], rdi
mov word [rcx + 6], ax
mov qword [rcx + 0x18], rdi
je 0x10036de0
cmp r8w, 9
je 0x10036e0b
lea ebx, [rdi + 1]
cmp r8w, bx
jne 0x10036cf4
lea r8d, [r10 + 0xc]
cmp r11d, r8d
jb 0x10036dd1
mov eax, dword [r9 + 0x10]
mov qword [rcx + 0x18], rax
movzx eax, word [r9 + 0x18]
mov qword [rcx + 0x10], rax
movzx eax, word [r9 + 0x1a]
mov dword [rcx + 0xc], eax
mov eax, r8d
jmp 0x10036e6a
cmp r8w, 8
jne 0x10036d61
mov ecx, 0x28
cmp r11d, ecx
jb 0x10036dd1
mov eax, dword [r9 + 0x14]
mov qword [rdx + 0x10], rax
mov eax, dword [r9 + 0x18]
mov qword [rdx + 0x18], rax
movzx r8d, word [r9 + 0x20]
movzx eax, word [r9 + 0x22]
cmp r8d, edi
mov dword [rdx + 0xc], eax
jbe 0x10036d5a
lea eax, [rcx + 0xc]
cmp eax, r11d
ja 0x10036dd1
mov eax, ecx
mov edx, dword [rax + r9 + 8]
lea ecx, [rcx + rdx + 0xd]
cmp ecx, r11d
ja 0x10036dd1
cmp edx, 0x400
ja 0x10036dd1
add edi, ebx
cmp edi, r8d
jb 0x10036d2b
mov eax, ecx
jmp 0x10036e6a
movzx eax, r8w
cmp eax, 0xa
jg 0x10036da5
je 0x10036d7f
cmp eax, 3
je 0x10036d7f
jle 0x10036dd1
cmp eax, 5
jle 0x10036db6
cmp eax, 7
jle 0x10036dc1
jmp 0x10036dd1
mov r10d, 0x18
cmp r11d, r10d
jb 0x10036dd1
mov ecx, dword [r9 + 0x14]
mov qword [rdx + 0x10], rcx
lea r10d, [rcx + 0x18]
cmp r11d, r10d
jb 0x10036dd1
cmp ecx, 0x40000000
jbe 0x10036dc1
jmp 0x10036dd1
cmp eax, 0xb
jl 0x10036dd1
cmp eax, 0xc
jle 0x10036db6
cmp eax, 0xe
jg 0x10036dd1
jmp 0x10036dc1
mov r10d, 0x18
cmp r11d, r10d
jb 0x10036dd1
cmp r8w, 8
jb 0x10036dd8
add r10d, 4
cmp r11d, r10d
jae 0x10036dd8
xor eax, eax
jmp 0x10036e6a
mov eax, r10d
jmp 0x10036e6a
mov r8d, 0x20
cmp r11d, r8d
jb 0x10036dd1
mov eax, dword [r9 + 0x10]
mov qword [rcx + 0x18], rax
mov eax, dword [r9 + 0x14]
mov dword [rcx + 8], eax
mov eax, dword [r9 + 0x18]
mov dword [rcx + 0xc], eax
mov eax, dword [r9 + 0x1c]
mov qword [rcx + 0x10], rax
jmp 0x10036e34
mov r8d, 0x38
cmp r11d, r8d
jb 0x10036dd1
mov rax, qword [r9 + 0x10]
mov qword [rcx + 0x18], rax
mov rax, qword [r9 + 0x18]
mov qword [rcx + 0x10], rax
mov eax, dword [r9 + 0x2c]
mov dword [rcx + 8], eax
mov eax, dword [r9 + 0x30]
mov dword [rcx + 0xc], eax
cmp dword [rcx + 8], 0xffffffff
jne 0x10036e4a
mov eax, dword [rsi + 0xc]
mov ebx, 1
sub eax, ebx
test qword [rcx + 0x10], rax
jne 0x10036e4d
mov rbx, rdi
mov cl, byte [rsi + 0x16]
mov rdx, qword [rdx + 0x10]
shr rdx, cl
mov ecx, r8d
add rdx, rbx
lea r8, [rcx + rdx*4]
cmp r8, r11
cmovbe edi, r8d
mov eax, edi
pop rdi
pop rsi
pop rbx
ret
Function at 0x10063554
Capabilities:
Encode data using xor

Disassembly:
mov r11d, dword [rcx]
mov r9, rcx
jmp 0x100635a0
cmp dword [r9 + 4], 0
je 0x100635a5
mov al, byte [rdx]
movsxd rcx, dword [r9 + 4]
add r8d, 0xffffffff
mov byte [rcx + r9 + 8], al
mov eax, dword [r9 + 4]
inc rdx
inc eax
and eax, 3
test eax, eax
mov dword [r9 + 4], eax
jne 0x100635a0
xor ecx, ecx
lea r10, [r9 + 8]
movzx eax, byte [r10]
inc r10
shl eax, cl
add ecx, 8
xor r11d, eax
cmp ecx, 0x20
jl 0x1006358c
test r8d, r8d
jne 0x1006355c
mov r10d, r8d
shr r10d, 2
je 0x100635d8
movzx eax, byte [rdx + 1]
movzx ecx, byte [rdx]
add rdx, 4
shl eax, 8
or ecx, eax
movzx eax, byte [rdx - 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [rdx - 1]
shl eax, 0x18
or ecx, eax
xor r11d, ecx
dec r10d
jne 0x100635ae
and r8d, 3
mov dword [r9], r11d
je 0x10063602
mov al, byte [rdx]
movsxd rcx, dword [r9 + 4]
inc rdx
mov byte [rcx + r9 + 8], al
mov eax, dword [r9 + 4]
inc eax
and eax, 3
add r8d, 0xffffffff
mov dword [r9 + 4], eax
jne 0x100635e1
ret