joyce8/EMBER2024-capa huggingface dataset:
Function at 0x532c20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x532c50
push esi
call fcn.00533120
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x532c49
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x532cd3
mov eax, dword [esi + 0x1a0]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x532cbf
mov eax, dword [esi + 8]
test eax, eax
je 0x532c74
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1a0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x532cbb
cmp eax, 2
je 0x532cbf
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x532c67
cmp eax, 3
je 0x532c9a
cmp eax, 1
jne 0x532c67
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x532c67
mov edx, dword [esi + 0x120]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x532c67
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00532d00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x532cf3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00532d00
add esp, 4
pop esi
ret
Function at 0x561449
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x561481
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00560433
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0056040a
jmp 0x56148d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x561491
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x66c460
mov ecx, edi
call fcn.0056010c
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x5614e4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x5614f7
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.00560433
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0056040a
jmp 0x5614f7
mov ecx, esi
call fcn.00563655
test eax, eax
je 0x5614f7
push edi
mov ecx, eax
call fcn.00561449
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x562dd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x562e12
call fcn.00574751
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x562e12
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x562e09
xor eax, eax
jmp 0x562e1a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00562e20
pop edi
pop esi
pop ebx
ret 4

Function at 0x564d84
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x564da6
cmp dword [edi + 0x3c], 0
jne 0x564da6
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00574751
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00564dd3
pop edi
pop esi
pop ebx
ret 8
Function at 0x5753a7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.00574751
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5753e4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5753e4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x5753e8
xor eax, eax
jmp 0x575466
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00560564
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x575420
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x57540a
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00575557
push ebx
mov edi, eax
call fcn.0056058d
test edi, edi
pop ecx
je 0x575462
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00575320
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0057546b
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x401650
Capabilities:
Check os version

Disassembly:
sub esp, 0x56c
mov eax, dword [0x4814f0]
xor eax, esp
mov dword [esp + 0x568], eax
mov eax, dword [esp + 0x570]
push ebp
push esi
push edi
push 0x11c
lea ecx, [esp + 0x4c]
push 0
push ecx
mov dword [esp + 0x18], eax
call fcn.00448540
push 0x11c
push 0
push ebx
mov dword [esp + 0x60], 0x11c
call fcn.00448540
add esp, 0x18
push ebx
mov dword [ebx], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebx + 4], 5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jne 0x4016f4
push 0x47522c
push 0x47523c
call ebp
push eax
call edi
mov esi, eax
mov dword [esp + 0x10], 0
test esi, esi
je 0x4016f4
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x4016f4
cmp dword [esp + 0x10], 0
jne 0x4017bb
push 0x4752ac
push 0x4752bc
call ebp
push eax
call edi
test eax, eax
je 0x40170e
lea ecx, [esp + 0x48]
push ecx
call eax
mov eax, dword [ebx + 4]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 8]
lea edi, [eax + edx*2]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*2]
cmp eax, edi
jle 0x40173b
mov ecx, 0x47
lea esi, [esp + 0x48]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov edi, eax
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x16e]
push ecx
mov word [esp + 0x170], ax
call fcn.00448540
add esp, 0xc
lea esi, [esp + 0x164]
call fcn.00401590
test eax, eax
jl 0x4017bb
lea edx, [esp + 0x14]
push edx
mov eax, esi
call fcn.004017f0
test eax, eax
je 0x4017bb
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x10
movzx ecx, cx
lea edx, [eax + eax*4]
lea edx, [ecx + edx*2]
cmp edi, edx
jge 0x4017ae
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0xc]
shr eax, 0x10
mov dword [ebx + 0xc], eax
mov dword [ecx + 4], 1
jmp 0x4017c6
mov edx, dword [esp + 0xc]
mov dword [edx + 4], 0
jmp 0x4017c6
mov eax, dword [esp + 0xc]
mov dword [eax + 4], 0
mov ecx, dword [esp + 0x574]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00447f52
add esp, 0x56c
ret 4
Function at 0x4017f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 2
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x40186e
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401867
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x401866
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
test eax, eax
je 0x40185f
push ebp
call fcn.0044ad94
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40185f
mov ecx, dword [esp + 0x10]
push ebp
push ecx
push ebx
call fcn.0044b690
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor esi, esi
cmp ebx, esi
je 0x4018b2
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push 0x4753cc
push ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4018a9
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x18]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
mov esi, 1
push ebx
call fcn.00448a6b
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x401d70
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x80
mov eax, dword [0x4814f0]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.00402ed0
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x94]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x67452301
mov dword [esp + 0x20], 0xefcdab89
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
mov dword [esp + 0x2c], 0xc3d2e1f0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x78], ebx
call fcn.00403e20
add esp, 4
lea eax, [esp + 0x18]
lea ecx, [esp + 0x78]
call fcn.00403f00
mov dword [esp + 0x10], ebx
jmp 0x401e10
movzx ebx, byte [esp + ebx + 0x78]
mov eax, ebx
shr eax, 4
movzx ecx, word [eax*2 + 0x4752f8]
mov eax, dword [esi]
mov ebp, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebp + 1]
sub eax, edi
or edx, eax
mov dword [esp + 0x14], ecx
jge 0x401e48
mov ecx, edi
mov eax, esi
call fcn.00403770
mov ecx, dword [esi]
mov dx, word [esp + 0x14]
mov word [ecx + ebp*2], dx
test edi, edi
jl 0x401ee1
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x401ee1
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + edi*2], cx
mov eax, dword [esi]
and ebx, 0xf
movzx ebp, word [ebx*2 + 0x4752f8]
mov ebx, dword [eax - 0xc]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
lea edi, [ebx + 1]
sub eax, edi
or edx, eax
jge 0x401e9a
mov ecx, edi
mov eax, esi
call fcn.00403770
mov ecx, dword [esi]
mov word [ecx + ebx*2], bp
test edi, edi
jl 0x401ee1
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x401ee1
mov ebx, dword [esp + 0x10]
mov dword [eax - 0xc], edi
mov edx, dword [esi]
inc ebx
xor eax, eax
mov word [edx + edi*2], ax
mov dword [esp + 0x10], ebx
cmp ebx, 0x14
jb 0x401e10
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00447f52
add esp, 0x80
ret
push 0x80070057
call fcn.00403dd0
int3
Function at 0x4021f0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x467f38
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4814f0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x14]
push eax
push 0x202
push ebx
push 0x4751fc
mov dword [esp + 0x38], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4022fc
mov eax, dword [esi]
mov edi, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0x200
je 0x4022ae
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x402285
push 0x80004005
call fcn.00403dd0
push ecx
push eax
call fcn.0044b14d
add esp, 8
test eax, eax
je 0x4022ae
mov esi, dword [esi]
test esi, esi
je 0x4022ae
push esi
call ebp
lea edx, [eax + eax + 2]
push edx
push esi
push 1
push 0
push 0x475334
push edi
call ebx
mov eax, dword [esp + 0x30]
mov esi, dword [eax]
test esi, esi
jne 0x4022bd
lea eax, [esi + 0xd]
jmp 0x4022d2
push esi
call ebp
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push 0x475324
push edi
call ebx
xor edx, edx
test eax, eax
sete dl
mov esi, edx
test edi, edi
je 0x4022e6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x403b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403b69
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403ba4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403ba0
lea ebx, [ebx]
cmp esi, eax
jae 0x403ba4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403b90
cmp esi, eax
jb 0x403baa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403bc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403c2e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x403bff
cmp eax, 2
jne 0x403c1a
mov eax, dword [esp]
test esi, esi
je 0x403c28
test eax, eax
je 0x403c23
test al, 1
jne 0x403c1a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x403c28
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x4058f0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x454
mov eax, dword [0x4814f0]
xor eax, esp
mov dword [esp + 0x44c], eax
mov eax, dword [esp + 0x458]
push ebx
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x468]
push edi
mov dword [eax], ebp
mov dword [esp + 0x30], ecx
mov dword [ecx], ebp
lea ecx, [esp + 0x28]
push ecx
push 8
push ebp
push 0x475460
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x405958
mov edi, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x24], eax
jmp 0x405964
xor eax, eax
jmp 0x405a86
mov edi, dword [esp + 0x38]
lea edx, [esp + 0x40]
push edx
push ebp
push ebp
push ebp
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x264]
push edx
push eax
mov esi, 0x104
push edi
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x405a72
lea eax, [esp + 0x20]
push eax
push 1
push ebp
lea ecx, [esp + 0x25c]
push ecx
push edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x1c], ebp
cmp eax, ebp
jne 0x405a05
mov ebx, dword [esp + 0x20]
push 0x4754fc
lea edx, [esp + 0x1c]
mov dword [esp + 0x18], esi
push edx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x50]
mov dword [esp + 0x20], ebx
call fcn.00403bc0
test eax, eax
jne 0x4059f2
mov eax, dword [esp + 0x34]
push eax
mov ecx, esi
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x405a1b
cmp ebx, ebp
je 0x405a01
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [esp + 0x24]
inc eax
cmp eax, 0x100
mov dword [esp + 0x24], eax
jl 0x405960
jmp 0x405a72
push 0x475520
lea edx, [esp + 0x1c]
push edx
lea edi, [esp + 0x1c]
lea esi, [esp + 0x50]
mov dword [esp + 0x1c], 0x104
call fcn.00403bc0
test eax, eax
jne 0x405a67
mov eax, esi
push eax
call fcn.0044bd4e
add esp, 4
cmp eax, 5
jne 0x405a67
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [ecx], 1
push edx
mov ecx, ebx
call fcn.004057c0
add esp, 4
cmp ebx, ebp
je 0x405a72
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x405a81
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00447f52
add esp, 0x454
ret
Function at 0x4082f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x468560
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4814f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
call fcn.00408140
test eax, eax
je 0x40833d
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp + 8], 0
je 0x40834e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408324
cmp dword [ebp + 0xc], 0
je 0x408366
push esi
call fcn.00408680
add esp, 4
test eax, eax
sete al
test al, al
jne 0x408324
mov eax, dword [ebp + 0x10]
push eax
push esi
mov dword [ebp - 4], 0
call fcn.004081c0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x408400
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x810
mov eax, dword [0x4814f0]
xor eax, esp
mov dword [esp + 0x80c], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.00448540
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x4756dc
push 0x4756e8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x800
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x408480
mov eax, 1
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.00447f52
add esp, 0x810
ret
push 0x475768
lea edx, [esp + 0x10]
push edx
mov eax, edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408466
push ebx
push esi
lea esi, [esp + 8]
lea ebx, [esp + 0x14]
mov dword [esp + 8], 0xffffffff
call fcn.00408220
test eax, eax
je 0x4084d8
mov eax, dword [esp + 8]
cmp eax, 3
je 0x4084d8
cmp eax, 0xffffffff
je 0x4084d8
mov esi, ebx
call fcn.004083c0
mov esi, eax
test esi, esi
jne 0x4084f4
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x80c]
xor ecx, esp
call fcn.00447f52
add esp, 0x810
ret
push edi
push 0x475780
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x818]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00447f52
add esp, 0x810
ret
Function at 0x408530
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1004
call fcn.00449830
mov eax, dword [0x4814f0]
xor eax, esp
mov dword [esp + 0x1000], eax
push esi
mov esi, dword [esp + 0x1010]
push edi
mov edi, dword [esp + 0x1010]
push 0x1000
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00448540
push 0x800
lea ecx, [esp + 0x18]
push 0x475790
push ecx
call fcn.00449250
push 0x800
lea edx, [esp + 0x24]
push esi
push edx
call fcn.0044c841
push 0x800
lea eax, [esp + 0x30]
push 0x475798
push eax
call fcn.0044c841
push 0x800
lea ecx, [esp + 0x3c]
push esi
push ecx
call fcn.0044c841
push 0x800
lea edx, [esp + 0x48]
push 0x4757c4
push edx
call fcn.0044c841
add esp, 0x48
push 0x800
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0044c841
push 0x800
lea ecx, [esp + 0x18]
push 0x4757e8
push ecx
call fcn.0044c841
add esp, 0x18
push 0x14
push esi
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
cmp esi, 6
jne 0x408654
push 0xc8
push 0x475698
push 0x483148
call fcn.00448c6a
add esp, 0xc
test eax, eax
jne 0x40863c
call fcn.00408400
test eax, eax
je 0x40863c
push 5
push 0
push 0
push 0x4832e0
jmp 0x408647
push 5
push 0
push 0
push 0x483148
push 0x475804
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [esp + 0x1018], 0
je 0x408665
push 0
call fcn.0044bc95
mov ecx, dword [esp + 0x1008]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00447f52
add esp, 0x1004
ret

Function at 0x408680
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x144
mov eax, dword [0x4814f0]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4086d3
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00447f52
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 0x40
lea ecx, [esp + 0x114]
push ecx
push esi
call edi
test eax, eax
je 0x40875b
cmp dword [esp + 0xc], 0x40
jne 0x40875b
mov edx, 0x5a4d
cmp word [esp + 0x108], dx
jne 0x40875b
mov eax, dword [esp + 0x144]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [esp + 0x144]
jne 0x40875b
push 0
lea ecx, [esp + 0x10]
push ecx
push 0xf8
lea edx, [esp + 0x1c]
push edx
push esi
call edi
test eax, eax
je 0x40875b
cmp dword [esp + 0xc], 0xf8
jne 0x40875b
cmp dword [esp + 0x10], 0x4550
jne 0x40875b
cmp word [esp + 0x16], bx
je 0x40875b
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00447f52
mov esp, ebp
pop ebp
ret
Function at 0x408780
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x409360
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x4814f0]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x6c]
push ecx
push eax
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.004087b0
lea eax, [esp + 0xc]
push eax
push esi
call fcn.00408850
mov ecx, dword [esp + 0x70]
add esp, 0x14
xor ecx, esp
call fcn.00447f52
add esp, 0x64
ret