joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466c39
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x180
mov eax, 0
mov dword [rbp - 0x14], eax
lea rax, [rbp - 0x128]
mov qword [rbp - 0x10], rax
mov eax, 0x105
mov r8, rax
lea rax, [rbp - 0x128]
mov r11, rax
lea rax, str.GC_LOG_FILE
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_GetEnvironmentVariableA
sub eax, 1
cmp eax, 0x104
jae 0x466c8f
mov eax, 1
mov dword [rbp - 0x14], eax
jmp 0x466d37
mov eax, 0x105
mov r8, rax
lea rax, [rbp - 0x128]
mov r11, rax
movabs rax, 0
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_GetModuleFileNameA
mov dword [rbp - 0x12c], eax
mov eax, dword [rbp - 0x12c]
cmp eax, 4
jle 0x466cff
mov eax, dword [rbp - 0x12c]
sub eax, 4
movsxd rax, eax
lea rcx, [rbp - 0x128]
add rcx, rax
movsx eax, byte [rcx]
cmp eax, 0x2e
jne 0x466cff
mov eax, dword [rbp - 0x12c]
sub eax, 4
mov dword [rbp - 0x12c], eax
mov eax, dword [rbp - 0x12c]
movsxd rax, eax
lea rcx, [rbp - 0x128]
add rcx, rax
movabs rax, 8
mov r8, rax
lea rax, str..gc.log
mov r11, rax
mov r10, rcx
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_memcpy
mov eax, dword [rbp - 0x14]
cmp eax, 0
je 0x466d48
jmp 0x466d52
mov eax, 2
jmp 0x466d57
mov eax, 4
mov ecx, dword [0x00471084]
cmp ecx, 2
mov dword [rbp - 0x130], eax
jne 0x466d71
jmp 0x466d7b
mov eax, 0x80000080
jmp 0x466d80
mov eax, pe_nt_image_headers64
movabs rcx, 0
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov eax, dword [rbp - 0x130]
mov qword [rsp + 0x20], rax
movabs rax, 0
mov r9, rax
mov eax, 1
mov r8, rax
mov eax, 0x40000000
mov r11, rax
mov rax, qword [rbp - 0x10]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_CreateFileA
mov qword [rbp - 8], rax
mov eax, dword [rbp - 0x14]
cmp eax, 0
je 0x466e23
mov rax, qword [rbp - 8]
cmp rax, 0xffffffffffffffff
je 0x466e23
mov eax, 0
mov dword [rbp - 0x134], eax
mov eax, 2
mov r9, rax
lea rax, [rbp - 0x134]
mov r8, rax
mov eax, 0
mov r11, rax
mov rax, qword [rbp - 8]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_SetFilePointer
mov rax, qword [rbp - 8]
leave
ret
Function at 0x466e29
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x18]
cmp rax, 0
jne 0x466e54
mov eax, 0
jmp 0x466f48
mov eax, dword [0x00471154]
cmp eax, 0
je 0x466e75
lea rax, [0x00472388]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_EnterCriticalSection
mov rax, qword [0x004710e0]
cmp rax, 0
jne 0x466e92
call fcn.00466c2e
mov qword [0x004710e0], rax
mov rax, qword [0x004710e0]
cmp rax, 0xffffffffffffffff
jne 0x466ece
mov eax, dword [0x00471154]
cmp eax, 0
je 0x466ec4
lea rax, [0x00472388]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, 0xffffffff
jmp 0x466f48
movabs rax, 0
mov qword [rsp + 0x20], rax
lea rax, [rbp - 8]
mov r9, rax
mov eax, dword [rbp + 0x18]
mov r8, rax
mov rax, qword [rbp + 0x10]
mov r11, rax
mov rax, qword [0x004710e0]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_WriteFile
mov dword [rbp - 4], eax
mov eax, dword [0x00471154]
cmp eax, 0
je 0x466f2a
lea rax, [0x00472388]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [rbp - 4]
cmp eax, 0
je 0x466f3b
jmp 0x466f45
mov eax, 0xffffffff
jmp 0x466f48
mov eax, dword [rbp - 8]
leave
ret
Function at 0x46a5f0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x510
mov qword [rbp + 0x10], rcx
mov eax, 0
mov dword [rbp - 8], eax
mov rax, qword [rbp + 0x10]
add rax, 0x10
lea rcx, [rbp - 4]
mov r11, rcx
mov rcx, qword [rax]
mov r10, rcx
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_GetExitCodeThread
cmp eax, 0
je 0x46a648
mov eax, dword [rbp - 4]
cmp eax, 0x103
je 0x46a648
mov rax, qword [rbp + 0x10]
mov r10, rax
mov rcx, r10
call fcn.00469d40
jmp 0x46a7af
mov rax, qword [rbp + 0x10]
add rax, 0x10
mov rcx, qword [rax]
mov r10, rcx
mov rcx, r10
call sub.kernel32.dll_SuspendThread
cmp eax, 0xffffffff
je 0x46a717
mov eax, 0x100003
mov dword [rbp - 0x4b0], eax
mov rax, qword [rbp + 0x10]
add rax, 0x10
lea rcx, [rbp - 0x4e0]
mov r11, rcx
mov rcx, qword [rax]
mov r10, rcx
mov rcx, r10
mov rdx, r11
call sub.kernel32.dll_GetThreadContext
cmp eax, 0
je 0x46a6dc
mov rax, qword [rbp + 0x10]
add rax, 0x40
mov rcx, qword [rbp + 0x10]
add rcx, 0x48
lea rdx, [rbp - 0x4e0]
mov r11, rdx
mov r10, rcx
mov qword [rbp - 0x4e8], rax
mov rcx, r10
mov rdx, r11
call fcn.0046ac20
mov rcx, qword [rbp - 0x4e8]
mov qword [rcx], rax
jmp 0x46a769
mov rax, qword [rbp + 0x10]
add rax, 0x10
mov rcx, qword [rax]
mov r10, rcx
mov rcx, r10
call sub.kernel32.dll_ResumeThread
cmp eax, 0xffffffff
jne 0x46a717
lea rax, str.ResumeThread_failed_in_suspend_loop
mov r10, rax
mov rcx, r10
mov r11, qword [0x004710f0]
call r11
call sub.kernel32.dll_DebugBreak
mov eax, dword [rbp - 8]
cmp eax, 1
jle 0x46a733
mov eax, 0
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_Sleep
mov eax, dword [rbp - 8]
add eax, 1
mov dword [rbp - 8], eax
cmp eax, 0xf4240
jl 0x46a764
lea rax, str.SuspendThread_loop_failed
mov r10, rax
mov rcx, r10
mov r11, qword [0x004710f0]
call r11
call sub.kernel32.dll_DebugBreak
jmp 0x46a5fc
mov rax, qword [rbp + 0x10]
add rax, 0x3b
mov ecx, 1
mov byte [rax], cl
mov rax, qword [0x004710f8]
cmp rax, 0
je 0x46a7af
mov rax, qword [rbp + 0x10]
add rax, 0x10
mov rcx, qword [rax]
mov r11, rcx
mov eax, 0xa
mov r10, rax
mov rcx, r10
mov rdx, r11
mov r11, qword [0x004710f8]
call r11
leave
ret
Function at 0x46a8d9
Capabilities:
Resume thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
jmp 0x46a9bf
mov eax, 0
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
cmp eax, 0x100
jge 0x46aac7
jmp 0x46a9e8
mov eax, dword [rbp - 0x1c]
mov ecx, eax
add eax, 1
mov dword [rbp - 0x1c], eax
jmp 0x46a9c7
mov eax, dword [rbp - 0x1c]
movsxd rax, eax
shl rax, 3
lea rcx, [0x004a0978]
add rcx, rax
mov rax, qword [rcx]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
cmp rax, 0
je 0x46aac2
jmp 0x46aa23
mov rax, qword [rbp - 0x18]
mov rcx, qword [rax]
mov qword [rbp - 0x18], rcx
jmp 0x46aa03
mov rax, qword [rbp - 0x18]
add rax, 0x3b
movzx ecx, byte [rax]
cmp ecx, 0
je 0x46aabd
mov rax, qword [rbp - 0x18]
add rax, 0x10
mov rcx, qword [rax]
mov r10, rcx
mov rcx, r10
call sub.kernel32.dll_ResumeThread
cmp eax, 0xffffffff
jne 0x46aa72
lea rax, str.ResumeThread_failed
mov r10, rax
mov rcx, r10
mov r11, qword [0x004710f0]
call r11
call sub.kernel32.dll_DebugBreak
mov rax, qword [rbp - 0x18]
add rax, 0x3b
mov ecx, 0
mov byte [rax], cl
mov rax, qword [0x004710f8]
cmp rax, 0
je 0x46aab8
mov rax, qword [rbp - 0x18]
add rax, 0x10
mov rcx, qword [rax]
mov r11, rcx
mov eax, 0xb
mov r10, rax
mov rcx, r10
mov rdx, r11
mov r11, qword [0x004710f8]
call r11
jmp 0x46aabd
jmp 0x46aa16
jmp 0x46a9db
leave
ret
Function at 0x1419b70b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1419b7237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1419b70e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1419b70c7
add dl, dl
jne 0x1419b70ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1419b714e
xor eax, eax
add dl, dl
jne 0x1419b70fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1419b7205
add dl, dl
jne 0x1419b710e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419b711b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419b7128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419b7135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1419b7142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1419b70d6
mov eax, 1
add dl, dl
jne 0x1419b715e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419b716b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1419b7153
sub eax, ebx
mov ebx, 1
jne 0x1419b71a4
mov ecx, 1
add dl, dl
jne 0x1419b7186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1419b7193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1419b717b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1419b70d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1419b71c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1419b71cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1419b71b5
cmp eax, 0x7d00
jae 0x1419b71f3
cmp eax, 0x500
jb 0x1419b71ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1419b70d6
cmp eax, 0x7f
ja 0x1419b71f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1419b70d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1419b722a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1419b70d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400438f0
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
cmp byte [0x14015c5ba], cl
movzx edi, dl
movzx ebx, cl
jne 0x14004391f
test cl, cl
je 0x140043a72
cmp byte [0x14015c557], dl
je 0x140043a72
mov r8, qword [0x140153510]
mov rax, qword [str.SoftwareMicrosoftWindowsCurrentVersionRun]
mov word [rsp + 0x40], r8w
mov word [rsp + 0x42], r8w
mov qword [rsp + 0x48], rax
cmp r8, 0xfffe
ja 0x140043a72
xor r8d, r8d
lea rax, [rsp + 0xa8]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
lea rcx, [r8 - 9]
call fcn.1400beed0
test eax, eax
js 0x140043a72
lea r8, [rsp + 0x50]
mov qword [rsp + 0x90], rsi
mov edx, 0x20006
lea rcx, [rsp + 0xa0]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov rcx, qword [rsp + 0xa8]
mov esi, eax
test rcx, rcx
je 0x1400439ab
call qword [sym.imp.ntdll.dll_NtClose]
test esi, esi
mov rsi, qword [rsp + 0x90]
js 0x140043a72
mov dword [rsp + 0x30], 0x220020
lea rax, str.Device_Hackerp_2
mov qword [rsp + 0x38], rax
test bl, bl
je 0x140043a51
mov r8, qword [0x14015f348]
lea r9, [0x14012d794]
lea rdx, [0x14012d794]
mov ecx, 3
mov r8, qword [r8 + 8]
call sym.ProcessHacker.exe_PhConcatStrings
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov rcx, rax
test dil, dil
je 0x140043a21
mov rcx, qword [rax + 8]
lea rdx, str.__hide
call sym.ProcessHacker.exe_PhConcatStrings2
mov rcx, rax
call sym.ProcessHacker.exe_PhAutoDereferenceObject
mov rcx, rax
mov eax, dword [rcx]
lea rdx, [rsp + 0x30]
add eax, 2
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rax, qword [rcx + 8]
mov rcx, qword [rsp + 0xa0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
jmp 0x140043a64
mov rcx, qword [rsp + 0xa0]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ntdll.dll_NtClose]
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
Function at 0x4078e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov ebx, edx
mov rax, qword [rbp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rbp + 0x28]
call fcn.00407c30
mov esi, eax
test sil, sil
jne 0x407aa2
test ebx, ebx
je 0x407aa2
xor rdi, rdi
test r13d, r13d
jle 0x4079c7
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x4079a6
cmp ebx, 0xffffffff
je 0x407953
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x407953
xor rsi, rsi
jmp 0x407aa2
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x4079a6
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x407994
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x407994
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x407aa2
lea rcx, [rbp + 0x3c]
call fcn.004075e0
sub r13d, 1
test r13d, r13d
jg 0x40793a
nop
cmp ebx, 0xffffffff
je 0x4079c7
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x4079c2
xor rsi, rsi
jmp 0x407aa2
sub eax, r14d
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x4078fd
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x4079c7
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.00407b50
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x00449990]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x407a31
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x407a2e
sub eax, r14d
sub ebx, eax
jmp 0x407a31
xor rbx, rbx
test sil, sil
je 0x407a63
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x407a60
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x407a36
mov dil, 1
nop
jmp 0x407a80
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x407a63
mov dil, 1
test dil, dil
je 0x4079ea
nop
test sil, sil
je 0x407aa2
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret
Function at 0x409420
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x00449098], 0
je 0x4094be
cmp word [0x004493a8], 0xd7b2
jne 0x409453
cmp dword [0x004493b0], 0
jbe 0x409453
lea rcx, [0x004493a0]
call qword [0x004493c8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x0044377c]
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, [0x004094f4]
call fcn.0040a400
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x4094e0
cmp byte [0x0044203a], 0
jne 0x4094e0
xor rcx, rcx
lea rdx, [0x0044377c]
lea r8, [0x0044368c]
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40bb30
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x0044dc80]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x0044dca8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x0044dc78], al
cmp byte [0x0044dc78], 0
je 0x40bbcf
lea rcx, [0x0040bbd4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040bbee]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0044dc60], rax
lea rcx, [0x0040bbd4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040bc0c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0044dc68], rax
lea rcx, [0x0040bbd4]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040bc2a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0044dc70], rax
add rsp, 0x28
ret
Function at 0x40bea0
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.004098a0
movzx rax, word [rbp + 0x4e]
cmp word [0x00443c60], ax
ja 0x40bf88
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00444060]
mov word [rbp + 0x4e], ax
ja 0x40bf88
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40bf87
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00443c60]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40bf41
mov ecx, eax
sub ecx, 1
jmp 0x40bf82
lea rdx, [0x00443c60]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40bf63
mov r8d, eax
add r8d, 1
jmp 0x40bf82
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00443c68]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040bd40
jmp 0x40bf87
cmp ecx, r8d
jae 0x40bf10
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40c06a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c06a
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.0040a790
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040a790
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040a790
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040c0c4]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040c0d4]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040ab50
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.00409980
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40c2e0
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, [0x0044dc80]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x0044dca8], ax
jne 0x40c34b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0044dcaa]
mov r8d, 0x55
call fcn.0040a790
lea rcx, [0x0044dc80]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c456
lea rcx, [0x0044dc80]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.004098a0
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c410
cmp byte [0x0044dc78], 0
je 0x40c3a4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040c170
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.00409db0
jmp 0x40c410
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040bea0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00409db0
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40c410
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40c3ef
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040c4a4]
call fcn.0040a940
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040bea0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040a940
lea rcx, [0x0044dc80]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x0044dca8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040a6e0
lea rcx, [0x0044dcaa]
mov edx, 0xaa
mov r8, rax
call fcn.0040bc60
lea rcx, [0x0044dc80]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.00409980
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40cfc0
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.00409a30
mov rcx, qword [rbp + 0x90]
call fcn.00409a30
nop
mov rcx, qword [rbp + 0x28]
call fcn.004098a0
cmp qword [rbp + 0x90], 0
je 0x40d186
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.00409e30
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x40d071
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x40d0ab
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x40d0a4
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.0040ac40
jmp 0x40d0ab
sub eax, 1
test eax, eax
jne 0x40d076
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.0040cb90
cmp qword [rbp + 0x68], 0
je 0x40d0e9
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.0040cd40
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.00409db0
jmp 0x40d185
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.0040c2e0
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.0040cd40
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.00409db0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40d15e
cmp byte [0x0044dc78], 0
jne 0x40d15e
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.0040c2e0
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.0040cd40
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.00409db0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40d185
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.0040ce80
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.00409db0
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.00409980
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.00409980
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x40da50
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 0x40da70
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 0x40da94
cmp eax, 1
jae 0x40da99
cmp ecx, 5
jbe 0x40daa5
mov dword [0x004499a0], 0x7f
jmp 0x40daaf
mov dword [0x004499a0], 0x409
add rsp, 0x28
ret
Function at 0x40dd50
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040dd40
mov ebx, eax
test ebx, ebx
je 0x40dd9b
cmp dword [0x00444458], 0xffffffff
jne 0x40dd74
mov ecx, 0xe2
call fcn.004096c0
mov ecx, ebx
call fcn.0040dd20
test rax, rax
jne 0x40dd8d
mov ecx, 0xe2
call fcn.004096c0
jmp 0x40dd9b
mov ecx, dword [0x00444458]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40ddb0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x0044dd54], 0
je 0x40ddeb
mov ecx, dword [0x00444458]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40ddff
call fcn.0040dd50
mov ecx, dword [0x00444458]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40ddff
mov rax, qword [0x0044dd88]
jmp 0x40ddff
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00444458]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x41d490
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.00405a10
movsd xmm0, qword [0x0041d550]
comisd xmm0, xmm6
jbe 0x41d4c9
mov byte [rbx + 9], 0x80
movapd xmm0, xmm6
call fcn.004053f0
call fcn.004053d0
mov rcx, rax
xor r8, r8
jmp 0x41d531
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 0x41d53c
cmp r8d, 9
jl 0x41d4df
mov rax, rbx
movdqa xmm6, xmmword [rbp + 0x20]
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret

Function at 0x41e2c0
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 0x41e2e7
movzx rax, word [rbp + 0x2c]
jmp 0x41e2e9
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret