joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7003567
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x7003576
pop dword [ebp - 0x20]
mov eax, 0x7003576
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x76b20dfb
sub dword [ebp - 0x30], 0x285fc8b0
mov dword [ebp - 0x2c], 0xa2ea8e9
add dword [ebp - 0x2c], 0x2804a35c
mov dword [ebp - 0x28], 0x75ebbf6c
sub dword [ebp - 0x28], 0x299f7b3e
mov dword [ebp - 0x24], 0x22862f7b
sub dword [ebp - 0x24], 0x22862f7b
lea eax, [ebp - 0x30]
push eax
mov eax, 0x5e90c3a3
add eax, 0xa8706c8d
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xe7c7ada8
sub dword [ebp - 0x30], 0x73554452
mov dword [ebp - 0x2c], 0xc5ee4dd4
add dword [ebp - 0x2c], 0x7b7e13a1
mov dword [ebp - 0x28], 0xe927140d
sub dword [ebp - 0x28], 0x85b7a7a1
mov dword [ebp - 0x24], 0x655b1df0
sub dword [ebp - 0x24], 0x655b1df0
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x9311908f
add eax, 0x73ef9fa5
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3d8b7
push 0
call eax
mov ecx, 0x149ca089
add ecx, 0xeb63b2db
mov edi, eax
mov esi, 0xc753958d
sub esi, 0xc051938d
add esi, dword [ebp - 0x20]
mov ebx, 0x769f2a5e
mov dword [ebp - 4], 0x98ce8fdf
mov edx, dword [esi]
xor dword [ebp - 0xc], 0xf2fea945
add edx, ebx
add dword [ebp - 4], 0x89002be3
mov dword [edi], edx
sub dword [ebp - 0x1c], eax
add edi, 0x936850c6
sub edi, 0x936850c2
add esi, 4
loop 0x700368d
add eax, 0x17685c34
add eax, 0xe898e42f
mov ebx, eax
add eax, 0x10f5d128
add eax, 0xef0a2edd
mov ecx, 0x819ba085
sub ecx, 0x7a9ba085
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x700d29f
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x70120f1
call fcn.07001cf8
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700d491
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700dd8a
lea ecx, [ebp - 0x10]
call fcn.0700d23c
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700d30c
mov eax, dword [eax + 0x14]
jmp 0x700d311
mov eax, 0x70138c2
push 0x7015240
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x700d343
mov ecx, dword [edi + 4]
call fcn.070076d1
lea ecx, [ebp - 0x10]
mov dword [edi + 8], eax
call fcn.07003567
mov eax, edi
call fcn.07001ea7
ret 4
push str.file_does_not_exist
push ebx
call fcn.07003567
int3
Function at 0x414ba0
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4157a0
call fcn.00414e64
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x414bf3
mov eax, dword [0x40003c]
lea eax, [eax + 0x400000]
cmp dword [eax], 0x4550
jne 0x414bf3
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x414c0b
cmp ecx, 0x20b
je 0x414bf8
mov dword [ebp - 0x1c], ebx
jmp 0x414c1f
cmp dword [eax + 0x84], 0xe
jbe 0x414bf3
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x414c19
cmp dword [eax + 0x74], 0xe
jbe 0x414bf3
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x418584], edi
mov dword [0x418588], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x418574]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x418570]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x418580], eax
call fcn.0040828c
cmp dword [0x417170], ebx
jne 0x414c7c
push fcn.0040828c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00414e52
push 0x417014
push 0x417010
call sub.msvcrt.dll__initterm
mov eax, dword [0x41856c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x418568]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x41700c
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x414d07
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x414ce7
cmp cl, 0x22
jne 0x414cd8
cmp byte [eax], 0x22
jne 0x414cf0
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x414cfb
cmp cl, 0x20
jbe 0x414cec
test byte [ebp - 0x54], 1
je 0x414d12
movzx ecx, word [ebp - 0x50]
jmp 0x414d15
cmp byte [eax], 0x20
jbe 0x414cf0
inc eax
mov dword [ebp - 0x20], eax
jmp 0x414d07
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.00408e80
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x414d33
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x414d6f
mov eax, esi
jmp 0x414d83
call fcn.00414e9f
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x50873fc1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push 0x50871668
push reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5087404c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x50871684
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0xfa
mov byte [ebp - 0x114], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x50874034
xor eax, eax
mov cl, byte [eax + 0x5087165c]
mov byte [ebp + eax - 0x114], cl
inc eax
cmp cl, bl
jne 0x50874022
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x50874739
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push esi
mov esi, ecx
call fcn.50874717
and byte [esi + 0xc], 0
mov eax, 0x50870000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push 0
push eax
mov dword [esi], 0x3c
call sub.MSVCR70.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
jne 0x50874788
cmp dword [ebp - 0x18], 5
jb 0x508747a0
jmp 0x5087479c
cmp dword [ebp - 0xc], 1
jne 0x508747a0
cmp dword [ebp - 0x18], 4
ja 0x5087479c
jne 0x508747a0
cmp dword [ebp - 0x14], 0
jbe 0x508747a0
mov byte [esi + 0xc], 1
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x10], 0x700
mov dword [esi + 0x14], 0x50875050
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
add ebp, 0x78
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40f8ae
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x40f955
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x40f955
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebx
push ebx
mov dword [eax], ebx
call esi
mov edi, eax
cmp edi, ebx
jne 0x40f8e2
push 0xfffffffffffffffe
pop eax
jmp 0x40f958
push edi
call fcn.00428bd9
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
jne 0x40f901
mov ecx, 0x482e04
call fcn.0041ff07
push eax
call fcn.00420bbf
pop ecx
push dword [ebp - 4]
push edi
call esi
test eax, eax
jne 0x40f91b
push 0xfffffffffffffffc
pop edi
push dword [ebp - 4]
call fcn.00428bce
pop ecx
mov eax, edi
jmp 0x40f958
mov esi, dword [ebp - 4]
xor edi, edi
cmp byte [esi], bl
je 0x40f90e
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40f948
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.0040f6db
mov edi, eax
add esp, 0x10
cmp edi, ebx
jg 0x40f90e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
jmp 0x40f920
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x410506
Capabilities:
Capture screenshot

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0
je 0x410516
call fcn.00411670
push dword [0x4825f8]
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x410544
push edi
push dword [0x4825f8]
call dword [sym.imp.USER32.dll_ReleaseDC]
or eax, 0xffffffff
jmp 0x4105bb
push dword [esi + 4]
push dword [esi]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push edi
mov ebx, eax
push dword [0x4825f8]
call dword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
jne 0x410571
push dword [esi + 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0xfffffffffffffffe
pop eax
jmp 0x4105bb
push ebx
push dword [esi + 0x10]
call dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
jne 0x41058c
push dword [esi + 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
push 0xfffffffffffffffd
jmp 0x4105b1
push 0xcc0020
push dword [esi + 0xc]
push dword [esi + 8]
push dword [0x482604]
push dword [esi + 4]
push dword [esi]
push 0
push 0
push dword [esi + 0x10]
call dword [sym.imp.GDI32.dll_BitBlt]
push 1
pop esi
push ebx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x41070a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
xor eax, eax
cmp byte [0x482594], al
je 0x4108d3
push ebx
push esi
push edi
push str.Times_New_Roman
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x2bc
push 0x5a
push 0x5a
push eax
push 0x1e
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
mov dword [ebp - 4], eax
push dword [0x482604]
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [sym.imp.GDI32.dll_SetTextColor]
push 0xa0a0a
push dword [0x482604]
call esi
push dword [0x4823b8]
mov ecx, 0x4823b8
call fcn.0041ff07
mov edi, dword [sym.imp.GDI32.dll_TextOutA]
push eax
push 0x6f
push 0xc
push dword [0x482604]
call edi
mov ebx, 0xff
push ebx
push dword [0x482604]
call esi
push dword [0x4823b8]
mov ecx, 0x4823b8
call fcn.0041ff07
push eax
push 0x6e
push 0xa
push dword [0x482604]
call edi
mov byte [ebp - 0x38], 0x61
mov byte [ebp - 0x37], 0x84
mov byte [ebp - 0x36], 0x6a
mov byte [ebp - 0x35], 0xb7
mov byte [ebp - 0x34], 0x15
mov byte [ebp - 0x33], 0x42
mov byte [ebp - 0x32], 0x6c
mov byte [ebp - 0x31], 0x9b
mov byte [ebp - 0x30], 0xbf
mov byte [ebp - 0x2f], 0x9e
mov byte [ebp - 0x2e], 0xf3
mov byte [ebp - 0x2d], 0x44
mov byte [ebp - 0x2c], 0x75
mov byte [ebp - 0x2b], 0xa2
mov byte [ebp - 0x2a], 0xbb
mov byte [ebp - 0x29], 0xf2
mov byte [ebp - 0x28], 0x1e
mov byte [ebp - 0x27], 0x43
mov byte [ebp - 0x26], 0x7c
mov byte [ebp - 0x25], 0x31
mov byte [ebp - 0x24], 0x94
mov byte [ebp - 0x23], 0xa
mov byte [ebp - 0x22], 5
mov byte [ebp - 0x21], 0x4d
mov byte [ebp - 0x20], 0x74
mov byte [ebp - 0x1f], 0x3a
mov byte [ebp - 0x1e], 0x1b
mov byte [ebp - 0x1d], 0x48
mov byte [ebp - 0x1c], 0x98
mov byte [ebp - 0x1b], 0x16
mov byte [ebp - 0x1a], 0x63
mov byte [ebp - 0x19], 0xb2
mov byte [ebp - 0x18], 0x9f
mov byte [ebp - 0x17], 0xf4
lea ecx, [ebp - 0x10]
mov byte [ebp - 0x16], 0x74
mov byte [ebp - 0x15], 0xb6
mov byte [ebp - 0x14], 4
mov byte [ebp - 0x13], 0x8f
mov byte [ebp - 0x12], 0xda
call fcn.0041ef35
lea eax, [ebp - 0x38]
push 0x27
push eax
lea ecx, [ebp - 0x10]
call fcn.0041f20d
lea ecx, [ebp - 0x10]
call fcn.0041f4a6
lea ecx, [ebp - 0x10]
call fcn.0041f4a6
push 0xa0a0a
push dword [0x482604]
call esi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
call fcn.0041ff07
push eax
push 0x8d
push 0x13
push dword [0x482604]
call edi
push ebx
push dword [0x482604]
call esi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
call fcn.0041ff07
push eax
push 0x8c
push 0x11
push dword [0x482604]
call edi
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [ebp - 0x10]
call fcn.0041f06b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4116cb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
mov ecx, 0x482bc0
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x411745
lea eax, [ebp - 8]
push esi
push eax
mov dword [ebp - 8], esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 4]
push 2
push eax
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [ebp - 4], 0xd8ff
jne 0x41173a
push 2
pop eax
jmp 0x411745
xor eax, eax
cmp word [ebp - 4], 0x4d42
sete al
pop edi
pop esi
leave
ret 4

Function at 0x41174b
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
mov dword [ebp - 8], ecx
mov esi, 0x482770
push edi
push 0xc
mov ecx, esi
call fcn.0041fac3
xor edi, edi
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x41177f
mov dword [0x482600], edi
push 1
pop eax
jmp 0x4118df
lea eax, [ebp - 0x12c]
push str..bmp
push eax
call fcn.00420ef6
mov eax, dword [0x483770]
pop ecx
pop ecx
cmp eax, edi
push 1
pop ebx
mov dword [0x4836fc], ebx
mov dword [0x482710], ebx
je 0x4117b1
push eax
call fcn.00428bce
pop ecx
push 4
call fcn.00428bd9
cmp eax, edi
pop ecx
mov dword [0x483770], eax
jne 0x4117d3
mov ecx, 0x482e04
call fcn.0041ff07
push eax
call fcn.00420bbf
pop ecx
push 8
mov ecx, esi
call fcn.0041fac3
add eax, dword [ebp - 0x14]
mov ecx, dword [0x483770]
push 0xc
mov dword [ecx], eax
mov ecx, esi
call fcn.0041fac3
push eax
push 8
mov ecx, esi
call fcn.0041fac3
push eax
lea eax, [ebp - 0x12c]
push eax
mov ecx, 0x482bc0
call fcn.0041ff07
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
je 0x411820
push 0xffffffffffffff9d
jmp 0x411779
push edi
push 0x80
push 3
push edi
push ebx
lea eax, [ebp - 0x12c]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41184a
push 0xffffffffffffff9c
jmp 0x411779
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 8]
push eax
push esi
call fcn.00411b84
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp ebx, edi
jge 0x411894
mov eax, ebx
or ah, 1
jmp 0x4118df
push dword [0x4825f8]
call dword [sym.imp.USER32.dll_GetDC]
push edi
mov esi, eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push 4
push dword [ebp - 4]
push esi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push esi
mov dword [0x482600], eax
push dword [0x4825f8]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x10]
call fcn.00428bce
mov eax, dword [0x482600]
pop ecx
neg eax
sbb eax, eax
and eax, 0x6a
add eax, 0xffffff97
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411afa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x411b7c
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp + 8]
push 0
push eax
lea eax, [ebp - 0x10]
push 0xe
push eax
push edi
call esi
cmp dword [ebp + 8], 0xe
jne 0x411b75
cmp word [ebp - 0x10], 0x4d42
jne 0x411b75
lea eax, [ebp + 8]
push 0
push eax
lea eax, [ebp - 0x38]
push 0x28
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0x28
jne 0x411b7c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 4], ecx
mov al, 1
jmp 0x411b7e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
leave
ret 8

Function at 0x411b84
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0xe
pop edi
push edi
push 0
push ebx
call fcn.00428300
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp + 0x10]
push 0
push eax
push edi
push ebx
push dword [ebp + 8]
call esi
cmp dword [ebp + 0x10], edi
je 0x411bbb
push 0xfffffffffffffff8
jmp 0x411c9f
cmp word [ebx], 0x4d42
je 0x411bc9
push 0xfffffffffffffff7
jmp 0x411c9f
mov ebx, dword [ebp + 0xc]
sub ebx, edi
push ebx
call fcn.00428bd9
mov edi, dword [ebp + 0x18]
pop ecx
test eax, eax
mov dword [edi], eax
jne 0x411be5
push 0xffffffffffffffe0
jmp 0x411c9f
lea ecx, [ebp + 0x10]
push 0
push ecx
push ebx
push eax
push dword [ebp + 8]
call esi
cmp dword [ebp + 0x10], ebx
je 0x411bfb
push 0xffffffffffffffdf
jmp 0x411c4a
mov eax, dword [ebp + 0x14]
mov ecx, dword [edi]
push 1
mov dword [eax], ecx
mov ebx, dword [edi]
mov eax, ecx
pop esi
mov dword [ebp + 8], ebx
mov dx, word [eax + 0xe]
mov cl, dl
shl esi, cl
cmp dx, 8
jbe 0x411c1e
xor esi, esi
jmp 0x411c27
mov eax, dword [eax + 0x20]
test eax, eax
je 0x411c27
mov esi, eax
mov ecx, dword [ebp + 0x1c]
lea eax, [ebx + esi*4 + 0x28]
test esi, esi
mov dword [ecx], eax
je 0x411c9d
lea eax, [esi*4 + 8]
push eax
call fcn.00428bd9
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x411c57
push 0xffffffffffffffde
pop esi
push dword [edi]
call fcn.00428bce
pop ecx
mov eax, esi
jmp 0x411ca0
test esi, esi
mov word [ebx], 0x300
mov word [ebx + 2], si
jle 0x411c8a
mov ecx, dword [ebp + 8]
lea eax, [ebx + 5]
add ecx, 0x29
mov dl, byte [ecx + 1]
mov byte [eax - 1], dl
mov dl, byte [ecx]
mov byte [eax], dl
mov dl, byte [ecx - 1]
mov byte [eax + 1], dl
and byte [eax + 2], 0
add ecx, 4
add eax, 4
dec esi
jne 0x411c6d
push ebx
call dword [sym.imp.GDI32.dll_CreatePalette]
mov ecx, dword [ebp + 0x20]
push ebx
mov dword [ecx], eax
call fcn.00428bce
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x411d1b
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x4827b8
lea ecx, [ebp - 0xc]
call fcn.0041f009
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
dec eax
push eax
call fcn.0041f1a9
cmp al, 0x5c
je 0x411d49
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.0041f1be
push esi
push 0
push str.Backup_
lea ecx, [ebp - 0xc]
call fcn.0041f20d
push 1
lea ecx, [ebp - 0xc]
call fcn.0041ff07
push eax
call fcn.0040ef3c
mov esi, dword [ebp + 8]
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
test eax, eax
jle 0x411d8f
cmp byte [eax + esi], 0x5c
jne 0x411d75
lea eax, [eax + esi + 1]
push 0
push eax
lea ecx, [ebp - 0xc]
call fcn.0041f20d
push 0
lea ecx, [ebp - 0xc]
call fcn.0041ff07
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 9
lea ecx, [ebp - 0xc]
call fcn.0041f1be
push 0
push esi
lea ecx, [ebp - 0xc]
call fcn.0041f20d
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str._t_d_t_d_t_d_t_d
push eax
call fcn.0041f62d
add esp, 0x18
lea ecx, [ebp - 0xc]
call fcn.0041ff07
push eax
mov ecx, 0x482c78
call fcn.00425a5c
lea ecx, [ebp - 0xc]
call fcn.0041f06b
pop esi
leave
ret 0x14
Function at 0x411df3
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x18]
mov dword [esi + 4], ebx
mov dword [ebp - 4], ebx
call fcn.0041ef35
push dword [ebp - 4]
mov edi, 0x482a6c
mov ecx, edi
call fcn.0041fb98
test al, al
je 0x411fba
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
call fcn.0041faf5
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea ecx, [ebp - 0x18]
call fcn.0041ff07
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x411fae
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x24]
mov dword [esi], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041f009
mov eax, dword [ebp - 0x24]
push 3
add eax, 0xfffffffd
lea ecx, [ebp - 0x24]
push eax
call fcn.0041f56f
push ebx
push 0x42ff50
lea ecx, [ebp - 0x24]
call fcn.0041f20d
cmp byte [0x48375c], bl
jne 0x411f16
mov ecx, 0x483380
call fcn.0041ff07
push eax
lea ecx, [ebp - 0x30]
call fcn.0041efa5
push 0x20
lea ecx, [ebp - 0x30]
call fcn.0041f1be
lea ecx, [ebp - 0x3c]
call fcn.0041ef35
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x18]
push eax
call fcn.0041ff07
push eax
call fcn.00421c81
pop ecx
lea eax, [ebp - 0x3c]
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0041f28b
lea ecx, [ebp - 0x30]
call fcn.0041ff07
push eax
push 0x14
push dword [esi + 8]
call fcn.00421dae
add esp, 0xc
lea ecx, [ebp - 0x3c]
call fcn.0041f06b
lea ecx, [ebp - 0x30]
call fcn.0041f06b
push 0x417508
push 0x4174bd
lea ecx, [ebp - 0x24]
call fcn.0041ff07
push eax
lea ecx, [ebp - 0x18]
call fcn.0041ff07
push eax
call dword [0x48275c]
test eax, eax
lea ecx, [ebp - 0x24]
jle 0x411fa9
call fcn.0041ff07
push 0x482c84
push eax
mov ecx, 0x482c78
call fcn.00425a20
cmp dword [0x482acc], ebx
je 0x411f84
push 0xc
call fcn.00428bd9
cmp eax, ebx
pop ecx
je 0x411f75
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.0041f009
jmp 0x411f77
xor eax, eax
push 0xffffffffffffffff
push eax
mov ecx, 0x482af4
call fcn.00422019
lea ecx, [ebp - 0x18]
call fcn.0041ff07
push eax
call fcn.0040eb61
mov eax, dword [ebp - 8]
pop ecx
add dword [esi + 4], eax
lea ecx, [ebp - 0x24]
call fcn.0041f06b
push dword [ebp - 4]
jmp 0x411e16
call fcn.0041f06b
lea ecx, [ebp - 0x18]
call fcn.0041f06b
xor al, al
jmp 0x411fc4
lea ecx, [ebp - 0x18]
call fcn.0041f06b
mov al, 1
pop edi
pop esi
pop ebx
leave
ret