joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
ficom dword [rdi + 0x2f6dd0f0]
push 0xb
or al, 0xdf
push rcx
sbb dword [rbp - 0x47], esi
invalid
Function at 0x401480
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x0044e990]
mov dword [rax], 1
mov rax, qword [0x0044e9a0]
mov dword [rax], 1
mov rax, qword [0x0044e9b0]
mov dword [rax], 1
mov rax, qword [0x0044e980]
mov dword [rax], 1
mov rax, qword [0x0044e840]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x4014de
mov eax, 0
jmp 0x40158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x40150a
mov eax, 0
jmp 0x40158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x401530
cmp eax, 0x20b
je 0x401557
jmp 0x401586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x401543
mov eax, 0
jmp 0x40158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x40158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x401572
mov eax, 0
jmp 0x40158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x40158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x401bb4
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12, rcx
mov rcx, rdx
mov r13, rdx
call sub.msvcrt.dll_strlen
mov rcx, r13
mov r9, r12
mov edx, 1
mov r8, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x28
pop r12
pop r13
jmp fcn.0040c280

Function at 0x403e3d
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov r13, rcx
mov ecx, 2
call qword [fcn.0040c990]
mov r8, qword [rsp + 0x28]
mov rcx, r13
mov edx, 1
mov r12, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, r12
add rsp, 0x38
pop r12
pop r13
jmp fcn.0040c280
Function at 0x403fb6
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea r13, [0x00455160]
mov rbx, rdx
mov rdi, rcx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
shl rbx, 4
mov rbp, qword [fcn.0040c990]
mov qword [rsp + 0x28], rbx
xor ebx, ebx
mov ecx, 1
call rbp
mov r12, qword [rdi + rbx + 8]
lea r8, [0x0041a06f]
mov rsi, rax
mov rax, qword [rdi + rbx]
mov qword [rsp + 0x20], rax
test rax, rax
je 0x404017
lea r8, [r12 + 8]
lea r15, [0x0041a0c7]
mov rcx, rsi
mov rdx, r15
call fcn.004024a0
movsxd r14, eax
cmp qword [rsp + 0x20], r14
jle 0x404069
cmp byte [r12 + r14 + 8], 0
je 0x404056
lea r8, [r12 + r14 + 8]
mov rdx, r15
mov rcx, rsi
call fcn.004024a0
test eax, eax
jle 0x404069
cdqe
add r14, rax
jmp 0x40402c
xor ecx, ecx
mov rdx, rsi
call sub.msvcrt.dll_fputc
test eax, eax
jne 0x404069
inc r14
jmp 0x40402c
lea rcx, [0x00419180]
call fcn.0040cd20
cmp byte [rax], 0
jne 0x4040d3
add rbx, 0x10
cmp rbx, qword [rsp + 0x28]
jne 0x403fee
mov ecx, 1
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x0041a0b2]
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
call fcn.0040c280
mov rcx, r13
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x405850
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.0040c990
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.0040c990
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x406482
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x004552c8]
test eax, eax
je 0x40651a
lea rax, [0x004552a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x004552d0]
mov qword [rbp - 8], rax
jmp 0x4064fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x4064f2
cmp qword [rbp - 0x10], 0
je 0x4064f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x4064b8
lea rax, [0x004552a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x40651b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x406620
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x406648
mov eax, 0
jmp 0x406696
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x406671
mov eax, 0
jmp 0x406696
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x406691
mov eax, 0
jmp 0x406696
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x40669c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x40671a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x406711
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x406711
mov rax, qword [rbp - 8]
jmp 0x40672f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x4066e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x40e0c4
Capabilities:
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x10], 0
je 0x40e20e
mov rcx, qword [rbp + 0x10]
call fcn.0041269d
cmp eax, 1
jne 0x40e201
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rdx
movabs rax, 0x6b5f6e6970732070
movabs rdx, 0x20726f6620737965
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rdx
movabs rax, 0x20646165726874
mov edx, 0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov word [rbp - 8], 0
mov byte [rbp - 6], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov ecx, eax
lea rax, [rbp - 0x70]
add rax, 0x27
mov r8d, 0xa
mov rdx, rax
mov rax, qword [sym.imp.msvcrt.dll__ultoa]
call rax
mov dword [rbp - 4], 0x27
jmp 0x40e1b7
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cdqe
movzx eax, byte [rbp + rax - 0x70]
test al, al
je 0x40e1cd
mov eax, dword [rbp - 4]
cmp eax, 0x69
jbe 0x40e1b3
mov eax, dword [rbp - 4]
cmp eax, 0x69
ja 0x40e1ec
mov eax, dword [rbp - 4]
cdqe
mov byte [rbp + rax - 0x70], 0xa
mov eax, dword [rbp - 4]
add eax, 1
cdqe
mov byte [rbp + rax - 0x70], 0
lea rax, [rbp - 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
call sub.msvcrt.dll_abort
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov qword [rax], rdx
jmp 0x40e20f
nop
add rsp, 0x90
pop rbp
ret
Function at 0x40f405
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xffffffffffffffff
lea rax, [0x0040f22b]
mov rdx, rax
lea rax, [0x00455d50]
mov rcx, rax
call fcn.0040e836
mov eax, dword [0x004192b0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x40f458
mov rax, qword [rbp - 0x10]
jmp 0x40f5b8
call fcn.0040dfa0
mov qword [rbp - 0x10], rax
mov rax, qword [0x00457050]
test rax, rax
je 0x40f474
cmp qword [rbp - 0x10], 0
jne 0x40f47e
mov eax, 0
jmp 0x40f5b8
mov rax, qword [rbp - 0x10]
mov dword [rax + 0x44], 1
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0x70], eax
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateEventA]
call rax
mov rdx, qword [rbp - 0x10]
mov qword [rdx + 0x30], rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 0x10]
lea rcx, [rax + 0x68]
mov rax, qword [rbp - 8]
mov rdx, rax
call fcn.0040e0c4
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xb8], 0
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
lea rdi, [rax + 0x28]
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rsi, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
test eax, eax
jne 0x40f559
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadPriority]
call rax
mov rdx, qword [rbp - 0x10]
mov dword [rdx + 0xc0], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 0
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x40]
and edx, 0xffffffcf
or edx, 0x10
mov byte [rax + 0x40], dl
mov eax, dword [0x004192b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
test eax, eax
jne 0x40f5b4
call sub.msvcrt.dll_abort
mov rax, qword [rbp - 0x10]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x40f6b2
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x10]
mov dword [rbp - 4], eax
call fcn.0040f405
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x10]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 0x18]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call fcn.0040f259
mov rax, qword [rbp - 0x18]
movzx eax, byte [rax + 0x40]
and eax, 0x30
test al, al
jne 0x40f71f
mov rax, qword [rbp - 0x18]
add rax, 0xd0
mov edx, 1
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll_longjmp]
call rax
mov eax, dword [0x004192b0]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x40f863
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x40f7bc
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x40f777
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.0040de7c
mov qword [rbp - 0x10], 0
mov eax, dword [0x004192b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x40f863
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 8]
mov dword [rbp - 4], eax
mov rax, qword [rbp - 0x10]
mov dword [rax + 0xbc], 1
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x40f7f6
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x44]
and eax, 4
test eax, eax
je 0x40f863
mov rax, qword [rbp - 0x10]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov qword [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.0040de7c
mov qword [rbp - 0x10], 0
mov eax, dword [0x004192b0]
mov rdx, qword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov eax, dword [rbp - 4]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x140003fc8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000403f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14000403f
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14000402c
cmp rbx, rcx
jae 0x14000403f
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140004017
cmp rbx, rcx
jae 0x14000403f
movzx eax, word [rbx]
neg ax
sbb rax, rax
and rax, rbx
jmp 0x140004041
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140004a78
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x14031a940]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rdi, rcx
mov qword [rsp + 0x20], rcx
cmp byte [rcx + 0x53a], 0
jne 0x140004b95
mov byte [rcx + 0x53a], 1
mov byte [0x140329eeb], 1
call fcn.140007198
nop
jmp 0x140004ac1
mov rax, qword [rdi + 0x540]
test rax, rax
je 0x140004adf
mov rcx, qword [rax]
test rcx, rcx
je 0x140004adf
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rdx, qword [rdi + 0x558]
test rdx, rdx
je 0x140004af5
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_KillTimer]
mov edx, 0x1a
mov rcx, rdi
call fcn.1400055a4
xor r8d, r8d
lea edx, [r8 + 0x19]
mov rcx, rdi
call fcn.140005614
and qword [rsp + 0x20], 0
call fcn.140083794
mov rcx, rax
test rax, rax
je 0x140004baf
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
mov ecx, 0x1e
call fcn.1400863f8
test rax, rax
je 0x140004b5e
mov r8d, 0x1e
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140004058
mov rbx, qword [rsp + 0x20]
lea rcx, [rdi + 0x340]
mov rdx, rbx
call fcn.1400a6054
mov edx, 2
mov rcx, rdi
call fcn.1400a8ee4
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140004b95
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140220510
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x80004005
call fcn.140002d6c
int3
Function at 0x1400059e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialogEx.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
cmp rdx, 0x10000
jae 0x1400a877b
cmp dword [rcx + 0xe8], 0
jne 0x1400a877b
movzx eax, dx
mov dword [rcx + 0xe8], eax
call fcn.1400a82cc
mov r8d, 5
mov rdx, rdi
mov rsi, qword [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400a87bf
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400a87bf
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rbx
call fcn.1400a8af4
jmp 0x1400a87c1
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140006314
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x14031a940]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov rdx, rcx
lea rcx, [0x140006290]
call fcn.1400991f4
mov qword [rbx], rax
test rax, rax
jne 0x1400063b5
and qword [rsp + 0x30], rax
lea rdx, str.Thread_creation_failed
lea rcx, [rsp + 0x30]
call fcn.140003f48
nop
call fcn.1400062f0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140006394
mov r9, qword [rsp + 0x30]
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_PostMessageW]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400063c6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400063c6
and dword [rax + 0x50], 0
mov rcx, qword [rbx]
mov rcx, qword [rcx + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140220510
add rsp, 0x40
pop rbx
ret

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

Disassembly:
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14000a344
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14000a376
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14000a359
mov rax, r8
ret
Function at 0x14000bd64
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
cmp ecx, 0xffffffff
je 0x14000bf01
cmp ecx, 0x7c
je 0x14000bf01
cmp ecx, 0x29
jne 0x14000bdaf
cmp dword [rbx + 0x1c], 0
jne 0x14000bf01
lea rdi, [rbx + 0x80]
test dword [rdi], 0x10000000
je 0x14000bf0c
jmp 0x14000beb6
lea rdi, [rbx + 0x80]
cmp ecx, 0x2e
jne 0x14000bdd6
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.14000c080
mov rcx, rbx
call fcn.14000bd28
jmp 0x14000beef
cmp ecx, 0x5c
jne 0x14000be36
mov rcx, rbx
call fcn.14000bd28
test byte [rdi], 0x80
je 0x14000be29
cmp word [rbx + 0x78], 0x62
jne 0x14000be0a
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.14000c080
mov rcx, rbx
call fcn.14000bd28
jmp 0x14000bef7
cmp word [rbx + 0x78], 0x42
jne 0x14000be29
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.14000c080
mov rax, qword [rbx + 0x48]
xor dword [rax + 0xc], 1
jmp 0x14000bdfd
mov rcx, rbx
call fcn.14000d038
jmp 0x14000beef
cmp ecx, 0x5b
jne 0x14000be5a
mov rcx, rbx
call fcn.14000bd28
mov rcx, rbx
call fcn.14000cee8
cmp dword [rbx + 0x7c], 0x5d
jne 0x14000bf17
jmp 0x14000bdc9
cmp ecx, 0x28
jne 0x14000be7e
mov rcx, rbx
call fcn.14000bd28
mov rcx, rbx
call fcn.14000d19c
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x14000bf22
jmp 0x14000bee2
cmp ecx, 0x5e
jne 0x14000be8b
lea edx, [rcx - 0x5c]
jmp 0x14000bdf4
cmp ecx, 0x24
jne 0x14000be98
lea edx, [rcx - 0x21]
jmp 0x14000bdf4
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x14000bf43
cmp ecx, 0x3f
je 0x14000bf43
cmp ecx, 0x7b
je 0x14000bf43
cmp ecx, 0x7d
jne 0x14000bec5
test dword [rdi], 0x10000000
je 0x14000bf2d
jmp 0x14000bed2
cmp ecx, 0x5d
jne 0x14000bed2
test dword [rdi], 0x10000000
je 0x14000bf38
movzx edx, word [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.14000d3f8
mov dil, 1
mov rcx, rbx
call fcn.14000bd28
test dil, dil
je 0x14000bef7
mov rcx, rbx
call fcn.14000d2b0
mov ecx, dword [rbx + 0x7c]
mov al, 1
jmp 0x14000bd76
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 5
call fcn.14000a8f8
int3
mov edx, 4
call fcn.14000a8f8
int3
mov edx, 5
call fcn.14000a8f8
int3
mov edx, 6
call fcn.14000a8f8
int3
mov edx, 4
call fcn.14000a8f8
int3
mov edx, 0xa
call fcn.14000a8f8
int3