joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a7f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x004bf0a8]
test ecx, ecx
je 0x45a81f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x45a838
cmp byte [rax + 8], 0
je 0x45a838
add rax, 9
jmp 0x45a8e0
lea rcx, [0x004bf090]
call fcn.00450f70
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x45a810
mov ecx, dword [0x004bf0a8]
test ecx, ecx
je 0x45a8c1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x45a8de
mov rdi, rax
test rax, rax
jne 0x45a89e
mov rax, qword [0x004e92c8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.004024e0
test rax, rax
je 0x45a8f7
mov rdi, rax
lea rax, [0x004bf090]
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x004bf0a8]
test ecx, ecx
je 0x45a8e7
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
xor ecx, ecx
test rsi, rsi
je 0x45a8b4
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rdi + 9]
mov byte [rdi + 8], 1
mov byte [rdi + 9], cl
jmp 0x45a8e0
lea rcx, [0x004bf090]
call fcn.00450f70
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x45a853
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x004bf090]
call fcn.00450f70
mov ecx, eax
jmp 0x45a896
mov ecx, 8
mov edx, 0x10
call fcn.0048a8b0
ud2

Function at 0x45a910
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov ecx, dword [0x004bf0c8]
test ecx, ecx
je 0x45a93f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x45a958
cmp byte [rax + 8], 0
je 0x45a958
add rax, 9
jmp 0x45aa00
lea rcx, [0x004bf0b0]
call fcn.00450f70
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x45a930
mov ecx, dword [0x004bf0c8]
test ecx, ecx
je 0x45a9e1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x45a9fe
mov rdi, rax
test rax, rax
jne 0x45a9be
mov rax, qword [0x004e92c8]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call fcn.004024e0
test rax, rax
je 0x45aa17
mov rdi, rax
lea rax, [0x004bf0b0]
mov qword [rdi], rax
mov byte [rdi + 8], 0
mov ecx, dword [0x004bf0c8]
test ecx, ecx
je 0x45aa07
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
xor ecx, ecx
test rsi, rsi
je 0x45a9d4
cmp byte [rsi], 0
mov byte [rsi], 0
movzx eax, byte [rsi + 1]
cmove eax, ecx
mov ecx, eax
lea rax, [rdi + 9]
mov byte [rdi + 8], 1
mov byte [rdi + 9], cl
jmp 0x45aa00
lea rcx, [0x004bf0b0]
call fcn.00450f70
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x45a973
xor eax, eax
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x004bf0b0]
call fcn.00450f70
mov ecx, eax
jmp 0x45a9b6
mov ecx, 8
mov edx, 0x10
call fcn.0048a8b0
ud2
Function at 0x45aba0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x004bf108]
test ecx, ecx
je 0x45abd4
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jbe 0x45abed
mov rbx, rax
cmp qword [rax + 8], 0
je 0x45abed
add rbx, 0x10
jmp 0x45acc7
lea rcx, [0x004bf0f0]
call fcn.00450f70
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
ja 0x45abc1
mov ecx, dword [0x004bf108]
test ecx, ecx
je 0x45aca8
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x45acc5
mov rdi, rax
test rax, rax
jne 0x45ac5f
mov rax, qword [0x004e92c8]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call fcn.004024e0
test rax, rax
je 0x45ace5
mov rdi, rax
lea rax, [0x004bf0f0]
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x004bf108]
test ecx, ecx
je 0x45acd2
dec ecx
mov rdx, rdi
call sub.KERNEL32.dll_TlsSetValue
test rsi, rsi
je 0x45ac79
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x45ac7b
mov rax, qword [rsi + 8]
jmp 0x45ac7b
xor eax, eax
lea rbx, [rdi + 0x10]
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 8], 0
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
je 0x45acc7
test rcx, rcx
je 0x45acc7
lock dec qword [rcx]
jne 0x45acc7
call fcn.0040f5d0
jmp 0x45acc7
lea rcx, [0x004bf0f0]
call fcn.00450f70
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x45ac0c
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x004bf0f0]
call fcn.00450f70
mov ecx, eax
jmp 0x45ac57
mov ecx, 8
mov edx, 0x18
call fcn.0048a8b0
ud2
Function at 0x4a3bf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x4a3c6a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x4a3c60
cmp r10, r11
jb 0x4a3d03
cmp r10, rdx
ja 0x4a3d17
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x4a3c62
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x4a3c40
jmp 0x4a3cd7
ja 0x4a3c6a
mov r11, r10
cmp rax, r8
jne 0x4a3c12
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x4a3cdb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x4a3cb0
mov r8, r10
sub ecx, r9d
jns 0x4a3cce
jmp 0x4a3cdd
cmp r10, rdx
je 0x4a3ce9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x4a3cdd
xor al, 1
cmp r8, rdx
jne 0x4a3c90
jmp 0x4a3cdd
xor eax, eax
jmp 0x4a3cdd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x004d9dd9]
lea r8, [0x004dc198]
mov edx, 0x2b
call fcn.00499580
ud2
lea r8, [0x004dc180]
mov rcx, r11
mov rdx, r10
call fcn.004a0320
ud2
lea r8, [0x004dc180]
mov rcx, r10
call fcn.004a02a0
ud2
Function at 0x4bda00
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.004beac0
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.004beac0
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 0x4bda70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x004fb814]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x4bdc18
mov rax, qword [0x004fb818]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x4bdabc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x4bdb47
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x4bdaa0
mov rcx, r12
call fcn.004be7d0
mov rbp, rax
test rax, rax
je 0x4bdc52
mov rax, qword [0x004fb818]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.004be900
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004fb818]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4bdc61
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x4bdb40
sub eax, 4
and eax, 0xfffffffb
jne 0x4bdbd0
add dword [0x004fb814], 1
cmp ebx, 8
jae 0x4bdb78
test bl, 4
jne 0x4bdc20
test ebx, ebx
je 0x4bdb69
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x4bdc40
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 0x4bdb69
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 0x4bdbaa
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 [0x004fb818]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4bdb40
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004bda00
nop dword [rax]
xor edi, edi
jmp 0x4bdac7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x4bdb69
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x4bdb69
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.004bda00
mov rax, qword [0x004fb818]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.004bda00
nop
nop dword [rax]
Function at 0x4be440
Capabilities:
Get thread local storage value

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

Function at 0x4be7d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004e9250]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x4be849
mov rcx, r10
call fcn.004be6a0
test eax, eax
je 0x4be849
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 0x4be846
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 0x4be83d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x4be849
add r8, 0x28
cmp r8, r9
jne 0x4be828
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x14000f3d4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000f40e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000f413
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14000f45c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140012660]
cmp byte [rcx + rax], 0
je 0x14000f45c
dec r8
sub rdx, 1
jne 0x14000f442
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400108e0
Capabilities:
Parse pe header

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

Function at 0x140008524
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008320
Function at 0x140003c30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140003ca8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140003ca8
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140003c95
nop
cmp rbx, rcx
jae 0x140003ca8
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140003c80
cmp rbx, rcx
jae 0x140003ca8
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x140003caa
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140005500
Capabilities:
Acquire debug privileges
Contain obfuscated stackstrings
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x30], 0x74303633
mov dword [rsp + 0x34], 0x2e796172
mov dword [rsp + 0x38], 0x657865
mov dword [rsp + 0x40], 0x41564441
mov dword [rsp + 0x44], 0x32334950
mov dword [rsp + 0x48], 0x6c6c642e
mov byte [rsp + 0x4c], 0
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SetTokenInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
lea rcx, [rbp - 0x7c]
mov r8d, 0x12c
mov rdi, rax
call fcn.1401c86e0
xor edx, edx
mov dword [rbp - 0x80], 0x130
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp - 0x80]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1400055d7
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x54]
call fcn.1401a4268
mov rcx, rbx
test eax, eax
je 0x1400056ec
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400055b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbp + 0xc0]
xor edx, edx
mov qword [rbp + 0xc0], 0xffffffffffffffff
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x140005619
lea r8, [rbp + 0xc0]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea r8, [rbp + 0xc8]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rax, qword [rbp + 0xc8]
lea r8, [rsp + 0x60]
mov rcx, qword [rbp + 0xc0]
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x64], rax
lea r9d, [rbx + 0x10]
mov dword [rsp + 0x6c], 2
lea edx, [rbx + 1]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
xor eax, eax
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x50], rax
lea rcx, [0x140228868]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov word [rsp + 0x50], 0x101
mov byte [rsp + 0x57], 0x10
mov dword [rsp + 0x78], 0x20
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.GetLengthSid
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x50]
call rax
mov rcx, qword [rbp + 0xc0]
lea r8, [rsp + 0x70]
lea edx, [rbx + 0x19]
lea r9d, [rax + 0x10]
call rdi
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbp - 0x78]
jmp 0x1400055e7
Function at 0x140005700
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov ebx, ecx
mov r14, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movzx edx, bx
mov r8, rdi
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1400057c7
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, r14
mov dword [rsp + 0x20], 2
mov esi, eax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400057c7
lea r9, [rsp + 0x60]
mov dword [rsp + 0x60], ebx
mov r8d, esi
mov qword [rsp + 0x20], rbx
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, dword [rsp + 0x60]
sete bl
mov eax, ebx
jmp 0x1400057c9
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400057e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rsi
push rdi
mov eax, 0x2038
call fcn.140196c90
sub rsp, rax
xor edx, edx
lea rcx, [rsp + 0x1030]
mov r8d, 0x1000
call fcn.1401c86e0
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x1000
xor esi, esi
call fcn.1401c86e0
lea rdx, [0x1402288b8]
mov dword [rsp + 0x2058], esi
lea rcx, str.C:Program_Files__x86_Funshioncvsd.xml
call fcn.14019daf8
mov rdi, rax
test rax, rax
je 0x140005a55
mov qword [rsp + 0x2030], r14
lea rdx, [0x1402288bc]
mov qword [rsp + 0x2050], rbx
lea rcx, str.C:Program_Files__x86_Funshiondecvsd.xml
mov qword [rsp + 0x2060], rbp
call fcn.14019daf8
mov r14, rax
test rax, rax
je 0x140005a1c
mov rcx, rdi
call fcn.1401a4338
test eax, eax
jne 0x14000591c
nop word [rax + rax]
mov r9, rdi
lea rcx, [rsp + 0x1030]
mov edx, 1
mov r8d, 0x1000
call fcn.1401a45c4
mov rcx, rdi
mov rsi, rax
call fcn.1401a4338
test eax, eax
jne 0x14000591c
lea rax, [rsp + 0x2058]
mov r9d, esi
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x1030]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.140003890
test eax, eax
jne 0x140005978
movsxd rbx, dword [rsp + 0x2058]
lea edx, [rax + 1]
mov r8, rbx
lea rcx, [rsp + 0x30]
mov r9, r14
call fcn.1401a3ff8
cmp eax, ebx
jne 0x1400059e1
mov rcx, rdi
call fcn.1401a4338
test eax, eax
je 0x140005890
lea eax, [rsi + 0x18]
movsxd rbx, eax
mov rcx, rbx
call fcn.14019d5e4
mov rbp, rax
test rax, rax
je 0x1400059ff
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1401c86e0
lea rax, [rsp + 0x2058]
mov r9d, esi
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x1030]
mov qword [rsp + 0x20], rbp
call fcn.140003890
mov ebx, eax
test eax, eax
je 0x140005993
mov rcx, rbp
call fcn.14019d5d0
jmp 0x140005a04
mov edx, eax
lea rcx, str.error_:_des_encode_raw__n
call fcn.140003b60
mov rcx, rdi
call fcn.14019de80
jmp 0x140005a29
mov ebx, dword [rsp + 0x2058]
lea eax, [rbx - 1]
movsxd rcx, eax
movsx r8d, byte [rcx + rbp]
lea eax, [r8 - 1]
cmp al, 7
ja 0x1400059f7
sub ebx, r8d
lea rcx, [rsp + 0x30]
movsxd r8, ebx
mov rdx, rbp
call fcn.1401c8040
mov rcx, rbp
call fcn.14019d5d0
movsxd r8, ebx
lea rcx, [rsp + 0x30]
mov r9, r14
mov edx, 1
call fcn.1401a3ff8
cmp ebx, eax
je 0x140005a1c
lea rcx, str.error_:_fwrite_n
call fcn.140003b60
mov rcx, rdi
call fcn.14019de80
jmp 0x140005a29
mov rcx, rbp
call fcn.14019d5d0
mov ebx, 0x14
mov edx, ebx
lea rcx, str.error_:_des_decode__n
call fcn.140003b60
mov rcx, rdi
call fcn.14019de80
jmp 0x140005a29
mov rcx, rdi
call fcn.14019de80
test r14, r14
je 0x140005a31
mov rcx, r14
call fcn.14019de80
mov rbp, qword [rsp + 0x2060]
xor eax, eax
mov rbx, qword [rsp + 0x2050]
mov r14, qword [rsp + 0x2030]
add rsp, 0x2038
pop rdi
pop rsi
ret
add rsp, 0x2038
pop rdi
pop rsi
ret
Function at 0x140005a60
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
call fcn.14000c080
mov rdi, rax
test rax, rax
jne 0x140005aa1
xor ebx, ebx
mov eax, 0x10000
mov ebp, ebx
mov dword [rsp + 0x30], ebx
mov byte [rsp + 0x34], bl
mov dword [rsp + 0x158], ebx
jmp 0x140005b63
cmp dword [rax], 1
je 0x140005aaf
xor ebx, ebx
mov eax, 0x80000
jmp 0x140005b29
mov r9, qword [rax + 8]
lea rdx, str.C:Program_Files__x86_Funshion
mov r8, r9
sub r8, rdx
lea rcx, [r9 + 0x150]
nop word [rax + rax]
movzx eax, byte [rdx]
mov byte [r8 + rdx + 0x150], al
lea rdx, [rdx + 1]
test al, al
jne 0x140005ad0
mov rax, 0xffffffffffffffff
nop word [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x140005af0
movzx edx, byte [rax + r9 + 0x14f]
cmp dl, 0x5c
je 0x140005b25
cmp dl, 0x2f
je 0x140005b25
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140005b11
movzx eax, word [0x1402287c8]
mov word [rcx], ax
xor ebx, ebx
mov eax, ebx
mov dword [rsp + 0x158], ebx
mov ebp, ebx
mov byte [rsp + 0x34], bl
mov dword [rsp + 0x30], ebx
cmp dword [rdi], 1
mov dword [0x140269c10], eax
je 0x140005b4c
mov eax, 0x80000
jmp 0x140005b63
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x30]
mov edx, 0xffffffff
call fcn.14000b200
mov ebp, dword [rsp + 0x30]
mov dword [0x140269c10], eax
mov esi, ebx
test ebp, ebp
jle 0x140005bdc
nop
mov dword [rsp + 0x30], ebx
mov byte [rsp + 0x34], 0
mov dword [rsp + 0x158], ebx
test rdi, rdi
jne 0x140005b8c
mov eax, 0x10000
jmp 0x140005bd0
mov eax, dword [rdi]
cmp eax, 1
je 0x140005b9a
mov ecx, 0x80000
jmp 0x140005bae
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x30]
mov edx, esi
call fcn.14000b200
mov ecx, eax
mov eax, dword [rdi]
mov dword [0x140269c10], ecx
cmp eax, 1
je 0x140005bc0
mov eax, 0x80000
jmp 0x140005bd0
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x34]
mov edx, esi
call fcn.14000ba80
inc esi
mov dword [0x140269c10], eax
cmp esi, ebp
jl 0x140005b70
mov rcx, rdi
call fcn.14000c260
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.C:Program_Files__x86_Funshioncvsd.xml
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, str.C:Program_Files__x86_Funshiondecvsd.xml
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140005c30
Capabilities:
Create directory
Create process on windows
Enumerate processes
Terminate process

Disassembly:
push rbx
sub rsp, 0x500
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140005cb0
xor edx, edx
mov r8d, 0x12c
lea rcx, [rsp + 0x34]
call fcn.1401c86e0
mov dword [rsp + 0x30], 0x130
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140005ca7
nop dword [rax]
lea rdx, str.DySDKController.exe
lea rcx, [rsp + 0x5c]
call fcn.1401a4268
mov rcx, rbx
test eax, eax
je 0x140005cf1
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140005c80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rsp + 0x30]
call fcn.1401c86e0
mov dword [rsp + 0x60], 0x100010
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x140005cff
call fcn.140006700
mov rcx, rax
call fcn.1400069e0
jmp 0x140005d24
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call fcn.14019da30
int3
cmp byte [rsp + 0x78], 0
jne 0x140005cf7
cmp byte [rsp + 0x80], 0
jne 0x140005cf7
cmp byte [rsp + 0x88], 0
jne 0x140005cf7
cmp byte [rsp + 0x90], 0
jne 0x140005cf7
lea rcx, str.C:Program_Files__x86_Funshion
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x140005d44
xor edx, edx
lea rcx, str.C:Program_Files__x86_Funshion
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, str.C:Program_Files__x86_Funshioncvsd.xml
lea rdx, [0x1402289bc]
mov ecx, 0x65
call fcn.140005700
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r8, str.C:ProgramData_afd.bin
lea rdx, [0x1402289d8]
mov ecx, 0x66
call fcn.140005700
call fcn.1400057e0
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140005a60
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140005500
call fcn.1400054a0
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.C:Program_Files__x86_FunshionDySDKController.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]