joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412780
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57164b
mov eax, dword fs:[0]
push eax
sub esp, 0x67c
mov eax, dword [0x5bb250]
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 ebx, ecx
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x412933
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.0053ca90
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x5943c4
push ebx
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.0053ca90
add esp, 0xc
lea eax, [ebp - 0x688]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x412933
lea eax, [ebp - 0x65c]
push 0x5943cc
push eax
call fcn.0053d642
add esp, 8
test eax, eax
je 0x412916
lea eax, [ebp - 0x65c]
push 0x5943d0
push eax
call fcn.0053d642
add esp, 8
test eax, eax
je 0x412916
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0053ca90
add esp, 0xc
lea eax, [ebp - 0x65c]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test byte [ebp - 0x688], 0x10
je 0x4128b4
mov edx, esi
lea ecx, [ebp - 0x218]
call fcn.00412780
jmp 0x412916
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.00420550
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.0041bad0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x424], 8
jb 0x4128f9
push dword [ebp - 0x438]
call fcn.0053ba8c
add esp, 4
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x688]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412831
push edi
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.0053e21c
mov esp, ebp
pop ebp
ret
Function at 0x412950
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571696
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5bb250]
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 eax, dword [ebp + 0xc]
xor esi, esi
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x220], esi
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push eax
push 0x587540
push 1
push esi
push 0x5894d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x412ab0
mov eax, dword [ebp - 0x21c]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [ebp + 0x14]
cmp edx, 0xffffffff
je 0x4129e6
push edx
push edi
jmp 0x4129ed
test ebx, ebx
je 0x4129f9
push 0
push ebx
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0053ca90
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412a20
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push edi
push eax
call fcn.00545196
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x218]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [ebp - 0x224]
test edx, edx
je 0x412a77
mov eax, dword [ebp - 0x21c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x220]
push edx
push 0x5899c0
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x412ab0
mov eax, dword [ebp - 0x220]
push 2
push dword [ebp - 0x228]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
mov ecx, 1
cmovns esi, ecx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x412ac4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x21c]
test ecx, ecx
je 0x412adb
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
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.0053e21c
mov esp, ebp
pop ebp
ret
Function at 0x412d20
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22fc
call fcn.0053e720
mov eax, dword [0x5bb250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
push esi
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412d5c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x208e
push eax
mov word [ebp - 0x22a0], ax
lea eax, [ebp - 0x229e]
push eax
call fcn.0053ca90
add esp, 0xc
test ebx, ebx
je 0x412da0
cmp word [ebx], di
je 0x412da0
push ebx
push esi
push str.__s___s
lea eax, [ebp - 0x22a0]
push 0x1047
push eax
call fcn.00544ed3
add esp, 0x14
jmp 0x412dba
push esi
push 0x594420
lea eax, [ebp - 0x22a0]
push 0x1047
push eax
call fcn.00544ed3
add esp, 0x10
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0053ca90
push esi
push 0x594340
lea eax, [ebp - 0x210]
push 0x103
push eax
call fcn.00544ed3
add esp, 0x1c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x40
lea eax, [ebp - 0x22f4]
push 0
push eax
call fcn.0053ca90
add esp, 0xc
mov dword [ebp - 0x22f8], 0x44
lea eax, [ebp - 0x22b0]
mov dword [ebp - 0x22cc], 0x80
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x22b0], xmm0
push eax
lea eax, [ebp - 0x22f8]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x22a0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x412e92
mov eax, dword [ebp + 8]
test eax, eax
je 0x412e77
push eax
push dword [ebp - 0x22b0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x412e7c
mov edi, 1
push dword [ebp - 0x22ac]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x22b0]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053e21c
mov esp, ebp
pop ebp
ret

Function at 0x4137f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor edi, edi
mov ebx, edx
test ecx, ecx
je 0x41384b
cmp word [ecx], di
je 0x41384b
test ebx, ebx
je 0x41384b
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x413842
cmp dword [ebp - 4], edi
je 0x41383b
push dword [esi]
push 0x594340
push 0x104
push ebx
call fcn.00544ed3
add esp, 0x10
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413860
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
xor esi, esi
test ebx, ebx
je 0x413916
test edx, edx
je 0x413916
mov eax, dword [ebp + 8]
test eax, eax
je 0x413916
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x41390e
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41390d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x413906
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x413906
push dword [ebp - 8]
mov dword [ebp - 4], esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4138fd
cmp esi, dword [ebp - 4]
jne 0x4138fd
mov esi, 1
jmp 0x4138ff
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413cb0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5bb250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413cea
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0053ca90
push esi
push 0x594340
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00544ed3
add esp, 0x1c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 5
lea eax, [ebp - 0x20c]
push eax
push ebx
push esi
push 0x594430
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
mov ecx, 1
cmovg edi, ecx
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
Function at 0x413df0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5717c8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5bb250]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x5bb250]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov esi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x413f09
test esi, esi
je 0x413f09
cmp word [esi], di
je 0x413f09
push ebx
lea ecx, [esp + 0x44]
call fcn.00420550
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x6c], edi
call fcn.00420550
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], edi
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
mov byte [esp + 0x68], 2
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x44]
call fcn.00430b80
add esp, 4
mov ecx, 1
test eax, eax
cmove edi, ecx
cmp dword [esp + 0x24], 8
jb 0x413eb1
push dword [esp + 0x10]
call fcn.0053ba8c
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
cmp dword [esp + 0x3c], 8
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
jb 0x413edb
push dword [esp + 0x28]
call fcn.0053ba8c
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
cmp dword [esp + 0x54], 8
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
jb 0x413f05
push dword [esp + 0x40]
call fcn.0053ba8c
add esp, 4
mov eax, edi
jmp 0x413f0b
xor eax, eax
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret

Function at 0x413f30
Capabilities:
Create new key via cryptacquirecontext
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebx
push esi
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
mov esi, ecx
mov ebx, edx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov eax, dword [esi]
test eax, eax
jne 0x413f68
push 0xf0000048
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov eax, dword [esi]
test eax, eax
je 0x413f8f
push ebx
push 0
push 0
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x413f85
pop esi
mov eax, 1
pop ebx
ret
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4140d0
Capabilities:
Hash data via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5bb250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 0x218], edx
test ebx, ebx
je 0x4141bc
test esi, esi
je 0x4141bc
lea edx, [ebp - 0x210]
mov dword [ebp - 0x214], edi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x210], edi
call fcn.00413f30
test eax, eax
je 0x4141bc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0053ca90
mov edx, dword [ebp - 0x210]
add esp, 0xc
test edx, edx
je 0x41419e
push edi
push dword [ebp - 0x218]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x414198
push ecx
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
call fcn.00413fc0
add esp, 4
test eax, eax
je 0x414198
lea eax, [ebp - 0x20c]
push eax
push 0x594340
push 0x3f
push esi
call fcn.00544ed3
add esp, 0x10
mov edi, 1
mov edx, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x214]
call fcn.004140a0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
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.0053e21c
mov esp, ebp
pop ebp
ret
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 [0x5bb250]
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 0x5943ec
push esi
call fcn.00545072
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.00542ad9
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
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.0053ca90
push ebx
push 0x400
lea eax, [ebp - 0x60c]
push edi
push eax
call fcn.0054322e
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.0054322e
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.0053ca90
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 0x594340
push 0x3f
push dword [ebp - 0x618]
call fcn.00544ed3
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.00542ad9
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053e21c
mov esp, ebp
pop ebp
ret
Function at 0x415850
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571a8b
mov eax, dword fs:[0]
push eax
sub esp, 0x680
mov eax, dword [0x5bb250]
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.0053ca90
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.0053ca90
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 0x5943cc
push eax
call fcn.0053d642
add esp, 8
test eax, eax
je 0x4159cd
lea eax, [ebp - 0x65c]
push 0x5943d0
push eax
call fcn.0053d642
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.0053ca90
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.00420550
mov ecx, dword [ebp - 0x68c]
lea eax, [ebp - 0x438]
push eax
mov dword [ebp - 4], 0
call fcn.0041bad0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x424], 8
jb 0x4159cd
push dword [ebp - 0x438]
call fcn.0053ba8c
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.0053e21c
mov esp, ebp
pop ebp
ret
Function at 0x416d90
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x5bb250]
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 0x416e7e
inc esi
cmp esi, 4
jb 0x416df7
xor eax, eax
push 0x206
push eax
mov word [esp + 0x38], ax
lea eax, [esp + 0x3a]
push eax
call fcn.0053ca90
add esp, 0xc
lea eax, [esp + 0x30]
push 0x103
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x595a48
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.0053e21c
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.0053e21c
mov esp, ebp
pop ebp
ret
Function at 0x4171b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x5bb250]
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 0x4171e1
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
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.0053ca90
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 0x417278
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053e21c
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 0x4171cf
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
lea edx, [ebp - 0x20]
xor edi, edi
call fcn.004170f0
add esp, 4
test eax, eax
je 0x4172d3
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 0x4172cc
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.0053e21c
mov esp, ebp
pop ebp
ret
Function at 0x417d70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571c28
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5bb250]
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 0x58e9fd
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 0x595ba4
push esi
mov dword [ebp - 4], 0
call fcn.00545072
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x417e6c
push 2
push 0
push ebx
call fcn.00543369
push ebx
call fcn.0054377c
push 0
mov esi, eax
push 0
push ebx
mov dword [ebp - 0x2c], esi
call fcn.00543369
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x30], eax
call fcn.00520986
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x417e22
push ebx
call fcn.00542ad9
jmp 0x417e69
push dword [ebp - 0x30]
push 0
push esi
call fcn.0053ca90
push ebx
push dword [ebp - 0x2c]
push 1
push esi
call fcn.0054322e
push ebx
call fcn.00542ad9
add esp, 0x20
cmp byte [esi], 0
jne 0x417e4b
xor ecx, ecx
jmp 0x417e59
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417e50
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.004072b0
push esi
call fcn.0053c06b
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00406640
cmp dword [ebp - 0x14], 0x10
jb 0x417e88
push dword [ebp - 0x28]
call fcn.0053ba8c
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.0053e21c
mov esp, ebp
pop ebp
ret