joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4075b0
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x288]
sub esp, 0x288
push 0xffffffffffffffff
push 0x45d5c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x48e0ec]
xor eax, ebp
mov dword [ebp + 0x284], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x290]
lea ecx, [ebp]
push eax
xor esi, esi
call fcn.00401bc0
lea eax, [ebp - 0x20]
mov dword [ebp - 4], esi
push eax
push dword [ebp]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4076c9
push ebx
call fcn.00423c8c
add esp, 4
mov edi, eax
push edi
push ebx
push 0
push dword [ebp]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4076c0
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x204]
push str.VarFileInfoTranslation
push eax
call ebx
add esp, 8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x204]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4076c0
cmp dword [ebp - 0x14], 4
jb 0x4076c0
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp + 0x204]
push str.StringFileInfo_04x_04xProductVersion
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x204]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4076c0
mov eax, dword [ebp - 0x10]
inc eax
push eax
call fcn.0044238c
mov esi, eax
mov eax, dword [ebp - 0x10]
mov byte [eax + esi], 0
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
push esi
call fcn.0043e310
add esp, 0x10
push edi
call fcn.00423c95
add esp, 4
lea ecx, [ebp]
call fcn.00401c40
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 + 0x284]
xor ecx, ebp
call fcn.00423c9a
lea esp, [ebp + 0x288]
pop ebp
ret

Function at 0x407830
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 0x462708
push 1
push 0
push 0x4626f8
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [edi], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x407890
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
js 0x407890
mov eax, dword [esp + 8]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x40789e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4078ac
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
add esp, 8
ret
Function at 0x407920
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d606
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x48e0ec]
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 [0x495b80]
test eax, eax
jne 0x407a38
cmp byte [0x495acc], al
je 0x407981
call fcn.00403f60
mov esi, eax
test esi, esi
je 0x407981
push esi
call fcn.00404d70
mov dword [0x495b80], esi
mov eax, esi
jmp 0x407a35
cmp byte [0x495b75], 0
mov ecx, 0x26
mov eax, 0x1a
cmovne eax, ecx
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4079c0
lea eax, [ebp - 0x218]
push eax
call fcn.00404db0
add esp, 4
mov edi, eax
jmp 0x4079c2
xor edi, edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x407a1e
mov ecx, dword [0x495ac8]
xor eax, eax
test ecx, ecx
push ecx
setne al
push 0x462e7c
push 0x4628d0
lea eax, [eax*2 + 1]
push eax
call fcn.00403270
mov esi, eax
mov dword [ebp - 0x220], esi
push esi
push edi
mov byte [ebp - 4], 1
call fcn.004046f0
mov ebx, eax
push esi
mov dword [0x495b80], ebx
call fcn.00442387
add esp, 0x1c
jmp 0x407a2d
mov dword [0x495b80], str.C:ProgramSpotify
mov ebx, str.C:ProgramSpotify
push edi
call fcn.00442387
mov eax, ebx
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.00423c9a
mov esp, ebp
pop ebp
ret

Function at 0x407b80
Capabilities:
Get hostname
Get user security identifier

Disassembly:
sub esp, 0x47c
mov eax, dword [0x48e0ec]
xor eax, esp
mov dword [esp + 0x478], eax
xor eax, eax
mov dword [esp + 4], 0x10
mov word [esp + 0x14], ax
xorps xmm0, xmm0
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
movq qword [esp + 0x2a], xmm0
push eax
movups xmmword [esp + 0x1e], xmm0
call dword [sym.imp.KERNEL32.DLL_GetComputerNameW]
test eax, eax
je 0x407c59
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x44
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x200
push eax
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x407c59
lea eax, [esp]
mov dword [esp], 0
push eax
lea eax, [esp + 0x38]
push eax
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x407c59
push esi
push dword [esp + 4]
call fcn.00404db0
add esp, 4
mov esi, eax
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x478]
xor ecx, esp
call fcn.00423c9a
add esp, 0x47c
ret
mov ecx, dword [esp + 0x478]
xor eax, eax
xor ecx, esp
call fcn.00423c9a
add esp, 0x47c
ret
Function at 0x4083f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x48e0ec]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x408441
cmp dword [esp + 0x10], 2
jne 0x408441
cmp dword [esp + 4], 6
jb 0x408441
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00423c9a
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor eax, eax
xor ecx, esp
call fcn.00423c9a
add esp, 0x118
ret

Function at 0x408520
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
push 0
push str.SpotifyMainWindow
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x4085ef
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [esp + 8]
push eax
push 0x1388
push 1
push 0
push 0
push 0x8068
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
mov ecx, dword [sym.imp.KERNEL32.DLL_OpenProcess]
test eax, eax
je 0x4085be
mov eax, dword [esp + 4]
test eax, eax
je 0x4085ad
push eax
push 0
push 0x100400
call ecx
mov esi, eax
test esi, esi
je 0x4085ad
push ebx
push 0x1388
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
push esi
sete bl
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test bl, bl
pop ebx
jne 0x4085ef
jmp 0x4085b8
push 0x1388
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov ecx, dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov eax, dword [esp + 4]
test eax, eax
je 0x4085ef
push eax
push 0
push 1
call ecx
mov esi, eax
test esi, esi
je 0x4085ef
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
add esp, 8
ret

Function at 0x408600
Capabilities:
Terminate process

Disassembly:
sub esp, 8
push esi
push 0
push str.SpotifyHttpsListener
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x408663
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [esp + 8]
push eax
push 0x3e8
push 1
push 0
push 0
push 0x8001
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
push dword [esp + 4]
push 0
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x408663
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
add esp, 8
ret

Function at 0x408670
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov esi, eax
test esi, esi
je 0x40869d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x40869d
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
pop esi
ret
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4086a7
mov dword [eax], esi
mov al, 1
pop esi
ret
Function at 0x4092c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push 0x3c
lea eax, [esp + 8]
push 0
push eax
call fcn.0043fe90
mov esi, dword [esp + 0x64]
add esp, 0xc
mov eax, esi
mov dword [esp + 4], 0x3c
neg eax
mov dword [esp + 0x20], 1
sbb eax, eax
and eax, 0x40
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x409332
pop esi
add esp, 0x3c
ret
test esi, esi
je 0x40933c
mov eax, dword [esp + 0x3c]
mov dword [esi], eax
mov eax, 1
pop esi
add esp, 0x3c
ret
Function at 0x40a000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45da26
mov eax, dword fs:[0]
push eax
sub esp, 0x670
mov eax, dword [0x48e0ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x624], eax
mov eax, dword [ebp + 0xc]
push 0x44
mov dword [ebp - 0x628], eax
lea eax, [ebp - 0x67c]
push 0
push eax
movups xmmword [ebp - 0x638], xmm0
call fcn.0043fe90
add esp, 0xc
test esi, esi
je 0x40a06c
mov dword [esi], 0
push dword [ebp - 0x624]
lea ecx, [ebp - 0x61c]
call fcn.00401bc0
push dword [ebp - 0x628]
lea ecx, [ebp - 0x418]
mov dword [ebp - 4], 0
call fcn.00401bc0
test edi, edi
mov byte [ebp - 4], 1
mov eax, 0x462514
lea ecx, [ebp - 0x214]
cmovne eax, edi
push eax
call fcn.00401bc0
xor eax, eax
mov dword [ebp - 0x67c], 0x44
lea ecx, [ebp - 0x638]
test edi, edi
push ecx
cmovne eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x67c]
push ecx
push eax
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x418]
push dword [ebp - 0x61c]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x40a0fb
mov byte [ebp - 0x61d], al
jmp 0x40a126
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
je 0x40a10f
mov eax, dword [ebp - 0x638]
mov dword [esi], eax
jmp 0x40a117
push dword [ebp - 0x638]
call edi
push dword [ebp - 0x634]
call edi
mov byte [ebp - 0x61d], 1
lea ecx, [ebp - 0x214]
call fcn.00401c40
lea ecx, [ebp - 0x418]
call fcn.00401c40
lea ecx, [ebp - 0x61c]
call fcn.00401c40
mov al, byte [ebp - 0x61d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423c9a
mov esp, ebp
pop ebp
ret
Function at 0x40aed0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45db70
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x48e0ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x495b75], 0
jne 0x40af95
lea eax, [ebp - 0x154]
mov dword [ebp - 0x154], 0x114
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x40af95
cmp dword [ebp - 0x144], 2
jne 0x40af95
cmp dword [ebp - 0x150], 6
jb 0x40af95
lea eax, [ebp - 0x158]
push eax
call fcn.004078c0
add esp, 4
test eax, eax
jne 0x40af95
cmp dword [ebp - 0x158], 2
jne 0x40af95
push 0x462fa8
lea ecx, [ebp - 0x28]
call fcn.00405730
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00410aae
push 0x10
push eax
mov byte [ebp - 4], 1
call fcn.004090e0
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.004059d0
lea ecx, [ebp - 0x28]
call fcn.004059d0
xor al, al
jmp 0x40af97
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00423c9a
mov esp, ebp
pop ebp
ret

Function at 0x40c7d0
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push dword [esp + 0xc]
call fcn.004495bb
add esp, 4
lea ecx, [esp + 4]
push ecx
push 0
push eax
push 0x4086b0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov esi, eax
push 0x1388
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ecx
ret

Function at 0x40cea0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x1044
call fcn.0040e930
mov eax, dword [0x48e0ec]
xor eax, esp
mov dword [esp + 0x1040], eax
push 0
push 0
push 0x1000
lea eax, [esp + 0x4c]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
neg eax
push 0x10
sbb al, al
and byte [esp + 0x44], al
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00409400
dec eax
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00408760
mov ecx, dword [esp + 0x1054]
add esp, 0x14
xor ecx, esp
call fcn.00423c9a
add esp, 0x1044
ret 0x10
Function at 0x40cf5a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ecx
mov eax, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x40cf79
xor eax, eax
jmp 0x40d0ca
add dword [esp + 0x1c], 5
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
or ebx, 0xffffffff
lea ecx, [ebp - 4]
add ecx, eax
mov dword [esp + 0x20], ecx
lea edx, [edi + ebp]
mov dword [esp + 0x10], edx
cmp edx, ecx
jae 0x40cfac
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x40cfa8
inc edx
cmp edx, ecx
jb 0x40cf9b
mov dword [esp + 0x10], edx
mov edi, edx
sub edi, ebp
cmp edx, ecx
jae 0x40d0ac
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x40d004
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [esp + 0x14], ebx
test al, al
je 0x40cfd4
cmp al, 0xff
jne 0x40d02d
movzx ebp, al
movzx eax, byte [edx + 3]
shl ebp, 8
or ebp, eax
movzx eax, byte [edx + 2]
shl ebp, 8
or ebp, eax
movzx eax, byte [edx + 1]
mov edx, dword [esp + 0x24]
shl ebp, 8
or ebp, eax
cmp dword [esp + 0x2c], 0
je 0x40d03f
lea ebx, [edi + ebp]
add ebx, edx
jmp 0x40d045
dec ecx
shl esi, cl
and esi, 7
je 0x40cfc3
movzx eax, byte [esi + 0x479b4c]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x479b44], 0
mov al, byte [ecx + 4]
je 0x40d02b
test al, al
je 0x40d02b
cmp al, 0xff
jne 0x40cfc3
mov ebx, edi
mov ecx, dword [esp + 0x20]
and esi, 3
add esi, esi
or esi, 1
inc edi
jmp 0x40cf90
mov ebx, ebp
sub ebx, edi
sub ebx, edx
test esi, esi
je 0x40d073
movzx ebp, byte [esi + 0x479b4c]
mov eax, ebx
push 0x18
shl ebp, 3
pop ecx
sub ecx, ebp
shr eax, cl
test al, al
je 0x40d064
cmp al, 0xff
jne 0x40d073
push 0x20
pop ecx
sub ecx, ebp
xor ebp, ebp
inc ebp
shl ebp, cl
dec ebp
xor ebp, ebx
jmp 0x40cff6
mov edx, dword [esp + 0x10]
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
shr eax, 0x18
and al, 1
mov byte [edx + 1], bl
dec al
not al
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [esp + 0x14]
shr eax, 8
add edi, 5
mov byte [edx + 2], al
jmp 0x40cf90
mov edx, edi
xor eax, eax
sub edx, ebx
pop ebp
pop ebx
lea ecx, [edx - 1]
shl esi, cl
and esi, 7
cmp edx, 3
cmova esi, eax
mov eax, dword [esp + 0x20]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ecx
pop ecx
ret
Function at 0x410c26
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
xor edx, edx
mov ecx, 0x811c9dc5
cmp dword [esp + 8], edx
jbe 0x410c4c
push esi
mov esi, dword [esp + 8]
movzx eax, byte [edx + esi]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [esp + 0xc]
jb 0x410c38
pop esi
mov eax, ecx
ret

Function at 0x412164
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
sub esp, 0x54
push 0x40
mov eax, 0x45e8a0
call fcn.004244d1
mov ebx, dword [ebp + 0x60]
mov eax, dword [ebp + 0x64]
push dword [ebp + 0x54]
and dword [ebp - 4], 0
lea ecx, [ebp + 0x4c]
push eax
call fcn.004117e6
push dword [ebp + 0x54]
lea eax, [ebp + 0x68]
sub esp, 0x38
mov edi, esp
sub esp, 0x10
mov esi, esp
mov ecx, esi
mov dword [ebp + 0x54], esi
push eax
call fcn.004125d7
push dword [ebp + 0x50]
mov eax, dword [ebp + 0x74]
mov ecx, edi
push dword [ebp + 0x4c]
mov dword [esi + 0xc], eax
call fcn.00411746
lea eax, [ebp - 0x4c]
push eax
call fcn.00412290
add esp, 0x40
push dword [ebp + 0x54]
xor ecx, ecx
mov byte [ebp - 4], 1
sub esp, 0x38
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov byte [eax + 0x30], 1
lea eax, [ebp]
push eax
call fcn.00412290
mov ecx, esp
mov dword [ebp + 0x54], esp
lea eax, [ebp]
mov byte [ebp - 4], 2
push eax
mov dword [ebp + 0x50], ecx
call fcn.004182b5
sub esp, 0x40
mov byte [ebp - 4], 3
mov ecx, esp
lea eax, [ebp - 0x4c]
mov dword [ebp + 0x50], ecx
push eax
call fcn.004182b5
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], 2
call fcn.0041186e
lea eax, [ebp + 0x40]
mov ecx, ebx
push eax
call fcn.004114b2
lea ecx, [ebp + 0x40]
call fcn.00410ffb
lea ecx, [ebp]
mov byte [ebp - 4], 8
call fcn.00416db6
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xd
call fcn.00416db6
lea ecx, [ebp + 0x68]
call fcn.0041271c
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x58]
pop ebp
ret
Function at 0x417e46
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
sub esp, 0x54
push 0x40
mov eax, 0x45e8a0
call fcn.004244d1
mov ebx, dword [ebp + 0x60]
mov eax, dword [ebp + 0x64]
push dword [ebp + 0x54]
and dword [ebp - 4], 0
lea ecx, [ebp + 0x4c]
push eax
call fcn.004117e6
push dword [ebp + 0x54]
lea eax, [ebp + 0x68]
sub esp, 0x38
mov edi, esp
sub esp, 0x10
mov esi, esp
mov ecx, esi
mov dword [ebp + 0x54], esi
push eax
call fcn.004125d7
push dword [ebp + 0x50]
mov eax, dword [ebp + 0x74]
mov ecx, edi
push dword [ebp + 0x4c]
mov dword [esi + 0xc], eax
call fcn.004177ad
lea eax, [ebp - 0x4c]
push eax
call fcn.00412290
add esp, 0x40
push dword [ebp + 0x54]
xor ecx, ecx
mov byte [ebp - 4], 1
sub esp, 0x38
mov eax, esp
mov dword [eax], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov byte [eax + 0x30], 1
lea eax, [ebp]
push eax
call fcn.00412290
mov ecx, esp
mov dword [ebp + 0x54], esp
lea eax, [ebp]
mov byte [ebp - 4], 2
push eax
mov dword [ebp + 0x50], ecx
call fcn.004182b5
sub esp, 0x40
mov byte [ebp - 4], 3
mov ecx, esp
lea eax, [ebp - 0x4c]
mov dword [ebp + 0x50], ecx
push eax
call fcn.004182b5
lea ecx, [ebp + 0x40]
mov byte [ebp - 4], 2
call fcn.0041781e
lea eax, [ebp + 0x40]
mov ecx, ebx
push eax
call fcn.004114b2
lea ecx, [ebp + 0x40]
call fcn.00410ffb
lea ecx, [ebp]
mov byte [ebp - 4], 8
call fcn.00416db6
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xd
call fcn.00416db6
lea ecx, [ebp + 0x68]
call fcn.0041271c
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x58]
pop ebp
ret
Function at 0x418d1e
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x45e9ea
call fcn.00424505
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x418e1e
cmp byte [ebx + 0x3d], 0
je 0x418e1e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x418d58
xor al, al
jmp 0x418e20
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.004194ba
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x418db6
sub eax, 1
je 0x418dba
dec eax
sub eax, 1
je 0x418e0c
xor bl, bl
jmp 0x418e0e
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x418df2
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004469a4
add esp, 0x10
cmp esi, eax
jne 0x418db2
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x418e0c
test esi, esi
jne 0x418d7c
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00411037
jmp 0x418d76
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040b780
mov al, bl
jmp 0x418e20
mov al, 1
call fcn.004244af
ret
Function at 0x422cb5
Capabilities:
Check if file exists

Disassembly:
push 0x290
mov eax, 0x45f9cd
call fcn.00424505
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x298], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x29c], ecx
lea ecx, [ebp - 0x28]
push eax
call fcn.004100cc
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
sete al
test al, al
jne 0x422d3b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x422d34
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x2f
je 0x422d34
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x3a
jne 0x422d3b
mov eax, 0x47a774
jmp 0x422d40
mov eax, 0x47a76c
push eax
mov dword [ebp - 0x294], eax
call fcn.00422099
pop ecx
push eax
push dword [ebp - 0x294]
lea ecx, [ebp - 0x28]
call fcn.004212bc
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov ecx, dword [ebp - 0x298]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x422dad
and dword [ecx], 0
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call edi
cmp eax, 2
je 0x422d9f
call edi
cmp eax, 0x12
je 0x422d9f
call edi
mov edi, eax
jmp 0x422da1
xor edi, edi
call fcn.00420835
mov dword [esi], edi
jmp 0x422e36
lea eax, [ebp - 0x264]
push eax
call fcn.00422099
pop ecx
mov ecx, dword [ebp - 0x29c]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00421392
test dword [ebp - 0x290], 0x400
je 0x422de1
and dword [edi], 0
and dword [ebx], 0
jmp 0x422e2e
test byte [ebp - 0x290], 0x10
je 0x422dee
push 3
jmp 0x422df0
push 2
pop eax
mov dword [edi], eax
lea ecx, [ebp - 0x40]
mov dword [ebx], eax
lea eax, [ebp - 0x264]
push eax
call fcn.00420f7c
push dword [ebp - 0x290]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.004234a1
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x40]
mov dword [edi + 4], eax
call fcn.0040b7e0
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
and dword [esi], 0
call fcn.00420835
push 0
push 1
lea ecx, [ebp - 0x28]
mov dword [esi + 4], eax
call fcn.0040b7e0
mov eax, esi
call fcn.004244af
ret