joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c3c30
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x9c]
test eax, eax
je 0x4c3c95
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0x6c]
push eax
push ecx
mov dword [esi + 0x9c], 0
call dword [sym.imp.GDI32.dll_RestoreDC]
mov edx, dword [esi + 0x6c]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x70]
mov dword [esi + 0x6c], 0
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esi + 0x64]
push 0
push ecx
mov dword [esi + 0x70], 0
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x64]
push 0x3e8
push edx
call dword [sym.imp.USER32.dll_KillTimer]
pop esi
ret

Function at 0x4c3cb0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x6c]
cmp eax, edi
je 0x4c3cea
mov ecx, dword [esi + 0x98]
push ecx
push eax
call dword [sym.imp.GDI32.dll_RestoreDC]
mov edx, dword [esi + 0x6c]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x70]
mov dword [esi + 0x6c], edi
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esi + 0x70], edi
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call ebx
push 0xa
push edi
mov dword [esi + 0x74], eax
call ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4f
mov dword [esi + 0x78], eax
call ebx
push eax
push 0x4e
call ebx
push eax
push 0x4d
call ebx
push eax
push 0x4c
call ebx
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, eax
sub ecx, edx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x74], ecx
mov ecx, dword [esp + 0x1c]
mov ebp, ecx
mov dword [esi + 0x80], ebx
sub ebp, ebx
mov dword [esi + 0x78], ebp
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x4c3d82
mov dword [esi + 0x20], 1
mov edx, dword [ebp]
mov ebx, dword [ebp + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
jmp 0x4c3d89
mov dword [esi + 0x20], 0
sub eax, edx
sub ecx, ebx
add eax, 8
add ecx, 8
push edi
mov ebp, eax
mov ebx, ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov dword [esi + 0x6c], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push ebx
push ebp
push edi
mov dword [esi + 0x98], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edx, dword [esi + 0x6c]
push eax
push edx
mov dword [esi + 0x70], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0x6c]
push 0xcc0020
push eax
push ecx
push edi
push ebx
push ebp
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4
Function at 0x4c3e00
Capabilities:
Hide graphical window

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x64]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4c3e19
pop esi
add esp, 8
ret
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x44]
mov dword [esi + 0x9c], 1
test eax, eax
jne 0x4c3e4c
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4c3e45
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.004c3ca0
mov edx, dword [esi + 0x90]
mov eax, dword [esi + 0x8c]
push edx
push eax
mov ecx, esi
call fcn.004c2d90
mov ecx, dword [esi + 0x64]
push 0
push 0xa
push 0x3e8
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [esi + 0x64]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
push 1
mov ecx, esi
call fcn.004c43a0
mov eax, dword [esi + 0x64]
push 0x63
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x4c46f0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x14
push ebp
mov ebp, ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4c47a1
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [ebp + 0x64]
mov esi, eax
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x20], eax
push edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push esi
sub edi, ecx
sub ebx, eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x6c]
push eax
call dword [sym.imp.GDI32.dll_SaveDC]
push ebx
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, dword [esp + 0x10]
mov edi, eax
push edi
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
mov ecx, ebp
call fcn.004c3eb0
push edi
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x14
ret 4
Function at 0x4c47b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4c486b
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call esi
test eax, eax
je 0x4c486b
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4c486b
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
call esi
inc eax
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4c4865
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov dword [ebp - 4], eax
call esi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.004c5440
mov eax, dword [ebp + 8]
mov edi, esp
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp - 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4c4950
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edx, dword [esp + 0xc]
xor eax, eax
test edx, edx
setne al
lea ecx, [esp + 0xc]
push esi
add eax, 0x80000001
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x4c49b0
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 8]
shl eax, 1
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x10]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret

Function at 0x4c49c0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
setne al
lea ecx, [esp + 8]
push esi
add eax, 0x80000001
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x4c4a0d
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [esp + 0xc]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret
Function at 0x4c4a40
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xc1c
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [esp + 0x21c]
push 0x208
push ecx
push eax
call fcn.004c4a20
mov edx, dword [0x4e3a2c]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], edx
push 0x4db4c8
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
call fcn.004c60da
lea ecx, [esp + 0x230]
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.004c60da
lea eax, [esp + 0x30]
push str.___bg
push eax
call fcn.004c60da
mov ecx, dword [0x4e3a2c]
xor eax, eax
mov dword [esp + 0x448], ecx
mov ecx, 0x1ff
lea edi, [esp + 0x44c]
add esp, 0x24
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc2c]
lea edx, [esp + 8]
test ecx, ecx
setne al
add eax, 0x80000001
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, dword [esp + 0xc28]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x424]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push esi
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c4b79
lea ecx, [esp + 0x424]
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.004c5509
add esp, 8
test eax, eax
je 0x4c4b6b
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 8]
lea ecx, [esp + 0x14]
shl eax, 1
push eax
push ecx
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
mov eax, 1
pop esi
add esp, 0xc1c
ret
pop edi
xor eax, eax
pop esi
add esp, 0xc1c
ret
Function at 0x40449c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x411038], 0
je 0x4044fd
cmp word [0x411314], 0xd7b2
jne 0x4044c5
cmp dword [0x41131c], 0
jbe 0x4044c5
mov eax, 0x411310
call dword [0x41132c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404528
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x410018], 0
jne 0x404519
push 0
push 0x410760
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407030
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov edi, edx
mov esi, eax
test esi, esi
jne 0x40705f
push 0x20a
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, edi
call fcn.00404840
jmp 0x4070b2
call sub.kernel32.dll_GetCommandLineW_1
call fcn.00406fe0
mov ebx, eax
mov eax, ebx
call fcn.00406ff4
dec esi
test esi, esi
jge 0x407064
mov edx, eax
sub edx, ebx
sar edx, 1
jns 0x407082
adc edx, 0
cmp edx, 2
jl 0x40709e
cmp word [ebx], 0x22
jne 0x40709e
mov edx, eax
sub edx, 2
cmp word [edx], 0x22
jne 0x40709e
add ebx, 2
sub eax, 2
mov ecx, eax
sub ecx, ebx
sar ecx, 1
jns 0x4070a9
adc ecx, 0
mov eax, edi
mov edx, ebx
call fcn.00404840
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x407144
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404bf0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40715d
test al, 0x10
je 0x407161
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4072b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40731a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20a]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathW
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
call fcn.00404c10
mov eax, dword [ebp - 0x210]
mov edx, ebx
call fcn.00407244
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407321
lea eax, [ebp - 0x210]
call fcn.00404704
ret

Function at 0x407358
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, edx
mov ebx, eax
mov dword [esp + 8], 4
xor eax, eax
mov dword [esp], eax
test ebx, ebx
je 0x40739c
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
mov eax, esi
call fcn.00404bf0
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40739c
cmp dword [esp + 4], 4
je 0x4073a1
xor eax, eax
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x4073ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00404bf0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
sete al
pop ebp
ret

Function at 0x407708
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp + 8]
push eax
push ecx
push esi
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
je 0x407771
push ebx
push esi
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 8], eax
push ebx
push esi
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
je 0x407771
push ebx
call sub.kernel32.dll_GlobalLock
mov esi, eax
test esi, esi
jne 0x407758
call sub.kernel32.dll_GetLastError_1
cmp eax, 6
jne 0x407771
mov esi, ebx
mov edx, esi
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0040748c
mov edi, eax
cmp esi, ebx
je 0x407771
push ebx
call sub.kernel32.dll_GlobalUnlock
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x408ce0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
and dword [ebx + 0x24], 0xefffffff
test dl, dl
je 0x408cf5
or dword [ebx + 0x24], 0x10000000
cmp dword [ebx + 0x1c], 0
je 0x408d2b
test dl, dl
je 0x408d14
mov eax, ebx
call dword [0x41085c]
push 5
mov eax, dword [ebx + 0x1c]
push eax
call sub.user32.dll_ShowWindow
jmp 0x408d2b
and byte [ebx + 0x37], 0xfe
push 0
mov eax, dword [ebx + 0x1c]
push eax
call sub.user32.dll_ShowWindow
mov eax, ebx
call dword [0x41085c]
pop ebx
ret

Function at 0x40bcec
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov dword [esp], ecx
mov esi, edx
mov edi, eax
mov eax, dword [esp]
inc eax
cmp eax, 5
jge 0x40bd09
xor eax, eax
jmp 0x40bd90
movzx ecx, byte [esi]
and cl, 0xff
movzx ecx, cl
mov eax, ecx
mov ebx, 9
cdq
idiv ebx
mov dword [esp + 4], edx
mov eax, ecx
mov ecx, 9
cdq
idiv ecx
mov ecx, eax
mov eax, ecx
mov ebx, 5
cdq
idiv ebx
mov dword [esp + 8], edx
mov eax, ecx
mov ecx, 5
cdq
idiv ecx
mov dword [esp + 0xc], eax
xor ebx, ebx
xor eax, eax
mov ecx, eax
add ecx, ecx
add ecx, ecx
add ecx, ecx
lea edx, [eax + 1]
movzx edx, byte [esi + edx]
and dl, 0xff
movzx edx, dl
shl edx, cl
add ebx, edx
inc eax
cmp eax, 4
jne 0x40bd4c
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, edi
call fcn.0040b800
test al, al
jne 0x40bd87
xor eax, eax
jmp 0x40bd90
mov edx, ebx
mov eax, edi
call fcn.0040b7b0
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x40c184
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
mov eax, ecx
test edx, edx
jle 0x40c1ab
mov ecx, eax
and cl, 0xff
xor cl, byte [esi]
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x413e04]
shr eax, 8
xor ecx, eax
mov eax, ecx
inc esi
dec edx
test edx, edx
jg 0x40c18d
pop esi
ret
Function at 0x4023c0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov eax, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x402439
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov al, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 8]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402890
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
and ecx, 0xffff
push eax
push ecx
push 0
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402509
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402509
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x402509
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebx
mov esi, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString
call fcn.004023c0
add esp, 0xc
test al, al
push ebp
jne 0x40253d
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x401bde
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401c1d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401c1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401c1d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401c1d
cmp dword [ecx + 0x74], 0xe
jbe 0x401c1d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x79190c29
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x6f51281b
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x100074f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000751c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10007544
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000754a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x100075b2
jg 0x10007561
test esi, esi
je 0x100075b2
test ecx, ecx
jl 0x100075ad
jg 0x1000756b
test eax, eax
je 0x100075ad
cmp edi, ecx
jg 0x1000757f
jl 0x10007575
cmp esi, eax
jae 0x1000757f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x100075b5
mov ecx, dword [ebp + 8]
jmp 0x100075bf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x100075d9
jg 0x100075bf
test esi, esi
je 0x100075d9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x100075d9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100075f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x1000761c
jl 0x10007610
test ecx, ecx
jne 0x1000761c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10007635
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x10007683
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10007689
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x10007689
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x100076f6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x100076b2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x100076e4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x100076f6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x100076c0
test edi, edi
je 0x100076f6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc