joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000249c
Capabilities:
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x210
mov rax, qword [0x1401507e0]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov rbx, rcx
xor r12d, r12d
mov ecx, 0x1000
and dword [rsp + 0x30], r12d
mov r14d, r9d
mov r13, r8
mov r15d, edx
or rdi, 0xffffffffffffffff
call fcn.140003f58
mov rsi, rax
test rax, rax
jne 0x1400024f3
lea ebx, [rdi + 9]
jmp 0x140002684
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.140013580
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rbx
call fcn.140002214
mov ebx, eax
test eax, eax
jne 0x140002662
cmp dword [rsp + 0x30], r12d
je 0x140002662
lea rdx, [rsp + 0x60]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140002547
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x140002660
mov r12d, 1
xor r8d, r8d
lea ebx, [r12 + 1]
mov edx, ebx
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000253c
lea ecx, [rbx + 0x33]
mov word [rsp + 0x48], bx
call qword [sym.imp.WS2_32.dll_htons]
and dword [rsp + 0x3c], 0
mov dword [rsp + 0x4c], r15d
mov dword [rsp + 0x38], ebx
mov r15d, 0xffff
lea ebx, [r12 + 7]
lea r9, [rsp + 0x38]
mov r8d, 0x1005
mov rcx, rdi
mov edx, r15d
mov dword [rsp + 0x20], ebx
mov word [rsp + 0x4a], ax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8d, dword [rsp + 0x30]
lea rax, [rsp + 0x48]
xor r9d, r9d
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov dword [rsp + 0x40], eax
cmp eax, 0xffffffff
je 0x14000253c
lea ecx, [rbx + 0x5c]
call qword [sym.imp.KERNEL32.dll_Sleep]
and dword [rsp + 0x3c], 0
lea r9, [rsp + 0x38]
mov r8d, 0x1006
mov edx, r15d
mov rcx, rdi
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
mov dword [rsp + 0x38], 2
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r11, [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], r11
xor r9d, r9d
mov r8d, 0x1000
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x14000253c
mov r9d, r14d
mov r8, r13
mov edx, 0x1000
mov rcx, rsi
call fcn.140002340
mov ebx, eax
mov rcx, rsi
call fcn.140013e24
cmp rdi, 0xffffffffffffffff
je 0x140002679
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test r12d, r12d
je 0x140002684
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.140013680
add rsp, 0x210
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400026ac
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1401507e0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rbp, rdx
mov rdi, rcx
xor ebx, ebx
and dword [rdx], ebx
lea rdx, [rsp + 0x30]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, eax
test eax, eax
je 0x1400026f7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x140002753
movsx ecx, byte [rdi]
call fcn.1400141b4
mov rcx, rdi
test eax, eax
je 0x14000270e
call qword [sym.imp.WS2_32.dll_gethostbyname]
jmp 0x140002738
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x20], eax
cmp eax, 0xffffffff
jne 0x140002724
mov ebx, 0x54f
jmp 0x140002757
mov edx, 4
lea rcx, [rsp + 0x20]
lea r8d, [rdx - 2]
call qword [sym.imp.WS2_32.dll_gethostbyaddr]
test rax, rax
jne 0x140002747
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x140002757
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rbp], eax
test esi, esi
jne 0x14000275d
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140013680
mov rbx, qword [rsp + 0x210]
add rsp, 0x1e0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140002904
Capabilities:
Encode data using xor

Disassembly:
cmp edx, 4
jb 0x14000292c
mov eax, 4
mov r9d, 0x362aff61
xor r8d, r9d
add eax, 4
add r9d, 0x15f9dc
xor dword [rcx], r8d
add rcx, 4
cmp eax, edx
jbe 0x140002914
xor eax, eax
ret

Function at 0x140002930
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
xor ebx, ebx
mov esi, r9d
mov rbp, r8
mov r12, rdx
mov r13, rcx
mov edi, ebx
cmp r8, rbx
je 0x1400029a0
cmp r9d, ebx
je 0x1400029a0
mov r8d, esi
mov edx, edi
xor r9d, r9d
mov rcx, r13
sub r8d, edi
add rdx, rbp
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], r12
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x14000299a
add edi, eax
cmp edi, esi
jae 0x1400029a0
inc ebx
cmp ebx, 0xa
jb 0x140002962
jmp 0x1400029a0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x30
pop r13
pop r12
pop rdi
ret

Function at 0x1400029bc
Capabilities:
Send data
Send data on socket

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
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rbp, rdx
mov r12, rcx
mov edi, ebx
cmp rdx, rbx
je 0x140002a15
cmp r8d, ebx
je 0x140002a15
mov r8d, esi
mov edx, edi
xor r9d, r9d
sub r8d, edi
add rdx, rbp
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x140002a15
add edi, eax
cmp edi, esi
jae 0x140002a15
inc ebx
cmp ebx, 0xa
jb 0x1400029ec
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x140002a58
Capabilities:
Initialize winsock library

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x1e0
mov rax, qword [0x1401507e0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rsi, qword [rsp + 0x248]
movzx r12d, dx
mov ebp, ecx
lea rdx, [rsp + 0x30]
mov ecx, 0x101
mov r13, r9
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test eax, eax
je 0x140002ab0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x140002b35
mov r8d, reloc.WS2_32.dll_recvfrom
lea r14d, [r8 - 0xf]
mov edx, r14d
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140002ad9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x140002b20
movzx ecx, r12w
mov word [rsp + 0x20], r14w
call qword [sym.imp.WS2_32.dll_htons]
mov r9d, dword [rsp + 0x240]
lea rdx, [rsp + 0x20]
mov r8, r13
mov rcx, rdi
mov word [rsp + 0x22], ax
mov dword [rsp + 0x24], ebp
call fcn.140002930
test rsi, rsi
je 0x140002b11
mov dword [rsi], eax
cmp eax, dword [rsp + 0x240]
mov ecx, 0x58
cmovne ebx, ecx
cmp rdi, 0xffffffffffffffff
je 0x140002b2f
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140013680
add rsp, 0x1e0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002b5c
Capabilities:
Connect socket
Get socket status
Initialize winsock library
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x620
mov rax, qword [0x1401507e0]
xor rax, rsp
mov qword [rsp + 0x610], rax
mov rbp, qword [rsp + 0x688]
movzx r13d, dx
mov ebx, ecx
lea rdx, [rsp + 0x470]
mov ecx, 0x101
mov rsi, r9
mov r14d, r8d
xor r12d, r12d
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140002bbb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x140002dbd
xor r8d, r8d
lea edx, [r8 + 1]
lea ecx, [rdx + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140002be1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x140002d9a
mov eax, 2
movzx ecx, r13w
mov word [rsp + 0x460], ax
call qword [sym.imp.WS2_32.dll_htons]
lea rdx, [rsp + 0x460]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rdi
mov dword [rsp + 0x464], ebx
mov word [rsp + 0x462], ax
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140002bd4
mov r8d, dword [rsp + 0x680]
mov rdx, rsi
mov rcx, rdi
call fcn.1400029bc
cmp eax, dword [rsp + 0x680]
je 0x140002c4b
mov ebx, 0x58
jmp 0x140002d9a
and dword [rsp + 0x34], r12d
mov eax, 1
lea r9, [rsp + 0x250]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x250], eax
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea ecx, [rdi + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x258], rdi
mov dword [rsp + 0x30], 5
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x140002d95
jne 0x140002cac
mov ebx, 0x5b4
jmp 0x140002d9a
mov r8d, dword [rsp + 0x690]
xor edx, edx
mov rcx, rbp
call fcn.140013580
xor r9d, r9d
mov rdx, rbp
lea r8d, [r9 + 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
js 0x140002bd4
jne 0x140002ce5
mov ebx, 0x4d4
jmp 0x140002d9a
cmp eax, 0x20
jne 0x140002d95
cmp dword [rbp], r14d
jne 0x140002d95
cmp dword [rbp + 4], r12d
je 0x140002d06
mov ebx, dword [rbp + 4]
jmp 0x140002d9a
mov esi, dword [rbp + 0x18]
test esi, esi
je 0x140002d9a
and dword [rsp + 0x34], 0
mov eax, 1
lea r9, [rsp + 0x250]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x250], eax
mov eax, 2
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
lea ecx, [rdi + 1]
xor r8d, r8d
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x258], rdi
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x140002d95
je 0x140002ca2
lea rdx, [r12 + rbp + 0x20]
xor r9d, r9d
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140002d8a
add r12d, eax
sub esi, eax
jne 0x140002d11
jmp 0x140002d9a
jne 0x140002bd4
jmp 0x140002cdb
mov ebx, 0x54f
cmp rdi, 0xffffffffffffffff
je 0x140002db7
mov edx, 2
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
mov rcx, qword [rsp + 0x610]
xor rcx, rsp
call fcn.140013680
add rsp, 0x620
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140003104
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
xor r8d, r8d
mov rsi, rcx
lea edx, [rbx + 0x40]
call fcn.140006440
cmp eax, ebx
je 0x140003159
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x140003159
movsxd rdi, dword [rsi + 0x3c]
xor r8d, r8d
mov edx, 0x108
add rdi, rsi
mov rcx, rdi
call fcn.140006440
cmp eax, ebx
je 0x140003159
cmp dword [rdi], 0x4550
cmovne rdi, rbx
mov rbx, rdi
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003300
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
xor r8d, r8d
mov rsi, rcx
lea edx, [rbx + 0x40]
call fcn.140006440
cmp eax, ebx
je 0x140003360
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x140003360
movsxd rdi, dword [rsi + 0x3c]
xor r8d, r8d
mov edx, 0xf8
add rdi, rsi
mov rcx, rdi
call fcn.140006440
cmp eax, ebx
je 0x140003360
cmp dword [rdi], 0x4550
jne 0x140003360
mov eax, 0x14c
cmp word [rdi + 4], ax
cmovne rdi, rbx
mov rbx, rdi
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003374
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
xor r8d, r8d
mov rsi, rcx
lea edx, [rbx + 0x40]
call fcn.140006440
cmp eax, ebx
je 0x1400033d4
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x1400033d4
movsxd rdi, dword [rsi + 0x3c]
xor r8d, r8d
mov edx, 0x108
add rdi, rsi
mov rcx, rdi
call fcn.140006440
cmp eax, ebx
je 0x1400033d4
cmp dword [rdi], 0x4550
jne 0x1400033d4
mov eax, 0x8664
cmp word [rdi + 4], ax
cmovne rdi, rbx
mov rbx, rdi
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003788
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r9d, r9d
mov edi, edx
mov r10, rcx
cmp rcx, r9
je 0x140003808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140003808
movsxd r8, dword [rcx + 0x3c]
add r8, rcx
cmp dword [r8], 0x4550
jne 0x140003808
mov ebx, dword [r8 + 0x58]
lea r11d, [rdi + 1]
mov edx, r9d
shr r11d, 1
mov dword [r8 + 0x58], r9d
je 0x1400037e9
movzx eax, word [r10]
dec r11d
add r10, 2
add edx, eax
mov ecx, edx
movzx edx, dx
shr ecx, 0x10
add edx, ecx
cmp r11d, r9d
jne 0x1400037cd
mov eax, edx
mov dword [r8 + 0x58], ebx
shr eax, 0x10
add ax, dx
movzx ecx, ax
add ecx, edi
cmp ebx, ecx
je 0x140003802
mov dword [r8 + 0x58], ecx
mov r9d, 1
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x140003f60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401507e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x29], rax
mov qword [rsp + 0x31], rax
mov dword [rsp + 0x28], 0x6e72656b
mov dword [rsp + 0x2c], 0x32336c65
mov dword [rsp + 0x30], 0x6c6c642e
mov byte [rsp + 0x34], al
mov qword [rsp + 0x39], rax
mov dword [rsp + 0x41], eax
mov word [rsp + 0x45], ax
mov byte [rsp + 0x47], al
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x140004099
mov eax, 0x7373
lea rdx, [rsp + 0x28]
mov rcx, rbx
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x28], 0x6f577349
mov dword [rsp + 0x2c], 0x50343677
mov dword [rsp + 0x30], 0x65636f72
mov word [rsp + 0x34], ax
mov byte [rsp + 0x36], 0
call fcn.1400034c4
mov rdi, rax
test rax, rax
je 0x140004094
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x20]
mov rcx, rax
call rdi
cmp dword [rsp + 0x20], 0
je 0x140004094
mov eax, 0x6e6f
lea rdx, [rsp + 0x28]
mov rcx, rbx
mov dword [rsp + 0x28], 0x36776f57
mov dword [rsp + 0x2c], 0x73694434
mov dword [rsp + 0x30], 0x656c6261
mov dword [rsp + 0x34], 0x36776f57
mov dword [rsp + 0x38], 0x52734634
mov dword [rsp + 0x3c], 0x72696465
mov dword [rsp + 0x40], 0x69746365
mov word [rsp + 0x44], ax
mov byte [rsp + 0x46], 0
call fcn.1400034c4
test rax, rax
je 0x140004094
lea rcx, [0x140151dc0]
call rax
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140013680
add rsp, 0x50
pop rbx
ret
Function at 0x1400040b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1401507e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x29], rax
mov qword [rsp + 0x31], rax
mov dword [rsp + 0x28], 0x6e72656b
mov dword [rsp + 0x2c], 0x32336c65
mov dword [rsp + 0x30], 0x6c6c642e
mov byte [rsp + 0x34], al
mov qword [rsp + 0x39], rax
mov dword [rsp + 0x41], eax
mov word [rsp + 0x45], ax
mov byte [rsp + 0x47], al
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x1400041e0
mov eax, 0x7373
lea rdx, [rsp + 0x28]
mov rcx, rbx
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x28], 0x6f577349
mov dword [rsp + 0x2c], 0x50343677
mov dword [rsp + 0x30], 0x65636f72
mov word [rsp + 0x34], ax
mov byte [rsp + 0x36], 0
call fcn.1400034c4
mov rdi, rax
test rax, rax
je 0x1400041db
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x20]
mov rcx, rax
call rdi
cmp dword [rsp + 0x20], 0
je 0x1400041db
mov eax, WSAGetLastError
lea rdx, [rsp + 0x28]
mov rcx, rbx
mov dword [rsp + 0x28], 0x36776f57
mov dword [rsp + 0x2c], 0x76655234
mov dword [rsp + 0x30], 0x57747265
mov dword [rsp + 0x34], 0x3436776f
mov dword [rsp + 0x38], 0x65527346
mov dword [rsp + 0x3c], 0x65726964
mov dword [rsp + 0x40], 0x6f697463
mov word [rsp + 0x44], ax
call fcn.1400034c4
test rax, rax
je 0x1400041db
mov rcx, qword [0x140151dc0]
call rax
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140013680
add rsp, 0x50
pop rbx
ret

Function at 0x140004200
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1401507e0]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor eax, eax
mov rbx, rcx
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x29], rax
mov dword [rsp + 0x31], eax
mov dword [rsp + 0x20], 0
mov word [rsp + 0x35], ax
mov byte [rsp + 0x37], al
mov dword [rsp + 0x28], 0x6e72656b
mov dword [rsp + 0x2c], 0x32336c65
mov dword [rsp + 0x30], 0x6c6c642e
mov byte [rsp + 0x34], al
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400042dd
mov ecx, 0x7373
lea rdx, [rsp + 0x28]
mov qword [rsp + 0x58], rdi
mov word [rsp + 0x34], cx
mov rcx, rax
mov dword [rsp + 0x28], 0x6f577349
mov dword [rsp + 0x2c], 0x50343677
mov dword [rsp + 0x30], 0x65636f72
mov byte [rsp + 0x36], 0
call fcn.1400034c4
mov rdi, rax
test rax, rax
je 0x1400042c1
test rbx, rbx
jne 0x1400042af
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov dword [rsp + 0x20], 0
call rdi
mov eax, dword [rsp + 0x20]
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140013680
add rsp, 0x40
pop rbx
ret
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140013680
add rsp, 0x40
pop rbx
ret
Function at 0x140004300
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xor edx, edx
lea rcx, [rsp + 0x24]
mov dword [rsp + 0x20], 0
lea r8d, [rdx + 0x2c]
call fcn.140013580
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx r11d, word [rsp + 0x20]
cmp r11w, 9
je 0x140004342
cmp r11w, 6
je 0x140004342
xor eax, eax
add rsp, 0x58
ret
mov eax, 1
add rsp, 0x58
ret

Function at 0x1400043a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov ebp, r9d
mov r12, r8
mov ebx, edx
mov rdi, rcx
xor esi, esi
call fcn.140004350
movzx edx, bx
mov r8, rdi
mov rcx, rax
mov r13, rax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbx, rax
test rax, rax
jne 0x1400043ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140004486
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140004409
mov dword [rax], edi
test r12, r12
je 0x140004484
test ebp, ebp
je 0x140004484
test edi, edi
jne 0x140004427
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004486
mov eax, 0x138e
jmp 0x140004486
cmp ebp, edi
jae 0x140004432
mov eax, 0x7a
jmp 0x140004486
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x140004450
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140004476
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
jne 0x140004468
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140004476
mov r8, rdi
mov rdx, rax
mov rcx, r12
call fcn.1400136f0
test rbx, rbx
je 0x140004484
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x1400045c0
Capabilities:
Clear file content
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r12
push r13
push r14
sub rsp, 0x40
xor ebx, ebx
mov r12d, r9d
mov r14, r8
mov r13, rdx
mov rbp, rcx
mov dword [rsp + 0x60], ebx
test rcx, rcx
je 0x140004783
test r8, r8
je 0x140004783
mov qword [rsp + 0x68], rdi
cmp dword [rsp + 0x88], ebx
je 0x14000460b
call fcn.140003f60
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [r9 + 3]
mov edx, 0x40000000
mov rcx, rbp
mov dword [rsp + 0x28], 0x2000080
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140004676
mov qword [rsp + 0x30], rbx
lea r8d, [rax + 4]
xor r9d, r9d
mov edx, 0x40000000
mov rcx, rbp
mov dword [rsp + 0x28], 0x2000080
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp dword [rsp + 0x88], ebx
je 0x140004684
call fcn.1400040b0
cmp rdi, 0xffffffffffffffff
jne 0x1400046aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
ret
cmp r13, 0xffffffffffffffff
jne 0x1400046dc
lea r9d, [r13 + 3]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140004707
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x140004690
xor r9d, r9d
xor r8d, r8d
mov rdx, r13
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140004707
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x140004690
lea r9, [rsp + 0x60]
mov r8d, r12d
mov rdx, r14
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000473c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x140004690
cmp dword [rsp + 0x60], r12d
je 0x140004758
mov rcx, rdi
mov ebx, 0x1d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x140004690
cmp dword [rsp + 0x80], ebx
je 0x14000476a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x140004690
mov eax, 0x57
jmp 0x140004695