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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140274038]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x14023d7d0]
lea r15, [rsp + 0x160]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.1401c6db0
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.14022cc70
test al, al
je 0x1402298f2
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x14022986d
mov rcx, r14
call fcn.1401c6db0
movsxd r14, dword [rsp + 0x19c]
add r14, rax
mov r8d, 0x108
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.14022cc70
test al, al
je 0x1402298b6
cmp dword [rbx], 0x4550
jne 0x140229923
mov sil, 1
test rdi, rdi
je 0x140229902
mov qword [rdi], r14
jmp 0x140229902
mov ecx, 1
call fcn.1401551c0
test al, al
je 0x140229900
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.1400db5c0
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x140229965
mov ecx, 1
call fcn.1401551c0
test al, al
je 0x140229900
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.1400db5c0
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x14022995f
mov ecx, 1
call fcn.1401551c0
test al, al
jne 0x140229933
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14018d030
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.1401551c0
test al, al
je 0x140229900
jmp 0x140229993
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.1400db5c0
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.1401c6fd0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14022997b
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.1401c6fd0
mov rcx, rdi
call fcn.1400dbbb0
jmp 0x140229900
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.1400db5c0
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x140229965
Function at 0x1402299d0
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140274038]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x14023d7d0]
lea r15, [rsp + 0x160]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.1401c6db0
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.14022cc70
test al, al
je 0x140229b22
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x140229a9d
mov rcx, r14
call fcn.1401c6db0
movsxd r14, dword [rsp + 0x19c]
add r14, rax
mov r8d, 0xf8
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.14022cc70
test al, al
je 0x140229ae6
cmp dword [rbx], 0x4550
jne 0x140229b53
mov sil, 1
test rdi, rdi
je 0x140229b32
mov qword [rdi], r14
jmp 0x140229b32
mov ecx, 1
call fcn.1401551c0
test al, al
je 0x140229b30
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.1400db5c0
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x140229b95
mov ecx, 1
call fcn.1401551c0
test al, al
je 0x140229b30
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.1400db5c0
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x140229b8f
mov ecx, 1
call fcn.1401551c0
test al, al
jne 0x140229b63
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.14018d030
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.1401551c0
test al, al
je 0x140229b30
jmp 0x140229bc3
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.1400db5c0
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.1401c6fd0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140229bab
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.1401c6fd0
mov rcx, rdi
call fcn.1400dbbb0
jmp 0x140229b30
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.1400db5c0
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x140229b95
Function at 0x140227ce0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140227ced
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140227cfd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140227ce5
lea eax, [rcx + 1]
jmp 0x140227d0b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140227d1e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140227d04
sub eax, 3
jb 0x140227d3e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140227d8d
sar eax, 1
movsxd rbp, eax
jb 0x140227d74
jmp 0x140227d4c
add ebx, ebx
jne 0x140227d4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140227d74
inc ecx
add ebx, ebx
jne 0x140227d5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140227d74
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140227d6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140227d5c
add ecx, 2
jmp 0x140227d79
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140227ca2
jmp 0x140227ced
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xb2800
mov dl, 0x1a
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140227dd9
cmp rsi, rcx
jae 0x140227de1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140227dc0
cmp al, 0x8f
ja 0x140227dc0
cmp byte [rsi - 2], 0xf
je 0x140227dc6
sub al, 0xe8
cmp al, 1
ja 0x140227daa
cmp rsi, rcx
jae 0x140227de1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140227db0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140227de1
lodsb al, byte [rsi]
jmp 0x140227dc0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x225000]
mov eax, dword [rdi]
or eax, eax
je 0x140227e3e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x250998]
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 0x140227dee
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 0x140227e38
mov qword [rbx], rax
add rbx, 8
jmp 0x140227e0e
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 0x140227e78
cmp al, 0xef
ja 0x140227e6a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140227e4a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140227e59
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 + 0x22f]
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140227ecc
sub rsp, 0xffffffffffffff80
jmp 0x140046194
Function at 0x409ae0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0046d098], 0
je 0x409b7e
cmp word [0x0046d3a8], 0xd7b2
jne 0x409b13
cmp dword [0x0046d3b0], 0
jbe 0x409b13
lea rcx, [0x0046d3a0]
call qword [0x0046d3c8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00460758]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x00409bb4]
call fcn.0040ac80
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x409ba0
cmp byte [0x0045f052], 0
jne 0x409ba0
xor rcx, rcx
lea rdx, [0x00460758]
lea r8, [0x00460668]
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40cb60
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00471c80]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00471ca8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00471c78], al
cmp byte [0x00471c78], 0
je 0x40cbff
lea rcx, [0x0040cc04]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040cc1e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00471c60], rax
lea rcx, [0x0040cc04]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040cc3c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00471c68], rax
lea rcx, [0x0040cc04]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040cc5a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00471c70], rax
add rsp, 0x28
ret
Function at 0x40ced0
Capabilities:
Get geographical location

Disassembly:
push rbp
sub rsp, 0x1d0
mov rbp, rsp
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x40], rdx
mov word [rbp + 0x4e], r8w
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
call fcn.00409f90
movzx rax, word [rbp + 0x4e]
cmp word [0x00460d18], ax
ja 0x40cfb8
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00461118]
mov word [rbp + 0x4e], ax
ja 0x40cfb8
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40cfb7
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00460d18]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40cf71
mov ecx, eax
sub ecx, 1
jmp 0x40cfb2
lea rdx, [0x00460d18]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40cf93
mov r8d, eax
add r8d, 1
jmp 0x40cfb2
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00460d20]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040cd70
jmp 0x40cfb7
cmp ecx, r8d
jae 0x40cf40
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40d09a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d09a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x59
lea r8, [rbp + 0x126]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 0x5a
lea r8, [rbp + 0x7c]
mov r9d, 0x55
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x68]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040b320
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040b320
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040b320
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040d0f4]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040d104]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040b710
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040a070
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40d310
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov word [rbp + 0x36], dx
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
nop
lea rcx, [0x00471c80]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x00471ca8], ax
jne 0x40d37b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00471caa]
mov r8d, 0x55
call fcn.0040b320
lea rcx, [0x00471c80]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40d486
lea rcx, [0x00471c80]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.00409f90
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40d440
cmp byte [0x00471c78], 0
je 0x40d3d4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040d1a0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040a550
jmp 0x40d440
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040ced0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040a550
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40d440
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40d41f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040d4d4]
call fcn.0040b500
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040ced0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040b500
lea rcx, [0x00471c80]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x00471ca8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040b250
lea rcx, [0x00471caa]
mov edx, 0xaa
mov r8, rax
call fcn.0040cc90
lea rcx, [0x00471c80]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040a070
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40dff0
Capabilities:
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov rcx, qword [rbp + 0x88]
call fcn.0040a120
mov rcx, qword [rbp + 0x90]
call fcn.0040a120
nop
mov rcx, qword [rbp + 0x28]
call fcn.00409f90
cmp qword [rbp + 0x90], 0
je 0x40e1b6
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040a5d0
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x40e0a1
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x40e0db
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x40e0d4
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.0040b800
jmp 0x40e0db
sub eax, 1
test eax, eax
jne 0x40e0a6
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.0040dbc0
cmp qword [rbp + 0x68], 0
je 0x40e119
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.0040dd70
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040a550
jmp 0x40e1b5
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.0040d310
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.0040dd70
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040a550
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40e18e
cmp byte [0x00471c78], 0
jne 0x40e18e
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.0040d310
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.0040dd70
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040a550
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40e1b5
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.0040deb0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040a550
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040a070
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040a070
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x40eb50
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x40eb70
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call sub.kernel32.dll_GetVersion
mov ecx, eax
and ecx, 0xff
and eax, 0xff00
shr eax, 8
cmp ecx, 5
jne 0x40eb94
cmp eax, 1
jae 0x40eb99
cmp ecx, 5
jbe 0x40eba5
mov dword [0x0046d9a0], 0x7f
jmp 0x40ebaf
mov dword [0x0046d9a0], 0x409
add rsp, 0x28
ret
Function at 0x40ee50
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040ee40
mov ebx, eax
test ebx, ebx
je 0x40ee9b
cmp dword [0x0046154c], 0xffffffff
jne 0x40ee74
mov ecx, 0xe2
call fcn.00409d80
mov ecx, ebx
call fcn.0040ee20
test rax, rax
jne 0x40ee8d
mov ecx, 0xe2
call fcn.00409d80
jmp 0x40ee9b
mov ecx, dword [0x0046154c]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40eeb0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x00471d54], 0
je 0x40eeeb
mov ecx, dword [0x0046154c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40eeff
call fcn.0040ee50
mov ecx, dword [0x0046154c]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40eeff
mov rax, qword [0x00471d88]
jmp 0x40eeff
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x0046154c]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x41cce0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rsp
mov rbx, rcx
mov esi, edx
xor rdi, rdi
mov rcx, rbx
call fcn.0040b250
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
mov r13d, eax
cmp r13d, 0xffffffff
je 0x41cdf0
mov eax, r13d
test eax, 0x400
jne 0x41cd2e
test r13d, 0x10
setne dil
jmp 0x41ce23
test sil, sil
je 0x41cd8e
mov rcx, rbx
call fcn.0040b250
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW_1
cmp rax, 0xffffffffffffffff
je 0x41ce23
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
test r13d, 0x10
setne dil
jmp 0x41ce23
test r13d, 0x10
je 0x41cd9f
mov dil, 1
jmp 0x41ce23
mov rcx, rbx
call fcn.0040b250
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW_1
cmp rax, 0xffffffffffffffff
je 0x41cdeb
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
xor rdi, rdi
jmp 0x41ce23
mov dil, 1
jmp 0x41ce23
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41ce1b
cmp eax, 3
je 0x41ce1b
cmp eax, 0xa1
je 0x41ce1b
cmp eax, 0x7b
je 0x41ce1b
cmp eax, 0x35
je 0x41ce1b
cmp eax, 0x15
je 0x41ce1b
cmp eax, 0x43
jne 0x41ce20
xor rdi, rdi
jmp 0x41ce23
mov dil, 1
mov eax, edi
lea rsp, [rbp + 0x40]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x41d030
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040b250
mov rcx, rax
call sub.kernel32.dll_DeleteFileW
test eax, eax
setne sil
test sil, sil
jne 0x41d0a6
call sub.kernel32.dll_GetLastError_2
mov edi, eax
mov rcx, rbx
call fcn.0040b250
mov rcx, rax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x41d09f
mov ecx, eax
test ecx, 0x400
je 0x41d09f
test eax, 0x10
je 0x41d09f
mov rcx, rbx
call fcn.0040b250
mov rcx, rax
call sub.kernel32.dll_RemoveDirectoryW
test eax, eax
setne sil
jmp 0x41d0a6
mov ecx, edi
call sub.kernel32.dll_SetLastError
mov eax, esi
lea rsp, [rbp + 0x28]
pop rbx
pop rsi
pop rdi
pop rbp
ret

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

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
mov rbp, rsp
movdqa xmmword [rbp + 0x20], xmm6
mov rbx, rdx
movapd xmm6, xmm2
mov rcx, rbx
mov edx, 0xa
xor r8, r8
call fcn.00406300
movsd xmm0, qword [0x0041fae0]
comisd xmm0, xmm6
jbe 0x41fa59
mov byte [rbx + 9], 0x80
movapd xmm0, xmm6
call fcn.00405ca0
call fcn.00405bb0
mov rcx, rax
xor r8, r8
jmp 0x41fac1
mov r9d, 0x64
mov rax, rcx
cqo
idiv r9
mov r9, rdx
movsxd r10, r8d
mov r11d, 0xa
mov eax, r9d
cdq
idiv r11d
mov r11, rdx
mov esi, 0xa
mov eax, r9d
cdq
idiv esi
shl eax, 4
add r11b, al
mov byte [rbx + r10], r11b
mov r9d, 0x64
mov rax, rcx
cqo
idiv r9
mov rcx, rax
add r8d, 1
test rcx, rcx
jle 0x41facc
cmp r8d, 9
jl 0x41fa6f
mov rax, rbx
movdqa xmm6, xmmword [rbp + 0x20]
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret

Function at 0x4239d0
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4239f7
movzx rax, word [rbp + 0x2c]
jmp 0x4239f9
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x425030
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00424dd0
mov ebx, eax
mov rax, qword [0x0046c810]
cmp byte [rax], 0
je 0x425168
mov rcx, qword [0x0046c5d8]
call fcn.00406250
call fcn.004055a0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00424ff0]
mov r8d, 1
movsxd r9, esi
call fcn.0040c7c0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x00425208]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x4251ae
mov rcx, qword [0x00471d58]
call fcn.0040c930
mov rcx, rax
mov rax, qword [0x0046c580]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00424ff0]
call fcn.0040c800
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x427110
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040a700
mov r13d, eax
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.0040eb30
mov esi, eax
cmp esi, 0x104
jbe 0x42716d
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00405260
mov rdi, rax
jmp 0x427171
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor rdx, rdx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.0040eb30
mov rax, rdi
mov rcx, rax
call sub.user32.dll_CharUpperW
xor rbx, rbx
xor rax, rax
mov ecx, esi
sub ecx, 1
cmp eax, ecx
jg 0x4271c7
add ecx, 1
mov edx, ebx
shl edx, 5
shr ebx, 0x1b
or edx, ebx
mov ebx, edx
movsxd rdx, eax
movzx edx, word [rdi + rdx*2]
xor ebx, edx
add eax, 1
cmp eax, ecx
jne 0x4271ab
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x4271d9
mov rcx, rdi
call fcn.00405290
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret