joyce8/EMBER2024-capa huggingface dataset:
Function at 0x498580
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fb328
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
push esi
mov esi, ecx
push edi
push 0
lea ecx, [esp + 0x24]
call fcn.0044e9a0
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0
call fcn.0044e9a0
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esi + 0x190]
lea ecx, [esp + 0xc]
push eax
push str._start_:1__s_:0__num_:999__uin_:__d___id_:1
push ecx
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x50]
add esp, 0xc
lea eax, [esp + 0x20]
push 0
push edx
push 7
push eax
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x54]
push 0xe
push eax
mov ecx, esi
call fcn.004930b0
mov ebp, eax
test ebp, ebp
je 0x498685
push 0x52630c
lea ecx, [esp + 0x24]
call fcn.0044fea0
push eax
lea ecx, [esp + 0x14]
call fcn.0044f040
lea ecx, [esp + 0x10]
call fcn.0044f140
cmp eax, 6
jne 0x498685
lea ecx, [esp + 0x10]
xor edi, edi
call fcn.0044fc80
test eax, eax
jbe 0x498685
push 0
push edi
lea ecx, [esp + 0x18]
call fcn.0044fd30
push eax
call fcn.0040c7d0
add esp, 4
mov ecx, esi
push eax
call fcn.00494380
test eax, eax
je 0x498677
mov dword [eax + 4], 1
lea ecx, [esp + 0x10]
inc edi
call fcn.0044fc80
cmp edi, eax
jb 0x49864f
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 0
call fcn.0044eec0
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0xffffffff
call fcn.0044eec0
mov ecx, dword [esp + 0x30]
pop edi
mov eax, ebp
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x30
ret 8
Function at 0x49c180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fb9f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.0045ad00
lea ecx, [esp + 4]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x34], 2
call fcn.0045b660
test eax, eax
je 0x49c1fe
push str.data
lea ecx, [esp + 0x10]
call fcn.0045b960
test eax, eax
je 0x49c1fe
lea ecx, [esp + 0xc]
call fcn.0045baf0
push str.list
lea ecx, [esp + 0x10]
call fcn.0045b960
test eax, eax
jne 0x49c23f
lea ecx, [esp + 4]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call fcn.0045b170
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
pop edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret 4
push ebx
push esi
lea ecx, [esp + 0x14]
call fcn.0045baf0
push str.material
lea ecx, [esp + 0x18]
call fcn.0045b960
test eax, eax
je 0x49c2da
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x10]
push str.statusText
push ecx
lea ecx, [esp + 0x1c]
call fcn.00423910
mov eax, dword [eax]
push 0x52cc30
push eax
call esi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x49c2a8
push str.material
lea ecx, [esp + 0x18]
call fcn.0045b960
test eax, eax
jne 0x49c262
jmp 0x49c2da
lea edx, [esp + 0x10]
push 0x526728
push edx
lea ecx, [esp + 0x1c]
call fcn.00423910
push eax
lea ecx, [edi + 0x658]
mov byte [esp + 0x3c], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 0
call fcn.0045b170
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop esi
pop ebx
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x49e4c0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x4fbdb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [0x536d10]
push ebx
push ebp
push esi
mov ebx, dword [eax + 0x248]
push edi
mov edi, ecx
lea esi, [eax + 0x17c]
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [esi + 0xcc]
mov dword [esp + 0x38], 0
test eax, eax
je 0x49e6a1
mov ebp, dword [esp + 0x40]
push 2
lea ecx, [esp + 0x44]
push ebp
push ecx
mov ecx, edi
call fcn.00498410
mov edx, dword [eax]
lea eax, [esp + 0x10]
push edx
push str.SELECT__FROM_RestaStatus_WHERE_UIN_s
push eax
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
push 1
push 2
lea ecx, [esi + 0x9d0]
push 3
push ecx
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
call sub.MFC42.DLL_CString::CString_3
lea edi, [esi + 0x9dc]
mov ecx, edi
call fcn.00401980
test eax, eax
jne 0x49e583
xor ebx, ebx
jmp 0x49e6a1
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, edi
mov byte [esp + 0x38], 2
call fcn.00402290
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
mov dword [esp + 0x18], ebx
je 0x49e680
sub esp, 0x10
mov ebx, esp
mov dword [esp + 0x50], esp
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 2
push ebp
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00498410
push ebx
mov ecx, esi
call fcn.0041ddb0
push ecx
mov byte [esp + 0x4c], 3
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x52cdb0
call sub.MFC42.DLL_CString::CString_2
mov bl, 2
mov ecx, edi
mov byte [esp + 0x4c], bl
call fcn.00402020
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov edx, esp
mov dword [esp + 0x50], esp
push eax
push edx
mov ecx, esi
call fcn.0041de80
push ecx
mov byte [esp + 0x4c], 4
mov ecx, esp
mov dword [esp + 0x30], esp
push str.MASKED
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x4c], bl
call fcn.00402020
sub esp, 0x10
mov edx, esp
mov dword [esp + 0x2c], esp
push ecx
mov ecx, esp
mov dword [esp + 0x54], esp
push ebp
push ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x5c], edx
call fcn.0049dc80
mov edx, dword [esp + 0x54]
mov ecx, esi
push edx
call fcn.0041ddb0
push ecx
mov byte [esp + 0x4c], 5
mov ecx, esp
mov dword [esp + 0x54], esp
push str.DATA
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
mov byte [esp + 0x4c], bl
call fcn.00402020
mov ecx, edi
call fcn.00402400
mov ebx, dword [esp + 0x18]
mov ecx, edi
call fcn.004025d0
lea eax, [esp + 0x20]
mov byte [esp + 0x38], 0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x49e6a1
push eax
call fcn.004e9ff0
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 4
Function at 0x4a0c60
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4fc1a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc4
push ebx
push ebp
push esi
xor esi, esi
push edi
lea eax, [esp + 0x18]
push esi
mov ebp, ecx
push eax
call fcn.0040dc50
add esp, 8
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x20], esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x70]
push ecx
push 0x64
push edx
push str.0_0_
push str.HaveMeal
push str.INIT
mov dword [esp + 0xf4], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x5236a4
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x7c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0xec], 1
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebp
mov byte [esp + 0xe8], 0
call fcn.00443330
cmp eax, esi
mov dword [esp + 0x14], eax
jle 0x4a0d8b
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
mov ebx, dword [sym.imp.MSVCRT.dll_strncpy]
cmp esi, 3
ja case.default.0x4a0d21
jmp dword [esi*4 + 0x4a0dd4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
push eax
call edi
add esp, 4
mov dword [esp + 0x20], eax
jmp case.default.0x4a0d21
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
push eax
call edi
add esp, 4
mov dword [esp + 0x68], eax
jmp case.default.0x4a0d21
mov edx, dword [esp + 0x10]
push 0x40
mov eax, dword [edx + 8]
push eax
lea eax, [esp + 0x2c]
push eax
call ebx
add esp, 0xc
jmp case.default.0x4a0d21
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [ecx + 0xc]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_3
mov ecx, ebp
call fcn.004a0df0
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x4a0d1c
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4a0da4
lea edi, [ebp + 0x69c]
mov ecx, 0x14
lea esi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
mov dword [esp + 0xdc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xd0
ret
Function at 0x4a37b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4fc6c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x2800
call sub.MFC42.DLL_operatornew
mov ebx, eax
lea eax, [esp + 0x18]
push 1
push eax
call fcn.0040dc50
mov eax, dword [eax]
add esp, 0xc
push eax
push 0x2800
push ebx
push 0x5307a8
push str.DeadAtid
push str.SYSTEM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x10]
xor edi, edi
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x5236a4
mov dword [esp + 0x34], edi
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x34], 1
mov ecx, esp
mov dword [esp + 0x20], esp
push ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [esp + 0x34], 0
call fcn.00443330
cmp eax, edi
mov dword [esp + 0x14], eax
jle 0x4a38ab
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + edi*4]
push eax
call ebp
add esp, 4
test eax, eax
je 0x4a38a2
push eax
mov ecx, esi
call fcn.004a3680
test eax, eax
jne 0x4a38a2
mov eax, dword [esp + 0x10]
mov eax, dword [eax + edi*4]
push eax
call ebp
add esp, 4
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x78]
push edx
push 1
lea ecx, [esi + 0x70]
push eax
call fcn.0047f0e0
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x4a3861
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4a38d0
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push sub.MFC42.DLL_CString::CString
push ecx
push 4
push eax
call fcn.004e9b8a
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x4b52f0
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x688], ebx
je 0x4b5306
pop esi
mov eax, 1
pop ebx
ret
push edi
mov ecx, esi
call fcn.0048e370
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
mov ecx, esi
call fcn.0048e370
push 1
mov ecx, esi
mov edi, eax
mov dword [esi + 0x6f0], ebx
mov dword [esi + 0x678], ebx
mov dword [esi + 0x6f4], ebx
mov dword [esi + 0x6f8], ebx
call fcn.004bcff0
mov eax, dword [esi]
mov ecx, esi
mov dword [esi + 0x7ac], edi
mov dword [esi + 0x7c0], edi
mov dword [esi + 0x7b0], edi
call dword [eax + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
push esi
push 0x4b4920
push ebx
push ebx
call edi
push ebx
push ebx
push esi
push 0x4b5480
push ebx
push ebx
mov dword [esi + 0x750], eax
call edi
push ebx
push ebx
push esi
push 0x4b50a0
push ebx
push ebx
mov dword [esi + 0x758], eax
call edi
mov dword [esi + 0x754], eax
mov dword [esi + 0x688], 1
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4bceb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov ecx, ebx
lea esi, [eax + 0x90]
push esi
call fcn.00495c70
push esi
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.00495090
mov edi, dword [ebp + 0xc]
xor ecx, ecx
cmp edi, 2
sete cl
add eax, ecx
xor ecx, ecx
xor edx, edx
cmp edi, 3
sete dl
add edx, dword [esi + 0x13c]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x150]
mov dword [esp + 0x10], ecx
fild qword [esp + 0xc]
mov dword [esp + 0xc], edx
mov edx, dword [esi + 0x154]
mov dword [esp + 0x10], ecx
lea ecx, [eax + eax*2]
fmul qword [0x507a00]
add ecx, edx
mov esi, dword [esp + 0x14]
lea edx, [ecx*8]
fstp qword [esp + 0x18]
sub edx, ecx
fild qword [esp + 0xc]
lea ecx, [edx + edx*4]
lea ecx, [ecx + ecx*4]
lea edx, [ecx*4 + 0x61a8]
xor ecx, ecx
mov dword [esp + 0xc], edx
cmp edi, 1
fild dword [esp + 0xc]
sete cl
add ecx, esi
fdivp st(1)
mov dword [esp + 0x14], ecx
lea ecx, [eax*8]
sub ecx, eax
lea eax, [ecx + ecx*4]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 8]
shl edx, 4
add edx, 0x7d0
mov ecx, dword [eax + 0x78]
push ecx
mov ecx, ebx
fstp qword [esp + 0x24]
fild dword [esp + 0x18]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x3c]
fild dword [esp + 0x18]
push edx
fdivp st(1)
fstp qword [esp + 0x30]
call fcn.00494430
mov ecx, dword [eax + 0x18]
fld qword [esp + 0x18]
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
lea ecx, [esp + 0x20]
mov edx, 3
fcom qword [ecx]
fnstsw ax
test ah, 0x41
jne 0x4bcfd3
fstp st(0)
fld qword [ecx]
add ecx, 8
dec edx
jne 0x4bcfc6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4bd580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
xor edi, edi
mov ebp, ecx
push ebx
mov dword [esp + 0x14], edi
call fcn.00495d00
push 1
push ebx
mov ecx, ebp
call fcn.00494610
mov eax, dword [ebx + 0x78]
lea ecx, [esp + 0x1c]
fstp qword [esp + 0x14]
push eax
push ecx
mov ecx, ebp
call fcn.00494430
mov eax, dword [ebx + 0x1c8]
lea esi, [ebx + 0x1c8]
cmp eax, edi
je 0x4bd6f9
mov eax, dword [ebx + 0x1f4]
cmp eax, 4
je 0x4bd6f9
mov eax, dword [ebx + 0x208]
mov ecx, dword [ebx + 0x494]
lea edi, [ebx + 0x208]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4bd6ed
lea eax, [ebx + 0x494]
mov ecx, edi
push eax
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [ebx + 0x174]
mov eax, dword [esp + 0x14]
lea edi, [ebx + 0x2d8]
mov ecx, 0xe
mov dword [ebx + 0x310], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x320], eax
lea esi, [ebx + 0x90]
mov dword [ebx + 0x324], ecx
push esi
mov ecx, ebp
call fcn.00495c70
push esi
mov ecx, ebp
mov dword [ebx + 0x318], eax
call fcn.00495090
mov dword [ebx + 0x314], eax
mov dword [ebx + 0x200], 0
lea edx, [ebx + 0x20c]
lea eax, [ebx + 0x368]
mov dword [esp + 0x48], 3
mov ecx, 0x11
mov esi, eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jle 0x4bd69e
cmp dword [eax], 0
je 0x4bd69e
mov ecx, dword [eax + 0x10]
mov esi, dword [esp + 0x10]
add esi, ecx
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x48]
add eax, 0x44
add edx, 0x44
dec ecx
mov dword [esp + 0x48], ecx
jne 0x4bd67a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
cmp edx, eax
jbe 0x4bd6ed
mov eax, dword [ebx + 0x1e0]
test eax, eax
jl 0x4bd6ed
mov eax, dword [ebx + 0x1e4]
test eax, eax
jl 0x4bd6ed
push 0xa
mov ecx, ebp
call fcn.00481ac0
pop edi
pop esi
mov dword [ebx + 0x204], eax
pop ebp
mov eax, 1
pop ebx
add esp, 0x34
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8
Function at 0x4be320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fda30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_4
mov edi, dword [esp + 0x30]
xor ebx, ebx
mov dword [esp + 0x28], ebx
cmp dword [edi + 0x204], ebx
je case.default.0x4be398
mov ecx, esi
call fcn.0048e370
mov edx, dword [edi + 0x310]
mov ecx, eax
mov eax, dword [edi + 0x204]
sub ecx, edx
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
shl edx, 2
cmp ecx, edx
jl case.default.0x4be398
push edi
mov ecx, esi
call fcn.004bd1b0
add eax, 2
cmp eax, 4
ja case.default.0x4be398
jmp dword [eax*4 + 0x4be510]
lea eax, [esp + 0x30]
push edi
push eax
mov ecx, esi
call fcn.0049c450
mov ecx, dword [edi + 0x204]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x52e094
push eax
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi + 0x174]
push edi
push 0xc
push 0x467
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp case.default.0x4be398
lea edx, [esp + 0x10]
push edi
push edx
mov ecx, esi
call fcn.0049c450
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push eax
push 0x52e070
push ecx
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x10]
jmp 0x4be4e4
lea edx, [esp + 0x14]
push edi
push edx
mov ecx, esi
call fcn.0049c450
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push eax
push 0x52e04c
push ecx
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x14]
jmp 0x4be4e4
lea edx, [esp + 0x18]
push edi
push edx
mov ecx, esi
call fcn.0049c450
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push eax
push 0x52e02c
push ecx
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi + 0x174]
push edi
push 0xc
push 0x467
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0xc]
mov eax, dword [esi]
push ecx
push 0x14
mov ecx, esi
call dword [eax + 4]
jmp case.default.0x4be398
lea edx, [esp + 0x1c]
push edi
push edx
mov ecx, esi
call fcn.0049c450
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push eax
push 0x52dffc
push ecx
mov byte [esp + 0x34], 5
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov byte [esp + 0x28], bl
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x4bf750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fdab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
push esi
push edi
mov esi, ecx
push eax
call fcn.004bf6d0
lea ecx, [esp + 8]
mov edi, eax
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString_4
test edi, edi
mov byte [esp + 0x28], 2
je 0x4bf7e1
lea ecx, [esp + 8]
push ecx
push edi
mov ecx, esi
call fcn.0049d080
test eax, eax
je 0x4bf7e1
add edi, 0x6c
lea edx, [esp + 0x30]
push edi
push 0x52e0d0
push edx
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x3c]
mov eax, dword [esi]
add esp, 0xc
push ecx
push 0x14
mov ecx, esi
call dword [eax + 4]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x4bfe90
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x764], 0xffffffff
jne 0x4bfeb6
push 0
push 0
push esi
push 0x4bff50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x764], eax
pop esi
ret

Function at 0x4bfec0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x768], 0xffffffff
jne 0x4bfee6
push 0
push 0
push esi
push 0x4bff80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x768], eax
pop esi
ret

Function at 0x4bfef0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x76c], 0xffffffff
jne 0x4bff16
push 0
push 0
push esi
push 0x4bffb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x76c], eax
pop esi
ret

Function at 0x4bff20
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x770], 0xffffffff
jne 0x4bff46
push 0
push 0
push esi
push 0x4bffe0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x770], eax
pop esi
ret
Function at 0x4cac90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x24
push ebx
push esi
mov esi, ecx
mov edx, dword [esp + 0x38]
xor ebx, ebx
push edi
mov byte [esp + 0xc], 0xb8
mov byte [esp + 0xd], bl
mov byte [esp + 0xe], bl
mov byte [esp + 0xf], 0x40
mov eax, dword [esp + 0xc]
lea edi, [esi + 8]
mov byte [esp + 0x10], bl
mov byte [esp + 0x11], 0xff
mov byte [esp + 0x12], 0xe0
mov byte [esp + 0x13], bl
mov ecx, dword [esp + 0x10]
mov dword [edi], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 4], ecx
push eax
mov dword [esi + 4], ebx
mov dword [esi + 9], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x4cacf7
mov dword [esi], ebx
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc
mov ecx, dword [esp + 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [esi], eax
je 0x4cacec
push ebp
lea edx, [esp + 0x18]
push 0x1c
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, dword [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0x40]
push eax
push 0x80
push 8
push ecx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esi]
mov dword [esi + 4], edx
push ebx
mov ecx, dword [eax]
push 8
mov dword [esi + 0x10], ecx
mov edx, dword [eax + 4]
push edi
push eax
mov dword [esi + 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esp + 0x40]
mov ecx, dword [esi]
push ebx
push eax
push 8
push ecx
call ebp
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x24
ret 0xc