joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004880
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
mov ebp, dword [rdx + 4]
mov qword [rsp + 0x40], rsi
mov rsi, rcx
mov qword [rsp + 0x28], r14
test ebp, ebp
je 0x140004a5b
mov ecx, ebp
call fcn.14002a3ac
mov r14, rax
test rax, rax
je 0x140004a5b
mov rcx, rsi
call fcn.140002960
test eax, eax
jns 0x1400048e1
lea rcx, str.CImgCoreProcessProtocol::GetData:_bad_payload_size.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
mov rcx, r14
mov ebx, 1
call fcn.14002a3a4
jmp 0x140004a60
cmp eax, 4
jle 0x140004905
lea rcx, str.CImgCoreProcessProtocol::GetData:_message_size_out_of_bounds.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
mov rcx, r14
mov ebx, 1
call fcn.14002a3a4
jmp 0x140004a60
je 0x140004919
mov rcx, r14
mov ebx, 1
call fcn.14002a3a4
jmp 0x140004a60
mov qword [rsp + 0x38], rdi
xor ebx, ebx
mov qword [rsp + 0x30], r12
mov edi, ebx
mov qword [rsp + 0x20], r15
mov r15, qword [rsi + 8]
mov r12, qword [r15 + 0x10]
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [r15 + 0x10]
lea rdx, [rsp + 0x68]
mov r8d, 4
movsxd rax, edi
sub r8d, edi
add rdx, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140004a38
add edi, eax
cmp edi, 4
jb 0x140004940
cmp r12, 0xffffffffffffffff
je 0x140004a38
cmp edi, 4
jne 0x140004a38
mov rcx, rsi
call fcn.140002960
test eax, eax
jns 0x1400049a5
lea rcx, str.CImgCoreProcessProtocol::GetData:_bad_payload_size.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x140004a3d
cmp eax, 4
jle 0x1400049bc
lea rcx, str.CImgCoreProcessProtocol::GetData:_message_size_out_of_bounds.
call qword [sym.imp.ImgCoreDll.dll_IC_Log]
jmp 0x140004a3d
jne 0x140004a3d
mov rdi, qword [rsi + 8]
mov r15, qword [rdi + 0x10]
nop word [rax + rax]
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x60]
mov r8d, 4
movsxd rax, ebx
sub r8d, ebx
add rdx, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140004a38
add ebx, eax
cmp ebx, 4
jb 0x1400049d0
cmp r15, 0xffffffffffffffff
je 0x140004a38
cmp ebx, 4
jne 0x140004a38
mov r8d, ebp
mov rdx, r14
mov rcx, rsi
call fcn.1400029f0
mov ebx, eax
test eax, eax
jne 0x140004a42
mov r9d, dword [rsp + 0x60]
mov edx, ebp
mov r8d, dword [rsp + 0x68]
mov rcx, r14
call qword [sym.imp.ImgCoreDll.dll_IC_LensDBSyncUpdate]
mov ebx, eax
jmp 0x140004a42
call fcn.140004e30
mov ebx, 1
mov r12, qword [rsp + 0x30]
mov rcx, r14
mov rdi, qword [rsp + 0x38]
mov r15, qword [rsp + 0x20]
call fcn.14002a3a4
jmp 0x140004a60
mov ebx, 1
mov rax, qword [rsi + 8]
mov r14, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov dword [rsp + 0x70], reloc.WS2_32.dll_inet_addr
mov dword [rsp + 0x74], ebx
mov rcx, qword [rax + 0x10]
cmp rcx, 0xffffffffffffffff
jne 0x140004a9c
xor bl, bl
call fcn.140004e30
movzx eax, bl
xor eax, 1
add rsp, 0x50
pop rbx
ret
xor r9d, r9d
lea rdx, [rsp + 0x70]
lea r8d, [r9 + 8]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne bl
jne 0x140004abb
call fcn.140004e30
movzx eax, bl
xor eax, 1
add rsp, 0x50
pop rbx
ret
Function at 0x140004f80
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r15, qword [rcx + 0x10]
xor ebx, ebx
cmp r15, 0xffffffffffffffff
mov edi, r8d
mov r14, rdx
mov rbp, rcx
setne sil
test r8d, r8d
je 0x140004fe7
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x10]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, r14
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x140004ff1
add ebx, eax
cmp ebx, edi
jb 0x140004fc0
cmp r15, 0xffffffffffffffff
je 0x140004ff4
cmp ebx, edi
je 0x140004ff9
xor sil, sil
call fcn.140004e30
mov rbx, qword [rsp + 0x40]
movzx eax, sil
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140006d8c
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140006e17
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140006e17
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006e17
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140006e13
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140006e0d
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jae 0x140006e0d
test rdx, rdx
je 0x140006e13
cmp dword [rdx + 0x24], 0
jge 0x140006e09
xor al, al
jmp 0x140006e1d
mov al, 1
jmp 0x140006e1d
add rdx, 0x28
jmp 0x140006ddf
xor al, al
jmp 0x140006e1d
xor al, al
jmp 0x140006e1d
add rsp, 0x18
ret

Function at 0x1400086fc
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000870f
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140008d10
lea rdx, [0x14004bc78]
lea rcx, [rsp + 0x20]
call fcn.14002408c
int3

Function at 0x1400142d4
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x1400509e8]
xor edx, edx
jmp fcn.1400086fc

Function at 0x140014c4c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x1400509e8]
jmp fcn.1400086fc

Function at 0x140020488
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140020544]
mov r9, qword [r9 + 8]
jmp fcn.1400108b8

Function at 0x14002051c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140020554]
mov r9, qword [r9 + 8]
jmp fcn.1400108b8
Function at 0x1400279f0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400277c4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400277c4
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400277c4
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400277c4
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400277c4
cmp dword [rcx + 0x84], 0xe
jbe 0x1400277c4
cmp dword [rcx + 0xf8], esi
je 0x1400277c4
mov ecx, r14d
call fcn.14002790c
mov ecx, 2
call fcn.14002be60
nop
cmp byte [0x140050c90], 0
jne 0x14002788e
mov r15d, 1
mov eax, r15d
xchg dword [0x140050c80], eax
test ebx, ebx
jne 0x140027837
mov rdi, qword [0x14004e008]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140050c88]
cmp rcx, rax
je 0x14002782e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140005ae0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140050e38]
jmp 0x140027843
cmp ebx, r15d
jne 0x140027849
lea rcx, [0x140050e50]
call fcn.14002b4e4
nop
test ebx, ebx
jne 0x140027860
lea rdx, [0x1400395c0]
lea rcx, [0x140039598]
call fcn.14002aee4
lea rdx, [0x1400395d0]
lea rcx, [0x1400395c8]
call fcn.14002aee4
movzx eax, byte [0x140050c90]
test esi, esi
cmove eax, r15d
mov byte [0x140050c90], al
jmp 0x14002788e
mov ecx, 2
call fcn.14002beb4
test esi, esi
jne 0x1400278a5
mov ecx, r14d
call fcn.1400278c0
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140027754
Function at 0x140013210
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140013232
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400132ac
mov rdi, r14
mov rcx, rbx
call fcn.140015040
test rax, rax
jle 0x140013284
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.140019f70
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14001329c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400132a4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140013246
sub r14, rdi
jmp 0x140013399
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400132c3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400132c5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400132fa
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140019f70
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140013396
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140013335
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140013371
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400200fc
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x1400133af
cmp rbp, rax
ja 0x140013341
mov r8, rdi
test rdi, rdi
je 0x140013396
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400200fc
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140013399
Function at 0x1400137e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14004a8d0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001380d
xor eax, eax
jmp 0x140013953
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140013847
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140013847
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 0x140013953
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140013946
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001388a
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 0x140013899
movsx ecx, dil
jmp 0x1400138ed
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x140013907
sub eax, 1
je 0x140013907
cmp eax, 2
jne 0x140013946
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14001eaa8
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14001394b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140013934
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.14001f8b4
cmp rsi, rax
jne 0x140013946
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x14001394b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140017fd0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14001e544
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14001e3d7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001e3d7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001e3d7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001e3d7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001e3d7
cmp dword [rcx + 0x84], 0xe
jbe 0x14001e3d7
cmp dword [rcx + 0xf8], 0
je 0x14001e3d7
mov ecx, ebx
call fcn.14001e478
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14001e268
cmp dword [rbp + 0x20], 0
je 0x14001e424
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001e42c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14001e370
Function at 0x14000a870
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14000a892
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000a90c
mov rdi, r14
mov rcx, rbx
call fcn.14000f8f0
test rax, rax
jle 0x14000a8e4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.140060970
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000a8fc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14000a904
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14000a8a6
sub r14, rdi
jmp 0x14000a9ef
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14000a923
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000a925
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000a957
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140060970
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000a9ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000a992
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
cmp rbp, 0xfff
jbe 0x14000a9cd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140045128
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000a9ec
cmp rbp, rax
ja 0x14000a9a0
test rbp, rbp
je 0x14000a9ec
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140045128
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x14001b8b0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x14008e240]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov qword [rcx], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14001b946
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14001b946
mov dword [rsp + 0x20], 0x28
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14001b96a
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400316a0
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x30]
call fcn.140007050
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.14001ba20
lea rdx, [0x14008c088]
lea rcx, [rsp + 0x50]
call fcn.1400337d8
int3

Function at 0x14001be20
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x14008e240]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x140093e20]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x140091ca0], ecx
jg 0x14001beff
mov eax, ebx
cmp rbx, rax
jne 0x14001bec1
xor ecx, ecx
mov eax, ecx
test rbx, rbx
setne al
test ebx, ebx
setne cl
cmp eax, ecx
jne 0x14001bec1
mov r8, rdi
mov edx, ebx
mov rcx, qword [0x140091c98]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x14001bf42
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400316a0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.140007050
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14001ba20
lea rdx, [0x14008c088]
lea rcx, [rsp + 0x40]
call fcn.1400337d8
nop
lea rcx, [0x140091ca0]
call fcn.140031768
cmp dword [0x140091ca0], 0xffffffff
jne 0x14001be6c
lea rcx, [0x140091c98]
call fcn.14001b8b0
lea rcx, [0x140063dd0]
call fcn.140031ad8
nop
lea rcx, [0x140091ca0]
call fcn.1400316fc
jmp 0x14001be6c
lea rdx, [0x140066e40]
lea rcx, [rsp + 0x20]
call fcn.140007050
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14001ba20
lea rdx, [0x14008c088]
lea rcx, [rsp + 0x40]
call fcn.1400337d8
int3
Function at 0x140029f90
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x140029fc7
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x140029fb0
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x14002a0b8
sub rcx, r10
cmp r9, 8
jb 0x14002a099
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
orps xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp r11, rax
jb 0x14002a020
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x14002a0b8
add r10, r11
sub r9, r11
nop
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x14002a0a0
test r8d, r8d
sete al
ret
Function at 0x14002a0c0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x14002a256
cmp r9, 4
jb 0x14002a0fa
mov r10, r9
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r9, rax
mov eax, dword [rdx]
add rdx, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub r10, 1
jne 0x14002a0e1
xor r11d, r11d
test r9, r9
je 0x14002a256
cmp r9, 8
jb 0x14002a22d
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x14002a12c
cmp r10, r8
jae 0x14002a22d
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x14002a141
cmp r10, rdx
jae 0x14002a22d
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x14002a1e7
mov r10, r9
mov qword [rsp + 0x18], rsi
and r10d, 0x3f
mov rbx, r9
sub rbx, r10
mov rdi, rdx
lea rax, [r8 + 0x10]
sub rdi, r8
mov rsi, rcx
sub rsi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rsi + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rsi + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rax - 0x20]
movdqu xmmword [rsi + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rsi + rax - 0x20], xmm2
cmp r11, rbx
jb 0x14002a180
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x14002a21f
mov r10, r9
and r10, 0xfffffffffffffff8
mov rbx, rdx
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdi + rax - 8], xmm1
cmp r11, r10
jb 0x14002a200
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x14002a256
sub rdx, r8
lea r10, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [r10 + rdx]
xor al, byte [r10]
mov byte [rcx + r10], al
lea r10, [r10 + 1]
sub r9, 1
jne 0x14002a240
add rsp, 8
ret
Function at 0x14002f918
Capabilities:
Get geographical location

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

Function at 0x1400324f4
Capabilities:
Parse pe header

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