joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400038c0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400038e2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000395c
mov rdi, r14
mov rcx, rbx
call fcn.140005160
test rax, rax
jle 0x140003934
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140015390
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000394c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140003954
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400038f6
sub r14, rdi
jmp 0x140003a49
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140003973
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003975
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400039aa
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140015390
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140003a46
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x1400039e5
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140003a21
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14001ec48
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x140003a5f
cmp rbp, rax
ja 0x1400039f1
mov r8, rdi
test rdi, rdi
je 0x140003a46
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14001ec48
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140003a49
Function at 0x140003e60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400500d0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140003e8d
xor eax, eax
jmp 0x140003fd3
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003ec7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003ec7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140003fd3
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003fc6
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003f0a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003f19
movsx ecx, dil
jmp 0x140003f6d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x140003f87
sub eax, 1
je 0x140003f87
cmp eax, 2
jne 0x140003fc6
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.140019754
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003fcb
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003fb4
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.14001e344
cmp rsi, rax
jne 0x140003fc6
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140003fcb
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140013430
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14000e480
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400500d0]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r14d, r14d
mov rbp, r9
mov edi, r8d
mov esi, edx
mov rbx, rcx
cmp qword [rcx + 0x6b0], r14
je 0x14000e4c4
call fcn.14000d450
mov qword [rbx + 0x6b0], r14
mov dword [rbx + 8], esi
mov dword [rbx + 0xc], edi
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
movzx edi, byte [rsp + 0xb0]
test rax, rax
mov qword [0x140051f80], rax
setne al
mov byte [rbx + 0x88], al
test al, al
jne 0x14000e554
test dil, dil
je 0x14000e554
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 1
call fcn.14001d33c
mov r9, rax
lea rcx, [rbx + 0x6a0]
lea r8, [0x14003b0a0]
lea rdx, [0x14003b0a8]
call fcn.14001973c
xor ecx, ecx
call fcn.14001d33c
mov r9, rax
lea rcx, [rbx + 0x6a8]
lea r8, [0x14003b0b0]
lea rdx, [0x14003b0b4]
call fcn.14001973c
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [0x140051f80], rax
jmp 0x14000e55b
mov rax, qword [0x140051f80]
test rax, rax
je 0x14000e574
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov rax, qword [0x140051f80]
cmp byte [rbx + 0x88], r14b
je 0x14000e5ae
test dil, dil
jne 0x14000e5ae
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rsp + 0x50]
test eax, eax
cmovs eax, r14d
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x54]
test eax, eax
cmovs eax, r14d
mov dword [rsp + 0x34], eax
jmp 0x14000e5b7
mov qword [rsp + 0x30], 0xffffffffffffffff
movzx eax, byte [rsp + 0xb8]
lea r9, [rsp + 0x30]
mov byte [rsp + 0x38], al
lea r8, [0x14000e760]
movzx eax, byte [rsp + 0xc0]
xor edx, edx
mov byte [rsp + 0x39], al
xor ecx, ecx
movzx eax, byte [rsp + 0xc8]
mov byte [rsp + 0x3a], al
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x90]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, [0x140051fb0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x6b0]
call qword [sym.imp.USER32.dll_GetDC]
mov r8d, dword [rbx + 0xc]
mov rcx, rbx
mov edx, dword [rbx + 8]
mov qword [rbx + 0x6b8], rax
call fcn.14000dc60
lea rcx, [0x140051fb0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ecx, ecx
call fcn.14000d3c0
mov rax, qword [rbx + 0x6b0]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140013430
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140012470
Capabilities:
Hide graphical window

Disassembly:
mov rcx, qword [0x140051fe8]
jmp fcn.14000e0b0

Function at 0x140013020
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
lea rcx, str.gdiplus.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
mov qword [0x1400521f0], rax
lea rdx, str.GdiplusStartup
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400521f0]
lea rdx, str.GdiplusShutdown
mov qword [0x140052188], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400521f0]
lea rdx, str.GdipLoadImageFromStream
mov qword [0x140052190], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400521f0]
lea rdx, str.GdipGetImageWidth
mov qword [0x140052198], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400521f0]
lea rdx, str.GdipGetImageHeight
mov qword [0x1400521a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400521f0]
lea rdx, str.GdipCreateFromHDC
mov qword [0x1400521a8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400521f0]
lea rdx, str.GdipDrawImageRectI
mov qword [0x1400521b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400521f0]
lea rdx, str.GdipDisposeImage
mov qword [0x1400521b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400521f0]
lea rdx, str.GdipDeleteGraphics
mov qword [0x1400521c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400521f0]
lea rdx, str.GdipGetImageEncodersSize
mov qword [0x1400521c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400521f0]
lea rdx, str.GdipGetImageEncoders
mov qword [0x1400521d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400521f0]
lea rdx, str.GdipCreateBitmapFromGdiDib
mov qword [0x1400521d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400521f0]
lea rdx, str.GdipSaveImageToFile
mov qword [0x1400521e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov qword [0x1400521e8], rax
lea rdx, [rsp + 0x20]
xor eax, eax
lea rcx, [0x1400521f8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
call qword [0x140052188]
add rsp, 0x48
ret
Function at 0x140013310
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140013337
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 8], 0
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rdi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001337b
xor al, al
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
mov ecx, 2
mov dword [rbx + 0x10], edx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x50]
mov rdx, rax
mov qword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x58]
mov al, 1
add rsp, 0x40
pop rdi
ret

Function at 0x140022d1c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140022baf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140022baf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140022baf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140022baf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140022baf
cmp dword [rcx + 0x84], 0xe
jbe 0x140022baf
cmp dword [rcx + 0xf8], 0
je 0x140022baf
mov ecx, ebx
call fcn.140022c50
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140022a40
cmp dword [rbp + 0x20], 0
je 0x140022bfc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140022c04
int3
xor r8d, r8d
xor edx, edx
jmp 0x140022b48
Function at 0x140001b20
Capabilities:
Enumerate threads
Log keystrokes via application hook

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x50
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebx, ecx
mov rdi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
jne 0x140001b77
mov rdx, rdi
lea rcx, str.Error_in_getting_module_handle_for__s_n
call fcn.140001020
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LastError_:_0X_x_n
call fcn.140001020
xor al, al
jmp 0x140001ca7
lea rdx, str.HookProcedure
mov qword [rsp + 0x88], r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
jne 0x140001bc1
mov rdx, rdi
lea rcx, str.Error_in_getting_hook_procedure_address_in__s_n
call fcn.140001020
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LastError_:_0X_x_n
call fcn.140001020
xor al, al
jmp 0x140001c9f
xor edx, edx
mov qword [rsp + 0x80], rsi
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001bfd
lea rcx, str.Could_not_get_snapshot_of_threads_n
call fcn.140001020
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LastError_:_0X_x_n
jmp 0x140001c90
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rsi
xor edi, edi
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
jne 0x140001c36
lea rcx, str.Could_not_get_first_thread_n
call fcn.140001020
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LastError_:_0X_x_n
jmp 0x140001c90
cmp dword [rsp + 0x2c], ebx
jne 0x140001c71
mov edi, dword [rsp + 0x28]
lea rcx, [0x140005854]
mov edx, edi
call fcn.140001020
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x20000
call qword [sym.imp.KERNEL32.dll_OpenThread]
test rax, rax
jne 0x140001cbc
lea rcx, str.Could_not_find_suitable_Thread_n
call fcn.140001020
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140001c36
test edi, edi
jne 0x140001c95
mov edx, ebx
lea rcx, str.No_Thread_for_use_in_process__d_n
call fcn.140001020
xor al, al
mov rsi, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400031b0
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret
mov edx, edi
lea rcx, str.Setting_hook_in_thread_with_ID__d_n
call fcn.140001020
mov r9d, edi
mov r8, rbp
mov rdx, r14
mov ecx, 2
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov rdi, rax
test rax, rax
jne 0x140001d03
lea rcx, str.Error_in_Setting_Hook_in_thread_n
call fcn.140001020
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LastError_:_0X_x_n
jmp 0x140001c90
mov edx, ebx
lea rcx, str.Hook_Installed_successfully_via_SetWindowsHookEx_in_process__d_n
call fcn.140001020
mov rcx, rdi
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov al, 1
jmp 0x140001c97
Function at 0x140003b3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003b86
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003b86
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003b86
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003b86
cmp dword [rcx + 0x84], 0xe
jbe 0x140003b86
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003b88
xor al, al
add rsp, 0x28
ret
Function at 0x405fe0
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.00405ef0
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.00405ef0
cmp qword [rbp + 0x38], 0
je 0x406026
mov ecx, dword [rbp + 0x2c]
add ecx, 1
mov dword [rbp + 0x2c], ecx
jmp 0x406008
nop
nop
lea rcx, [rbp + 0x38]
call fcn.0040a9e0
mov eax, dword [rbp + 0x2c]
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x4084b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x30
mov qword [rsp + 0x28], rcx
mov ebx, edx
mov rax, qword [rsp + 0x28]
mov r14d, dword [rax + 0x18]
mov rcx, qword [rsp + 0x28]
call fcn.00408a90
mov esi, eax
test sil, sil
jne 0x408682
test ebx, ebx
je 0x408682
xor rdi, rdi
test r14d, r14d
jle 0x408591
call sub.kernel32.dll_GetTickCount
mov r13d, eax
test r14d, r14d
jle 0x408570
cmp ebx, 0xffffffff
je 0x40851b
call sub.kernel32.dll_GetTickCount
sub eax, r13d
cmp eax, ebx
jb 0x40851b
xor rsi, rsi
jmp 0x408682
mov rax, qword [rsp + 0x28]
cmp dword [rax], 1
jg 0x408570
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0
jne 0x408562
mov rcx, qword [rsp + 0x28]
mov edx, 1
xor r8, r8
call fcn.004031f0
test eax, eax
jne 0x408562
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x408682
call fcn.00408c30
sub r14d, 1
test r14d, r14d
jg 0x408502
nop
cmp ebx, 0xffffffff
je 0x408591
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r13d
cmp ecx, ebx
jb 0x40858c
xor rsi, rsi
jmp 0x408682
sub eax, r13d
sub ebx, eax
mov rax, qword [rsp + 0x28]
mov r13d, dword [rax]
test r13d, r13d
je 0x4084cb
mov rcx, qword [rsp + 0x28]
mov edx, r13d
add edx, 2
mov r8d, r13d
call fcn.004031f0
cmp eax, r13d
jne 0x408591
nop
call sub.kernel32.dll_GetTickCount
mov r13d, eax
mov rcx, qword [rsp + 0x28]
call fcn.00408740
xor rcx, rcx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x005379a0]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x408603
call sub.kernel32.dll_GetTickCount
mov ecx, eax
sub ecx, r13d
cmp ecx, ebx
jae 0x408600
sub eax, r13d
sub ebx, eax
jmp 0x408603
xor rbx, rbx
test sil, sil
je 0x40863c
mov rax, qword [rsp + 0x28]
mov r13d, dword [rax]
mov eax, r13d
test eax, 1
jne 0x408639
mov rcx, qword [rsp + 0x28]
mov edx, r13d
sub edx, 2
or edx, 1
mov r8d, r13d
call fcn.004031f0
cmp eax, r13d
jne 0x408608
mov dil, 1
nop
jmp 0x40865f
mov rax, qword [rsp + 0x28]
mov r13d, dword [rax]
mov rcx, qword [rsp + 0x28]
mov edx, r13d
sub edx, 2
mov r8d, r13d
call fcn.004031f0
cmp eax, r13d
jne 0x40863c
mov dil, 1
test dil, dil
je 0x4085bb
nop
test sil, sil
je 0x408682
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop r13
pop r14
ret
Function at 0x40a3b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x005370a8], 0
je 0x40a44e
cmp word [0x005373b8], 0xd7b2
jne 0x40a3e3
cmp dword [0x005373c0], 0
jbe 0x40a3e3
lea rcx, [0x005373b0]
call qword [0x005373d8]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x0051b7a0]
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, [0x0040a484]
call fcn.0040b7c0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40a470
cmp byte [0x0051a052], 0
jne 0x40a470
xor rcx, rcx
lea rdx, [0x0051b7a0]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40a7d0
Capabilities:
Create thread

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x38], rcx
mov ebx, edx
mov rsi, r8
mov rdi, r9
cmp qword [0x0051a058], 0
je 0x40a801
mov rcx, rsi
mov rdx, rdi
call qword [0x0051a058]
mov r13, rax
jmp 0x40a817
mov ecx, 0x10
call fcn.00405970
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x005370a9], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040a760]
mov r9, r13
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread
mov ebx, eax
test ebx, ebx
jne 0x40a860
mov rcx, r13
mov edx, 0x10
call fcn.004059a0
mov eax, ebx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x40df60
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x0053bc90]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x0053bcb8], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x0053bc88], al
cmp byte [0x0053bc88], 0
je 0x40dfff
lea rcx, [0x0040e004]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040e01e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0053bc70], rax
lea rcx, [0x0040e004]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040e03c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0053bc78], rax
lea rcx, [0x0040e004]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040e05a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0053bc80], rax
add rsp, 0x28
ret
Function at 0x40e280
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.0040a9e0
movzx rax, word [rbp + 0x4e]
cmp word [0x0051bea8], ax
ja 0x40e368
movzx rax, word [rbp + 0x4e]
cmp ax, word [0x0051c2a8]
mov word [rbp + 0x4e], ax
ja 0x40e368
mov ecx, 0x40
xor r8, r8
cmp ecx, r8d
jb 0x40e367
mov eax, ecx
add eax, r8d
mov r9d, 2
xor edx, edx
div r9d
lea rdx, [0x0051bea8]
mov r9d, eax
add r9, r9
movzx r10, word [rbp + 0x4e]
cmp word [rdx + r9*8], r10w
jbe 0x40e321
mov ecx, eax
sub ecx, 1
jmp 0x40e362
lea rdx, [0x0051bea8]
mov r8d, eax
add r8, r8
movzx r9, word [rbp + 0x4e]
cmp word [rdx + r8*8], r9w
jae 0x40e343
mov r8d, eax
add r8d, 1
jmp 0x40e362
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x40]
lea r8, [0x0051beb0]
mov eax, eax
add rax, rax
mov r8, qword [r8 + rax*8]
call fcn.0040e120
jmp 0x40e367
cmp ecx, r8d
jae 0x40e2f0
nop
mov rax, qword [rbp + 0x40]
cmp qword [rax], 0
jne 0x40e44a
movzx rcx, word [rbp + 0x4e]
movzx ecx, cx
mov edx, 2
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e44a
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.0040c090
lea rcx, [rbp + 0x60]
lea rdx, [rbp + 0x7c]
mov r8d, 0x55
call fcn.0040c090
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x126]
mov r8d, 0x55
call fcn.0040c090
mov rcx, qword [rbp + 0x40]
mov edx, 5
mov r8, qword [rbp + 0x68]
lea r9, [0x0040e4a4]
mov rax, qword [rbp + 0x60]
mov qword [rsp + 0x20], rax
lea rax, [0x0040e4b4]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.0040c500
nop
lea rcx, [rbp + 0x58]
mov edx, 3
call fcn.0040aac0
mov rax, qword [rbp + 0x40]
lea rsp, [rbp + 0x1d0]
pop rbp
ret