joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006c0c5
Capabilities:
Get hostname
Resolve dns

Disassembly:
jmp 0x1400f2580
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x8a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3e8]
mov rax, qword [0x14017f080]
xor rax, rbp
mov qword [rbp + 0x398], rax
mov dword [rbp + 0x384], 0
lea rcx, [0x14019515a]
call fcn.14006c840
nop
mov edx, 0x100
lea rcx, [rbp + 0x10]
call qword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x1400f2616
lea rdx, str.Unknown
mov rcx, qword [rbp + 0x3c0]
call fcn.14006a90a
mov eax, dword [rbp + 0x384]
or eax, 1
mov dword [rbp + 0x384], eax
mov rax, qword [rbp + 0x3c0]
jmp 0x1400f276d
lea rax, [rbp + 0x128]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov dword [rbp + 0x12c], 2
mov dword [rbp + 0x130], 1
mov qword [rbp + 0x178], 0
lea r9, [rbp + 0x178]
lea r8, [rbp + 0x128]
xor edx, edx
lea rcx, [rbp + 0x10]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400f2694
lea rdx, str.Unknown
mov rcx, qword [rbp + 0x3c0]
call fcn.14006a90a
mov eax, dword [rbp + 0x384]
or eax, 1
mov dword [rbp + 0x384], eax
mov rax, qword [rbp + 0x3c0]
jmp 0x1400f276d
mov rax, qword [rbp + 0x178]
mov qword [rbp + 0x198], rax
jmp 0x1400f26b6
cmp qword [rbp + 0x198], 0
je 0x1400f2736
mov rax, qword [rbp + 0x198]
mov rax, qword [rax + 0x20]
mov qword [rbp + 0x1b8], rax
mov rax, qword [rbp + 0x1b8]
add rax, 4
mov r9d, socket
lea r8, [rbp + 0x1d8]
mov rdx, rax
mov ecx, 2
call fcn.14006af90
nop
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
lea rdx, [rbp + 0x1d8]
mov rcx, qword [rbp + 0x3c0]
call fcn.14006a90a
mov eax, dword [rbp + 0x384]
or eax, 1
mov dword [rbp + 0x384], eax
mov rax, qword [rbp + 0x3c0]
jmp 0x1400f276d
mov rcx, qword [rbp + 0x178]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
lea rdx, str.Unknown
mov rcx, qword [rbp + 0x3c0]
call fcn.14006a90a
mov eax, dword [rbp + 0x384]
or eax, 1
mov dword [rbp + 0x384], eax
mov rax, qword [rbp + 0x3c0]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_connect
call fcn.14006be22
mov rax, rdi
mov rcx, qword [rbp + 0x398]
xor rcx, rbp
call fcn.14006aaf9
lea rsp, [rbp + 0x3a8]
pop rdi
pop rbp
ret
Function at 0x14006c75a
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400cf2a0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x14017f080]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14019513d]
call fcn.14006c840
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x1400cf307
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400cf30e
mov al, 1
jmp 0x1400cf45e
call fcn.140069f64
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.140069f64
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.14006bc2e
movzx eax, al
test eax, eax
je 0x1400cf35f
xor al, al
jmp 0x1400cf45e
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x1400cf3c4
cmp dword [rbp + 0x154], 1
je 0x1400cf3cf
cmp dword [rbp + 0x154], 3
je 0x1400cf44d
jmp 0x1400cf45c
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x1400cf41f
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x1400cf41f
xor al, al
jmp 0x1400cf45e
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400cf43a
mov dword [rbp + 0x154], 1
jmp 0x1400cf444
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x1400cf45e
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400cf45e
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.14006be22
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.14006aaf9
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x14006c8d1
Capabilities:
Get mac address on windows

Disassembly:
jmp 0x1400f2830
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x3328
call fcn.140069a00
sub rsp, rax
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0xb36
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x3348]
mov rax, qword [0x14017f080]
xor rax, rbp
mov qword [rbp + 0x32c8], rax
mov dword [rbp + 0x32b4], 0
lea rcx, [0x14019515a]
call fcn.14006c840
nop
mov dword [rbp + 0x2c24], 0x2c00
lea rdx, [rbp + 0x2c24]
lea rcx, [rbp + 0x10]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [rbp + 0x2c44], eax
cmp dword [rbp + 0x2c44], 0
je 0x1400f28e2
lea rdx, str.Unknown
mov rcx, qword [rbp + 0x32f0]
call fcn.14006a90a
mov eax, dword [rbp + 0x32b4]
or eax, 1
mov dword [rbp + 0x32b4], eax
mov rax, qword [rbp + 0x32f0]
jmp 0x1400f2a42
lea rax, [rbp + 0x10]
mov qword [rbp + 0x2c68], rax
cmp qword [rbp + 0x2c68], 0
je 0x1400f2a19
mov rax, qword [rbp + 0x2c68]
cmp dword [rax + 0x1a4], 6
jne 0x1400f2a03
mov eax, 1
imul rax, rax, 5
mov rcx, qword [rbp + 0x2c68]
movzx eax, byte [rcx + rax + 0x198]
mov ecx, 1
imul rcx, rcx, 4
mov rdx, qword [rbp + 0x2c68]
movzx ecx, byte [rdx + rcx + 0x198]
mov edx, 1
imul rdx, rdx, 3
mov r8, qword [rbp + 0x2c68]
movzx edx, byte [r8 + rdx + 0x198]
mov r8d, 1
imul r8, r8, 2
mov r9, qword [rbp + 0x2c68]
movzx r8d, byte [r9 + r8 + 0x198]
mov r9d, 1
imul r9, r9, 1
mov r10, qword [rbp + 0x2c68]
movzx r9d, byte [r10 + r9 + 0x198]
mov r10d, 1
imul r10, r10, 0
mov r11, qword [rbp + 0x2c68]
movzx r10d, byte [r11 + r10 + 0x198]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r9d
mov r9d, r10d
lea r8, str._02X:_02X:_02X:_02X:_02X:_02X
mov edx, send
lea rcx, [rbp + 0x2c88]
call fcn.14006b143
nop
lea rdx, [rbp + 0x2c88]
mov rcx, qword [rbp + 0x32f0]
call fcn.14006a90a
mov eax, dword [rbp + 0x32b4]
or eax, 1
mov dword [rbp + 0x32b4], eax
mov rax, qword [rbp + 0x32f0]
jmp 0x1400f2a42
mov rax, qword [rbp + 0x2c68]
mov rax, qword [rax]
mov qword [rbp + 0x2c68], rax
jmp 0x1400f28ed
lea rdx, str.Unknown
mov rcx, qword [rbp + 0x32f0]
call fcn.14006a90a
mov eax, dword [rbp + 0x32b4]
or eax, 1
mov dword [rbp + 0x32b4], eax
mov rax, qword [rbp + 0x32f0]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14006be22
mov rax, rdi
mov rcx, qword [rbp + 0x32c8]
xor rcx, rbp
call fcn.14006aaf9
lea rsp, [rbp + 0x32d8]
pop rdi
pop rbp
ret
Function at 0x14006c985
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
jmp 0x1400b5420
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2c8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x7a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2e8]
mov rax, qword [0x14017f080]
xor rax, rbp
mov qword [rbp + 0x298], rax
lea rcx, [0x14019515a]
call fcn.14006c840
nop
mov rax, qword [rbp + 0x2c0]
mov qword [rax], 0xffffffffffffffff
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x1c4], eax
xor ecx, ecx
call fcn.140104f00
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_srand]
nop
cmp dword [rbp + 0x1c4], 0
je 0x1400b54b1
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
nop
mov rax, qword [rbp + 0x2c0]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1401503c0]
call fcn.14006be22
mov rax, rdi
mov rcx, qword [rbp + 0x298]
xor rcx, rbp
call fcn.14006aaf9
lea rsp, [rbp + 0x2a8]
pop rdi
pop rbp
ret
Function at 0x140134910
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14006ca43
movzx eax, al
test eax, eax
jne 0x140134930
mov ecx, 7
call fcn.14006be86
nop
mov byte [rsp + 0x20], 0
call fcn.14006bf76
mov byte [rsp + 0x21], al
cmp dword [0x1401803c8], 1
jne 0x140134954
mov ecx, 7
call fcn.14006be86
nop
jmp 0x1401349ac
cmp dword [0x1401803c8], 0
jne 0x1401349a7
mov dword [0x1401803c8], 1
lea rdx, [0x140148890]
lea rcx, [0x140148560]
call fcn.14006aa3b
test eax, eax
je 0x140134988
mov eax, 0xff
jmp 0x140134ab1
lea rdx, [0x140148450]
lea rcx, [section..rdata]
call fcn.14006bf30
mov dword [0x1401803c8], 2
jmp 0x1401349ac
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14006bde1
call fcn.14006b819
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140134a09
mov rcx, qword [rsp + 0x30]
call fcn.14006a57c
movzx eax, al
test eax, eax
je 0x140134a09
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140197020]
nop
call fcn.14006bab2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140134a3d
mov rcx, qword [rsp + 0x38]
call fcn.14006a57c
movzx eax, al
test eax, eax
je 0x140134a3d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14006c642
nop
call fcn.140134b20
mov dword [rsp + 0x28], eax
call fcn.14006b698
movzx eax, al
test eax, eax
jne 0x140134a5c
mov ecx, dword [rsp + 0x28]
call fcn.14006940b
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140134a6b
call fcn.14006c6e7
nop
xor edx, edx
mov cl, 1
call fcn.14006a47d
mov eax, dword [rsp + 0x28]
jmp 0x140134ab1
add rsp, 0x68
ret
Function at 0x100001400
Capabilities:
Terminate process

Disassembly:
mov word [rbx], di
add rbx, 2
cmp word [rbx], di
je 0x100001683
lea rdx, str._ProcessID
lea rcx, [rsp + 0x90]
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, edi
jne 0x100001683
lea rax, [rsp + 0x30]
mov edx, 0x29
lea rcx, [rsp + 0x30]
sub rbx, rax
mov r8d, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea rax, [rdx + 0x7fffffd5]
cmp rax, rdi
je 0x100001072
movzx eax, word [rbx + rcx]
cmp ax, di
je 0x100001072
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100001050
cmp rdx, rdi
je 0x100001690
cmp r8d, edi
mov word [rcx], di
jl 0x1000010c8
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ole32.dll_CLSIDFromString]
cmp eax, edi
jl 0x1000010c8
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, edi
jl 0x1000010c8
lea rcx, [rsp + 0x20]
xor edx, edx
call sub.ole32.dll_CoRegisterSurrogateEx
call qword [sym.imp.ole32.dll_CoUninitialize]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.100093000
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x2b0
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2b0
mov rax, qword [0x100003018]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor r9d, r9d
mov rbx, r8
xor ecx, ecx
lea edx, [r9 + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
xor edi, edi
lea rax, [rsp + 0x90]
mov r11d, 0x105
lea rcx, [rsp + 0x90]
mov edx, edi
sub rbx, rax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea rax, [r11 + 0x7ffffef9]
cmp rax, rdi
je 0x100001482
movzx eax, word [rbx + rcx]
cmp ax, di
je 0x100001482
mov word [rcx], ax
add rcx, 2
sub r11, 1
jne 0x100001460
cmp r11, rdi
je 0x100001670
cmp edx, edi
mov word [rcx], di
jl 0x1000010c8
lea rbx, [rsp + 0x90]
cmp word [rsp + 0x90], di
je 0x100001683
cmp word [rbx], 0x3a
je section..text
add rbx, 2
cmp word [rbx], di
jne 0x1000014ac
jmp 0x10000167e
sub rcx, 2
mov edx, 0x8007007a
jmp 0x10000148b
jmp 0x100001007
lea rbx, [rsp + 0x90]
jmp 0x10000102d
sub rcx, 2
mov r8d, 0x8007007a
jmp 0x10000107b
Function at 0x140001350
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140003638], rbx
je 0x14000139c
cmp rax, rbx
jne 0x14000138f
mov ebx, 1
mov esi, ebx
jmp 0x1400013a1
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140001374
mov ebx, 1
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x1400013b7
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14000141c
mov eax, dword [0x140003640]
test eax, eax
jne 0x140001416
mov dword [0x140003640], ebx
lea r15, [0x1400022d8]
lea rdi, [0x1400022c0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140001408
test eax, eax
jne 0x14000140c
cmp qword [rdi], 0
je 0x1400013fd
mov rax, qword [rdi]
mov rcx, qword [0x1400022a0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400013de
test eax, eax
je 0x14000141c
mov eax, 0xff
jmp 0x1400014f8
mov dword [0x140003044], ebx
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x140001443
lea rdx, [0x1400022b8]
lea rcx, [0x1400022a8]
call sub.msvcrt.dll__initterm
mov dword [0x140003640], 2
test esi, esi
jne 0x140001450
xor eax, eax
xchg qword [0x140003638], rax
cmp qword [0x140003648], 0
je 0x140001484
lea rcx, [0x140003648]
call fcn.140001700
test eax, eax
je 0x140001484
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140003648]
mov r9, qword [0x1400022a0]
call r9
mov r8, qword [0x140003058]
mov rdx, qword [0x140003050]
mov ecx, dword [0x140003048]
call fcn.1400011ec
mov dword [0x140003040], eax
cmp dword [0x140003060], 0
jne 0x1400014b4
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003044], 0
jne 0x1400014c9
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003040]
jmp 0x1400014f8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140134000
add rsp, 0x28
jmp 0x140001350

Function at 0x1400015ec
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001638
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001630
cmp dword [rcx + 0x3c], edx
jl 0x140001630
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001630
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140001638
mov rax, rdx
add rsp, 0x18
ret
Function at 0x100002454
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100004758], rdi
je 0x1000024a2
cmp rax, rdi
jne 0x100002495
mov edi, 1
mov r12d, edi
jmp 0x1000024a7
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100002479
mov edi, 1
mov eax, dword [0x100004750]
cmp eax, edi
jne 0x1000024bd
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x10000251a
mov eax, dword [0x100004750]
test eax, eax
jne 0x100002514
mov dword [0x100004750], edi
lea r13, [0x100001290]
lea rsi, [0x100001278]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x100002506
test eax, eax
jne 0x100002506
mov rcx, qword [rsi]
test rcx, rcx
je 0x1000024fb
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x1000024e4
test eax, eax
je 0x10000251a
mov eax, 0xff
jmp 0x1000025ec
mov dword [0x100004184], edi
mov eax, dword [0x100004750]
cmp eax, edi
jne 0x100002541
lea rdx, [0x100001270]
lea rcx, [0x100001260]
call sub.msvcrt.dll__initterm
mov dword [0x100004750], 2
test r12d, r12d
jne 0x10000254f
xor eax, eax
xchg qword [0x100004758], rax
cmp qword [0x100004760], 0
je 0x100002578
lea rcx, [0x100004760]
call fcn.10000284c
test eax, eax
je 0x100002578
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100004760]
mov r8, qword [0x100004168]
mov rdx, qword [0x100004170]
mov ecx, dword [0x100004160]
call fcn.100001b54
mov dword [0x100004180], eax
cmp dword [0x100004164], 0
jne 0x1000025a8
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100004184], 0
jne 0x1000025bd
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100004180]
jmp 0x1000025ec
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call 0x100169000
add rsp, 0x28
jmp 0x100002454
Function at 0x1400020b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x1400021ab
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x1400021b3
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400021ea
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x1400021c0
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140002215
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000223b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x140002220
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a350
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
lea edi, [r14 + 0x28]
test al, al
je 0x14000a401
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.14000ff7c
cmp rax, 1
jne 0x14000a437
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14000a3dd
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14000a3d0
cmp rcx, 1
jb 0x14000a437
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14000a3a0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000bae0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14000fc40
int3
Function at 0x14000a4c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a505
xor al, al
jmp 0x14000a552
cmp word [rbx], 0
je 0x14000a51d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a510
cmp word [rsp + 0x30], 0
je 0x14000a54b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a573
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a530
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000bae0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000fc40
int3
Function at 0x14000ad00
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001fc40
sub rsp, rax
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002fd70]
lea rsi, [0x140044db0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ad79
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a580
test al, al
je 0x14000ae5f
lea rcx, [rsp + 0x20]
call fcn.14001428c
movsxd r11, dword [0x14002fd70]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002fd70], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000adb4
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ada4
add rax, 2
test ecx, ecx
jne 0x14000ad90
test edx, edx
je 0x14000add7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ad84
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000adc0
cmp rax, 2
jne 0x14000addb
cmp word [rdi + 2], 0x3a
jne 0x14000addb
mov al, 1
jmp 0x14000ae3e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ae08
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000ae08
mov bl, 1
jmp 0x14000ae0c
test bl, bl
je 0x14000ae33
cmp dword [0x14002fd70], 0x400
jge 0x14000ae33
mov rcx, rdi
call fcn.14001428c
movsxd rdx, dword [0x14002fd70]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002fd70], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000bae0
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000aba0
int3
Function at 0x14000af80
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fd78]
test rcx, rcx
je 0x14000afbb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000afae
mov rcx, qword [0x14002fd78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fd78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140048dc8], 0
je 0x14000b0ae
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140029878]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400425b0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b08f
test al, 0x10
je 0x14000b08f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b035
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret