joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ef30
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 0x41ef85
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 0x41ef90
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.0041ecb0
pop edi
pop esi
add esp, 0x7d4
ret 4

Function at 0x420d29
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 0x420d81
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x528278
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x420d74
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x420d83
xor eax, eax
pop esi
leave
ret 4
Function at 0x426740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b0adb
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], 0x4ba588
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x4267d0
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 0x426797
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 0x4267c1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4267d6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4267d6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x4b79bc
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x4b74b0
mov dword [esp + 0x1c], 0xffffffff
call fcn.00421262
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4282a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b0c61
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, 0x528278
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 0x42831f
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, 0x528278
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 0x428375
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.0042a1e0
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.0042a210
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 0x4283ec
mov al, byte [ecx - 1]
cmp al, bl
je 0x4283e2
cmp al, 0xff
je 0x4283e2
dec al
mov byte [ecx - 1], al
jmp 0x4283ec
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 0x42ea90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1060
call fcn.004218a0
mov eax, dword [esp + 0x1064]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
push edi
push 0x5082a4
push eax
call esi
mov ebp, eax
xor edi, edi
add esp, 8
cmp ebp, edi
jne 0x42ead6
push str.Error_opening_ciphertext_file_
call sym.mymacro.exe_antlr3dfaspecialTransition
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret
mov ecx, dword [esp + 0x1078]
push 0x508ad8
push ecx
call esi
mov ebx, eax
add esp, 8
cmp ebx, edi
jne 0x42eb06
push str.Error_opening_plaintext_file_
call sym.mymacro.exe_antlr3dfaspecialTransition
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 0x42eb32
push str.Out_of_memory__n
call sym.mymacro.exe_antlr3dfaspecialTransition
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.0045f9c0
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 0x42ebc0
push 0
push 0x3e8
push esi
lea ecx, [esp + 0x24]
call fcn.004604e0
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 0x42ebd8
mov al, byte [ebp + 0xc]
push ebp
test al, 0x10
jne 0x42ebf0
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 0x42eb78
push str.Error_reading_ciphertext_
call sym.mymacro.exe_antlr3dfaspecialTransition
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1060
ret
push str.Error_writing_plaintext_
call sym.mymacro.exe_antlr3dfaspecialTransition
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 0x42ee20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b117f
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.0042ec20
lea ecx, [esp + 8]
mov dword [esp + 0x30], 1
call fcn.0042ed00
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.0042eca0
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x431b90
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b1928
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov eax, dword [esp + 0x1c]
push 0x5082a4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x431be5
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 0x431c27
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 0x431c57
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 0x431c45
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 0x432f70
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b1b7b
push eax
mov eax, 0x1014
mov dword fs:[0], esp
call fcn.004218a0
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.uservar.ini
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
mov dword [esp + 0x102c], ebx
push eax
call fcn.00452420
mov ecx, eax
call fcn.00452c40
push eax
lea ecx, [esp + 0x1c]
push 0x528308
push ecx
mov dword [esp + 0x1034], 2
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov ecx, dword [esi]
push eax
mov eax, dword [esp + 0x1038]
lea edx, [esp + 0x24]
push 0x1000
push edx
push str.blank_value
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1028], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0xc]
push str.blank_value
push edx
mov dword [esp + 0x1030], 3
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x43306b
lea eax, [esi + 8]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x1038]
mov edi, 1
cmp eax, ebx
jne 0x4330b5
cmp dword [esi + 0x14], edi
jne 0x4330b5
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [esi + 0x34]
add esp, 4
cmp eax, ecx
jb 0x4330a5
push 0x528278
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
jmp 0x4330b5
mov edx, dword [esi + 0x30]
lea ecx, [esp + 0xc]
lea eax, [edx + eax*4]
push eax
call sub.MFC42.DLL_CString::operator_2
mov esi, dword [esp + 0x1030]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x14], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x1028], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1020]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1020
ret 0xc
Function at 0x433200
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b1c33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea ebp, [esi + 4]
mov ecx, ebp
call sub.MFC42.DLL_CString::CString_4
lea ebx, [esi + 8]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x1c], edi
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0xc]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x10]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x48]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString_4
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
lea ecx, [esi + 0x54]
mov byte [esp + 0x1c], 6
call sub.MFC42.DLL_CString::CString_4
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], 0xa
mov dword [esi + 0x58], 0x4bb07c
push 0x528278
mov ecx, ebp
mov byte [esp + 0x20], 8
mov dword [esi], 0x4b9278
call sub.MFC42.DLL_CString::operator_1
push 0x528278
mov ecx, ebx
call sub.MFC42.DLL_CString::operator_1
push 0x528278
lea ecx, [esi + 0xc]
call sub.MFC42.DLL_CString::operator_1
push 0x528278
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::operator_1
mov ebx, 1
push 0x528278
lea ecx, [esi + 0x48]
mov dword [esi + 0x18], 2
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x30], ebx
call sub.MFC42.DLL_CString::operator_1
push 0x528278
lea ecx, [esi + 0x54]
mov dword [esi + 0x38], ebx
mov word [esi + 0x34], di
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4339c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1c96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x528278
lea ecx, [esi + 4]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::operator_1
push 0x528278
lea ecx, [esi + 8]
call sub.MFC42.DLL_CString::operator_1
push 0x528278
lea ecx, [esi + 0xc]
call sub.MFC42.DLL_CString::operator_1
push 0x528278
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::operator_1
push 0x528278
lea ecx, [esi + 0x48]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call sub.MFC42.DLL_CString::operator_1
mov dword [esi + 0x38], 1
mov word [esi + 0x34], bx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov edi, dword [esi + 0x4c]
cmp edi, ebx
je 0x433ad9
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x433ad6
cmp edi, ebx
mov dword [ebp - 0x1c], edi
je 0x433ad6
mov edx, dword [edi + 4]
lea ebx, [edi + 4]
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
mov byte [ebp - 4], 2
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x528278
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [ebp - 0x18]
test eax, eax
setne byte [ebp - 0x11]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x11]
test al, al
je 0x433aa3
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x54]
push 0
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, ebx
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFile::CFile
mov ecx, edi
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor ebx, ebx
mov dword [esi + 0x4c], ebx
mov edi, dword [esi + 0x50]
cmp edi, ebx
je 0x433b6f
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x433b6c
cmp edi, ebx
mov dword [ebp - 0x18], edi
je 0x433b6c
mov edx, dword [edi + 4]
lea ebx, [edi + 4]
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
mov byte [ebp - 4], 4
call dword [edx + 0x18]
mov eax, dword [eax]
push 0x528278
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [ebp - 0x1c]
test eax, eax
setne byte [ebp - 0x11]
call sub.MFC42.DLL_CString::CString
mov al, byte [ebp - 0x11]
test al, al
je 0x433b39
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x54]
push 0
mov ecx, edi
call sub.MFC42.DLL_CString::GetBuffer
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, ebx
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFile::CFile
mov ecx, edi
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor ebx, ebx
mov dword [esi + 0x50], ebx
push 0x528278
lea ecx, [esi + 0x54]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x433b8f
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x74], ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438520
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov cl, byte [eax + 0x4bb0e0]
xor cl, 0x7d
mov byte [eax + 0x529970], cl
inc eax
cmp eax, 0x2370
jb 0x438522
mov eax, 0x529970
ret
Function at 0x4389c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b2294
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi], 0x4bd464
xor ebp, ebp
lea ecx, [esp + 0x14]
push ebp
push 0x529950
mov dword [esp + 0x30], 6
call sub.MFC42.DLL_CSingleLock::CSingleLock
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 7
call sub.MFC42.DLL_CSingleLock::Lock
mov eax, dword [0x529934]
cmp eax, ebp
je 0x438a3e
cmp dword [eax + 8], edi
je 0x438a26
mov eax, dword [eax]
cmp eax, ebp
jne 0x438a19
jmp 0x438a3e
push eax
mov ecx, 0x529930
call sub.MFC42.DLL_CPtrList::RemoveAt
push 0x529930
call fcn.00438670
add esp, 4
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CSingleLock::Unlock
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 6
call sub.MFC42.DLL_CSingleLock::Unlock
lea esi, [edi + 0x31f8]
mov byte [esp + 0x28], 5
lea eax, [esi + 8]
mov dword [esi], 0x4bd468
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, esi
call fcn.004ac43e
lea esi, [edi + 0x3110]
mov dword [esp + 0x10], esi
lea ecx, [esi + 0xd4]
mov byte [esp + 0x28], 0xd
call fcn.00421418
lea ecx, [esi + 0xc0]
mov byte [esp + 0x28], 0xc
call fcn.00421418
lea ecx, [esi + 0xa4]
mov byte [esp + 0x28], 0xb
call fcn.00418750
lea ecx, [esi + 0x90]
mov byte [esp + 0x28], 0xa
call fcn.00421418
mov eax, dword [esi + 0x80]
mov dword [esi + 0x7c], 0x4b923c
cmp eax, ebp
je 0x438adb
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esi + 0x78]
mov dword [esi + 0x7c], 0x4b74b0
mov byte [esp + 0x28], 8
call sub.MFC42.DLL_CString::CString
mov ecx, esi
mov byte [esp + 0x28], 4
call fcn.00418c10
lea esi, [edi + 0x30f4]
mov dword [esp + 0x10], esi
mov dword [esi], 0x4bd488
mov ecx, dword [esi + 4]
mov byte [esp + 0x28], 0xe
cmp ecx, ebp
je 0x438b36
mov eax, dword [esi + 8]
cmp eax, ebp
jbe 0x438b36
mov edx, ecx
mov ebp, eax
mov eax, dword [edx]
test eax, eax
je 0x438b2e
mov eax, dword [eax]
test eax, eax
jne 0x438b28
add edx, 4
dec ebp
jne 0x438b22
xor ebp, ebp
push ecx
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esi + 0x14]
add esp, 4
mov dword [esi + 4], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
call sub.MFC42.DLL_CPlex::FreeDataChain
lea ecx, [edi + 0x30e0]
mov dword [esi + 0x14], ebp
mov dword [esi], 0x4b74b0
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
mov esi, dword [edi + 0x30b4]
mov dword [edi + 0x30b0], 0x4bb0b8
cmp esi, ebp
je 0x438bb3
mov eax, dword [edi + 0x30b8]
mov ecx, eax
dec eax
test ecx, ecx
je 0x438ba4
lea ebp, [eax + 1]
mov ecx, dword [esi]
test ecx, ecx
je 0x438b9e
call fcn.0043aed0
mov dword [esi], 0
add esi, 4
dec ebp
jne 0x438b8d
mov eax, dword [edi + 0x30b4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [edi + 0x28]
mov dword [edi + 0x30b0], 0x4b74b0
mov byte [esp + 0x28], 0
call fcn.0043d120
lea ecx, [edi + 8]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CDWordArray::CDWordArray
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x43f3b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b2bc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x43f3f3
mov eax, dword [esi]
jmp 0x43f3f5
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
push eax
push edi
call dword [ecx + 0x6c]
test eax, eax
jge 0x43f411
push 0x509f68
push edi
push eax
call fcn.004ac908
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
test esi, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov word [esp + 0xc], 0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
je 0x43f471
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x43f471
mov eax, dword [esi]
test eax, eax
je 0x43f458
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x43f468
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8

Function at 0x43f530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b2c08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x43f573
mov eax, dword [esi]
jmp 0x43f575
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x38]
push edx
push eax
push edi
call dword [ecx + 0x74]
test eax, eax
jge 0x43f596
push 0x509f68
push edi
push eax
call fcn.004ac908
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
test esi, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov word [esp + 0xc], 0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
je 0x43f5f6
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x43f5f6
mov eax, dword [esi]
test eax, eax
je 0x43f5dd
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x43f5ed
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc