joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45173c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4518e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4518c8
mov dl, 1
mov eax, dword [0x415258]
call fcn.00403168
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403ee8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4518b7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043f6a0
test al, al
je 0x4518aa
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4518f8
lea eax, [ebp - 0x254]
call fcn.00408d00
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4518aa
xor eax, eax
push ebp
push 0x4518a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x451930
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45188c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404158
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45188c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4518aa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4517ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418d34
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4518ee
lea eax, [ebp - 0x260]
call fcn.00403ee8
ret

Function at 0x45221c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x473bb4]
cmp byte [eax + 0xa5], 0
jne 0x45228d
cmp dword [0x473bcc], 0
jne 0x45224e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4521d8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x473bcc], eax
cmp dword [0x473bc8], 0
jne 0x452269
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x473bc8], eax
cmp dword [0x473bd0], 0
jne 0x45228d
push esp
push 0
push 0
push 0x45217c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x473bd0], eax
pop edx
ret
Function at 0x452384
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45239b
add esp, 0xfffffff0
call fcn.004034bc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cb44
mov eax, dword [0x4729c4]
cmp word [eax + 2], 0
jne 0x4523c3
mov eax, dword [0x4729c4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453a5c
mov eax, dword [0x472a7c]
cmp word [eax + 2], 0
jne 0x4523dd
mov eax, dword [0x472a7c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453c54
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x414e3c]
call fcn.00403168
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414e3c]
call fcn.00403168
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41f128]
call fcn.00426d54
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x452564
mov eax, dword [0x4728e0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427124
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4541f4
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4728e0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c450
test eax, eax
je 0x4524d2
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004086f4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c478
test eax, eax
je 0x4524e6
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404158
mov eax, dword [0x4727a4]
cmp byte [eax], 0
jne 0x45251a
mov eax, ebx
call fcn.0045268c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004543d0
mov eax, ebx
call fcn.00454d94
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45255a
call fcn.00403514
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45290c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x473bb4]
cmp dword [eax + 0x30], 0
je 0x4529b6
cmp dword [ebx + 0x94], 0
jne 0x4529b0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45289c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4529b0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x452976
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4529b0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004171a4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452985
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453518
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45354d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403fd8
jmp 0x45355a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f3c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4545ac
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4545ed
mov eax, esi
call fcn.0043accc
test al, al
je 0x4545ed
mov eax, dword [ebx + 0x84]
call fcn.0043a9c8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4545ed
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043a9c8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x457cb4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x457ce2
mov eax, ebx
call fcn.00458768
cmp dword [ebx + 0x40], 0
je 0x457cdb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x457d53
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x457d45
cmp dword [ebx + 8], 0
je 0x457d04
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x457d16
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x457d45
cmp dword [ebx + 8], 0
je 0x457cf7
cmp eax, 3
je 0x457d29
dec eax
jne 0x457cf7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x457cf7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x457cf7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x457d71
cmp dword [ebx + 0x14], 0xcc
je 0x457d71
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00457d7c
pop ebx
ret
Function at 0x4686e8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414438]
call fcn.00404854
xor eax, eax
push ebp
push 0x46882c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x472688], 0
jne 0x46873b
mov ecx, dword [0x4727b4]
mov dl, 1
mov eax, dword [0x407068]
call fcn.0040b6fc
call fcn.00403924
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402bac
mov eax, ebx
call fcn.00404724
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x46883c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.004057d8
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404734
test eax, eax
jle 0x4687d3
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4687cc
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404170
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404158
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00407ec8
test eax, eax
jne 0x4687cc
mov ebx, 0x15
jmp 0x4687d8
mov ebx, 0x10
jmp 0x4687d8
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x472688]
call fcn.00468640
mov eax, dword [ebp - 8]
call fcn.00468640
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.004057f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468833
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00403f0c
lea eax, [ebp - 0x10]
mov edx, dword [0x414438]
call fcn.00404924
ret
Function at 0x470064
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x47006c
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4701b4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x4701c0
call sub.kernel32.dll_GetVolumeInformationA
mov eax, dword [ebp - 0xc]
xor edx, edx
push edx
push eax
lea edx, [ebp - 0x10]
mov eax, 8
call fcn.00408174
lea edx, [ebp - 0x14]
mov eax, dword [ebx + 0x300]
call fcn.00434214
cmp dword [ebp - 0x14], 0
je 0x470179
push 0x4701cc
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x300]
call fcn.00434214
push dword [ebp - 0x20]
push 0x470224
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x2fc]
call fcn.00434214
push dword [ebp - 0x24]
push 0x470230
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
mov edx, 6
call fcn.00404268
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.00404714
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x314]
call fcn.0046fa48
xor edx, edx
mov eax, dword [ebx + 0x2fc]
call fcn.00434244
mov eax, dword [0x472b98]
mov eax, dword [eax]
call fcn.0045046c
mov edx, dword [ebx + 0x40]
add edx, 0xfc
mov eax, dword [0x472b98]
mov eax, dword [eax]
call fcn.00433984
mov edx, dword [ebx + 0x44]
add edx, 0xca
mov eax, dword [0x472b98]
mov eax, dword [eax]
call fcn.004339a8
xor edx, edx
mov eax, dword [ebx + 0x2fc]
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4701bb
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00403f0c
lea eax, [ebp - 0x1c]
call fcn.00403ee8
lea eax, [ebp - 0x18]
call fcn.004045c8
lea eax, [ebp - 0x14]
call fcn.00403ee8
lea eax, [ebp - 0x10]
call fcn.00403ee8
ret
Function at 0x4019ff
Capabilities:
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.MSVCRT.dll__access]
push edi
push 0
push ebx
call esi
pop ecx
test eax, eax
pop ecx
jne 0x401a3c
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x401b24
and byte [ebp - 0x108], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 0x10
test eax, eax
je 0x401b29
and byte [eax + 1], 0
lea eax, [ebp - 0x108]
push 0
push eax
call esi
pop ecx
test eax, eax
pop ecx
je 0x401b24
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jle 0x401b13
lea eax, [ebp - 0x108]
push 1
dec eax
pop ebx
mov dword [ebp + 8], eax
jmp 0x401ab9
mov eax, dword [ebp + 8]
cmp byte [eax + ebx], 0x5c
jne 0x401b0a
and byte [ebp - 0x20c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x20b]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_memcpy
lea eax, [ebp - 0x20c]
push 0
push eax
call esi
add esp, 0x14
test eax, eax
je 0x401b0a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.MSVCRT.dll__mkdir]
pop ecx
inc ebx
lea eax, [ebx - 1]
cmp eax, dword [ebp - 4]
jl 0x401ab6
lea eax, [ebp - 0x108]
push 0
push eax
call esi
pop ecx
test eax, eax
pop ecx
jne 0x401b29
push 1
pop eax
jmp 0x401b2b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4026d0
Capabilities:
Check if file exists
Get file attributes
Read .ini file
Set file attributes

Disassembly:
mov eax, 0x40b3c4
call fcn.0040adc0
sub esp, 0x110
push ebx
push esi
mov esi, 0x40f7f4
push edi
push esi
lea ecx, [ebp - 0x18]
call fcn.0040abe4
push dword [0x40f824]
and dword [ebp - 4], 0
mov ebx, str._sconfig.ini
lea eax, [ebp - 0x18]
push ebx
push eax
call sub.MFC42.DLL_CString::Format
and byte [ebp - 0x11c], 0
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x11b]
push 0x40
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0
lea ecx, [ebp - 0x18]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea eax, [ebp - 0x11c]
push 0x104
push eax
push esi
push str.GameID
push str.Public
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
ja 0x402764
xor esi, esi
jmp 0x402802
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
push dword [0x40f834]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push ebx
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push 1
pop esi
cmp eax, esi
je 0x402797
xor esi, esi
jmp 0x4027f6
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
push dword [ebp + 8]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push 0x40f3d0
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x11c]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push str.ConfPath
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
jne 0x4027ea
xor esi, esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x402821
Capabilities:
Create thread

Disassembly:
mov eax, 0x40b3e0
call fcn.0040adc0
sub esp, 0xc
push ebx
push esi
push 0x40f838
lea eax, [ebp - 0x14]
push 0x40f830
mov esi, ecx
push eax
call sub.MFC42.DLL_operator_1
push str..cab
push eax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_operator
push eax
mov ecx, 0x40f82c
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push esi
push 0x4028ad
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 8]
push 1
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
pop eax
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40418e
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebx
push esi
push dword [0x40f82c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
jne 0x4041b1
push dword [0x40f82c]
call ebx
push edi
mov edi, 0x40f7f8
push dword [edi]
call esi
cmp eax, 1
jne 0x4041c4
push dword [edi]
call ebx
add edi, 4
cmp edi, 0x40f820
jl 0x4041b7
push dword [0x40f828]
call esi
cmp eax, 1
pop edi
jne 0x4041e5
push dword [0x40f828]
call ebx
push dword [0x40f820]
call esi
cmp eax, 1
jne 0x4041fa
push dword [0x40f820]
call ebx
pop esi
pop ebx
ret

Function at 0x405d1c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x405d63
cmp edx, 0x10
jl 0x405d4f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x405d3c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x405d63
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x405d5b
and edx, 3
cmp edx, 3
jne 0x405d77
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x405d7c
cmp edx, 2
jne 0x405d88
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x405d8d
cmp edx, 1
jne 0x405d93
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x5817f6
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00581875
jae 0x581802
xor ecx, ecx
call fcn.00581875
jae 0x58182c
xor eax, eax
call fcn.00581875
jae 0x58183d
mov al, 0x10
call fcn.00581875
adc al, al
jae 0x58181e
jne 0x58186a
stosb byte es:[edi], al
jmp 0x581803
call fcn.00581881
dec ecx
loop 0x581849
mov eax, ebp
call fcn.0058187f
jmp 0x58186b
lodsb al, byte [esi]
shr eax, 1
je 0x581891
adc ecx, 2
mov ebp, eax
jmp 0x58186b
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0058187f
cmp eax, 0x7d00
jae 0x581869
cmp eax, 0x500
jae 0x58186a
cmp eax, 0x7f
ja 0x58186b
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x581803
pop ebp
ret 8
Function at 0x546c05
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov edx, dword [esp]
setae bh
mov di, word [esp]
lea edi, [esp + 0x14]
mov cl, ch
jmp 0x5468f2
jp 0x5469a7
mov edi, 0x834cd992
jmp 0x5469ac
mov edi, 0x834cd992
mov esi, dword [esp + 0x3c]
rdtsc
jmp 0x546913
lea esp, [esp + 0xd8]
pushfd
mov edx, dword [esp]
mov edi, ecx
sub esp, 0x14
jmp 0x54693b
mov word [esp], di
push esp
pop dword [esp]
mov word [esp], sp
mov byte [esp], ch
mov dword [esp + 0xd8], edi
jmp 0x546b1a
jmp 0x546bad

Function at 0x547a3f
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 2]
neg dl
jmp 0x547a28
shl al, 7
jb 0x547a00
lea esp, [esp + 2]
jmp 0x547a04
mov ax, word [esp]
xchg bx, ax
bswap ebx
lea ebx, [ecx - 0x8b]
inc ebx
jmp 0x547a49
mov bl, bh
xchg ah, bl
pop word [esp]
jmp 0x547a1d
jbe 0x547a5f
bswap eax
sub esp, 0x14
jmp 0x548436
bswap eax
sub esp, 0x14
pushal
add esp, 9
bt ebx, esp
Function at 0x7dda6e
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dh, byte [esp + 0x1f]
lea esp, [esp + 0x20]
dec cl
jmp 0x7ddaf1
and dword [ecx - reloc.WINMM.dll_waveOutUnprepareHeader], esi
and ebx, dword [edx - 0x4b]
movsb byte es:[edi], byte [esi]
xlatb
xchg dh, dl
pop edx
call fcn.007dda6e
aaa
mov esp, 0x7c43552
add ecx, dword [ecx + reloc.WINMM.dll_waveOutUnprepareHeader]
test al, 0xcb
invalid
popfd

Function at 0x7ddfb8
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov byte [esp], ah
lea esp, [esp + 3]
mov byte [esp], ch
lea esp, [esp]
lea esp, [esp + 1]
xchg dword [esp + 0xc], ecx
call fcn.007ddaa4
jmp 0x7ddb21

Function at 0xa03190
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub esp, 2
not ah
mov edx, 0x78881aca