joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4582f0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
lea eax, [ecx + 0x24]
push ebx
push esi
mov esi, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
xor ebx, ebx
xor edx, edx
cmp dword [eax + 0x3c], ebx
je 0x458326
cmp edi, dword [eax]
jl 0x458326
cmp edi, dword [eax + 8]
jge 0x458326
cmp esi, dword [eax + 4]
jl 0x458326
cmp esi, dword [eax + 0xc]
jl 0x45833d
inc edx
add eax, 0x40
cmp edx, 3
jl 0x45830e
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x208
ret 0xc
mov eax, dword [ecx + 0x300]
dec eax
cmp eax, 6
ja case.default.0x45834d
jmp dword [eax*4 + 0x4584d8]
push ebx
push ebx
add ecx, 0xf6
push ebx
push ecx
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x220]
mov dword [esp + 0xc], 1
cmp eax, ebx
je case.default.0x45834d
mov ecx, dword [eax]
lea edx, [esp + 0xc]
jmp 0x4584ba
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x220]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 0x10], 4
mov dword [esp + 0x14], 0x7a120
je case.default.0x45834d
mov ecx, dword [eax]
lea edx, [esp + 0xc]
jmp 0x4584ba
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x220]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 0x10], 4
mov dword [esp + 0x14], 0x493e0
je case.default.0x45834d
mov ecx, dword [eax]
lea edx, [esp + 0xc]
jmp 0x4584ba
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x220]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 0x10], 4
mov dword [esp + 0x14], 0x18a88
je case.default.0x45834d
mov ecx, dword [eax]
lea edx, [esp + 0xc]
jmp 0x4584ba
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x220]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 0x10], 4
mov dword [esp + 0x14], 0x31128
je case.default.0x45834d
mov ecx, dword [eax]
lea edx, [esp + 0xc]
jmp 0x4584ba
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x220]
mov dword [esp + 0xc], ebx
cmp eax, ebx
mov dword [esp + 0x10], 4
mov dword [esp + 0x14], 0x61a80
je case.default.0x45834d
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x208
push 0x53
push eax
call dword [ecx + 0x14]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
Function at 0x45e5d0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [0x4ede78]
sub esp, 0x820
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
jne 0x45e7e3
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x216]
mov word [esp + 0x214], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push 0x103
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
dec eax
js 0x45e65a
lea edx, [esp + eax*2 + 0xc]
mov cx, word [edx]
cmp cx, 0x2f
je 0x45e655
cmp cx, 0x5c
je 0x45e655
dec eax
sub edx, 2
cmp eax, ebx
jge 0x45e63c
jmp 0x45e65a
mov word [esp + eax*2 + 0xc], bx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x41e]
mov word [esp + 0x41c], bx
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
lea edx, [esp + 0xc]
stosw word es:[edi], ax
push edx
push str._sconfig.ini
lea eax, [esp + 0x424]
push 0x103
push eax
call esi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x636]
mov word [esp + 0x634], bx
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x41c]
lea edx, [esp + 0x624]
push ecx
push 0x103
push edx
push str...ClientCommon1013UnicodeHelper.dll
push str.UnicodeHelperDll
push str.I18N
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x624]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x48ce5c
lea edx, [esp + 0x220]
push 0x103
push edx
call esi
add esp, 0x14
lea eax, [esp + 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
je 0x45e7de
push str.GetIUnicodeHelper
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x45e7de
call eax
cmp eax, ebx
mov dword [0x4ede78], eax
je 0x45e7e3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
mov ecx, dword [0x4ede78]
mov dword [0x4ede7c], eax
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [0x4ede78]
mov dword [0x4ede80], eax
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov ecx, dword [0x4ede78]
mov dword [0x4ede88], eax
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, dword [0x4ede80]
mov dword [0x4ede8c], eax
cmp ecx, ebx
je 0x45e784
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x214]
push str.Client.xml
rep stosd dword es:[edi], eax
mov ecx, dword [0x4ede78]
push 0x4941b0
mov eax, dword [ecx]
call dword [eax + 0x24]
push eax
push 0x48c308
lea ecx, [esp + 0x220]
push 0x103
push ecx
call esi
mov ecx, dword [0x4ede78]
add esp, 0x14
lea eax, [esp + 0x214]
mov edx, dword [ecx]
push 0x492b64
push eax
call dword [edx + 0x10]
mov dword [0x4ede84], eax
mov eax, dword [0x4ede78]
pop edi
pop esi
pop ebx
add esp, 0x820
ret
Function at 0x4614e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4794a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0x47d454
mov dword [esp + 0x10], 0
mov edi, dword [esp + 0x24]
lea eax, [esp + 0xc]
push edi
push str.PriceNew
push eax
mov dword [esp + 0x28], 0
call fcn.0045ebc0
add esp, 0xc
lea ecx, [esi + 0x450]
push eax
call sub.MFC42u.DLL_CString::operator_2
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0xc]
push ecx
push str.PriceOld
push edx
call fcn.0045ebc0
add esp, 0xc
lea ecx, [esi + 0x44c]
push eax
call sub.MFC42u.DLL_CString::operator_2
mov ebx, dword [esp + 0x28]
lea eax, [esp + 0xc]
push ebx
push str.PriceNew
push eax
call fcn.0045ebc0
add esp, 0xc
lea ecx, [esi + 0x45c]
push eax
call sub.MFC42u.DLL_CString::operator_2
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0xc]
push ecx
push str.PriceOld
push edx
call fcn.0045ebc0
add esp, 0xc
lea ecx, [esi + 0x458]
push eax
call sub.MFC42u.DLL_CString::operator_2
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push eax
push str.Count
push ecx
call fcn.0045ebc0
add esp, 0xc
lea ecx, [esi + 0x460]
push eax
call sub.MFC42u.DLL_CString::operator_2
cmp dword [esi + 0x60], 0xf9
jne 0x4615da
push ebx
lea edx, [esp + 0x10]
push str.Price
push edx
jmp 0x4615e5
push edi
lea eax, [esp + 0x10]
push str.Price
push eax
call fcn.0045ebc0
add esp, 0xc
lea ecx, [esi + 0x464]
push eax
call sub.MFC42u.DLL_CString::operator_2
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [esp + 0x14], 0xffffffff
test ecx, ecx
mov dword [esp + 4], 0x47d454
pop ebx
je 0x46161a
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14
Function at 0x466690
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47978f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
mov dword [esp + 0x18], esi
lea ecx, [esp + 8]
mov dword [esp + 0x24], 1
call sub.MFC42u.DLL_CString::CString_2
push 0x4941b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.004658c8
mov bl, 3
push 0x4941b0
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], bl
call sub.MFC42u.DLL_CString::operator_2
mov eax, dword [esp + 0x30]
cmp dword [eax - 8], esi
jle 0x46676e
mov ax, word [eax + esi*2]
cmp ax, 0x5c
je 0x466729
push eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42u.DLL_operator_2
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 4
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call fcn.00465724
jmp 0x466764
lea edx, [esp + 8]
push 0x5c
lea eax, [esp + 0x18]
push edx
push eax
call sub.MFC42u.DLL_operator_2
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 5
call fcn.00465b44
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.00465724
push 0x4941b0
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::operator_2
mov eax, dword [esp + 0x30]
inc esi
cmp esi, dword [eax - 8]
jl 0x4666f1
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
mov dword [esp + 0x18], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call fcn.00465724
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call fcn.00465724
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.00465724
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4667d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4797cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov dword [esp + 0x10], 0
mov ebx, 1
push 0x4941b0
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.004658c8
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov byte [esp + 0x28], 2
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0xc]
push ecx
call fcn.00466690
add esp, 8
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 3
call sub.MFC42u.DLL_CString::Find_2
test eax, eax
jge 0x46685b
mov esi, dword [esp + 0x28]
push 0x4d8874
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_1
mov dword [esp + 0x10], ebx
jmp 0x46689d
mov ecx, dword [esp + 8]
mov esi, dword [ecx - 8]
mov ecx, dword [esp + 0x2c]
add eax, esi
mov edx, dword [ecx - 8]
mov esi, eax
cmp eax, edx
jge 0x466889
mov cx, word [ecx + esi*2]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::operator
mov ecx, dword [esp + 0x2c]
inc esi
cmp esi, dword [ecx - 8]
jl 0x466871
mov esi, dword [esp + 0x28]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
mov dword [esp + 0x10], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call fcn.00465724
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], bl
call fcn.00465724
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call fcn.00465724
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x4668e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x479807
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov dword [esp + 8], 0
mov eax, dword [esp + 0x24]
mov ebx, 1
test eax, eax
mov dword [esp + 0x14], ebx
je 0x466982
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x20]
mov eax, dword [eax - 8]
dec eax
push eax
push 0x48c6f4
call sub.MFC42u.DLL_CString::Find_2
cmp eax, 0xffffffff
jne 0x46694d
push 0x48c6f4
lea ecx, [esp + 0x24]
call fcn.00465b38
mov esi, dword [esp + 0x1c]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
mov dword [esp + 8], ebx
jmp 0x4669b2
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x20]
mov dword [esp + 8], ebx
mov byte [esp + 0x14], 0
call fcn.00465724
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x20]
mov eax, dword [edx - 8]
dec eax
push eax
push 0x48c6f4
call sub.MFC42u.DLL_CString::Find_2
cmp eax, 0xffffffff
jne 0x4669d3
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
mov dword [esp + 8], ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x14], 0
call fcn.00465724
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov ecx, dword [esp + 0x20]
push ebp
push edi
mov eax, dword [ecx - 8]
lea ebp, [eax - 1]
lea edi, [ebp + ebp + 2]
push edi
call sub.MFC42u.DLL_operatornew
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
push ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x30]
push eax
push esi
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0x10
lea ecx, [esp + 0x2c]
push esi
call fcn.004658c8
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
mov byte [esp + 0x20], 2
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x2c]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x1c], bl
call fcn.00465724
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call fcn.00465724
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x468b20
Capabilities:
Access peb ldr_data
Get file version info
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x479cb7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
xor edi, edi
push str.Unknown_Version
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], edi
call fcn.004658c8
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x30], 1
mov dword [esp + 0x18], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, edi
mov dword [esp + 0xc], eax
jbe 0x468c54
push ebp
push eax
call sub.MFC42u.DLL_operatornew
mov ecx, dword [esp + 0x14]
add esp, 4
mov ebp, eax
push ebp
push ecx
push edi
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x468c4a
lea edx, [esp + 0x10]
push ebx
lea eax, [esp + 0x1c]
push edx
push eax
push 0x48c6f4
push ebp
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [esp + 0x1c]
push 0x4941b0
mov eax, dword [ecx + 8]
mov edi, eax
and eax, 0xffff
mov ebx, eax
mov eax, dword [ecx + 0xc]
mov esi, eax
and eax, 0xffff
lea ecx, [esp + 0x40]
mov dword [esp + 0x24], eax
shr edi, 0x10
shr esi, 0x10
call fcn.004658c8
mov eax, 0x51eb851f
mov byte [esp + 0x30], 2
mul esi
shr edx, 5
sub edx, 0
je 0x468c03
dec edx
je 0x468bfc
push str.Release
jmp 0x468c08
push str.Beta
jmp 0x468c08
push str.Alpha
lea ecx, [esp + 0x40]
call sub.MFC42u.DLL_CString::operator_2
mov ecx, dword [esp + 0x20]
mov eax, esi
push ecx
xor edx, edx
mov ecx, 0x64
div ecx
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0x44]
push edx
push ebx
push edi
push str._d._d__s_d_build_d
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0x1c
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 1
call fcn.00465724
pop ebx
push ebp
call sub.MFC42u.DLL_operatordelete
add esp, 4
pop ebp
mov esi, dword [esp + 0x30]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
mov dword [esp + 0x1c], 1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.00465724
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x468ce0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x479d2c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push str.Unknown_OS
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0
call fcn.004658c8
lea eax, [esp + 0x18]
mov dword [esp + 0x134], 1
push eax
mov dword [esp + 0x1c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x468f07
lea ecx, [esp]
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [esp + 0x28]
mov byte [esp + 0x134], 2
sub eax, 0
je 0x468de3
dec eax
je 0x468dae
dec eax
jne 0x468df1
push str.Windows_NT_family
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::operator_2
mov eax, dword [esp + 0x1c]
sub eax, 3
je 0x468da7
dec eax
je 0x468da0
dec eax
jne 0x468df1
mov eax, dword [esp + 0x20]
sub eax, 0
je 0x468d99
dec eax
je 0x468d92
dec eax
jne 0x468df1
push str.Windows_Server_2003_family
jmp 0x468de8
push str.Windows_XP
jmp 0x468de8
push str.Windows_2000
jmp 0x468de8
push str.Windows_NT_4.0
jmp 0x468de8
push str.Windows_NT_3.51
jmp 0x468de8
push str.Windows_95_98_me
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::operator_2
mov eax, dword [esp + 0x20]
test eax, eax
je 0x468ddc
cmp eax, 0xa
je 0x468dd5
cmp eax, 0x5a
jne 0x468df1
push str.Windows_Me
jmp 0x468de8
push str.Windows_98
jmp 0x468de8
push str.Windows_95
jmp 0x468de8
push str.Win32s_on_Windows_3.1
lea ecx, [esp + 4]
call sub.MFC42u.DLL_CString::operator_2
mov ecx, dword [esp + 0x24]
mov eax, dword [esp]
lea edx, [esp + 0x2c]
push ecx
push edx
push eax
lea ecx, [esp + 0x10]
push 0x4938ec
push ecx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x154]
add esp, 0x14
test eax, eax
je 0x468ea8
push 0x4938e8
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_1
lea edx, [esp + 8]
lea eax, [esp]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x140], 3
call sub.MFC42u.DLL_operator
lea edx, [esp + 0x2c]
mov byte [esp + 0x134], 4
push edx
push eax
lea eax, [esp + 0x14]
push eax
call sub.MFC42u.DLL_operator_3
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x138], 5
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x134], 4
call fcn.00465724
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 3
call fcn.00465724
lea ecx, [esp + 8]
mov byte [esp + 0x134], 2
call fcn.00465724
mov eax, dword [esp + 0x144]
test eax, eax
je 0x468ef6
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_3
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 8]
push edx
push eax
lea ecx, [esp + 0xc]
push str._s_build_d
push ecx
mov byte [esp + 0x144], 6
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 8]
mov byte [esp + 0x134], 2
call fcn.00465724
lea ecx, [esp]
mov byte [esp + 0x134], 1
call fcn.00465724
push esi
mov esi, dword [esp + 0x140]
lea edx, [esp + 8]
mov ecx, esi
push edx
call sub.MFC42u.DLL_CString::CString_3
mov dword [esp + 0x14], 1
lea ecx, [esp + 8]
mov byte [esp + 0x138], 0
call fcn.00465724
mov ecx, dword [esp + 0x130]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x138
ret
Function at 0x469440
Capabilities:
Get file version info

Disassembly:
mov eax, 0x479e6c
call fcn.00472880
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
lea ecx, [ebp + 8]
push ebx
push ebx
mov dword [ebp - 4], ebx
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
lea ecx, [ebp - 0x18]
mov esi, eax
call sub.MFC42u.DLL_CString::CString_2
cmp esi, ebx
mov byte [ebp - 4], 1
jne 0x46947e
or esi, 0xffffffff
jmp 0x46950a
lea eax, [esi + 2]
push edi
push eax
call sub.MFC42u.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
push eax
push esi
push ebx
push ebx
lea ecx, [ebp + 8]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x48c6f4
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [ebp - 0x14]
push 0x64
xor edx, edx
pop ebx
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov esi, eax
mov edi, ecx
and eax, 0xffff
push dword [ebp - 0x10]
shr edi, 0x10
mov dword [ebp - 0x2c], eax
mov eax, edi
div ebx
and ecx, 0xffff
shr esi, 0x10
mov dword [ebp - 0x20], ecx
mov ebx, eax
imul eax, eax, 0x64
sub edi, eax
call sub.MFC42u.DLL_operatordelete
imul esi, esi, 0x64
add esi, dword [ebp - 0x2c]
pop ecx
lea eax, [esi + esi*4]
lea esi, [ebx + eax*2]
imul esi, esi, 0x64
add esi, edi
pop edi
imul esi, esi, 0x64
add esi, dword [ebp - 0x20]
xor ebx, ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00465724
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00465724
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4698b5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x604
and byte [ebp - 1], 0
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
je 0x46998c
and byte [ebp - 0x204], 0
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x203]
and word [ebp - 0x604], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push dword [ebp + 0xc]
mov ecx, 0xff
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x602]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push 1
pop ebx
stosw word es:[edi], ax
push ebx
lea eax, [ebp - 2]
push ebx
push eax
xor edi, edi
call esi
add esp, 0x10
cmp eax, ebx
jne 0x46998c
cmp edi, 0x200
jae 0x469958
mov al, byte [ebp - 2]
mov byte [ebp - 1], bl
cmp al, 0xd
je 0x46994a
push dword [ebp + 0xc]
mov byte [ebp + edi - 0x204], al
lea eax, [ebp - 2]
inc edi
push ebx
push ebx
push eax
call esi
add esp, 0x10
cmp eax, ebx
je 0x46991c
jmp 0x46995e
push dword [ebp + 0xc]
lea eax, [ebp - 2]
push ebx
push ebx
push eax
call esi
add esp, 0x10
cmp byte [ebp - 1], 0
je 0x46998c
lea eax, [ebp - 0x604]
push 0x200
push eax
lea eax, [ebp - 0x204]
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x604]
push eax
call sub.MFC42u.DLL_CString::operator_2
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46b611
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x46b66d
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x208]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x46c365
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push 0x103
push dword [ebp + 8]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x10
test eax, eax
jle 0x46c3c9
lea ecx, [ebp - 0x208]
cmp word [ecx], 0x2f
jne 0x46c3c4
mov word [ecx], 0x5c
inc ecx
inc ecx
dec eax
jne 0x46c3b9
mov ebx, dword [sym.imp.MSVCRT.dll_wcscmp]
lea esi, [ebp - 0x208]
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_wcschr]
pop ecx
test eax, eax
pop ecx
je 0x46c42f
mov di, word [eax + 2]
lea esi, [eax + 2]
test di, di
je 0x46c43d
and word [esi], 0
lea eax, [ebp - 0x208]
push eax
push 0x493ff8
call ebx
pop ecx
test eax, eax
pop ecx
je 0x46c42a
lea eax, [ebp - 0x208]
push eax
push 0x493ff0
call ebx
pop ecx
test eax, eax
pop ecx
je 0x46c42a
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll__wmkdir]
pop ecx
mov word [esi], di
jmp 0x46c3d5
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll__wmkdir]
pop ecx
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__wmkdir]
pop ecx
pop edi
pop esi
pop ebx
leave
ret