joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800010e0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r10, rax
mov eax, 0x5a4d
cmp word [r10], ax
jne 0x18000118e
movsxd rcx, dword [r10 + 0x3c]
add rcx, r10
cmp dword [rcx], 0x4550
jne 0x18000118e
movzx ebx, word [rcx + 0x14]
xor edx, edx
movzx r11d, word [rcx + 6]
add rbx, rcx
test r11d, r11d
je 0x18000118e
lea rdi, str..text
nop dword [rax + rax]
movsxd rax, edx
lea rcx, [rax + rax*4]
xor eax, eax
lea r9, [rcx*8]
lea r8, [r9 + rbx]
nop word [rax + rax]
movzx ecx, byte [rdi + rax]
inc rax
cmp cl, byte [r8 + rax + 0x17]
jne 0x180001187
cmp rax, 6
jne 0x180001160
mov eax, dword [r9 + rbx + 0x20]
mov ebx, dword [r9 + rbx + 0x24]
add rbx, r10
mov dword [rsp + 0x30], eax
jmp 0x180001190
inc edx
cmp edx, r11d
jl 0x180001140
xor ebx, ebx
mov esi, dword [rsp + 0x30]
lea rdx, [0x180019a8c]
add rsi, rbx
mov r9d, 7
mov r8, rsi
mov rcx, rbx
call section..text
test rax, rax
je 0x1800011d4
mov edx, dword [rax + 0x15]
mov dword [rdx + rax + 0x1a], 0
mov edx, 0xefff
mov rax, qword gs:[0x30]
and word [rax + 0x17ee], dx
mov rbp, qword gs:[0x60]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x1800012cd
lea rdx, str.RtlLeaveCriticalSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbp + 0x110]
call rax
lea rdx, str.LdrFastFailInLoaderCallout
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180001231
mov ecx, dword [rax + 0x18]
mov dword [rcx + rax + 0x1d], 2
jmp 0x180001259
mov r9d, 0xa
lea rdx, [0x180019a70]
mov r8, rsi
mov rcx, rbx
call section..text
test rax, rax
je 0x180001259
mov ecx, dword [rax + 5]
mov dword [rcx + rax + 9], 2
lea rdx, str.LdrGetDllFullName
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1800012cd
mov r9d, 7
lea r8, [rax + 0x80]
lea rdx, [0x180019a84]
mov rcx, rax
call section..text
mov rcx, rax
test rax, rax
jne 0x1800012b4
mov r9d, 7
lea r8, [rbx + 0x80]
lea rdx, [0x180019a7c]
mov rcx, rbx
call section..text
mov rcx, rax
test rcx, rcx
je 0x1800012cd
mov eax, dword [rcx + 3]
mov rcx, qword [rax + rcx + 7]
mov rax, qword [rcx + 0x98]
add qword [rax + 0x38], 2
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1800013d0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp edx, 1
jne 0x180001597
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
lea r8, str.cstest
mov edx, 0x65
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x180001587
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180001587
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x18001acc8], rax
test rax, rax
je 0x180001587
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [0x18001acc0], eax
test eax, eax
je 0x180001587
mov edx, eax
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [0x18001acc0]
mov rcx, rax
mov rdx, qword [0x18001acc8]
mov rbx, rax
call fcn.18000e480
call fcn.1800010e0
mov r9d, dword [0x18001acc0]
xor r10d, r10d
mov edx, r10d
test r9d, r9d
je 0x1800014c8
mov rcx, rbx
lea r8, str.3oR_wAO4Bw8c3K
nop word [rax + rax]
mov eax, edx
lea rcx, [rcx + 1]
and eax, 0xf
inc edx
movzx eax, byte [rax + r8]
xor byte [rcx - 1], al
cmp edx, r9d
jb 0x1800014b0
movdqa xmm1, xmmword [str.UUUUUUUUUUUUUUUU_]
test r9d, r9d
je 0x18000153a
cmp r9d, 0x40
jb 0x18000153a
mov r8d, r9d
mov edx, 0x20
and r8d, 0xffffffc0
nop word [rax + rax]
movdqu xmm0, xmmword [rbx + r10]
lea eax, [rdx - 0x10]
xorps xmm0, xmm1
movdqu xmmword [rbx + r10], xmm0
add r10d, 0x40
movdqu xmm0, xmmword [rax + rbx]
xorps xmm0, xmm1
movdqu xmmword [rax + rbx], xmm0
mov eax, edx
movdqu xmm0, xmmword [rax + rbx]
xorps xmm0, xmm1
movdqu xmmword [rax + rbx], xmm0
lea eax, [rdx + 0x10]
add edx, 0x40
movdqu xmm0, xmmword [rax + rbx]
xorps xmm0, xmm1
movdqu xmmword [rax + rbx], xmm0
cmp r10d, r8d
jb 0x1800014f0
cmp r10d, r9d
jae 0x18000155d
mov eax, r10d
mov edx, r9d
add rax, rbx
sub edx, r10d
nop dword [rax + rax]
xor byte [rax], 0x55
lea rax, [rax + 1]
sub rdx, 1
jne 0x180001550
mov rdx, r9
mov r8d, 0x20
lea r9, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rbx
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdi, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x180004ce8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x180004d57
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180004d57
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180004d57
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180004d57
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180004d57
cmp dword [rcx + 0x84], 0xe
jbe 0x180004d57
cmp dword [rcx + 0xf8], 0
je 0x180004d57
mov ecx, ebx
call fcn.180004e08
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.180004be4
nop
cmp dword [rbp + 0x20], 0
je 0x180004da5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180004db0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180004ce8
Function at 0x18000830c
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 0x18000833c
xor eax, eax
jmp 0x1800083ff
mov rbp, rbx
cmp word [rax], si
je 0x180008361
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180008348
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180008344
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.18000822c
movsxd r14, eax
test eax, eax
jne 0x18000839f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180008335
mov rcx, r14
call fcn.18000959c
mov rdi, rax
test rax, rax
jne 0x1800083b8
xor ecx, ecx
call fcn.180006864
jmp 0x180008394
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.18000822c
test eax, eax
jne 0x1800083e9
mov rcx, rdi
call fcn.180006864
jmp 0x1800083f3
xor ecx, ecx
call fcn.180006864
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 0x18000db50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000db78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000db78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140ec6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140ec61df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140ec6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ec606f
add dl, dl
jne 0x140ec6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ec60f6
xor eax, eax
add dl, dl
jne 0x140ec60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ec61ad
add dl, dl
jne 0x140ec60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ec60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ec60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ec60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ec60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ec607e
mov eax, 1
add dl, dl
jne 0x140ec6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ec6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ec60fb
sub eax, ebx
mov ebx, 1
jne 0x140ec614c
mov ecx, 1
add dl, dl
jne 0x140ec612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ec613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ec6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ec607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ec6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ec6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ec615d
cmp eax, 0x7d00
jae 0x140ec619b
cmp eax, 0x500
jb 0x140ec6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ec607e
cmp eax, 0x7f
ja 0x140ec619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ec607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ec61d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140ec607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000d0d0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140014980
cmp eax, 1
je 0x14000d102
mov ecx, 3
call fcn.140014980
test eax, eax
jne 0x14000d1b6
cmp dword [0x14001e0c0], 1
jne 0x14000d1b6
mov qword [rsp + 0x48], rbx
lea rbx, [0x14001e940]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14000d12e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x14000d118
jmp 0x14000d1a2
cmp edi, 0x17
jae 0x14000d1a2
mov ecx, 3
call fcn.140014980
cmp eax, 1
je 0x14000d159
mov ecx, 3
call fcn.140014980
test eax, eax
jne 0x14000d1a2
cmp dword [0x14001e0c0], 1
jne 0x14000d1a2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14000d1a2
cmp rax, 0xffffffffffffffff
je 0x14000d1a2
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.14000ce90
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x140011285
Capabilities:
Terminate process

Disassembly:
jmp 0x140014900
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001133e
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015c50
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015c70
xor al, al
jmp 0x140015cf1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015c83
xor al, al
jmp 0x140015cf1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140015cad
xor al, al
jmp 0x140015cf1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015cc1
xor al, al
jmp 0x140015cf1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015cd3
xor al, al
jmp 0x140015cf1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140015cef
xor al, al
jmp 0x140015cf1
mov al, 1
add rsp, 0x38
ret
Function at 0x140013b30
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400114c4
movzx eax, al
test eax, eax
jne 0x140013b50
mov ecx, 7
call fcn.140011410
nop
mov byte [rsp + 0x20], 0
call fcn.140011424
mov byte [rsp + 0x21], al
cmp dword [0x14001f898], 1
jne 0x140013b74
mov ecx, 7
call fcn.140011410
nop
jmp 0x140013bcc
cmp dword [0x14001f898], 0
jne 0x140013bc7
mov dword [0x14001f898], 1
lea rdx, [0x14001b660]
lea rcx, [0x14001b330]
call fcn.140011217
test eax, eax
je 0x140013ba8
mov eax, 0xff
jmp 0x140013cd1
lea rdx, [0x14001b220]
lea rcx, [section..rdata]
call fcn.14001141a
mov dword [0x14001f898], 2
jmp 0x140013bcc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400113f7
call fcn.14001136b
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140013c29
mov rcx, qword [rsp + 0x30]
call fcn.1400111c2
movzx eax, al
test eax, eax
je 0x140013c29
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140026020]
nop
call fcn.1400113b6
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140013c5d
mov rcx, qword [rsp + 0x38]
call fcn.1400111c2
movzx eax, al
test eax, eax
je 0x140013c5d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011474
nop
call fcn.140013d80
mov dword [rsp + 0x28], eax
call fcn.14001133e
movzx eax, al
test eax, eax
jne 0x140013c7c
mov ecx, dword [rsp + 0x28]
call fcn.14001105f
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140013c8b
call fcn.14001147e
nop
xor edx, edx
mov cl, 1
call fcn.1400111b3
mov eax, dword [rsp + 0x28]
jmp 0x140013cd1
add rsp, 0x68
ret
Function at 0x7ec030
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x7ec03d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x7ec04d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x7ec035
lea eax, [rcx + 1]
jmp 0x7ec05b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x7ec06e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x7ec054
sub eax, 3
jb 0x7ec08e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x7ec0dd
sar eax, 1
movsxd rbp, eax
jb 0x7ec0c4
jmp 0x7ec09c
add ebx, ebx
jne 0x7ec09a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x7ec0c4
inc ecx
add ebx, ebx
jne 0x7ec0aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x7ec0c4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x7ec0bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x7ec0ac
add ecx, 2
jmp 0x7ec0c9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.007ebff2
jmp 0x7ec03d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1e6a00
mov dl, 0x3c
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x7ec12d
cmp rsi, rcx
jae 0x7ec135
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x7ec114
cmp al, 0x8f
ja 0x7ec114
cmp byte [rsi - 2], 0xf
je 0x7ec11a
sub al, 0xe8
cmp al, 1
ja 0x7ec0fe
cmp rsi, rcx
jae 0x7ec135
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x7ec104
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x7ec135
lodsb al, byte [rsi]
jmp 0x7ec114
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x3e3000]
mov eax, dword [rdi]
or eax, eax
je 0x7ec192
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x3ec000]
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 0x7ec142
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 0x7ec18c
mov qword [rbx], rax
add rbx, 8
jmp 0x7ec162
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 0x7ec1d6
cmp al, 0xef
ja 0x7ec1be
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x7ec19e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x7ec1ad
mov eax, dword [rdi]
add rdi, 4
jmp 0x7ec1ad
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
mov byte [fcn.007ec255], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.007ec255
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x7ec245
sub rsp, 0xffffffffffffff80
jmp 0x4014d0
Function at 0x14001a340
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 0x14001a40c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14001a40c
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 0x14001a425
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 0x14001a3fc
cmp byte [rax], 0x5c
jne 0x14001a3f6
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x14001a3f6
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14001a3e2
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x14001a3f3
test r8b, 0x10
jne 0x14001a3f6
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x14001a3f6
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.14001e9c0
test edi, edi
jne 0x14001a360
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
mov rcx, rbx
call fcn.14001c620
int3
Function at 0x140022d40
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, 0x40
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor r14d, r14d
mov dword [rsp + 0x24], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r14b
mov dword [rsp + 0x24], 1
mov rax, qword [rdx + 0x10]
cmp rax, 0xf
jbe 0x140022da4
movzx r8d, byte [rsp + 0x20]
mov rdx, rax
call fcn.14000f320
mov qword [rdi + 0x10], r14
mov rax, qword [rbx + 0x10]
mov r13d, 0xfffffffa
cmp qword [rbx + 0x18], 0x10
jb 0x140022dbc
mov r15, qword [rbx]
mov rcx, r15
mov rbx, r15
jmp 0x140022dc2
mov r15, rbx
mov rcx, rbx
add rax, rcx
mov qword [rsp + 0x28], rax
cmp rbx, rax
je 0x140022ed8
lea r8, [0x1401bf2a0]
movzx ebx, byte [rsp + 0x20]
nop
shl r14d, 8
movzx eax, byte [r15]
add r14d, eax
add r13d, 8
js 0x140022e6f
movsxd r12, r14d
movsxd rsi, r13d
lea ecx, [r13 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov ebp, edx
imul eax, edx, 0xfffffffa
add r13d, eax
nop dword [rax]
mov rax, r12
mov rcx, rsi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140022e4d
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140022e42
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140022e65
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.14000f1b0
lea r8, [0x1401bf2a0]
sub rsi, 6
sub rbp, 1
jne 0x140022e10
inc r15
cmp r15, qword [rsp + 0x28]
jne 0x140022de0
cmp r13d, 0xfffffffa
jle 0x140022ed8
lea ecx, [r13 + 8]
shl r14d, 8
movsxd rdx, r14d
sar rdx, cl
and edx, 0x3f
movzx r9d, byte [rdx + r8]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140022ec5
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140022eba
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140022ed8
movzx r8d, byte [rsp + 0x20]
mov edx, 1
mov rcx, rdi
call fcn.14000f1b0
mov rcx, qword [rdi + 0x10]
test cl, 3
je 0x140022f28
movzx ebx, byte [rsp + 0x20]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140022f0b
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140022f03
mov rax, qword [rdi]
mov word [rcx + rax], 0x3d
jmp 0x140022f1f
mov r9b, 0x3d
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.14000f1b0
mov rcx, qword [rdi + 0x10]
test cl, 3
jne 0x140022ee6
mov rax, rdi
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400246d4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400246c0
ret
Function at 0x140025fa0
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x468
mov rax, qword [0x140232d08]
xor rax, rsp
mov qword [rsp + 0x450], rax
movzx eax, word [rcx]
mov rsi, r9
mov rdi, r8
mov ebp, edx
mov rbx, rcx
cmp ax, 2
je 0x140025fd8
cmp ax, 0x17
jne 0x14002604d
movzx ecx, word [rcx + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
xor edx, edx
lea rcx, [rsp + 0x40]
mov dword [rsi], eax
mov r8d, 0x401
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x40]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x14002604d
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140026032
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14000a1c0
mov al, 1
jmp 0x14002604f
xor al, al
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140199b40
add rsp, 0x468
pop rdi
pop rsi
pop rbp
pop rbx
ret