joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001998
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x14014dd80]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor ebx, ebx
mov esi, edx
mov rbp, rcx
and dword [rsp + 0x40], ebx
call fcn.140001064
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400019e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [rdi + 3]
jmp 0x140001b60
and qword [rsp + 0x38], rbx
lea rax, [rsp + 0x40]
mov rcx, rdi
mov qword [rsp + 0x30], rax
test esi, esi
je 0x140001b26
and dword [rsp + 0x28], ebx
and qword [rsp + 0x20], rbx
mov r9d, 0x184
mov r8, rbp
mov edx, 0x76001fd0
call fcn.140004f0c
test eax, eax
jne 0x140001a2f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x140001b5b
xor edx, edx
lea rcx, [rsp + 0x61]
lea r8d, [rdx + 0x3f]
call fcn.1400167a0
xor r11d, r11d
lea r8, [rsp + 0x48]
mov qword [rsp + 0x49], r11
mov dword [rsp + 0x51], r11d
mov word [rsp + 0x55], r11w
mov byte [rsp + 0x57], r11b
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x48], 0x6f6d6552
mov dword [rsp + 0x4c], 0x65536574
mov dword [rsp + 0x50], 0x69727563
mov dword [rsp + 0x54], 0x7974
mov dword [rsp + 0x60], 0x54535953
mov dword [rsp + 0x64], 0x435c4d45
mov dword [rsp + 0x68], 0x65727275
mov dword [rsp + 0x6c], 0x6f43746e
mov dword [rsp + 0x70], 0x6f72746e
mov dword [rsp + 0x74], 0x7465536c
mov dword [rsp + 0x78], 0x6e6f435c
mov dword [rsp + 0x7c], 0x6c6f7274
mov dword [rsp + 0x80], 0x7265545c
mov dword [rsp + 0x84], 0x616e696d
mov dword [rsp + 0x88], 0x6553206c
mov dword [rsp + 0x8c], 0x72657672
mov dword [rsp + 0x90], 0x6e69575c
mov dword [rsp + 0x94], 0x74617453
mov dword [rsp + 0x98], 0x736e6f69
mov byte [rsp + 0x9c], bl
call fcn.140006580
jmp 0x140001b5b
xor r9d, r9d
xor r8d, r8d
mov edx, 0x76001fcc
mov dword [rsp + 0x28], 0x184
mov qword [rsp + 0x20], rbp
call fcn.140004f0c
test eax, eax
je 0x140001a22
cmp dword [rsp + 0x40], 0x184
mov eax, 0x54f
cmovne ebx, eax
test rdi, rdi
je 0x140001b69
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400168a0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140002214
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14014dd80]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
lea rcx, [rsp + 0x31]
lea r8d, [rdx + 0x3f]
mov byte [rsp + 0x30], 0
mov esi, eax
call fcn.1400167a0
and dword [rsp + 0x20], 0
test rbx, rbx
je 0x14000229f
mov rcx, rbx
call fcn.140017304
lea ecx, [rax - 0x989680]
cmp ecx, 0x55d4a7f
ja 0x14000229f
lea rdx, [0x1400255f4]
lea rcx, [rsp + 0x30]
mov r8d, eax
call fcn.140016e00
lea r8, [rsp + 0x20]
lea rdx, str._08X
lea rcx, [rsp + 0x30]
call fcn.1400172cc
mov ecx, dword [rsp + 0x20]
call fcn.14000211c
test eax, eax
jne 0x140002313
jmp 0x1400022ef
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
sub edi, esi
cmp edi, 0xea60
jb 0x1400022d3
call fcn.140001064
test rax, rax
je 0x1400022fa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x493e0
jae 0x1400022fa
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 0x7d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.14000adf0
mov ebx, eax
test eax, eax
je 0x1400022ae
cmp ebx, 0xf
jl 0x140002313
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 0x1388
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, 2
xor ecx, ecx
call fcn.140008840
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400168a0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000262c
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 [0x14014dd80]
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.140005330
mov rsi, rax
test rax, rax
jne 0x140002683
lea ebx, [rdi + 9]
jmp 0x140002814
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.1400167a0
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rbx
call fcn.1400023a4
mov ebx, eax
test eax, eax
jne 0x1400027f2
cmp dword [rsp + 0x30], r12d
je 0x1400027f2
lea rdx, [rsp + 0x60]
mov ecx, 0x101
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400026d7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x1400027f0
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 0x1400026cc
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 0x1400026cc
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 0x1400026cc
mov r9d, r14d
mov r8, r13
mov edx, 0x1000
mov rcx, rsi
call fcn.1400024d0
mov ebx, eax
mov rcx, rsi
call fcn.1400170c8
cmp rdi, 0xffffffffffffffff
je 0x140002809
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
test r12d, r12d
je 0x140002814
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.1400168a0
add rsp, 0x210
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000283c
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x1e0
mov rax, qword [0x14014dd80]
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 0x140002887
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x1400028d3
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x20], eax
cmp eax, 0xffffffff
jne 0x1400028a4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_gethostbyname]
jmp 0x1400028b8
mov edx, 4
lea rcx, [rsp + 0x20]
lea r8d, [rdx - 2]
call qword [sym.imp.WS2_32.dll_gethostbyaddr]
test rax, rax
jne 0x1400028c7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x1400028d7
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rbp], eax
test esi, esi
jne 0x1400028dd
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, ebx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1400168a0
mov rbx, qword [rsp + 0x210]
add rsp, 0x1e0
pop rdi
pop rsi
pop rbp
ret

Function at 0x140002ab8
Capabilities:
Encode data using xor

Disassembly:
cmp edx, 4
jb 0x140002ae0
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 0x140002ac8
xor eax, eax
ret

Function at 0x140002ae4
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 0x140002b54
cmp r9d, ebx
je 0x140002b54
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 0x140002b4e
add edi, eax
cmp edi, esi
jae 0x140002b54
inc ebx
cmp ebx, 0xa
jb 0x140002b16
jmp 0x140002b54
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 0x140002b70
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 0x140002bc9
cmp r8d, ebx
je 0x140002bc9
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 0x140002bc9
add edi, eax
cmp edi, esi
jae 0x140002bc9
inc ebx
cmp ebx, 0xa
jb 0x140002ba0
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 0x140002c0c
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 [0x14014dd80]
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 0x140002c64
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x140002ce9
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 0x140002c8d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x140002cd4
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.140002ae4
test rsi, rsi
je 0x140002cc5
mov dword [rsi], eax
cmp eax, dword [rsp + 0x240]
mov ecx, 0x58
cmovne ebx, ecx
cmp rdi, 0xffffffffffffffff
je 0x140002ce3
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.1400168a0
add rsp, 0x1e0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140002d10
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 [0x14014dd80]
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 0x140002d6f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x140002f71
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 0x140002d95
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
jmp 0x140002f4e
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 0x140002d88
mov r8d, dword [rsp + 0x680]
mov rdx, rsi
mov rcx, rdi
call fcn.140002b70
cmp eax, dword [rsp + 0x680]
je 0x140002dff
mov ebx, 0x58
jmp 0x140002f4e
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 0x140002f49
jne 0x140002e60
mov ebx, 0x5b4
jmp 0x140002f4e
mov r8d, dword [rsp + 0x690]
xor edx, edx
mov rcx, rbp
call fcn.1400167a0
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 0x140002d88
jne 0x140002e99
mov ebx, 0x4d4
jmp 0x140002f4e
cmp eax, 0x20
jne 0x140002f49
cmp dword [rbp], r14d
jne 0x140002f49
cmp dword [rbp + 4], r12d
je 0x140002eba
mov ebx, dword [rbp + 4]
jmp 0x140002f4e
mov esi, dword [rbp + 0x18]
test esi, esi
je 0x140002f4e
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 0x140002f49
je 0x140002e56
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 0x140002f3e
add r12d, eax
sub esi, eax
jne 0x140002ec5
jmp 0x140002f4e
jne 0x140002d88
jmp 0x140002e8f
mov ebx, 0x54f
cmp rdi, 0xffffffffffffffff
je 0x140002f6b
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.1400168a0
add rsp, 0x620
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000331c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, r9
mov ebp, r8d
mov edx, edx
xor r9d, r9d
xor r8d, r8d
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp eax, ebx
je 0x14000336a
mov r9, qword [rsp + 0x60]
mov r8d, ebp
mov rdx, rsi
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
jne 0x140003372
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000341c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
xor r8d, r8d
mov rdi, rcx
lea edx, [rbx + 0x40]
call fcn.140009610
test eax, eax
je 0x14000348d
mov eax, 0x5a4d
cmp word [rdi], ax
je 0x140003450
mov rcx, rdi
call fcn.14000338c
test eax, eax
je 0x14000348d
movsxd rbx, dword [rdi + 0x3c]
xor r8d, r8d
mov edx, 0x108
add rbx, rdi
mov rcx, rbx
call fcn.140009610
test eax, eax
jne 0x14000346f
xor ebx, ebx
jmp 0x14000348d
cmp dword [rbx], 0x4550
je 0x14000348d
lea rcx, [rbx + 4]
xor r8d, r8d
xor edx, edx
call fcn.1400033cc
neg eax
sbb rcx, rcx
and rbx, rcx
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140003630
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
xor r8d, r8d
mov rdi, rcx
lea edx, [rsi + 0x40]
mov rbx, rsi
call fcn.140009610
cmp eax, esi
je 0x1400036b5
mov eax, 0x5a4d
cmp word [rdi], ax
je 0x14000366c
mov rcx, rdi
call fcn.14000338c
cmp eax, esi
je 0x1400036b5
movsxd rbx, dword [rdi + 0x3c]
xor r8d, r8d
mov edx, 0xf8
add rbx, rdi
mov rcx, rbx
call fcn.140009610
cmp eax, esi
je 0x1400036a3
cmp dword [rbx], 0x4550
je 0x1400036a8
xor r8d, r8d
lea rcx, [rbx + 4]
lea edx, [r8 + 1]
call fcn.1400033cc
cmp eax, esi
jne 0x1400036b5
mov rbx, rsi
jmp 0x1400036b5
mov eax, 0x14c
cmp word [rbx + 4], ax
cmovne rbx, rsi
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400036c8
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
xor r8d, r8d
mov rdi, rcx
lea edx, [rsi + 0x40]
mov rbx, rsi
call fcn.140009610
cmp eax, esi
je 0x14000374c
mov eax, 0x5a4d
cmp word [rdi], ax
je 0x140003704
mov rcx, rdi
call fcn.14000338c
cmp eax, esi
je 0x14000374c
movsxd rbx, dword [rdi + 0x3c]
xor r8d, r8d
mov edx, 0x108
add rbx, rdi
mov rcx, rbx
call fcn.140009610
cmp eax, esi
je 0x14000373a
cmp dword [rbx], 0x4550
je 0x14000373f
xor edx, edx
lea rcx, [rbx + 4]
lea r8d, [rdx + 1]
call fcn.1400033cc
cmp eax, esi
jne 0x14000374c
mov rbx, rsi
jmp 0x14000374c
mov eax, 0x8664
cmp word [rbx + 4], ax
cmovne rbx, rsi
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140003760
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movzx ebp, word [rcx + 6]
movzx eax, word [rcx + 0x14]
xor esi, esi
lea rdi, [rax + rcx + 0x18]
mov ebx, edx
test ebp, ebp
je 0x1400037c7
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 0x28]
call fcn.140009610
test eax, eax
je 0x1400037c7
mov ecx, dword [rdi + 0x14]
mov edx, dword [rdi + 0xc]
mov eax, dword [rdi + 8]
test ecx, ecx
je 0x1400037c7
test eax, eax
je 0x1400037c7
cmp edx, ebx
ja 0x1400037b7
add eax, edx
cmp ebx, eax
jb 0x1400037c3
inc esi
add rdi, 0x28
cmp esi, ebp
jae 0x1400037c7
jmp 0x140003789
sub ecx, edx
add ebx, ecx
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140004354
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
or rbp, 0xffffffffffffffff
xor edi, edi
and dword [rax + 8], r12d
mov r15, rdx
test rdx, rdx
je 0x140004382
mov byte [rdx], dil
test rcx, rcx
je 0x140004597
test rdx, rdx
je 0x140004597
cmp byte [rcx], dil
jne 0x1400043a4
mov r12d, 0x57
jmp 0x1400045b9
and qword [rsp + 0x30], rdi
mov r8d, 3
xor r9d, r9d
mov edx, 0x120089
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1400045b9
and qword [rsp + 0x88], rdi
lea rdx, [rsp + 0x88]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1400043ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400045aa
mov rbx, qword [rsp + 0x88]
test ebx, ebx
je 0x1400045aa
mov r14d, 0x1000
cmp ebx, r14d
cmovb r14d, ebx
mov ecx, r14d
call fcn.140016c44
mov rdi, rax
test rax, rax
je 0x1400045aa
and qword [rsp + 0x20], r12
lea r9, [rsp + 0x80]
mov r8d, r14d
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14000445b
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000459d
mov rax, qword [rsp + 0x88]
mov rcx, rdi
xor r13d, r13d
mov qword [rsp + 0x90], rax
xor esi, esi
call fcn.140003630
test rax, rax
jne 0x1400044a6
mov rcx, rdi
call fcn.1400036c8
test rax, rax
je 0x14000459d
mov ecx, dword [rax + 0xb8]
test ecx, ecx
je 0x1400044c2
mov edx, dword [rax + 0xbc]
test edx, edx
je 0x1400044c2
mov esi, edx
jmp 0x1400044bf
mov ecx, dword [rax + 0xa8]
test ecx, ecx
je 0x1400044c2
mov r8d, dword [rax + 0xac]
test r8d, r8d
je 0x1400044c2
mov esi, r8d
mov r13d, ecx
mov edx, r13d
mov rcx, rax
call fcn.140003760
mov r13d, eax
test eax, eax
je 0x14000459d
test esi, esi
je 0x14000459d
lea ecx, [rsi + rax]
cmp rcx, qword [rsp + 0x90]
jae 0x14000459d
cmp esi, r14d
ja 0x14000459d
mov r8d, r14d
xor edx, edx
mov rcx, rdi
call fcn.1400167a0
lea r11, [rsp + 0x80]
mov r9, rdi
mov r8d, r14d
mov edx, r13d
mov rcx, rbp
mov qword [rsp + 0x20], r11
call fcn.14000331c
test eax, eax
jne 0x14000459d
lea rsi, [rdi + 0x18]
mov r13d, dword [rsi]
test r13d, r13d
je 0x14000459d
cmp dword [rdi + 0xc], 2
jne 0x14000459d
cmp r13d, ebx
jae 0x14000459d
mov r8d, r14d
xor edx, edx
mov rcx, rdi
call fcn.1400167a0
lea r11, [rsp + 0x80]
mov r9, rdi
mov r8d, r14d
mov edx, r13d
mov rcx, rbp
mov qword [rsp + 0x20], r11
call fcn.14000331c
test eax, eax
jne 0x14000459d
cmp dword [rdi], 0x3031424e
jne 0x14000457d
lea rsi, [rdi + 0x10]
jmp 0x140004585
cmp dword [rdi], 0x53445352
jne 0x14000459d
test rsi, rsi
je 0x14000459d
mov rdx, rsi
mov rcx, r15
call fcn.140009e70
jmp 0x14000459d
mov r12d, 0x57
test rdi, rdi
je 0x1400045aa
mov rcx, rdi
call fcn.1400168c0
cmp rbp, 0xffffffffffffffff
je 0x1400045b9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r12d
mov rbx, qword [rsp + 0x98]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005340
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14014dd80]
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 0x140005479
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.140003b70
mov rdi, rax
test rax, rax
je 0x140005474
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 0x140005474
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.140003b70
test rax, rax
je 0x140005474
lea rcx, [0x14014f418]
call rax
mov rdi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400168a0
add rsp, 0x50
pop rbx
ret