joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4141d0
Capabilities:
Check if file exists
Hash data via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
push esi
mov dword [ebp - 0x618], ebx
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414243
test ebx, ebx
je 0x414243
push 0x5915dc
push esi
call fcn.005419e2
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x414358
lea edx, [ebp - 0x610]
mov dword [ebp - 0x614], edi
lea ecx, [ebp - 0x614]
mov dword [ebp - 0x610], edi
call fcn.00413f30
test eax, eax
jne 0x414256
push ebx
call fcn.0053f443
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
push 0x3ff
lea eax, [ebp - 0x60b]
mov byte [ebp - 0x60c], 0
push 0
push eax
mov edi, 1
call fcn.005392b0
push ebx
push 0x400
lea eax, [ebp - 0x60c]
push edi
push eax
call fcn.0053fb98
add esp, 0x1c
test eax, eax
je 0x4142d0
nop
mov esi, dword [ebp - 0x610]
test esi, esi
je 0x414336
push 0
push eax
lea eax, [ebp - 0x60c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edi, eax
test edi, edi
je 0x4142d0
push ebx
push 0x400
lea eax, [ebp - 0x60c]
push 1
push eax
call fcn.0053fb98
add esp, 0x10
test eax, eax
jne 0x414290
mov esi, dword [ebp - 0x610]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.005392b0
add esp, 0xc
test edi, edi
je 0x414340
push ecx
lea edx, [ebp - 0x20c]
mov ecx, esi
call fcn.00413fc0
add esp, 4
test eax, eax
je 0x41433a
lea eax, [ebp - 0x20c]
push eax
push 0x591530
push 0x3f
push dword [ebp - 0x618]
call fcn.00541843
mov esi, dword [ebp - 0x610]
add esp, 0x10
mov edi, 1
jmp 0x414342
xor edi, edi
jmp 0x4142d6
mov esi, dword [ebp - 0x610]
xor edi, edi
mov ecx, dword [ebp - 0x614]
mov edx, esi
call fcn.004140a0
push ebx
call fcn.0053f443
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
Function at 0x415850
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e5cb
mov eax, dword fs:[0]
push eax
sub esp, 0x680
mov eax, dword [0x5b8250]
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 dword [ebp - 0x68c], edx
mov edi, ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4159e6
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.005392b0
add esp, 0xc
lea eax, [ebp - 0x218]
push str..lnk
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x24c
lea eax, [ebp - 0x684]
mov dword [ebp - 0x688], 0
push 0
push eax
call fcn.005392b0
add esp, 0xc
lea eax, [ebp - 0x688]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4159e6
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x415910
lea eax, [ebp - 0x65c]
push 0x5915bc
push eax
call fcn.00539e62
add esp, 8
test eax, eax
je 0x4159cd
lea eax, [ebp - 0x65c]
push 0x5915c0
push eax
call fcn.00539e62
add esp, 8
test eax, eax
je 0x4159cd
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.005392b0
add esp, 0xc
lea eax, [ebp - 0x65c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [ebp - 0x688], 0x10
jne 0x4159cd
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.00420660
mov ecx, dword [ebp - 0x68c]
lea eax, [ebp - 0x438]
push eax
mov dword [ebp - 4], 0
call fcn.0041bbe0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x424], 8
jb 0x4159cd
push dword [ebp - 0x438]
call fcn.005385cc
add esp, 4
lea eax, [ebp - 0x688]
push eax
push esi
call ebx
test eax, eax
jne 0x415910
push esi
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.0053aa3c
mov esp, ebp
pop ebp
ret
Function at 0x416eb0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x5b8250]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
mov dword [esp + 0x10], reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov dword [esp + 0x14], str.SOFTWAREHintsoft
mov dword [esp + 0x18], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], str.SOFTWARESicent
mov dword [esp + 0x20], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], str.SOFTWAREGoyoo
mov dword [esp + 0x28], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], str.SOFTWARE
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
push 1
push 0
push dword [esp + esi*8 + 0x20]
push dword [esp + esi*8 + 0x20]
call edi
test eax, eax
je 0x416f9e
inc esi
cmp esi, 4
jb 0x416f17
xor eax, eax
push 0x206
push eax
mov word [esp + 0x38], ax
lea eax, [esp + 0x3a]
push eax
call fcn.005392b0
add esp, 0xc
lea eax, [esp + 0x30]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x592c54
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, 1
cmovne ebx, ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x23c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
Function at 0x4172d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417301
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
push 0x30
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0xaac56b
lea eax, [ebp - 0x60]
mov dword [ebp - 0x10], 0x11d0cd44
movdqu xmmword [ebp - 0x30], xmm0
push 0
push eax
mov dword [ebp - 0xc], 0xc000c28c
mov dword [ebp - 8], 0xee95c24f
mov dword [ebp - 0x30], 0x10
mov dword [ebp - 0x2c], esi
call fcn.005392b0
add esp, 0xc
mov dword [ebp - 0x60], 0x30
lea eax, [ebp - 0x30]
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x54], 2
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x50], 0
push eax
push 0
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x38], 0x10
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
test eax, eax
js 0x417398
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.WINTRUST.dll_CryptCATAdminAcquireContext]
test eax, eax
je 0x4172ef
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
lea edx, [ebp - 0x20]
xor edi, edi
call fcn.00417210
add esp, 4
test eax, eax
je 0x4173f3
mov esi, dword [ebp - 0x1c]
push edi
push edi
push dword [ebp - 0x20]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminEnumCatalogFromHash]
test eax, eax
je 0x4173ec
push 0
push eax
push dword [ebp - 0x18]
mov edi, 1
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseCatalogContext]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0
push dword [ebp - 0x18]
call dword [sym.imp.WINTRUST.dll_CryptCATAdminReleaseContext]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
Function at 0x417e90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e768
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5b8250]
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, edx
mov edi, ecx
push 0
push 0x58bbed
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004072b0
push 0x592dbc
push esi
mov dword [ebp - 4], 0
call fcn.005419e2
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x417f8c
push 2
push 0
push ebx
call fcn.0053fcd3
push ebx
call fcn.005400e6
push 0
mov esi, eax
push 0
push ebx
mov dword [ebp - 0x2c], esi
call fcn.0053fcd3
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x30], eax
call fcn.0051d4c8
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x417f42
push ebx
call fcn.0053f443
jmp 0x417f89
push dword [ebp - 0x30]
push 0
push esi
call fcn.005392b0
push ebx
push dword [ebp - 0x2c]
push 1
push esi
call fcn.0053fb98
push ebx
call fcn.0053f443
add esp, 0x20
cmp byte [esi], 0
jne 0x417f6b
xor ecx, ecx
jmp 0x417f79
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417f70
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004072b0
push esi
call fcn.00538881
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00406640
cmp dword [ebp - 0x14], 0x10
jb 0x417fa8
push dword [ebp - 0x28]
call fcn.005385cc
add esp, 4
mov eax, edi
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.0053aa3c
mov esp, ebp
pop ebp
ret
Function at 0x418710
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov esi, edx
push 0x208
push eax
mov word [ebp - 0x290], ax
mov edi, ecx
lea eax, [ebp - 0x28e]
push eax
call fcn.005392b0
add esp, 0xc
mov dword [ebp - 0x294], 1
lea eax, [ebp - 0x298]
mov dword [ebp - 0x298], 0x104
push eax
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x294]
push eax
push 0x593910
push str.CLSIDD27CDB6E_AE6D_11cf_96B8_444553540000InprocServer32
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41882b
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41882b
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call fcn.005392b0
push 0x3f
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x290]
call fcn.00411900
add esp, 0x10
test eax, eax
je 0x41882b
lea eax, [ebp - 0x84]
push 0x2e
push eax
call fcn.00541934
add esp, 8
test eax, eax
je 0x41882b
add eax, 2
push 0x2e
push eax
call fcn.00541934
add esp, 8
test eax, eax
je 0x41882b
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x84]
push eax
push 0x591530
push esi
push edi
call fcn.00541843
add esp, 0x10
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
Function at 0x418b30
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 4], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
call fcn.005392b0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x418b93
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x418cb8
mov eax, dword [ebp - 0x110]
sub eax, 0
je 0x418cb8
dec eax
je 0x418ca9
dec eax
jne 0x418cb8
mov eax, dword [ebp - 0x11c]
cmp eax, 0xa
jne 0x418bd8
cmp dword [ebp - 0x118], 0
jne 0x418cb8
mov al, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x418c2a
mov eax, dword [ebp - 0x118]
cmp eax, 2
je 0x418c1a
cmp eax, 3
je 0x418c1a
cmp eax, 1
jne 0x418c02
mov al, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x418cb8
mov al, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
mov al, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x418cb8
mov eax, dword [ebp - 0x118]
cmp eax, 2
jne 0x418c94
xorps xmm0, xmm0
mov dword [ebp - 0x144], 0x24
lea eax, [ebp - 0x144]
push eax
movdqu xmmword [ebp - 0x140], xmm0
movdqu xmmword [ebp - 0x130], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x418cb8
cmp byte [ebp - 6], 1
jne 0x418cb8
cmp word [ebp - 0x144], 9
jne 0x418cb8
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
cmp eax, 1
je 0x418c84
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x11c], 4
jne 0x418cb8
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
Function at 0x4191d0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x418], ecx
xor esi, esi
test edi, edi
je 0x4192e5
cmp word [edi], si
je 0x4192e5
test ebx, ebx
je 0x4192e5
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.005392b0
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
push 0x5933b8
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.00541843
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.005392b0
add esp, 0x2c
mov dword [ebp - 0x41c], 1
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x206
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x41c]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4192d2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4192d2
lea eax, [ebp - 0x20c]
push eax
push 0x591530
push 0x102
push ebx
call fcn.00541843
add esp, 0x10
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
Function at 0x419ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b0
mov eax, dword [0x5b8250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov dword [ebp - 0x6b0], 0
push 0x206
push eax
mov word [ebp - 0x28c], ax
mov esi, ecx
lea eax, [ebp - 0x28a]
push eax
call fcn.005392b0
add esp, 0xc
call fcn.00418b30
cmp al, 2
jb 0x419da6
xor eax, eax
push 0x7e
push eax
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push eax
call fcn.005392b0
add esp, 0xc
mov dword [ebp - 0x6a4], 1
lea eax, [ebp - 0x6ac]
mov dword [ebp - 0x6ac], 0x7e
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x6a4]
push eax
push str.Progid
push str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x419dbf
lea eax, [ebp - 0x84]
push eax
push str._s_shellopencommand
lea eax, [ebp - 0x28c]
push 0x103
push eax
call fcn.00541843
add esp, 0x10
jmp 0x419dbf
push str.http_shellopencommand
lea eax, [ebp - 0x28c]
push 0x103
push eax
call fcn.00541843
add esp, 0xc
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x69c], ax
lea eax, [ebp - 0x69a]
push eax
call fcn.005392b0
add esp, 0xc
mov dword [ebp - 0x6a0], 1
lea eax, [ebp - 0x6a8]
mov dword [ebp - 0x6a8], 0x40e
push eax
lea eax, [ebp - 0x69c]
push eax
lea eax, [ebp - 0x6a0]
push eax
push 0
lea eax, [ebp - 0x28c]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x419e47
push ecx
lea edx, [ebp - 0x28c]
mov word [ebp - 0x28c], ax
lea ecx, [ebp - 0x69c]
call fcn.004137f0
add esp, 4
test eax, eax
je 0x419e47
lea eax, [ebp - 0x28c]
push eax
jmp 0x419e4c
push 0x593910
mov ecx, esi
call fcn.00420660
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
Function at 0x41a590
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e962
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x5b8250]
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, ecx
mov dword [ebp - 0x2a4], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov dword [ebp - 0x2a8], edi
mov word [edi], ax
mov dword [ebp - 4], eax
push 0x208
push eax
mov word [ebp - 0x2a0], ax
lea eax, [ebp - 0x29e]
push eax
mov dword [ebp - 0x2a4], 1
call fcn.005392b0
add esp, 0xc
lea eax, [ebp - 0x2a0]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x2a0]
push 0x2e
push eax
call fcn.00539b29
mov esi, eax
add esp, 8
test esi, esi
je 0x41a6ff
push str..exe
push esi
call fcn.00539e62
add esp, 8
test eax, eax
jne 0x41a6ff
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov word [esi], ax
lea eax, [ebp - 0x2a0]
push 0x593818
push eax
call ebx
mov esi, eax
test esi, esi
je 0x41a6ff
push 0x593818
lea eax, [esi + 4]
push eax
call ebx
test eax, eax
je 0x41a685
mov esi, eax
jmp 0x41a672
test esi, esi
je 0x41a6ff
add esi, 4
push 0x593820
push esi
call fcn.00541b46
add esp, 8
test eax, eax
je 0x41a6a3
xor ecx, ecx
mov word [eax], cx
push 0x20
push esi
call fcn.00541934
add esp, 8
test eax, eax
jne 0x41a6ff
push 9
push esi
call fcn.00541934
add esp, 8
test eax, eax
jne 0x41a6ff
push 0x80
push eax
mov word [ebp - 0x94], ax
lea eax, [ebp - 0x92]
push eax
call fcn.005392b0
push esi
push 0x591530
lea eax, [ebp - 0x94]
push 0x40
push eax
call fcn.00541843
add esp, 0x1c
lea eax, [ebp - 0x94]
mov ecx, edi
push eax
call fcn.0041b980
cmp dword [edi + 0x10], 0
jne 0x41a77e
xor eax, eax
push 0x80
push eax
mov word [ebp - 0x94], ax
lea eax, [ebp - 0x92]
push eax
call fcn.005392b0
add esp, 0xc
lea eax, [ebp - 0x94]
push 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, str.__cid
mov ecx, eax
call fcn.004139d0
add esp, 8
cmp word [ebp - 0x94], 0
jne 0x41a74f
xor ecx, ecx
jmp 0x41a76f
lea ecx, [ebp - 0x94]
lea edx, [ecx + 2]
jmp 0x41a760
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a760
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x94]
mov ecx, edi
push eax
call fcn.004204e0
mov eax, edi
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.0053aa3c
mov esp, ebp
pop ebp
ret
Function at 0x41b140
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56eaa8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5b8250]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x5b8250]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
push 0
push 0x20
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [esp + 0x64], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41b233
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x41b228
lea eax, [ebx + 2]
push eax
call fcn.0051d4c8
mov esi, eax
add esp, 4
test esi, esi
je 0x41b228
lea eax, [ebx + 2]
push eax
push 0
push esi
call fcn.005392b0
add esp, 0xc
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41b21f
cmp ebx, dword [esp + 0x14]
jne 0x41b21f
push esi
lea ecx, [esp + 0x24]
call fcn.0040e690
push esi
call fcn.00538881
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x18]
mov edi, dword [ebp + 0x10]
xor ecx, ecx
test edi, edi
sete cl
xor eax, eax
cmp dword [ebp + 0x14], eax
sete al
test eax, ecx
jne 0x41b2fa
mov eax, dword [esp + 0x30]
test eax, eax
je 0x41b2fa
cmp dword [esp + 0x34], 0x10
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
cmovae ecx, dword [esp + 0x20]
call fcn.00411650
cmp dword [esp + 0x34], 0x10
lea ecx, [esp + 0x20]
mov esi, eax
mov dword [esp + 0x30], 0
cmovae ecx, dword [esp + 0x20]
mov byte [ecx], 0
test esi, esi
je 0x41b2fa
mov edx, dword [esp + 0x14]
test edi, edi
je 0x41b2a6
push edi
mov ecx, esi
call fcn.00439ff0
add esp, 4
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41b2e7
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
push ecx
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, esi
call fcn.00439cd0
mov edi, dword [esp + 0x20]
add esp, 0xc
test edi, edi
je 0x41b2f1
push edi
lea ecx, [esp + 0x24]
call fcn.0040e690
push edi
call fcn.00538881
add esp, 4
jmp 0x41b2f1
push esi
lea ecx, [esp + 0x24]
call fcn.0040e690
push esi
call fcn.00538881
add esp, 4
lea eax, [esp + 0x20]
mov ecx, ebx
push eax
call fcn.00406640
cmp dword [esp + 0x34], 0x10
jb 0x41b319
push dword [esp + 0x20]
call fcn.005385cc
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0053aa3c
mov esp, ebp
pop ebp
ret
Function at 0x41b690
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x41b6d4
cmp edi, 0xffffffff
je 0x41b6d4
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, 1
pop edi
pop ebp
ret