joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180074a6c
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 0x180074a9c
xor eax, eax
jmp 0x180074b5f
mov rbp, rbx
cmp word [rax], si
je 0x180074ac1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180074aa8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180074aa4
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.18007498c
movsxd r14, eax
test eax, eax
jne 0x180074aff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180074a95
mov rcx, r14
call fcn.18006d7b0
mov rdi, rax
test rax, rax
jne 0x180074b18
xor ecx, ecx
call fcn.18006d774
jmp 0x180074af4
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.18007498c
test eax, eax
jne 0x180074b49
mov rcx, rdi
call fcn.18006d774
jmp 0x180074b53
xor ecx, ecx
call fcn.18006d774
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 0x18007947c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1800706a0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800706a0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800795cc
cmp rax, 0xffffffffffffffff
je 0x1800795cc
xor edi, edi
test rbp, rbp
jle 0x180079577
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18006d6fc
mov rbx, rax
test rax, rax
jne 0x180079504
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18007956d
mov edx, 0x8000
mov ecx, r14d
call fcn.180079300
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.180071fe8
cmp eax, 0xffffffff
je 0x18007954d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180079514
mov edx, r15d
mov ecx, r14d
call fcn.180079300
jmp 0x18007956d
cmp byte [rsi + 0x38], dil
je 0x180079564
cmp dword [rsi + 0x34], 5
jne 0x180079564
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18007956d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18006d774
jmp 0x1800795e0
jns 0x1800795e0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800706a0
cmp rax, 0xffffffffffffffff
jne 0x180079598
cmp byte [rsi + 0x30], dil
je 0x1800795e0
mov edi, dword [rsi + 0x2c]
jmp 0x1800795e0
mov ecx, r14d
call fcn.180077144
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800795e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1800795e0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800795d9
mov eax, dword [rsi + 0x2c]
jmp 0x1800795de
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800706a0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x18007a610
Capabilities:
Parse pe header

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

Function at 0x140001948
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov rax, qword [0x1800c43e0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp dword [rsp + 0xf8], 1
jne 0x1800091c9
mov r8d, 0x48
xor edx, edx
lea rcx, [0x1800fac00]
call fcn.180058110
mov rax, qword [rsp + 0xf0]
mov qword [0x1800fac38], rax
mov rax, qword [0x1800fac38]
mov qword [0x1800fad78], rax
mov dword [0x1800fac00], 2
mov ecx, 0x278
call fcn.180058058
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x1800090bc
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xa0]
call fcn.18001a4d0
mov qword [rsp + 0xb8], rax
jmp 0x1800090c8
mov qword [rsp + 0xb8], 0
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [0x1800fac48], rax
mov rax, qword [0x1800fab70]
mov rcx, qword [0x1800fab70]
mov ecx, dword [rcx + 0x54]
mov eax, dword [rax + 0x74]
xor eax, ecx
mov rcx, qword [0x1800fab70]
xor eax, dword [rcx + 0x58]
and eax, 0x40000
test eax, eax
je 0x1800091ba
movzx eax, byte [0x1800c72d2]
mov byte [rsp + 0x50], al
lea rax, [rsp + 0x51]
mov rdi, rax
xor eax, eax
mov ecx, 0x3f
rep stosb byte [rdi], al
mov r8d, 0x40
lea rdx, [rsp + 0x50]
lea rcx, [0x1800c72c0]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x18000915d
lea rcx, [rsp + 0x50]
call fcn.1800092d0
mov qword [0x1800fad68], rax
lea rdx, [fcn.180013550]
lea rcx, [rsp + 0x28]
call fcn.180009310
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc8]
call fcn.18000b330
mov rdx, rax
lea rcx, [0x1800c72c0]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
nop
lea rcx, [rsp + 0x28]
call fcn.18000b240
mov eax, 1
jmp 0x1800092af
call fcn.180013550
jmp 0x1800092af
cmp dword [rsp + 0xf8], 0
jne 0x18000926f
mov rax, qword [0x1800fab70]
mov rcx, qword [0x1800fab70]
mov ecx, dword [rcx + 0x54]
mov eax, dword [rax + 0x74]
xor eax, ecx
mov rcx, qword [0x1800fab70]
xor eax, dword [rcx + 0x58]
and eax, 0x40000
test eax, eax
je 0x18000921b
xor edx, edx
lea rcx, [0x1800c72c0]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov eax, 1
jmp 0x1800092af
mov dword [rsp + 0x90], 1
cmp qword [0x1800fac40], 0
je 0x180009254
mov r8, qword [rsp + 0x100]
mov edx, dword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
call qword [0x1800fac40]
mov dword [rsp + 0x90], eax
call fcn.180013520
mov eax, dword [rsp + 0x90]
jmp 0x1800092af
mov dword [rsp + 0x94], 1
cmp qword [0x1800fac40], 0
je 0x1800092a8
mov r8, qword [rsp + 0x100]
mov edx, dword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
call qword [0x1800fac40]
mov dword [rsp + 0x94], eax
mov eax, dword [rsp + 0x94]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.180058210
add rsp, 0xe0
pop rdi
ret
Function at 0x180012a10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
add rax, 0x108
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x88]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x60], 0
jmp 0x180012ad5
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x60], eax
jae 0x180012b39
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
call fcn.18005a9e8
test eax, eax
jne 0x180012b37
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
jmp 0x180012b3b
jmp 0x180012acb
xor eax, eax
add rsp, 0x78
ret
Function at 0x180013550
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1800c43e0]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [0x1800c72c0]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp qword [0x1800fad68], 0
je 0x1800135a8
mov rax, qword [0x1800fad68]
mov qword [rsp + 0x28], rax
mov qword [0x1800fad68], 0
call qword [rsp + 0x28]
test eax, eax
jne 0x1800135a8
xor eax, eax
jmp 0x180013695
call fcn.180013440
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jne 0x18001360f
cmp qword [0x1800fac40], 0
je 0x180013600
lea r8, [0x1800fada0]
mov edx, 1
mov rcx, qword [0x1800fad78]
call qword [0x1800fac40]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1800135f4
call fcn.180013520
xor eax, eax
jmp 0x180013695
mov eax, 1
jmp 0x180013695
mov eax, 1
jmp 0x180013695
cmp dword [rsp + 0x20], 0
jne 0x180013688
call fcn.180010e90
mov r8, rax
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.18005ab50
call fcn.180010eb0
mov rcx, rax
call fcn.180058740
test rax, rax
je 0x18001366c
lea r8, [0x1800c949c]
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.18005aad4
call fcn.180010eb0
mov r8, rax
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.18005aad4
mov r9d, 0x40010
xor r8d, r8d
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x180013695
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180058210
add rsp, 0x158
ret
Function at 0x18005a350
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.18005a1c0

Function at 0x18006130b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800c43e0]
jne 0x18005822a
rol rcx, 0x10
test cx, 0xffff
jne 0x180058226
repz ret
ror rcx, 0x10
jmp 0x180061264
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800fb950]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800fba48]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800612e9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800fb950]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18006130b
mov rax, qword [rsp + 0x88]
mov qword [0x1800fba48], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800fb9e8], rax
mov rax, qword [0x1800fba48]
mov qword [0x1800fb8c0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800fb9d0], rax
mov dword [0x1800fb8b0], 0xc0000409
mov dword [0x1800fb8b4], 1
mov rax, qword [0x1800c43e0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800c43e8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800fb948], eax
mov ecx, 1
call fcn.18006acfc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800d0768]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800fb948], 0
jne 0x180061392
mov ecx, 1
call fcn.18006acfc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180071a20
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1800c43e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180060e20
xor ebx, ebx
cmp qword [0x1800fc998], rbx
mov rdi, rax
jne 0x180071b33
lea rcx, [0x1800d3520]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180071c0a
lea rdx, [0x1800cc990]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180071c0a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1800d3510]
mov rcx, rsi
mov qword [0x1800fc998], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1800d34f8]
mov rcx, rsi
mov qword [0x1800fc9a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x1800d34d8]
mov rcx, rsi
mov qword [0x1800fc9a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1800fc9b8], rax
test rax, rax
je 0x180071b2a
lea rdx, [0x1800d34c0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800fc9b0], rax
jmp 0x180071b3a
mov rax, qword [0x1800fc9b0]
jmp 0x180071b41
mov rax, qword [0x1800fc9b0]
mov r11, qword [0x1800fc9b8]
cmp rax, rdi
je 0x180071ba8
cmp r11, rdi
je 0x180071ba8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1800fc9b8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180071ba8
test rax, rax
je 0x180071ba8
call rsi
test rax, rax
je 0x180071ba2
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180071ba2
test byte [rsp + 0x40], 1
jne 0x180071ba8
bts ebp, 0x15
jmp 0x180071be8
mov rcx, qword [0x1800fc9a0]
cmp rcx, rdi
je 0x180071be8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180071be8
call rax
mov rbx, rax
test rax, rax
je 0x180071be8
mov rcx, qword [0x1800fc9a8]
cmp rcx, rdi
je 0x180071be8
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180071be8
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800fc998]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180071c0a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180071c0c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180058210
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18007ef00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov edi, dword [rcx + 0x44]
mov qword [rsp + 0x40], r12
mov rbp, rcx
mov qword [rsp + 0x48], r13
nop
mov edx, dword [rbp + 0x94]
mov ebx, dword [rbp + 0x58]
mov eax, dword [rbp + 0x44]
sub ebx, dword [rbp + 0x9c]
lea ecx, [rdi + rax - 0x106]
sub ebx, edx
cmp edx, ecx
jb 0x18007efbc
mov rcx, qword [rbp + 0x50]
mov r8, rdi
lea rdx, [rcx + rdi]
call fcn.180058880
mov r8d, dword [rbp + 0x74]
mov rax, qword [rbp + 0x68]
sub dword [rbp + 0x98], edi
sub dword [rbp + 0x94], edi
sub dword [rbp + 0x84], edi
lea rdx, [rax + r8*2]
nop
movzx eax, word [rdx - 2]
sub rdx, 2
cmp eax, edi
jb 0x18007ef80
sub eax, edi
jmp 0x18007ef82
xor eax, eax
add r8d, 0xffffffff
mov word [rdx], ax
jne 0x18007ef70
mov rax, qword [rbp + 0x60]
mov edx, edi
lea rcx, [rax + rdi*2]
nop
nop
nop
movzx eax, word [rcx - 2]
sub rcx, 2
cmp eax, edi
jb 0x18007efb0
sub eax, edi
jmp 0x18007efb2
xor eax, eax
add edx, 0xffffffff
mov word [rcx], ax
jne 0x18007efa0
add ebx, edi
mov rsi, qword [rbp]
cmp dword [rsi + 8], 0
je 0x18007f09b
mov eax, dword [rbp + 0x94]
mov r13d, dword [rbp + 0x9c]
add r13, rax
mov eax, dword [rsi + 8]
add r13, qword [rbp + 0x50]
cmp eax, ebx
mov r12d, eax
cmova r12d, ebx
test r12d, r12d
je 0x18007f042
sub eax, r12d
mov dword [rsi + 8], eax
mov rax, qword [rsi + 0x28]
mov ecx, dword [rax + 0x2c]
cmp ecx, 1
jne 0x18007f014
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x4c]
mov r8d, r12d
call fcn.180083080
mov dword [rsi + 0x4c], eax
jmp 0x18007f02a
cmp ecx, 2
jne 0x18007f02a
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x4c]
mov r8d, r12d
call fcn.180083070
mov dword [rsi + 0x4c], eax
mov rdx, qword [rsi]
mov r8d, r12d
mov rcx, r13
mov ebx, r12d
call fcn.180058880
add qword [rsi], rbx
add dword [rsi + 0xc], r12d
add dword [rbp + 0x9c], r12d
mov r9d, dword [rbp + 0x9c]
cmp r9d, 3
jb 0x18007f084
mov eax, dword [rbp + 0x94]
mov rdx, qword [rbp + 0x50]
mov ecx, dword [rbp + 0x80]
movzx r8d, byte [rax + rdx]
add eax, 1
mov dword [rbp + 0x70], r8d
movzx eax, byte [rax + rdx]
shl r8d, cl
xor r8d, eax
and r8d, dword [rbp + 0x7c]
mov dword [rbp + 0x70], r8d
cmp r9d, 0x106
jae 0x18007f09b
mov rax, qword [rbp]
cmp dword [rax + 8], 0
jne 0x18007ef20
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800b0780
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
lea rdx, [0x1800ac3f0]
lea rcx, [0x1800fcc30]
call fcn.1800ad6d0
mov ecx, dword [0x1800fcc38]
test ecx, ecx
je 0x1800b07ba
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1800b07e3
lea rcx, [rsp + 0x28]
call fcn.1800583a8
mov dword [rsp + 0x40], 0
lea rax, [0x1800c8368]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
call fcn.18000db70
nop
add rsp, 0x50
pop rbx
ret
Function at 0x140004230
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000425d
xor eax, eax
jmp 0x1400043c9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004297
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004297
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 0x1400043c9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400043bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400042da
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 0x140004305
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 0x1400043c1
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 0x140004374
sub eax, 1
je 0x140004374
cmp eax, 2
jne 0x1400043bc
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 0x1400043c1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400043a2
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 0x1400043bc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400043c1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400c3af0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret

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

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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400e8040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004e03
cmp byte [rcx + 0x71], 0
je 0x140004e03
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004dff
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 0x140004dc4
sub eax, 1
je 0x140004dc8
cmp eax, 2
jne 0x140004dff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400c3af0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004df6
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 0x140004dff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140004dac
xor al, al
jmp 0x140004dac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400c3af0
add rsp, 0x60
pop rbx
ret
Function at 0x14000b530
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 0x14000b5f5
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x14000b5f5
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 0x14000b60e
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x14000b5e5
cmp byte [rcx], 0x5c
jne 0x14000b5de
lea rdx, [rcx + 1]
cmp rdx, rax
je 0x14000b5de
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x14000b5cc
movzx eax, byte [rdx]
sub al, 0x28
cmp al, 1
jbe 0x14000b5db
test r8b, 0x10
jne 0x14000b5de
movzx eax, byte [rdx]
sub al, 0x7b
test al, 0xfd
jne 0x14000b5de
mov rcx, rdx
lea rax, [rcx + 1]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140006e20
test edi, edi
jne 0x14000b550
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.140006e10
int3