joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf28544
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
and qword [0x00f45f40], 0
and qword [rbp + 0x1c8], 0
mov ecx, 0x15b7
mov dword [0x00f432e0], 1
call fcn.00f2de0c
lea rdx, [rsp + 0x70]
mov rcx, rax
mov r8d, 0x1f
mov qword [rbp + 0x1c8], rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0xf28619
and qword [rbp + 0x1d0], 0
mov ecx, 0xdb2
call fcn.00f2de0c
and qword [rsp + 0x28], 0
lea r9, [0x00f47070]
lea rdx, [rbp + 0xa0]
lea rcx, [0x00f359ac]
mov r8d, 0x104
mov qword [rbp + 0x1d0], rax
mov qword [rsp + 0x20], rax
call fcn.00f2d25c
lea rcx, [rbp + 0x1d0]
call fcn.00f2def0
lea rcx, [rbp + 0xa0]
call fcn.00f2fc50
test eax, eax
jne 0xf28619
lea rcx, [rbp + 0x1c8]
mov dword [0x00f432e4], 1
call fcn.00f2def0
xor eax, eax
jmp 0xf287ba
lea rcx, [rbp + 0x1c8]
call fcn.00f2def0
call fcn.00f2d510
test eax, eax
jne 0xf2863c
lea rdx, [0x00f46024]
xor ecx, ecx
call fcn.00f2db40
mov ecx, 0x14
call fcn.00f2d950
test rax, rax
je 0xf28650
cmp byte [rax], 0x31
je 0xf28612
mov edx, 0x3a98
xor ecx, ecx
call fcn.00f2c990
mov qword [0x00f432d8], rax
test rax, rax
je 0xf28612
mov ecx, dword [0x00f41d70]
imul rcx, rcx, 0xfc50
call fcn.00f2ca10
mov qword [0x00f432d0], rax
test rax, rax
jne 0xf2868e
and dword [0x00f41d70], eax
jmp 0xf28612
call fcn.00f2846c
mov qword [rbp + 0x1c0], rax
test rax, rax
je 0xf286b5
mov rcx, rax
call fcn.00f29b90
lea rcx, [rbp + 0x1c0]
xor edx, edx
call fcn.00f3172c
mov ebx, 1
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.00f283fc
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
lea r9, [0x00f46264]
lea rdx, [rbp - 0x70]
lea rcx, [0x00f359ac]
mov r8d, 0x104
mov qword [rsp + 0x20], rax
call fcn.00f2d25c
lea r8, [0x00f46024]
lea rcx, [rbp - 0x70]
xor r9d, r9d
mov dl, 1
call fcn.00f31598
mov qword [rbp + 0x1c0], rax
test rax, rax
je 0xf2872a
mov rcx, rax
call fcn.00f29b90
lea rcx, [rbp + 0x1c0]
xor edx, edx
call fcn.00f3172c
inc ebx
cmp ebx, 2
jbe 0xf286ba
mov ecx, 0xde7
call fcn.00f2de0c
and qword [rsp + 0x28], 0
lea r9, [0x00f46264]
lea rdx, [rbp - 0x70]
lea rcx, [0x00f359ac]
mov r8d, 0x104
mov qword [rbp + 0x1c8], rax
mov qword [rsp + 0x20], rax
call fcn.00f2d25c
lea rcx, [rbp + 0x1c8]
call fcn.00f2def0
lea rcx, [rbp - 0x70]
xor r9d, r9d
xor r8d, r8d
mov dl, 1
call fcn.00f31598
mov qword [rbp + 0x1c0], rax
test rax, rax
je 0xf287a9
mov rcx, rax
call fcn.00f29b90
lea rcx, [rbp + 0x1c0]
xor edx, edx
call fcn.00f3172c
mov rcx, qword [0x00f432d8]
call fcn.00f2c978
mov eax, 1
mov rbx, qword [rsp + 0x2d8]
add rsp, 0x2b0
pop rbp
ret

Function at 0xf2c918
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
mov r8, rcx
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
jne 0xf2c93a
xor eax, eax
jmp 0xf2c955
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0xf2c952
mov rcx, rbx
call qword [0x00f477c0]
jmp 0xf2c936
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0xf2c990
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov r8, rcx
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0xf2c9dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0xf2c9da
mov edx, edi
mov rcx, rbx
call fcn.00f2c95c
test eax, eax
jns 0xf2c9da
mov rcx, rbx
call qword [0x00f477c0]
xor ebx, ebx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0xf2de0c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
mov rax, qword [0x00f45e18]
xor ebx, ebx
movsxd rsi, ecx
mov edi, ebx
test rax, rax
jne 0xf2de5e
lea rcx, [0x00f384a0]
mov edx, 0x1ab7
call fcn.00f2cad0
mov qword [0x00f45e18], rax
test rax, rax
jne 0xf2de5e
lea rax, [0x00f45e28]
jmp 0xf2ded5
mov r8d, 0x1ab6
mov ecx, esi
mov rbp, rsi
lea r12, [0x00f41d80]
cmp esi, r8d
jae 0xf2de96
lea rdx, [rax + rsi]
mov eax, ecx
and eax, 0x3f
mov al, byte [rax + r12]
xor al, byte [rdx]
je 0xf2de92
inc ecx
inc rdx
cmp ecx, r8d
jb 0xf2de79
jmp 0xf2de96
mov edi, ecx
sub edi, esi
lea ecx, [rdi + 1]
call fcn.00f2ca10
mov r11, rax
test rax, rax
je 0xf2de55
test edi, edi
je 0xf2ded2
mov rdx, qword [0x00f45e18]
sub rbp, rax
mov rcx, rax
add rdx, rbp
lea eax, [rbx + rsi]
inc ebx
and eax, 0x3f
mov al, byte [rax + r12]
xor al, byte [rdx + rcx]
mov byte [rcx], al
inc rcx
cmp ebx, edi
jb 0xf2deba
mov rax, r11
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0xf2e10c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, r8
movzx r10d, dx
mov rbx, rcx
xor edi, edi
mov r8d, r9d
mov rdx, rax
and dword [rbp - 0x1c], edi
movzx ecx, r10w
mov esi, r9d
mov dword [rbp - 0x20], 2
call fcn.00f2e098
mov qword [rbp - 0x18], rax
test rax, rax
je 0xf2e235
and qword [rsp + 0x30], rdi
and dword [rsp + 0x28], edi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0xf2e219
mov byte [rbp - 1], dil
xor eax, eax
lea rdx, [rbp - 0x10]
lea ecx, [rax + 0x41]
inc eax
mov byte [rdx], cl
inc rdx
cmp eax, 0xf
jb 0xf2e194
lea rcx, [rbp - 0x10]
call fcn.00f2cec4
lea rdx, [rbp - 0x20]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0xf2e1e7
mov byte [rbp - 1], dil
xor ecx, ecx
lea rdx, [rbp - 0x10]
lea eax, [rcx + 0x41]
inc ecx
mov byte [rdx], al
inc rdx
cmp ecx, 0xf
jb 0xf2e1cd
lea rcx, [rbp - 0x10]
call fcn.00f2cec4
jmp 0xf2e219
mov rdx, qword [rbp - 0x18]
and qword [rsp + 0x20], rdi
lea r9, [rbp - 0x1c]
mov r8d, dword [rdx + 4]
mov rcx, rbx
add r8d, 8
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
test eax, eax
je 0xf2e219
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov edi, 1
test rbx, rbx
je 0xf2e227
mov rcx, rbx
call qword [0x00f477c0]
lea rcx, [rbp - 0x18]
mov rdx, rsi
call fcn.00f2ca40
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0xf2e4a8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rdx], ecx
mov dword [rdx + 0x9c0], 1
movsxd rcx, dword [rdx + 0x9c0]
mov eax, dword [rdx + rcx*4 - 4]
shr eax, 0x1e
xor eax, dword [rdx + rcx*4 - 4]
imul eax, eax, 0x6c078965
add eax, ecx
mov dword [rdx + rcx*4], eax
inc dword [rdx + 0x9c0]
cmp dword [rdx + 0x9c0], 0x270
jl 0xf2e4b4
repz ret
Function at 0xf2e4e8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [rcx + 0x9c0], 0x270
mov r8, rcx
jl 0xf2e5ad
xor r9d, r9d
mov r10d, 0x7fffffff
lea r11, [0x00f421b0]
mov edx, 0xe3
mov ecx, dword [r8 + r9*4 + 4]
xor ecx, dword [r8 + r9*4]
and ecx, r10d
xor ecx, dword [r8 + r9*4]
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [r11 + rax*4]
xor eax, ecx
xor eax, dword [r8 + r9*4 + 0x634]
mov dword [r8 + r9*4], eax
inc r9
cmp r9, rdx
jl 0xf2e510
mov ecx, dword [r8 + rdx*4 + 4]
xor ecx, dword [r8 + rdx*4]
and ecx, r10d
xor ecx, dword [r8 + rdx*4]
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [r11 + rax*4]
xor eax, ecx
xor eax, dword [r8 + rdx*4 - 0x38c]
mov dword [r8 + rdx*4], eax
inc rdx
cmp rdx, 0x26f
jl 0xf2e541
mov edx, dword [r8 + 0x9bc]
xor edx, dword [r8]
and edx, r10d
xor edx, dword [r8 + 0x9bc]
mov eax, edx
shr edx, 1
and eax, 1
mov ecx, dword [r11 + rax*4]
xor ecx, dword [r8 + 0x630]
xor ecx, edx
and dword [r8 + 0x9c0], 0
mov dword [r8 + 0x9bc], ecx
movsxd rcx, dword [r8 + 0x9c0]
mov edx, dword [r8 + rcx*4]
lea eax, [rcx + 1]
mov dword [r8 + 0x9c0], eax
mov eax, edx
shr eax, 0xb
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
ret

Function at 0xf2e684
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
not r8d
test edx, edx
jne 0xf2e691
xor eax, eax
ret
mov r9d, edx
lea rdx, [0x00f39f90]
movzx eax, byte [r10]
inc r10
xor r8d, eax
mov eax, r8d
shr r8d, 4
and eax, 0xf
mov ecx, dword [rdx + rax*4]
xor ecx, r8d
mov eax, ecx
shr ecx, 4
and eax, 0xf
mov r8d, dword [rdx + rax*4]
xor r8d, ecx
dec r9
jne 0xf2e69b
not r8d
mov eax, r8d
ret

Function at 0xf2e860
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
and qword [rsp + 0x48], 0
mov rsi, rdx
call fcn.00f2e730
mov rdi, rax
test rax, rax
je 0xf2e8ee
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test eax, eax
je 0xf2e8e5
lea ecx, [rbx + 1]
call fcn.00f2ca10
mov qword [rsp + 0x48], rax
test rax, rax
je 0xf2e8e5
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call fcn.00f2e7e0
test eax, eax
je 0xf2e8e5
cmp dword [rsp + 0x40], ebx
jne 0xf2e8e5
mov rax, qword [rsp + 0x48]
mov byte [rbx + rax], 0
test rsi, rsi
je 0xf2e8d5
mov dword [rsi], ebx
mov rcx, rdi
call qword [0x00f477c0]
mov rax, qword [rsp + 0x48]
jmp 0xf2e904
mov rcx, rdi
call qword [0x00f477c0]
cmp qword [rsp + 0x48], 0
je 0xf2e902
lea rcx, [rsp + 0x48]
xor edx, edx
call fcn.00f2ca40
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0xf2fa4c
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r13d, r8d
mov r15, rdx
mov rsi, rcx
xor ebp, ebp
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r14d, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [rbp + 4]
mov edx, eax
call qword [0x00f47878]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0xf2fbaa
mov ecx, 0x190
call fcn.00f2ca10
mov rcx, rbx
mov qword [rsp + 0x88], rax
test rax, rax
jne 0xf2fac7
call qword [0x00f477c0]
xor eax, eax
jmp 0xf2fbb9
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0xf2fba1
xor r12d, r12d
cmp dword [rsp + 0x2c], r14d
jne 0xf2fb8c
xor ecx, ecx
test r13d, r13d
je 0xf2fb10
mov edx, dword [rsp + 0x28]
mov rax, r15
cmp edx, dword [rax]
je 0xf2fb8c
inc ecx
add rax, 4
cmp ecx, r13d
jb 0xf2fafd
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, dword [rsp + 0x28]
cmp r8d, eax
je 0xf2fb8c
xor edx, edx
lea ecx, [rdx + 2]
call qword [0x00f47770]
mov rdi, rax
test rax, rax
je 0xf2fb8c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0xf2fb83
mov rdx, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x28]
inc ebp
mov dword [r12 + rdx], ecx
mov eax, 0x51eb851f
add r12, 4
mul ebp
shr edx, 5
imul edx, edx, 0x64
cmp ebp, edx
jne 0xf2fb83
lea r8d, [rbp + 0x64]
mov edx, ebp
lea rcx, [rsp + 0x88]
shl r8, 2
shl rdx, 2
call fcn.00f2cb30
mov rcx, rdi
call qword [0x00f477c0]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0xf2fae4
mov rcx, rbx
call qword [0x00f477c0]
test rsi, rsi
je 0xf2fbb1
mov dword [rsi], ebp
mov rax, qword [rsp + 0x88]
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0xf2fc2c
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov edx, 0x80
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_DeleteFileW]

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

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0xf2fdd8
Capabilities:
Compare security identifiers

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x68
xor r13d, r13d
mov word [rbp + 0x44], 0x500
lea ecx, [r13 + 8]
mov ebx, r13d
mov qword [rbp + 0x48], r13
mov dword [rbp + 0x40], r13d
call fcn.00f2fc6c
mov rsi, rax
test rax, rax
je 0xf2fecf
mov edi, 2
lea r8, [rbp + 0x38]
mov rcx, rax
mov edx, edi
call fcn.00f2fcc8
mov qword [rbp + 0x48], rax
test rax, rax
je 0xf2feb3
lea rax, [rbp + 0x50]
lea r8d, [rdi + 0x1e]
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov r9d, 0x220
mov edx, edi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
call qword [0x00f47900]
test eax, eax
je 0xf2feb3
mov rax, qword [rbp + 0x48]
mov edi, r13d
cmp dword [rax], r13d
jbe 0xf2fea9
mov r12, r13
mov rdx, qword [rbp + 0x50]
mov rcx, qword [r12 + rax + 8]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0xf2fea4
mov rax, qword [rbp + 0x48]
inc edi
add r12, 0x10
cmp edi, dword [rax]
jb 0xf2fe81
jmp 0xf2fea9
mov ebx, 1
mov rcx, qword [rbp + 0x50]
call qword [0x00f47840]
mov rcx, rsi
call qword [0x00f477c0]
cmp qword [rbp + 0x48], r13
je 0xf2fecd
lea rcx, [rbp + 0x48]
xor edx, edx
call fcn.00f2ca40
mov eax, ebx
add rsp, 0x68
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0xf2fedc
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x60
xor r9d, r9d
mov dword [rax + 0x10], 0
mov word [rax + 0x14], 0x500
lea rax, [rax + 0x18]
mov rbx, rcx
lea edx, [r9 + 1]
mov qword [rsp + 0x50], rax
and dword [rsp + 0x48], 0
and dword [rsp + 0x40], 0
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8d, [r9 + 0x12]
lea rcx, [rsp + 0x78]
call qword [0x00f47900]
test eax, eax
je 0xf2ff58
mov rdx, qword [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov rcx, qword [rsp + 0x80]
mov ebx, eax
call qword [0x00f47840]
mov eax, ebx
add rsp, 0x60
pop rbx
ret
Function at 0xf30458
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x170]
sub rsp, 0x270
cmp dword [0x00f46150], 3
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
je 0xf30512
mov rdx, qword [0x00f48558]
mov rcx, qword [0x00f47280]
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
jne 0xf30512
and qword [rsp + 0x48], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov r12, rax
call fcn.00f2d510
test eax, eax
jne 0xf304c8
lea rdx, [0x00f46024]
xor ecx, ecx
call fcn.00f2db40
mov ecx, 0x30
call fcn.00f2d950
test rax, rax
je 0xf304dc
cmp byte [rax], 0x31
je 0xf30512
mov ecx, 0x15b7
call fcn.00f2de0c
mov qword [rsp + 0x48], rax
test rax, rax
je 0xf3052f
lea rdx, [rsp + 0x50]
mov r8d, 0x1f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea rcx, [rsp + 0x48]
test eax, eax
je 0xf3052a
call fcn.00f2def0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
call fcn.00f2def0
call fcn.00f2f120
mov qword [rsp + 0x40], rax
test rax, rax
je 0xf305cb
mov ecx, 0xe3b
call fcn.00f2de0c
lea rcx, [0x00f46050]
lea rdx, str.null
mov qword [rsp + 0x30], rcx
mov ecx, dword [0x00f47174]
test r12, r12
cmovne rdx, r12
mov dword [rsp + 0x28], ecx
lea r9, [0x00f47178]
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x70]
mov r8, rax
mov edx, 0x200
mov qword [rbp + 0x1a8], rax
call fcn.00f2e29c
lea rcx, [rbp + 0x1a8]
call fcn.00f2def0
mov rdx, qword [0x00f48200]
mov rcx, qword [rsp + 0x40]
call fcn.00f2f1a0
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x70]
call fcn.00f2f250
lea rcx, [rsp + 0x40]
call fcn.00f2f630
lea rcx, [rbp + 0x1a8]
mov r8d, edi
mov rdx, rsi
call fcn.00f2fa4c
test rbx, rbx
je 0xf305ec
cmp qword [rbx], 0
je 0xf30512
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0xf305cb

Function at 0xf30934
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
cmp dword [0x00f46020], 0
je 0xf30948
mov eax, 9
jmp 0xf30958
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [rsp + 0x20]
add rsp, 0x58
ret
Function at 0xf3189c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r9b, byte [r8 + 0x100]
mov r10b, byte [r8 + 0x101]
movsxd rdx, edx
mov r11, rcx
test rdx, rdx
jle 0xf3193d
movzx r9d, r9b
inc r9d
and r9d, 0x800000ff
jge 0xf318dc
dec r9d
or r9d, 0xffffff00
inc r9d
movzx r10d, r10b
movzx ebx, r9b
movzx edi, byte [rbx + r8]
add r10d, edi
and r10d, 0x800000ff
jge 0xf31902
dec r10d
or r10d, 0xffffff00
inc r10d
movzx ecx, r10b
mov al, byte [rcx + r8]
mov byte [rbx + r8], al
mov byte [rcx + r8], dil
movzx ecx, byte [rbx + r8]
add ecx, edi
and ecx, 0x800000ff
jge 0xf3192b
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, cl
mov cl, byte [rax + r8]
xor byte [r11], cl
inc r11
dec rdx
jne 0xf318bf
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov byte [r8 + 0x100], r9b
mov byte [r8 + 0x101], r10b
ret

Function at 0xf31b74
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
movsxd rax, dword [rcx + 0x5c]
cmp dword [rcx + 0x5c], 0x37
mov rbx, rcx
mov byte [rax + rcx + 0x1c], 0x80
jle 0xf31bc2
jmp 0xf31b95
cdqe
mov byte [rax + rcx + 0x1c], 0
inc dword [rcx + 0x5c]
mov eax, dword [rcx + 0x5c]
cmp eax, 0x40
jl 0xf31b8e
call fcn.00f31988
jmp 0xf31bb3
movsxd rax, dword [rbx + 0x5c]
mov byte [rax + rbx + 0x1c], 0
inc dword [rbx + 0x5c]
cmp dword [rbx + 0x5c], 0x38
jl 0xf31ba7
jmp 0xf31bcd
cdqe
mov byte [rax + rcx + 0x1c], 0
inc dword [rcx + 0x5c]
mov eax, dword [rcx + 0x5c]
cmp eax, 0x38
jl 0xf31bbb
mov al, byte [rbx + 0x1b]
mov rcx, rbx
mov byte [rbx + 0x54], al
mov al, byte [rbx + 0x1a]
mov byte [rbx + 0x55], al
mov al, byte [rbx + 0x19]
mov byte [rbx + 0x56], al
mov al, byte [rbx + 0x18]
mov byte [rbx + 0x57], al
mov al, byte [rbx + 0x17]
mov byte [rbx + 0x58], al
mov al, byte [rbx + 0x16]
mov byte [rbx + 0x59], al
mov al, byte [rbx + 0x15]
mov byte [rbx + 0x5a], al
mov al, byte [rbx + 0x14]
mov byte [rbx + 0x5b], al
add rsp, 0x20
pop rbx
jmp fcn.00f31988
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0040f560]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0040f570]
mov dword [rax], 1
mov rax, qword [0x0040f580]
mov dword [rax], 1
mov rax, qword [0x0040f550]
mov dword [rax], 1
mov rax, qword [0x0040f440]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x0040f540]
mov dword [0x00412008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x0040f500]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x0040f3f0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x40c29c
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rax, [rbp - 0xc]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.__mingw_chkstk]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.DLL_CreateThread]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.DLL_CloseHandle]
call rax
nop
add rsp, 0x40
pop rbp
ret
Function at 0x40c830
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00412844]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x40c9b8
mov rax, qword [0x00412848]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40c87c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x40c905
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x40c860
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40c9ed
mov rax, qword [0x00412848]
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 [0x00412848]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
je 0x40c9d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40c8fe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x40c960
add dword [0x00412844], 1
cmp edi, 8
jae 0x40c933
test dil, 4
jne 0x40c9a4
test edi, edi
je 0x40c928
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40c9bf
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 0x40c928
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 0x40c94c
jmp 0x40c928
add rsi, qword [0x00412848]
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 0x40c8fe
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 0x40c928
xor esi, esi
jmp 0x40c887
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40c928
mov rax, qword [0x00412848]
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 0x40d140
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00412b20]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x00412b00]
test rbx, rbx
je 0x40d194
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 0x40d18b
test rsi, rsi
je 0x40d18b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40d170
lea rcx, [0x00412b20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]