joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001c50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x10031014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
mov dword [ebp - 0x80], esi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001c77
sub eax, edi
sar eax, 1
jne 0x10001c93
push edx
push str.There_is_currently_no_matching_version__Lowest_Supported_Version:__s
jmp 0x10001d77
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10001caa
push esi
push str.Runtime_path_not_exist__path:__s_
jmp 0x10001d77
movups xmm0, xmmword [str.VCRUNTIME140_1.dll]
mov eax, dword [0x100233ec]
lea edi, [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov esi, 1
movzx eax, word [0x100233f0]
movups xmmword [ebp - 0x7c], xmm0
mov word [ebp - 0x58], ax
xor eax, eax
movups xmm0, xmmword [0x100233dc]
mov word [ebp - 0x56], ax
movzx eax, word [0x10023384]
movups xmmword [ebp - 0x6c], xmm0
mov word [ebp - 0x34], ax
xor eax, eax
movups xmm0, xmmword [str.VCRUNTIME140.dll]
mov dword [ebp - 0x32], eax
mov word [ebp - 0x2e], ax
movzx eax, word [0x1002340c]
movups xmmword [ebp - 0x54], xmm0
mov word [ebp - 0x14], ax
movups xmm0, xmmword [0x10023374]
mov dword [ebp - 0xa], 0
mov word [ebp - 6], 0
movups xmmword [ebp - 0x44], xmm0
movups xmm0, xmmword [str.msvcp140.dll]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [0x10023404]
movq qword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
movq qword [ebp - 0x12], xmm0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x10001d68
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
inc esi
add edi, 0x28
cmp esi, 3
jb 0x10001d43
push dword [ebp - 0x80]
push str.Load_library_failed__dll_name:_pbvm.dll__runtime_path:_s
jmp 0x10001d77
lea eax, [esi + esi*4]
lea ecx, [ebp - 0x7c]
lea eax, [ecx + eax*8]
push eax
push str.The_program_cant_start_because__s_is_missing_from_your_computer.
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.10006cd3
mov esp, ebp
pop ebp
ret
Function at 0x10003130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], 0
cmp dword [eax + 0x14], 8
push edi
mov dword [ebp - 4], esi
jb 0x10003150
mov eax, dword [eax]
push 0x10023898
push eax
call fcn.1000c628
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1000327d
push 2
push 0
push ebx
call fcn.1000e20b
push ebx
call fcn.1000e839
push 0
mov esi, eax
push 0
push ebx
mov dword [ebp - 8], esi
call fcn.1000e20b
add esp, 0x1c
test esi, esi
jne 0x100031a2
push ebx
call fcn.1000dbaa
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.10006cc5
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0xc], edi
call fcn.10008fb0
push ebx
push esi
push 1
push edi
call fcn.1000de14
add esp, 0x20
test eax, eax
jne 0x100031e1
push edi
call fcn.10006cce
push ebx
call fcn.1000dbaa
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0xfde9
call edi
mov esi, eax
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10006cc5
mov ecx, eax
lea eax, [esi*2 + 2]
push eax
push 0
push ecx
mov dword [ebp + 8], ecx
call fcn.10008fb0
add esp, 0x10
push esi
push dword [ebp + 8]
mov esi, dword [ebp - 0xc]
push dword [ebp - 8]
push esi
push 0
push 0xfde9
call edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003245
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 4]
push edi
call fcn.10002b10
push esi
call fcn.10006cce
push edi
call fcn.10006cce
push ebx
call fcn.1000dbaa
mov esi, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 8], 1
push esi
mov ecx, esi
mov dword [esi + 0x18], 0
call fcn.100034b0
mov al, byte [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1000766f
Capabilities:
Parse pe header

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

Function at 0x10015b04
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001597a

Function at 0x10022740
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002276d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002276d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401368
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40137a
mov eax, dword [0x50108b]
shl eax, 2
mov dword [0x50108f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004f30a0
pop edx
call fcn.004f2388
call fcn.004f30a4
push 0
call fcn.004f3f68
pop ecx
push 0x501034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x501093], eax
push 0
jmp fcn.004fd6e4

Function at 0x40a2ac
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov ecx, eax
mov edi, dword [ebp + 8]
and cl, 0xff
mov esi, dword [ebp + 0x10]
and ecx, 0xff
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
movzx ecx, ax
sar ecx, 8
shr eax, 0x10
and cl, 0xff
and ecx, 0xff
and al, 0xff
mov dword [ebp - 0x14], ecx
and eax, 0xff
mov dword [ebp - 0x18], eax
mov eax, edx
and al, 0xff
xor ecx, ecx
mov cl, al
movzx eax, dx
sar eax, 8
mov dword [ebp - 0x1c], ecx
shr edx, 0x10
and al, 0xff
xor ecx, ecx
and dl, 0xff
mov cl, al
and edx, 0xff
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], edx
push edi
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
push esi
push ebx
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
call sub.GDI32.DLL_SelectObject
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
cmp esi, ebx
jl 0x40a351
mov esi, ebx
mov dword [ebp - 0x38], esi
fild dword [ebp - 0x38]
fmul dword [0x40a438]
add esp, 0xfffffff8
fstp qword [esp]
call fcn.004fa098
add esp, 8
call fcn.004fa438
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jle 0x40a411
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x10]
imul ebx
cdq
idiv esi
mov ecx, eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
add cl, byte [ebp - 0x10]
imul ebx
cdq
idiv esi
add al, byte [ebp - 0x14]
and ecx, 0xff
and eax, 0xff
movzx edx, ax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x18]
shl edx, 8
or ecx, edx
imul ebx
cdq
idiv esi
add al, byte [ebp - 0x18]
and eax, 0xff
shl eax, 0x10
or ecx, eax
push ecx
call sub.GDI32.DLL_CreateSolidBrush
mov edi, eax
push edi
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
push edi
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 4]
push ecx
call sub.USER32.DLL_FillRect
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [ebp - 4]
push edx
call sub.GDI32.DLL_SelectObject
push edi
call sub.GDI32.DLL_DeleteObject
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [ebp - 0x34]
push ecx
call sub.USER32.DLL_InflateRect
inc ebx
cmp esi, ebx
jg 0x40a37c
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_CreatePatternBrush
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov edx, dword [ebp - 8]
push edx
call sub.GDI32.DLL_DeleteObject
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a43c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
push ebx
push 0xff
push 1
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
push eax
call fcn.00412e68
add esp, 0x28
mov ebx, eax
test ebx, ebx
jne 0x40a474
xor eax, eax
jmp 0x40a550
lea edx, [ebp - 0x18]
push edx
push 0x18
push ebx
call sub.GDI32.DLL_GetObjectA
lea ecx, [ebp - 0x134]
push ecx
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
push 0x597237
lea eax, [ebp - 0x134]
push eax
call sub.KERNEL32.DLL_lstrcatA
lea edx, [ebp - 0x134]
push edx
push ebx
call fcn.00413dc4
add esp, 8
push ebx
call sub.GDI32.DLL_DeleteObject
cmp dword [ebp + 0x10], 1
jne 0x40a4e6
push 0x3030
push 0
push 0xff000000
push 6
mov ecx, dword [ebp - 0x14]
push ecx
lea eax, [ebp - 0x134]
push eax
call fcn.00418cd8
push eax
call sub.COMCTL32.DLL_ImageList_LoadImageA
mov ebx, eax
jmp 0x40a509
push 0x3010
push 0
push 0xffffffffffffffff
push 6
mov eax, dword [ebp - 0x14]
push eax
lea edx, [ebp - 0x134]
push edx
call fcn.00418cd8
push eax
call sub.COMCTL32.DLL_ImageList_LoadImageA
mov ebx, eax
lea eax, [ebp - 0x134]
push eax
call sub.KERNEL32.DLL_DeleteFileA
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], 0xa
mov dword [ebp - 0x28], 0xa
mov dword [ebp - 0x20], 0xa
mov dword [ebp - 0x24], 0xa
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x1c], edx
push ecx
push 0
push 0x1602
mov eax, dword [ebp + 8]
push eax
call sub.USER32.DLL_SendMessageA
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41217c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push 0
push 0
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov ebx, eax
test ebx, ebx
je 0x4121da
test esi, esi
je 0x4121a2
push esi
call fcn.00412254
pop ecx
inc eax
add ebx, eax
push ebx
call fcn.004559a4
pop ecx
mov edi, eax
push ebx
push edi
call sub.KERNEL32.DLL_GetSystemDirectoryA
test esi, esi
je 0x4121d4
mov eax, ebx
dec eax
push eax
push 0x59785d
push edi
call fcn.00412218
add esp, 0xc
dec ebx
push ebx
push esi
push edi
call fcn.00412218
add esp, 0xc
mov eax, edi
jmp 0x4121e1
push esi
call fcn.004121e8
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4122c0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, eax
and eax, 0xff
and esi, 0xff00
mov dword [ebp - 8], eax
shr esi, 8
mov byte [ebx], 0
mov eax, esi
mov edi, esi
mov edx, esi
and edi, 4
and edx, 1
and eax, 2
test eax, eax
mov dword [ebp - 4], edx
je 0x412302
mov eax, str.Ctrl_
jmp 0x412307
mov eax, 0x597867
push eax
push ebx
call sub.KERNEL32.DLL_lstrcatA
cmp dword [ebp - 4], 0
je 0x41231b
mov edx, str.Shift_
jmp 0x412320
mov edx, 0x597867
push edx
push ebx
call sub.KERNEL32.DLL_lstrcatA
test edi, edi
je 0x412332
mov eax, str.Alt_
jmp 0x412337
mov eax, 0x597867
push eax
push ebx
call sub.KERNEL32.DLL_lstrcatA
mov edi, ebx
push 0
mov eax, dword [ebp - 8]
push eax
call sub.USER32.DLL_MapVirtualKeyA
test esi, 8
mov ebx, eax
je 0x412360
shl ebx, 0x10
or ebx, 0x3000000
jmp 0x412369
shl ebx, 0x10
or ebx, 0x2000000
push 0x64
push edi
call sub.KERNEL32.DLL_lstrlenA
add edi, eax
push edi
push ebx
call sub.USER32.DLL_GetKeyNameTextA
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41281c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
test eax, eax
je 0x412834
test ebx, ebx
jne 0x412838
xor eax, eax
jmp 0x4128a1
push eax
call fcn.004cb4e0
pop ecx
mov edi, eax
push ebx
call fcn.004cb4e0
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
push edi
push esi
call sub.KERNEL32.DLL_FindResourceW
mov ebx, eax
push edi
call fcn.00455a78
pop ecx
mov eax, dword [ebp - 4]
push eax
call fcn.00455a78
pop ecx
test ebx, ebx
jne 0x412871
xor eax, eax
jmp 0x4128a1
push ebx
push esi
call sub.KERNEL32.DLL_SizeofResource
mov edi, eax
push ebx
push esi
call sub.KERNEL32.DLL_LoadResource
test eax, eax
jne 0x412889
xor eax, eax
jmp 0x4128a1
push eax
call sub.KERNEL32.DLL_LockResource
test eax, eax
jne 0x412897
xor eax, eax
jmp 0x4128a1
push edi
push eax
call fcn.004128a8
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x413948
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov word [ebp - 8], 0
mov word [ebp - 6], 1
mov ax, word [ebp + 0xc]
lea edx, [ebp - 0xc]
mov word [ebp - 4], ax
push 0
push edx
lea ecx, [ebp - 8]
push 6
push ecx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x413998
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.00413980
pop ecx
mov esi, eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00413980
pop ecx
add esi, eax
push 0x28
push 0
lea edx, [ebp - 0x2c]
push edx
call fcn.004f315c
mov dword [ebp - 0x2c], 0x28
mov ecx, dword [ebx + 4]
add esp, 0xc
mov dword [ebp - 0x28], ecx
mov eax, dword [ebx + 8]
add eax, eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 4]
mov dx, word [ebx + 0x10]
mov word [ebp - 0x20], dx
lea edx, [ebp - 0x2c]
mov cx, word [ebx + 0x12]
mov word [ebp - 0x1e], cx
mov dword [ebp - 0x18], esi
push 0
push eax
push 0x28
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413a64
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x18]
push ebx
push eax
push edx
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00413a10
add esp, 0x10
lea edx, [ebp - 0x40]
push edx
call fcn.00413980
pop ecx
mov ebx, eax
lea eax, [ebp - 0x58]
push eax
call fcn.00413980
add ebx, eax
pop ecx
mov ax, word [ebp - 0x2e]
mov edx, ebx
cmp ax, 8
jb 0x413aab
xor eax, eax
jmp 0x413abc
movzx ecx, ax
movzx eax, word [ebp - 0x30]
imul ecx, eax
mov eax, 1
shl eax, cl
mov cl, byte [ebp - 0x3c]
add edx, 0x28
mov byte [ebp - 0x28], cl
mov cl, byte [ebp - 0x38]
mov byte [ebp - 0x27], cl
mov byte [ebp - 0x26], al
mov byte [ebp - 0x25], 0
mov ax, word [ebp - 0x30]
mov word [ebp - 0x24], ax
mov ax, word [ebp - 0x2e]
mov word [ebp - 0x22], ax
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 4]
mov dword [ebp - 0x1c], ecx
push 0
push eax
lea edx, [ebp - 0x28]
push 0x10
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
mov edx, dword [ebp - 0xc]
push edx
call sub.GDI32.DLL_DeleteObject
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413b1c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
push 0x18
push ebx
call sub.GDI32.DLL_GetObjectA
lea edx, [ebp - 0x24]
push edx
call fcn.00413980
pop ecx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0045424c
pop ecx
mov esi, eax
push esi
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.GDI32.DLL_GetBitmapBits
mov ebx, dword [ebp - 0x1c]
dec ebx
test ebx, ebx
jl 0x413ba4
lea edx, [ebp - 8]
push 0
push edx
mov ecx, ebx
mov eax, dword [ebp - 0x18]
imul ecx, eax
add ecx, esi
push eax
push ecx
push edi
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 0x18]
test al, 3
je 0x413b9f
xor edx, edx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], edx
mov edx, 4
push 0
sub edx, eax
push ecx
push edx
lea eax, [ebp - 0xc]
push eax
push edi
call sub.KERNEL32.DLL_WriteFile
dec ebx
test ebx, ebx
jge 0x413b63
push esi
call fcn.00454590
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413dc4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov edi, eax
push esi
push edi
call sub.GDI32.DLL_SelectObject
lea eax, [ebp - 0x60]
push eax
push 0x18
push esi
call sub.GDI32.DLL_GetObjectA
mov ax, 0x18
mov word [ebp - 0x4e], ax
movzx edx, ax
imul edx, dword [ebp - 0x5c]
add edx, 0x1f
test edx, edx
jns 0x413e05
add edx, 0x1f
sar edx, 5
shl edx, 2
mov dword [ebp - 0x54], edx
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.004fa584
imul dword [ebp - 0x54]
pop ecx
mov dword [ebp - 8], eax
mov word [ebp - 0x1c], 0x4d42
mov eax, dword [ebp - 8]
add eax, 0x36
mov dword [ebp - 0x1a], eax
xor eax, eax
mov word [ebp - 0x16], 0
mov word [ebp - 0x14], 0
mov dword [ebp - 0x12], 0x36
mov dword [ebp - 0x48], 0x28
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x44], edx
xor edx, edx
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x40], ecx
xor ecx, ecx
mov word [ebp - 0x3c], 1
mov word [ebp - 0x3a], 0x18
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
xor eax, eax
mov dword [ebp - 0x2c], eax
xor edx, edx
mov dword [ebp - 0x28], edx
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 8]
push eax
push 0x42
call sub.KERNEL32.DLL_GlobalAlloc
mov ebx, eax
test ebx, ebx
jne 0x413e95
xor eax, eax
jmp 0x413f32
push ebx
call sub.KERNEL32.DLL_GlobalLock
mov dword [ebp - 4], eax
lea edx, [ebp - 0x48]
push 0
push edx
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ebp - 0x40]
push eax
push 0
push esi
push edi
call sub.GDI32.DLL_GetDIBits
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 0xc]
push edx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x413f1c
lea eax, [ebp - 0xc]
push 0
push eax
lea edx, [ebp - 0x1c]
push 0xe
push edx
push esi
call sub.KERNEL32.DLL_WriteFile
lea ecx, [ebp - 0xc]
push 0
push ecx
lea eax, [ebp - 0x48]
push 0x28
push eax
push esi
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ebp - 4]
push eax
push esi
call sub.KERNEL32.DLL_WriteFile
push esi
call sub.KERNEL32.DLL_CloseHandle
mov esi, 1
jmp 0x413f1e
xor esi, esi
push ebx
call sub.KERNEL32.DLL_GlobalUnlock
push ebx
call sub.KERNEL32.DLL_GlobalFree
push edi
call sub.GDI32.DLL_DeleteDC
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413f3c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov eax, dword [esi]
mov dword [0x5d00a8], eax
mov edx, dword [edi]
push 0xff
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
push edx
push eax
mov ecx, dword [ebp + 8]
mov dword [0x5d00ac], edx
push ecx
call fcn.00412e68
add esp, 0x28
mov ebx, eax
test ebx, ebx
jne 0x413f89
xor eax, eax
jmp 0x414042
lea edx, [ebp - 0x18]
push edx
push 0x18
push ebx
call sub.GDI32.DLL_GetObjectA
test esi, esi
je 0x413f9e
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test edi, edi
je 0x413fa7
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
lea edx, [ebp - 0x11c]
push edx
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
push str._MG_temp.BMP
lea ecx, [ebp - 0x11c]
push ecx
call sub.KERNEL32.DLL_lstrcatA
lea eax, [ebp - 0x11c]
push eax
push ebx
call fcn.00413dc4
add esp, 8
push ebx
call sub.GDI32.DLL_DeleteObject
cmp dword [ebp + 0x10], 1
jne 0x41400f
push 0x3030
push 0
push 0xff000000
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0x14]
push ecx
lea eax, [ebp - 0x11c]
push eax
call fcn.00418cd8
push eax
call sub.COMCTL32.DLL_ImageList_LoadImageA
mov ebx, eax
jmp 0x414034
push 0x3010
push 0
push 0xffffffffffffffff
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00418cd8
push eax
call sub.COMCTL32.DLL_ImageList_LoadImageA
mov ebx, eax
lea eax, [ebp - 0x11c]
push eax
call sub.KERNEL32.DLL_DeleteFileA
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x419690
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
jne 0x4196ab
xor eax, eax
jmp 0x41970b
cmp dword [esp + 4], 5
jb 0x419709
cmp dword [esp + 4], 5
jne 0x4196c6
cmp dword [esp + 8], 0
jne 0x4196c6
xor eax, eax
jmp 0x41970b
cmp dword [esp + 4], 5
jne 0x419702
cmp dword [esp + 8], 1
jne 0x419702
push str.Service_Pack
lea edx, [esp + 0x18]
push edx
call fcn.004f3454
add esp, 8
push str.Service_Pack_1
push eax
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jl 0x4196fe
mov eax, 1
jmp 0x41970b
xor eax, eax
jmp 0x41970b
mov eax, 1
jmp 0x41970b
xor eax, eax
add esp, 0x94
ret
Function at 0x421868
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
push esi
push edi
mov ebx, 0x80070057
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x4219f4
push esi
call sub.KERNEL32.DLL_lstrlenA
test eax, eax
jle 0x4219f4
cmp dword [ebp + 0xc], 0
je 0x4219f4
test edi, edi
je 0x4219f4
push edi
call sub.KERNEL32.DLL_lstrlenA
test eax, eax
jle 0x4219f4
cmp dword [ebp + 0x14], 0
je 0x4219f4
cmp dword [ebp + 0x18], 0
jl 0x4219f4
cmp dword [ebp + 0x1c], 0
je 0x4219f4
cmp dword [ebp + 0x20], 0
je 0x4219f4
cmp dword [ebp + 0x24], 0
jl 0x4219f4
lea eax, [ebp - 4]
push eax
push 0x5cff08
push 1
push 0
push 0x5cff18
call sub.OLE32.DLL_CoCreateInstance
mov ebx, eax
test ebx, ebx
jl 0x4219f4
push esi
mov eax, dword [ebp - 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp - 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, dword [ebp + 0x14]
push ecx
call sub.KERNEL32.DLL_lstrlenA
test eax, eax
jle 0x421939
mov eax, dword [ebp + 0x14]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x1c]
cmp dword [ebp + 0x18], 0
jle 0x42194c
mov eax, dword [ebp + 0x18]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x3c]
mov eax, dword [ebp + 0x1c]
push eax
call sub.KERNEL32.DLL_lstrlenA
test eax, eax
jle 0x421966
mov edx, dword [ebp + 0x1c]
push edx
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
mov edx, dword [ebp + 0x20]
push edx
call sub.KERNEL32.DLL_lstrlenA
test eax, eax
jle 0x42198a
cmp dword [ebp + 0x24], 0
jl 0x42198a
mov ecx, dword [ebp + 0x24]
push ecx
mov eax, dword [ebp + 0x20]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x44]
cmp word [ebp + 0x28], 0
je 0x42199f
mov ax, word [ebp + 0x28]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x34]
lea eax, [ebp - 8]
push eax
push 0x5cff48
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [edx]
call dword [ecx]
mov ebx, eax
test ebx, ebx
jl 0x4219eb
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push 1
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 4]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret