joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408390
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x469ea0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esi + 0x20]
lea edi, [esi + 4]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_CallWindowProcW]
lea ebx, [esi + 0x54]
push ebx
push 0x458cc4
mov ecx, edi
mov dword [ebp - 0x21c], eax
call fcn.00401cc0
test eax, eax
js 0x408407
mov edx, dword [ebx]
lea eax, [esi + 0x24]
cmp dword [eax + 0x28], 0xfefefefe
lea ecx, [eax + 0x28]
je 0x4083fa
push 0x80004005
call fcn.004011e0
push ecx
push 0x45ddc4
push eax
push edx
call fcn.00401f90
mov ebx, dword [ebx]
mov edx, dword [ebx]
mov eax, dword [edx + 0xf0]
push 0xffffffffffffffff
push ebx
call eax
lea ecx, [ebp - 0x214]
push ecx
xor ebx, ebx
push 0x4585d0
mov ecx, edi
mov dword [ebp - 0x214], ebx
call fcn.00401c50
test eax, eax
js 0x408457
mov eax, dword [ebp - 0x214]
mov edx, dword [eax]
push 0x4000c
push eax
mov eax, dword [edx + 0x64]
call eax
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x74]
push ebx
push eax
call edx
mov eax, dword [esi + 0x68]
mov ecx, dword [edi]
lea edx, [ebp - 0x210]
mov dword [eax + 0x2c], ecx
mov esi, dword [esi + 0x68]
push edx
push 0x4586c0
mov ecx, edi
mov dword [ebp - 0x210], ebx
call fcn.00401c50
test eax, eax
js 0x40848e
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push esi
push eax
call edx
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x4084a0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0x206
lea ecx, [ebp - 0x20a]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x218], 0x1b207
mov word [ebp - 0x20c], ax
call fcn.0043ecf0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x210]
call fcn.00408300
mov esi, dword [ebp - 0x210]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 4
lea ecx, [ebp - 0x218]
push ecx
push 4
push esi
push 0x458e70
push SysReAllocString
call edi
push 4
lea edx, [ebp - 0x218]
push edx
push 4
push esi
push 0x458e70
push reloc.OLEAUT32.dll_SysReAllocString
call edi
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408553
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x214]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x408568
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
xor ecx, ebp
call fcn.0043eb21
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40f080
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov word [ebp - 4], bx
mov byte [ebp - 2], al
mov byte [ebp - 1], 1
mov edx, dword [ebp - 4]
mov dword [edi + 0x1c], ecx
mov dword [edi + 8], edx
cmp dword [edi + 4], ebx
je 0x40f0c7
cmp dword [edi + 0x18], ebx
je 0x40f0c7
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp eax, dword [edi + 0x10]
jg 0x40f0c7
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 4]
cmp ecx, dword [edi + 0x14]
jle 0x40f0da
push 0
push 0
push 0
push 0x4595f4
call dword [sym.imp.GDI32.dll_CreateDCW]
mov ebx, eax
cmp dword [edi + 4], 0
jne 0x40f0f4
mov eax, dword [ebp + 8]
test eax, eax
je 0x40f0ea
push eax
jmp 0x40f0eb
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [edi + 4], eax
cmp dword [edi + 0x18], 0
je 0x40f127
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp eax, dword [edi + 0x10]
jg 0x40f10f
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 4]
cmp ecx, dword [edi + 0x14]
jle 0x40f18e
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 4]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [edi + 0x18]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0xc
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 0x20
jne 0x40f14c
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, dword [esi]
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [edi + 0x18], eax
cmp dword [edi + 0x18], 0
jne 0x40f16c
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
mov ecx, dword [esi + 8]
sub ecx, dword [esi]
push 0x20
push eax
push ecx
call fcn.00415380
add esp, 0xc
mov dword [edi + 0x18], eax
mov edx, dword [esi + 8]
sub edx, dword [esi]
mov ecx, dword [edi + 0x18]
mov dword [edi + 0x10], edx
mov eax, dword [esi + 0xc]
mov edx, dword [edi + 4]
sub eax, dword [esi + 4]
push ecx
push edx
mov dword [edi + 0x14], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [edi + 0xc], eax
test ebx, ebx
je 0x40f19b
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
xor ebx, ebx
cmp dword [edi + 0x1c], 0
jne 0x40f1d1
mov edx, dword [ebp + 8]
test edx, edx
je 0x40f1ee
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push 0xcc0020
push eax
push ecx
push edx
mov edx, dword [esi + 0xc]
sub edx, eax
mov eax, dword [esi + 8]
push edx
sub eax, ecx
mov ecx, dword [edi + 4]
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x40f1ee
mov edx, dword [esi + 0xc]
sub edx, dword [esi + 4]
mov eax, dword [esi + 8]
sub eax, dword [esi]
mov ecx, dword [edi + 4]
push 0x42
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
test ebx, ebx
je 0x40f1f9
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x414c10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [ebp + 8]
mov edi, eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x414d12
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x414d12
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push ebx
push eax
call fcn.0043e7c0
add esp, 0xc
lea edx, [ebp + 8]
push edx
xor esi, esi
push esi
push edi
mov dword [ebp + 8], esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x414d04
push 0x10
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x414cc6
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push ecx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov edx, dword [ebp - 4]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
jmp 0x414cc8
xor esi, esi
mov ecx, dword [esi + 4]
push 0xff000000
lea eax, [ebp - 8]
push eax
push ecx
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x414ce1
mov dword [esi + 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [ebp + 8]
mov esi, eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x415cb3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x415cb3
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.0043e7c0
add esp, 0xc
lea edx, [ebp + 0x10]
push edx
xor ebx, ebx
push ebx
push edi
mov dword [ebp + 0x10], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x415ca5
mov dword [ebp - 4], ebx
push 0x10
mov ebx, eax
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x415c4c
lea eax, [ebp + 8]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp + 8], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov ecx, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
jmp 0x415c4e
xor esi, esi
mov eax, dword [esi + 4]
push 0xff000000
lea edx, [ebp - 4]
push edx
push eax
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x415c67
mov dword [esi + 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
test eax, eax
je 0x415c97
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0xc]
push eax
call fcn.00415880
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x416c20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
mov esi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416c82
push edi
mov edi, dword [ebp + 0xc]
push ebx
lea ecx, [ebp + 8]
mov dword [esi + 0x140], edi
call fcn.00408300
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x154]
call fcn.00415ae0
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
test edx, edx
jg 0x416c7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x417a70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x417a7e
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x417b5d
mov esi, edx
shr esi, 3
push edi
jmp 0x417aa0
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ac18]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ac18]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ac18]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ac18]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ac18]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ac18]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ac18]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45ac18]
add ecx, 8
sub edx, 8
dec esi
jne 0x417aa0
pop edi
test edx, edx
je 0x417b7a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x45ac18]
inc ecx
dec edx
jne 0x417b61
not eax
pop esi
pop ebp
ret

Function at 0x417b80
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x45ac18]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x45ac18]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x417bd0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
mov al, byte [ebp + 0xc]
shr edx, 8
xor al, dl
mov edx, dword [esi]
push edi
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x45ac18]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x45ac18]
pop edi
mov dword [esi + 8], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x418030
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x418070
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418064
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
pop edi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x418081
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.0043e7c0
add dword [edi + 0x1c], esi
add esp, 0xc
pop edi
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
Function at 0x4182b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 8]
cmp byte [esi], 0
je 0x4182fb
cmp byte [esi + 1], 0
je 0x418303
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x418317
cmp byte [esi + 1], 0
je 0x41830b
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp + 8], ebx
jmp 0x41831f
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x4182d5
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp + 8], 0
mov ebx, dword [ebp + 8]
jmp 0x41831f
mov eax, dword [esi + 0x1c]
mov dword [ebp + 8], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 4], edi
cmp ebx, edi
jae 0x418331
mov dword [ebp - 4], ebx
mov edi, ebx
push 0x404
call fcn.0043e5bb
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x41834f
pop edi
pop ebx
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x10], 0xffffffff
cmp edi, eax
jbe 0x41845d
jmp 0x41836e
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
add eax, 0x400
mov dword [ebp - 8], edi
cmp eax, edi
ja 0x41837d
mov dword [ebp - 8], eax
mov eax, ebx
sub eax, dword [ebp - 8]
sub ebx, eax
mov dword [ebp - 0x18], eax
cmp ebx, 0x404
jbe 0x418394
mov ebx, 0x404
cmp byte [esi], 0
je 0x4183b9
cmp byte [esi + 1], 0
je 0x41845d
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4183bc
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x4183e5
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4183e0
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x41840e
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x4183f6
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0xc]
push edi
add ecx, eax
push ecx
push edx
call fcn.0043e7c0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x41845d
lea eax, [ebx - 3]
test eax, eax
js 0x41844b
mov edi, edi
mov ecx, dword [ebp - 0xc]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x41843f
cmp byte [eax + ecx + 1], 0x4b
jne 0x41843f
cmp byte [eax + ecx + 2], 5
jne 0x41843f
cmp byte [eax + ecx + 3], 6
je 0x418445
test eax, eax
jns 0x418420
jmp 0x41844b
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41845d
mov edx, dword [ebp - 4]
cmp dword [ebp - 8], edx
jb 0x418365
mov eax, dword [ebp - 0xc]
push eax
call fcn.0043e530
mov eax, dword [ebp - 0x10]
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x419490
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x469ea0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4194c4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4194c4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x4195ae
mov ecx, ebx
mov edx, ebx
cmp ax, 0x2f
je 0x4194e0
cmp ax, 0x5c
jne 0x4194e2
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x4194d4
push edi
cmp ecx, ebx
je 0x419522
sub ecx, ebx
sar ecx, 1
lea edi, [ecx + ecx]
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0043e7c0
lea edx, [ebp - 0x414]
push edx
xor ecx, ecx
push esi
mov word [ebp + edi - 0x414], cx
call fcn.00419490
add esp, 0x14
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x41954f
lea edx, [ebp - 0x20c]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x419540
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419553
lea edi, [ebp - 0x20c]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x419570
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x4195ae
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043eb21
mov esp, ebp
pop ebp
ret

Function at 0x41aff0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x41b0c2
cmp dword [ebx + 4], 0xffffffff
jne 0x41b0c2
push edi
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41b021
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp eax, 0x5c
je 0x41b058
cmp eax, 0x2f
je 0x41b058
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41b045
mov eax, dword [0x45b13c]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
cmp edi, 1
jne 0x41b082
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41b082
pop esi
pop edi
mov eax, 0x2000000
pop ebx
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0x10]
push ecx
push edi
push edx
push esi
call fcn.00417f20
add esp, 0x10
test eax, eax
jne 0x41b0a2
mov eax, dword [ebp + 0x10]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
push eax
call fcn.0041aa10
add esp, 4
mov dword [ebx], eax
neg eax
sbb eax, eax
pop esi
and eax, 0xfffffe00
pop edi
add eax, 0x200
pop ebx
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
pop ebp
ret 0xc
Function at 0x421fd0
Capabilities:
Create process on windows

Disassembly:
cmp dword [0x46cba0], 0x10
mov eax, dword [0x46cb8c]
jae 0x421fe3
mov eax, 0x46cb8c
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
ret 0x10

Function at 0x422000
Capabilities:
Create process on windows

Disassembly:
cmp dword [0x46cc10], 0x10
mov eax, dword [0x46cbfc]
jae 0x422013
mov eax, 0x46cbfc
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
ret 0x10

Function at 0x422030
Capabilities:
Create process on windows

Disassembly:
cmp dword [0x46cc80], 0x10
mov eax, dword [0x46cc6c]
jae 0x422043
mov eax, 0x46cc6c
push 5
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
ret 0x10

Function at 0x4220c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [ebp + 8]
mov esi, eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4221e5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x4221e5
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.0043e7c0
add esp, 0xc
lea edx, [ebp + 0x10]
push edx
xor ebx, ebx
push ebx
push edi
mov dword [ebp + 0x10], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x4221d7
mov dword [ebp - 4], ebx
push 0x10
mov ebx, eax
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x42217c
lea eax, [ebp + 8]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp + 8], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov ecx, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
jmp 0x42217e
xor esi, esi
mov eax, dword [esi + 4]
push 0xff000000
lea edx, [ebp - 4]
push edx
push eax
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x422197
mov dword [esi + 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
push edx
add ecx, 0x154
call fcn.00415880
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc