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

Disassembly:
push 0xffffffffffffffff
push 0x4f5d2f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
mov dword [esp + 0x14], 0
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString_4
mov edi, dword [esp + 0x3c]
mov byte [esp + 0x30], 2
test edi, edi
je 0x45c285
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x38], 3
mov dword [esp + 0x10], 0
call fcn.0045ada0
add esp, 8
mov eax, dword [eax]
mov byte [esp + 0x30], 4
test eax, eax
je 0x45c1b2
mov edi, dword [eax]
jmp 0x45c1b4
xor edi, edi
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x40]
push edx
call fcn.0045bd60
mov esi, eax
mov eax, dword [esi]
mov byte [esp + 0x30], 5
test eax, eax
jne 0x45c1d9
push 0x80004003
call fcn.004e9ff0
mov eax, dword [esi]
lea edx, [esp + 8]
push edx
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x40]
test eax, eax
mov byte [esp + 0x30], 4
je 0x45c1fc
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x30], 3
test ecx, ecx
je 0x45c20e
call fcn.0045c2d0
test esi, esi
jl 0x45c26e
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x45c272
lea edx, [esp + 0x18]
push edx
call fcn.0045c320
push eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x38], 6
call fcn.0045b010
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 7
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x30], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x45c26e
push eax
call fcn.004e9ff0
mov ecx, dword [esp + 8]
test ecx, ecx
mov byte [esp + 0x30], 2
je 0x45c281
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x14], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
test edi, edi
mov byte [esp + 0x30], 0
je 0x45c2ba
mov ecx, dword [edi]
push edi
call dword [ecx + 8]
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
Function at 0x45dc10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5fd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x470
push ebx
push esi
push edi
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x10], esp
call fcn.0045dce0
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x47c]
push 0x52a374
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x45dcca
push esi
push 0x400
lea ecx, [ebp - 0x47c]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
je 0x45dc98
lea edx, [ebp - 0x47c]
push eax
push edx
lea ecx, [ebp - 0x7c]
call fcn.0045dd10
jmp 0x45dc6a
lea ecx, [ebp - 0x7c]
call fcn.0045ddd0
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
lea eax, [ebp - 0x24]
push eax
call fcn.0045da90
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45dce0
Capabilities:
Hash data with md5

Disassembly:
lea edx, [ecx + 0x10]
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x462170
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x17c
mov eax, dword [esp + 0x188]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov edi, 0x67452301
mov esi, 0xefcdab89
mov ebx, 0x98badcfe
mov dword [esp + 0x48], ebp
test eax, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], 0x10325476
mov dword [esp + 0x1c], 0xc3d2e1f0
jle 0x46231d
mov ecx, dword [esp + 0x194]
add eax, 0xf
shr eax, 4
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], ebx
lea edi, [esp + 0x4c]
xor ebx, ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
sub edi, 0x38
mov dword [esp + 0x30], ecx
cmp ebx, 0x10
jge 0x462209
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
jmp 0x462224
mov ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x18]
mov esi, dword [edi - 8]
mov edx, dword [edi]
xor ecx, eax
push 1
xor ecx, esi
xor ecx, edx
push ecx
mov ecx, ebp
call fcn.00462360
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x38], eax
mov eax, dword [esp + 0x18]
push edx
push eax
push ecx
push ebx
mov ecx, ebp
call fcn.00462520
mov edx, dword [esp + 0x2c]
push 5
push edx
mov ecx, ebp
mov esi, eax
call fcn.00462360
mov ecx, dword [esp + 0x10]
mov edx, eax
add edx, ecx
push ebx
mov ecx, ebp
mov dword [esp + 0x48], edx
call fcn.00462130
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x48]
mov esi, eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
add ecx, eax
mov eax, dword [edi + 0x38]
add esi, ecx
mov ecx, dword [esp + 0x24]
add esi, eax
mov eax, dword [esp + 0x18]
push 0x1e
push ecx
mov ecx, ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x28], eax
call fcn.00462360
mov edx, dword [esp + 0x2c]
inc ebx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x30]
add edx, 4
add edi, 4
cmp ebx, 0x50
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edx
jl 0x4621fc
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
add edi, esi
mov esi, dword [esp + 0x40]
mov edx, eax
mov eax, dword [esp + 0x20]
add esi, ebx
mov ebx, dword [esp + 0x34]
add ecx, eax
mov eax, dword [esp + 0x38]
add ebx, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x3c], edi
add edx, ecx
mov ecx, dword [esp + 0x28]
add ecx, 0x40
dec eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], eax
jne 0x4621cf
push 0x14
mov ebp, 5
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x194]
add esp, 4
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov dword [ecx], eax
pop edi
mov dword [ecx + 4], ebp
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x17c
ret 0xc
Function at 0x462720
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f65b6
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], 0x506cac
mov eax, dword [esi + 0x14]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], 1
je 0x46275e
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x46276e
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esi + 4]
cmp ecx, edi
je 0x46277b
mov eax, dword [ecx]
push 3
call dword [eax]
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 4], edi
mov eax, dword [esi + 0x30]
push eax
mov dword [esp + 0xc], eax
call sub.MFC42.DLL_operatordelete
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov eax, dword [esi + 0x20]
push eax
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x14]
add esp, 8
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x464210
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov eax, dword [edi]
push eax
call fcn.00463d00
mov ecx, dword [edi + 4]
mov esi, eax
push ecx
call fcn.00463d00
mov ebp, dword [esp + 0x30]
mov edi, eax
mov edx, dword [ebp]
push edx
call fcn.00463d00
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
push eax
call fcn.00463d00
mov ecx, dword [ebp + 8]
mov dword [esp + 0x24], eax
push ecx
call fcn.00463d00
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x2c], eax
push edx
call fcn.00463d00
add esp, 0x18
mov ecx, 0x10
mov ebp, dword [esp + 0x14]
mov edx, edi
shr edx, 5
add edx, ebp
mov ebp, edi
shl ebp, 4
add ebp, dword [esp + 0x10]
sub ebx, 0x61c88647
xor edx, ebp
lea ebp, [edi + ebx]
xor edx, ebp
add esi, edx
mov ebp, esi
mov edx, esi
shl ebp, 4
add ebp, dword [esp + 0x18]
shr edx, 5
add edx, eax
xor edx, ebp
lea ebp, [esi + ebx]
xor edx, ebp
add edi, edx
dec ecx
jne 0x46426e
push esi
call fcn.00463d00
mov esi, dword [esp + 0x30]
push edi
mov dword [esi], eax
call fcn.00463d00
add esp, 8
mov dword [esi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x4642d0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov ebx, 0xe3779b90
mov eax, dword [esi]
push eax
call fcn.00463d00
mov ecx, dword [esi + 4]
mov edi, eax
push ecx
call fcn.00463d00
mov ebp, dword [esp + 0x30]
mov esi, eax
mov edx, dword [ebp]
push edx
call fcn.00463d00
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
push eax
call fcn.00463d00
mov ecx, dword [ebp + 8]
mov dword [esp + 0x24], eax
push ecx
call fcn.00463d00
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x2c], eax
push edx
call fcn.00463d00
add esp, 0x18
mov ecx, 0x10
mov ebp, edi
mov edx, edi
shl ebp, 4
add ebp, dword [esp + 0x18]
shr edx, 5
add edx, eax
xor edx, ebp
lea ebp, [edi + ebx]
xor edx, ebp
mov ebp, dword [esp + 0x14]
sub esi, edx
mov edx, esi
shr edx, 5
add edx, ebp
mov ebp, esi
shl ebp, 4
add ebp, dword [esp + 0x10]
xor edx, ebp
lea ebp, [esi + ebx]
xor edx, ebp
add ebx, 0x61c88647
sub edi, edx
dec ecx
jne 0x464331
push edi
call fcn.00463d00
mov edi, dword [esp + 0x30]
push esi
mov dword [edi], eax
call fcn.00463d00
add esp, 8
mov dword [edi + 4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x46df40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f7608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push ecx
mov dword [esp + 0x20], 0
mov ecx, esp
mov dword [esp + 0xc], esp
push 0x5234a4
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x24], 1
mov ecx, esp
mov dword [esp + 0x14], esp
push str._errorType_:_
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x30]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
push ecx
mov ecx, esi
call fcn.00443080
mov eax, dword [eax]
push str.validateCode
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 4]
test eax, eax
sete dl
and edx, 0xff
mov esi, edx
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x1c
ret 4
Function at 0x46f3a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f7788
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
push esi
mov ebp, ecx
push edi
push 0
lea ecx, [esp + 0x14]
call fcn.0044e9a0
push 0
lea ecx, [esp + 0x24]
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 esi, dword [esp + 0x40]
mov byte [esp + 0x38], 2
mov ecx, esi
mov edi, 1
call fcn.0044f140
cmp eax, 7
jne 0x46f549
push str.errorType
mov ecx, esi
call fcn.0044fea0
push eax
lea ecx, [esp + 0x14]
call fcn.0044f040
lea ecx, [esp + 0x10]
call fcn.0044f140
test eax, eax
je 0x46f466
push str.errorContent
mov ecx, esi
call fcn.0044fea0
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0040c8b0
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
jmp 0x46f517
push str.code
mov ecx, esi
call fcn.0044fea0
push eax
lea ecx, [esp + 0x14]
call fcn.0044f040
lea ecx, [esp + 0x10]
call fcn.0044f140
test eax, eax
je 0x46f549
lea ecx, [esp + 0x10]
push ecx
call fcn.0040c7d0
add esp, 4
test eax, eax
jne 0x46f549
push str.direction
mov ecx, esi
call fcn.0044fea0
push eax
lea ecx, [esp + 0x24]
call fcn.0044f040
lea ecx, [esp + 0x20]
call fcn.0044f140
test eax, eax
je 0x46f549
push str.direction
mov ecx, esi
call fcn.0044fea0
lea edx, [esp + 0x40]
push eax
push edx
call fcn.0040c8b0
add esp, 8
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 4
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x40]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
push 0x5307a8
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x46f549
mov ecx, dword [esp + 0x44]
xor edi, edi
test ecx, ecx
je 0x46f52b
lea edx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 0x48]
mov edx, dword [0x536d10]
push eax
lea ecx, [esp + 0x10]
push ebp
push ecx
push 0
lea ecx, [edx + 0x1084]
call fcn.004d40b0
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.0044eec0
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.0044eec0
mov ecx, dword [esp + 0x30]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc
Function at 0x475130
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x4f7f9f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x24]
push edi
mov dword [esp + 0xc], 0
lea edx, [eax + ecx*2]
lea ecx, [esp + 0x24]
mov eax, dword [edx*4 + 0x506f08]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], 1
call ebp
mov edx, dword [esi + 0x228]
mov edi, dword [esp + 0x2c]
sub eax, edx
cmp eax, 0xbb8
jge 0x4751de
mov eax, dword [esi + 0x224]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x4751de
cmp edi, dword [esi + 0x210]
jne 0x4751de
lea edi, [esi + 0x22c]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp dword [edi], 0x14
jl 0x475203
push 0
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov edx, dword [esi]
push 0x5262d8
push 0xc
mov ecx, esi
call dword [edx + 4]
jmp 0x475203
lea eax, [esp + 0x24]
lea ecx, [esi + 0x224]
push eax
mov dword [esi + 0x210], edi
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esi + 0x22c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call ebp
mov dword [esi + 0x228], eax
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x24]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x18], 0
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 0x10
Function at 0x481b60
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x1f8], ebx
je 0x481b76
pop esi
mov eax, 1
pop ebx
ret
push edi
mov ecx, esi
call fcn.004d3560
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
mov ecx, esi
call fcn.004d3560
push 1
mov ecx, esi
mov edi, eax
mov dword [esi + 0x208], ebx
mov dword [esi + 0x218], ebx
mov dword [esi + 0x21c], ebx
mov dword [esi + 0x230], ebx
call fcn.00481c50
push SysReAllocString
push ebx
mov ecx, esi
mov dword [esi + 0x2f0], edi
mov dword [esi + 0x304], edi
mov dword [esi + 0x2f4], edi
call fcn.00481920
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
push esi
push 0x481c70
push ebx
push ebx
call edi
push ebx
push ebx
push esi
push 0x482360
push ebx
push ebx
mov dword [esi + 0x26c], eax
call edi
push ebx
push 4
push esi
push 0x483600
push ebx
push ebx
mov dword [esi + 0x270], eax
call edi
push ebx
push ebx
push esi
push 0x483b20
push ebx
push ebx
mov dword [esi + 0x274], eax
call edi
mov dword [esi + 0x278], eax
mov eax, dword [esi + 0x274]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 0x274]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [esi + 0x1f8], 1
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x486f50
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4f9408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, esi
call fcn.004657a0
mov ecx, esi
mov ebx, eax
call fcn.004d3560
mov edx, dword [0x536558]
mov ecx, esi
push edx
mov edi, eax
call fcn.00481ac0
mov dword [esi + 0x2bc], eax
mov eax, dword [0x536564]
push eax
mov ecx, esi
call fcn.00481ac0
mov dword [esi + 0x2c4], eax
mov ecx, dword [0x5365a4]
push ecx
mov ecx, esi
call fcn.00481ac0
mov dword [esi + 0x2ec], eax
mov edx, dword [0x53655c]
push edx
mov ecx, esi
call fcn.00481ac0
mov dword [esi + 0x2c0], eax
mov eax, dword [0x536590]
push eax
mov ecx, esi
call fcn.00481ac0
mov dword [esi + 0x2e0], eax
mov ecx, dword [0x536550]
push ecx
mov ecx, esi
call fcn.00481ac0
mov dword [esi + 0x2b8], eax
mov edx, dword [0x536598]
push edx
mov ecx, esi
call fcn.00481ac0
mov dword [esi + 0x2e8], eax
mov eax, dword [0x536594]
push eax
mov ecx, esi
call fcn.00481ac0
mov dword [esi + 0x2e4], eax
mov eax, dword [esi + 0x2ec]
mov edx, edi
mov dword [esi + 0x2f4], edi
lea eax, [eax + eax*2]
lea ecx, [eax + eax*4]
shl ecx, 2
sub edx, ecx
mov dword [esi + 0x300], edx
mov eax, dword [0x53655c]
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
shl eax, 2
sub edi, eax
add edi, 0x12c
mov dword [esi + 0x2fc], edi
or edi, 0xffffffff
test ebx, ebx
jne 0x48709f
mov ecx, esi
call fcn.00488010
cmp dword [esi + 0x27c], edi
jne 0x48709f
push ebx
push ebx
push esi
push 0x4870d0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x27c], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 8
Function at 0x488010
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4f9648
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x400
call sub.MFC42.DLL_operatornew
mov esi, eax
lea eax, [esp + 0x28]
push 1
push eax
call fcn.0040dae0
add esp, 0xc
push 0x524458
lea ecx, [esp + 0x24]
xor ebp, ebp
push eax
push ecx
mov dword [esp + 0x3c], ebp
call sub.MFC42.DLL_operator_4
lea edx, [ebx + 0x234]
mov byte [esp + 0x30], 1
push edx
push eax
lea eax, [esp + 0x24]
push eax
call sub.MFC42.DLL_operator_2
push str.UserData.ini
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x3c], 2
call sub.MFC42.DLL_operator_4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::CString
mov ecx, 0x100
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x18]
push edx
push 0x400
push esi
push 0x5307a8
push str.McSale
push str.CONFIG
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
push ebp
push 0x5264c4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 7
call sub.MFC42.DLL_CString::Find
mov edi, eax
test edi, edi
jl 0x48816f
lea eax, [esp + 0x10]
add ebp, esi
push eax
push 0x5231b8
push ebp
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCRT.dll_sscanf]
mov eax, dword [esp + 0x1c]
xor edx, edx
mov ecx, 0x2710
add esp, 0xc
div ecx
mov ecx, ebx
lea ebp, [edi + 1]
push edx
call fcn.004671e0
mov ecx, eax
test ecx, ecx
je 0x48815a
mov eax, 0xd1b71759
mul dword [esp + 0x10]
mov eax, dword [ecx + 0x44]
shr edx, 0xd
je 0x488155
or al, 1
jmp 0x488157
or al, 2
mov dword [ecx + 0x44], eax
push ebp
push 0x5264c4
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Find
mov edi, eax
test edi, edi
jge 0x488104
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x48db10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4fa323
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x10], ebp
xor ebx, ebx
mov dword [esp + 0x20], ebx
lea esi, [ebp + 0x90]
mov dword [esp + 0x14], esi
lea ecx, [esi + 0x404]
mov byte [esp + 0x20], 0x13
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x3fc]
mov ecx, dword [esi + 0x3f8]
lea edi, [esi + 0x3f4]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x28], 0x12
call fcn.004a9290
mov eax, dword [edi + 4]
push eax
call sub.MFC42.DLL_operatordelete
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov edx, dword [esi + 0x3ec]
mov eax, dword [esi + 0x3e8]
lea edi, [esi + 0x3e4]
add esp, 4
mov ecx, edi
mov byte [esp + 0x20], 0x11
push edx
push eax
call fcn.004a9290
mov eax, dword [edi + 4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esi + 0x3cc]
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov byte [esp + 0x20], 0x10
call fcn.004a7610
lea ecx, [esi + 0x3bc]
mov byte [esp + 0x20], 0xf
call fcn.004a7610
lea ecx, [esi + 0x3a4]
mov byte [esp + 0x20], 0xe
call fcn.004a7610
lea ecx, [esi + 0x178]
mov byte [esp + 0x20], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x11c]
mov byte [esp + 0x20], 0xc
call fcn.004a7610
lea ecx, [esi + 0xfc]
mov byte [esp + 0x20], 0xb
call fcn.004a7610
lea ecx, [esi + 0xc0]
mov byte [esp + 0x20], 0xa
call fcn.004a7610
lea ecx, [esi + 0xb4]
mov byte [esp + 0x20], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x94]
mov byte [esp + 0x20], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x70]
mov byte [esp + 0x20], 7
call fcn.004a7610
lea ecx, [esi + 0x60]
mov byte [esp + 0x20], 6
call fcn.004a7610
lea ecx, [esi + 0x44]
mov byte [esp + 0x20], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xc]
mov byte [esp + 0x20], 4
call fcn.004a7610
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea esi, [ebp + 0x54]
mov byte [esp + 0x20], 3
lea ecx, [esi + 8]
mov dword [esi], 0x503d08
push ecx
call edi
mov ecx, esi
call fcn.004e9680
lea esi, [ebp + 0x34]
mov byte [esp + 0x20], 2
lea edx, [esi + 8]
mov dword [esi], 0x503d08
push edx
call edi
mov ecx, esi
call fcn.004e9680
push sub.MFC42.DLL_CString::CString
push 2
lea eax, [ebp + 0x2c]
push 4
push eax
mov byte [esp + 0x30], 1
call fcn.004e9b8a
push sub.MFC42.DLL_CString::CString
push 2
lea ecx, [ebp + 0x24]
push 4
push ecx
mov byte [esp + 0x30], bl
call fcn.004e9b8a
lea ecx, [ebp + 0x20]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret