joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
cmp eax, 0x61c4a3e2
push rbp
invalid
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x14000a620]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x14000a630]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140006c80
jmp 0x14000123c
mov rax, qword [0x14000a630]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14000a630]
mov dword [rax], 1
mov rax, qword [0x14000a670]
mov rdx, rax
mov rax, qword [0x14000a660]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x14000f024], 1
mov rax, qword [0x14000a630]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14000a650]
mov rdx, rax
mov rax, qword [0x14000a640]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x14000a630]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14000a620]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x14000a570]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14000a570]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140005ef8
mov rax, qword [0x14000a6b0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14000a610]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400056f0
mov eax, dword [0x14000f004]
lea rdx, [0x14000f008]
mov ecx, eax
call fcn.14000147c
call fcn.140005487
mov rax, qword [0x14000a5a0]
mov rax, qword [rax]
mov rdx, qword [0x14000f010]
mov qword [rax], rdx
mov rcx, qword [0x14000f010]
mov rdx, qword [0x14000f008]
mov eax, dword [0x14000f004]
mov r8, rcx
mov ecx, eax
call fcn.140007810
mov dword [0x14000f01c], eax
mov eax, dword [0x14000f020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000f01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x14000f024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14000f01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000a5d0]
mov dword [rax], 1
mov rax, qword [0x14000a5e0]
mov dword [rax], 1
mov rax, qword [0x14000a5f0]
mov dword [rax], 1
mov rax, qword [0x14000a590]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400023ba
Capabilities:
Capture screenshot

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf8
xor r8d, r8d
mov rbx, qword [rcx + 8]
mov rsi, qword [rcx]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x90], r8
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0xa8], rbx
cmp rbx, 7
jbe 0x140002437
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0xa8]
xor r8d, r8d
call fcn.140005270
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x88]
xor eax, eax
cmp rbx, rax
je 0x140002454
movsx cx, byte [rsi + rax]
mov word [rdx + rax*2], cx
inc rax
jmp 0x140002441
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x58]
call fcn.140005278
mov edx, 1
xor ecx, ecx
call qword [sym.imp.USER32.dll_MonitorFromPoint]
mov rcx, rax
test rax, rax
je 0x1400025e4
mov dword [rsp + 0xa8], 0x48
lea rdx, [rsp + 0xa8]
call qword [sym.imp.USER32.dll_GetMonitorInfoA]
test eax, eax
jne 0x1400024ad
mov rcx, qword [0x14000f0c0]
call sub.gdiplus.dll_GdiplusShutdown
jmp 0x1400025e4
mov r12d, dword [rsp + 0xb4]
mov r13d, dword [rsp + 0xb8]
xor ecx, ecx
sub r12d, dword [rsp + 0xac]
sub r13d, dword [rsp + 0xb0]
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rsi, rax
mov r8d, r13d
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r14, qword [sym.imp.GDI32.dll_SelectObject]
mov rdi, rax
mov rdx, rax
mov rcx, rsi
call r14
xor ecx, ecx
mov dword [rsp + 0x40], 0xcc0020
mov rbp, rax
mov r9d, r12d
mov dword [rsp + 0x38], ecx
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], ecx
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r13d
call qword [sym.imp.GDI32.dll_BitBlt]
xor eax, eax
xor edx, edx
lea r12, [rsp + 0x60]
mov rcx, rdi
mov qword [rsp + 0x78], rax
mov r8, r12
lea rax, fcn.140007090
mov qword [rsp + 0x60], rdx
xor edx, edx
mov qword [rsp + 0x70], rax
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov r15, qword [rsp + 0x60]
mov rdx, r12
lea rcx, str.image_jpeg
mov dword [rsp + 0x80], eax
lea r13, [rsp + 0x70]
mov qword [rsp + 0x78], r15
call fcn.140002315
jmp 0x140002595
mov rdx, qword [rsp + 0x88]
xor r9d, r9d
mov r8, r12
mov rcx, r15
call sub.gdiplus.dll_GdipSaveImageToFile
test eax, eax
je 0x1400025b6
mov dword [rsp + 0x80], eax
mov rdx, rbp
mov rcx, rsi
call r14
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, r13
call fcn.140007090
mov rcx, qword [rsp + 0x58]
call fcn.140005280
nop
add rsp, 0xf8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140002626
Capabilities:
Get session user name

Disassembly:
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
lea rsi, [rsp + 0x30]
lea rdx, [rsp + 0x2c]
mov dword [rsp + 0x2c], 0x100
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov rdx, rsi
mov rcx, rbx
call fcn.14000188c
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
ret
Function at 0x1400029b9
Capabilities:
Shutdown system

Disassembly:
push rbx
sub rsp, 0x50
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0x28
mov rcx, rax
lea r8, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1400029df
xor eax, eax
jmp 0x140002a49
xor ecx, ecx
lea r8, [rsp + 0x44]
lea rbx, [rsp + 0x40]
lea rdx, str.SeShutdownPrivilege
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
xor eax, eax
xor r9d, r9d
xor edx, edx
mov rcx, qword [rsp + 0x38]
mov r8, rbx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400029db
mov edx, 0x80020003
mov ecx, 6
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
movzx eax, al
add rsp, 0x50
pop rbx
ret

Function at 0x140002d64
Capabilities:
Create process on windows
Terminate process

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf8
mov rcx, qword [0x14000f0c0]
call sub.gdiplus.dll_GdiplusShutdown
lea rbx, [rsp + 0x88]
xor eax, eax
lea rbp, [rsp + 0x50]
mov ecx, 0x1a
mov rdi, rbx
lea rsi, [rsp + 0x68]
rep stosd dword [rdi], eax
mov ecx, 6
mov rdi, rbp
rep stosd dword [rdi], eax
mov rcx, rsi
call fcn.140002a4f
xor edx, edx
xor eax, eax
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x28], edx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x20], edx
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, rsi
call fcn.1400052f0
mov rcx, qword [rsp + 0x50]
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x58]
call rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140003a71
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push r13
mov eax, 0x13d8
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140006a30
sub rsp, rax
lea rax, [rsp + 0x30]
mov rsi, rcx
mov ebp, edx
mov byte [rsp + 0x30], 0
lea rbx, [rsp + 0xa08]
mov qword [rsp + 0x20], rax
xor eax, eax
lea rdx, str.default
mov rcx, rbx
mov qword [rsp + 0x28], rax
call fcn.14000188c
lea rdi, [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
call fcn.140005340
mov rcx, rbx
call fcn.1400052f0
mov rcx, rdi
call fcn.140005338
mov dword [rsp + 0xa08], eax
mov edx, 1
jmp 0x140003af9
mov eax, dword [rbx + rdx*4 - 4]
mov ecx, eax
shr ecx, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rbx + rdx*4], eax
inc rdx
cmp rdx, 0x270
jne 0x140003af9
mov qword [rsp + 0x13c8], 0x270
xor r12d, r12d
lea r13, [rsp + 0x20]
cmp r12d, ebp
jge 0x140003b74
mov rcx, rbx
call fcn.1400073f0
mov edx, eax
imul rdx, rdx, 0x1a
mov eax, edx
cmp edx, 0x19
ja 0x140003b60
cmp eax, 0x15
ja 0x140003b60
mov rcx, rbx
call fcn.1400073f0
mov edx, eax
imul rdx, rdx, 0x1a
mov eax, edx
jmp 0x140003b49
shr rdx, 0x20
mov rcx, r13
add edx, 0x61
call fcn.140005298
inc r12d
jmp 0x140003b2f
lea rbx, [rsp + 0x20]
lea rdx, str.____
mov rcx, rsi
mov r8, rbx
call fcn.140007790
mov rcx, rdi
call fcn.140005348
mov rcx, rbx
call fcn.1400052f0
mov rax, rsi
add rsp, 0x13d8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140005700
Capabilities:
Write file on windows

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

Function at 0x1400063d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000f1e8]
test eax, eax
je 0x14000646a
lea rax, [0x14000f1c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000f1f0]
mov qword [rbp - 8], rax
jmp 0x14000644e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140006442
cmp qword [rbp - 0x10], 0
je 0x140006442
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140006408
lea rax, [0x14000f1c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000646b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140006570
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140006598
mov eax, 0
jmp 0x1400065e6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400065c1
mov eax, 0
jmp 0x1400065e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400065e1
mov eax, 0
jmp 0x1400065e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400065ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14000666a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140006661
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140006661
mov rax, qword [rbp - 8]
jmp 0x14000667f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140006634
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400073f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x9c0], 0x26f
mov r9, rcx
jbe 0x140007409
call fcn.140007320
mov rax, qword [r9 + 0x9c0]
lea rdx, [rax + 1]
mov eax, dword [r9 + rax*4]
mov qword [r9 + 0x9c0], rdx
mov edx, eax
shr edx, 0xb
xor edx, eax
mov eax, edx
shl eax, 7
and eax, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 0x28
ret
Function at 0x40c090
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.0040c3e0
mov esi, eax
test sil, sil
jne 0x40c252
test ebx, ebx
je 0x40c252
xor rdi, rdi
test r13d, r13d
jle 0x40c177
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40c156
cmp ebx, 0xffffffff
je 0x40c103
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40c103
xor rsi, rsi
jmp 0x40c252
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40c156
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40c144
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40c144
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40c252
lea rcx, [rbp + 0x3c]
call fcn.0040bd60
sub r13d, 1
test r13d, r13d
jg 0x40c0ea
nop
cmp ebx, 0xffffffff
je 0x40c177
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jb 0x40c172
xor rsi, rsi
jmp 0x40c252
sub eax, r14d
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40c0ad
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40c177
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040c300
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x00577998]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40c1e1
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r14d
cmp ecx, ebx
jae 0x40c1de
sub eax, r14d
sub ebx, eax
jmp 0x40c1e1
xor rbx, rbx
test sil, sil
je 0x40c213
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40c210
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 0x40c1e6
mov dil, 1
nop
jmp 0x40c230
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 0x40c213
mov dil, 1
test dil, dil
je 0x40c19a
nop
test sil, sil
je 0x40c252
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 0x40dc10
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x005770a0], 0
je 0x40dcae
cmp word [0x005773b0], 0xd7b2
jne 0x40dc43
cmp dword [0x005773b8], 0
jbe 0x40dc43
lea rcx, [0x005773a8]
call qword [0x005773d0]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00557878]
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, [0x0040dce4]
call fcn.0040f240
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40dcd0
cmp byte [0x00556052], 0
jne 0x40dcd0
xor rcx, rcx
lea rdx, [0x00557878]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x411bc0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x0057be68]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x0057be90], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x0057be60], al
cmp byte [0x0057be60], 0
je 0x411c5f
lea rcx, [0x00411c64]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00411c7e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0057be48], rax
lea rcx, [0x00411c64]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00411c9c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0057be50], rax
lea rcx, [0x00411c64]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x00411cba]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0057be58], rax
add rsp, 0x28
ret
Function at 0x411f40
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.0040e030
movzx rax, word [rbp + 0x4e]
cmp word [0x00557f38], ax
ja 0x412028
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x00558338]
mov word [rbp + 0x4e], ax
ja 0x412028
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x412027
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x00557f38]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x411fe1
mov ecx, eax
sub ecx, 1
jmp 0x412022
lea rdx, [0x00557f38]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x412003
mov r8d, eax
add r8d, 1
jmp 0x412022
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x00557f40]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.00411dd0
jmp 0x412027
cmp ecx, r8d
jae 0x411fb0
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x41210a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x41210a
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.0040fba0
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040fba0
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040fba0
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x00412164]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x00412174]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.00410020
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040e110
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret
Function at 0x412380
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, [0x0057be68]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
cmp word [0x0057be90], ax
jne 0x4123eb
mov rcx, qword [rbp + 0x28]
lea rdx, [0x0057be92]
mov r8d, 0x55
call fcn.0040fba0
lea rcx, [0x0057be68]
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4124f6
lea rcx, [0x0057be68]
call sub.kernel32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 0x28]
call fcn.0040e030
movzx rcx, word [rbp + 0x36]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4124b0
cmp byte [0x0057be60], 0
je 0x412444
mov rcx, rbp
lea rdx, [rbp + 0x48]
movzx r8, word [rbp + 0x36]
call fcn.00412210
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x48]
call fcn.0040e660
jmp 0x4124b0
mov rcx, rbp
lea rdx, [rbp + 0x40]
movzx r8, word [rbp + 0x36]
call fcn.00411f40
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x40]
call fcn.0040e660
call sub.kernel32.dll_GetSystemDefaultUILanguage
movzx rcx, word [rbp + 0x36]
cmp cx, ax
mov word [rbp + 0x36], cx
je 0x4124b0
mov rax, qword [rbp + 0x28]
cmp qword [rax], 0
je 0x41248f
mov rcx, qword [rbp + 0x28]
lea rdx, [0x00412544]
call fcn.0040fe10
call sub.kernel32.dll_GetSystemDefaultUILanguage
mov rcx, rbp
lea rdx, [rbp + 0x38]
mov r8d, eax
call fcn.00411f40
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
call fcn.0040fe10
lea rcx, [0x0057be68]
call sub.kernel32.dll_EnterCriticalSection
movzx rax, word [rbp + 0x36]
mov word [0x0057be90], ax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.0040fad0
lea rcx, [0x0057be92]
mov edx, 0xaa
mov r8, rax
call fcn.00411cf0
lea rcx, [0x0057be68]
call sub.kernel32.dll_LeaveCriticalSection
nop
lea rcx, [rbp + 0x38]
mov edx, 3
call fcn.0040e110
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x50]
pop rbp
ret