joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e680
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x40e6db
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x40e6db
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x40e6f6
cmp eax, 0x42
jne 0x40e6db
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x40e7a6
cmp byte [r9 + r11], 0x5f
jne 0x40e7a6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x40e80e
mov rcx, rsi
xor edx, edx
call fcn.00409ea0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.00409ea0
test al, al
jne 0x40e8a1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x40e732
lea rdx, [0x0043e0b3]
mov r8d, 1
call fcn.00404cb0
test al, al
jne 0x40e8a1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x40e6ea
xor r14d, r14d
lea rbx, [0x0043e4a6]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x40e764
cmp byte [rax + rcx], 0x45
je 0x40e8c3
sub r14, 1
jb 0x40e789
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x40e789
mov r8d, 2
mov rdx, rbx
call fcn.00404cb0
test al, al
jne 0x40e8a1
mov rcx, rsi
call fcn.0040e8e0
test al, al
jne 0x40e8a1
mov rax, qword [rsi]
test rax, rax
jne 0x40e750
jmp 0x40e6ea
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x40e868
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x40e802
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x40e7ec
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x40e7db
add dl, 0xa9
jmp 0x40e7ea
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x40e868
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x40e868
movzx edx, bl
add rax, rdx
jae 0x40e7b0
jmp 0x40e868
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x40e868
cmp rax, rcx
jae 0x40e865
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x40e8bb
cmp qword [rsi + 0x20], 0
je 0x40e8cf
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.0040e680
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x40e6ec
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x40e8a9
lea rax, [0x0043e471]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.00404cb0
test al, al
je 0x40e8a9
mov dil, 2
jmp 0x40e6ea
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x40e6ea
mov dil, 1
xor r8d, r8d
jmp 0x40e86a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x40e6ea
xor edi, edi
jmp 0x40e6ea
Function at 0x411c80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x00438078]
test ecx, ecx
je 0x411d5f
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x411cb4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x411cb4
add rdi, 0x10
jmp 0x411d55
mov ecx, dword [0x00438078]
test ecx, ecx
je 0x411d72
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x411d53
mov rsi, rax
test rax, rax
jne 0x411d23
movzx eax, byte [0x00447158]
mov ecx, 0x20
mov edx, 8
call fcn.00409bf0
test rax, rax
je 0x411d95
mov rsi, rax
lea rax, [0x00438060]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x00438078]
test ecx, ecx
je 0x411d85
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
cmp qword [rsi + 8], 0
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 8], 1
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
je 0x411d55
test rcx, rcx
je 0x411d55
lock dec qword [rcx]
jne 0x411d55
call fcn.00411dc0
jmp 0x411d55
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x00438060]
call fcn.00412390
mov ecx, eax
jmp 0x411c96
lea rcx, [0x00438060]
call fcn.00412390
mov ecx, eax
jmp 0x411cc4
lea rcx, [0x00438060]
call fcn.00412390
mov ecx, eax
jmp 0x411d1b
mov ecx, 8
mov edx, 0x20
call fcn.00402ff0
ud2

Function at 0x412390
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x41240e
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x41244f
cmp dword [rsp + 0x2c], 0
je 0x412433
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x412469
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x004470e0]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x004470e0], rsi
jne 0x4123f0
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x412445
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x4124b5
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x412438
mov edi, dword [rsp + 0x28]
jmp 0x412445
mov edi, dword [rsi + 0x18]
jmp 0x412443
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.004124f0
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.Some
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.00404330
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.Some
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.00412560
ud2
Function at 0x412a20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x00438098]
test ecx, ecx
je 0x412abf
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x412a49
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x412aae
mov ecx, dword [0x00438098]
test ecx, ecx
je 0x412ad2
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x412ab4
mov rsi, rax
test rax, rax
jne 0x412aa8
movzx eax, byte [0x00447158]
mov ecx, 0x10
mov edx, 8
call fcn.00409bf0
test rax, rax
je 0x412af5
mov rsi, rax
lea rax, [0x00438080]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x00438098]
test ecx, ecx
je 0x412ae5
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x412ab6
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x00438080]
call fcn.00412390
mov ecx, eax
jmp 0x412a35
lea rcx, [0x00438080]
call fcn.00412390
mov ecx, eax
jmp 0x412a55
lea rcx, [0x00438080]
call fcn.00412390
mov ecx, eax
jmp 0x412aa0
mov ecx, 8
mov edx, 0x10
call fcn.00402ff0
ud2
Function at 0x413e60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x00438058]
test ecx, ecx
je 0x413f1d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x413e90
cmp qword [rax + 8], 0
je 0x413e90
add rax, 0x10
jmp 0x413f17
mov ecx, dword [0x00438058]
test ecx, ecx
je 0x413f30
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x413f15
mov rsi, rax
test rax, rax
jne 0x413efb
movzx eax, byte [0x00447158]
mov ecx, 0x20
mov edx, 8
call fcn.00409bf0
test rax, rax
je 0x413f53
mov rsi, rax
lea rax, [0x00438040]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x00438058]
test ecx, ecx
je 0x413f43
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x413f17
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x00438040]
call fcn.00412390
mov ecx, eax
jmp 0x413e75
lea rcx, [0x00438040]
call fcn.00412390
mov ecx, eax
jmp 0x413ea0
lea rcx, [0x00438040]
call fcn.00412390
mov ecx, eax
jmp 0x413ef3
mov ecx, 8
mov edx, 0x20
call fcn.00402ff0
ud2
Function at 0x416d30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x416d60
test ecx, ecx
jne 0x416db0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x416d6c
test ecx, ecx
jne 0x416db0
mov rcx, rdi
call fcn.00416c10
movzx eax, al
test bpl, bpl
jne 0x416db7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x416da3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x00416f28]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x416da3.2
xor eax, eax
test bpl, bpl
je 0x416d7c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x416f09
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x416dea
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x416e69
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x416e30
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x416e4b
inc rax
dec rdi
cmp rax, 1
jne 0x416e10
jmp 0x416e69
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x416e4b
cmp ebx, 0x5c
je 0x416e4b
inc rax
dec rdi
cmp rax, 1
jne 0x416e30
jmp 0x416e69
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x416f17
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x416e93
mov al, 9
cmp rdx, 2
je 0x416e97
cmp rdx, 1
jne 0x416ea7
cmp byte [r8], 0x2e
jne 0x416ea7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x416ea7
mov al, 0xa
jmp 0x416ea7
cmp byte [r8], 0x2e
jne 0x416ea7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x416da3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x416da3.2
mov ecx, 2
jmp case.0x416da3.2
lea r8, [0x0043fbb8]
call fcn.00404bb0
ud2
lea r8, [0x0043fbd0]
call fcn.00404bb0
ud2
Function at 0x436da0
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.00437e60
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00437e60
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 0x436e10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00447754]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x436fb8
mov rax, qword [0x00447758]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x436e5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x436ee7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x436e40
mov rcx, r12
call fcn.00437b70
mov rbp, rax
test rax, rax
je 0x436ff2
mov rax, qword [0x00447758]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00437ca0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00447758]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x437001
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x436ee0
sub eax, 4
and eax, 0xfffffffb
jne 0x436f70
add dword [0x00447754], 1
cmp ebx, 8
jae 0x436f18
test bl, 4
jne 0x436fc0
test ebx, ebx
je 0x436f09
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x436fe0
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 0x436f09
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 0x436f4a
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 [0x00447758]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x436ee0
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00436da0
nop dword [rax]
xor edi, edi
jmp 0x436e67
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x436f09
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x436f09
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00436da0
mov rax, qword [0x00447758]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00436da0
nop
nop dword [rax]
Function at 0x4377e0
Capabilities:
Get thread local storage value

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

Function at 0x437b70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00441730]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x437be9
mov rcx, r10
call fcn.00437a40
test eax, eax
je 0x437be9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x437be6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x437bdd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x437be9
add r8, 0x28
cmp r8, r9
jne 0x437bc8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140002e00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.140004760
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004760
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002e70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140002fa0
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002ebb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002f45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002ea0
mov rcx, rbx
call fcn.1400038c0
mov rdi, rax
test rax, rax
je 0x140002fc2
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003a00
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002fa7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002f3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002f50
add dword [0x1400090a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002f3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002e00
nop dword [rax]
xor esi, esi
jmp 0x140002ec8
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002e00
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002e00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003530
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000358c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003583
test rsi, rsi
je 0x140003583
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003568
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400038c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006a70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400038e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400038e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400038e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000393d
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 0x140003934
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400038e0
add rax, 0x28
cmp rax, r9
jne 0x140003920
xor eax, eax
ret

Function at 0x140003940
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a70]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000395f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003968
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000395f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003a00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006a70]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003a1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003a28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140073130
Capabilities:
Copy file
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x1ff88]
mov eax, 0x20080
call fcn.140038c40
sub rsp, rax
mov dil, r8b
mov rbx, rdx
mov esi, 0x7fff
lea r8, [rbp + 0xff80]
mov edx, esi
call fcn.1400745c4
lea r8, [rbp - 0x80]
mov edx, esi
mov rcx, rbx
call fcn.1400745c4
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call qword [sym.imp.KERNEL32.DLL_lstrcmpiW]
xor esi, esi
test eax, eax
jne 0x1400731ca
test dil, dil
je 0x1400731c3
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call fcn.140027894
test eax, eax
je 0x1400731bc
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0xff80]
call qword [sym.imp.KERNEL32.DLL_MoveFileW]
mov al, 1
jmp 0x14007326e
xor al, al
jmp 0x14007326e
lea rcx, [rbp + 0xff80]
call fcn.140074ad4
test al, al
je 0x1400731c3
lea rcx, [rbp - 0x80]
call fcn.140074ad4
test al, al
je 0x140073287
test dil, dil
je 0x1400731c3
lea rdx, str..
lea rcx, [rbp + 0xff80]
call fcn.140026dfc
lea rcx, [rbp + 0xff80]
call fcn.140026c38
lea rcx, [rbp - 0x80]
mov word [rbp + rax*2 + 0xff82], si
call fcn.140026c38
lea rcx, [rsp + 0x20]
xorps xmm0, xmm0
mov word [rbp + rax*2 - 0x7e], si
lea rax, [rbp + 0xff80]
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x80]
mov dword [rsp + 0x44], esi
mov qword [rsp + 0x38], rax
mov eax, 0x614
mov qword [rsp + 0x20], rsi
mov word [rsp + 0x40], ax
mov dword [rsp + 0x28], 2
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
lea r11, [rsp + 0x20080]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.14001f0bc
lea rcx, [rsp + 0x58]
call fcn.14007359c
lea rcx, [rsp + 0x58]
test al, al
sete bl
call fcn.14001c29c
test bl, bl
jne 0x1400731c3
lea rcx, [rbp - 0x80]
call fcn.140074ad4
test al, al
jmp 0x1400731ee
Function at 0x1400736c4
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x1e8]
sub rsp, 0x2e0
mov rbx, rcx
lea rcx, [rsp + 0x30]
xor edi, edi
mov r14b, dil
call fcn.14001e640
lea rcx, [rsp + 0x70]
call fcn.14001e640
lea rcx, [rsp + 0x50]
call fcn.14001e640
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14001a41c
mov rcx, qword [rsp + 0x30]
call fcn.140074ad4
test al, al
je 0x140073738
lea rdx, str..
lea rcx, [rsp + 0x30]
call fcn.14001ef20
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
call fcn.14001a1cc
mov rcx, qword [rsp + 0x30]
lea rdx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov sil, 1
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400737db
cmp sil, 1
jne 0x1400737db
test byte [rbp - 0x70], 0x10
jne 0x1400737ba
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
mov r14b, sil
call fcn.14001f350
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.14001ec60
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x30]
call fcn.14001ef20
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
jne 0x1400737d0
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x14007376f
mov sil, dil
jmp 0x14007376f
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x1400737e7
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FindClose]
mov dil, r14b
lea rcx, [rsp + 0x50]
call fcn.14001c29c
lea rcx, [rsp + 0x70]
call fcn.14001c29c
lea rcx, [rsp + 0x30]
call fcn.14001c29c
lea r11, [rsp + 0x2e0]
mov al, dil
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret