joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4071a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x318
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
mov byte [esp + 0x124], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x125]
lea edx, [esp + 0x228]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x410d6c
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x10], ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x228]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4104a8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x230]
push ebx
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4072c2
lea edx, [esp + 0x14]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
push ebx
push 0x410d60
push edx
mov dword [esp + 0x34], 1
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4072c2
mov eax, dword [esp + 0x14]
mov cl, byte [esp + eax + 0x1f]
lea eax, [esp + eax + 0x20]
cmp cl, bl
je 0x4072a0
mov byte [eax], bl
lea ecx, [esp + 0x20]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
cmp eax, ebx
je 0x4072b7
mov byte [eax + 1], bl
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
and eax, 0xffff
mov dword [esp + 0x10], eax
je 0x407325
cmp eax, 0x1009
ja 0x4072fc
je 0x4072fc
cmp eax, 0x809
ja 0x407307
je 0x4072fc
mov ecx, eax
sub ecx, 0x404
je 0x40731a
sub ecx, 5
je 0x4072fc
sub ecx, 0x3fb
je 0x40733e
mov eax, 0x409
mov dword [esp + 0x10], eax
jmp 0x40733e
sub eax, 0xc04
je 0x40731a
sub eax, 5
je 0x4072fc
sub eax, 0x3fb
jne 0x4072fc
mov eax, 0xc04
mov dword [esp + 0x10], eax
jmp 0x40733e
lea eax, [esp + 0x10]
push eax
push 0x410250
push 0x4100c0
call dword [0x413048]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x12c]
push 0x410f04
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [esp + 0x32c]
cmp eax, ebx
mov dword [ecx], eax
je 0x407382
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x318
ret
push ebx
push ebx
push 0x410ee8
call sub.MFC42.DLL_AfxMessageBox
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x318
ret
Function at 0x407640
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
push 0x4110d0
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x40766e
pop edi
pop esi
pop ebx
add esp, 8
ret
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov ebx, eax
call edi
add esp, 0x1c
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push esi
test edi, edi
jne 0x4076b0
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 8
ret
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea ecx, [esp + 0xc]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jge 0x4076e6
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x40e2a0
push 1
push 0
push eax
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test esi, esi
jge 0x40771f
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
mov edx, dword [esp + 0x18]
push 4
push 0
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_CopyImage]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x409070
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40cd98
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
lea eax, [esp + 0x10]
lea ecx, [esp + 4]
push eax
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push 0x411448
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4090d9
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0040c2d6
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 8]
mov dword [esp + 0xc], 1
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], edx
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409135
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0040c2d6
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
lea ecx, [esp + 0x24]
mov dword [esi], eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.0040c2d6
mov ecx, dword [esp + 0x14]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x409de0
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x208
push edi
xor dl, dl
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx ecx, byte [esp + 4]
push ecx
lea edx, [esp + 0x10c]
push 0x411494
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
pop edi
je 0x409e5b
mov eax, 1
add esp, 0x208
ret
Function at 0x40a6b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40ce90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x30], 2
call fcn.0040a400
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x1c]
mov edi, eax
call sub.MFC42.DLL_CStringArray::SetSize
push 0xe00c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0xe00d
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
push edi
lea edx, [esp + 0xc]
push 0x410eb0
push edx
call sub.MFC42.DLL_CString::Format_1
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push eax
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 3
call fcn.0040c47a
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call fcn.0040c2d6
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea edx, [esp + 0x14]
lea ecx, [esi + 0x68]
push edx
call fcn.00406cc0
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call fcn.0040c2d6
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call fcn.0040c2d6
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.0040c53a
mov ecx, dword [esp + 0x28]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x40a7f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40ceb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x30]
push 0x20
push esi
mov byte [esp + 0x30], 1
call dword [0x412b20]
test eax, eax
je 0x40a89a
push 0x40
push esi
call dword [0x412b20]
test eax, eax
je 0x40a89a
push 0x60
push esi
call dword [0x412b20]
test eax, eax
je 0x40a89a
push 0x80
push esi
call dword [0x412b20]
test eax, eax
je 0x40a89a
push 0xa0
push esi
call dword [0x412b20]
test eax, eax
je 0x40a89a
push 0xc0
push esi
call dword [0x412b20]
test eax, eax
je 0x40a89a
push 0xe0
push esi
call dword [0x412b20]
test eax, eax
jne 0x40a92a
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStringArray::SetSize
push 0x8c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0x8e
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x14]
lea edx, [esp + 8]
push edx
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0xc]
push ecx
lea ecx, [edi + 0x68]
call fcn.00406cc0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.0040c2d6
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040c53a
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStringArray::SetSize
push 0x8c
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::LoadStringA
mov eax, dword [esp + 0x14]
lea edx, [esp + 8]
push edx
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0x8d
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::LoadStringA
mov edx, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea eax, [esp + 0xc]
lea ecx, [edi + 0x68]
push eax
call fcn.00406cc0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.0040c2d6
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040c53a
mov ecx, dword [esp + 0x20]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x40b370
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 4
push 0x417514
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push 0x4116d8
push eax
mov dword [esp + 0x14], 0xffffffff
xor esi, esi
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push 0x20019
push esi
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b40b
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push esi
push 0x4116d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b40b
cmp dword [esp + 8], 2
jne 0x40b40b
mov esi, 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
add esp, 0x110
ret
Function at 0x40bb20
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0x208
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov esi, dword [esp + 0x218]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0xc]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x21c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40bbc7
pop edi
pop esi
pop ebp
add esp, 0x208
ret
mov edi, 0x411784
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x41177c
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x110]
mov edx, ecx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x411784
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 0x14]
lea edi, [esp + ecx + 0x117]
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x118]
push ecx
push 0x411770
push 0x410218
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x208
ret
Function at 0x40bc60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x30c
mov edx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x20d]
mov byte [esp + 0x20c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
stosb byte es:[edi], al
call fcn.0040c000
test eax, eax
jne 0x40bcd7
call fcn.0040b980
cmp eax, 1
je 0x40bcce
cmp eax, 2
jne 0x40bcd7
inc eax
pop edi
add esp, 0x30c
ret
push esi
lea eax, [esp + 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10c]
lea edx, [esp + 0x210]
push ecx
push 0x4117a4
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, 0x41178c
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x41178c
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x14]
mov eax, ecx
lea edx, [esp + 0x21c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.0040bb20
add esp, 0x14
test eax, eax
pop esi
jne 0x40bd53
mov eax, 1
pop edi
add esp, 0x30c
ret
xor eax, eax
pop edi
add esp, 0x30c
ret
Function at 0x40bd60
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0x30c
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x215]
mov ebp, dword [esp + 0x31c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov esi, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0xc]
mov eax, ecx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x320]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40be24
pop edi
pop esi
pop ebp
add esp, 0x30c
ret
or ecx, 0xffffffff
mov edi, 0x411784
xor eax, eax
mov esi, 0x41177c
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x110]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x411784
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + 0xc]
lea edi, [esp + ecx + 0x10f]
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ebp
mov edx, ecx
lea edi, [esp + 0x218]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x218]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4117a8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x220]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x30c
ret
Function at 0x40bf00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x30c
mov edx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x20d]
mov byte [esp + 0x20c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
stosb byte es:[edi], al
call fcn.0040c000
test eax, eax
jne 0x40bf77
call fcn.0040b980
cmp eax, 1
je 0x40bf6e
cmp eax, 2
jne 0x40bf77
inc eax
pop edi
add esp, 0x30c
ret
push esi
lea eax, [esp + 0x10c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10c]
lea edx, [esp + 0x210]
push ecx
push 0x4117a4
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, 0x4117b8
or ecx, 0xffffffff
xor eax, eax
mov esi, 0x4117b8
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x14]
mov eax, ecx
lea edx, [esp + 0x21c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.0040bd60
add esp, 0x14
test eax, eax
pop esi
jne 0x40bff3
mov eax, 1
pop edi
add esp, 0x30c
ret
xor eax, eax
pop edi
add esp, 0x30c
ret

Function at 0x40c000
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 5
sbb eax, eax
neg eax
add esp, 0x94
ret
Function at 0x401f40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45f848
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
and ecx, 0xffff
push eax
push ecx
push 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401fa5
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.00447d9c
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x401fdb
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.00447d9c
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x401fee
mov edx, dword [esp + 0x28]
mov dword [edx], ebx
jmp 0x402073
call fcn.004571ba
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402029
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.00447d9c
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x40205b
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.00447d9c
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x10
mov ecx, ebx
mov esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
mov dword [ecx], ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0xffffffff
call fcn.00447d9c
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x10
Function at 0x403570
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x45f9b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov dword [esp + 8], eax
push ecx
mov dword [esp + 0x10], eax
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0x84], 0
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x34], eax
call fcn.004481cc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x403608
lea ecx, [esp + 0x64]
mov dword [esp + 0x5c], 0xffffffff
call fcn.00447d9c
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 4
mov eax, dword [esp]
push esi
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
lea ecx, [esp + 0x68]
mov dword [esp + 0x60], 0xffffffff
call fcn.00447d9c
mov ecx, dword [esp + 0x58]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 4

Function at 0x403c20
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
mov ecx, 0x50
xor eax, eax
push esi
push edi
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14c]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x403c5a
pop edi
xor eax, eax
pop esi
add esp, 0x140
ret
mov eax, dword [esp + 8]
mov edx, eax
or edx, 0x10
cmp eax, edx
jne 0x403ca7
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 8]
push eax
push esi
call edi
test eax, eax
je 0x403c92
mov eax, dword [esp + 8]
mov ecx, eax
or ecx, 0x10
cmp eax, ecx
jne 0x403ca7
lea edx, [esp + 8]
push edx
push esi
call edi
test eax, eax
jne 0x403c79
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, 1
pop esi
add esp, 0x140
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, 2
pop esi
add esp, 0x140
ret