joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a5000
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14009af74
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400a50a1
cmp ebx, dword [rsp + 0x30]
je 0x1400a509a
test esi, esi
je 0x1400a509a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a5075
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a5082
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a505f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a5086
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a50a3
mov eax, 1
jmp 0x1400a50a3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a6134
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 0x1400a61bb
mov rsi, rbx
cmp word [rax], bp
je 0x1400a617a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a6164
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a6160
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14009b9b8
mov rdi, rax
test rax, rax
je 0x1400a61a8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140086070
mov rbp, rdi
xor ecx, ecx
call fcn.14009b778
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 0x1400aa420
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400a0248
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400a0248
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400aa570
cmp rax, 0xffffffffffffffff
je 0x1400aa570
xor edi, edi
test rbp, rbp
jle 0x1400aa51b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14009cf44
mov rbx, rax
test rax, rax
jne 0x1400aa4a8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400aa511
mov edx, 0x8000
mov ecx, r14d
call fcn.14009a86c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14009e998
cmp eax, 0xffffffff
je 0x1400aa4f1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400aa4b8
mov edx, r15d
mov ecx, r14d
call fcn.14009a86c
jmp 0x1400aa511
cmp byte [rsi + 0x38], dil
je 0x1400aa508
cmp dword [rsi + 0x34], 5
jne 0x1400aa508
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x1400aa511
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14009b778
jmp 0x1400aa584
jns 0x1400aa584
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400a0248
cmp rax, 0xffffffffffffffff
jne 0x1400aa53c
cmp byte [rsi + 0x30], dil
je 0x1400aa584
mov edi, dword [rsi + 0x2c]
jmp 0x1400aa584
mov ecx, r14d
call fcn.1400a6780
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400aa584
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x1400aa584
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400aa57d
mov eax, dword [rsi + 0x2c]
jmp 0x1400aa582
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400a0248
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400aad00
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400aad28
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400aad28
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001000
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
lea rcx, str.start__B_msinfo32__report_C:output.txt
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Output_will_be_saved_to_C:output.txt
call fcn.140001050
lea rdx, [0x140001220]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Hello_World__n
call fcn.140001050
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001bbc
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x180057124
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbp, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
setne sil
test eax, eax
je 0x180057170
test rbx, rbx
je 0x18005715f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.180001802
cmp eax, 1
je 0x180057170
mov eax, 4
jmp 0x1800571b3
call fcn.1800039b3
cmp eax, 2
jne 0x1800571ac
call fcn.180001861
test al, al
je 0x1800571ac
call fcn.180002b1c
test al, al
jne 0x1800571a2
bts edi, 0x15
xor ecx, ecx
mov rdx, rbx
mov r8, rbp
mov r9d, edi
call fcn.1800039ef
jmp 0x1800571b3
call fcn.180003896
mov rcx, rax
jmp 0x180057192
movzx eax, sil
add eax, 3
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180002171
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x180076ac0
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x18009b080]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, qword [rsp + 0xa0]
lea r10, [0x18009dbb8]
xor r11d, r11d
lea rdi, [0x1800858f4]
test r9, r9
mov rax, rdx
mov r12, rdx
cmovne r10, r9
test rdx, rdx
lea ebp, [r11 + 1]
cmovne rdi, rdx
mov r15d, ebp
cmovne r15, r8
neg rax
sbb r14, r14
and r14, rcx
test r15, r15
jne 0x180076b30
mov rax, 0xfffffffffffffffe
jmp 0x180076c7d
cmp word [r10 + 6], r11w
jne 0x180076b9f
movzx r9d, byte [rdi]
inc rdi
test r9b, r9b
js 0x180076b5a
test r14, r14
je 0x180076b4b
mov dword [r14], r9d
test r9b, r9b
setne r11b
mov rax, r11
jmp 0x180076c7d
mov al, r9b
and al, 0xe0
cmp al, 0xc0
jne 0x180076b68
mov r8b, 2
jmp 0x180076b86
mov al, r9b
and al, 0xf0
cmp al, 0xe0
jne 0x180076b76
mov r8b, 3
jmp 0x180076b86
mov al, r9b
and al, 0xf8
cmp al, 0xf0
jne 0x180076c72
mov r8b, 4
movzx eax, r8b
mov ecx, 7
sub ecx, eax
mov edx, ebp
shl edx, cl
mov bl, r8b
sub edx, ebp
and edx, r9d
jmp 0x180076bc8
mov r8b, byte [r10 + 4]
mov edx, dword [r10]
mov bl, byte [r10 + 6]
lea eax, [r8 - 2]
cmp al, 2
ja 0x180076c72
cmp bl, bpl
jb 0x180076c72
cmp bl, r8b
jae 0x180076c72
movzx ebp, bl
cmp rbp, r15
mov r9d, ebp
cmovae r9, r15
jmp 0x180076bf5
movzx ecx, byte [rdi]
inc rdi
mov al, cl
and al, 0xc0
cmp al, 0x80
jne 0x180076c72
mov eax, edx
and ecx, 0x3f
shl eax, 6
mov edx, ecx
or edx, eax
mov rax, rdi
sub rax, r12
cmp rax, r9
jb 0x180076bd7
cmp r9, rbp
jae 0x180076c21
movzx eax, r8b
sub bl, r9b
mov word [r10 + 4], ax
movzx eax, bl
mov word [r10 + 6], ax
mov dword [r10], edx
jmp 0x180076b24
lea eax, [rdx - 0xd800]
cmp eax, 0x7ff
jbe 0x180076c72
cmp edx, 0x110000
jae 0x180076c72
movzx eax, r8b
mov dword [rsp + 0x20], 0x80
mov dword [rsp + 0x24], 0x800
mov dword [rsp + 0x28], 0x10000
cmp edx, dword [rsp + rax*4 + 0x18]
jb 0x180076c72
test r14, r14
je 0x180076c60
mov dword [r14], edx
neg edx
mov rdx, r10
sbb rcx, rcx
and rcx, rbp
call fcn.1800039ea
jmp 0x180076c7d
mov rdx, rsi
mov rcx, r10
call fcn.180004052
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1800025ef
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800021b7
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x180008924
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x180000000], ax
jne 0x1800089b1
movsxd rcx, dword [0x18000003c]
lea rdx, [0x180000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1800089b1
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800089b1
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x180008998
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x180008992
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x18000899a
add rdx, 0x28
jmp 0x180008977
xor edx, edx
test rdx, rdx
jne 0x1800089a3
xor al, al
jmp 0x1800089b7
cmp dword [rdx + 0x24], 0
jge 0x1800089ad
xor al, al
jmp 0x1800089b7
mov al, 1
jmp 0x1800089b7
xor al, al
jmp 0x1800089b7
add rsp, 0x18
ret

Function at 0x1800024e6
Capabilities:
Get system information on windows

Disassembly:
jmp 0x180079f50
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180079f7e
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x180079fd7
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r8d, r9d
neg r8
and r8, rbx
lea ecx, [r9 - 1]
mov eax, ecx
and ecx, ebx
and eax, edi
add eax, ecx
dec rax
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x180079fd7
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x180079fc9
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x18000272a
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x180017498
push rbx
sub rsp, 0x20
mov ebx, ecx
lea r9, [0x180086a60]
mov ecx, 2
lea r8, [0x180086a58]
lea rdx, str.FlsGetValue
call fcn.180016f68
mov ecx, ebx
test rax, rax
je 0x1800174d2
add rsp, 0x20
pop rbx
jmp qword [0x1800a8020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x180002874
Capabilities:
Query environment variable

Disassembly:
jmp 0x18005cd1c
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18005cd4c
xor eax, eax
jmp 0x18005ce0f
mov rbp, rbx
cmp word [rax], si
je 0x18005cd71
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18005cd58
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18005cd54
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800031f2
movsxd r14, eax
test eax, eax
jne 0x18005cdaf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18005cd45
mov rcx, r14
call fcn.180001037
mov rdi, rax
test rax, rax
jne 0x18005cdc8
xor ecx, ecx
call fcn.18000116d
jmp 0x18005cda4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800031f2
test eax, eax
jne 0x18005cdf9
mov rcx, rdi
call fcn.18000116d
jmp 0x18005ce03
xor ecx, ecx
call fcn.18000116d
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180002879
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1800173e8
push rbx
sub rsp, 0x20
mov rbx, rcx
lea r9, [0x180086a20]
xor ecx, ecx
lea r8, [0x180086a18]
lea rdx, str.FlsAlloc
call fcn.180016f68
test rax, rax
je 0x180017421
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [0x1800a8020]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x1800028f6
Capabilities:
Get geographical location

Disassembly:
jmp 0x18005f174
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov ebx, r9d
mov rdi, r8
mov esi, edx
lea r9, [0x180088b58]
mov rbp, rcx
lea r8, [0x180088b50]
lea rdx, str.GetLocaleInfoEx
mov ecx, 8
call fcn.18005e694
test rax, rax
je 0x18005f1d4
movabs r10, 0xe375262d7cd44270
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call qword [0x1800a8030]
jmp 0x18005f1ee
xor edx, edx
mov rcx, rbp
call fcn.18000220c
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x180002905
Capabilities:
Terminate process

Disassembly:
jmp 0x18007ac1c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x180003918
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x18007a010
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x18007a088
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x18007a088
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x18007a088
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x18007a07c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x18007a09a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x18007a06a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x18007a08a

Function at 0x180003ada
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1800174f0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x180086a80]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x180086a78]
call fcn.180016f68
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x180017530
call qword [0x1800a8020]
jmp 0x180017536
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180003c60
Capabilities:
Parse pe header

Disassembly:
jmp 0x18001f7b8
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 0x18001f593
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18001f593
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18001f593
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18001f593
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18001f593
cmp dword [rcx + 0x84], 0xe
jbe 0x18001f593
cmp dword [rcx + 0xf8], 0
je 0x18001f593
mov ecx, ebx
call fcn.18001f6fc
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.18001f270
nop
cmp dword [rbp + 0x20], 0
je 0x18001f5e1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18001f61c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18001f524
Function at 0x140001858
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push rbx
sub rsp, 0x30
mov ecx, dword [0x140028050]
mov ebx, 0x80000000
lea eax, [rcx + rbx]
test ebx, eax
jne 0x14000189d
cmp ecx, 0x80010106
je 0x14000189d
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [0x140028050], eax
lea ecx, [rax + rbx]
test ebx, ecx
jne 0x14000189d
cmp eax, 0x80010106
je 0x14000189d
xor eax, eax
jmp 0x1400018e8
cmp qword [0x14002d1e8], 0
mov ebx, 1
jne 0x1400018e6
lea rax, [0x14002d1e8]
mov r8d, ebx
lea r9, [0x140019300]
mov qword [rsp + 0x20], rax
xor edx, edx
lea rcx, [0x1400193b0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400018df
cmp qword [0x14002d1e8], 0
jne 0x1400018e6
call fcn.1400018f0
jmp 0x140001899
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140003274
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x140028010]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov edi, 0x400
lea rcx, [rsp + 0x40]
mov r8d, edi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
cmp dword [0x14002d2b8], ebx
je 0x1400032bc
mov eax, dword [0x14002c2c8]
jmp 0x14000337a
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x140003353
lea r8, [0x140019464]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x140019468]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea r8, str._appsafecheck.txt
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x40]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x140028070], rax
call fcn.140003204
mov edi, 1
test eax, eax
je 0x14000336c
call fcn.140003080
test eax, eax
je 0x14000336c
mov ebx, edi
mov dword [0x14002c2c8], ebx
mov eax, ebx
mov dword [0x14002d2b8], edi
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140014b90
mov rbx, qword [rsp + 0x460]
add rsp, 0x450
pop rdi
ret

Function at 0x14000339c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rdi, rcx
test rcx, rcx
je 0x140003401
mov rcx, qword [0x140028070]
or rbx, 0xffffffffffffffff
cmp rcx, rbx
je 0x140003401
lea r9d, [rsi + 2]
mov dword [rsp + 0x40], esi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
inc rbx
cmp word [rdi + rbx*2], si
jne 0x1400033d8
mov rcx, qword [0x140028070]
lea r8d, [rbx + rbx]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140003403
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140003414
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x140028010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rdx
mov rsi, rcx
or r13, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x250
mov r15, r13
call sub.VCRUNTIME140.dll_memset
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov ebp, r12d
test rsi, rsi
je 0x1400035ee
mov rax, r13
inc rax
cmp word [rsi + rax*2], r12w
jne 0x140003473
test rax, rax
je 0x1400035ee
test rbx, rbx
je 0x1400035ee
mov dword [rbx], r12d
call fcn.140003140
test eax, eax
jne 0x1400035e1
call fcn.140003274
test eax, eax
je 0x1400035e1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400034e1
mov ecx, 0x410
and eax, ecx
cmp eax, ecx
jne 0x1400034e1
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14000393c
test eax, eax
jne 0x1400034e1
mov dword [rbx], 1
jmp 0x1400035e1
mov r9, r13
lea r8, [0x1400191d8]
mov rdx, r13
mov rcx, rsi
call fcn.1400028b4
mov r14, rax
test rax, rax
jne 0x140003507
lea eax, [r14 + 0xe]
jmp 0x1400035f3
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
cmp rax, r13
jne 0x14000352a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
jmp 0x1400035cd
test byte [rsp + 0x30], 0x10
je 0x1400035a2
lea rdx, [0x140019458]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400035a2
lea rdx, [0x14001945c]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400035a2
mov r9, r13
lea r8, [rsp + 0x5c]
mov rdx, r13
mov rcx, rsi
call fcn.1400028b4
mov rdi, rax
test rax, rax
je 0x1400035a2
mov rdx, rbx
mov rcx, rax
call fcn.140003414
mov ebp, eax
test eax, eax
jne 0x14000358e
cmp dword [rbx], r12d
jne 0x1400035b9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdx, [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400035cd
jmp 0x14000352a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebp
jmp 0x1400035f3
mov eax, 0x57
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140014b90
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006c10
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x4e70
call fcn.140015f20
sub rsp, rax
mov rax, qword [0x140028010]
xor rax, rsp
mov qword [rsp + 0x4e60], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x3e80
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x20]
mov r8d, 0x3e80
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x140006d26
lea rax, [rsp + 0x3ec0]
mov dword [rsp + 0x2c], ebx
mov qword [rsp + 0x30], rax
mov edi, 0xfa0
mov eax, dword [rsp + 0x20]
mov word [rsp + 0x2a], di
test rax, 0xfffffffffffffff8
jbe 0x140006d1f
nop
mov r8, rdi
lea rcx, [rsp + 0x3ec0]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + rbx*8 + 0x40]
lea rdx, [rsp + 0x3ec0]
mov r8d, 0x7cf
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x3ec0]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140006ce0
mov r8, qword [rsp + rbx*8 + 0x40]
lea rdx, [rsp + 0x28]
add ax, ax
lea rcx, [0x140028080]
xor r9d, r9d
mov word [rsp + 0x28], ax
call fcn.140006d50
test eax, eax
je 0x140006d26
mov eax, dword [rsp + 0x20]
inc rbx
shr rax, 3
cmp rbx, rax
jb 0x140006ca0
mov eax, 1
jmp 0x140006d28
xor eax, eax
mov rcx, qword [rsp + 0x4e60]
xor rcx, rsp
call fcn.140014b90
mov rbx, qword [rsp + 0x4e80]
add rsp, 0x4e70
pop rdi
ret