joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4081b5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x18], edi
je 0x40826f
mov eax, dword [esi + 0x1c]
mov ebx, dword [ebp + 0xc]
lea ecx, [ebx + eax]
mov eax, dword [esi + 0x20]
cmp ecx, eax
jb 0x408255
add eax, eax
mov dword [ebp - 4], eax
cmp eax, ecx
ja 0x4081e5
mov dword [ebp - 4], ecx
push edi
push dword [ebp - 4]
push edi
push 4
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, edi
jne 0x408205
mov eax, 0x300
jmp 0x408298
push dword [ebp - 4]
push edi
push edi
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x408225
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4081fb
push dword [esi + 0x20]
push dword [esi + 0x18]
push edi
call fcn.00512620
add esp, 0xc
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [esi + 4], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], edi
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x18]
push ebx
push dword [ebp + 8]
push eax
call fcn.00512620
add esp, 0xc
add dword [esi + 0x1c], ebx
mov eax, ebx
jmp 0x408298
mov eax, dword [esi]
cmp eax, edi
je 0x40828f
push edi
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
jmp 0x408298
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x409b2c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 8
mov eax, 0x52c64a
call fcn.0051230c
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CDemoTranslucentDlg.1.0
mov dword [esi + 0x94], vtable.CDemoTranslucentDlg.0
mov dword [ebp - 4], 0x11
mov eax, dword [esi + 0xa04]
mov ebx, dword [eax]
cmp ebx, eax
je 0x409b73
push dword [ebx + 8]
call fcn.00413fc0
mov ebx, dword [ebx]
pop ecx
cmp ebx, dword [esi + 0xa04]
jne 0x409b60
push 0x10
pop ebx
mov byte [ebp - 4], bl
lea ecx, [esi + 0xa04]
call fcn.004098b3
mov byte [ebp - 4], 0xf
lea eax, [esi + 0x9fc]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [eax]
sub ecx, ebx
call fcn.004010d2
mov byte [ebp - 4], 0xe
lea eax, [esi + 0x9f8]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [eax]
sub ecx, ebx
call fcn.004010d2
mov byte [ebp - 4], 0xd
lea eax, [esi + 0x9f4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xd
mov ecx, dword [eax]
sub ecx, ebx
call fcn.004010d2
mov byte [ebp - 4], 0xc
lea eax, [esi + 0x9f0]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [eax]
sub ecx, ebx
call fcn.004010d2
mov byte [ebp - 4], 0xb
lea eax, [esi + 0x9ec]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [eax]
sub ecx, ebx
call fcn.004010d2
mov byte [ebp - 4], 0xa
lea eax, [esi + 0x9e8]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
sub ecx, ebx
call fcn.004010d2
mov byte [ebp - 4], 9
lea ecx, [esi + 0x4f4]
call fcn.0040378d
mov byte [ebp - 4], 8
lea ecx, [esi + 0x444]
call fcn.0040378d
mov byte [ebp - 4], 7
lea ecx, [esi + 0x394]
call fcn.0040378d
mov byte [ebp - 4], 6
lea ecx, [esi + 0x2e4]
call fcn.0040378d
mov byte [ebp - 4], 5
lea ecx, [esi + 0x234]
call fcn.0040378d
mov byte [ebp - 4], 4
lea ecx, [esi + 0x184]
call fcn.0040378d
mov byte [ebp - 4], 3
lea eax, [esi + 0x180]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
mov ecx, dword [eax]
sub ecx, ebx
call fcn.004010d2
mov byte [ebp - 4], 2
lea ecx, [esi + 0xc8]
call fcn.00403e08
mov byte [ebp - 4], 1
lea eax, [esi + 0xc4]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
mov ecx, dword [eax]
sub ecx, ebx
call fcn.004010d2
mov byte [ebp - 4], 0
and dword [0x591734], 0
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00411991
call fcn.005123e4
ret
Function at 0x409cd9
Capabilities:
Check if file exists

Disassembly:
push 4
mov eax, 0x52c6d5
call fcn.0051230c
mov esi, dword [ebp + 8]
test esi, esi
jne 0x409cf3
xor eax, eax
jmp 0x409e1d
mov ecx, esi
call fcn.0040e5ef
cmp eax, 4
jne 0x409d76
call fcn.00414e89
push eax
lea ecx, [ebp + 8]
call fcn.0040131c
mov dword [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0040e738
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp + 8]
push str._s_not_find
push eax
call fcn.00401b9f
add esp, 0xc
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010d2
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 4
mov byte [ebp - 4], 1
call fcn.00402f79
pop ecx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010d2
jmp 0x409cec
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.0040e767
mov dword [ebp - 4], 6
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010d2
inc bl
je 0x409e11
call fcn.00414e89
push eax
lea ecx, [ebp + 8]
call fcn.0040131c
mov dword [ebp - 4], 9
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0040e767
mov byte [ebp - 4], 0xa
push dword [eax]
lea eax, [ebp + 8]
push str.CheckLoaderFinished__s_not_find
push eax
call fcn.00401b9f
add esp, 0xc
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010d2
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 9
call fcn.00402f79
pop ecx
jmp 0x409d62
mov ecx, esi
call fcn.0040e5ef
neg eax
sbb eax, eax
inc eax
call fcn.005123e4
ret 4
Function at 0x40b140
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push 0x214
mov eax, 0x52cc4a
call fcn.00512375
mov esi, 0x104
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.00516146
pop ecx
mov ecx, esp
mov dword [ebp - 0x220], esp
push 0x5917b4
call fcn.00401668
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call fcn.004123fd
test eax, eax
pop ecx
lea eax, [ebp - 0x114]
je 0x40b1ff
push 0x53f454
push esi
push eax
call fcn.00515efc
push dword [0x591794]
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.00515efc
add esp, 0x18
push esi
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ecx
lea eax, [ebp - 0x114]
mov ecx, esp
mov dword [ebp - 0x220], esp
push eax
call fcn.00401d42
mov dword [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x21c], esp
push eax
call fcn.00401d42
mov byte [ebp - 4], 2
or dword [ebp - 4], 0xffffffff
call fcn.00412e89
pop ecx
jmp 0x40b257
push dword [0x5917ac]
push esi
push eax
call fcn.00515efc
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40b258
push 0x80
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ecx
lea eax, [ebp - 0x114]
mov ecx, esp
mov dword [ebp - 0x21c], esp
push eax
call fcn.00401d42
mov dword [ebp - 4], 3
or dword [ebp - 4], 0xffffffff
call fcn.00412dc7
pop ecx
call fcn.005123f8
ret
Function at 0x40db53
Capabilities:
Get disk size

Disassembly:
push 0x48
mov eax, 0x52d8d1
call fcn.00512375
push 0
push 0
mov esi, ecx
push 0x147
push dword [esi + 0xbc]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40dcd2
call fcn.00414e89
push eax
lea ecx, [ebp - 0x30]
call fcn.0040131c
mov dword [ebp - 4], 1
lea eax, [ebp - 0x30]
push eax
push edi
lea ecx, [esi + 0x9c]
call fcn.00425280
call fcn.00414e89
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040131c
mov byte [ebp - 4], 3
push dword [ebp - 0x30]
lea eax, [ebp - 0x3c]
push str._s:_
push eax
call fcn.00401b9f
mov edi, dword [ebp - 0x3c]
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
jne 0x40dbec
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.00414e89
push eax
lea ecx, [ebp - 0x38]
call fcn.0040131c
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
shrd eax, ecx, 0x14
shr ecx, 0x14
push ecx
push eax
lea eax, [ebp - 0x38]
push 0x542f08
push eax
call fcn.00401b9f
add esp, 0x10
lea eax, [ebp - 0x38]
lea ecx, [esi + 0x98]
push eax
call fcn.00408848
call fcn.00414e89
push eax
lea ecx, [ebp - 0x34]
call fcn.0040131c
mov byte [ebp - 4], 7
call fcn.00402067
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402307
pop ecx
pop ecx
mov byte [ebp - 4], 8
cmp dword [eax + 0x14], 0x10
jb 0x40dc5c
mov eax, dword [eax]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push 0x542ef8
push eax
call fcn.00401b9f
add esp, 0x10
mov byte [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401536
lea eax, [ebp - 0x34]
lea ecx, [esi + 0x94]
push eax
call fcn.00408848
push 0
mov ecx, esi
call fcn.0041e480
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 1
lea ecx, [edi - 0x10]
call fcn.004010d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.004010d2
call fcn.005123f8
ret
Function at 0x40e063
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x52de12
call fcn.0051230c
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [0x591724], esi
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
call fcn.00412af9
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [0x591808]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
call fcn.00401a1d
mov edi, str.LaunchData.txt
push edi
call fcn.00512590
pop ecx
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.00401a1d
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40e0ec
push 0x53f058
push dword [ebp - 0x10]
call fcn.005131bd
pop ecx
pop ecx
test eax, eax
je 0x40e0ec
push eax
call fcn.00512f87
pop ecx
mov edi, dword [ebp - 0x10]
push edi
call fcn.00512590
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00401c56
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004010d2
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.005123e4
ret

Function at 0x40e11a
Capabilities:
Read .ini file

Disassembly:
push 0x130
mov eax, 0x52de4f
call fcn.00512375
mov eax, dword [ebp + 8]
and dword [ebp - 0x13c], 0
mov esi, 0x103
push esi
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x133]
push 0
push eax
mov ebx, ecx
mov byte [ebp - 0x134], 0
call fcn.00512ea0
push 7
pop ecx
push dword [ebp + 0xc]
xor eax, eax
mov byte [ebp - 0x30], 0
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x30]
push 0x53f05c
push eax
call fcn.0040de71
add esp, 0x18
cmp dword [ebx + 0x14], 0x10
jb 0x40e183
mov ebx, dword [ebx]
push ebx
push esi
lea eax, [ebp - 0x134]
push eax
push 0x53f451
push str.Path
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x134]
push eax
call fcn.00401d8a
and dword [ebp - 4], 0
mov dword [ebp - 0x13c], 1
mov eax, dword [ebp - 0x138]
call fcn.005123f8
ret 8

Function at 0x40e1ce
Capabilities:
Read .ini file

Disassembly:
push 0x130
mov eax, 0x52de4f
call fcn.00512375
mov eax, dword [ebp + 8]
and dword [ebp - 0x13c], 0
mov esi, 0x103
push esi
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x133]
push 0
push eax
mov ebx, ecx
mov byte [ebp - 0x134], 0
call fcn.00512ea0
push 7
pop ecx
push dword [ebp + 0xc]
xor eax, eax
mov byte [ebp - 0x30], 0
lea edi, [ebp - 0x2f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x30]
push 0x53f05c
push eax
call fcn.0040de71
add esp, 0x18
cmp dword [ebx + 0x14], 0x10
jb 0x40e237
mov ebx, dword [ebx]
push ebx
push esi
lea eax, [ebp - 0x134]
push eax
push 0x53f451
push str.LastResUrl
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x134]
push eax
call fcn.00401d8a
and dword [ebp - 4], 0
mov dword [ebp - 0x13c], 1
mov eax, dword [ebp - 0x138]
call fcn.005123f8
ret 8
Function at 0x40e3ea
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [esi + 0x18], 1
mov esi, dword [esi + 0x20]
test esi, esi
je 0x40e40c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [edi]
mov ecx, edi
pop edi
pop esi
jmp dword [eax + 8]

Function at 0x40e799
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push 0x60
mov eax, 0x52e05f
call fcn.00512375
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.004013da
lea ebx, [eax + 0x10]
pop ecx
mov dword [ebp - 0x6c], ebx
mov byte [ebp - 4], 2
push esi
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
call dword [sym.imp.WINMM.dll_timeGetTime]
push eax
lea eax, [ebp - 0x60]
push str.Agent_ld
push eax
call fcn.004010b9
add esp, 0xc
test byte [ebp - 0x68], 4
push esi
push esi
lea eax, [ebp - 0x60]
push esi
jne 0x40e7f4
push 4
jmp 0x40e7f5
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x64], eax
cmp eax, esi
jne 0x40e811
mov byte [ebp - 4], 0
lea ecx, [ebx - 0x10]
call fcn.004010d2
jmp 0x40e871
mov esi, str.Accept:___r_n_r_n
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
movsd dword es:[edi], dword [esi]
push 0x84000100
lea eax, [ebp - 0x20]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x64]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
push dword [ebp - 0x64]
mov edi, eax
test edi, edi
jne 0x40e85a
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebx - 0x10]
call fcn.004010d2
jmp 0x40e871
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov byte [ebp - 4], 0
lea ecx, [ebx - 0x10]
call fcn.004010d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010d2
call fcn.005123f8
ret

Function at 0x40ed14
Capabilities:
Create thread
Resume thread

Disassembly:
push 4
mov eax, 0x52e17c
call fcn.0051230c
mov esi, ecx
mov dword [ebp - 4], 1
lea eax, [ebp + 8]
push eax
call fcn.00408848
lea eax, [ebp + 0xc]
lea ecx, [esi + 4]
push eax
call fcn.00408848
inc dword [esi + 0x24]
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push 0x40e886
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
test eax, eax
je 0x40ed7f
push 0xfffffffffffffff1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004010d2
call fcn.005123e4
ret 8
Function at 0x40f8d1
Capabilities:
Check if file exists

Disassembly:
push 0x118
mov eax, 0x52e533
call fcn.00512375
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x118]
xor ebx, ebx
push eax
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x11c], ebx
call fcn.00412af9
pop ecx
xor esi, esi
inc esi
mov dword [ebp - 4], esi
mov eax, dword [0x591860]
push dword [eax - 0xc]
lea ecx, [ebp - 0x118]
push eax
call fcn.00401a1d
push dword [ebp - 0x118]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40f93c
push 0x53f451
mov ecx, edi
call fcn.00401d42
mov dword [ebp - 0x11c], esi
jmp 0x40f9b9
mov eax, dword [0x59185c]
push dword [eax - 0xc]
lea ecx, [ebp - 0x118]
push eax
call fcn.00401a1d
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.00512ea0
push 0x53f070
push dword [ebp - 0x118]
call fcn.005131bd
add esp, 0x14
mov dword [ebp - 0x120], eax
cmp eax, ebx
je 0x40f9a5
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0051323c
push dword [ebp - 0x120]
call fcn.00512f87
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
mov ecx, edi
call fcn.00401d42
mov dword [ebp - 0x11c], esi
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.004010d2
mov eax, edi
call fcn.005123f8
ret 4
Function at 0x411f25
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x411f9c
cmp dword [ebp + 0xc], edi
je 0x411f9c
push 0x543f40
push dword [ebp + 8]
call fcn.005131bd
mov esi, eax
pop ecx
pop ecx
cmp esi, edi
je 0x411f9c
push 2
push edi
push esi
call fcn.0051511e
push esi
call fcn.0051502f
mov edi, eax
push edi
call fcn.00413fb5
push 0
push 0
push esi
mov ebx, eax
call fcn.0051511e
push esi
push edi
push 1
push ebx
call fcn.005170c6
push esi
call fcn.00512f87
push 0x543f3c
push dword [ebp + 0xc]
call fcn.005131bd
mov esi, eax
add esp, 0x3c
test esi, esi
jne 0x411fa3
push ebx
call fcn.00413fc0
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
push edi
push 1
push ebx
call fcn.005163a7
push esi
call fcn.00512f87
push ebx
call fcn.00413fc0
xor eax, eax
add esp, 0x18
inc eax
jmp 0x411f9e

Function at 0x4120b9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 2
push esi
push edi
jne 0x4120ed
movzx eax, word [ebp + 8]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov esi, eax
push 0
push esi
call fcn.00412083
pop ecx
pop ecx
push esi
mov edi, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x412179
mov esi, dword [ebp + 0x10]
xor edi, edi
cmp esi, edi
jne 0x4120fe
call fcn.0041bd44
mov esi, dword [eax + 0xc]
movzx eax, word [ebp + 8]
push ebx
push dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push esi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [ebp + 0xc]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 0xc]
push ebx
push eax
call fcn.00512620
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push edi
push dword [ebp - 4]
call fcn.00411ff3
pop ecx
pop ecx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4123bc
Capabilities:
Read .ini file

Disassembly:
push 0
mov eax, 0x52ee5b
call fcn.0051230c
and dword [ebp - 4], 0
push dword [ebp + 0x14]
push 0x104
push dword [ebp + 0x10]
push 0x53f451
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.004010d2
call fcn.005123e4
ret
Function at 0x4123fd
Capabilities:
Enumerate processes

Disassembly:
push 0x144
mov eax, 0x52eecd
call fcn.00512375
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push edi
mov dword [ebp - 0x148], 0x128
call sub.KERNEL32.dll_Process32First
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.004013da
lea esi, [eax + 0x10]
pop ecx
mov dword [ebp - 0x150], esi
mov byte [ebp - 4], 2
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.005154b1
pop ecx
pop ecx
test eax, eax
jne 0x412487
lea eax, [ebp - 0x148]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41244c
mov byte [ebp - 4], bl
lea ecx, [esi - 0x10]
call fcn.004010d2
mov dword [ebp - 4], 8
jmp 0x41252e
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edi, edi
inc edi
cmp eax, 0x80000000
jae 0x4124db
lea eax, [ebp - 0x14c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x14c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x140]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
je 0x41251c
mov edi, dword [ebp - 0x140]
mov byte [ebp - 4], bl
lea ecx, [esi - 0x10]
call fcn.004010d2
mov dword [ebp - 4], 4
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010d2
mov eax, edi
call fcn.005123f8
ret
mov byte [ebp - 4], bl
lea ecx, [esi - 0x10]
call fcn.004010d2
mov dword [ebp - 4], 6
xor edi, edi
jmp 0x412505
Function at 0x412532
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x148
mov eax, 0x52ef39
call fcn.00512375
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp - 0x148]
push ecx
push eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], 0x128
call sub.KERNEL32.dll_Process32First
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.004013da
lea esi, [eax + 0x10]
pop ecx
mov dword [ebp - 0x154], esi
mov byte [ebp - 4], 2
lea eax, [ebp - 0x124]
push esi
push eax
call fcn.005154b1
pop ecx
pop ecx
test eax, eax
je 0x412608
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4125ed
lea eax, [ebp - 0x150]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x150]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x140]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
je 0x412644
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0x14c]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x412585
mov byte [ebp - 4], bl
lea ecx, [esi - 0x10]
call fcn.004010d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010d2
xor eax, eax
call fcn.005123f8
ret
mov byte [ebp - 4], bl
lea ecx, [esi - 0x10]
call fcn.004010d2
jmp 0x41262d
Function at 0x412af9
Capabilities:
Get common file path

Disassembly:
push 0x110
mov eax, 0x52f07d
call fcn.00512375
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
push 0x103
lea eax, [ebp - 0x113]
push ebx
mov dword [ebp - 0x118], ebx
push eax
mov dword [ebp - 0x11c], esi
mov byte [ebp - 0x114], bl
call fcn.00512ea0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea eax, [ebp - 0x114]
push eax
mov ecx, esi
call fcn.00401d42
mov dword [ebp - 4], ebx
push 0x53f454
mov ecx, esi
mov dword [ebp - 0x118], 1
call fcn.00401c30
mov eax, esi
call fcn.005123f8
ret