joyce8/EMBER2024-capa huggingface dataset:
Function at 0x60145190
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6014be5a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
push 0xa
push 0x40100000
push 0x3e800000
push 0x3f400000
mov esi, ecx
push 0x11
mov dword [esp + 0x1c], esi
call fcn.6012ad00
xor edi, edi
mov dword [esi + 0x30], edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov eax, dword [0x6015b6f8]
mov ecx, 0x6015b6f8
mov byte [esp + 0x14], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
lea ecx, [esi + 0x50]
mov byte [esp + 0x14], 6
call fcn.60137150
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x60146e40
Capabilities:
Create service

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6014c098
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
push 2
push 0
push 0
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x60146eae
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x60146e8f
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
call esi
and eax, 0xffff
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.6011af90
add esp, 0xc
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x30]
mov eax, dword [edi]
push 0
push 0
push 0
push 0
push 0
push ecx
mov ecx, dword [esp + 0x44]
push 0
push ecx
push edx
push 0x10000000
push eax
push eax
push esi
mov dword [esp + 0x58], 0
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x60146f43
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x60146f0c
call esi
mov esi, eax
jmp 0x60146f1c
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x28], 0xffffffff
call dword [esp + 0x10]
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push eax
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.6011af90
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
call dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x28], 0xffffffff
call dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
pop ebx
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x60146f90
Capabilities:
Delete service

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6014c098
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
push 0x10000000
push 0
push 0
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x60146ffd
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x60146fe0
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
call esi
and eax, 0xffff
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.6011af90
add esp, 0xc
mov eax, dword [edi]
push 0x80010000
push eax
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x60147077
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x60147042
call esi
mov esi, eax
jmp 0x60147052
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x28], 0xffffffff
call dword [esp + 0x10]
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x601470c9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x60147094
call esi
mov esi, eax
jmp 0x601470a4
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x28], 0xffffffff
call dword [esp + 0x10]
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push esi
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.6011af90
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x28], 0xffffffff
call dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
pop ebx
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x60147180
Capabilities:
Start service

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6014c0c0
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
push 0x10000000
push 0
push 0
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x601471ed
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x601471d0
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
call esi
and eax, 0xffff
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.6011af90
add esp, 0xc
mov eax, dword [edi]
push 0x10000000
push eax
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x60147267
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x60147232
call esi
mov esi, eax
jmp 0x60147242
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x28], 0xffffffff
call dword [esp + 0x10]
pop ebp
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
push esi
lea edx, [esp + 0x18]
push ebp
push edx
call fcn.6011af90
add esp, 0xc
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x601472c8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x601472a5
call esi
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
mov byte [esp + 0x28], 0
call dword [esp + 0x18]
jmp 0x60147242
call esi
mov esi, eax
mov eax, dword [esp + 0x18]
and esi, 0xffff
push eax
or esi, 0x80070000
mov byte [esp + 0x28], 0
call dword [esp + 0x18]
jmp 0x60147242
mov edx, dword [esp + 0x18]
push edx
mov byte [esp + 0x28], 0
call dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x28], 0xffffffff
call dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
pop ebp
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x60147300
Capabilities:
Query service status

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6014c0e0
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
push SysReAllocStringLen
push 0
push 0
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
jne 0x60147342
pop edi
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.6011af90
add esp, 0xc
mov eax, dword [edi]
push SysReAllocStringLen
push eax
push esi
mov dword [esp + 0x4c], 0
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x6014739a
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x44], 0xffffffff
call dword [esp + 0x10]
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
push esi
lea edx, [esp + 0x18]
push ebp
push edx
call fcn.6011af90
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x40], 0
push ecx
jne 0x601473ec
call dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x44], 0xffffffff
call dword [esp + 0x10]
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
mov esi, dword [esp + 0x24]
xor eax, eax
cmp esi, 4
sete al
mov esi, eax
call dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push edx
mov dword [esp + 0x44], 0xffffffff
call dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
pop ebp
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x6014761d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x6015b2b0]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.6014759f
mov eax, 0x60100000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR71.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x6014767f
cmp dword [ebp - 0x1c], 5
jb 0x60147697
jmp 0x60147693
cmp dword [ebp - 0x10], 1
jne 0x60147697
cmp dword [ebp - 0x1c], 4
ja 0x60147693
jne 0x60147697
cmp dword [ebp - 0x18], 0
jbe 0x60147697
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x601506ec
call fcn.60117ab0
test eax, eax
jge 0x601476b8
mov byte [0x6015b4a4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.60147d53
add ebp, 0x78
leave
ret
Function at 0x40bad0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427b98]
jne 0x40bada
repz ret
jmp fcn.00416620
Function at 0x41cae0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x862920], 0x37
jne 0x41cb30
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push str.Bim_kigasajalumi_tazameyumayi_hukediluz_colasuvege
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [0x85a36c]
add ecx, dword [ebp + 8]
mov edx, dword [0x862924]
add edx, dword [ebp + 8]
mov al, byte [edx + 0x12336]
mov byte [ecx], al
mov esp, ebp
pop ebp
ret 4
Function at 0x41cfc0
Capabilities:
Accept command line arguments
Create pipe
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1ea8
call fcn.0040fc40
mov dword [ebp - 4], 0
jmp 0x41cfdf
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x32d05d76
jge 0x41d097
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x862920], 0x16
jne 0x41d016
push 0
push 0
push str.yukusababodavohojuxogeza
push 0
push str.rifekuvafuxogiyukepufowekoze
push str.koyenajey
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x862920], 0x9e
jne 0x41d087
lea ecx, [ebp - 0x1290]
push ecx
push 0
lea edx, [ebp - 0x128c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push 0
lea eax, [ebp - 0xa78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
push 0
lea ecx, [ebp - 0x1278]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea edx, [ebp - 0x278]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
cmp dword [ebp - 4], 0x9be51dc
jle 0x41d092
jmp 0x41d097
jmp 0x41cfd6
push 0x437540
mov eax, dword [0x862920]
push eax
mov ecx, dword [0x85a36c]
push ecx
call fcn.0041cf30
mov dword [ebp - 0x1294], 0
jmp 0x41d0c9
mov edx, dword [ebp - 0x1294]
add edx, 1
mov dword [ebp - 0x1294], edx
cmp dword [ebp - 0x1294], 0x3e79e
jge 0x41d10a
cmp dword [0x862920], 0x10
jne 0x41d0f7
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.vocikizifonefakifohihezederomaritefibafecoyibiyitosaharuxo
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp dword [ebp - 0x1294], 0x1e673
jne 0x41d108
call fcn.0041cac0
jmp 0x41d0ba
mov dword [ebp - 0x1298], 0
jmp 0x41d125
mov eax, dword [ebp - 0x1298]
add eax, 1
mov dword [ebp - 0x1298], eax
cmp dword [ebp - 0x1298], 0xdd9a7
jge 0x41d14d
cmp dword [0x862920], 0xc01
jne 0x41d14b
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
jmp 0x41d116
jmp dword [0x85a36c]
Function at 0x40172b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40176a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40176a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40176a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40176a
cmp dword [ecx + 0x74], 0xe
jbe 0x40176a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407894
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x415598
push 0x415590
push str.FlsAlloc
push 0x1e
call fcn.00407755
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4078c8
push dword [ebp + 8]
mov ecx, esi
call dword [0x414110]
call esi
jmp 0x4078ce
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x407912
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4155a8
push 0x4155a0
push str.FlsGetValue
push 0x20
call fcn.00407755
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407949
push dword [ebp + 8]
mov ecx, esi
call dword [0x414110]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40af1e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40afbb
push ebx
push esi
call fcn.0040aee7
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040ae30
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40af68
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40afba
push edi
push eax
call fcn.00408047
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40af88
call fcn.004075e8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40afb9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040ae30
add esp, 0x20
test eax, eax
jne 0x40afa7
push edi
call fcn.004075e8
jmp 0x40afaf
push ebx
call fcn.004075e8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x412e60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x412e8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412e8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4060b6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4036f2
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
mov eax, dword [0x471080]
xor eax, esp
mov dword [esp + 0x410], eax
cmp dword [ebp + 0x1c], 0
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], edx
jne 0x40387e
xor edi, edi
inc edi
cmp dword [ebp + 0xc], 0x110
push 2
pop edx
jne 0x403799
push ecx
push ecx
mov dword [esi + 0x98], edi
call fcn.004038e0
mov dword [ebx], eax
cmp dword [esi + 0x98], 0
jne 0x4037be
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402b28
add esp, 0xc
test eax, eax
jne 0x4037be
cmp dword [ebp + 0xc], 0x111
mov eax, dword [esi + 0x50]
mov dword [esp + 0x14], eax
jne 0x403827
cmp di, word [ebp + 0x10]
jne 0x403851
push edi
push dword [esi + 4]
mov dword [esi + 0x50], edi
call dword [sym.imp.USER32.dll_EndDialog]
and dword [ebx], 0
jmp 0x40384b
cmp dword [ebp + 0xc], 0x111
jne 0x40374c
mov eax, dword [ebp + 0x10]
movzx eax, ax
mov ecx, eax
cmp dx, ax
jne 0x4037c5
push edx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
xor edi, edi
inc edi
mov dword [ebx], edi
mov eax, edi
jmp 0x403880
cmp di, cx
jne 0x40380d
push 0x400
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.0041d9c0
add esp, 0xc
lea eax, [esp + 0x18]
push 0x200
push eax
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x80]
call fcn.004022f6
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x4037bc
push 0x4d
pop eax
cmp ax, cx
jne 0x40374c
sub esp, 0x10
mov ecx, esi
call fcn.00403d30
mov dword [ebx], eax
jmp 0x4037be
cmp dword [ebp + 0xc], 0x10
jne 0x403834
push 2
jmp 0x403785
cmp dword [ebp + 0xc], 0x110
jne 0x403851
push ecx
push ecx
mov ecx, esi
mov dword [esi + 0x50], edi
call fcn.00402a1b
mov dword [ebx], eax
cmp dword [esi + 0x50], 0
jne 0x40386b
mov edx, dword [ebp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402b28
add esp, 0xc
test eax, eax
je 0x403877
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], eax
jmp 0x4037be
mov eax, dword [esp + 0x14]
mov dword [esi + 0x50], eax
xor eax, eax
mov ecx, dword [esp + 0x41c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041bb35
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4078e3
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x451520
call fcn.0041c43e
mov esi, ecx
push 4
xor ebx, ebx
call fcn.0041bb74
mov edx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov dword [eax], edx
lea edi, [esi + 4]
mov dword [ebp - 4], ebx
push edi
push ebx
push eax
push 0x407cd9
push ebx
push ebx
call fcn.00427998
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x40792a
mov eax, esi
call fcn.0041c40c
ret 4
push 6
mov dword [edi], ebx
call fcn.0041a970
int3
Function at 0x40858e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
xor ebx, ebx
test ecx, ecx
je 0x4085b1
cmp word [ecx], bx
je 0x4085b1
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4085b1
push 1
test al, 0x10
movzx ebx, bl
pop ecx
cmove ebx, ecx
mov al, bl
pop ebx
ret

Function at 0x40866e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
push 0xa
pop ecx
push dword [ebp + 8]
lea edi, [ebp - 0x2c]
mov esi, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push 0x467800
push eax
call fcn.004068be
add esp, 0xc
lea eax, [ebp - 0x2c]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40871c
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40871c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40871c
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x40871c
lea eax, [esi + 1]
cmp eax, dword [ebx + 0x10]
ja 0x4086fc
mov dword [ebx + 0x10], eax
mov edx, ebx
cmp dword [ebx + 0x14], 0xf
jbe 0x4086f5
mov edx, dword [ebx]
xor ecx, ecx
mov byte [edx + eax], cl
jmp 0x408708
sub eax, dword [ebx + 0x10]
push ecx
push eax
mov ecx, ebx
call fcn.00408e82
push ecx
mov ecx, ebx
call fcn.00406812
push esi
push edi
call fcn.00402218
xor ecx, ecx
inc ecx
jmp 0x40871e
xor ecx, ecx
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bb35
leave
ret

Function at 0x40872f
Capabilities:
Get file version info

Disassembly:
push 0x18
mov eax, 0x451694
call fcn.0041c4a7
mov esi, edx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
push eax
mov dword [ebp - 0x1c], eax
call fcn.0041bdfa
pop ecx
mov edi, eax
xor eax, eax
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push eax
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4087b3
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4676f8
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4087b3
mov ax, word [ecx + 0xa]
mov word [esi], ax
mov ax, word [ecx + 8]
mov word [esi + 2], ax
mov ax, word [ecx + 0xe]
mov word [esi + 4], ax
mov ax, word [ecx + 0xc]
mov word [esi + 6], ax
xor esi, esi
inc esi
test edi, edi
je 0x4087cc
push edi
call fcn.0041bdf5
pop ecx
jmp 0x4087cc
mov eax, esi
call fcn.0041c40c
ret