joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a370
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
lea ebx, [esi + 0xa]
push eax
push 0x40
push ebx
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x41a3c5
mov ecx, esi
mov esi, dword [esp + 0x18]
mov edx, ecx
push edi
mov edi, ebp
lea eax, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x41a3d0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x7d4
push esi
mov esi, ecx
push edi
xor edx, edx
mov ecx, 0x1f3
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x7e0]
mov dword [esp + 8], edx
push eax
push edx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push 0x7d0
push edx
push eax
call sub.PSAPI.DLL_EnumProcessModules
mov eax, dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041a0f0
pop edi
pop esi
add esp, 0x7d4
ret 4

Function at 0x41b6c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x476c58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
xor edi, edi
mov dword [esp + 0x14], edi
call fcn.0041f2ce
lea eax, [esp + 0x1c]
lea ecx, [esi + 0xe8]
push eax
mov byte [esp + 0x18], 1
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
lea ecx, [esi + 0xf0]
mov dword [esi + 0xf0], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov eax, 0x47d8c4
mov dword [esi + 0x104], edi
mov dword [esi + 0x100], eax
mov dword [esi + 0x10c], edi
mov dword [esi + 0x108], eax
mov dword [esi + 0x11c], edi
mov dword [esi + 0x118], 0x47d7f0
lea ecx, [esi + 0x120]
mov byte [esp + 0x14], 5
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x40]
mov dword [esi + 0xc0], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xc4], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0xc8], ecx
lea ecx, [esp + 0x1c]
mov dword [esi], 0x4a58d8
mov dword [esi + 0xec], eax
mov dword [esi + 0xcc], edx
mov dword [esi + 0x110], edi
mov dword [esi + 0x114], edi
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x41efc9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41f021
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x4eba90
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41f014
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x41f023
xor eax, eax
pop esi
leave
ret 4

Function at 0x424920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47747b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4a6300
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x4249b0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x424977
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x4249a1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4249b6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4249b6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x47d7dc
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x47d2d0
mov dword [esp + 0x1c], 0xffffffff
call fcn.0041f4f6
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4264a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x477601
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x4eba90
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x3c], ebx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x42651f
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, 0x4eba90
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov esi, dword [esp + 0x40]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
mov dword [esp + 0x40], 1
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x426575
mov edi, dword [esp + 0x18]
mov ecx, ebp
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]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], bl
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov edi, dword [ecx + 0xbc]
lea esi, [ecx + 0xb8]
mov ecx, esi
mov edx, dword [edi + 4]
push edx
push edi
call fcn.004283e0
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
lea edx, [esp + 0x14]
mov dword [ecx], eax
add eax, 8
push edx
push eax
call fcn.00428410
mov edx, dword [esi + 8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add esp, 8
inc edx
mov dword [esi + 8], edx
mov esi, dword [eax + 0xc0]
dec esi
cmp ecx, ebx
je 0x4265ec
mov al, byte [ecx - 1]
cmp al, bl
je 0x4265e2
cmp al, 0xff
je 0x4265e2
dec al
mov byte [ecx - 1], al
jmp 0x4265ec
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x42a600
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1060
call fcn.0041fb00
mov eax, dword [esp + 0x1064]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
push edi
push 0x4e7268
push eax
call esi
mov ebp, eax
xor edi, edi
add esp, 8
cmp ebp, edi
jne 0x42a646
push str.Error_opening_ciphertext_file_
call fcn.0042a790
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret
mov ecx, dword [esp + 0x1078]
push 0x4e7910
push ecx
call esi
mov ebx, eax
add esp, 8
cmp ebx, edi
jne 0x42a676
push str.Error_opening_plaintext_file_
call fcn.0042a790
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret
push 0x3e8
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x42a6a2
push str.Out_of_memory__n
call fcn.0042a790
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
push edx
mov edx, dword [esp + 0x1080]
mov dword [esp + 0x18], edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.00454650
push ebp
push 0x3e8
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov edi, eax
mov al, byte [ebp + 0xc]
add esp, 0x10
test al, 0x20
jne 0x42a730
push 0
push 0x3e8
push esi
lea ecx, [esp + 0x24]
call fcn.00455190
push ebx
push edi
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
mov al, byte [ebx + 0xc]
add esp, 0x10
test al, 0x20
jne 0x42a748
mov al, byte [ebp + 0xc]
push ebp
test al, 0x10
jne 0x42a760
push 0x3e8
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov edi, eax
mov al, byte [ebp + 0xc]
add esp, 0x10
test al, 0x20
je 0x42a6e8
push str.Error_reading_ciphertext_
call fcn.0042a790
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret
push str.Error_writing_plaintext_
call fcn.0042a790
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret
mov edi, dword [sym.imp.MSVCRT.dll_fclose]
call edi
push ebx
call edi
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret

Function at 0x42a9a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4778df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [esp + 0x38]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call fcn.0042a7a0
lea ecx, [esp + 8]
mov dword [esp + 0x30], 1
call fcn.0042a880
mov esi, dword [esp + 0x38]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 4], 1
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call fcn.0042a820
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x42d690
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x478048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov eax, dword [esp + 0x1c]
push 0x4e7268
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x42d6e5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ebp, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebp
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 0x10
cmp eax, 0x1000
jg 0x42d727
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push edi
push 0
push 0x1000
push esi
call ebp
mov al, byte [esi + 0xc]
add esp, 0xc
xor edi, edi
test al, 0x10
jne 0x42d757
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fgetc]
push esi
call ebx
not eax
add edi, eax
mov al, byte [esi + 0xc]
add esp, 4
test al, 0x10
je 0x42d745
pop ebx
push 0
push 0x1c
push esi
call ebp
push esi
push 1
lea ecx, [esp + 0x20]
push 4
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x2c]
add esp, 0x20
xor edx, edx
cmp eax, edi
sete dl
lea ecx, [esp + 0x20]
mov esi, edx
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x42ec50
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push eax
push 4
push ecx
push edx
mov dword [edi], 0x4a80f4
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [edi + 8]
mov ebx, dword [edi + 4]
xor esi, esi
test eax, eax
jbe 0x42eca0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call ebp
xor edx, edx
mov ecx, 0xff
div ecx
mov al, byte [esi + ebx]
xor al, dl
mov byte [esi + ebx], al
mov eax, dword [edi + 8]
inc esi
cmp esi, eax
jb 0x42ec84
pop ebp
mov eax, dword [esp + 0xc]
mov ecx, dword [edi + 8]
lea edx, [esp + 0xc]
push edx
mov edx, dword [edi + 4]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4312b0
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1054
call fcn.0041fb00
mov eax, dword [esp + 0x1060]
push ebx
push ebp
push esi
push edi
lea edi, [ecx + 0x64]
test eax, eax
jne 0x4312cf
lea edi, [ecx + 0x68]
mov eax, dword [esp + 0x106c]
test eax, eax
jne 0x431378
mov eax, dword [edi]
push 0x4e7268
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, dword [edi]
push 0x4eba90
push edi
mov esi, eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 0x10
test eax, eax
je 0x43148c
test esi, esi
je 0x43148c
push 2
push 0
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_rewind]
add esp, 0x14
test edi, edi
jg 0x431337
push esi
jmp 0x431483
mov al, byte [esi + 0xc]
mov bl, 0x10
test bl, al
jne 0x431372
mov edi, dword [esp + 0x1068]
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 0x1000
lea eax, [esp + 0x6c]
push 1
push eax
call ebp
mov ecx, dword [edi]
add esp, 0x10
lea edx, [esp + 0x64]
push 0
push eax
push edx
push edi
call dword [ecx + 0x10]
test byte [esi + 0xc], bl
je 0x43134d
push esi
jmp 0x431483
lea eax, [esp + 0x64]
add ecx, 0x34
push eax
push 0
call fcn.0042fc40
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4eba90
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x20]
push ecx
call fcn.00432080
add esp, 8
mov ecx, eax
call fcn.0042fc40
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push eax
call esi
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x431405
lea edx, [esp + 0x64]
push edx
push 0
push 0x4eba90
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4eba90
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x20]
push eax
call fcn.00432080
add esp, 8
mov ecx, eax
call fcn.0042fc40
push eax
call esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x64]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator_3
mov edi, dword [edi]
push 0x4e7910
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x43148c
mov esi, dword [esp + 0x1068]
lea eax, [esp + 0x1c]
push 1
push eax
mov edx, dword [esi]
push esi
call dword [edx + 0x30]
xor ebx, ebx
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x64]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
push edx
lea eax, [esp + 0x68]
push 0x1000
push eax
push esi
call dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
push ebp
push ecx
lea edx, [esp + 0x6c]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esp + 0x34]
add esp, 0x10
inc ebx
shr eax, 0xc
cmp ebx, eax
jbe 0x43143e
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1054
ret 0xc
Function at 0x4314a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47855b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor eax, eax
mov dword [ebp - 0x10], esp
mov ebx, dword [esi + 8]
mov dword [ebp - 4], eax
cmp ebx, eax
je 0x43150d
lea edi, [ebx + 8]
mov eax, 1
mov dword [ebp - 0x14], edi
mov ecx, eax
dec eax
test ecx, ecx
mov dword [ebp - 0x18], eax
je 0x431507
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x18]
add edi, 0x20
mov dword [ebp - 0x14], edi
jmp 0x4314da
mov ebx, dword [ebx]
xor eax, eax
jmp 0x4314cb
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
call sub.MFC42.DLL_CPlex::FreeDataChain
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
lea edi, [esi + 0x64]
mov dword [esi + 0x18], 0
push 0x4eba90
mov eax, dword [edi]
push eax
call ebx
add esp, 8
test eax, eax
je 0x43154b
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x68]
push 0x4eba90
push eax
call ebx
add esp, 8
test eax, eax
je 0x431567
mov eax, dword [esi + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4eba90
mov ecx, edi
call sub.MFC42.DLL_CString::operator_3
push 0x4eba90
lea ecx, [esi + 0x34]
call sub.MFC42.DLL_CString::operator_3
push 0x4eba90
lea ecx, [esi + 0x20]
call sub.MFC42.DLL_CString::operator_3
mov edx, dword [esi + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x70]
xor edi, edi
cmp eax, edi
mov dword [esi + 0x44], edi
je 0x4315af
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x70], edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432080
Capabilities:
Access peb ldr_data
Create directory
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x478747
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov dword [esp + 0x10], 0
mov al, byte [0x4ec004]
mov ebx, 1
test bl, al
mov dword [esp + 0x24], ebx
jne 0x4320d7
or al, bl
push 0x4eba90
mov ecx, 0x4ec000
mov byte [0x4ec004], al
call sub.MFC42.DLL_CString::CString_4
push 0x432250
call fcn.0041faec
add esp, 4
mov eax, dword [0x4ec000]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x4eba90
push eax
call esi
add esp, 8
test eax, eax
jne 0x43211b
lea ecx, [esp + 0xc]
push ecx
call fcn.00416260
add esp, 4
push eax
mov ecx, 0x4ec000
mov byte [esp + 0x28], 2
call fcn.0041f172
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x30]
push 0x4eba90
push edx
call esi
add esp, 8
test eax, eax
je 0x432213
push edi
mov edi, dword [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004161a0
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0x64
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call sub.MFC42.DLL_CString::Left
push eax
lea edx, [esp + 0x1c]
push 0x4ec000
push edx
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_operator_2
push 0x4e7128
push eax
lea eax, [esp + 0x14]
mov byte [esp + 0x30], 5
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 7
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, dword [esp + 0x30]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
mov esi, dword [esp + 0x2c]
push 0x4ec000
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x433010
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x478939
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x47d2d0
xor edi, edi
lea ecx, [esi + 8]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_2
mov dword [esi + 0x18], 0x4a9540
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], 0xa
push 0xa
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 2
call fcn.00472992
mov dword [esi], 0x4a952c
mov dword [esi + 0x14], edi
mov dword [0x4e85c0], 1
mov byte [esp + 0x14], 3
mov dword [esi + 0xc], edi
call fcn.0042ecc0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x434340
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x478ace
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebp
push esi
mov eax, dword [esp + 0x154]
mov ecx, dword [esp + 0x148]
push eax
push ecx
mov dword [esp + 0x148], 2
call fcn.0045fc70
mov ebp, eax
xor esi, esi
add esp, 8
cmp ebp, esi
je 0x434542
push ebx
push edi
lea ecx, [esp + 0x154]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x154]
call sub.MFC42.DLL_CString::TrimRight
mov edx, dword [esp + 0x154]
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x4eba90
push edx
call ebx
add esp, 8
test eax, eax
je 0x434452
mov eax, dword [esp + 0x154]
push 0x4e8600
push eax
call ebx
add esp, 8
test eax, eax
je 0x434452
push 0x5c
lea ecx, [esp + 0x158]
call sub.MFC42.DLL_CString::TrimLeft_2
push 0x3a
lea ecx, [esp + 0x158]
call sub.MFC42.DLL_CString::Find_3
test eax, eax
jg 0x434439
lea ecx, [esp + 0x154]
lea edx, [esp + 0x10]
push ecx
push 0x4ebb28
push edx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x158]
mov byte [esp + 0x14c], 3
call fcn.0041f172
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x154]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x154]
push ecx
jmp 0x434459
mov edx, dword [0x4ebb28]
push edx
push ebp
call fcn.0045fdf0
add esp, 8
lea ecx, [esp + 0x158]
call sub.MFC42.DLL_CString::MakeLower
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push ebp
call fcn.0045fcb0
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
mov edi, eax
jle 0x434523
lea ecx, [esp + 0x14]
push ecx
push esi
push ebp
call fcn.0045fcb0
add esp, 0xc
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 4
call sub.MFC42.DLL_CString::MakeLower
mov eax, dword [esp + 0x158]
push 0x4eba90
push eax
call ebx
add esp, 8
test eax, eax
je 0x4344fa
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x158]
push ecx
push edx
call fcn.004342b0
add esp, 8
test eax, eax
je 0x434509
lea eax, [esp + 0x18]
push eax
push esi
push ebp
call fcn.0045fdb0
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 2
call sub.MFC42.DLL_CString::CString
inc esi
cmp esi, edi
jl 0x43449d
push ebp
call fcn.0045feb0
add esp, 4
test al, al
pop edi
pop ebx
push ebp
je 0x43453a
call fcn.0045fe30
jmp 0x43453f
call fcn.0045b380
add esp, 4
lea ecx, [esp + 0x148]
mov byte [esp + 0x140], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14c]
mov byte [esp + 0x140], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x150]
mov dword [esp + 0x140], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x138]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x13c
ret