joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404950
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
push str.SETUP_COMPRESS_SETUP
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404994
push 0
push 0
push 0x47050c
call fcn.0044acf8
mov dword [ebp - 4], 1
cmp dword [ebp - 8], 0
je 0x4049a4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4049ea
Capabilities:
Copy file
Create process on windows
Delete file
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4594d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4a4
cmp dword [ebp + 8], 1
jne 0x404b75
push 0x104
lea eax, [ebp - 0x428]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x324]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, 0x4774d8
call fcn.00401e00
push eax
lea edx, [ebp - 0x324]
push edx
call fcn.00423870
add esp, 8
push 0
lea eax, [ebp - 0x324]
push eax
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0x4000000
push 3
push 0
push 1
push 0
lea edx, [ebp - 0x324]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x48c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x428]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x324]
push edx
push str._s____d_____s_
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0x44
push 0
lea ecx, [ebp - 0x46c]
push ecx
call fcn.00423570
add esp, 0xc
mov dword [ebp - 0x46c], 0x44
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x46c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x220]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x48c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x488]
call fcn.00416fdb
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x324]
push ecx
lea ecx, [ebp - 0x488]
call fcn.0041709e
test eax, eax
jne 0x404b6e
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x488]
call fcn.00417018
jmp 0x404c33
push 1
call fcn.00423745
mov edx, dword [0x479bb4]
mov eax, dword [edx + 4]
push eax
call fcn.00423653
add esp, 4
mov dword [ebp - 0x490], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x490]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x490]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x4b0]
call fcn.00416fdb
mov dword [ebp - 4], 1
mov eax, dword [0x479bb4]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x494], 0
cmp dword [ebp - 0x494], 0xf
jge 0x404c21
push 0
mov edx, dword [0x479bb4]
mov eax, dword [edx + 8]
push eax
lea ecx, [ebp - 0x4b0]
call fcn.0041709e
test eax, eax
je 0x404c21
mov ecx, dword [0x479bb4]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x494]
add eax, 1
mov dword [ebp - 0x494], eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x404bd4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4b0]
call fcn.00417018
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x407e55
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4596e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x148
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x140], ecx
mov eax, dword [ebp - 0x140]
movsx ecx, byte [eax + 0xe4]
cmp ecx, 0xffffffff
je 0x407ec1
mov edx, 1
test edx, edx
je 0x407ea7
mov dword [ebp - 0x144], 0
jmp 0x407eba
push str.No_opened_file._n
call fcn.0040ae50
add esp, 4
mov dword [ebp - 0x144], eax
xor eax, eax
jmp 0x408078
mov dword [ebp - 0x14], 1
mov eax, dword [ebp + 0xc]
and eax, 0xff
test eax, eax
jne 0x40803e
mov ecx, dword [ebp - 0x140]
cmp dword [ecx + 0x60], 0
jne 0x407f0c
mov ecx, dword [ebp - 0x140]
call fcn.00407933
mov edx, dword [ebp - 0x140]
mov ecx, dword [edx + 0x68]
cmp ecx, dword [eax + 0x14]
je 0x407f0a
push 0xffffffffffffff9a
mov ecx, dword [ebp - 0x140]
call fcn.00407179
jmp 0x407f13
mov dword [ebp - 0x14], 0xffffffff
mov ecx, dword [ebp - 0x140]
call fcn.00407933
xor edx, edx
mov dx, word [eax + 0xe]
cmp edx, 8
jne 0x407f38
mov eax, dword [ebp - 0x140]
add eax, 0x28
push eax
call fcn.00410b60
cmp dword [ebp + 8], 0
je 0x40803e
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.0040b040
lea ecx, [ebp - 0x134]
push ecx
call fcn.0043caf9
mov dword [ebp - 0x148], eax
mov edx, dword [ebp - 0x148]
push edx
lea ecx, [ebp - 0x124]
call fcn.0040b230
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x12c]
call fcn.0040b230
mov byte [ebp - 0x11c], 0
mov ecx, dword [ebp - 0x140]
call fcn.00407933
mov dword [ebp - 0x150], eax
lea ecx, [ebp - 0x138]
push ecx
mov ecx, dword [ebp - 0x150]
call fcn.0040e2f2
mov dword [ebp - 0x154], eax
mov edx, dword [ebp - 0x154]
push edx
lea ecx, [ebp - 0x128]
call fcn.0040b230
lea eax, [ebp - 0x12c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00446ef4
mov ecx, dword [ebp - 0x140]
call fcn.00407933
mov dword [ebp - 0x158], eax
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x408012
mov dword [ebp - 0x14], 0xfffffffe
jmp 0x408037
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x140]
add ecx, 0xe8
call fcn.0040c330
mov edx, dword [ebp - 0x140]
mov byte [edx + 0xe4], 0
mov ecx, dword [ebp - 0x140]
add ecx, 0x6c
call fcn.0040b744
mov ecx, dword [ebp - 0x140]
call fcn.0040ad25
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408ad5
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45983f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0043fa90
mov dword [ebp - 4], 0
push 0x470c54
lea ecx, [ebp - 0x10]
call fcn.0043c719
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401e00
push eax
lea edx, [ebp - 0x18]
push edx
call fcn.0040858c
add esp, 8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0040b200
and eax, 0xff
test eax, eax
jne 0x408b79
lea ecx, [ebp - 0x10]
call fcn.00401e00
push eax
call fcn.00408c82
add esp, 4
xor edx, edx
cmp eax, 0xffffffff
sete dl
mov byte [ebp - 0x1c], dl
mov eax, dword [ebp - 0x1c]
and eax, 0xff
test eax, eax
jne 0x408b79
mov dword [ebp - 0x3c], 0
jmp 0x408b80
mov dword [ebp - 0x3c], 1
mov cl, byte [ebp - 0x3c]
mov byte [ebp - 0x14], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0043fa22
mov edx, dword [ebp - 0x14]
and edx, 0xff
test edx, edx
je 0x408bba
mov byte [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043fa22
mov al, byte [ebp - 0x20]
jmp 0x408c74
lea ecx, [ebp - 0x10]
call fcn.00401e00
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040858c
add esp, 8
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x44]
call fcn.00401e00
push eax
call fcn.00408ad5
add esp, 4
and eax, 0xff
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x24], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0043fa22
mov edx, dword [ebp - 0x24]
and edx, 0xff
test edx, edx
je 0x408c2b
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043fa22
mov al, byte [ebp - 0x2c]
jmp 0x408c74
push 0
lea ecx, [ebp - 0x10]
call fcn.00401e00
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x408c5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x408c5e
lea ecx, [ebp - 0x10]
call fcn.00401e00
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x408c2b
mov byte [ebp - 0x30], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043fa22
mov al, byte [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x409c9d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459933
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.00409d12
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
call fcn.00401e00
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor ecx, ecx
cmp eax, 2
sete cl
mov byte [ebp - 0x10], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0043fa22
mov al, byte [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40ff49
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459f0d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx + 0x1c]
mov eax, dword [ebp - 0x34]
mov edx, dword [eax + 0x1c]
mov eax, dword [edx]
call dword [eax + 0x18]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
call fcn.00401e00
push eax
lea edx, [ebp - 0x30]
push edx
call fcn.00409d12
add esp, 8
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
call fcn.00401e00
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x28], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0043fa22
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0043fa22
mov ecx, dword [ebp - 0x28]
and ecx, 0xff
test ecx, ecx
je 0x410001
xor eax, eax
jmp 0x410017
mov edx, dword [ebp - 0x24]
imul edx, dword [ebp - 0x18]
imul edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x411340
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x41134f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x4710f4]
test eax, eax
je 0x41135d
call fcn.004112e0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x41145f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x477708]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x477708]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x477708]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x477708]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x477708]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x477708]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x477708]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x477708]
xor eax, ecx
inc esi
dec edi
jne 0x411377
pop edi
test edx, edx
je 0x411481
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x477708]
xor eax, ecx
inc esi
dec edx
jne 0x411463
pop ebx
pop esi
not eax
ret 0xc
Function at 0x43aa10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004249b0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x43aadb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x43aadb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x43aa8e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x43aa99
or bh, 8
and edi, 0x8000000
je 0x43aab4
mov eax, dword [0x47b7fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x43aadb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43aeb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x43aedb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x43aeff
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x43af1a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x441387
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4413a9
cmp dword [edi + 0x3c], 0
jne 0x4413a9
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00450b23
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004413e8
pop edi
pop esi
pop ebx
ret 8

Function at 0x443c29
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x443c61
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0043fec9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0043fea1
jmp 0x443c6d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x445a2b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x445a6d
call fcn.00450b23
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x445a6d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x445a64
xor eax, eax
jmp 0x445a75
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00445a7b
pop edi
pop esi
pop ebx
ret 4
Function at 0x446ef4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x446f24
push edi
call ebx
push eax
call fcn.00440d89
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x446f4e
test byte [ebp - 4], 1
je 0x446f4e
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x446f4e
push edi
call ebx
push eax
call fcn.00440d89
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x446ff4
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00446e41
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x446f80
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00446e41
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x446f96
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00446e41
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x446fc0
push 0
call ebx
push eax
call fcn.00440d89
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x446fde
push eax
call ebx
push eax
call fcn.00440d89
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x446ff2
push eax
call ebx
push eax
call fcn.00440d89
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x44701b
test byte [ebp - 4], 1
jne 0x44701b
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x44701b
push edi
call ebx
push eax
call fcn.00440d89
pop edi
pop ebx
leave
ret 8
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
jmp fcn.00401219