joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d3604
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400d302c
mov ebx, eax
test eax, eax
jne 0x1400d3634
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x1400d3697
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400d368e
test al, 0x10
je 0x1400d368e
bt eax, 0xa
jae 0x1400d3687
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.1400d36a8
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x1400d3683
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1400d3683
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
test edi, edi
jne 0x1400d368e
and dword [rsp + 0x3c], 0
jmp 0x1400d3693
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400d4778
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
mov ch, 0x84
or bh, byte [rcx - 0x20]
cli
stosb byte [rdi], al
pop rsi
sti
invalid
Function at 0x1400f57a0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400f57ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400f57bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400f57a5
lea eax, [rcx + 1]
jmp 0x1400f57cb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400f57de
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400f57c4
sub eax, 3
jb 0x1400f57fe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400f584d
sar eax, 1
movsxd rbp, eax
jb 0x1400f5834
jmp 0x1400f580c
add ebx, ebx
jne 0x1400f580a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400f5834
inc ecx
add ebx, ebx
jne 0x1400f581a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400f5834
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400f582d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400f581c
add ecx, 2
jmp 0x1400f5839
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400f5762
jmp 0x1400f57ad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xb5800
mov dl, 0x17
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400f5899
cmp rsi, rcx
jae 0x1400f58a1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400f5880
cmp al, 0x8f
ja 0x1400f5880
cmp byte [rsi - 2], 0xf
je 0x1400f5886
sub al, 0xe8
cmp al, 1
ja 0x1400f586a
cmp rsi, rcx
jae 0x1400f58a1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400f5870
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400f58a1
lodsb al, byte [rsi]
jmp 0x1400f5880
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xf2000]
mov eax, dword [rdi]
or eax, eax
je 0x1400f590a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf5000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400f58ae
jns 0x1400f58e3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1400f58ed
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400f5904
mov qword [rbx], rax
add rbx, 8
jmp 0x1400f58ce
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400f5944
cmp al, 0xef
ja 0x1400f5936
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400f5916
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400f5925
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x23f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400f5998
sub rsp, 0xffffffffffffff80
jmp 0x140086c44
Function at 0x140001e30
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140001e58
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140001e7e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001e80
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001ed9
test ecx, ecx
jle 0x140001eb9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140001ed9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001ed9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140001f00
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140001f22
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140001f38
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140001f54
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001f56
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001f92
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000202e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001fcd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000200e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000202e
cmp rbx, rax
ja 0x140001fe0
test rbx, rbx
je 0x14000202e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140002450
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000247d
xor eax, eax
jmp 0x1400025e9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400024b7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400024b7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400025e9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400025dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400024fa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002525
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400025e1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002594
sub eax, 1
je 0x140002594
cmp eax, 2
jne 0x1400025dc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400025e1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400025c2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400025dc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400025e1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400031c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002bc0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002c93
cmp byte [rcx + 0x71], 0
je 0x140002c93
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002c8f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002c54
sub eax, 1
je 0x140002c58
cmp eax, 2
jne 0x140002c8f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400031c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002c86
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140002c8f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002c3c
xor al, al
jmp 0x140002c3c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400031c0
add rsp, 0x60
pop rbx
ret

Function at 0x140003b54
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003b9e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003b9e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003b9e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003b9e
cmp dword [rcx + 0x84], 0xe
jbe 0x140003b9e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003ba0
xor al, al
add rsp, 0x28
ret
Function at 0x140001360
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push rbx
mov eax, 0x250
call fcn.140003240
sub rsp, rax
mov rax, qword [0x140029768]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r8d, 0x20
lea rdx, [rsp + 0x20]
lea rcx, str._AsJob
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1400015e6
lea rcx, str.C:MgrRun_
call fcn.140001cd0
test eax, eax
je 0x1400015e6
call fcn.140001a50
mov rdx, rax
lea rcx, str.Han0
mov r8d, 4
call fcn.140001880
test eax, eax
jne 0x1400015e6
mov byte [rsp + 0x20], al
mov word [rsp + 0x140], ax
call fcn.140001d20
mov r9, rax
lea rdx, [rsp + 0x140]
xor r8d, r8d
xor ecx, ecx
call fcn.140001b30
movups xmm0, xmmword [str.C:MgrRun_]
movaps xmmword [rsp + 0x40], xmm0
movsd xmm0, qword [0x14001d6c0]
movsd qword [rsp + 0x50], xmm0
call fcn.140001ac0
lea rcx, [rsp + 0x40]
mov r8, rax
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140001430
xor edx, edx
nop dword [rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x140001440
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140001460
movsd xmm0, qword [str._Run_]
mov eax, dword [0x14001d6d8]
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x140001490
lea r8, [rsp + 0x140]
xor edx, edx
nop word [rax + rax]
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
lea rdx, [rdx + 1]
test ax, ax
jne 0x1400014b0
lea rcx, [rsp + 0x40]
sub rcx, 2
nop dword [rax + rax]
cmp word [rcx + 2], 0
lea rcx, [rcx + 2]
jne 0x1400014d0
movsd xmm0, qword [str..log]
lea rdx, [rsp + 0x20]
movzx eax, word [0x14001d6e8]
mov r8d, 0x20
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
lea rcx, str._Job
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x14000152e
call fcn.140001db0
lea rdx, [rsp + 0x20]
sub rdx, rax
nop dword [rax + rax]
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140001520
lea rcx, [rsp + 0x40]
call fcn.1400021a0
mov rbx, rax
test rax, rax
je 0x1400015e6
call fcn.140001e40
mov rdx, rax
mov rcx, rbx
call fcn.140002440
lea rdx, [0x14001d6f4]
mov rcx, rbx
call fcn.140002440
call fcn.140001a50
mov rdx, rax
mov rcx, rbx
call fcn.140002440
lea rdx, [0x14001d6f4]
mov rcx, rbx
call fcn.140002440
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140002440
lea rcx, [rsp + 0x20]
call fcn.140002010
cmp eax, 0x10
jge 0x1400015b6
mov r8d, 0x10
lea rdx, [0x14001d6f8]
sub r8d, eax
mov rcx, rbx
call fcn.140002320
lea rdx, [0x14001d6f4]
mov rcx, rbx
call fcn.140002440
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rdx, rax
mov rcx, rbx
call fcn.140002440
mov rcx, rbx
call fcn.1400024a0
mov rcx, rbx
call fcn.140002050
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400032a0
add rsp, 0x250
pop rbx
ret
Function at 0x140001a50
Capabilities:
Get hostname

Disassembly:
push rbx
mov eax, 0x20
call fcn.140003240
sub rsp, rax
cmp byte [0x14002a230], 0
mov dword [rsp + 0x30], 0x10
jne 0x140001aa9
lea rbx, [0x14002a230]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x140001aa0
lea r8d, [rax + 1]
lea rdx, str.GetComputerName
lea rcx, str.ss_host
call fcn.1400025d0
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x14002a230]
add rsp, 0x20
pop rbx
ret

Function at 0x140001ac0
Capabilities:
Get hostname

Disassembly:
push rbx
mov eax, 0x20
call fcn.140003240
sub rsp, rax
cmp word [0x14002a240], 0
mov dword [rsp + 0x30], 0x10
jne 0x140001b1a
lea rbx, [0x14002a240]
mov rcx, rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140001b11
lea r8d, [rax + 1]
lea rdx, [0x14001d748]
lea rcx, str.ss_host
call fcn.1400025d0
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x14002a240]
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
mov eax, 0x20
call fcn.140003240
sub rsp, rax
lea rdx, [0x14001d7a0]
mov rbx, rcx
call fcn.1400018f0
test eax, eax
je 0x140001d0b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140001db0
Capabilities:
Get session user name

Disassembly:
mov eax, 0x28
call fcn.140003240
sub rsp, rax
mov rax, qword [0x14002a270]
test rax, rax
jne 0x140001dfd
mov ecx, 0x104
call fcn.1400029b0
mov qword [0x14002a270], rax
test rax, rax
jne 0x140001dfd
lea r8d, [rax + 1]
lea rdx, str.ss_malloc_failed
lea rcx, str.ss_user
call fcn.1400025d0
mov rax, qword [0x14002a270]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x104
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x140001e2e
lea r8d, [rax + 1]
lea rdx, str.GetUserName
lea rcx, str.ss_user
call fcn.1400025d0
mov rax, qword [0x14002a270]
add rsp, 0x28
ret
Function at 0x140002050
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x30
call fcn.140003240
sub rsp, rax
mov rbx, rcx
test rcx, rcx
jne 0x140002079
lea eax, [rcx + 1]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx]
mov edi, 1
test rcx, rcx
je 0x1400020e7
cmp dword [rbx + 0x1c], 0
je 0x1400020bf
mov r8d, dword [rbx + 0x24]
test r8d, r8d
jle 0x1400020bf
mov rdx, qword [rbx + 0x10]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400020bf
lea eax, [rdi - 2]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rbx + 0x18], 0
jne 0x1400020e7
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test eax, eax
jne 0x1400020e7
mov rdx, qword [rbx + 8]
lea rcx, str.ss_fclose
xor r8d, r8d
call fcn.1400025d0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400020f5
call fcn.140002910
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140002103
call fcn.140002910
mov rcx, rbx
call fcn.140002910
mov rbx, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x30
pop rdi
ret

Function at 0x140002320
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push r14
mov eax, 0x30
call fcn.140003240
sub rsp, rax
mov esi, r8d
mov r14, rdx
mov rbx, rcx
test rcx, rcx
jne 0x140002357
lea r8d, [rax - 0x2f]
lea rdx, str.Called_with_NULL_pointer_for_SS_FileIO
lea rcx, str.ss_fwrite
call fcn.1400025d0
cmp dword [rbx + 0x1c], 0
mov qword [rsp + 0x58], rdi
jne 0x140002397
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
xor edi, edi
mov r8d, esi
mov rdx, r14
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002420
mov eax, dword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
mov r8d, dword [rbx + 0x24]
test r8d, r8d
jne 0x1400023b6
mov eax, esi
and eax, 0x80000fff
jge 0x1400023b2
dec eax
or eax, 0xfffff000
inc eax
test eax, eax
je 0x140002362
xor edi, edi
mov dword [rsp + 0x50], edi
test esi, esi
je 0x140002385
movzx eax, byte [r14]
lea r14, [r14 + 1]
mov rcx, qword [rbx + 0x10]
dec esi
movsxd rdx, r8d
mov byte [rdx + rcx], al
mov r8d, dword [rbx + 0x24]
inc dword [rsp + 0x50]
inc r8d
mov dword [rbx + 0x24], r8d
cmp r8d, dword [rbx + 0x20]
jne 0x14000240a
mov rdx, qword [rbx + 0x10]
lea r9, [rsp + 0x68]
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140002420
mov dword [rbx + 0x24], edi
mov r8d, edi
test esi, esi
jne 0x1400023c0
mov eax, dword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rsp + 0x58]
mov eax, 0xffffffff
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140002440
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x20
call fcn.140003240
sub rsp, rax
mov rdi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x140002475
lea r8d, [rax - 0x1f]
lea rdx, str.Called_with_NULL_pointer_for_SS_FileIO
lea rcx, str.ss_fwrite_b
call fcn.1400025d0
mov rcx, rdi
call fcn.140002010
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140002320

Function at 0x1400024a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push r14
mov eax, 0x30
call fcn.140003240
sub rsp, rax
mov rbx, rcx
test rcx, rcx
jne 0x1400024f4
lea r8d, [rax - 0x2f]
lea rdx, str.Called_with_NULL_pointer_for_SS_FileIO
lea rcx, str.ss_fnl
call fcn.1400025d0
lea r8d, [rbx + 1]
lea rdx, str.Called_with_NULL_pointer_for_SS_FileIO
lea rcx, str.ss_fwrite
lea esi, [rbx + 2]
lea r14, [0x14001d928]
call fcn.1400025d0
jmp 0x140002500
mov esi, 2
lea r14, [0x14001d928]
mov qword [rsp + 0x60], rdi
xor edi, edi
cmp dword [rbx + 0x1c], edi
jne 0x140002548
mov rcx, qword [rbx]
lea r9, [rsp + 0x50]
lea r8d, [rdi + 2]
mov qword [rsp + 0x20], rdi
lea rdx, [0x14001d928]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [rsp + 0x50]
mov edx, 0xffffffff
test eax, eax
cmove ecx, edx
mov eax, ecx
mov rdi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
mov r8d, dword [rbx + 0x24]
mov dword [rsp + 0x50], edi
movzx eax, byte [r14]
lea r14, [r14 + 1]
mov rcx, qword [rbx + 0x10]
dec esi
movsxd rdx, r8d
mov byte [rdx + rcx], al
mov r8d, dword [rbx + 0x24]
inc dword [rsp + 0x50]
inc r8d
mov dword [rbx + 0x24], r8d
cmp r8d, dword [rbx + 0x20]
jne 0x14000259a
mov rdx, qword [rbx + 0x10]
lea r9, [rsp + 0x58]
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400025b0
mov dword [rbx + 0x24], edi
mov r8d, edi
test esi, esi
jne 0x140002550
mov eax, dword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
mov rdi, qword [rsp + 0x60]
mov eax, 0xffffffff
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret