joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140130000
Capabilities:
Execute syscall
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
jmp 0x1401300cb
lea rax, [r10 + r9*4]
mov ecx, dword [rax + r11]
add rcx, r11
movzx eax, byte [rcx]
je 0x140130051
jne 0x140130051
cmp rcx, rdx
int3
jmp 0x140130066
inc rcx
test al, al
je 0x14013008a
jmp 0x1401300fe
test al, al
jne 0x140130101
cmp edx, 0xab7addf6
je 0x14013018e
inc r8d
jmp 0x1401300ac
mov r11, qword [r10 + 0x30]
movsxd rax, dword [r11 + 0x3c]
mov ebx, dword [rax + r11 + 0x88]
mov r10d, dword [rbx + r11 + 0x20]
nop dword [rax + rax]
mov r9d, r8d
mov edx, 0x1f8b9843
jmp 0x140130014
mov rax, qword [r10 + 0x10]
xchg rcx, r10
mov rcx, qword [rax]
xchg rcx, r10
jmp 0x140130092
xchg rcx, r12
mov qword [rsp + 8], r12
xchg rcx, r12
push rbp
nop
push r12
mov qword [rsp], rbx
jmp 0x1401300e3
push rdi
push r13
push r14
nop
sub rsp, 8
mov qword [rsp], r15
lea rbp, [rsp - 0x2b8]
jmp 0x140130119
nop dword [rax]
movsx eax, al
lea rcx, [rcx + 1]
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [rcx - 1]
jmp 0x140130076
sub rsp, 0x3b8
mov rax, qword gs:[0x60]
xor r13d, r13d
mov r8d, r13d
xchg r12, r10
mov r12, qword [rax + 0x18]
xchg r10, r12
jne 0x14013016c
je 0x14013016c
ror r12d, 0x64
jmp rax
jmp 0x1401300b9
mov rax, qword gs:[0x60]
mov r8d, r13d
mov ecx, dword [rbx + r11 + 0x24]
add rcx, r11
jmp 0x1401302a1
xchg rbp, rax
mov rbp, qword [rcx + 0x10]
xchg rbp, rax
jmp 0x14013025c
mov r11d, dword [rbx + r9 + 0x20]
mov rcx, qword [rax]
xchg r9, r14
mov r14, qword [rcx + 0x30]
xchg r9, r14
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
jmp 0x1401301ec
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + r11 + 0x1c]
add rcx, r11
mov edi, dword [rcx + rdx*4]
mov rcx, qword [rax + 0x18]
add rdi, r11
jmp 0x1401301df
mov eax, dword [rcx + 0x10]
xchg r12, rcx
add rsi, r9
mov rax, qword [rcx + 0x10]
xchg rcx, rdi
mov rdi, qword [rax]
xchg rcx, rdi
mov r9, qword [rcx + 0x30]
jmp 0x140130680
lea rax, [r11 + r10*4]
mov ecx, dword [rax + r9]
add rcx, r9
movzx eax, byte [rcx]
inc rcx
test al, al
jmp 0x140130581
inc r8d
jmp 0x140130696
je 0x140130579
nop dword [rax]
movsx eax, al
lea rcx, [rcx + 1]
jmp 0x140130596
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [rcx - 1]
test al, al
jne 0x14013058a
cmp edx, 0xcc9595cf
je 0x1401306a3
jmp 0x140130579
Function at 0x140132f28
Capabilities:
Contain obfuscated stackstrings

Disassembly:
popfq
rcr ecx, 0xd6
jmp rcx
jmp 0x140131c53
add byte [rax], al
xchg rdi, rax
nop word [rax + rax]
mov byte [rbp + rax - 0x34], r13b
inc rax
cmp rax, 0x53
jmp 0x140132ea5
xchg r8, r12
mov dword [rbp + 0x18], 0x76766b7e
mov word [rbp - 0x38], 0xf6f6
mov dword [rbp + 0x1c], 0x386e6f
mov byte [rbp - 0x36], 0xf6
nop dword [rax]
movzx eax, byte [rbp + rdx - 0x34]
je 0x140132d2f
jne 0x140132d2f
ror r13d, 0x88
add r14d, 0xd3a117f7
pop r13
movabs rdi, 0x2bf18f0000029de9
add esi, 0xfe89d656
jo 0x140132a50
jmp 0x140132fd1
neg rsi
push rbx
test r8d, 0xb3578075
jl 0x140131e19
lea ebx, [rbx - 0x17f4]
call fcn.140131eed
lea rdx, [rbp - 0x34]
xor ecx, ecx
call r12
xchg rdi, rax
mov rdi, r13
jmp 0x140132cc0
mov dword [rbp + 0x10], 0x6f7c6b2a
mov dword [rbp - 0x40], 0xf6f6f6f6
mov dword [rbp + 0x14], 0x7d78732a
mov dword [rbp - 0x3c], 0xf6f6f6f6
jmp 0x140132cfb
jb 0x140132ccd
nop
mov byte [rsp + r13 + 0x36], 0
inc r13
jmp 0x140132ebb
cmp r13, 5
jb 0x140132ead
mov eax, 0xfffffffe
xchg r12, r8
mov r8, qword [rsp + 0x3a8]
jmp 0x140132cde
mov dword [rbp + 0xc], 0x7d6f766c
mov dword [rbp - 0x44], 0xf6f6f6f6
jne 0x140132f5c
je 0x140132f5c
jmp rax
jmp 0x140132e3b
movzx ecx, byte [rsp + rdx + 0x78]
add cl, al
mov byte [rbp + rdx - 0x34], cl
mov byte [rsp + rdx + 0x78], r13b
inc rdx
cmp rdx, 0x53
jmp 0x140133040
jb 0x140132d17
mov r9d, 0x10
lea r8, [rsp + 0x36]
jmp 0x140132d91
Function at 0x140005610
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rdi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov r9, rcx
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
movabs r15, 0x7a1435883d4d519d
cmp rdi, 0x20
jb 0x140005709
mov r8, qword [r9 + 0x18]
mov rdx, qword [rcx + 8]
mov rax, r8
mov r9, qword [r9 + 0x20]
mov rcx, qword [rcx + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rcx
rol rax, 7
add r10, rax
mov rax, rdx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rdx, rbp
imul rcx, rbp
imul r8, rbp
imul r9, rbp
rol rdx, 0x1f
imul rdx, rsi
rol rcx, 0x1f
xor r10, rdx
rol r8, 0x1f
imul r10, rsi
imul rcx, rsi
imul r8, rsi
sub r10, r15
rol r9, 0x1f
xor r10, rcx
imul r10, rsi
imul r9, rsi
sub r10, r15
xor r10, r8
imul r10, rsi
sub r10, r15
xor r10, r9
imul r10, rsi
add rax, r10
add rax, rdi
jmp 0x140005711
lea rax, [rdi + r14]
add rax, qword [rcx + 0x18]
lea rdx, [r11 + 8]
cmp rdx, rbx
ja 0x14000574a
nop word [rax + rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, rbp
add r11, 8
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
cmp rdx, rbx
jbe 0x140005720
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140005775
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rsi
xor rax, rcx
rol rax, 0x17
imul rax, rbp
add rax, r8
cmp r11, rbx
jae 0x14000579b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r14
xor rax, rcx
rol rax, 0xb
imul rax, rsi
cmp r11, rbx
jb 0x140005780
mov rbx, qword [rsp + 0x18]
mov rcx, rax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
shr rcx, 0x21
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x20]
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
ret

Function at 0x14000b050
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000b095
xor al, al
jmp 0x14000b0e2
cmp word [rbx], 0
je 0x14000b0ad
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000b0a0
cmp word [rsp + 0x30], 0
je 0x14000b0db
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000b103
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000b0c0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000d2b0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.140010c1c
int3
Function at 0x14000b1d0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
movzx eax, cl
mov rcx, qword [0x140031b00]
test rcx, rcx
je 0x14000b241
test al, al
je 0x14000b216
call qword [sym.imp.KERNEL32.dll_GetProcessId]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
test eax, eax
jne 0x14000b20f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_send_CTRL_C_to_child_process.
call fcn.14000c1f0
mov rcx, qword [0x140031b00]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b234
mov rcx, qword [0x140031b00]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140031b00]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140031b0d], 0
je 0x14000b339
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140025c30]
mov qword [rsp + 0x80], rsi
lea rsi, [0x14003e380]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b31a
test al, 0x10
je 0x14000b31a
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b2c0
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000c540
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x14000c5f1
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.140010f50
cmp rax, 1
jne 0x14000c627
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14000c5cd
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14000c5c0
cmp rcx, 1
jb 0x14000c627
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14000c590
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000d2b0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140010c1c
int3
Function at 0x14000dba4
Capabilities:
Parse pe header

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

Function at 0x140010a0c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140010a7b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010a7b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010a7b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010a7b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010a7b
cmp dword [rcx + 0x84], 0xe
jbe 0x140010a7b
cmp dword [rcx + 0xf8], 0
je 0x140010a7b
mov ecx, ebx
call fcn.140010b2c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140010908
nop
cmp dword [rbp + 0x20], 0
je 0x140010ac9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140010ad4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140010a0c

Function at 0x140010c10
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140010a7b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010a7b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140010a7b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140010a7b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140010a7b
cmp dword [rcx + 0x84], 0xe
jbe 0x140010a7b
cmp dword [rcx + 0xf8], 0
je 0x140010a7b
mov ecx, ebx
call fcn.140010b2c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140010908
nop
cmp dword [rbp + 0x20], 0
je 0x140010ac9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140010ad4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140010a0c
Function at 0x140019e58
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140019edf
mov rsi, rbx
cmp word [rax], bp
je 0x140019e9e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019e88
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140019e84
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400154e4
mov rdi, rax
test rax, rax
je 0x140019ecc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400205d0
mov rbp, rdi
xor ecx, ecx
call fcn.1400154a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001c04c
Capabilities:
Get file size

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

Function at 0x1400202e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140020308
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140020308
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000e170
Capabilities:
Get disk information

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x240
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x238], rax
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
xor edx, edx
call fcn.1400101a0
mov rcx, rdi
call fcn.1400176d8
cmp rax, 0x104
ja 0x14000e1ed
lea rbx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rbx
mov rdx, rdi
call fcn.140017ba0
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [rsi], ecx
mov ebx, 1
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.1400195d0
mov eax, ebx
add rsp, 0x240
pop rbx
pop rdi
pop rsi
ret

Function at 0x14000e280
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push rsi
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140038010]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x14000e2f4
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14000e32a
lea rdx, [rsp + 0x54]
lea rsi, [0x14003a1cc]
mov r8d, 0x105
mov rcx, rsi
call fcn.140017ba0
mov word [0x14003a3d4], 0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400195d0
mov rax, rsi
add rsp, 0x280
pop rsi
ret
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x14000e2b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.140014b94
cmp esi, 2
mov ecx, 9
cmove ecx, esi
mov dword [rax], ecx
xor esi, esi
jmp 0x14000e2d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x14000e339
xor esi, esi
jmp 0x14000e2d8
call fcn.140014b94
mov dword [rax], 2
xor esi, esi
jmp 0x14000e2d8

Function at 0x14000f3e0
Capabilities:
Access peb ldr_data

Disassembly:
push rdi
push r9
push rax
sub rdi, rdi
add rdi, 0x60
mov r9, qword gs:[rdi]
push rdx
mov rdx, qword [r9 + 0x10]
mov rdi, r9
add rdi, 0x18
mov rax, qword [rdi]
mov r9, qword [rax + 0x10]
push r10
mov rdi, qword [r9 + 0x30]
test rdi, rdi
je 0x14000f431
mov rax, qword [r9 + 0x60]
mov r10, qword [rax]
and r10d, 0xdf00df
mov rax, qword [rax + 0xb]
add eax, r10d
sub eax, 0x3245334b
test rax, rax
je 0x14000f439
mov rax, qword [r9]
lea r9, [rax]
jmp 0x14000f404
mov r9d, dword [rdi + 0x3c]
add r9, rdi
add r9, 0x10
mov eax, dword [r9 + 0x78]
add rax, rdi
push rbx
mov r10d, dword [rax + 0x20]
add r10, rdi
mov ebx, dword [r10]
add rbx, rdi
mov r9d, dword [rbx + 0xb]
sub r9d, 0x746365
test r9d, r9d
jne 0x14000f46b
jmp 0x14000f477
add r10, 4
jmp 0x14000f453
mov r9d, dword [rax + 0x20]
sub r10, rdi
sub r10, r9
shr r10d, 1
mov r9d, dword [rax + 0x24]
add r9, r10
add r9, rdi
mov r10d, dword [r9]
shl r10d, 0x10
shr r10d, 0xe
mov r9d, dword [rax + 0x1c]
add r9, r10
ror dword [rbx + rax - 0x31], 1
mov r10d, dword [r9]
add r10, rdi
add edx, edi
movabs r9, 0xa4000
add r9, rdx
push rdi
push rdx
push r9
push rbx
push rbx
mov rcx, r9
Function at 0x140013f1c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140014054
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400140bb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400140bb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400140bb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400140bb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400140bb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400140bb
cmp dword [rcx + 0xf8], 0
je 0x1400140bb
mov ecx, ebx
call fcn.140013fa0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400141e8
cmp dword [rbp + 0x20], 0
je 0x140014108
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140013ffc
int3

Function at 0x140016054
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140016074
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140014bd4
or eax, 0xffffffff
jmp 0x140016076
xor eax, eax
add rsp, 0x28
ret
Function at 0x2fc4c3820
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4c48e0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4c4222
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4e8108]
test eax, eax
je 0x2fc4c42ba
lea rax, [0x2fc4e80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4e8110]
mov qword [rbp - 8], rax
jmp 0x2fc4c429e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4c4292
cmp qword [rbp - 0x10], 0
je 0x2fc4c4292
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4c4258
lea rax, [0x2fc4e80e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4c42bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4c43c0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4c43e8
mov eax, 0
jmp 0x2fc4c4436
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4c4411
mov eax, 0
jmp 0x2fc4c4436
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4c4431
mov eax, 0
jmp 0x2fc4c4436
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4c443c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4c44ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4c44b1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4c44b1
mov rax, qword [rbp - 8]
jmp 0x2fc4c44cf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4c4484
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001c70
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008080]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140001d43
cmp byte [rcx + 0x71], 0
je 0x140001d43
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140001d3f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140001d04
sub eax, 1
je 0x140001d08
cmp eax, 2
jne 0x140001d3f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003130
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140001d36
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140001d3f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140001cec
xor al, al
jmp 0x140001cec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003130
add rsp, 0x60
pop rbx
ret