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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x14001aa88]
test eax, eax
jne 0x14000cf43
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14000cf23
mov dword [0x14001aa88], 1
jmp 0x14000cf5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14000cf3d
mov dword [0x14001aa88], 2
jmp 0x14000d039
mov eax, dword [0x14001aa88]
cmp eax, 1
jne 0x14000d030
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14000d083
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x14000cf85
add rbx, 2
cmp word [rbx], 0
jne 0x14000cf71
add rbx, 2
cmp word [rbx], 0
jne 0x14000cf71
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x14000d023
mov rcx, rbp
call fcn.14000d2f0
test rax, rax
mov rsi, rax
je 0x14000d023
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x14000cffd
mov rcx, rsi
call fcn.140005400
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x14000d009
cmp eax, 2
je 0x14000d039
test eax, eax
jne 0x14000d083
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x14000d083
cmp byte [rax], 0
je 0x14000d062
nop
add rax, 1
cmp byte [rax], 0
jne 0x14000d050
add rax, 1
cmp byte [rax], 0
jne 0x14000d050
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.14000d2f0
test rax, rax
mov rdi, rax
jne 0x14000d095
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400060d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x14000e070
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.14000b5a0
xor ebx, ebx
cmp qword [0x14001ad10], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14000e19c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14000e2af
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000e2af
mov rcx, rax
call fcn.14000b4d0
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14001ad10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14000b4d0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14001ad18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14000b4d0
lea rcx, [rsp + 0x98]
mov qword [0x14001ad20], rax
call fcn.140008510
test eax, eax
je 0x14000e14f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140008000
cmp dword [rsp + 0x98], 2
jne 0x14000e19c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14000b4d0
test rax, rax
mov qword [0x14001ad30], rax
je 0x14000e19c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14000b4d0
mov qword [0x14001ad28], rax
mov rcx, qword [0x14001ad28]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x14000e248
cmp qword [0x14001ad30], rbp
je 0x14000e248
call fcn.14000b690
mov rcx, qword [0x14001ad30]
mov rsi, rax
call fcn.14000b690
test rsi, rsi
mov r12, rax
je 0x14000e248
test rax, rax
je 0x14000e248
call rsi
test rax, rax
je 0x14000e213
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000e213
test byte [rsp + 0x40], 1
jne 0x14000e248
lea rcx, [rsp + 0x30]
call fcn.140008560
test eax, eax
je 0x14000e235
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140008000
cmp dword [rsp + 0x30], 4
jb 0x14000e242
bts edi, 0x15
jmp 0x14000e286
bts edi, 0x12
jmp 0x14000e286
mov rcx, qword [0x14001ad18]
cmp rcx, rbp
je 0x14000e286
call fcn.14000b690
test rax, rax
je 0x14000e286
call rax
test rax, rax
mov rbx, rax
je 0x14000e286
mov rcx, qword [0x14001ad20]
cmp rcx, rbp
je 0x14000e286
call fcn.14000b690
test rax, rax
je 0x14000e286
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14001ad10]
call fcn.14000b690
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14000e2af
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14000e2b1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011090
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140018008]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1400110d7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140005210
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.140012c40
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140005210
add rsp, 0x38
ret

Function at 0x140011e40
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov esi, ecx
call fcn.1400105d0
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x140011fe4
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.1400105d0
cmp rax, 0xffffffffffffffff
je 0x140011fe4
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x140011f63
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x140011ee9
call fcn.140008200
mov dword [rax], 0xc
call fcn.140008200
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x48], r12
call fcn.140012910
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.14000eab0
cmp eax, 0xffffffff
je 0x140011f25
cdqe
sub rbx, rax
test rbx, rbx
jg 0x140011f00
jmp 0x140011f3e
call fcn.140008230
cmp dword [rax], 5
jne 0x140011f3a
call fcn.140008200
mov dword [rax], 0xd
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.140012910
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
jmp 0x140011fbc
test rbx, rbx
jns 0x140011fc6
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.1400105d0
cmp rax, 0xffffffffffffffff
je 0x140011eca
mov ecx, esi
call fcn.14000e6a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x140011fc6
call fcn.140008200
mov dword [rax], 0xd
call fcn.140008230
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x140011eca
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.1400105d0
cmp rax, 0xffffffffffffffff
je 0x140011eca
xor eax, eax
jmp 0x140011ed1
call fcn.140008200
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
Function at 0x405e90
Capabilities:
Accept command line arguments

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x38], 0
nop
xor rax, rax
mov dword [rbp + 0x2c], eax
call sub.kernel32.dll_GetCommandLineW
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.00405da0
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.00405da0
cmp qword [rbp + 0x38], 0
je 0x405ed6
mov ecx, dword [rbp + 0x2c]
add ecx, 1
mov dword [rbp + 0x2c], ecx
jmp 0x405eb8
nop
nop
lea rcx, [rbp + 0x38]
call fcn.0040a820
mov eax, dword [rbp + 0x2c]
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x408820
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.00408b70
mov esi, eax
test sil, sil
jne 0x4089e2
test ebx, ebx
je 0x4089e2
xor rdi, rdi
test r13d, r13d
jle 0x408907
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x4088e6
cmp ebx, 0xffffffff
je 0x408893
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x408893
xor rsi, rsi
jmp 0x4089e2
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x4088e6
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x4088d4
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x4088d4
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x4089e2
lea rcx, [rbp + 0x3c]
call fcn.004084f0
sub r13d, 1
test r13d, r13d
jg 0x40887a
nop
cmp ebx, 0xffffffff
je 0x408907
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x408902
xor rsi, rsi
jmp 0x4089e2
sub eax, r14d
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40883d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x408907
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.00408a90
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x004969a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x408971
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40896e
sub eax, r14d
sub ebx, eax
jmp 0x408971
xor rbx, rbx
test sil, sil
je 0x4089a3
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x4089a0
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 0x408976
mov dil, 1
nop
jmp 0x4089c0
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 0x4089a3
mov dil, 1
test dil, dil
je 0x40892a
nop
test sil, sil
je 0x4089e2
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 0x40a370
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x004960a8], 0
je 0x40a40e
cmp word [0x004963b8], 0xd7b2
jne 0x40a3a3
cmp dword [0x004963c0], 0
jbe 0x40a3a3
lea rcx, [0x004963b0]
call qword [0x004963d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00486754]
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, [0x0040a444]
call fcn.0040b680
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40a430
cmp byte [0x00485052], 0
jne 0x40a430
xor rcx, rcx
lea rdx, [0x00486754]
lea r8, [0x00486664]
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40d870
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x0049ac90]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x0049acb8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x0049ac88], al
cmp byte [0x0049ac88], 0
je 0x40d90f
lea rcx, [0x0040d914]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040d92e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0049ac70], rax
lea rcx, [0x0040d914]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040d94c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0049ac78], rax
lea rcx, [0x0040d914]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040d96a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0049ac80], rax
add rsp, 0x28
ret
Function at 0x40dbe0
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.0040a820
movzx rax, word [rbp + 0x4e]
cmp word [0x00486db8], ax
ja 0x40dcc8
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x004871b8]
mov word [rbp + 0x4e], ax
ja 0x40dcc8
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40dcc7
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00486db8]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40dc81
mov ecx, eax
sub ecx, 1
jmp 0x40dcc2
lea rdx, [0x00486db8]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40dca3
mov r8d, eax
add r8d, 1
jmp 0x40dcc2
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00486dc0]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040da80
jmp 0x40dcc7
cmp ecx, r8d
jae 0x40dc50
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40ddaa
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40ddaa
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.0040bdc0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040bdc0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040bdc0
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040de04]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040de14]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040c240
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040a900
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x40e020
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, [0x0049ac90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x0049acb8], ax
jne 0x40e08b
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0049acba]
mov r8d, 0x55
call fcn.0040bdc0
lea rcx, [0x0049ac90]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e196
lea rcx, [0x0049ac90]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040a820
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e150
cmp byte [0x0049ac88], 0
je 0x40e0e4
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.0040deb0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040ae50
jmp 0x40e150
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.0040dbe0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040ae50
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x40e150
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x40e12f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0040e1e4]
call fcn.0040c030
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.0040dbe0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040c030
lea rcx, [0x0049ac90]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x0049acb8], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040bcf0
lea rcx, [0x0049acba]
mov edx, 0xaa
mov r8, rax
call fcn.0040d9a0
lea rcx, [0x0049ac90]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040a900
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40ebc0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x70], r8
mov rcx, qword [rbp + 0x70]
call fcn.0040a9b0
nop
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx ecx, ax
mov edx, 3
lea r8, [rbp + 0x48]
mov r9d, 4
call sub.kernel32.dll_GetLocaleInfoW
lea rcx, [rbp + 0x38]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040bdc0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x38]
call fcn.0040c120
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040e9e0
test al, al
jne 0x40ec8e
mov word [rbp + 0x4c], 0
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x48]
mov r8d, 4
call fcn.0040bdc0
mov rcx, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x30]
call fcn.0040c120
mov rcx, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax]
call fcn.0040e9e0
test al, al
jne 0x40ec8e
mov rcx, qword [rbp + 0x20]
call fcn.0040a820
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040a900
lea rcx, [rbp + 0x70]
call fcn.0040a820
mov rax, qword [rbp + 0x20]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x40ed00
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.0040a9b0
mov rcx, qword [rbp + 0x90]
call fcn.0040a9b0
nop
mov rcx, qword [rbp + 0x28]
call fcn.0040a820
cmp qword [rbp + 0x90], 0
je 0x40eec6
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
call fcn.0040aed0
xor rax, rax
cmp qword [rbp + 0x90], 0
je 0x40edb1
mov rax, qword [rbp + 0x90]
mov eax, dword [rax - 4]
cmp eax, 1
jl 0x40edeb
mov rcx, qword [rbp + 0x90]
movsxd rdx, eax
cmp word [rcx + rdx*2 - 2], 0x2e
jne 0x40ede4
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
mov r9d, eax
call fcn.0040c330
jmp 0x40edeb
sub eax, 1
test eax, eax
jne 0x40edb6
nop
lea rcx, [rbp + 0x68]
mov rdx, qword [rbp + 0x88]
call fcn.0040e8d0
cmp qword [rbp + 0x68], 0
je 0x40ee29
mov rcx, rbp
lea rdx, [rbp + 0x58]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x68]
call fcn.0040ea80
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x58]
call fcn.0040ae50
jmp 0x40eec5
call sub.kernel32.dll_GetUserDefaultUILanguage
lea rcx, [rbp + 0x48]
mov edx, eax
call fcn.0040e020
mov rcx, rbp
lea rdx, [rbp + 0x50]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x48]
call fcn.0040ea80
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x50]
call fcn.0040ae50
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40ee9e
cmp byte [0x0049ac88], 0
jne 0x40ee9e
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea rcx, [rbp + 0x38]
mov edx, eax
call fcn.0040e020
mov rcx, rbp
lea rdx, [rbp + 0x40]
mov r8, qword [rbp + 0x60]
mov r9, qword [rbp + 0x38]
call fcn.0040ea80
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040ae50
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
jne 0x40eec5
mov rcx, rbp
lea rdx, [rbp + 0x30]
mov r8, qword [rbp + 0x60]
call fcn.0040ebc0
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x30]
call fcn.0040ae50
nop
lea rcx, [rbp + 0x30]
mov edx, 8
call fcn.0040a900
lea rcx, [rbp + 0x88]
mov edx, 2
call fcn.0040a900
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x40fb70
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 0x40fb90
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 0x40fbb4
cmp eax, 1
jae 0x40fbb9
cmp ecx, 5
jbe 0x40fbc5
mov dword [0x004969b0], 0x7f
jmp 0x40fbcf
mov dword [0x004969b0], 0x409
add rsp, 0x28
ret
Function at 0x40fe20
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.0040fe10
mov ebx, eax
test ebx, ebx
je 0x40fe6b
cmp dword [0x00487668], 0xffffffff
jne 0x40fe44
mov ecx, 0xe2
call fcn.0040a610
mov ecx, ebx
call fcn.0040fdf0
test rax, rax
jne 0x40fe5d
mov ecx, 0xe2
call fcn.0040a610
jmp 0x40fe6b
mov ecx, dword [0x00487668]
mov rdx, rax
call sub.kernel32.dll_TlsSetValue
add rsp, 0x20
pop rbx
ret

Function at 0x40fe80
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp byte [0x0049ad64], 0
je 0x40febb
mov ecx, dword [0x00487668]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40fecf
call fcn.0040fe20
mov ecx, dword [0x00487668]
call sub.kernel32.dll_TlsGetValue
test rax, rax
jne 0x40fecf
mov rax, qword [0x0049ad98]
jmp 0x40fecf
mov rax, qword gs:[0x58]
movsxd rcx, dword [0x00487668]
mov rax, qword [rax + rcx*8]
add rsp, 0x28
ret

Function at 0x4219c0
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.00406e10
movsd xmm0, qword [0x00421a80]
comisd xmm0, xmm6
jbe 0x4219f9
mov byte [rbx + 9], 0x80
movapd xmm0, xmm6
call fcn.004067b0
call fcn.004066c0
mov rcx, rax
xor r8, r8
jmp 0x421a61
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 0x421a6c
cmp r8d, 9
jl 0x421a0f
mov rax, rbx
movdqa xmm6, xmmword [rbp + 0x20]
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rbp
ret

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