joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51846b
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00455160
cmp dword [0x5591f0], 8
mov eax, 0x5591dc
push str.InpaintMAX.exe
cmovae eax, dword [0x5591dc]
push eax
lea eax, [ebp - 0x218]
push 0x524af0
push eax
call fcn.00421970
lea eax, [ebp - 0x218]
push eax
call fcn.00449e90
add esp, 0x20
test eax, eax
je 0x4238c6
lea eax, [ebp - 0x644]
mov dword [ebp - 0x644], 0
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x4238c6
push 0x104
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00455160
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x644]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
js 0x4238c6
push 0x524c64
lea ecx, [ebp - 0x640]
call fcn.00419370
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00455160
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
cmovae eax, dword [ebp - 0x640]
push eax
push str.MicrosoftInternet_ExplorerQuick_Launch_
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push str._s_s_s.lnk
push eax
call fcn.00421970
push 0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00423470
add esp, 0x2c
test eax, eax
jne 0x4238e1
lea ecx, [ebp - 0x640]
call fcn.004193d0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x420]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00423920
add esp, 8
push dword [ebp - 0x644]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x640]
call fcn.004193d0
mov eax, 1
jmp 0x4238c8
Function at 0x4248f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x110]
push esi
mov esi, dword [ebp + 0xc]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10c], eax
test eax, eax
jne 0x424932
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
inc eax
push edi
push eax
call fcn.00452b71
add esp, 4
mov edi, eax
push edi
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x424973
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x114]
push eax
push 0x5250f4
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x42498f
push edi
call fcn.00455c91
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00455160
mov edx, dword [ebp - 0x114]
mov ecx, dword [edx + 0xc]
movzx eax, cx
push eax
movzx eax, word [edx + 8]
shr ecx, 0x10
push ecx
push eax
movzx eax, word [edx + 0x12]
push eax
lea eax, [ebp - 0x108]
push 0x5250f8
push eax
call fcn.00454cb2
push edi
call fcn.00455c91
lea eax, [ebp - 0x108]
add esp, 0x28
mov ecx, eax
sub esi, ecx
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x4249e1
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00453c72
mov esp, ebp
pop ebp
ret
Function at 0x426860
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518983
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x570
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], 0
cmp dword [ebx + 0x18], edi
je 0x4268e0
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4268e0
lea eax, [ebp - 0x290]
mov dword [ebp - 0x290], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x426913
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [ebx + 0x1c], 0x10
jb 0x4268f3
push dword [ebx + 8]
call fcn.00406890
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea ecx, [ebp - 0x578]
call fcn.004117b0
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
push str.Ag__NNTcbvMPH9l8Lum_zj_sPPWFnJwa
lea ecx, [ebp - 0x578]
mov byte [ebp - 4], 3
call fcn.00411c80
test al, al
je 0x426a3f
lea eax, [ebx + 8]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00421cf0
add esp, 8
lea ecx, [ebp - 0x44]
push eax
call fcn.00405400
lea ecx, [ebp - 0x5c]
call fcn.004064e0
sub esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00406350
lea ecx, [ebp - 0x578]
call fcn.00411cc0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x578]
call fcn.00411b20
push eax
lea ecx, [ebp - 0x2c]
call fcn.00405400
lea ecx, [ebp - 0x5c]
call fcn.004064e0
cmp dword [ebp - 0x1c], 0
je 0x426a3f
push 0x3a8
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00429150
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4269f0
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00455584
add esp, 8
test eax, eax
sete al
cmp dword [ebp - 0x48], 8
mov byte [ebp - 0x579], al
jb 0x426a22
push dword [ebp - 0x5c]
call fcn.00406890
mov al, byte [ebp - 0x579]
add esp, 4
test al, al
jne 0x426a39
lea eax, [ebp - 0x290]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4269d3
jmp 0x426a3f
mov edi, dword [ebp - 0x288]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0x10
jb 0x426a57
push dword [ebp - 0x2c]
call fcn.00406890
add esp, 4
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x426a7a
push dword [ebp - 0x44]
call fcn.00406890
add esp, 4
lea ecx, [ebp - 0x578]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov byte [ebp - 4], 0
call fcn.00411870
jmp 0x4268e2
Function at 0x4279c0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518b02
mov eax, dword fs:[0]
push eax
sub esp, 0x888
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x420]
mov ebx, dword [ebp + 0xc]
push 0x208
push 0
push eax
call fcn.00455160
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00455160
add esp, 0x18
lea eax, [ebp - 0x420]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x524b2c
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x894], eax
cmp eax, 0xffffffff
je 0x427bce
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
test byte [ebp - 0x890], 0x10
je 0x427aa7
cmp word [ebp - 0x864], 0x2e
je 0x427aa7
lea eax, [ebp - 0x864]
push eax
push edi
lea eax, [ebp - 0x628]
push 0x524af0
push eax
call fcn.00421970
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.004279c0
add esp, 0x18
jmp 0x427ba7
push 0x524b38
lea eax, [ebp - 0x864]
push eax
call esi
test eax, eax
je 0x427ba7
push 0x524b3c
lea eax, [ebp - 0x864]
push eax
call esi
test eax, eax
je 0x427ba7
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00455160
lea eax, [ebp - 0x864]
push eax
push edi
lea eax, [ebp - 0x218]
push 0x524af0
push eax
call fcn.00421970
xor eax, eax
mov dword [ebp - 0x62c], 7
add esp, 0x1c
mov dword [ebp - 0x630], 0
mov word [ebp - 0x640], ax
cmp word [ebp - 0x218], ax
jne 0x427b2c
xor ecx, ecx
jmp 0x427b44
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427b35
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x640]
call fcn.004197f0
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.0041c1f0
cmp dword [ebp - 0x62c], 8
mov dword [ebp - 4], 0xffffffff
jb 0x427b8a
push dword [ebp - 0x640]
call fcn.00406890
add esp, 4
xor eax, eax
mov dword [ebp - 0x62c], 7
mov dword [ebp - 0x630], 0
mov word [ebp - 0x640], ax
lea eax, [ebp - 0x890]
push eax
push dword [ebp - 0x894]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x427a66
push dword [ebp - 0x894]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
Function at 0x427ec0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x427f19
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x427f4d
cmp eax, 2
jne 0x427f2e
push str.Key_not_found._n
call fcn.00455375
add esp, 4
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
push str.Error_opening_key._n
call fcn.00455375
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 - 2], 0x5c
lea edi, [ebx + eax*2]
je 0x427f70
mov eax, 0x5c
mov word [edi], ax
add edi, 2
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x214], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x42803e
lea esi, [ebp - 0x20c]
sub esi, edi
mov edx, 0x208
mov eax, edi
lea ebx, [ebx]
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x427fde
movzx ecx, word [esi + eax]
test cx, cx
je 0x427fde
mov word [eax], cx
add eax, 2
dec edx
jne 0x427fc0
jmp 0x427fe2
test edx, edx
jne 0x427fe5
sub eax, 2
push ebx
push dword [ebp - 0x218]
xor ecx, ecx
mov word [eax], cx
call fcn.00427ec0
add esp, 8
test eax, eax
je 0x428038
lea eax, [ebp - 0x220]
mov dword [ebp - 0x214], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x427fb3
mov esi, dword [ebp - 0x218]
xor eax, eax
mov word [edi - 2], ax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
inc eax
pop ebx
call fcn.00453c72
mov esp, ebp
pop ebp
ret

Function at 0x4280f0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00452b71
lea ecx, [esi + esi]
mov edi, eax
push ecx
push 0
push edi
call fcn.00455160
add esp, 0x10
mov dword [ebp + 0xc], esi
lea eax, [ebp + 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push edi
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00455c19
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push edi
mov word [esi + eax*2], cx
call fcn.00455c91
add esp, 0x10
pop edi
pop esi
pop ebp
ret
Function at 0x429b00
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518d8b
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x48], ebx
cmp dword [eax + 0x10], ebx
jne 0x429b3d
xor al, al
jmp 0x429c65
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042cab0
add esp, 8
cmp dword [ebp - 0x18], 3
mov dword [ebp - 4], 0
jb 0x429bb3
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x429b72
test al, 0x10
jne 0x429bb3
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0042c840
add esp, 0xc
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
mov ebx, 1
push ecx
push dword [eax + 0x10]
mov ecx, eax
mov byte [ebp - 4], 1
push 0
mov dword [ebp - 0x48], ebx
call fcn.00408880
mov byte [ebp - 0x41], 0
test eax, eax
jne 0x429bb7
mov byte [ebp - 0x41], 1
mov dword [ebp - 4], 0
test bl, 1
je 0x429bd7
and ebx, 0xfffffffe
cmp dword [ebp - 0x2c], 0x10
jb 0x429bd7
push dword [ebp - 0x40]
call fcn.00406890
add esp, 4
cmp byte [ebp - 0x41], 0
je 0x429be3
mov byte [ebp - 0x41], 1
jmp 0x429c51
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0042c840
or ebx, 2
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x48], ebx
call fcn.00429b00
add esp, 0x10
test al, al
je 0x429c25
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [ebp - 0x41], 1
test eax, eax
jne 0x429c29
mov byte [ebp - 0x41], 0
test bl, 2
je 0x429c51
cmp dword [ebp - 0x2c], 0x10
jb 0x429c3f
push dword [ebp - 0x40]
call fcn.00406890
add esp, 4
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp dword [ebp - 0x14], 0x10
jb 0x429c62
push dword [ebp - 0x28]
call fcn.00406890
add esp, 4
mov al, byte [ebp - 0x41]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
Function at 0x429c80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518dea
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x48], ebx
cmp dword [eax + 0x10], ebx
jne 0x429cbd
xor al, al
jmp 0x429de7
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042cb60
add esp, 8
cmp dword [ebp - 0x18], 3
mov dword [ebp - 4], 0
jb 0x429d33
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x429cf2
test al, 0x10
jne 0x429d33
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0042c8f0
add esp, 0xc
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
mov ebx, 1
push ecx
push dword [eax + 0x10]
mov ecx, eax
mov byte [ebp - 4], 1
push 0
mov dword [ebp - 0x48], ebx
call fcn.0041c160
mov byte [ebp - 0x41], 0
test eax, eax
jne 0x429d37
mov byte [ebp - 0x41], 1
mov dword [ebp - 4], 0
test bl, 1
je 0x429d57
and ebx, 0xfffffffe
cmp dword [ebp - 0x2c], 8
jb 0x429d57
push dword [ebp - 0x40]
call fcn.00406890
add esp, 4
cmp byte [ebp - 0x41], 0
je 0x429d63
mov byte [ebp - 0x41], 1
jmp 0x429dd3
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0042c8f0
or ebx, 2
mov byte [ebp - 4], 2
push eax
mov dword [ebp - 0x48], ebx
call fcn.00429c80
add esp, 0x10
test al, al
je 0x429da5
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 0x41], 1
test eax, eax
jne 0x429da9
mov byte [ebp - 0x41], 0
test bl, 2
je 0x429dd3
cmp dword [ebp - 0x2c], 8
jb 0x429dbf
push dword [ebp - 0x40]
call fcn.00406890
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp dword [ebp - 0x14], 8
jb 0x429de4
push dword [ebp - 0x28]
call fcn.00406890
add esp, 4
mov al, byte [ebp - 0x41]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
Function at 0x42c420
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5191c8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edx, eax
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp byte [edx], 0
jne 0x42c471
xor ecx, ecx
jmp 0x42c47f
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42c476
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00405b80
push 0
xor bl, bl
mov dword [ebp - 4], 0
push 0x5238f8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], bl
call fcn.00405b80
push dword [edi + 4]
mov ecx, edi
mov byte [ebp - 4], 1
push dword [edi]
call fcn.00435520
mov eax, dword [edi]
xor esi, esi
mov dword [edi + 4], eax
cmp dword [ebp - 0x30], esi
je 0x42c5c6
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp byte [eax + esi], 0x22
jne 0x42c539
lea eax, [ebp - 0x28]
test bl, bl
jne 0x42c535
cmp dword [ebp - 0x14], 0x10
mov bl, 1
push 0
cmovae eax, dword [ebp - 0x28]
push 0x5238f8
push eax
call fcn.00408810
add esp, 0xc
test eax, eax
jne 0x42c516
cmp dword [ebp - 0x18], eax
setne al
test eax, eax
je 0x42c5bc
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.00435830
push 0
push 0x5238f8
lea ecx, [ebp - 0x28]
call fcn.00405b80
jmp 0x42c5bc
xor bl, bl
jmp 0x42c519
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x40]
cmp ecx, 0x10
cmovae eax, edx
cmp byte [eax + esi], 0x20
jne 0x42c5a2
test bl, bl
je 0x42c55d
cmp ecx, 0x10
lea eax, [ebp - 0x40]
cmovae eax, edx
jmp 0x42c5ad
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x5238f8
push eax
call fcn.00408810
add esp, 0xc
test eax, eax
jne 0x42c586
cmp dword [ebp - 0x18], eax
setne al
test eax, eax
je 0x42c5bc
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00435830
push 0
push 0x5238f8
lea ecx, [ebp - 0x28]
call fcn.00405b80
jmp 0x42c5bc
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
movzx eax, byte [eax + esi]
lea ecx, [ebp - 0x28]
push eax
push 1
call fcn.00404d90
inc esi
cmp esi, dword [ebp - 0x30]
jne 0x42c4d2
xor eax, eax
cmp dword [ebp - 0x18], eax
setne al
test eax, eax
je 0x42c5dd
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00435830
cmp dword [ebp - 0x14], 0x10
jb 0x42c5ee
push dword [ebp - 0x28]
call fcn.00406890
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x42c611
push dword [ebp - 0x40]
call fcn.00406890
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
Function at 0x42e680
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5195c5
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp + 0xc]
push 0
push 0x5238f8
mov dword [ebp - 0x1a4], esi
mov dword [ebp - 0x1ac], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00405b80
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x42e6f6
mov eax, dword [edi]
jmp 0x42e6f8
mov eax, edi
lea ecx, [ebp - 0x198]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x42e867
cmp dword [edi + 0x14], 0x10
jb 0x42e719
mov eax, dword [edi]
jmp 0x42e71b
mov eax, edi
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42e867
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1a0], eax
cmp eax, 0xffffffff
je 0x42e860
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x1a0]
call fcn.004552ce
add esp, 4
mov esi, eax
lea eax, [ebp - 0x1a8]
push 0
push eax
push dword [ebp - 0x1a0]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42e851
mov ax, word [esi]
mov cl, byte [esi + 2]
mov word [ebp - 0x19c], ax
cmp al, 0xef
jne 0x42e7d5
cmp byte [ebp - 0x19b], 0xbb
jne 0x42e842
cmp cl, 0xbf
jne 0x42e842
mov eax, dword [ebp - 0x1a0]
lea ecx, [ebp - 0x28]
add eax, 0xfffffffd
add esi, 3
push eax
push esi
call fcn.00405b80
sub esi, 3
jmp 0x42e851
cmp al, 0xff
jne 0x42e842
cmp byte [ebp - 0x19b], 0xfe
jne 0x42e842
push esi
call fcn.00455296
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3a8
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00429150
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
call fcn.0042e8b0
mov esi, dword [ebp - 0x1a4]
push 0x3a8
push eax
push esi
mov byte [ebp - 4], 2
call fcn.00429280
add esp, 0x20
lea ecx, [ebp - 0x58]
call fcn.004193d0
lea ecx, [ebp - 0x40]
call fcn.004193d0
lea ecx, [ebp - 0x28]
call fcn.004064e0
jmp 0x42e883
push dword [ebp - 0x1a0]
lea ecx, [ebp - 0x28]
push esi
call fcn.00405b80
push esi
call fcn.00455296
mov esi, dword [ebp - 0x1a4]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00405d30
cmp dword [ebp - 0x14], 0x10
jb 0x42e883
push dword [ebp - 0x28]
call fcn.00406890
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret