joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003710
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push r12
sub rsp, 0x20
xor esi, esi
test r8d, r8d
mov r12, rdx
mov rbp, rcx
je 0x14000377c
mov edx, dword [rcx + 0x28]
mov rcx, qword [rcx + 0x38]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x50], esi
call fcn.14001aaf0
movsxd rbx, dword [rsp + 0x50]
mov edx, dword [rbp + 0x2c]
mov r8, qword [rsp + 0x40]
mov r9, rbx
mov rcx, r12
call fcn.140047240
mov rcx, qword [rsp + 0x40]
mov r8, rbx
xor edx, edx
call fcn.14004ba70
mov rcx, qword [rsp + 0x40]
call fcn.140047310
jmp 0x14000379d
mov edx, dword [rcx + 0x28]
mov r8, qword [rcx + 0x38]
mov rcx, r12
mov r9, rdx
call fcn.140047240
mov r8d, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x38]
xor edx, edx
call fcn.14004ba70
cmp dword [rbp + 0x30], esi
mov qword [rbp + 0x38], rsi
je 0x140003919
movsxd r8, dword [r12 + 0x3c]
mov ebx, esi
mov r9d, esi
add r8, r12
cmp word [r8 + 0x18], 0x20b
movzx eax, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [rax + r8 + 0x18]
mov rcx, rdx
jne 0x140003860
test r10d, r10d
mov r11d, dword [r8 + 0xf8]
mov ebx, 1
je 0x140003812
mov eax, dword [rcx + 8]
test eax, eax
jne 0x1400037f1
mov eax, dword [rcx + 0x10]
mov r8d, dword [rcx + 0xc]
cmp r11d, r8d
jb 0x140003806
add eax, r8d
cmp r11d, eax
jb 0x14000389d
add r9d, ebx
add rcx, 0x28
cmp r9d, r10d
jb 0x1400037e7
mov rax, rsi
mov r8d, dword [rax + 8]
mov ecx, esi
sub r8d, 0x10
test ebx, ebx
je 0x1400038b4
test r10d, r10d
je 0x1400038fb
mov eax, dword [rdx + 8]
test eax, eax
jne 0x14000383a
mov eax, dword [rdx + 0x10]
mov r9d, dword [rdx + 0xc]
cmp r8d, r9d
jb 0x14000384f
add eax, r9d
cmp r8d, eax
jb 0x1400038e9
add ecx, 1
add rdx, 0x28
cmp ecx, r10d
jb 0x140003830
jmp 0x1400038fb
test r10d, r10d
mov r11d, dword [r8 + 0xe8]
je 0x140003812
nop
mov eax, dword [rcx + 8]
test eax, eax
jne 0x14000387a
mov eax, dword [rcx + 0x10]
mov r8d, dword [rcx + 0xc]
cmp r11d, r8d
jb 0x14000388b
add eax, r8d
cmp r11d, eax
jb 0x14000389d
add r9d, 1
add rcx, 0x28
cmp r9d, r10d
jb 0x140003870
jmp 0x140003812
mov eax, r8d
sub eax, dword [rcx + 0x14]
movsxd rcx, eax
mov rax, r11
sub rax, rcx
add rax, r12
jmp 0x140003815
test r10d, r10d
je 0x1400038fb
nop
nop
mov eax, dword [rdx + 8]
test eax, eax
jne 0x1400038ca
mov eax, dword [rdx + 0x10]
mov r9d, dword [rdx + 0xc]
cmp r8d, r9d
jb 0x1400038db
add eax, r9d
cmp r8d, eax
jb 0x1400038e9
add ecx, 1
add rdx, 0x28
cmp ecx, r10d
jb 0x1400038c0
jmp 0x1400038fb
mov eax, r9d
mov esi, r8d
sub eax, dword [rdx + 0x14]
movsxd rcx, eax
sub rsi, rcx
add rsi, r12
mov eax, dword [rsi]
mov dword [rbp + 0x4c], eax
mov eax, dword [rsi + 0xc]
mov dword [rbp + 0x58], eax
mov eax, dword [rsi + 4]
mov dword [rbp + 0x50], eax
mov eax, dword [rsi + 8]
mov dword [rbp + 0x48], 1
mov dword [rbp + 0x54], eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r12
pop rsi
pop rbp
ret
Function at 0x140008b90
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov esi, r9d
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x38]
lea r9, [rsp + 0x30]
mov rdi, rcx
mov byte [rsp + 0x20], 0
call fcn.1400083e0
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x140008c20
nop
nop
nop
mov dword [rsp + 0x80], SafeArrayUnaccessData
mov rcx, qword [rbx]
lea rdx, [rsp + 0x80]
mov rax, qword [rcx]
call qword [rax]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140008bd0
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x140008c18
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140008c10
mov edx, 1
call fcn.140009b80
mov rcx, rbx
call fcn.140047020
mov qword [rdi + 0x18], 0
mov edx, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x38]
xor r9d, r9d
add ecx, edx
xor r8d, r8d
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x48], ecx
mov ecx, dword [rsp + 0x3c]
mov dword [rsp + 0x44], 0
add ecx, edx
mov edx, esi
mov dword [rsp + 0x4c], ecx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov rax, qword [rdi + 0xa8]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x34]
mov rcx, rdi
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x50], 1
sub eax, dword [rsp + 0x40]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x4c]
sub eax, dword [rsp + 0x44]
mov dword [rsp + 0x68], eax
mov rax, qword [rdi]
call qword [rax]
mov rcx, qword [rdi + 0xa8]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rdi + 0xa8]
call qword [sym.imp.USER32.dll_UpdateWindow]
cmp qword [rdi + 0xa8], 0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
setne al
mov rsp, r11
pop rdi
ret
Function at 0x1400098d0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x14008c0c0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, qword [rcx + 0x20]
mov rbp, rcx
lea rcx, [rsp + 0x30]
mov eax, dword [rbp + 0x28]
mov rdi, qword [rbp + 0x18]
mov dword [rcx], eax
mov eax, dword [rbp + 0x2c]
mov dword [rcx + 4], eax
mov eax, dword [rbp + 0x30]
mov dword [rcx + 8], eax
mov eax, dword [rbp + 0x34]
mov dword [rcx + 0xc], eax
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetParent]
mov r9, rdi
mov r8, rbx
mov rcx, rax
mov edx, 0x135
call qword [sym.imp.USER32.dll_SendMessageA]
test rax, rax
je 0x140009953
lea rdx, [rsp + 0x30]
mov r8, rax
mov rcx, rbx
call qword [sym.imp.USER32.dll_FillRect]
mov esi, dword [rbp + 0x10]
mov r9d, SafeArrayGetDim
lea rdx, [rsp + 0x30]
test sil, 1
mov rcx, rbx
lea r8d, [r9 - 5]
jne 0x140009972
lea r8d, [r9 - 0xa]
call qword [sym.imp.USER32.dll_DrawEdge]
mov rcx, qword [rbp + 0x18]
lea rdx, [rsp + 0x40]
mov r8d, 0x100
call qword [sym.imp.USER32.dll_GetWindowTextA]
test sil, 4
je 0x1400099f2
mov edx, 0xf0f0f0
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SetTextColor]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
repne scasb al, byte [rdi]
mov dword [rsp + 0x20], 0x25
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DrawTextA]
add dword [rsp + 0x34], 1
add dword [rsp + 0x30], 1
add dword [rsp + 0x38], 1
add dword [rsp + 0x3c], 1
mov edx, 0x787878
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SetTextColor]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
not rcx
mov dword [rsp + 0x20], 0x25
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DrawTextA]
test sil, 0x10
je 0x140009a49
add dword [rsp + 0x34], 3
add dword [rsp + 0x30], 3
sub dword [rsp + 0x38], 3
sub dword [rsp + 0x3c], 3
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.USER32.dll_DrawFocusRect]
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140047440
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000cf20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov eax, r8d
mov rsi, rdx
mov ebx, r8d
shr eax, 4
mov rbp, rcx
mov r8d, 6
add ax, 1
mov rcx, rsi
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
mov r12, rax
je 0x14000d089
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000d089
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x14000d089
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x14000cfba
cmp rdi, r11
jae 0x14000d089
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x14000cfa4
cmp rdi, r11
jae 0x14000d089
movzx eax, word [rdi]
test ax, ax
je 0x14000d089
mov qword [rsp + 0x60], r13
movzx ebx, ax
call qword [0x14008c040]
xor r13d, r13d
lea r12, [rdi + 2]
mov r9d, ebx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rbp]
mov edx, 1
movsxd rsi, eax
sub edx, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
sub ecx, esi
or edx, ecx
jge 0x14000d02a
mov edx, esi
mov rcx, rbp
call fcn.14000d3f0
mov rbx, qword [rbp]
movzx edi, word [rdi]
call qword [0x14008c040]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r9d, edi
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test esi, esi
mov r13, qword [rsp + 0x60]
js 0x14000d07e
mov rcx, qword [rbp]
cmp esi, dword [rcx - 0xc]
jg 0x14000d07e
mov dword [rcx - 0x10], esi
mov rcx, qword [rbp]
mov eax, 1
mov byte [rsi + rcx], 0
jmp 0x14000d08b
mov ecx, 0x80070057
call fcn.140002840
int3
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x14000ef70
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rsi
sub rsp, 0x28
test dl, dl
mov rbx, rcx
je 0x14000efb6
test rcx, rcx
je 0x14000ef89
lea rsi, [rcx + 0x20]
jmp 0x14000ef8b
xor esi, esi
cmp qword [rsi], 0
je 0x14000f089
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov al, 1
add rsp, 0x28
pop rsi
pop rbx
ret
xor esi, esi
test rcx, rcx
je 0x14000efc3
lea rax, [rcx + 0x20]
jmp 0x14000efc6
mov rax, rsi
cmp qword [rax], rsi
je 0x14000f089
test rcx, rcx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x20], r13
je 0x14000efe4
add rcx, 0x20
jmp 0x14000efe7
mov rcx, rsi
mov rcx, qword [rcx]
mov qword [rsp + 0x50], r12
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov rdx, qword [rbx + 8]
test rdx, rdx
lea r13d, [rax + 1]
movsxd rbp, r13d
je 0x14000f04b
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x48], rdi
xor eax, eax
mov rdi, rdx
lea r12, [rbp + 1]
repne scasb al, byte [rdi]
mov rdi, qword [rsp + 0x48]
not rcx
sub rcx, 1
cmp rcx, r12
je 0x14000f058
mov rcx, rdx
call fcn.140047c50
test r13d, r13d
je 0x14000f045
mov rcx, r12
call fcn.140046720
mov qword [rbx + 8], rax
jmp 0x14000f058
mov qword [rbx + 8], rsi
jmp 0x14000f058
lea rcx, [rbp + 1]
call fcn.140046720
mov qword [rbx + 8], rax
test rbx, rbx
mov r12, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x40]
je 0x14000f06b
lea rsi, [rbx + 0x20]
mov rdx, qword [rbx + 8]
mov rcx, qword [rsi]
mov r8d, r13d
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov r13, qword [rsp + 0x20]
mov al, 1
add rsp, 0x28
pop rsi
pop rbx
ret
xor al, al
add rsp, 0x28
pop rsi
pop rbx
ret
Function at 0x140010b80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov r12d, ecx
lea rcx, [0x14022f3c0]
xor r13d, r13d
xor edx, edx
mov rbx, r13
call fcn.140046868
lea ebp, [r13 + 1]
test rax, rax
mov rsi, rax
je 0x140010c86
nop
test rbx, rbx
jne 0x140010c86
mov eax, r12d
lea edx, [rbx + 6]
xor r9d, r9d
shr eax, 4
mov rcx, rsi
add ax, 1
movzx r8d, ax
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
test rax, rax
mov rdi, rax
jne 0x140010bf3
mov rbx, r13
jmp 0x140010c69
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140010c09
mov rbx, r13
jmp 0x140010c64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
jne 0x140010c1f
mov rbx, r13
jmp 0x140010c64
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, r12d
mov r11d, eax
add r11, rbx
and ecx, 0xf
jbe 0x140010c52
nop
nop
cmp rbx, r11
jae 0x140010c57
add ecx, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140010c40
cmp rbx, r11
jb 0x140010c5c
mov rbx, r13
jmp 0x140010c64
cmp word [rbx], r13w
cmove rbx, r13
test rbx, rbx
jne 0x140010ca1
lea rcx, [0x14022f3c0]
mov edx, ebp
call fcn.140046868
add ebp, 1
test rax, rax
mov rsi, rax
jne 0x140010bc0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
mov rax, rsi
jmp 0x140010c88
Function at 0x140010e90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x130
mov rax, qword [0x14008c0c0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rcx, qword [0x140230978]
mov ebx, dword [0x140231f64]
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8d, [rdx - 6]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
jne 0x140010ed3
xor eax, eax
jmp 0x140011018
mov rcx, qword [0x140230978]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140010ecc
mov rcx, rax
mov qword [rsp + 0x140], rsi
mov qword [rsp + 0x148], rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
lea rsi, [0x140230dd0]
xor edx, edx
mov rcx, rsi
mov r8d, 0xff
mov rdi, rax
call fcn.14004ba70
mov rcx, qword [0x140230978]
mov r9d, 0xfe
lea edx, [r9 - 0x6e]
mov r8, rsi
call qword [sym.imp.USER32.dll_LoadStringA]
mov qword [0x14022c778], rsi
cmp word [rdi + 6], 0
mov rsi, qword [rsp + 0x140]
je 0x140010f5c
mov rcx, qword [0x140230978]
mov edx, 0x11
call fcn.140001c00
test ebx, ebx
jne 0x140010fc2
movzx ecx, word [rdi + 2]
movsx eax, word [rdi]
mov dword [0x140231f3c], 1
mov edx, eax
mov word [0x14022af78], cx
movsx ecx, cx
mov word [0x14022af76], ax
mov dword [0x14022c664], eax
lea eax, [rcx - 0x28]
mov dword [0x14022c668], eax
lea eax, [rcx - 0x1e]
mov dword [0x14022c678], edx
mov dword [0x14022c68c], edx
mov dword [0x14022c714], eax
movzx r8d, word [rdi + 4]
lea rcx, [0x140001e10]
xor edx, edx
imul r8d, r8d, 0x3e8
call fcn.140047750
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0xff
call fcn.14004ba70
mov rcx, qword [0x140230978]
lea r8, [rsp + 0x20]
mov r9d, 0xfe
mov edx, 0x70
call qword [sym.imp.USER32.dll_LoadStringA]
test ebx, ebx
mov rdi, qword [rsp + 0x148]
je 0x140011009
lea rcx, [rsp + 0x20]
call fcn.140047b40
jmp 0x140011013
lea rcx, [rsp + 0x20]
call fcn.140001f30
mov eax, 1
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140047440
add rsp, 0x130
pop rbx
ret

Function at 0x1400120d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x460
mov rax, qword [0x14008c0c0]
xor rax, rsp
mov qword [rsp + 0x450], rax
cmp word [rcx], 0x5c
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
je 0x140012125
cmp word [rcx + 2], 0x3a
je 0x140012125
lea rdx, [0x140230bd0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x140012133
mov rdx, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
xor r9d, r9d
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
lea r8d, [r9 + 1]
mov edx, 0x40000000
mov dword [rsp + 0x28], 7
mov dword [rsp + 0x20], 1
call fcn.140060910
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x1400121b7
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, rdi
mov rcx, rax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [0x140230994]
lea r8, [0x14023098c]
lea rdx, [0x140230984]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140047440
add rsp, 0x460
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001aa90
Capabilities:
Enumerate pe sections

Disassembly:
movzx eax, word [rdx + 0x14]
xor r10d, r10d
mov r11d, ecx
lea r9, [rax + rdx + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14001aad0
mov eax, dword [r9 + 8]
test eax, eax
jne 0x14001aab3
mov eax, dword [r9 + 0x10]
mov ecx, dword [r9 + 0xc]
cmp r11d, ecx
jb 0x14001aac3
add eax, ecx
cmp r11d, eax
jb 0x14001aad3
add r10d, 1
add r9, 0x28
cmp r10d, edx
jb 0x14001aaa7
xor eax, eax
ret
mov eax, ecx
sub eax, dword [r9 + 0x14]
movsxd rcx, eax
mov rax, r11
sub rax, rcx
add rax, r8
ret

Function at 0x14003aef0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rdi, r8
mov r12, rdx
mov rbx, rcx
xor esi, esi
mov dword [rcx + 0x3bc], esi
jmp 0x14003af39
lea rcx, [0x140076eb8]
jmp loc.140527cff

Function at 0x14003bd50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x330
mov qword [rsp + 0x1f0], 0xfffffffffffffffe
mov edi, edx
mov rbx, rcx
lea rcx, [0x140076ef0]
jmp 0x140529409

Function at 0x14003c980
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x3e0
mov qword [rsp + 0x210], 0xfffffffffffffffe
mov r13d, edx
mov dword [rsp + 0x20], edx
mov rbx, rcx
lea rcx, [0x140076f10]
jmp 0x14052a9ae

Function at 0x14003e3b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 8
cmp dword [rcx + 0x3c0], 0
mov r9d, edx
je 0x14003e3cf
mov rax, r9
add rax, qword [rcx + 0x3e0]
add rsp, 8
ret
mov qword [rsp], rbx
mov rbx, qword [rcx + 0x3e0]
movsxd rdx, dword [rbx + 0x3c]
add rdx, rbx
cmp word [rdx + 0x18], 0x20b
jne 0x14003e438
movzx eax, word [rdx + 0x14]
movzx r10d, word [rdx + 6]
xor r11d, r11d
test r10d, r10d
lea rcx, [rax + rdx + 0x18]
mov r8d, r11d
je 0x14003e494
mov eax, dword [rcx + 8]
test eax, eax
jne 0x14003e410
mov eax, dword [rcx + 0x10]
mov edx, dword [rcx + 0xc]
cmp r9d, edx
jb 0x14003e41f
add eax, edx
cmp r9d, eax
jb 0x14003e483
add r8d, 1
add rcx, 0x28
cmp r8d, r10d
jb 0x14003e406
mov rax, r11
mov rbx, qword [rsp]
add rsp, 8
ret
movzx eax, word [rdx + 0x14]
movzx r10d, word [rdx + 6]
xor r11d, r11d
test r10d, r10d
lea rcx, [rax + rdx + 0x18]
mov r8d, r11d
je 0x14003e494
mov eax, dword [rcx + 8]
test eax, eax
jne 0x14003e45b
mov eax, dword [rcx + 0x10]
mov edx, dword [rcx + 0xc]
cmp r9d, edx
jb 0x14003e46a
add eax, edx
cmp r9d, eax
jb 0x14003e483
add r8d, 1
add rcx, 0x28
cmp r8d, r10d
jb 0x14003e451
mov rax, r11
mov rbx, qword [rsp]
add rsp, 8
ret
mov eax, edx
mov r11, r9
sub eax, dword [rcx + 0x14]
movsxd rcx, eax
sub r11, rcx
add r11, rbx
mov rax, r11
mov rbx, qword [rsp]
add rsp, 8
ret
Function at 0x140040a50
Capabilities:
Authenticate hmac

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov rdi, rcx
lea rcx, [0x140077448]
mov r12d, r9d
mov r13, r8
mov esi, edx
jmp 0x14052d388
Function at 0x140042300
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x690
mov qword [rsp + 0x1c0], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14008c0c0]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov rbx, r8
mov r14, rdx
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0x1f0], rdx
mov rax, qword [0x140231f80]
add rax, 0xb8
mov qword [rsp + 0x50], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 1
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x58], eax
mov qword [rsp + 0xa0], rbx
xor r12d, r12d
mov qword [rsp + 0x90], r12
mov rdx, qword [0x140231f80]
add rdx, 0x68
mov rdi, qword [rdx + 8]
mov rax, qword [rdi + 8]
mov rcx, rdi
cmp byte [rax + 0x29], r12b
jne 0x1400423be
cmp qword [rax + 0x18], rbx
jae 0x1400423b2
mov rax, qword [rax + 0x10]
jmp 0x1400423b8
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x29], r12b
je 0x1400423a6
mov qword [rsp + 0xe8], rcx
mov qword [rsp + 0xe0], rdx
cmp rcx, rdi
je 0x1400423e3
cmp rbx, qword [rcx + 0x18]
jb 0x1400423e3
lea rcx, [rsp + 0xe0]
jmp 0x1400423fb
mov qword [rsp + 0x108], rdi
mov qword [rsp + 0x100], rdx
lea rcx, [rsp + 0x100]
lea rdi, [rsp + 0x1e0]
mov rax, qword [rcx]
mov qword [rdi], rax
mov rax, qword [rcx + 8]
mov qword [rdi + 8], rax
mov r13, qword [rdx + 8]
mov rdi, qword [rsp + 0x1e0]
test rdi, rdi
je 0x140042427
cmp rdi, rdx
je 0x14004242c
call fcn.140048170
mov rsi, qword [rsp + 0x1e8]
cmp rsi, r13
je 0x14004244f
test rdi, rdi
jne 0x140042443
call fcn.140048170
cmp rsi, qword [rdi + 8]
jne 0x14004244f
call fcn.140048170
nop
lea rcx, [0x140077510]
jmp 0x14052feb7

Function at 0x140045860
Capabilities:
Query or enumerate registry value
Set environment variable
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0xe0
mov rax, qword [0x14008c0c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov ebp, ecx
lea rcx, [0x1400777c0]
mov esi, edx
jmp 0x140531654

Function at 0x1400459d0
Capabilities:
Query or enumerate registry value
Set environment variable
Set registry value

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0xe0
mov rax, qword [0x14008c0c0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov edi, ecx
lea rcx, [0x1400777f0]
mov ebp, edx
jmp 0x14053184c
Function at 0x1400468e8
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x14008c0c0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.14004ba70
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.14004ba70
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x14004697b
cmp dword [rsp + 0x24], 5
jb 0x140046995
jmp 0x140046991
cmp dword [rsp + 0x30], esi
jne 0x140046995
cmp dword [rsp + 0x24], 4
ja 0x140046991
jne 0x140046995
cmp dword [rsp + 0x28], 0
jbe 0x140046995
mov byte [rbx + 0x18], sil
lea rax, [0x140064a68]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.140046728
movzx ecx, byte [0x1402320e4]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x1402320e4], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140047440
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret