joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f760
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
mov eax, dword [0x47c170]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x860], ecx
mov word [ebp - 0x650], 0
push 0x206
push 0
lea eax, [ebp - 0x64e]
push eax
call fcn.00415da0
add esp, 0xc
mov word [ebp - 0x440], 0
push 0x206
push 0
lea ecx, [ebp - 0x43e]
push ecx
call fcn.00415da0
add esp, 0xc
mov dword [ebp - 0x85c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x85c], eax
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x238], 0
push 0x228
push 0
lea edx, [ebp - 0x234]
push edx
call fcn.00415da0
add esp, 0xc
mov word [ebp - 0x858], 0
push 0x206
push 0
lea eax, [ebp - 0x856]
push eax
call fcn.00415da0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0xffffffff
jne 0x45f833
jmp 0x45f8ce
mov dword [ebp - 0x238], 0x22c
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x444]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x45f891
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x85c]
jne 0x45f87a
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x440]
push edx
call fcn.0041620d
add esp, 8
jmp 0x45f891
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x444]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x45f854
cmp dword [ebp - 0x444], 0xffffffff
je 0x45f8a7
mov edx, dword [ebp - 0x444]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x440]
push eax
call fcn.004174d8
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x860]
add ecx, 0x174
call fcn.004011c0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004157fe
mov esp, ebp
pop ebp
ret
Function at 0x460040
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x47c170]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
push str.UseData
mov ecx, dword [ebp - 0x214]
add ecx, 0x40
call fcn.00401200
push eax
push str._s_s_
lea eax, [ebp - 0x210]
push eax
call fcn.00416420
add esp, 0x10
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4600a1
lea edx, [ebp - 0x210]
push edx
call fcn.0045e570
add esp, 4
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x214]
add ecx, 0x158
call fcn.004011c0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004157fe
mov esp, ebp
pop ebp
ret

Function at 0x4601b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x47c170]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
push 0x475704
mov ecx, dword [ebp - 0x214]
add ecx, 0x40
call fcn.00401200
push eax
push 0x475714
lea eax, [ebp - 0x210]
push eax
call fcn.00416420
add esp, 0x10
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x460211
lea edx, [ebp - 0x210]
push edx
call fcn.0045e570
add esp, 4
push str.Related.ini
lea eax, [ebp - 0x210]
push eax
call fcn.004161e3
add esp, 8
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x214]
add ecx, 0xe8
call fcn.004011c0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004157fe
mov esp, ebp
pop ebp
ret

Function at 0x460250
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x47c170]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
push 0x4756d0
mov ecx, dword [ebp - 0x214]
add ecx, 0x40
call fcn.00401200
push eax
push 0x4756e0
lea eax, [ebp - 0x210]
push eax
call fcn.00416420
add esp, 0x10
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4602b1
lea edx, [ebp - 0x210]
push edx
call fcn.0045e570
add esp, 4
push 0x4756ec
lea eax, [ebp - 0x210]
push eax
call fcn.004161e3
add esp, 8
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp - 0x214]
add ecx, 0x5c
call fcn.004011c0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004157fe
mov esp, ebp
pop ebp
ret
Function at 0x461370
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
push 0x475e78
mov eax, dword [ebp + 8]
push eax
call fcn.00415abc
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46143d
push 2
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.00416cbd
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call fcn.0041727f
add esp, 4
mov dword [ebp - 4], eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00416cbd
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x4613d7
xor eax, eax
jmp 0x461440
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
call fcn.004154e8
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00415da0
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
call fcn.00416fde
add esp, 0x10
cmp eax, 1
je 0x46143d
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00415530
add esp, 4
xor eax, eax
jmp 0x461440
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x461450
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
jne 0x461464
jmp 0x461497
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], 0
mov esp, ebp
pop ebp
ret
Function at 0x461790
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468692
mov eax, dword fs:[0]
push eax
sub esp, 0x648
mov eax, dword [0x47c170]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x64c], ecx
mov word [ebp - 0x424], 0
push 0x206
push 0
lea eax, [ebp - 0x422]
push eax
call fcn.00415da0
add esp, 0xc
mov word [ebp - 0x62c], 0
push 0x206
push 0
lea ecx, [ebp - 0x62a]
push ecx
call fcn.00415da0
add esp, 0xc
mov word [ebp - 0x21c], 0
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.00415da0
add esp, 0xc
mov ecx, dword [ebp - 0x64c]
add ecx, 0x280
call fcn.00401200
push eax
push 0x104
lea eax, [ebp - 0x424]
push eax
push 0x475d18
push 0x475d1c
push 0x475d24
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x64c]
add ecx, 0x280
call fcn.00401200
push eax
push 0x104
lea ecx, [ebp - 0x62c]
push ecx
push 0x475d38
push str.MinVer
push 0x475d4c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x64c]
add ecx, 0x280
call fcn.00401200
push eax
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x475d60
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x424]
push eax
mov ecx, dword [ebp - 0x64c]
add ecx, 0x300
call fcn.004011c0
lea ecx, [ebp - 0x62c]
push ecx
mov ecx, dword [ebp - 0x64c]
add ecx, 0x31c
call fcn.004011c0
lea edx, [ebp - 0x21c]
push edx
mov ecx, dword [ebp - 0x64c]
add ecx, 0x338
call fcn.004011c0
mov ecx, dword [ebp - 0x64c]
add ecx, 0x338
call fcn.00401750
cmp eax, 6
jbe 0x461987
mov ecx, dword [ebp - 0x64c]
add ecx, 0x338
call fcn.00401750
sub eax, 6
push eax
push 0
lea eax, [ebp - 0x648]
push eax
mov ecx, dword [ebp - 0x64c]
add ecx, 0x338
call fcn.0040a170
mov dword [ebp - 0x650], eax
mov ecx, dword [ebp - 0x650]
mov dword [ebp - 0x654], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x654]
push edx
mov ecx, dword [ebp - 0x64c]
add ecx, 0x338
call fcn.004011a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x648]
call fcn.00401180
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004157fe
mov esp, ebp
pop ebp
ret
Function at 0x465af0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x47c170]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], ecx
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.00415da0
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 4], 0
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp - 0x214]
add ecx, 0x354
call fcn.004011c0
call fcn.00409b30
mov ecx, eax
call fcn.00467bd0
push eax
mov ecx, dword [ebp - 0x214]
add ecx, 0x280
call fcn.004011c0
mov ecx, dword [ebp - 0x214]
call fcn.00461790
mov ecx, dword [ebp - 0x214]
call fcn.00465a40
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x465bd6
call fcn.00409b30
mov ecx, eax
call fcn.00467bf0
cmp eax, 1
jne 0x465bc6
push 0
push 0
push 0x464
call fcn.00409bc0
mov ecx, eax
call dword [sym.imp.DuiLib32.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x465bd2
call fcn.00409bc0
mov ecx, eax
call fcn.00466670
xor eax, eax
jmp 0x465bf3
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x214]
mov dword [eax + 8], 1
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004157fe
mov esp, ebp
pop ebp
ret

Function at 0x465c50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x465c30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov esp, ebp
pop ebp
ret
Function at 0x466200
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468468
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x47c170]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x124], ecx
lea eax, [ebp - 0x9c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x108]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x108]
mov edx, dword [edx]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0
mov ecx, dword [str.close]
push ecx
lea ecx, [ebp - 0x9c]
call dword [sym.imp.DuiLib32.dll_public:_bool___thiscall_DuiLib::CDuiString::operator_wchar_t_const__const]
movzx edx, al
test edx, edx
jne 0x46628b
mov eax, dword [str.close_ex]
push eax
lea ecx, [ebp - 0x9c]
call dword [sym.imp.DuiLib32.dll_public:_bool___thiscall_DuiLib::CDuiString::operator_wchar_t_const__const]
movzx ecx, al
test ecx, ecx
je 0x4662b0
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
jmp 0x46637a
mov edx, dword [str.minmize]
push edx
lea ecx, [ebp - 0x9c]
call dword [sym.imp.DuiLib32.dll_public:_bool___thiscall_DuiLib::CDuiString::operator_wchar_t_const__const]
movzx eax, al
test eax, eax
je 0x4662e7
push 0
push 0xf020
push 0x112
mov ecx, dword [ebp - 0x124]
call dword [sym.imp.DuiLib32.dll_public:_long_int___thiscall_DuiLib::CWindowWnd::SendMessageW_unsigned_int__unsigned_int__long_int_]
jmp 0x466367
mov ecx, dword [str.website]
push ecx
lea ecx, [ebp - 0x9c]
call dword [sym.imp.DuiLib32.dll_public:_bool___thiscall_DuiLib::CDuiString::operator_wchar_t_const__const]
movzx edx, al
test edx, edx
je 0x466367
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x108]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x108]
mov edx, dword [edx]
mov eax, dword [edx + 0x28]
call eax
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x12c], ecx
mov byte [ebp - 4], 1
push 5
push 0
push 0
mov ecx, dword [ebp - 0x12c]
call dword [sym.imp.DuiLib32.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x120]
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call dword [sym.imp.DuiLib32.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004157fe
mov esp, ebp
pop ebp
ret 4
Function at 0x467630
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x300], 0xffffffff
je 0x467651
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x300], 1
jne 0x467679
push 0
push 0
mov edx, dword [ebp - 8]
push edx
push 0x467340
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x46767c
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x467700
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4684c1
mov eax, dword fs:[0]
push eax
sub esp, 0x474
mov eax, dword [0x47c170]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x480], ecx
cmp dword [ebp + 8], 0
jne 0x46773e
xor eax, eax
jmp 0x4678f8
mov byte [ebp - 0x214], 0
push 0xff
push 0
lea eax, [ebp - 0x213]
push eax
call fcn.00415da0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x214]
push edx
call fcn.00415900
add esp, 8
mov dword [ebp - 0x218], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00415870
add esp, 4
mov dword [ebp - 0x474], eax
lea ecx, [ebp - 0x470]
call fcn.00401d30
mov dword [ebp - 4], 0
mov byte [ebp - 0x114], 0
push 0xff
push 0
lea ecx, [ebp - 0x113]
push ecx
call fcn.00415da0
add esp, 0xc
mov edx, dword [ebp - 0x474]
movsx eax, byte [ebp + edx - 0x215]
cmp eax, 0x5c
je 0x4677da
mov ecx, dword [ebp - 0x474]
mov byte [ebp + ecx - 0x214], 0x5c
mov edx, dword [ebp - 0x218]
movsx eax, byte [ebp + edx - 0x214]
test eax, eax
je 0x4678d6
mov ecx, dword [ebp - 0x218]
movsx edx, byte [ebp + ecx - 0x214]
cmp edx, 0x3a
jne 0x467814
mov eax, dword [ebp - 0x218]
add eax, 2
mov dword [ebp - 0x218], eax
jmp 0x4677da
mov ecx, dword [ebp - 0x218]
movsx edx, byte [ebp + ecx - 0x214]
cmp edx, 0x5c
jne 0x4678c2
mov eax, dword [ebp - 0x218]
push eax
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x114]
push edx
call fcn.00415e20
add esp, 0xc
mov eax, dword [ebp - 0x218]
mov byte [ebp + eax - 0x114], 0
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x470]
call fcn.00401d70
lea edx, [ebp - 0x46c]
push edx
lea ecx, [ebp - 0x470]
call fcn.004061f0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4678c2
push 0
lea ecx, [ebp - 0x470]
call fcn.004061f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4678c2
mov dword [ebp - 0x478], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x470]
call fcn.00401d50
mov eax, dword [ebp - 0x478]
jmp 0x4678f8
mov eax, dword [ebp - 0x218]
add eax, 1
mov dword [ebp - 0x218], eax
jmp 0x4677da
mov dword [ebp - 0x47c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x470]
call fcn.00401d50
mov eax, dword [ebp - 0x47c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004157fe
mov esp, ebp
pop ebp
ret 4
Function at 0x4046d8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406954
test esi, esi
jne 0x40470e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406abc
jmp 0x40472c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040461c
mov edi, eax
test esi, esi
je 0x40472c
cmp dword [ebx], 0
je 0x40472c
dec esi
jmp 0x404715
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405aec
mov byte [esp], al
cmp byte [esp], 0
jne 0x405889
test edi, edi
je 0x405889
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4057c0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x40579b
cmp edi, 0xffffffff
je 0x40575f
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40575f
mov byte [esp], 0
jmp 0x405889
mov ebx, dword [esi]
cmp ebx, 1
jg 0x40579b
test ebx, ebx
jne 0x405794
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402568
test eax, eax
jne 0x405794
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405889
pause
dec ebp
test ebp, ebp
jg 0x405744
cmp edi, 0xffffffff
je 0x4057c0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4057be
mov byte [esp], 0
jmp 0x405889
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40570e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x4057c0
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004058fc
mov edx, eax
mov ebx, dword [0x4d48c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405827
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405825
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405827
xor edi, edi
cmp byte [esp], 0
je 0x405850
mov ebx, dword [esi]
test bl, 1
jne 0x405869
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x40582d
mov byte [esp + 1], 1
jmp 0x405869
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402568
cmp ebx, eax
jne 0x405850
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4057da
cmp byte [esp], 0
je 0x405889
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406604
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d4050], 0
je 0x406665
cmp word [0x4d432c], 0xd7b2
jne 0x40662d
cmp dword [0x4d4334], 0
jbe 0x40662d
mov eax, 0x4d4328
call dword [0x4d4344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406690
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d1028], 0
jne 0x406681
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406810
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4d102c], 0
je 0x40683b
mov edx, edi
mov eax, esi
call dword [0x4d102c]
mov ebx, eax
jmp 0x40684c
mov eax, 8
call fcn.00404350
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4d4051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4067d8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x406881
mov edx, 8
mov eax, ebx
call fcn.0040436c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40899c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408b01
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406954
cmp si, word [0x4d17dc]
jb 0x408a34
cmp si, word [0x4d19dc]
ja 0x408a34
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408a34
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4d17dc]
jae 0x408a0e
mov edi, ebx
dec edi
jmp 0x408a2f
cmp si, word [ebx*8 + 0x4d17dc]
jbe 0x408a1e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408a2f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4d17e0]
call fcn.004088ac
jmp 0x408a34
cmp edi, dword [ebp - 8]
jae 0x4089f8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408ae3
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408ae3
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407324
push dword [ebp - 0x160]
push 0x408b1c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407324
push dword [ebp - 0x164]
push 0x408b2c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407324
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040755c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b08
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004069b4
ret
Function at 0x408cb4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408db7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4d6b51
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4d6b6a]
jne 0x408d00
mov eax, esi
mov edx, 0x4d6b6c
mov ecx, 0x55
call fcn.00407324
push 0x4d6b51
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408da1
push 0x4d6b51
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406954
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408d6f
cmp byte [0x4d6b50], 0
je 0x408d34
mov edx, esi
mov eax, ebx
call fcn.00408b98
jmp 0x408d6f
mov edx, esi
mov eax, ebx
call fcn.0040899c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408d6f
cmp dword [esi], 0
je 0x408d58
mov eax, esi
mov edx, 0x408dd0
call fcn.0040747c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040899c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040747c
push 0x4d6b51
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4d6b6a], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407298
push eax
push 0x4d6b6c
call sub.kernel32.dll_lstrcpynW
push 0x4d6b51
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408dbe
lea eax, [ebp - 4]
call fcn.00406954
ret