joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e0d
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x42e496
call fcn.0041812a
xor esi, esi
cmp dword [0x43f3b8], esi
je 0x403e2d
call fcn.00403b46
jmp 0x403f0d
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x14], esi
call fcn.00403232
push 0x44
lea eax, [ebp - 0x68]
push esi
push eax
mov dword [ebp - 4], esi
call fcn.00418290
push 0x10
lea eax, [ebp - 0x24]
push esi
push eax
mov dword [ebp - 0x68], 0x44
call fcn.00418290
mov eax, dword [ebp - 0x10]
add esp, 0x18
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00401307
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403eb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
push str.InstallProduct:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x43f39c
call fcn.0040143e
add esp, 0x10
mov ecx, 0x43f2f8
call fcn.004052cc
mov eax, dword [ebp - 0x14]
mov dword [0x43f3fc], eax
jmp 0x403f02
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x14]
cmp eax, 0xbc2
jne 0x403eed
cmp dword [0x43f3ac], esi
jne 0x403eed
mov dword [0x43f3ac], 1
push dword [ebp - 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x43f3fc], eax
call esi
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401038
call fcn.00418202
ret
Function at 0x404117
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
mov edi, ecx
call fcn.00418290
push 0x10
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 0x58], 0x44
call fcn.00418290
add edi, 8
mov eax, dword [edi]
add esp, 0x18
push dword [eax - 0xc]
mov ecx, edi
call fcn.00401307
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x58]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40419f
cmp dword [0x43f3a8], esi
je 0x404191
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi]
push str.InstallUpdate:_CreateProcess_failed__Cmdline_s_Error_d_._n
push 0x43f39c
call fcn.0040143e
add esp, 0x10
mov ecx, 0x43f2f8
call fcn.004052cc
xor eax, eax
jmp 0x404219
xor edi, edi
cmp dword [0x43f3b0], esi
jne 0x4041b9
push esi
push esi
push esi
push esi
push 0x430b10
call fcn.0040e95a
mov edi, eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp edi, esi
je 0x4041e4
mov eax, dword [edi + 0x20]
cmp eax, esi
jne 0x4041d3
xor eax, eax
jmp 0x4041d6
mov eax, dword [eax + 0x20]
push esi
push esi
push 0x405
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
xor edi, edi
inc edi
test eax, eax
je 0x404207
cmp dword [ebp - 4], 0xbc2
jne 0x404207
mov dword [0x43f3ac], edi
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4042e4
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x42e6e4
call fcn.0041812a
mov esi, ecx
push 0
lea ebx, [esi + 8]
push str.http:__
mov ecx, ebx
call fcn.004024df
test eax, eax
je 0x404319
push 0
push str.ftp:__
mov ecx, ebx
call fcn.004024df
test eax, eax
jne 0x404398
push 0x2f
mov ecx, ebx
call fcn.00402403
mov ecx, dword [ebx]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ecx - 0xc]
jne 0x404336
mov ecx, ebx
call fcn.0040120f
jmp 0x404398
lea ecx, [esi + 0x10]
push ebx
mov dword [esi + 0xc], 1
call fcn.004013f1
lea edi, [esi + 0x14]
mov esi, 0x104
push esi
mov ecx, edi
call fcn.00401307
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004011b6
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0040421d
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00402d33
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401038
push edi
mov ecx, ebx
call fcn.004013f1
call fcn.00418202
ret
Function at 0x4048a2
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x42dfa5
call fcn.0041812a
and dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.004012f3
and dword [ebp - 4], 0
push 0x7d
mov dword [ebp - 0x10], 1
pop esi
mov eax, dword [ebp + 0x14]
mov edi, dword [eax]
add esi, esi
push esi
mov ecx, ebx
call fcn.00401307
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
push edi
push esi
push eax
push 0x4307c8
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
mov ecx, ebx
mov edi, eax
call fcn.004011b6
inc edi
cmp esi, edi
jbe 0x4048ca
mov eax, ebx
call fcn.00418202
ret 0x10
Function at 0x4050a1
Capabilities:
Reference sql statements

Disassembly:
push ebp
lea ebp, [esp - 0x102c]
mov eax, 0x102c
call fcn.004184b0
push 0xffffffffffffffff
push 0x42e6b4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x43df70]
xor eax, ebp
mov dword [ebp + 0x1028], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x103c]
mov esi, dword [ebp + 0x1034]
mov dword [ebp - 0x24], ecx
call fcn.0040120f
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, dword [esi]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.004023ed
push eax
push ebx
push esi
call sub.msi.dll_MsiOpenProductW
test eax, eax
jne 0x40520e
push str.SELECT__Message__FROM__Error__WHERE_Error.Error
lea ecx, [ebp - 0x1c]
call fcn.00401a49
push 9
xor eax, eax
pop ecx
mov word [ebp + 0x1000], ax
lea edi, [ebp + 0x1002]
rep stosd dword es:[edi], eax
push 0xa
stosw word es:[edi], ax
push 0x14
lea eax, [ebp + 0x1000]
push eax
push dword [ebp + 0x1038]
mov byte [ebp - 4], 1
call fcn.004187cd
add esp, 0x10
lea eax, [ebp + 0x1000]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402c93
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004023ed
push eax
push esi
push edi
call sub.msi.dll_MsiEnumClientsA
test eax, eax
jne 0x4051e9
push ebx
push dword [ebp - 0x14]
call sub.msi.dll_MsiViewModify
test eax, eax
jne 0x4051e9
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.004023ed
push eax
push esi
call sub.msi.dll_MsiDatabaseIsTablePersistentA
test eax, eax
jne 0x4051e9
push 0xffe
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.00418290
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp]
push eax
push 1
push dword [ebp - 0x18]
mov dword [ebp - 0x20], 0x800
call sub.msi.dll_MsiRecordSetStreamA
test eax, eax
jne 0x4051e9
mov ecx, dword [ebp - 0x24]
lea eax, [ebp]
push eax
call fcn.004019ae
cmp dword [ebp - 0x18], ebx
je 0x4051f6
push dword [ebp - 0x18]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp dword [ebp - 0x14], ebx
je 0x405203
push dword [ebp - 0x14]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401038
cmp dword [ebp - 0x10], ebx
je 0x40521b
push dword [ebp - 0x10]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1028]
xor ecx, ebp
call fcn.0041811b
add ebp, 0x102c
leave
ret
Function at 0x4052cc
Capabilities:
Get common file path

Disassembly:
push 0x18
mov eax, 0x42e70f
call fcn.0041812a
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xb0], ebx
je 0x4053c9
mov eax, dword [esi + 0xd8]
cmp eax, dword [0x434598]
jne 0x4053a0
call fcn.004070de
push eax
lea ecx, [ebp - 0x10]
call fcn.004011e0
mov edi, 0x104
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00401307
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x405335
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401038
jmp 0x4053c9
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004011b6
push str.BootStrap.log
lea ecx, [ebp - 0x10]
call fcn.00402c93
push ebx
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x24]
call fcn.00405057
mov edi, dword [ebp - 0x10]
lea edx, [ebp - 0x24]
push edx
lea ecx, [esi + 0xd4]
mov eax, dword [ecx]
push 0x1021
push edi
mov byte [ebp - 4], 1
call dword [eax + 0x20]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov dword [ebp - 0x24], vtable.CFileException.0
test eax, eax
jne 0x40538f
call fcn.00401038
lea ecx, [edi - 0x10]
jmp 0x40532b
call fcn.00401038
or dword [ebp - 4], 0xffffffff
lea ecx, [edi - 0x10]
call fcn.00401038
lea edi, [esi + 0xa4]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x4053c9
add esi, 0xd4
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x54]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
mov ecx, edi
call fcn.0040120f
call fcn.00418202
ret

Function at 0x4054f0
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x42e13f
call fcn.0041812a
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
xor ebx, ebx
xor esi, esi
call fcn.00401a49
mov eax, dword [ebp - 0x14]
mov edi, dword [eax - 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40556e
mov eax, dword [ebp + 0x18]
cmp eax, 1
je 0x405545
cmp eax, 2
je 0x405545
push edi
jmp 0x405549
lea ecx, [edi + edi]
push ecx
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x405593
mov edi, 0x43f39c
push str.Failed_to_register_value:
mov ecx, edi
call fcn.004019ae
push dword [ebp + 0x14]
mov ecx, edi
call fcn.00402c93
mov ecx, 0x43f2f8
call fcn.004052cc
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401038
mov eax, esi
call fcn.00418202
ret
Function at 0x4055a6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405608
push edi
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call esi
cmp edi, ebx
pop edi
jne 0x405608
inc ebx
jmp 0x40562d
mov esi, 0x43f39c
push str.Failed_to_register_DWORD_value:
mov ecx, esi
call fcn.004019ae
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00402c93
mov ecx, 0x43f2f8
call fcn.004052cc
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x405725
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push edi
push 4
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
jne 0x40575f
push str.OpenSCManager_failed
mov ecx, 0x43f39c
call fcn.004019ae
mov ecx, 0x43f2f8
call fcn.004052cc
xor eax, eax
jmp 0x4057e1
push esi
push 4
push str.MSIServer
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
jne 0x405798
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.OpenService_failed
mov ecx, 0x43f39c
call fcn.004019ae
mov ecx, 0x43f2f8
call fcn.004052cc
xor eax, eax
jmp 0x4057e0
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x4057c9
push str.QueryServiceStatusEx_failed
mov ecx, 0x43f39c
call fcn.004019ae
mov ecx, 0x43f2f8
call fcn.004052cc
jmp 0x4057d2
cmp dword [ebp - 0x20], 4
jne 0x4057d2
xor ebx, ebx
inc ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x405be5
Capabilities:
Delete file
Shutdown system

Disassembly:
push 0x20
mov eax, 0x42e7c2
call fcn.0041812a
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [esi + 0xc0], ebx
jne 0x405cf8
cmp dword [esi + 0x100], ebx
jne 0x405c47
cmp dword [esi + 0xfc], ebx
je 0x405c42
push 0x90
lea eax, [ebp - 0x1c]
push eax
call fcn.0040588d
mov eax, dword [eax]
push ebx
push 0x10024
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
call fcn.0040523e
add esp, 0xc
cmp eax, 6
jne 0x405c47
mov byte [ebp - 0xd], bl
jmp 0x405c4b
mov byte [ebp - 0xd], 1
test byte [ebp - 0x14], 1
je 0x405c5c
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401038
cmp byte [ebp - 0xd], bl
jne 0x405cf8
lea edi, [esi + 0xd0]
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x405c80
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.0040120f
lea eax, [ebp - 0x18]
push eax
mov dword [esi + 0xb4], ebx
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x405cd8
lea eax, [ebp - 0x28]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 2
cmp esi, ebx
je 0x405cd8
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x18]
call edi
mov esi, eax
push 1
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
cmp esi, ebx
je 0x405cf8
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
call edi
call fcn.00418202
ret

Function at 0x408140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x408164
cmp dword [edi + 0x54], 0
jne 0x408164
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00412e3a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00408101
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x40d737
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40d77e
call fcn.00412e3a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40d77e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40d79a
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040d2af
mov esi, eax
test edi, edi
je 0x40d798
test ebx, ebx
je 0x40d798
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41811b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43df70]
jne 0x418125
repz ret
jmp fcn.00421cec

Function at 0x427b75
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.0041d843
and dword [ebp - 4], 0
cmp dword [0x441e28], 0
mov ebx, eax
jne 0x427c26
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x427cd7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x427cd7
push eax
call fcn.0041d7d1
mov dword [esp], 0x4359f8
push edi
mov dword [0x441e28], eax
call esi
push eax
call fcn.0041d7d1
mov dword [esp], 0x4359e4
push edi
mov dword [0x441e2c], eax
call esi
push eax
call fcn.0041d7d1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x441e30], eax
call esi
push eax
call fcn.0041d7d1
pop ecx
mov dword [0x441e38], eax
test eax, eax
je 0x427c26
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041d7d1
pop ecx
mov dword [0x441e34], eax
mov eax, dword [0x441e34]
cmp eax, ebx
je 0x427c7e
cmp dword [0x441e38], ebx
je 0x427c7e
push eax
call fcn.0041d84c
push dword [0x441e38]
mov esi, eax
call fcn.0041d84c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x427c7e
test edi, edi
je 0x427c7e
call esi
test eax, eax
je 0x427c75
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x427c75
test byte [ebp - 0xc], 1
jne 0x427c7e
or dword [ebp + 0x10], 0x200000
jmp 0x427cb7
mov eax, dword [0x441e2c]
cmp eax, ebx
je 0x427cb7
push eax
call fcn.0041d84c
pop ecx
test eax, eax
je 0x427cb7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x427cb7
mov eax, dword [0x441e30]
cmp eax, ebx
je 0x427cb7
push eax
call fcn.0041d84c
pop ecx
test eax, eax
je 0x427cb7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x441e28]
call fcn.0041d84c
pop ecx
test eax, eax
je 0x427cd7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x427cd9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405a30
Capabilities:
Read .ini file

Disassembly:
push ebx
push ecx
sub esp, 0x104
mov ebx, edx
push 0x425688
push 0x103
lea edx, [esp + 8]
push edx
push 0x405a2f
push eax
push 0x42578c
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
test eax, eax
setne ah
mov al, ah
test ah, ah
jne 0x405a6e
add esp, 0x104
pop ecx
pop ebx
ret
mov eax, esp
call fcn.00403500
mov dword [ebx], eax
test eax, eax
setne al
add esp, 0x104
pop ecx
pop ebx
ret

Function at 0x405c80
Capabilities:
Read .ini file

Disassembly:
push ebx
push ecx
sub esp, 0x2c
mov ebx, edx
push 0x425688
push 0x28
lea edx, [esp + 8]
push edx
push 0x4059ec
push eax
push 0x42578c
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
test eax, eax
jne 0x405cb0
xor al, al
add esp, 0x2c
pop ecx
pop ebx
ret
mov edx, esp
mov eax, 0x4059ec
call fcn.004142d0
test eax, eax
je 0x405ca8
mov eax, esp
mov edx, ebx
call fcn.00405d20
mov al, 1
add esp, 0x2c
pop ecx
pop ebx
ret

Function at 0x406460
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ecx
push edx
push esi
mov esi, eax
cmp dword [0x425828], 0
jne 0x4064d0
mov eax, dword [0x425824]
push 5
mov edx, dword [eax + 0xc]
push edx
call dword [sym.imp.USER32.DLL_ShowWindow]
mov ebx, dword [0x425820]
mov eax, dword [ebx + 0xc]
mov ebx, dword [ebx + 4]
add eax, eax
push 6
add ebx, eax
call dword [sym.imp.USER32.DLL_GetSystemMetrics]
add eax, eax
add ebx, eax
mov dword [0x425828], ebx
call fcn.004022a0
mov eax, 0x35
call fcn.00411ce0
mov ebx, eax
push ebx
push 0xfe
push 0
push 0xfe
push esi
call dword [sym.imp.USER32.DLL_ModifyMenuA]
test ebx, ebx
jne 0x4064f5
pop esi
pop edx
pop ecx
pop ebx
ret
mov eax, dword [0x425824]
push 0
mov ecx, dword [eax + 0xc]
push ecx
xor ebx, ebx
call dword [sym.imp.USER32.DLL_ShowWindow]
mov dword [0x425828], ebx
call fcn.004022a0
mov eax, 0x34
jmp 0x4064ac
mov eax, ebx
call fcn.00411d70
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x406870
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ecx
push esi
push edi
push ebp
mov edi, eax
mov ebx, edx
test edx, edx
je 0x406894
push 0
push 0
push 0xb8
push eax
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, eax
je 0x4068bb
mov byte [ebx], 1
push 0
push 0
push 0xe
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
mov esi, eax
lea ebp, [eax + 1]
push ebp
call dword [sym.imp.wr.dll__WRMemAlloc_4]
mov ebx, eax
test eax, eax
jne 0x4068c0
mov eax, ebx
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
mov byte [ebx], 0
jmp 0x406894
push eax
push ebp
push 0xd
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
cmp eax, esi
jg 0x4068db
mov byte [esi + ebx], 0
mov eax, ebx
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
push ebx
call dword [sym.imp.wr.dll__WRMemFree_4]
xor ebx, ebx
mov eax, ebx
pop ebp
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x409780
Capabilities:
Create process on windows

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
mov edx, eax
test eax, eax
jne 0x409793
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov ecx, dword [eax]
mov cl, byte [ecx + 0x16]
call fcn.004099b0
mov ebx, eax
mov ebp, eax
test eax, eax
je 0x40978c
mov eax, dword [edx]
call fcn.00404290
call fcn.00403500
mov dword [ebx + 8], eax
mov eax, dword [edx + 8]
add eax, 0x12
call fcn.00409130
mov dword [ebx + 0xc], eax
mov esi, dword [edx + 0xc]
lea edi, [ebx + 0x10]
lea esi, [esi + 0xc]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [edx + 0xc]
mov ax, word [eax + 0xf]
mov word [ebx + 0x14], ax
mov eax, dword [edx + 0xc]
mov eax, dword [eax + 0x15]
mov dword [ebx + 0x18], eax
mov eax, dword [edx + 0xc]
mov eax, dword [eax + 8]
mov dword [ebx + 0x1c], eax
mov byte [ebx + 0x16], cl
mov eax, dword [edx + 4]
mov dword [ebx + 0x20], eax
mov eax, dword [edx + 8]
mov dword [ebx + 0x24], eax
mov eax, dword [edx + 0xc]
mov dword [ebx + 0x28], eax
mov eax, dword [edx]
mov dword [ebx + 0x2c], eax
xor eax, eax
call fcn.0040ab40
push 5
push 0x4091a2
mov dword [0x42584c], ebx
call dword [sym.imp.KERNEL32.DLL_WinExec]
cmp eax, 0x20
jae 0x409846
mov eax, 0x3a
call fcn.004028a0
mov eax, ebx
call fcn.00409ab0
xor eax, eax
mov dword [0x42584c], eax
mov eax, 4
call fcn.0040ab40
mov eax, ebp
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret