joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cf55e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x140235170
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [0x1402d9238]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x28], 0
jmp 0x1402351ac
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0x20
jge 0x1402351d8
movsxd rax, dword [rsp + 0x28]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0x20
jae 0x1402351c7
jmp 0x1402351cc
call fcn.1400cd4cf
mov rax, qword [rsp + 0x48]
mov byte [rsp + rax + 0x68], 0
jmp 0x1402351a2
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
sar eax, 3
cdqe
mov rcx, qword [rsp + 0x30]
movzx ecx, byte [rcx]
and ecx, 7
mov edx, 1
shl edx, cl
mov ecx, edx
movzx eax, byte [rsp + rax + 0x68]
or eax, ecx
mov rcx, qword [rsp + 0x30]
movzx ecx, byte [rcx]
sar ecx, 3
movsxd rcx, ecx
mov byte [rsp + rcx + 0x68], al
mov rax, qword [rsp + 0x30]
movzx eax, byte [rax]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
cmp dword [rsp + 0x40], 0
jne 0x1402351e5
cmp qword [rsp + 0xa0], 0
je 0x140235259
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x50], rax
jmp 0x140235269
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
movzx eax, byte [rax]
sar eax, 3
cdqe
movzx eax, byte [rsp + rax + 0x68]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx]
movzx ecx, byte [rcx]
and ecx, 7
mov edx, 1
shl edx, cl
mov ecx, edx
and eax, ecx
test eax, eax
je 0x1402352ca
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
test eax, eax
je 0x1402352ca
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
jmp 0x14023527d
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x58], rax
jmp 0x1402352e3
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movsx eax, byte [rax]
test eax, eax
je 0x14023533a
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
movzx eax, byte [rax]
sar eax, 3
cdqe
movzx eax, byte [rsp + rax + 0x68]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx]
movzx ecx, byte [rcx]
and ecx, 7
mov edx, 1
shl edx, cl
mov ecx, edx
and eax, ecx
test eax, eax
je 0x140235338
mov rax, qword [rsp + 0x20]
mov byte [rax], 0
mov rax, qword [rsp + 0x20]
inc rax
mov qword [rsp + 0x20], rax
jmp 0x14023533a
jmp 0x1402352d6
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x20]
mov qword [rax], rcx
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x20], rax
je 0x140235362
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
jmp 0x14023536b
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400cbea4
add rsp, 0x98
ret
Function at 0x1400cf72a
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket
Set socket configuration

Disassembly:
jmp 0x1400fd3e0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
lea rcx, [0x14030415e]
call fcn.1400cf004
mov dword [rbp + 4], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rbp + 0x188]
add ecx, eax
mov eax, ecx
mov dword [rbp + 0x24], eax
mov dword [rbp + 0x44], 1
lea r8, [rbp + 0x44]
mov edx, 0x8004667e
mov rcx, qword [rbp + 0x180]
call fcn.1400ce5aa
cmp eax, 0xffffffff
jne 0x1400fd45e
xor eax, eax
jmp 0x1400fd50d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [rbp + 0x24]
jae 0x1400fd4d1
mov r9d, 2
mov r8d, 1
lea rdx, [rbp + 0x64]
mov rcx, qword [rbp + 0x180]
call fcn.1400cadb0
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jne 0x1400fd49d
mov dword [rbp + 4], 0
jmp 0x1400fd4d1
cmp dword [rbp + 0x84], 0
jle 0x1400fd4af
mov dword [rbp + 4], 1
jmp 0x1400fd4d1
call fcn.1400cecd0
cmp eax, 0x2733
je 0x1400fd4c4
mov dword [rbp + 4], 0
jmp 0x1400fd4d1
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400fd45e
mov dword [rbp + 0x44], 0
lea r8, [rbp + 0x44]
mov edx, 0x8004667e
mov rcx, qword [rbp + 0x180]
call fcn.1400ce5aa
cmp eax, 0xffffffff
je 0x1400fd4fd
mov eax, dword [rbp + 4]
mov dword [rbp + 0x154], eax
jmp 0x1400fd507
mov dword [rbp + 0x154], 0
mov eax, dword [rbp + 0x154]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_bind
call fcn.1400cdefc
mov rax, rdi
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x1400cf734
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1400f84a0
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
lea rcx, [0x1403040eb]
call fcn.1400cf004
mov dword [rbp + 4], 0
mov rax, qword [0x1402dbc30]
mov qword [rbp + 0x28], rax
cmp qword [0x1402dbc40], 0
jne 0x1400f84f9
mov ecx, 0x100000
call fcn.1400cc8b8
mov qword [0x1402dbc40], rax
cmp qword [rbp + 0x28], 0
je 0x1400f8640
mov rax, qword [rbp + 0x28]
cmp dword [rax + 4], 1
je 0x1400f851c
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x24]
mov qword [rbp + 0x28], rax
jmp 0x1400f84f9
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
call fcn.1400cd696
mov rcx, qword [0x1402dbc40]
mov dword [rcx], eax
mov dword [rbp + 0x44], 0
lea r8, [rbp + 0x44]
mov edx, 0x4004667f
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 0x1c]
call fcn.1400ce5aa
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x44], 0xffffc
jbe 0x1400f8560
mov dword [rbp + 0x44], 0xffffc
cmp dword [rbp + 0x64], 0xffffffff
jne 0x1400f8599
mov rax, qword [rbp + 0x28]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
mov rcx, qword [0x1402dbc40]
call fcn.1400ca400
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x24]
mov qword [rbp + 0x28], rax
jmp 0x1400f84f9
cmp dword [rbp + 0x44], 0
jne 0x1400f85b0
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x24]
mov qword [rbp + 0x28], rax
jmp 0x1400f84f9
mov rax, qword [0x1402dbc40]
add rax, 4
mov r8d, dword [rbp + 0x44]
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rcx + 0x1c]
mov rcx, rax
call fcn.1400cf3d8
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0xffffffff
jne 0x1400f8602
mov rax, qword [rbp + 0x28]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
mov rcx, qword [0x1402dbc40]
call fcn.1400ca400
jmp 0x1400f862f
mov eax, dword [rbp + 0x44]
cmp dword [rbp + 0x84], eax
jne 0x1400f862f
mov eax, dword [rbp + 0x44]
add eax, 4
mov r8d, 5
mov edx, eax
mov rcx, qword [0x1402dbc40]
call fcn.1400ca400
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x28]
mov rax, qword [rax + 0x24]
mov qword [rbp + 0x28], rax
jmp 0x1400f84f9
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400cdefc
mov eax, edi
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x1400cf775
Capabilities:
Connect socket
Resolve dns

Disassembly:
jmp 0x1400fc740
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x1402d9238]
xor rax, rbp
mov qword [rbp + 0x130], rax
lea rcx, [0x14030415e]
call fcn.1400cf004
xor r8d, r8d
mov edx, 1
mov ecx, 2
call fcn.1400cab80
mov qword [rbp + 0x38], rax
cmp qword [rbp + 0x38], 0xffffffffffffffff
jne 0x1400fc7b7
mov rax, 0xffffffffffffffff
jmp 0x1400fc85b
mov rcx, qword [rbp + 0x160]
call fcn.1400ceb4f
mov qword [rbp + 0x58], rax
cmp qword [rbp + 0x58], 0
jne 0x1400fc7da
mov rax, 0xffffffffffffffff
jmp 0x1400fc85b
mov rax, qword [rbp + 0x58]
movsx rax, word [rax + 0x12]
mov rcx, qword [rbp + 0x58]
mov rcx, qword [rcx + 0x18]
mov edx, 1
imul rdx, rdx, 2
lea rdx, [rbp + rdx + 0xa]
mov qword [rbp + 0x128], rdx
mov r8, rax
mov rdx, qword [rcx]
mov rax, qword [rbp + 0x128]
mov rcx, rax
call fcn.1400cbec2
mov eax, 2
mov word [rbp + 8], ax
movzx ecx, word [rbp + 0x168]
call fcn.1400ce622
mov word [rbp + 0xa], ax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 8]
mov rcx, qword [rbp + 0x38]
call fcn.1400cc0f2
test eax, eax
je 0x1400fc857
mov rcx, qword [rbp + 0x38]
call fcn.1400ccd7c
mov rax, 0xffffffffffffffff
jmp 0x1400fc85b
mov rax, qword [rbp + 0x38]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400cdefc
mov rax, rdi
mov rcx, qword [rbp + 0x130]
xor rcx, rbp
call fcn.1400cbea4
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140108a90
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rsi, r9
mov r14, r8
mov edi, edx
mov rbx, rcx
test rcx, rcx
jne 0x140108acc
lea r8d, [rcx + 0x25]
lea rcx, str.in___NULL
lea rdx, str.srcmisc_base64_base64_encode.c
call fcn.1400cabda
test r14, r14
jne 0x140108ae8
lea r8d, [r14 + 0x26]
lea rdx, str.srcmisc_base64_base64_encode.c
lea rcx, str.out___NULL
call fcn.1400cabda
test rsi, rsi
jne 0x140108b04
lea r8d, [rsi + 0x27]
lea rdx, str.srcmisc_base64_base64_encode.c
lea rcx, str.outlen___NULL
call fcn.1400cabda
lea ecx, [rdi + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea edx, [rdx*4 + 1]
cmp dword [rsi], edx
jae 0x140108b27
mov dword [rsi], edx
mov eax, 6
jmp 0x140108c61
mov r10, qword [rsp + 0x50]
xor r9d, r9d
mov eax, 0xaaaaaaab
mov qword [rsp + 0x30], rbp
mul edi
mov rcx, r14
mov ebp, r9d
shr edx, 1
lea edx, [rdx + rdx*2]
test edx, edx
je 0x140108bc2
dec edx
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
mov r11d, edx
lea ebp, [rdx + rdx*2]
nop dword [rax]
movzx eax, byte [rbx]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx edx, byte [rbx]
movzx r8d, byte [rbx + 1]
shl edx, 4
shr r8d, 4
add r8d, edx
and r8d, 0x3f
movzx eax, byte [r8 + r10]
mov byte [rcx + 1], al
movzx eax, byte [rbx + 2]
movzx edx, byte [rbx + 1]
shr eax, 6
lea edx, [rax + rdx*4]
and edx, 0x3f
movzx eax, byte [rdx + r10]
mov byte [rcx + 2], al
movzx eax, byte [rbx + 2]
add rbx, 3
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [rcx + 3], al
add rcx, 4
sub r11, 1
jne 0x140108b60
cmp ebp, edi
jae 0x140108c52
movzx r11d, byte [rbx]
lea r8d, [rbp + 1]
cmp r8d, edi
jae 0x140108bdc
movzx r9d, byte [rbx + 1]
mov edx, r9d
mov rax, r11
shr edx, 4
shr rax, 2
shl r11d, 4
add edx, r11d
and edx, 0x3f
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
add rcx, 2
cmp dword [rsp + 0x58], 0
je 0x140108c3b
cmp r8d, edi
jae 0x140108c2b
and r9d, 0xf
shl r9d, 2
movsx edx, byte [r9 + r10]
mov byte [rcx], dl
mov byte [rcx + 1], 0x3d
add rcx, 2
jmp 0x140108c52
mov edx, 0x3d
mov byte [rcx], dl
mov byte [rcx + 1], dl
add rcx, 2
jmp 0x140108c52
cmp r8d, edi
jae 0x140108c52
and r9d, 0xf
shl r9d, 2
movzx edx, byte [r9 + r10]
mov byte [rcx], dl
inc rcx
mov rbp, qword [rsp + 0x30]
mov byte [rcx], 0
sub ecx, r14d
mov dword [rsi], ecx
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140111140
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor edi, edi
mov dword [rsp + 0x58], edx
xor ebx, ebx
xor r14d, r14d
mov r13, r8
mov r15d, edx
mov r12, rcx
mov eax, edx
test edx, edx
je 0x1401111eb
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x60], rsi
dec r15d
test r13, r13
je 0x140111181
call r13
mov ebp, 8
dec ebp
call fcn.1400c9af0
mov esi, eax
call fcn.1400c9af0
cmp esi, eax
jne 0x1401111a4
xor ebx, 1
call fcn.1400c9af0
cmp esi, eax
je 0x140111198
call fcn.1400c9af0
mov esi, eax
call fcn.1400c9af0
cmp esi, eax
jne 0x1401111c0
xor edi, 1
call fcn.1400c9af0
cmp esi, eax
je 0x1401111b4
cmp ebx, edi
je 0x140111188
add r14d, r14d
or r14d, ebx
test ebp, ebp
jne 0x140111186
mov byte [r12], r14b
inc r12
xor r14d, r14d
test r15d, r15d
jne 0x140111176
mov eax, dword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140111230
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov ebx, edx
mov qword [rsp + 0x58], 0
mov rdi, rcx
mov dword [rsp + 0x20], 0xf0000020
xor edx, edx
lea rcx, [rsp + 0x58]
mov r9d, 1
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140111292
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 0xf0000028
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1401112c7
mov rcx, qword [rsp + 0x58]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x58]
xor edx, edx
cmp eax, 1
jne 0x1401112c1
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140001a90
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.wasp_hook_n_n_n
call fcn.140001d90
call fcn.1400014c0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.____WAITING_FOR_FIVEM..._n
call fcn.140001d90
nop
xor edx, edx
lea rcx, str.grcWindow
call qword [sym.imp.USER32.dll_FindWindowA]
test rax, rax
je 0x140001ac0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.____FIVEM_DETECTED__CLICK_ANY_BUTTON_TO_INJECT__n
call fcn.140001d90
lea rcx, str.pause__nul
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.1400011c0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.____INJECTED
call fcn.140001d90
lea rcx, str.pause__nul
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140002b04
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x1c], 0
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0
mov ecx, 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov dword [rbp - 0xc], eax
cmp dword [rbp - 0xc], 0x6f
jne 0x140002747
mov eax, dword [rbp - 0x1c]
mov eax, eax
mov rdx, rax
mov ecx, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x18], rax
cmp qword [rbp - 8], 0
je 0x140002747
mov rdx, qword [rbp - 8]
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x20], rax
mov r9, rdx
mov r8d, 0
mov edx, 0
mov ecx, 0
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov dword [rbp - 0x22], 0
mov word [rbp - 0x1e], 0
jmp 0x140002730
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x58]
cmp eax, 6
jne 0x140002724
mov rax, qword [rbp - 8]
add rax, 0x50
mov edx, dword [rax]
mov dword [rbp - 0x22], edx
movzx eax, word [rax + 4]
mov word [rbp - 0x1e], ax
lea rdx, [rbp - 0x22]
mov rax, qword [rbp + 0x10]
mov r8d, 3
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x140002724
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
mov eax, 1
jmp 0x14000274c
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400026d2
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LocalFree]
call rax
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x140002f39
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
mov dword [rbp - 4], 0
mov dword [rbp - 8], 0
mov dword [rbp - 0xc], 0
jmp 0x140003034
mov eax, dword [rbp - 4]
add eax, 1
mov ecx, 0x100
cdq
idiv ecx
mov dword [rbp - 4], edx
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
movzx edx, al
mov eax, dword [rbp - 8]
add eax, edx
mov ecx, 0x100
cdq
idiv ecx
mov dword [rbp - 8], edx
mov eax, dword [rbp - 8]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rdx, rax
mov eax, dword [rbp - 4]
movsxd rcx, eax
mov rax, qword [rbp + 0x10]
add rax, rcx
mov rcx, rax
call fcn.140002e36
mov eax, dword [rbp - 4]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
movzx edx, al
mov eax, dword [rbp - 8]
movsxd rcx, eax
mov rax, qword [rbp + 0x10]
add rax, rcx
movzx eax, byte [rax]
movzx eax, al
add eax, edx
mov ecx, 0x100
cdq
idiv ecx
mov eax, edx
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
mov dword [rbp - 0x10], eax
mov eax, dword [rbp - 0xc]
movsxd rdx, eax
mov rax, qword [rbp + 0x18]
add rax, rdx
movzx eax, byte [rax]
mov edx, eax
mov eax, dword [rbp - 0x10]
mov ecx, edx
xor ecx, eax
mov eax, dword [rbp - 0xc]
movsxd rdx, eax
mov rax, qword [rbp + 0x20]
add rax, rdx
mov edx, ecx
mov byte [rax], dl
add dword [rbp - 0xc], 1
mov eax, dword [rbp - 0xc]
cmp eax, dword [rbp + 0x28]
jl 0x140002f6b
mov eax, 0
add rsp, 0x30
pop rbp
ret

Function at 0x140003d40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140009cc0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140009cc0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140003db0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401600a4]
mov rbx, rcx
test esi, esi
jle 0x140003ee0
mov rax, qword [0x1401600a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140003dfb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003e85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003de0
mov rcx, rbx
call fcn.140004800
mov rdi, rax
test rax, rax
je 0x140003f02
mov rax, qword [0x1401600a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140004940
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401600a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003ee7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140003e7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003e90
add dword [0x1401600a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x1401600a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140003e7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140003d40
nop dword [rax]
xor esi, esi
jmp 0x140003e08
mov rax, qword [0x1401600a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140003d40
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140003d40
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140004470
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140160100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401600e0]
test rbx, rbx
je 0x1400044cc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400044c3
test rsi, rsi
je 0x1400044c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400044a8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140004800
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14015cd80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140004820
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140004828
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140004820
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000487d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140004874
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140004820
add rax, 0x28
cmp rax, r9
jne 0x140004860
xor eax, eax
ret

Function at 0x140004880
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14015cd80]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000489f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400048a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000489f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140004940
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14015cd80]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000495f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140004968
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret