joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40350c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
mov esi, 0x8000
lea r12, [0x0041b8a0]
test r8, r8
mov qword [rsp + 0x118], rdx
mov rbp, r8
mov ebx, r9d
cmovne esi, r9d
cmovne r12, r8
test ecx, ecx
js 0x403557
movsxd rcx, ecx
add rcx, qword [0x0043bf74]
call fcn.004034f6
lea rcx, [rsp + 0x3c]
mov edx, 4
call fcn.004034e4
test eax, eax
je 0x403731
mov r9d, dword [rsp + 0x3c]
test r9d, r9d
jns 0x40373f
mov r14, qword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
call r14
mov dword [0x0042b8e0], 8
mov qword [0x0042be04], 0
mov r13d, eax
lea rax, [0x0042d48c]
mov qword [0x004354a0], rax
mov qword [0x00435498], rax
add rax, 0x8000
mov qword [0x00435490], rax
mov eax, dword [rsp + 0x3c]
and eax, 0x7fffffff
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x3c], eax
mov edi, dword [rsp + 0x3c]
test edi, edi
jle 0x40376b
cmp edi, 0x4000
mov eax, 0x4000
lea rcx, [0x004178a0]
cmovg edi, eax
mov edx, edi
call fcn.004034e4
test eax, eax
je 0x403731
lea rax, [0x004178a0]
sub dword [rsp + 0x3c], edi
mov qword [0x0042b8c0], rax
mov dword [0x0042b8c8], edi
lea rcx, [0x0042b8c0]
mov qword [0x0042b8d0], r12
mov dword [0x0042b8d8], esi
call fcn.00407ddf
mov r15d, eax
test eax, eax
js 0x403738
mov rdi, qword [0x0042b8d0]
call r14
mov r9d, eax
mov rax, qword [0x0040bb60]
sub rdi, r12
test byte [rax + 0x34], 1
je 0x4036b7
mov edx, r9d
mov eax, dword [rsp + 0x3c]
sub edx, r13d
cmp edx, 0xc8
ja 0x403672
test eax, eax
jne 0x4036b7
mov ecx, dword [rsp + 0x28]
mov dword [rsp + 0x2c], r9d
lea r13, [rsp + 0x40]
mov edx, 0x64
mov r8d, dword [rsp + 0x28]
sub ecx, eax
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov rcx, r13
lea rdx, str....__d__
mov r8d, eax
call qword [sym.imp.USER32.dll_wsprintfW]
mov rdx, r13
xor ecx, ecx
call fcn.004061eb
mov r9d, dword [rsp + 0x2c]
mov r13d, r9d
test edi, edi
je 0x4035d3
test rbp, rbp
jne 0x4036e3
mov rcx, qword [rsp + 0x118]
mov r8d, edi
mov rdx, r12
call fcn.00406c3a
test eax, eax
je 0x403766
add ebx, edi
jmp 0x4036ee
mov r12, qword [0x0042b8d0]
add ebx, edi
sub esi, edi
dec r15d
jne 0x40361b
jmp 0x40376b
mov rcx, qword [rsp + 0x118]
mov r8d, edi
mov rdx, rbp
call fcn.00406c3a
test eax, eax
je 0x403766
sub dword [rsp + 0x3c], edi
add ebx, edi
mov edi, dword [rsp + 0x3c]
test edi, edi
jle 0x40376b
cmp edi, esi
mov rcx, rbp
cmovg edi, esi
mov edx, edi
call fcn.004034e4
test eax, eax
jne 0x4036f9
mov ebx, 0xfffffffd
jmp 0x40376b
mov ebx, 0xfffffffc
jmp 0x40376b
test rbp, rbp
jne 0x40374f
xor ebx, ebx
lea rbp, [0x004178a0]
jmp 0x403716
cmp r9d, ebx
mov rcx, rbp
cmovle ebx, r9d
mov edx, ebx
call fcn.004034e4
test eax, eax
jne 0x40376b
jmp 0x403731
mov ebx, 0xfffffffe
mov eax, ebx
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x403a60
Capabilities:
Get common file path

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x0040bbf0]
mov rsi, qword [rax]
lea rbx, [rsi + 0xc800]
mov rcx, rbx
call fcn.00406fe9
mov rcx, rbx
call fcn.004069a4
test eax, eax
je 0x403ab0
mov rcx, rbx
call fcn.00406fab
mov rcx, rbx
call fcn.004067f7
lea rcx, [rsi + 0xc000]
mov rdx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.00406ba9
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x403ab9
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x0040bb50]
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x403adb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0xffffffffffffffff
call fcn.00404105
mov rax, qword [0x0040bbf0]
mov edx, 7
mov rcx, qword [rax]
add rcx, 0xd000
add rsp, 0x20
pop rbx
jmp fcn.00407496
Function at 0x406790
Capabilities:
Create directory

Disassembly:
sub rsp, 0x68
lea rax, [0x0040b7f0]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x48], rax
sub rax, 0x10
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], ReadFile
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0x18
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, eax
xor eax, eax
test edx, edx
jne 0x4067f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x68
ret

Function at 0x4067f7
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406812
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add rsp, 0x28
ret

Function at 0x406819
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x78
xor r9d, r9d
xor r8d, r8d
mov dword [0x0043a840], 0x68
lea rax, [rsp + 0x58]
mov rdx, rcx
xor ecx, ecx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], rax
lea rax, [0x0043a840]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000000
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
xor edx, edx
test eax, eax
je 0x406886
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
add rsp, 0x78
ret

Function at 0x40688e
Capabilities:
Create process on windows

Disassembly:
mov dword [rcx], 0x70
mov qword [rcx + 0x40], 0
jmp qword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x406ad2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
je 0x406af6
mov edx, eax
mov rcx, rsi
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x406aff
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ebx, edx
call fcn.00406ad2
mov edi, eax
cmp eax, 0xffffffff
jne 0x406b1b
xor ebx, ebx
jmp 0x406b4e
mov rcx, rsi
test bl, 1
je 0x406b46
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406b3f
and ebx, 4
jne 0x406b17
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x406b4e
mov ebx, 1
jmp 0x406b4e
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406b29
mov eax, ebx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x406b58
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x40
mov dword [rsp + 0x58], edx
mov rbx, rcx
mov dword [rsp + 0x60], r8d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r8d, dword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
cmp eax, 0xffffffff
jne 0x406b7f
xor eax, eax
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov r8d, 1
mov rcx, rbx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
add rsp, 0x40
pop rbx
ret
Function at 0x406ba9
Capabilities:
Get common file path

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov esi, 0x65
mov rbx, rcx
mov rdi, rdx
dec esi
je 0x406bf9
mov rax, qword [0x0040b600]
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
xor r8d, r8d
div ecx
mov r9, rbx
mov rcx, rdi
add word [rsp + 0x2c], dx
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x406bbb
jmp 0x406c00
mov word [rbx], 0
xor ebx, ebx
mov rax, rbx
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret

Function at 0x406c0b
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, r8d
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406c34
xor eax, eax
cmp dword [rsp + 0x3c], ebx
sete al
add rsp, 0x40
pop rbx
ret

Function at 0x406c3a
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov ebx, r8d
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406c63
xor eax, eax
cmp dword [rsp + 0x3c], ebx
sete al
add rsp, 0x40
pop rbx
ret

Function at 0x406d0c
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rax, qword [0x0040bb60]
inc dword [rax + 0x10]
add rsp, 0x28
ret

Function at 0x406e25
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rsi, r8
mov r8d, dword [rsp + 0x80]
mov rbx, r9
mov dword [rsp + 0x30], 0x800
test r8d, r8d
je 0x406e4c
mov r8d, 0x200
or r8d, 0x20019
lea r9, [rsp + 0x38]
call fcn.00406d89
test eax, eax
je 0x406e68
mov word [rbx], 0
jmp 0x406eb2
lea rax, [rsp + 0x30]
mov rdx, rsi
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov word [rbx + 0x7fe], 0
test esi, esi
jne 0x406e61
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x406e61
add rsp, 0x48
pop rbx
pop rsi
ret
Function at 0x4073e1
Capabilities:
Get file attributes

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rdx, rcx
lea rcx, [0x00439840]
call fcn.00406f90
lea rcx, [0x00439840]
call fcn.004069ce
mov rbx, rax
test rax, rax
jne 0x40740f
xor eax, eax
jmp 0x40748e
mov rcx, rax
call fcn.00406fe9
mov rax, qword [0x0040bb80]
test byte [rax], 0x80
je 0x407431
mov ax, word [rbx]
test ax, ax
je 0x40740b
cmp ax, 0x5c
je 0x40740b
lea rsi, [0x00439840]
mov rdi, qword [sym.imp.KERNEL32.dll_lstrlenW]
sub rbx, rsi
sar rbx, 1
mov rcx, rsi
call rdi
cdqe
cmp rax, rbx
jle 0x40746d
mov rcx, rsi
call fcn.004073b0
test rax, rax
je 0x407463
test byte [rax], 0x10
je 0x40740b
mov rcx, rsi
call fcn.00406968
jmp 0x407445
lea rcx, [0x00439840]
call fcn.00406fab
lea rcx, [0x00439840]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
inc eax
setne al
movzx eax, al
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x407496
Capabilities:
Delete file

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x288
mov edi, edx
mov rbx, rcx
mov esi, edx
call fcn.004073e1
and edi, 4
mov r13d, eax
test sil, 8
je 0x4074e1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rdx, qword [0x0040bb60]
test eax, eax
sete al
movzx eax, al
add dword [rdx + 8], eax
jmp 0x4076b1
mov r14d, esi
and r14d, 1
je 0x4074fc
test eax, eax
je 0x407697
test sil, 2
je 0x407654
mov rdx, rbx
lea rcx, [0x0043a040]
call fcn.00406f90
test r14d, r14d
je 0x407525
lea rdx, str..
lea rcx, [0x0043a040]
call sub.KERNEL32.dll_lstrcatW
jmp 0x40752d
mov rcx, rbx
call fcn.00406968
cmp word [rbx], 0
jne 0x40753d
cmp word [0x0043a040], 0x5c
jne 0x40754c
lea rdx, [0x0040b608]
mov rcx, rbx
call sub.KERNEL32.dll_lstrcatW
mov rcx, rbx
lea r12, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, r12
lea rcx, [0x0043a040]
cdqe
add rax, rax
add rax, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x40763f
lea rax, [r12 + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov qword [rsp + 0x28], rax
cmp word [rsp + 0x5c], 0x2e
jne 0x4075b5
mov ax, word [rsp + 0x5e]
test ax, ax
je 0x407625
cmp ax, 0x2e
jne 0x4075b5
cmp word [rsp + 0x60], 0
je 0x407625
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
call fcn.00406f90
test byte [rsp + 0x30], 0x10
je 0x4075e1
mov eax, esi
and eax, 3
cmp eax, 3
jne 0x407625
mov edx, esi
mov rcx, rbx
call fcn.00407496
jmp 0x407625
mov edx, edi
mov rcx, rbx
call fcn.00406aff
test eax, eax
jne 0x407618
test edi, edi
je 0x40760c
mov rdx, rbx
mov ecx, 0xfffffff1
call fcn.004061eb
xor edx, edx
mov rcx, rbx
call fcn.00406d0c
jmp 0x407625
mov rax, qword [0x0040bb60]
inc dword [rax + 8]
jmp 0x407625
mov rdx, rbx
mov ecx, 0xfffffff2
call fcn.004061eb
mov rdx, r12
mov rcx, rbp
call r15
test eax, eax
jne 0x407595
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
test r14d, r14d
je 0x4076b1
mov rax, qword [rsp + 0x20]
mov word [rax - 2], 0
test r13d, r13d
je 0x407697
mov rcx, rbx
call fcn.004073b0
test rax, rax
je 0x4076b1
mov rcx, rbx
call fcn.00406fab
mov edx, edi
mov rcx, rbx
or edx, 1
call fcn.00406aff
test eax, eax
jne 0x4076a3
test edi, edi
je 0x407697
mov rdx, rbx
mov ecx, 0xfffffff1
call fcn.004061eb
xor edx, edx
mov rcx, rbx
call fcn.00406d0c
jmp 0x4076b1
mov rax, qword [0x0040bb60]
inc dword [rax + 8]
jmp 0x4076b1
mov rdx, rbx
mov ecx, 0xffffffe5
call fcn.004061eb
nop
add rsp, 0x288
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x4076c5
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x260
mov edx, 0x104
lea rbx, [rsp + 0x24]
mov qword [rsp + 0x270], rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r9, qword [rsp + 0x270]
lea edx, [rax - 1]
cmp edx, 0x103
ja 0x407709
cmp word [rsp + rdx*2 + 0x24], 0x5c
sete dl
movzx edx, dl
jmp 0x407710
xor eax, eax
mov edx, 1
mov eax, eax
add rdx, rdx
add rax, rax
lea rcx, [rbx + rax]
lea rax, [0x0040b608]
lea r8, [rax + rdx]
lea rdx, str._s_S.dll
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, 8
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
add rsp, 0x260
pop rbx
ret
Function at 0x140760210
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140760397
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 0x140760241
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140760227
add dl, dl
jne 0x14076024e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407602ae
xor eax, eax
add dl, dl
jne 0x14076025d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140760365
add dl, dl
jne 0x14076026e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14076027b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140760288
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140760295
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407602a2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140760236
mov eax, 1
add dl, dl
jne 0x1407602be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407602cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407602b3
sub eax, ebx
mov ebx, 1
jne 0x140760304
mov ecx, 1
add dl, dl
jne 0x1407602e6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407602f3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407602db
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140760236
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140760320
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14076032d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140760315
cmp eax, 0x7d00
jae 0x140760353
cmp eax, 0x500
jb 0x14076034e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140760236
cmp eax, 0x7f
ja 0x140760356
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140760236
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14076038a
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 0x140760236
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x6dc59740
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6dc7a5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6dc598c8
mov rax, qword [0x6dc7a5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6dc5978c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6dc59815
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6dc59770
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6dc598fd
mov rax, qword [0x6dc7a5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6dc7a5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6dc598e0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6dc5980e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6dc59870
add dword [0x6dc7a5e4], 1
cmp edi, 8
jae 0x6dc59843
test dil, 4
jne 0x6dc598b4
test edi, edi
je 0x6dc59838
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6dc598cf
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6dc59838
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6dc5985c
jmp 0x6dc59838
add rsi, qword [0x6dc7a5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6dc5980e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6dc59838
xor esi, esi
jmp 0x6dc59797
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6dc59838
mov rax, qword [0x6dc7a5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6dc5a050
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6dc7a8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6dc7a8a0]
test rbx, rbx
je 0x6dc5a0a4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6dc5a09b
test rsi, rsi
je 0x6dc5a09b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6dc5a080
lea rcx, [0x6dc7a8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6dc5a2e0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6dc5a2f0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6dc5a300
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6dc5a341
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6dc5a338
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6dc5a343
add rax, 0x28
cmp rax, r9
jne 0x6dc5a324
xor eax, eax
ret

Function at 0x6dc5a3e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6dc771f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6dc5a44d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6dc5a44d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6dc5a44d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6dc5a444
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6dc5a44f
add rax, 0x28
cmp rax, r9
jne 0x6dc5a430
xor eax, eax
add rsp, 0x28
ret

Function at 0x6dc5a550
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6dc771f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6dc5a570
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6dc5a568
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6dc5a5cd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6dc5a5c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6dc5a5d4
add rax, 0x28
cmp rax, r9
jne 0x6dc5a5b0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6dc5a5f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6dc771f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6dc5a65e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6dc5a65e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6dc5a65e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6dc5a65e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6dc5a655
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6dc5a665
add rcx, 0x28
cmp rcx, rax
jne 0x6dc5a640
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6dc5a678
jmp 0x6dc5a65e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6dc5a686
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6dc5a65e
test r9d, r9d
jg 0x6dc5a670
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6dc5a9c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1400a8e60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0xfd3fe02f
add eax, dword [0x140532d9c]
cmp ecx, eax
jne 0x1400a8e98
movzx eax, byte [0x1405313df]
cmp al, 0xc
je 0x1400a8e90
mov cl, 0xc8
nop dword [rax]
mov al, 0x92
lock cmpxchg byte [0x1405313df], cl
je 0x1400a8f03
cmp al, 0xc
jne 0x1400a8e80
lea rax, [0x1405313d0]
ret
movzx eax, byte [0x140531245]
nop
cmp al, 0x6c
je 0x1400a8f40
movzx ecx, byte [0x140532d98]
lea eax, [rcx + 0x1c]
add cl, 0x8b
lock cmpxchg byte [0x140531245], cl
jne 0x1400a8ea0
xor eax, eax
lea rcx, [0x140531230]
lea rdx, [0x14046adf0]
nop
movzx r8d, byte [rax + rdx]
add byte [rax + rcx], r8b
lea r8d, [rax + 1]
mov r9d, dword [0x140532d9c]
mov r10d, r9d
xor r10d, 0xfd3fe044
and r9d, 0x7d3fe044
lea r9d, [r10 + r9*2]
cmp r8d, r9d
jge 0x1400a8f38
inc rax
jmp 0x1400a8ed0
xor eax, eax
lea rcx, [0x1405313d0]
lea rdx, [0x14046af80]
nop word cs:[rax + rax]
movzx r8d, byte [rax + rdx]
add byte [rax + rcx], r8b
lea r8d, [rax + 1]
cmp r8d, 0xe
jg 0x1400a8f48
inc rax
jmp 0x1400a8f20
mov al, 0x6c
xchg byte [0x140531245], al
lea rax, [0x140531230]
ret
mov al, 0xc
xchg byte [0x1405313df], al
lea rax, [0x1405313d0]
ret