joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e0e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x38], 0
call fcn.14002e810
mov r9d, eax
mov rdx, qword [rsp + 0x60]
add rdx, 0xcb4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x14002e1de
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140299d48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x14002e1bc
cmp dword [rsp + 0x38], 1
jne 0x14002e1bc
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0xcac], 0
jne 0x14002e1b2
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call fcn.14002e230
mov r11, qword [rsp + 0x60]
mov dword [r11 + 0xcac], 1
mov dword [rsp + 0x34], 1
jmp 0x14002e1d3
mov rax, qword [rsp + 0x60]
mov dword [rax + 0xcac], 0
mov dword [rsp + 0x34], 0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0xebc], 1
jne 0x14002e208
mov rdx, qword [rsp + 0x60]
add rdx, 0x220
mov r8d, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.14002e4d0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11d, eax
mov rax, qword [rsp + 0x60]
mov dword [rax + 0xec4], r11d
mov eax, dword [rsp + 0x34]
add rsp, 0x58
ret
Function at 0x14002e230
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp qword [rsp + 0x58], 0
jne 0x14002e24b
jmp 0x14002e385
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x30], 4
mov rcx, qword [rsp + 0x50]
add rcx, 8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DebugLogMaxSize
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14002e2a2
mov rax, qword [rsp + 0x50]
mov dword [rax + 8], 0x800000
mov dword [rsp + 0x30], 0x208
mov rcx, qword [rsp + 0x50]
add rcx, 0x220
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140299cd0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x14002e2fe
mov rcx, qword [rsp + 0x50]
add rcx, 0x220
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x14002e31b
mov rcx, qword [rsp + 0x50]
add rcx, 0x220
lea r8, [0x140299cc8]
mov edx, 0x104
call fcn.14000af60
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DebugLogTime
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x14002e385
cmp dword [rsp + 0x34], 1
jb 0x14002e385
cmp dword [rsp + 0x34], 0x3c
ja 0x14002e385
mov ecx, dword [rsp + 0x34]
imul ecx, ecx, 0xea60
mov rax, qword [rsp + 0x50]
mov dword [rax + 0xec0], ecx
add rsp, 0x48
ret
Function at 0x14002e390
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x38], 0
call fcn.14002e810
mov r9d, eax
mov rdx, qword [rsp + 0x60]
add rdx, 0xcb4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x14002e48e
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ErrLog
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x14002e46c
cmp dword [rsp + 0x38], 1
jne 0x14002e46c
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0xcac], 0
jne 0x14002e462
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call fcn.14002e230
mov r11, qword [rsp + 0x60]
mov dword [r11 + 0xcac], 1
mov dword [rsp + 0x34], 1
jmp 0x14002e483
mov rax, qword [rsp + 0x60]
mov dword [rax + 0xcac], 0
mov dword [rsp + 0x34], 0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rsp + 0x60]
cmp dword [rax + 0xebc], 1
jne 0x14002e4b8
mov rdx, qword [rsp + 0x60]
add rdx, 0x220
mov r8d, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.14002e4d0
mov eax, dword [rsp + 0x34]
add rsp, 0x58
ret

Function at 0x14002e4d0
Capabilities:
Query environment variable

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0x258], rax
cmp qword [rsp + 0x278], 0
je 0x14002e50e
cmp dword [rsp + 0x280], 0
ja 0x14002e513
jmp 0x14002e5ec
lea rax, str._ALLUSERSPROFILE_Application_DataAhnLabAIS
mov qword [rsp + 0x240], rax
mov rcx, qword [rsp + 0x270]
call fcn.14002e610
cmp eax, 1
jne 0x14002e543
lea rax, str._PROGRAMDATA_AhnLabAIS
mov qword [rsp + 0x240], rax
xor eax, eax
mov word [rsp + 0x30], ax
lea rdi, [rsp + 0x32]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov r8d, 0x105
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x240]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x248], eax
cmp dword [rsp + 0x248], 0
jbe 0x14002e58f
mov dword [rsp + 0x250], 1
jmp 0x14002e59a
mov dword [rsp + 0x250], 0
mov eax, dword [rsp + 0x250]
mov dword [rsp + 0x24c], eax
cmp dword [rsp + 0x24c], 0
jne 0x14002e5c9
mov edx, 0x105
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
mov dword [rsp + 0x24c], eax
cmp dword [rsp + 0x24c], 0
je 0x14002e5ec
mov edx, dword [rsp + 0x280]
lea r8, [rsp + 0x30]
mov rcx, qword [rsp + 0x278]
call fcn.14000af60
mov rcx, qword [rsp + 0x258]
xor rcx, rsp
call fcn.14028a900
add rsp, 0x260
pop rdi
ret
Function at 0x14002e710
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x220]
test eax, eax
jne 0x14002e730
mov eax, 1
jmp 0x14002e761
mov rcx, qword [rsp + 0x40]
add rcx, 0x220
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x14002e75f
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x14002e75f
mov eax, 1
jmp 0x14002e761
xor eax, eax
add rsp, 0x38
ret

Function at 0x14002f630
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
mov rax, qword [0x1403710d8]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0x50], 0x57
mov dword [rsp + 0x54], 0
mov dword [rsp + 0xb0], 0
mov dword [rsp + 0xb4], 0
mov byte [rsp + 0x70], 0
lea rdi, [rsp + 0x71]
xor eax, eax
mov ecx, 0x3f
rep stosb byte [rdi], al
mov dword [rsp + 0x58], 0
cmp qword [rsp + 0xd0], 0xffffffffffffffff
je 0x14002f6d5
cmp qword [rsp + 0xd8], 0
je 0x14002f6d5
cmp dword [rsp + 0xe0], 0
jle 0x14002f6d5
cmp qword [rsp + 0xf0], 0
je 0x14002f6d5
cmp qword [rsp + 0xf8], 0
ja 0x14002f6df
jmp 0x14002f871
mov eax, dword [rsp + 0xe0]
sub eax, 0x10
cdq
idiv dword [rsp + 0x100]
test edx, edx
jne 0x14002f6f7
jmp 0x14002f701
jmp 0x14002f871
cmp dword [0x140375890], 0
jne 0x14002f71c
mov dword [rsp + 0x50], 0x65b
jmp 0x14002f871
mov dword [rsp + 0xb0], 0
jmp 0x14002f740
mov ecx, dword [rsp + 0x100]
mov eax, dword [rsp + 0xb0]
add eax, ecx
mov dword [rsp + 0xb0], eax
mov eax, dword [rsp + 0xe0]
sub eax, 0x10
cmp dword [rsp + 0xb0], eax
jge 0x14002f869
mov eax, dword [rsp + 0xb0]
mov r8d, dword [rsp + 0xe0]
sub r8d, eax
movsxd rax, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0xd8]
add rcx, rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x40
lea rdx, [rsp + 0x70]
call fcn.140032840
test eax, eax
jne 0x14002f7d7
mov dword [rsp + 0x50], 0x1770
jmp 0x14002f871
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x14002f803
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
jmp 0x14002f871
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xb4]
mov r8d, 0x40
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14002f84e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14002f84a
mov dword [rsp + 0x50], 0x1d
jmp 0x14002f871
cmp dword [rsp + 0xb4], 0x40
je 0x14002f864
mov dword [rsp + 0x50], 0x1d
jmp 0x14002f871
jmp 0x14002f729
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14028a900
add rsp, 0xc0
pop rdi
ret
Function at 0x14002ff20
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov dword [rsp + 0x50], 0
xor eax, eax
mov word [rsp + 0x58], ax
lea rdi, [rsp + 0x5a]
xor eax, eax
mov ecx, recv
rep stosb byte [rdi], al
cmp qword [rsp + 0x88], 0
je 0x14002ff6e
xor ecx, ecx
mov rax, qword [rsp + 0x88]
mov word [rax], cx
cmp qword [rsp + 0x80], 0
je 0x14002ff84
cmp qword [rsp + 0x88], 0
jne 0x14002ff8e
jmp 0x140030125
cmp dword [rsp + 0x98], 1
jne 0x14002fff9
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14002ffc6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14002ffc6
jmp 0x14002ffd0
jmp 0x140030125
mov edx, dword [rsp + 0x90]
mov r8, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.14000af60
mov dword [rsp + 0x50], 1
jmp 0x140030125
cmp dword [rsp + 0x98], 2
jne 0x140030079
mov edx, dword [rsp + 0x90]
mov r9, qword [rsp + 0x80]
lea r8, [0x140299f80]
mov rcx, qword [rsp + 0x88]
call fcn.14000e460
test eax, eax
jge 0x140030034
jmp 0x140030125
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8d, 1
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14003006c
jmp 0x140030125
mov dword [rsp + 0x50], 1
jmp 0x140030125
cmp dword [rsp + 0x98], 3
jne 0x140030125
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx r10d, word [rsp + 0x64]
movzx r9d, word [rsp + 0x62]
movzx r8d, word [rsp + 0x60]
movzx edi, word [rsp + 0x5e]
movzx ecx, word [rsp + 0x5a]
movzx eax, word [rsp + 0x58]
mov edx, dword [rsp + 0x90]
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x80]
lea r8, [0x140299f40]
mov rcx, qword [rsp + 0x88]
call fcn.14000e460
test eax, eax
jge 0x1400300f9
jmp 0x140030125
mov r8d, 1
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14003011d
jmp 0x140030125
mov dword [rsp + 0x50], 1
mov eax, dword [rsp + 0x50]
add rsp, 0x70
pop rdi
ret
Function at 0x140030130
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov dword [rsp + 0x50], 0
xor eax, eax
mov word [rsp + 0x58], ax
lea rdi, [rsp + 0x5a]
xor eax, eax
mov ecx, recv
rep stosb byte [rdi], al
cmp qword [rsp + 0x88], 0
je 0x14003017c
mov rax, qword [rsp + 0x88]
mov byte [rax], 0
cmp qword [rsp + 0x80], 0
je 0x140030192
cmp qword [rsp + 0x88], 0
jne 0x14003019c
jmp 0x140030333
cmp dword [rsp + 0x98], 1
jne 0x140030207
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400301d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1400301d4
jmp 0x1400301de
jmp 0x140030333
mov edx, dword [rsp + 0x90]
mov r8, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
call fcn.14002f890
mov dword [rsp + 0x50], 1
jmp 0x140030333
cmp dword [rsp + 0x98], 2
jne 0x140030287
mov edx, dword [rsp + 0x90]
mov r9, qword [rsp + 0x80]
lea r8, str._s.old.log
mov rcx, qword [rsp + 0x88]
call fcn.140030340
test eax, eax
jge 0x140030242
jmp 0x140030333
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov r8d, 1
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x14003027a
jmp 0x140030333
mov dword [rsp + 0x50], 1
jmp 0x140030333
cmp dword [rsp + 0x98], 3
jne 0x140030333
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx r10d, word [rsp + 0x64]
movzx r9d, word [rsp + 0x62]
movzx r8d, word [rsp + 0x60]
movzx edi, word [rsp + 0x5e]
movzx ecx, word [rsp + 0x5a]
movzx eax, word [rsp + 0x58]
mov edx, dword [rsp + 0x90]
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x80]
lea r8, str._s._.4d_.2d_.2d_.2d_.2d_.2d.log
mov rcx, qword [rsp + 0x88]
call fcn.140030340
test eax, eax
jge 0x140030307
jmp 0x140030333
mov r8d, 1
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x14003032b
jmp 0x140030333
mov dword [rsp + 0x50], 1
mov eax, dword [rsp + 0x50]
add rsp, 0x70
pop rdi
ret
Function at 0x140030740
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0xffffffffffffffff
mov dword [rsp + 0x50], 0
cmp qword [rsp + 0x70], 0
jne 0x140030774
jmp 0x1400308a1
mov r8d, 0x2c
xor edx, edx
mov rcx, qword [rsp + 0x70]
call sub.MSVCR90.dll_memset
cmp dword [0x140375890], 0
jne 0x140030799
jmp 0x1400308a1
cmp dword [0x140375ca8], 1
jne 0x1400307da
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [0x140375a9e]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
jmp 0x140030810
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [0x140375999]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, 0x2c
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14003083c
jmp 0x1400308a1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], 0xffffffffffffffff
mov rcx, qword [rsp + 0x70]
call fcn.1400308d0
test eax, eax
jne 0x14003086d
mov ecx, recv
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400308a1
mov rcx, qword [rsp + 0x70]
add rcx, 0x1b
xor r9d, r9d
xor r8d, r8d
mov edx, reloc.WS2_32.dll_recv
call fcn.140030e70
test eax, eax
jne 0x140030899
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400308a1
mov dword [rsp + 0x40], 1
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x1400308bd
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x48], 0xffffffffffffffff
mov eax, dword [rsp + 0x40]
add rsp, 0x68
ret
Function at 0x1400308d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
mov byte [rsp + 0x28], 0
cmp qword [rsp + 0x40], 0
jne 0x140030900
jmp 0x140030a0e
mov rax, qword [rsp + 0x40]
movzx eax, word [rax + 0x19]
test eax, eax
jne 0x140030917
jmp 0x140030a0e
mov rcx, qword [rsp + 0x40]
add rcx, 8
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x140375cc0]
call sub.MSVCR90.dll_memcmp
test eax, eax
je 0x140030940
jmp 0x140030a0e
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax]
cmp eax, 0x73
jne 0x1400309a3
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax + 1]
cmp eax, 0x6c
jne 0x1400309a3
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax + 2]
cmp eax, 0x70
jne 0x1400309a3
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax + 3]
cmp eax, 0x6b
jne 0x1400309a3
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax + 4]
cmp eax, 0x20
jne 0x1400309a3
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax + 5]
cmp eax, 0x61
jne 0x1400309a3
mov rax, qword [rsp + 0x40]
movsx eax, byte [rax + 6]
cmp eax, 0x30
jne 0x1400309a3
jmp 0x1400309a7
jmp 0x140030a0e
mov dword [rsp + 0x20], 9
jmp 0x1400309bc
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp rax, 0x2b
jae 0x1400309e2
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x40]
movzx ecx, byte [rax + rcx]
movzx eax, byte [rsp + 0x28]
add eax, ecx
mov byte [rsp + 0x28], al
jmp 0x1400309b1
movzx eax, byte [rsp + 0x28]
xor eax, 0xf4
mov byte [rsp + 0x28], al
movzx ecx, byte [rsp + 0x28]
mov rax, qword [rsp + 0x40]
movzx eax, byte [rax + 0x2b]
cmp ecx, eax
je 0x140030a06
jmp 0x140030a0e
mov dword [rsp + 0x24], 1
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret

Function at 0x140030a20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x140030a4e
cmp qword [rsp + 0x58], 0
jne 0x140030a52
jmp 0x140030aa2
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140030a6e
jmp 0x140030aa2
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, 0x80
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140030a9a
jmp 0x140030aa2
mov dword [rsp + 0x30], 1
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140030ab0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x34], 0
cmp qword [rsp + 0x58], 0
je 0x140030ae8
mov r8d, 0x80
xor edx, edx
mov rcx, qword [rsp + 0x58]
call sub.MSVCR90.dll_memset
cmp qword [rsp + 0x50], 0xffffffffffffffff
je 0x140030af8
cmp qword [rsp + 0x58], 0
jne 0x140030b02
jmp 0x140030c33
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140030b24
jmp 0x140030c33
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x34]
mov r8d, 0x80
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140030b56
jmp 0x140030c33
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x1d]
test eax, eax
jg 0x140030b6d
jmp 0x140030c33
mov rcx, qword [rsp + 0x58]
add rcx, 0xc
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x140375cc0]
call sub.MSVCR90.dll_memcmp
test eax, eax
je 0x140030b96
jmp 0x140030c33
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax]
cmp eax, 0x41
jne 0x140030c27
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax + 1]
cmp eax, 0x53
jne 0x140030c27
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax + 2]
cmp eax, 0x4c
jne 0x140030c27
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax + 3]
cmp eax, 0x46
jne 0x140030c27
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax + 4]
cmp eax, 0x49
jne 0x140030c27
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax + 5]
cmp eax, 0x4c
jne 0x140030c27
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax + 6]
cmp eax, 0x45
jne 0x140030c27
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax + 7]
cmp eax, 0x31
jne 0x140030c27
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax + 8]
cmp eax, 0x2e
jne 0x140030c27
mov rax, qword [rsp + 0x58]
movsx eax, byte [rax + 9]
cmp eax, 0x30
jne 0x140030c27
jmp 0x140030c2b
jmp 0x140030c33
mov dword [rsp + 0x30], 1
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140032380
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x78], 0
je 0x1400323d7
xor ecx, ecx
mov rax, qword [rsp + 0x78]
mov word [rax], cx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x14029a040]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x140032413
cmp qword [rsp + 0x38], 0
je 0x140032413
jmp 0x14003241d
jmp 0x140032547
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140299d48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14003245f
jmp 0x140032547
cmp dword [rsp + 0x50], 1
je 0x140032470
jmp 0x140032547
cmp qword [rsp + 0x70], 0
je 0x14003253f
cmp qword [rsp + 0x78], 0
je 0x14003253f
cmp qword [rsp + 0x80], 0
jbe 0x14003253f
mov eax, dword [rsp + 0x80]
lea rax, [rax + rax - 2]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140299cd0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140032528
mov dx, 0x5c
mov rcx, qword [rsp + 0x70]
call fcn.14001f9e0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1400324f6
jmp 0x140032547
mov rax, qword [rsp + 0x48]
movzx eax, word [rax + 2]
test eax, eax
jne 0x140032507
jmp 0x140032547
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call fcn.14000afd0
test eax, eax
jge 0x140032526
jmp 0x140032547
jmp 0x14003253f
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x78]
call fcn.14000af60
mov dword [rsp + 0x40], 1
cmp qword [rsp + 0x38], 0
je 0x140032563
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x40]
add rsp, 0x68
ret