joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x414976
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x1c]
push 5
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x14], esi
call fcn.00406550
lea edi, [esi + 0x94]
mov dword [esp + 0x14], 0
mov ecx, edi
call fcn.00408290
push 0xd2
push 0x11c
push 0xffffff2e
push 0xfffffee4
mov ecx, esi
mov byte [esp + 0x24], 1
mov dword [esi], 0x415300
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
call fcn.004061b0
mov edx, dword [esi + 0x74]
push 0x7a
add edx, 0x30
push 0x9e
push edx
mov ecx, edi
call fcn.00408760
mov eax, dword [esp + 0x24]
mov ecx, esi
push eax
call fcn.00401450
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x403e51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4173d0
cmp edx, dword [eax]
je 0x403e73
add eax, 8
inc ecx
cmp eax, 0x417460
jl 0x403e64
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4173d0]
jne 0x403fa1
mov eax, dword [0x4197f0]
cmp eax, 1
je 0x403f7b
test eax, eax
jne 0x403ea4
cmp dword [0x417328], 1
je 0x403f7b
cmp edx, 0xfc
je 0x403fa1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403edb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004053c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004054b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403f1e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004054b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4157dc
push edi
call fcn.004058f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004053c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004053d0
lea eax, [ebp - 0xa0]
push 0x4157bc
push eax
call fcn.004053d0
push dword [esi + 0x4173d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004053d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405865
add esp, 0x2c
pop edi
jmp 0x403fa1
lea eax, [ebp + 8]
lea esi, [esi + 0x4173d4]
push 0
push eax
push dword [esi]
call fcn.004054b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x408980
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
mov ebp, ecx
push esi
push edi
push str.MSGTEXT
mov eax, dword [ebp + 4]
lea edi, [ebp + 0x30]
push 0x65
push eax
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x408a2b
mov eax, dword [ebp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, dword [ebp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x408a2b
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov cl, byte [eax + ebx - 1]
test cl, cl
je 0x408a0e
mov ecx, ebx
mov esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp ebx, 0xff
rep movsb byte es:[edi], byte [esi]
jl 0x4089f8
mov ebx, 0xff
mov esi, dword [esp + 0x10]
mov byte [ebx + ebp + 0x30], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0x100
push eax
push edi
call fcn.004058f0
add esp, 0xc
mov byte [ebp + 0x12f], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x408cb0
Capabilities:
Find taskbar

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
mov edx, dword [esp + 0x20]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x28]
xor ebp, ebp
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
push edi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], ebp
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
mov dword [esi], 0x41592c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movsx ecx, ax
push ecx
call fcn.0041229c
add esp, 4
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov ebx, eax
push ebp
cmp ebx, ebp
je 0x408d70
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call ebp
push 0xa
push edi
mov dword [esi + 0x10], eax
call ebp
push edi
push 0
mov dword [esi + 0x14], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x10]
sub eax, edx
cmp eax, ecx
jl 0x408d96
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x14]
sub ecx, edx
add eax, ecx
pop edi
mov dword [esi + 0x14], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
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 + 0x10], eax
call ebx
push edi
push ebp
mov dword [esi + 0x14], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
Function at 0x408f70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
push edi
and eax, 0xffff
push 0x4177c0
mov ecx, dword [esi + 0xa4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x408fb9
mov edx, dword [esi + 0xa4]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, dword [esp + 0xc]
test eax, eax
mov dword [esi + edi*4 + 4], eax
je 0x408fb9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi + edi*4 + 0x54], eax
pop edi
pop esi
ret 8

Function at 0x409120
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x30c
push esi
mov esi, dword [esp + 0x318]
cmp byte [esi], 0
je 0x40915d
mov al, byte [esi]
movsx ecx, al
sub ecx, 0x2d
je 0x409157
sub ecx, 4
je 0x409198
dec ecx
je 0x40916a
test al, al
je 0x409158
cmp al, 0x20
je 0x409158
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x409149
jmp 0x409158
inc esi
cmp byte [esi], 0
jne 0x409133
mov eax, 1
pop esi
add esp, 0x30c
ret
mov al, byte [esi + 2]
add esi, 2
test al, al
je 0x40918e
push esi
call fcn.0041280c
add esp, 4
test eax, eax
je 0x40918e
push esi
call fcn.0041280c
add esp, 4
test eax, eax
jne 0x409181
xor eax, eax
pop esi
add esp, 0x30c
ret
mov al, byte [esi + 2]
add esi, 2
test al, al
je 0x40924f
push ebx
push edi
push 0x4177fc
push esi
call fcn.00412616
mov edi, eax
add esp, 8
test edi, edi
jne 0x4091d0
push 0x4177fc
push esi
call fcn.00412616
mov edi, eax
add esp, 8
test edi, edi
je 0x4091bc
mov ecx, dword [esp + 0x31c]
lea eax, [esp + 0xc]
push 0x103
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0xc]
push 0x4177f8
push edx
call fcn.00412616
mov ebx, eax
push ebx
call fcn.004125dc
add esp, 0xc
cmp eax, 0xffffffff
je 0x40921c
push edi
push eax
call fcn.004125b8
push ebx
call fcn.004125dc
add esp, 0xc
cmp eax, 0xffffffff
jne 0x409207
push edi
call fcn.00412562
lea eax, [esp + 0x10]
lea ecx, [esp + 0x114]
push eax
push esi
push str._s__2__s
push ecx
call fcn.00412510
add esp, 0x14
lea edx, [esp + 0x110]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop ebx
xor eax, eax
pop esi
add esp, 0x30c
ret

Function at 0x4097c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 1
call fcn.00409540
mov edi, dword [esp + 0x10]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
push 0x417800
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4097f5
push esi
call fcn.00409b10
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x409811
push esi
call fcn.00409b10
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
call fcn.00409570
add esp, 4
test eax, eax
jne 0x40983c
push esi
call fcn.00409b10
add esp, 4
xor eax, eax
pop edi
pop esi
ret
mov eax, esi
pop edi
pop esi
ret
Function at 0x409c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x409c24
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x409c37
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
push esi
push ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
call fcn.00409db0
add esp, 8
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
jne 0x409c6a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x409c90
mov cx, word [eax + 0xe]
imul ecx, dword [eax + 4]
add ecx, 0x1f
shr ecx, 3
and ecx, 0x1ffffffc
imul ecx, dword [eax + 8]
mov edx, dword [eax + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
lea edi, [ecx + edx*4]
mov ecx, dword [eax]
add edi, ecx
call ebp
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
mov ebx, eax
test ebx, ebx
jne 0x409cc1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [0x4199cc]
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax + 0x14]
add esi, edx
mov edx, dword [eax + 0x20]
push ebx
lea edi, [eax + edx*4]
mov edx, dword [eax]
mov eax, ecx
add edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
ret

Function at 0x40a190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x10]
and eax, 0xffff
push 0x417dc8
mov byte [edi], 0
mov ecx, dword [0x4199d0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x40a1bc
pop edi
pop esi
ret
mov edx, dword [0x4199d0]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40a1d3
pop edi
pop esi
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, dword [esp + 0x18]
push ebx
push eax
push edi
call fcn.004058f0
add esp, 0xc
mov byte [edi + ebx - 1], 0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
mov eax, 1
pop esi
ret
Function at 0x40b6c0
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, ecx
mov cl, byte [esi + 0x14]
push edi
lea edi, [esi + 0x14]
xor ebx, ebx
test cl, cl
mov ecx, esi
setne bl
call fcn.0040b660
test ebx, ebx
je 0x40b6ea
inc dword [esi + 0x11c]
mov eax, dword [esp + 0x120]
test eax, eax
jne 0x40b6fa
mov eax, str.IDM_MUSIC
push str.MIDI
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x40b79a
mov ecx, dword [esi]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x40b79a
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esi]
push ebx
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
push 0
lea ecx, [esp + 0x20]
push 0x4199c8
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0x4177fc
push edi
call fcn.00412616
mov edx, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0x18]
push ebx
push edx
push 1
push eax
call fcn.00412817
push ebx
call fcn.00412562
add esp, 0x1c
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esi + 8]
push edi
push ecx
mov ecx, esi
call fcn.0040b7b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 4
Function at 0x40c290
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x40c2a3
push eax
call fcn.00402942
add esp, 4
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0040294d
mov edx, eax
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebx + 0xc], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x80
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 3
push 0
and ecx, 3
push 1
push 0x80000000
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop edi
pop esi
cmp eax, 0xffffffff
mov dword [ebx], eax
pop ebp
jne 0x40c311
mov dword [ebx], 0
xor eax, eax
pop ebx
ret 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebx]
push 0
push 0
push 0
push 2
push 0
push ecx
mov dword [ebx + 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [ebx + 4], eax
je 0x40c30b
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [ebx + 8], eax
je 0x40c30b
mov ecx, ebx
call fcn.0040c850
pop ebx
ret 8

Function at 0x40c3b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xe4
lea eax, [esp + 4]
push eax
call fcn.0040c480
mov eax, dword [esp + 0xe8]
lea ecx, [esp]
push 0
push ecx
lea edx, [esp + 0xc]
push pe_nt_image_headers32
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp]
xor eax, eax
cmp ecx, 0xe0
sete al
add esp, 0xe4
ret 4

Function at 0x40c500
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x34
push ebx
push ebp
mov ebx, ecx
push 2
call fcn.0040c760
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x3c]
lea ebp, [ecx + eax + 0xf8]
mov ecx, ebx
call fcn.0040c750
test eax, eax
jle 0x40c5b1
push esi
push edi
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x14]
mov ecx, 0xa
mov esi, ebp
lea edi, [esp + 0x1c]
test eax, eax
rep movsd dword es:[edi], dword [esi]
je 0x40c57b
mov ecx, dword [esp + 0x14]
cmp ebp, ecx
jne 0x40c569
mov edx, dword [ebx + 0x10]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
add esi, edx
add ecx, eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], ecx
jmp 0x40c57b
mov eax, dword [esp + 0x30]
mov edx, dword [ecx + 0x14]
cmp eax, edx
jbe 0x40c57b
add eax, dword [ebx + 0x10]
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x24]
push 0x28
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
add ebp, 0x28
dec eax
mov dword [esp + 0x10], eax
jne 0x40c534
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 4
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 4
Function at 0x40c5c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
test edi, edi
je 0x40c6bb
push ebx
lea eax, [esp + 0xc]
push ebp
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0040c400
mov eax, dword [esi + 8]
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x1c]
sub ebp, eax
push 0
push edx
push ebp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov ecx, esi
call fcn.0040c3b0
push edi
mov ecx, esi
call fcn.0040c500
push 2
mov ecx, esi
call fcn.0040c7d0
mov ecx, esi
mov ebx, eax
call fcn.0040c750
lea eax, [eax + eax*4]
mov edx, ebx
lea ecx, [esp + 0x1c]
push 0
lea ebp, [ebp + eax*8 + 0xe0]
mov eax, dword [esi + 8]
sub edx, eax
push ecx
sub edx, ebp
add eax, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push edx
push eax
push edi
call ebp
mov ecx, dword [esi + 0x24]
push edi
call fcn.0040dfc0
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x1c]
push 0
sub edx, eax
push ecx
add eax, ebx
push edx
push eax
push edi
call ebp
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x14]
sub ebx, eax
mov edx, dword [ecx + 0x70]
mov ecx, dword [esi + 0x24]
push ebx
push edx
push eax
push edi
call fcn.0040e0f0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40c6ac
cmp eax, 0x10
mov esi, 0x10
ja 0x40c690
mov esi, eax
lea eax, [esp + 0x1c]
push 0
push eax
push esi
push 0x417e78
push edi
call ebp
mov eax, dword [esp + 0x10]
sub eax, esi
mov dword [esp + 0x10], eax
jne 0x40c684
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 8
ret 8
pop edi
xor eax, eax
pop esi
add esp, 8
ret 8

Function at 0x40e000
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x18]
cmp eax, edi
jne 0x40e06a
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
mov ebx, 0x10
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], ebx
je 0x40e037
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov ecx, dword [0x419b34]
add ecx, ebx
mov dword [0x419b34], ecx
mov esi, dword [esi + 0x14]
test esi, esi
je 0x40e0c0
push edi
mov ecx, esi
call fcn.004108b0
test eax, eax
je 0x40e02f
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x40e04c
mov eax, dword [0x419b34]
pop edi
pop esi
pop ebx
ret 8
cmp eax, 2
jne 0x40e09d
cmp edi, 3
jne 0x40e09d
mov esi, dword [esi + 0x14]
test esi, esi
je 0x40e0c0
mov edi, dword [esp + 0x10]
push edi
mov ecx, esi
call fcn.004108f0
test eax, eax
je 0x40e02f
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x40e07f
mov eax, dword [0x419b34]
pop edi
pop esi
pop ebx
ret 8
mov esi, dword [esi + 0x14]
test esi, esi
je 0x40e0c0
mov ebx, dword [esp + 0x10]
push edi
push ebx
mov ecx, esi
call fcn.00410880
test eax, eax
je 0x40e02f
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x40e0a8
mov eax, dword [0x419b34]
pop edi
pop esi
pop ebx
ret 8
Function at 0x40edb0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x50
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x40ee9d
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x40ee9d
mov ecx, dword [esi + 8]
push ebx
push ebp
lea eax, [esp + 0xc]
push edi
mov ebp, 1
push eax
push ecx
mov dword [esi + 0x40], ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub edi, edx
sub ebx, ecx
mov ecx, dword [esi + 8]
or edx, 0xffffffff
push ebp
or eax, 0xffffffff
push ebx
sub edx, ebx
push edi
sub eax, edi
push edx
push eax
push ecx
mov dword [esi + 0x48], ebp
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esi + 8]
mov dword [esi + 0x48], 0
push edx
push 0x40eba0
call dword [sym.imp.USER32.dll_EnumWindows]
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi]
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
push ecx
push edx
push ebp
call fcn.00407ef0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
push ebp
call fcn.00407ef0
add esp, 0x20
push ebp
xor ebp, ebp
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 8]
push ebp
push ebx
push edi
push eax
push ecx
push edx
mov dword [esi + 0x48], 1
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 8]
push ebp
push ebp
push eax
mov dword [esi + 0x48], ebp
call dword [sym.imp.USER32.dll_InvalidateRect]
mov dword [esi + 0x40], ebp
pop edi
pop ebp
pop ebx
mov edx, dword [esi + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_BeginPaint]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.0040ea50
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
pop esi
add esp, 0x50
ret 4

Function at 0x4108b0
Capabilities:
Write file on windows

Disassembly:
lea eax, [esp + 4]
push 0
push eax
push 8
push ecx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 4], 8
je 0x4108d1
xor eax, eax
ret 4
mov eax, dword [0x419b34]
add eax, 8
mov dword [0x419b34], eax
mov eax, 1
ret 4

Function at 0x410b30
Capabilities:
Write file on windows

Disassembly:
lea eax, [esp + 4]
push 0
push eax
add ecx, 0x10
push 0x10
push ecx
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 4]
ret 4
Function at 0x410b60
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x20]
mov ebp, ecx
push edi
and ebp, 7
neg ebp
and ebp, 7
test eax, eax
je 0x410c7c
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x18], 0
test edi, edi
je 0x410c1e
push 0x400
call fcn.004033c7
add esp, 4
mov esi, eax
lea eax, [esp + 0x1c]
push 0
push eax
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410c15
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 0
push ecx
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add edx, ecx
cmp eax, 0x400
mov dword [esp + 0x18], edx
jb 0x410c15
lea edx, [esp + 0x1c]
push 0
push edx
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410bcc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x410c42
cmp dword [ebx + 0x14], 1
jne 0x410c42
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x24]
push 1
push ecx
push edx
mov byte [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x14]
cmp eax, ecx
je 0x410c56
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
push ebp
push str.PADDINGPADDINGXX
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebx + 0x14]
pop edi
mov eax, ebp
pop esi
pop ebp
add eax, ecx
pop ebx
ret 0x10
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x410c8c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
mov eax, dword [ebx + 0x24]
lea edx, [esp + 0x18]
test eax, eax
push 0
push edx
je 0x410cdb
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ecx
push eax
push esi
call edi
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x14]
cmp eax, ecx
je 0x410cbd
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
lea ecx, [esp + 0x18]
push 0
push ecx
push ebp
push str.PADDINGPADDINGXX
push esi
call edi
mov ecx, dword [ebx + 0x14]
pop edi
mov eax, ebp
pop esi
pop ebp
add eax, ecx
pop ebx
ret 0x10
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
add eax, ebp
sub ecx, esi
push eax
mov eax, dword [esp + 0x2c]
add ecx, edx
mov edx, dword [esp + 0x20]
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x18]
add eax, ebp
cmp ecx, eax
je 0x410c6e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10