joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4755d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c69c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004b8229
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004bd99c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004bef5d
test eax, eax
je 0x4756ec
mov ecx, dword [esp + 0x3c]
call fcn.004bd9c9
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4756b0
push edi
mov ecx, esi
call fcn.004baf8d
mov ecx, esi
call fcn.00475850
cmp dword [esp + 0x38], 1
jne 0x4756e5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004bb0f7
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x478100
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x478133
push esi
call fcn.0047b200
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47812c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4781b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4781a2
mov eax, dword [esi + 8]
test eax, eax
je 0x478157
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x47819e
cmp eax, 2
je 0x4781a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47814a
cmp eax, 3
je 0x47817d
cmp eax, 1
jne 0x47814a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47814a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47814a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004781e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4781c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004781e0
add esp, 4
pop esi
ret

Function at 0x4855d0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x485673
test eax, eax
jbe 0x485673
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x485673
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x48561e
xor esi, esi
jmp 0x485624
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x48564f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0043e610
add esi, eax
push esi
mov ebx, esi
call fcn.0043e610
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x485630
pop ebp
test edi, edi
pop edi
jne 0x485673
test ebx, ebx
je 0x485673
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004a6d10
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4857b5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4858cd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4858cd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004b867b
mov esi, eax
test esi, esi
je 0x4858cd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4858cd
mov ecx, esi
call fcn.00485720
cmp edi, eax
jge 0x4858cd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x485853
mov dword [esp + 0x34], 1
jmp 0x4858ae
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4858cd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00484d10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x48aa48
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c7354
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004b8229
lea edi, [esi + 0x48]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov dword [edi], fcn.0048b980
call fcn.00489fa0
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 1
call fcn.00489fa0
lea ecx, [edi + 0x64]
mov byte [esp + 0x18], 2
call fcn.00489fa0
lea ecx, [edi + 0x78]
mov byte [esp + 0x18], 3
call fcn.00489fa0
mov dword [edi], 0x53fe68
lea ecx, [esi + 0xd4]
mov byte [esp + 0x18], 4
call fcn.0048b270
mov ecx, dword [esp + 0x10]
mov dword [esi], method.CWnd.virtual_0
mov dword [esi + 0x34c], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x48ab80
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c73c4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CWnd.virtual_0
lea ecx, [esi + 0xd4]
mov dword [esp + 0x18], 1
call fcn.0048b700
lea edi, [esi + 0x48]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x78]
mov byte [esp + 0x18], 4
mov dword [ecx], 0x53fe78
call fcn.0048a1a0
lea ecx, [edi + 0x64]
mov byte [esp + 0x18], 3
mov dword [ecx], 0x53fe78
call fcn.0048a1a0
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 2
mov dword [ecx], 0x53fe78
call fcn.0048a1a0
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x53fe78
call fcn.0048a1a0
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.004b8ce3
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x48ccf0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.00493170
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x48cde9
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, esi
call fcn.0048ce00
test eax, eax
jne 0x48cde9
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, esi
call fcn.0048ce00
test eax, eax
jne 0x48cde9
lea edx, [esp + 0x10]
push 0x55cd28
push edx
call fcn.004a74e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x48cdba
lea eax, [esp + 0x10]
push 0x55cd24
push eax
call fcn.004a74e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x48cdba
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x48cdbd
mov byte [esi], 0
push 0x55c4ec
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x48ce00
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x48ce62
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4930b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4c7b08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x493160
mov eax, dword [0x55d744]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004b6ff8
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004b7047
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004b6fa4
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x493147
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x493147
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004b6bc8
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x496260
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4c7f90
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x496407
mov ecx, dword [0x55d744]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x49635c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.00494f80
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004b6d01
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004b6bc8
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x55c4ec
call fcn.004b6c36
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00495340
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004b6d01
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004b6bc8
lea ecx, [esp + 0xc]
call fcn.004b70dc
mov ecx, dword [esp + 0xc]
push 0x55cf2c
push ecx
call fcn.004a6334
add esp, 8
test eax, eax
je 0x496384
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x4962bd
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004b6bc8
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004b6bc8
jmp 0x49640b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00496000
test eax, eax
push 0
je 0x4963ef
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.004946a0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4963d5
cmp eax, 0x64
jg 0x4963c3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x496360
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x496360
cmp eax, 0x64
jge 0x49635c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x496360
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.004946a0
mov esi, eax
jmp 0x496360
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x496415
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x4b901f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b9057
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b706f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b7047
jmp 0x4b9063
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ba716
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ba758
call fcn.004c05d2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ba758
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ba74f
xor eax, eax
jmp 0x4ba760
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ba766
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c0b02
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c0b30
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c0b4e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c0a68
jmp 0x4c0b4e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c0b4e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c0a68
test edi, edi
mov eax, edi
jne 0x4c0b38
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404720
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.00406968
test esi, esi
jne 0x404756
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.00406ad0
jmp 0x404774
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404664
mov edi, eax
test esi, esi
je 0x404774
cmp dword [ebx], 0
je 0x404774
dec esi
jmp 0x40475d
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4047a8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x53a008], 0x8088405
inc edx
mov dword [ebx + 0x53a008], edx
fld qword [ebx + 0x53a790]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x4056c8
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.00405ab4
mov byte [esp], al
cmp byte [esp], 0
jne 0x405851
test edi, edi
je 0x405851
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405788
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405763
cmp edi, 0xffffffff
je 0x405727
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405727
mov byte [esp], 0
jmp 0x405851
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405763
test ebx, ebx
jne 0x40575c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402594
test eax, eax
jne 0x40575c
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405851
pause
dec ebp
test ebp, ebp
jg 0x40570c
cmp edi, 0xffffffff
je 0x405788
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405786
mov byte [esp], 0
jmp 0x405851
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4056d6
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402594
cmp ebx, eax
jne 0x405788
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004058c4
mov edx, eax
mov ebx, dword [0x5408cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4057ef
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4057ed
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4057ef
xor edi, edi
cmp byte [esp], 0
je 0x405818
mov ebx, dword [esi]
test bl, 1
jne 0x405831
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402594
cmp ebx, eax
jne 0x4057f5
mov byte [esp + 1], 1
jmp 0x405831
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402594
cmp ebx, eax
jne 0x405818
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4057a2
cmp byte [esp], 0
je 0x405851
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 0x4065cc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x540054], 0
je 0x40662d
cmp word [0x540330], 0xd7b2
jne 0x4065f5
cmp dword [0x540338], 0
jbe 0x4065f5
mov eax, 0x54032c
call dword [0x540348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push 0x53a79e
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 0x406658
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x53a028], 0
jne 0x406649
push 0
push 0x53a798
push 0x53a79e
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406824
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 [0x53a02c], 0
je 0x40684f
mov edx, edi
mov eax, esi
call dword [0x53a02c]
mov ebx, eax
jmp 0x406860
mov eax, 8
call fcn.00404398
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x540055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4067ec
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 0x406895
mov edx, 8
mov eax, ebx
call fcn.004043b4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408b4c
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 0x408cb1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406968
cmp si, word [0x53a7e8]
jb 0x408be4
cmp si, word [0x53a9e8]
ja 0x408be4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408be4
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x53a7e8]
jae 0x408bbe
mov edi, ebx
dec edi
jmp 0x408bdf
cmp si, word [ebx*8 + 0x53a7e8]
jbe 0x408bce
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408bdf
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x53a7ec]
call fcn.00408a5c
jmp 0x408be4
cmp edi, dword [ebp - 8]
jae 0x408ba8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408c93
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408c93
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.00407390
push dword [ebp - 0x160]
push 0x408ccc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407390
push dword [ebp - 0x164]
push 0x408cdc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407390
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004075c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408cb8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.004069c8
ret
Function at 0x408e64
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 0x408f67
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x542b55
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x542b6e]
jne 0x408eb0
mov eax, esi
mov edx, 0x542b70
mov ecx, 0x55
call fcn.00407390
push 0x542b55
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408f51
push 0x542b55
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406968
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408f1f
cmp byte [0x542b54], 0
je 0x408ee4
mov edx, esi
mov eax, ebx
call fcn.00408d48
jmp 0x408f1f
mov edx, esi
mov eax, ebx
call fcn.00408b4c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408f1f
cmp dword [esi], 0
je 0x408f08
mov eax, esi
mov edx, 0x408f80
call fcn.004074e8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408b4c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004074e8
push 0x542b55
call sub.kernel32.dll_EnterCriticalSection
mov word [0x542b6e], bx
push 0xaa
mov eax, dword [esi]
call fcn.004072f4
push eax
push 0x542b70
call sub.kernel32.dll_lstrcpynW
push 0x542b55
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f6e
lea eax, [ebp - 4]
call fcn.00406968
ret