joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408460
Capabilities:
Get file system object information

Disassembly:
push edi
push esi
push ebx
sub esp, 0x2f0
call fcn.0042d630
mov eax, dword [esp + 0x300]
mov dword [esp + 4], eax
lea eax, [esp + 0x300]
mov dword [esp], eax
call fcn.0042d860
sub esp, 8
mov dword [esp + 0x2c], 0
lea ebx, [esp + 0x3c]
mov ecx, 0xad
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x300]
mov dword [esp], eax
call fcn.004228c2
sub esp, 4
test edx, edx
js 0x408550
mov dword [esp + 0x10], 0x4000
mov dword [esp + 0xc], 0x2b4
mov dword [esp + 8], ebx
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x300]
mov dword [esp], eax
call sub.SHELL32.dll_SHGetFileInfoW
sub esp, 0x14
mov dword [esp + 4], str.shell32.dll
mov dword [esp], 0xffffffff
call fcn.0041acb9
push edx
push edx
mov ebx, eax
test eax, eax
jne 0x408572
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
mov ecx, dword [esp + 0x40]
lea ebx, [esp + 0x34]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp], eax
call edx
sub esp, 0x10
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4085af
lea esi, [esi]
xor ebx, ebx
mov eax, dword [esp + 0x300]
mov dword [esp], eax
call fcn.0042da50
sub esp, 4
mov eax, ebx
add esp, 0x2f0
pop ebx
pop esi
pop edi
ret 0xc
lea eax, [esp + 0x30]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x4e4280
xor edi, edi
mov dword [esp + 8], edi
mov dword [esp + 4], str.SHGetImageList
mov dword [esp], ebx
call fcn.0041ae3a
sub esp, 0x14
mov edi, eax
mov dword [esp], ebx
call fcn.0041ad6f
push eax
test edi, edi
jne 0x408550
jmp 0x40851c
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0x20
mov dword [esp], 0xffffffff
call fcn.004268c5
sub esp, 0x14
mov ebx, eax
test eax, eax
je 0x408550
mov dword [esp], eax
call fcn.00426a6d
push ecx
mov dword [esp], eax
call fcn.0042669b
push esi
test eax, eax
je 0x408552
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
mov edx, dword [edx + 0x40]
lea ecx, [esp + 0x2c]
mov dword [esp + 8], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 4], ecx
mov dword [esp], eax
call edx
sub esp, 0xc
mov eax, dword [esp + 0x38]
cmp eax, 0x20
jg 0x408635
mov eax, dword [esp + 0x2c]
cmp eax, 0x20
jle 0x408675
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0xc], 0x20
xor edx, edx
mov dword [esp + 8], edx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00426700
sub esp, 0x14
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call sub.USER32.dll_DestroyIcon
push eax
call fcn.0042676a
jmp 0x408552
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x34]
mov esi, 2
cdq
idiv esi
neg eax
add eax, 0x10
mov dword [esp + 8], eax
mov eax, ecx
cdq
idiv esi
neg eax
add eax, 0x10
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004267b2
sub esp, 0xc
jmp 0x40865e
Function at 0x416d2e
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x416dc6
push edi
push 0x4f04f4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4ef280]
test edi, edi
je 0x416d9a
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x416d93
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x4ef280
call fcn.0042d088
pop ecx
pop ecx
jmp 0x416d95
mov edi, dword [edi]
test edi, edi
jne 0x416d6a
pop ebx
mov eax, dword [0x4ebaa4]
mov esi, eax
inc eax
push 0x10
push 0x4ef280
mov dword [0x4ebaa4], eax
call fcn.0042d0c8
pop ecx
pop ecx
push 0x4f04f4
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x417166
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push pe_nt_image_headers32
push 3
push esi
push 1
push 0x80000000
push dword [esp + 0x30]
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x417246
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test byte [esp + 0x20], 1
mov ebp, eax
je 0x4171fe
push esi
push esi
push esi
push dword [esp + 0x28]
call fcn.00417a80
mov esi, eax
test esi, esi
je 0x41723e
push dword [esp + 0x18]
push dword [0x4ef284]
call fcn.0042c90b
mov ebp, eax
mov eax, 0x10000
push eax
push esi
mov dword [ebp + 0x18], eax
call fcn.00417b7a
push eax
push esi
call fcn.00417b60
push eax
call fcn.00417670
mov dword [ebp], eax
test eax, eax
je 0x4171f6
mov dword [ebp + 0x14], esi
mov ebx, ebp
jmp 0x41723e
push esi
call fcn.00417b53
jmp 0x41723e
push ebp
push esi
push dword [0x4ef22c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x41723e
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
push dword [esp + 0x20]
call fcn.00416dce
push esi
push 0
push dword [0x4ef22c]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret 0xc
Function at 0x4172d6
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
push dword [0x4ef284]
xor ebp, ebp
mov edi, ebp
mov dword [esp + 0x18], ebp
call fcn.0042c8cc
mov esi, eax
test esi, esi
je 0x41746b
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x14], ebp
je 0x417380
push ebx
call fcn.0041777d
jmp 0x417318
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], 0
jne 0x417310
push dword [esi + 0x14]
call fcn.00417b87
mov eax, dword [esp + 0x1c]
push ebp
push esi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x20], eax
call fcn.00417261
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push 0x417485
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x41735d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0xffffffff
je 0x41736e
push dword [esp + 0x20]
push ebx
call fcn.00417851
mov eax, dword [esi]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
push 1
jmp 0x417420
test byte [esp + 0x1c], 1
je 0x41738f
mov dword [esp + 0x10], 1
test byte [esp + 0x1c], 2
je 0x41742a
push esi
call fcn.004170fd
lea eax, [esi + 4]
push 0x10
push eax
call fcn.0042d0c8
pop ecx
pop ecx
mov ecx, dword [0x4ef298]
mov edi, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
test eax, eax
jne 0x41746b
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov byte [edi + 5], al
mov byte [edi + 4], 1
mov eax, dword [esp + 0x18]
push dword [esi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x18]
push dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
cmp dword [esp + 0x20], 0xffffffff
je 0x41740b
push edi
push dword [esp + 0x24]
push ebx
call fcn.004177b1
jmp 0x417418
mov eax, dword [esp + 0x18]
push dword [esi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x18]
push dword [esp + 0x10]
mov ecx, dword [eax]
push ebp
push ebp
push eax
call dword [ecx + 0x30]
jmp 0x41746b
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
mov eax, dword [esp + 0x18]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp dword [esp + 0x20], 0xffffffff
je 0x41744c
push dword [esp + 0x20]
push ebx
call fcn.00417851
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push ebx
push ebp
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x41746b
xor edi, edi
mov byte [esi + 0x1c], 1
inc edi
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x417e75
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x417eca
push dword [esp + 0x10]
push 0x417df4
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x4ef2d0]
test esi, esi
je 0x417f23
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x417ec2
cmp byte [esi + 0x10], 0
je 0x417ec2
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x417e9e
jmp 0x417f23
mov esi, dword [0x4ef2d0]
test esi, esi
je 0x417f23
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x417f1c
cmp byte [esi + 0x11], 0
je 0x417ef8
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x417f0f
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x4ef2d0
call fcn.0042d088
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x417ed7
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x41951e
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
push ebp
xor ebp, ebp
push edi
cmp dword [eax + 8], 1
mov edi, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebp
jne 0x4196bd
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x4196bc
push ebx
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4196bb
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push ebp
push dword [0x4ef22c]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x4196b4
call fcn.004482b0
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x4196a1
lea eax, [esp + 0x20]
push eax
push esi
call sub.MSVCRT.dll__wstat
push 0x1a4
push edi
call fcn.004488c0
lea eax, [esp + 0x30]
push eax
push edi
call fcn.00448c20
mov esi, dword [esp + 0x60]
add esp, 0x18
mov eax, dword [esi + 0x20]
cmp dword [eax + 8], 1
je 0x4195ed
cmp dword [eax + 8], 3
je 0x4195ed
push dword [esp + 0x50]
push edi
call fcn.00447e40
pop ecx
pop ecx
jmp 0x41960b
push dword [esp + 0x50]
call fcn.004b2fe0
mov esi, eax
push esi
push edi
call fcn.004488b0
pop ecx
pop ecx
push esi
call fcn.004b2fd0
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.00448950
push 0x8000
push edi
call fcn.00448710
push edi
push dword [esi]
call fcn.00448d90
add esp, 0x1c
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x419688
mov edi, dword [esp + 0x10]
push eax
push ebp
push dword [esi]
call fcn.00448d50
add esp, 0xc
cmp eax, dword [esp + 0x4c]
jne 0x419680
add edi, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jg 0x41964e
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x41969a
mov dword [esp + 0x18], 1
push edi
call fcn.00448100
pop ecx
push ebp
push 0
push dword [0x4ef22c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 0x34
ret 0xc

Function at 0x419777
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x4197d9
cmp word [esi], di
je 0x4197d9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00449890
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.00449aa0
add esp, 0x10
test eax, eax
jne 0x4197d8
push 0x24
push 8
push dword [0x4ef22c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [ecx + 0x20], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x419cd3
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebp
push esi
push edi
push dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x10], esi
call fcn.004b2fe0
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], eax
lea eax, [edi + 0x18]
push eax
push esi
push dword [0x4ef22c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x419dd2
push ebx
mov ebx, dword [esp + 0x30]
lea eax, [edi + 0x18]
push esi
push dword [ebx + 0x18]
push eax
push ebp
push edi
push dword [esp + 0x48]
call fcn.0041a1c2
mov esi, eax
add esp, 0x18
test esi, esi
je 0x419d36
cmp esi, edi
jge 0x419d36
mov dword [esp + 0x34], ebp
jmp 0x419d38
mov esi, edi
push dword [esp + 0x14]
call sub.MSVCRT.dll_strlen
mov word [esp + 0x2c], ax
mov eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cdq
mov dword [esp + 0x1c], eax
mov eax, esi
pop ecx
mov dword [esp + 0x1c], edx
cdq
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x40]
push eax
push 0x12
lea eax, [esp + 0x24]
mov dword [esp + 0x30], edx
push eax
push dword [ebx]
call edi
cmp dword [esp + 0x3c], 0x12
jne 0x419db7
push 0
lea eax, [esp + 0x40]
push eax
movsx eax, word [esp + 0x30]
push eax
push dword [esp + 0x20]
push dword [ebx]
call edi
movsx eax, word [esp + 0x28]
cmp eax, dword [esp + 0x3c]
jne 0x419db7
push 0
lea eax, [esp + 0x40]
push eax
push esi
push dword [esp + 0x40]
push dword [ebx]
call edi
cmp esi, dword [esp + 0x3c]
jne 0x419db7
xor esi, esi
inc esi
jmp 0x419dbb
mov esi, dword [esp + 0x10]
push ebx
call fcn.0041a3dc
pop ecx
push ebp
push 0
push dword [0x4ef22c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
push dword [esp + 0x10]
call fcn.004b2fd0
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x1c
ret 0x10
Function at 0x41a00d
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
or dword [esp], 0xffffffff
xor edx, edx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, edx
test edi, edi
je 0x41a044
cmp word [edi], dx
je 0x41a044
push edi
call fcn.004b2fe0
mov ebp, dword [esp + 0x20]
mov edi, eax
push edi
push ebp
call fcn.0041a421
pop ecx
pop ecx
mov esi, eax
xor edx, edx
jmp 0x41a05a
mov ebp, dword [esp + 0x20]
cmp dword [ebp + 8], edx
je 0x41a16f
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 4]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x41a16f
cmp dword [esp + 0x30], 0
je 0x41a07e
push dword [esi]
push edx
push dword [0x4ef22c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, dword [esi]
jmp 0x41a086
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x41a173
cdq
cmp edx, dword [esi + 4]
jl 0x41a173
jg 0x41a0a6
cmp eax, dword [esi]
jb 0x41a173
push 0
lea eax, [esi + 0x14]
push eax
push dword [esi + 0x10]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jne 0x41a0f8
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jne 0x41a0f8
push 0
lea eax, [esp + 0x30]
push eax
push dword [esi]
push ebx
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, dword [esp + 0x2c]
mov eax, ebp
cdq
cmp dword [esi], eax
jne 0x41a173
cmp dword [esi + 4], edx
jne 0x41a173
mov dword [esp + 0x10], ebp
jmp 0x41a177
push dword [esi + 8]
push 0
push dword [0x4ef22c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x41a173
push 0
lea ecx, [esp + 0x30]
push ecx
push dword [esi + 8]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x2c]
cdq
cmp dword [esi + 8], eax
jne 0x41a157
cmp dword [esi + 0xc], edx
jne 0x41a157
push dword [esp + 0x14]
push ebx
push dword [esp + 0x20]
call fcn.0041a682
cdq
add esp, 0xc
cmp eax, dword [esi]
jne 0x41a157
cmp edx, dword [esi + 4]
jne 0x41a157
mov ebp, dword [esi]
mov dword [esp + 0x10], ebp
jmp 0x41a15b
mov ebp, dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [0x4ef22c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41a177
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x41a1a3
cmp ebp, 0xffffffff
jne 0x41a19d
test ebx, ebx
je 0x41a197
push ebx
push 0
push dword [0x4ef22c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov ebx, eax
jmp 0x41a1a9
mov eax, dword [esi]
mov dword [ecx], eax
jmp 0x41a1a7
mov ebx, dword [esp + 0x10]
xor eax, eax
test edi, edi
je 0x41a1b8
cmp word [edi], ax
je 0x41a1b8
push edi
call fcn.004b2fd0
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x41a461
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
xor ebx, ebx
push 0x40
pop ebp
cmp dword [esi + 4], ebx
jne 0x41a5e4
push edi
push 0x100
push ebx
push dword [0x4ef22c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
push ebx
push 4
pop edi
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esi + 0x14], 0x706c7a31
lea eax, [esp + 0x4c]
push 0
push eax
jne 0x41a4f6
push 0x18
lea eax, [esp + 0x3c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x4c], 0x18
jne 0x41a5e3
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov ax, word [esp + 0x40]
mov word [esp + 0x2c], ax
jmp 0x41a510
push 0x12
lea eax, [esp + 0x28]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x4c], 0x12
jne 0x41a5e3
cmp dword [esi + 0xc], ebp
jl 0x41a532
add ebp, 0x40
mov eax, ebp
shl eax, 2
push eax
push dword [esi + 4]
push 8
push dword [0x4ef22c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi + 4], eax
movsx eax, word [esp + 0x2c]
add eax, 0x19
push eax
push 0
push dword [0x4ef22c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0x1c]
mov edx, eax
push 0
lea eax, [esp + 0x50]
mov dword [esp + 0x14], edx
push eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 0xc], ecx
movsx eax, word [esp + 0x34]
push eax
lea eax, [edx + 0x18]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, word [esp + 0x2c]
xor ecx, ecx
mov edx, dword [esp + 0x10]
mov byte [eax + edx + 0x18], cl
cmp dword [esi + 0x14], 0x706c7a31
movsx eax, word [esp + 0x2c]
jne 0x41a5a5
add eax, 0x18
jmp 0x41a5a8
add eax, 0x12
add edi, eax
mov dword [edx + 0x10], edi
adc ebx, ecx
mov dword [edx + 0x14], ebx
mov ecx, dword [esi + 0xc]
add edi, dword [esp + 0x24]
mov eax, dword [esi + 4]
adc ebx, dword [esp + 0x28]
push 1
mov dword [eax + ecx*4], edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
inc dword [esi + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], ecx
push ecx
jmp 0x41a498
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x41c751
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x4f093c]
call fcn.0042c8cc
mov ebx, eax
test ebx, ebx
je 0x41c7b5
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x41c77a
push dword [esp + 0xc]
push ebx
call eax
jmp 0x41c7b5
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0042dcc0
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.0042dda0
pop edi
pop esi
pop ebx
ret 8
Function at 0x420eca
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x421040
mov eax, dword [esp + 0x24]
dec eax
je 0x421023
dec eax
jne 0x421040
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00420e83
pop ecx
test eax, eax
je 0x420f81
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x420f44
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x42101f
dec ebx
je 0x42101b
dec ebx
je 0x420ffa
dec ebx
je 0x420fb4
sub ebx, 4
jne 0x421040
test edi, edi
jne 0x421040
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x421040
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x420f44
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x420f3f
sub edi, 0
je 0x420fec
dec edi
je 0x420fde
dec edi
je 0x420fd0
dec edi
jne 0x421040
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x421040
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x421040
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x421040
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x421040
sub edi, 0
je 0x421017
dec edi
je 0x421013
dec edi
jne 0x421040
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x421040
push 0x3c
jmp 0x42103f
push 0x32
jmp 0x42103f
push 0x14
jmp 0x42103f
push 5
jmp 0x42103f
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42103d
cmp eax, 0xa
je 0x421039
cmp eax, 0x5a
jne 0x421040
push 0x28
jmp 0x42103f
push 0x1e
jmp 0x42103f
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x42172d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x4f096c]
call fcn.0042c8cc
mov esi, eax
test esi, esi
je 0x421807
cmp dword [ebp + 0xc], 0
je 0x421779
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x42176a
cmp dword [esi + 0x1c], 0
jne 0x42176a
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x421807
test byte [ebp + 0x10], 3
je 0x421794
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.00422154
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x4217b9
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x4217cd
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x4217ea
test ebx, ebx
je 0x4217de
push 8
jmp 0x4217f0
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x4217fd
test ebx, ebx
je 0x4217f3
push 3
pop ecx
jmp 0x4217fd
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc