joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100728b3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
call fcn.10001092
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x10072945
jmp 0x10072a20
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x88], ecx
mov dword [0x10086a68], 0x983
mov edx, dword [esp + 0x1c]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x5c], esi
mov dword [0x10086a64], 0xd5e
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.10072d0d
mov dword [0x10086a64], 0x1bd4
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [0x10086a68], 0x5f1
mov dword [esp + 0x18], eax
jmp 0x10072a18
lea eax, [esp + 0x38]
mov dword [0x10086a64], 0x104f
mov dword [esp + 0x14], eax
call fcn.10072acb
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x18], ecx
jne 0x10072a18
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.10071e22
lea ecx, [0x1007303c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x44], edx
mov dword [esp + 0x70], 0x13b600
mov edx, dword [0x10086a50]
mov dword [esp + 0x74], edx
mov edx, dword [0x10086a54]
mov dword [esp + 0x38], edx
mov edx, dword [0x10086a58]
mov dword [esp + 0x3c], edx
mov edx, dword [0x10086a5c]
mov dword [esp + 0x68], edx
mov edx, dword [0x10086a60]
mov dword [esp + 0x48], edx
mov dword [0x10086a64], 0x2085
mov dword [0x10086a68], 0xc5b
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xc]
cmp word [eax], 0x5a4d
mov dword [esp + 0x20], eax
jne 0x10072a04
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x1c], ecx
je 0x100728d7
mov eax, dword [esp + 0x20]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0xc], eax
jmp 0x100729dd
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x10072acb
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x34
mov dword [ebp - 0xc], 0
mov dword [0x10086a64], 0x1456
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov edx, dword [0x10086a64]
add edx, 0x6ec
mov dword [0x10086a64], edx
mov esi, dword [ebp - 0xc]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ecx
jmp 0x10072b7f
mov eax, 0x26a6
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [0x10086a64], 0x26a6
cmp ecx, 0x104
mov edx, eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], ecx
jl 0x10072b7f
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov dword [0x10086a68], edx
add ecx, 0xffffedf6
mov dword [0x10086a64], ecx
mov esi, dword [ebp - 0x18]
cmp word [esi + eax*2 - 0x1a], 0x6c
mov edi, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
je 0x10072bab
jmp 0x10072c47
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov edx, ecx
add edx, 0xffffe194
mov esi, dword [ebp - 0x18]
cmp word [esi + eax*2], 0
mov edi, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edi
je 0x10072b48
jmp 0x10072b18
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2 - 0x18], 0x6f
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
jne 0x10072c47
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2 - 0x16], 0x61
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
jne 0x10072c47
mov eax, 0xd0a
mov dword [0x10086a64], 0xd0a
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x38], eax
jne 0x10072c47
mov eax, 0xd0a
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x38], eax
jne 0x10072c47
mov eax, 0xd0a
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x38], eax
jne 0x10072c47
mov eax, 1
mov ecx, 0xd0a
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
je 0x10072c59
mov eax, dword [ebp - 0x38]
xor ecx, ecx
add eax, 0xffffd9cd
mov dword [0x10086a64], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
add esp, 0x34
pop esi
pop edi
pop ebp
ret
Function at 0x10072d0d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x10086a64], 0x19d9
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
jmp 0x10072d38
mov eax, dword [ebp - 0x30]
add esp, 0x4c
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov cl, byte [eax + 0x1007666c]
mov dl, byte [eax + 0x1007663d]
sub dl, cl
mov byte [ebp + eax - 0x20], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x2c], eax
jne 0x10072d38
lea eax, [ebp - 0x20]
mov dword [0x10086a64], 0xaed
mov dword [ebp - 0x34], eax
call fcn.10073256
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.10072ea4
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], ecx
je 0x10072d30
mov eax, dword [ebp - 0x38]
mov ecx, dword [0x10086a64]
add ecx, 0xffffeb0c
mov dword [0x10086a64], ecx
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x10086a64], 0xc0e
mov dword [esp], eax
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1007233d
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x28]
mov dword [edx + 8], ecx
mov dword [0x10086a68], 0x1f09
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x44], ecx
mov dword [0x10086a64], 0x431
cmp ecx, 0
mov dword [ebp - 0x30], eax
je 0x10072d30
mov eax, dword [ebp - 0x3c]
add eax, 0x23b5
mov dword [0x10086a64], 0x1cbc
mov dword [ebp - 0x30], eax
jmp 0x10072d30
Function at 0x10073095
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, 0x24d8
xor ebx, ebx
mov dword [0x10086a6c], 0
mov dword [0x10086a70], 0
mov dword [0x10086a7c], 0
mov dword [0x10086a64], 0x237b
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x10073246
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov esi, 0x100
mov edi, eax
add edi, 1
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10086a6c], edx
mov dword [0x10086a64], 0xfffffe77
mov ecx, dword [ebp - 0x24]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x34]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x10086a70], edx
mov dword [0x10086a64], 0xe10
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x10086a74], cl
mov dword [0x10086a64], 0x1452
mov ebx, dword [ebp - 0x24]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10086a74]
mov edx, dword [0x10086a70]
mov byte [ebx + edx], cl
mov dword [0x10086a68], 0x1380
mov edx, dword [0x10086a6c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10086a70]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov edx, dword [0x10086a64]
mov esi, edx
add esi, 0x1940
mov dword [0x10086a64], esi
and ecx, 0xff
mov dword [0x10086a7c], ecx
mov cl, byte [ebx + ecx]
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x30]
mov ch, byte [esi + ebx]
mov bl, cl
add bl, byte [0x10086a81]
mov byte [0x10086a80], bl
mov byte [0x10086a81], ch
mov byte [0x10086a82], cl
xor ch, cl
add edx, 0xffffe7f7
mov dword [0x10086a68], edx
mov dword [0x10086a64], 0x1f87
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x3c], edi
je 0x10073239
mov eax, dword [0x10086a6c]
mov ecx, dword [0x10086a70]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], edx
jmp 0x10073100
mov eax, dword [0x10086a64]
add eax, 0x15d
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [0x10086a64], eax
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401500
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40f154
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push esi
mov dword [esp + 0x18], 0
lea ecx, [esp + 8]
mov dword [esp + 0xa4], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov byte [esp + 0xa4], 4
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
mov byte [esp + 0xa4], 5
push eax
call fcn.004013e0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
mov bl, 6
push ecx
push edx
mov byte [esp + 0xb0], bl
call fcn.004012f0
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push eax
push str._s_syscfg.INI
push ecx
mov byte [esp + 0xbc], 7
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [esp + 0x10]
mov byte [esp + 0xa4], bl
call fcn.0040e8b6
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0xb4]
push edx
mov edx, dword [esp + 0xb4]
lea eax, [esp + 0x28]
push 0x78
push eax
push 0x415ae8
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x40163a
push ecx
lea eax, [esp + 0xbc]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0xbc]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0xb0], 8
call sub.MFC42.DLL_CString::CString_1
push ecx
lea eax, [esp + 0xbc]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
mov byte [esp + 0xb4], 9
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0xb0], bl
call fcn.00401700
add esp, 0xc
lea ecx, [esp + 0xb8]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
jmp 0x401651
lea edx, [esp + 0x24]
lea eax, [esp + 8]
push edx
push 0x41502c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov esi, dword [esp + 0xac]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov ebx, 1
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0xa4], 5
call fcn.0040e8b6
lea ecx, [esp + 0xc]
mov byte [esp + 0xa4], 4
call fcn.0040e8b6
lea ecx, [esp + 8]
mov byte [esp + 0xa4], 3
call fcn.0040e8b6
lea ecx, [esp + 0xb0]
mov byte [esp + 0xa4], 2
call fcn.0040e8b6
lea ecx, [esp + 0xb4]
mov byte [esp + 0xa4], bl
call fcn.0040e8b6
lea ecx, [esp + 0xb8]
mov byte [esp + 0xa4], 0
call fcn.0040e8b6
mov ecx, dword [esp + 0x9c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xa0
ret
Function at 0x401970
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40f1f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
lea eax, [esp]
mov dword [esp + 0x110], 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4019ed
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x124]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 8]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0xfa
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401a2f
lea ecx, [esp + 0x11c]
mov byte [esp + 0x110], 0
call fcn.0040e8b6
lea ecx, [esp + 0x120]
mov dword [esp + 0x110], 0xffffffff
call fcn.0040e8b6
xor eax, eax
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
mov ecx, dword [esp + 0x124]
lea edx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x11c]
mov byte [esp + 0x110], 0
call fcn.0040e8b6
lea ecx, [esp + 0x120]
mov dword [esp + 0x110], 0xffffffff
call fcn.0040e8b6
mov ecx, dword [esp + 0x108]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x401a90
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x40f229
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0x138]
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x144], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x401c26
push esi
push esi
mov eax, dword [esp + 0x18]
push esi
push esi
push esi
push esi
lea edx, [esp + 0x30]
push esi
push edx
push esi
push esi
push esi
push eax
mov dword [esp + 0x48], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x13c]
cmp eax, esi
jbe 0x401beb
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov bl, 2
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push 0
lea edx, [esp + 0x38]
push ecx
push edx
push esi
push eax
mov dword [esp + 0x3c], 0xff
mov byte [esp + 0x48], 0
call ebp
test eax, eax
jne 0x401c1b
push 0x415ae8
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x138]
push 0x415028
lea edx, [esp + 0x24]
push ecx
push edx
mov byte [esp + 0x13c], 1
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x28]
lea edx, [esp + 0x24]
push ecx
push eax
push edx
mov byte [esp + 0x13c], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
mov byte [esp + 0x130], bl
call fcn.0040e8b6
lea ecx, [esp + 0x20]
mov byte [esp + 0x130], 1
call fcn.0040e8b6
mov eax, dword [edi + 8]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 0
call fcn.0040e8b6
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jb 0x401b17
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi + 8]
test eax, eax
jle 0x401c26
lea ecx, [esp + 0x138]
mov dword [esp + 0x130], 0xffffffff
call fcn.0040e8b6
mov eax, 1
jmp 0x401c3f
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x138]
mov dword [esp + 0x130], 0xffffffff
call fcn.0040e8b6
xor eax, eax
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret

Function at 0x403180
Capabilities:
Get common file path

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push esi
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edx, dword [esp + 0x10]
push edx
push str._s.lnk
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, esi
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.0040e8b6
mov eax, 1
pop esi
pop ecx
ret
Function at 0x406f80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x40fc1a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push edi
push 0x415ae8
lea ecx, [esp + 0xc]
mov dword [esp + 0x168], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x16c]
lea eax, [esp + 0x1c]
mov bl, 1
push eax
push ecx
mov byte [esp + 0x16c], bl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
lea edx, [esp + 0x16c]
lea eax, [esp + 0xc]
push edx
push eax
call fcn.004012f0
add esp, 8
push eax
lea ecx, [esp + 0x170]
mov byte [esp + 0x168], 2
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], bl
call fcn.0040e8b6
cmp edi, 0xffffffff
je 0x40715d
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push esi
mov esi, dword [esp + 0x178]
test byte [esp + 0x24], 0x10
jne 0x40709d
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 0x174]
push 0x415028
lea eax, [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x178], 3
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 4
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 3
call fcn.0040e8b6
mov byte [esp + 0x16c], bl
lea ecx, [esp + 0x18]
jmp 0x407132
lea edx, [esp + 0x50]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x10]
push 0x415554
push eax
call ebp
add esp, 8
test eax, eax
je 0x407147
mov ecx, dword [esp + 0x10]
push 0x415550
push ecx
call ebp
add esp, 8
test eax, eax
je 0x407147
lea edx, [esp + 0x174]
push 0x415028
lea eax, [esp + 0x20]
push edx
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
mov byte [esp + 0x178], 5
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x170], 6
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x16c], 5
call fcn.0040e8b6
mov byte [esp + 0x16c], bl
lea ecx, [esp + 0x1c]
call fcn.0040e8b6
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea edx, [esp + 0x24]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407026
pop esi
pop ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 8]
mov byte [esp + 0x164], 0
call fcn.0040e8b6
lea ecx, [esp + 0x16c]
mov dword [esp + 0x164], 0xffffffff
call fcn.0040e8b6
mov ecx, dword [esp + 0x15c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x160
ret
Function at 0x4091d0
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4100e0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
lea esi, [ecx + 0xc]
mov ecx, esi
call sub.MFC42.DLL_CString::TrimLeft
mov ecx, esi
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esi]
mov ecx, dword [eax - 8]
mov al, byte [eax + ecx - 1]
cmp al, 0x5c
jne 0x409265
push 0x415ae8
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 8]
push esi
push eax
mov dword [esp + 0x28], 0
call fcn.004012f0
add esp, 8
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 8]
mov byte [esp + 0x20], 0
call fcn.0040e8b6
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0xffffffff
call fcn.0040e8b6
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
je 0x40929d
mov eax, dword [esi]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], 0xc
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x18]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x40a2c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
xor esi, esi
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call edi
test eax, eax
jne 0x40a30c
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call edi
test eax, eax
jne 0x40a30c
pop edi
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0x18], 2
jne 0x40a361
mov eax, dword [esp + 0xc]
cmp eax, 3
jne 0x40a32c
mov esi, 4
pop edi
mov eax, esi
pop esi
add esp, 0x9c
ret
cmp eax, 4
jne 0x40a341
mov esi, 5
pop edi
mov eax, esi
pop esi
add esp, 0x9c
ret
cmp eax, 5
jne 0x40a398
mov ecx, dword [esp + 0x10]
xor edx, edx
test ecx, ecx
setne dl
add edx, 6
pop edi
mov esi, edx
mov eax, esi
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40a379
mov esi, 1
pop edi
mov eax, esi
pop esi
add esp, 0x9c
ret
cmp eax, 0xa
jne 0x40a38e
mov esi, 2
pop edi
mov eax, esi
pop esi
add esp, 0x9c
ret
cmp eax, 0x5a
jne 0x40a398
mov esi, 3
mov eax, esi
pop edi
pop esi
add esp, 0x9c
ret
Function at 0x406300
Capabilities:
Check if file exists
Get file attributes
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5820c6
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x5d1e24]
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, dword [ebp + 8]
mov eax, esi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x40633e
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x406353
xor al, al
jmp 0x406451
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40635d
mov eax, dword [edi]
push eax
call ebx
cmp eax, 0xffffffff
setne cl
jne 0x40644f
xorps xmm0, xmm0
mov dword [ebp - 0x2d0], 0
movups xmmword [ebp - 0x2e4], xmm0
mov dword [ebp - 0x2cc], 0x18
mov dword [ebp - 0x2d4], 0x400
lea eax, [ebp - 0x2fc]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00453f70
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x4063b3
mov esi, dword [esi]
push 0x2b4
lea eax, [ebp - 0x2c4]
push 0
push eax
call fcn.0054f9f0
add esp, 0xc
lea eax, [ebp - 0x2c4]
xor ebx, ebx
push 0x100
push 0x2b4
push eax
push ebx
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esi, dword [ebp - 0x2c4]
test eax, eax
je 0x406406
mov dword [ebp - 0x2dc], ebx
mov ebx, esi
mov dword [ebp - 0x2e4], esi
mov dword [ebp - 0x2e0], 0x20
lea ecx, [ebp - 0x2fc]
call fcn.00405050
lea eax, [ebp - 0x314]
mov ecx, edi
push eax
call fcn.00453f70
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00407390
add esp, 8
mov byte [ebp - 0x2c5], al
lea ecx, [ebp - 0x314]
call fcn.00405050
test ebx, ebx
je 0x406449
push ebx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov cl, byte [ebp - 0x2c5]
mov al, cl
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.0046ca7d
mov esp, ebp
pop ebp
ret

Function at 0x407230
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40723e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret