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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46df88
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x434759
inc eax
mov dword [esi + 0x10], eax
jmp 0x43486c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43476d
mov eax, 0xffffffc7
jmp 0x43486e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43477e
cmp dword [esi + 8], eax
jne 0x43476d
cmp dword [esi + 8], eax
jne 0x434797
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x434797
mov eax, 0xffffffc7
jmp 0x43486e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4347ab
push eax
mov ecx, ebx
call fcn.00433f50
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00402bb0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4347dc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00402bd0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004336c0
test eax, eax
mov dword [esp + 0x38], eax
je 0x43480f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x53b038
call fcn.00402db0
mov eax, dword [esp + 0x38]
jmp 0x43486e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00434580
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x434853
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004345a0
mov esi, eax
test esi, esi
jne 0x434883
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00434580
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x434825
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x53b038
call fcn.00402db0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x53b038
call fcn.00402db0
mov eax, esi
jmp 0x43486e

Function at 0x437990
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4379f0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4379f0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4379f0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4379f0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x437a30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43d9b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e5b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00467170
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043d350
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046709e
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046395f
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046395f
push 1
push 0
push 0
mov ecx, esi
call fcn.00463907
push 1
push 0
push 1
mov ecx, esi
call fcn.00463907
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004671e2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43db30
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e5d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00467170
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043d350
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046709e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43dbf4
cmp dword [esp + 0x40], 1
jne 0x43dbf2
cmp ecx, eax
jge 0x43dbf4
mov eax, ecx
cmp eax, 0xc8
jge 0x43dc00
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043d9b0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004671e2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43e370
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46e643
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00461d80
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00467418
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00468934
test eax, eax
je 0x43e48c
mov ecx, dword [esp + 0x3c]
call fcn.00467445
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43e450
push edi
mov ecx, esi
call fcn.00464aa9
mov ecx, esi
call fcn.0043e5f0
cmp dword [esp + 0x38], 1
jne 0x43e485
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00464be4
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x440eb0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440ee3
push esi
call fcn.00443fc0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x440edc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x440f69
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440f52
mov eax, dword [esi + 8]
test eax, eax
je 0x440f07
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x440f4e
cmp eax, 2
je 0x440f52
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x440efa
cmp eax, 3
je 0x440f2d
cmp eax, 1
jne 0x440efa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x440efa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x440efa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440f90
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440f78
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440f90
add esp, 4
pop esi
ret

Function at 0x44d780
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5562e4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x44d793
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x44d7d4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x55638c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x44d806
mov bl, byte [esp + ecx + 0x4c]
jmp 0x44d80a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x44d7fb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x44d828
mov bl, byte [esp + ecx + 0x4c]
jmp 0x44d82c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x44d81d
xor ecx, ecx
mov eax, 0x5562f4
xor ebx, ebx
mov bl, byte [ecx + 0x55639c]
cmp byte [esp + ebx + 0x14], 0
je 0x44d857
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5563b4]
cmp byte [esp + ebx + 0x14], 0
je 0x44d86e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x44d83e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x44d7c7
lea edx, [esp + 0x84]
push edx
call fcn.0044d8b0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x462b75
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x462bad
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00460c2c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00460c04
jmp 0x462bb9
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x464263
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4642a5
call fcn.00469d1a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4642a5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46429c
xor eax, eax
jmp 0x4642ad
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004642b3
pop edi
pop esi
pop ebx
ret 4

Function at 0x46a24a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46a278
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46a296
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046a1b0
jmp 0x46a296
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46a296
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046a1b0
test edi, edi
mov eax, edi
jne 0x46a280
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4d19b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4f64c8
cmp edx, dword [eax]
je 0x4d19d2
add eax, 8
inc ecx
cmp eax, 0x4f6558
jl 0x4d19c3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4f64c8]
jne 0x4d1b00
mov eax, dword [0x4fb688]
cmp eax, 1
je 0x4d1ada
test eax, eax
jne 0x4d1a03
cmp dword [0x4f6204], 1
je 0x4d1ada
cmp edx, 0xfc
je 0x4d1b00
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4d1a3a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004cf980
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004cfb30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4d1a7d
lea eax, [ebp - 0x1a4]
push eax
call fcn.004cfb30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4fa2c4
push edi
call fcn.004cfbb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004cf980
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004cf990
lea eax, [ebp - 0xa0]
push 0x4fa2a4
push eax
call fcn.004cf990
push dword [esi + 0x4f64cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004cf990
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004d3f78
add esp, 0x2c
pop edi
jmp 0x4d1b00
lea eax, [ebp + 8]
lea esi, [esi + 0x4f64cc]
push 0
push eax
push dword [esi]
call fcn.004cfb30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x51a7a7
Capabilities:
Encode data using xor

Disassembly:
xchg dword [esp + 0x2c], eax
lea eax, [edx + 0x4a2f8cc4]
Function at 0x401020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402938
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4010af
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4010af
push 0
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.004023f6
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
mov dword [esp + 0x44], 0
call fcn.004010d0
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CMemFile::CMemFile
mov eax, esi
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8

Function at 0x4016f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x100
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xe0]
lea ecx, [esi + 0xe0]
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 8]
push str.citylist.cfg
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 8]
push 0x8000
push eax
call dword [sym.imp.MSVCRT.dll__open]
mov edi, eax
add esp, 8
test edi, edi
jle 0x4017e6
push edi
call dword [sym.imp.MSVCRT.dll__filelength]
mov ecx, eax
mov eax, 0xcccccccd
mul ecx
shr edx, 5
add esp, 4
mov word [esi + 8], dx
test dx, dx
ja 0x40177a
push edi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
pop edi
pop esi
add esp, 0x100
ret
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40178a
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
mov ax, word [esi + 8]
lea edx, [eax + eax*4]
shl edx, 3
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esi + 0x10], eax
test eax, eax
jne 0x4017b9
push edi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
pop edi
pop esi
add esp, 0x100
ret
push 0
push 0
push edi
call dword [sym.imp.MSVCRT.dll__lseek]
xor eax, eax
mov ecx, dword [esi + 0x10]
mov ax, word [esi + 8]
lea eax, [eax + eax*4]
shl eax, 3
push eax
push ecx
push edi
call dword [sym.imp.MSVCRT.dll__read]
push edi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 0x1c
pop edi
pop esi
add esp, 0x100
ret
Function at 0x4017f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
lea ebp, [ebx + 0xe0]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp]
mov ecx, ebp
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov eax, dword [ecx - 8]
mov ecx, ebp
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x8000
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.deplist.cfg
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll__open]
mov esi, eax
add esp, 8
test esi, esi
jle 0x401977
push esi
call dword [sym.imp.MSVCRT.dll__filelength]
sub eax, 8
add esp, 4
shr eax, 6
test ax, ax
mov word [ebx + 6], ax
ja 0x4018f2
push esi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x401902
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
xor ecx, ecx
mov cx, word [ebx + 6]
shl ecx, 6
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x401930
push esi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
push 0
push 0
push esi
call dword [sym.imp.MSVCRT.dll__lseek]
mov edi, dword [sym.imp.MSVCRT.dll__read]
lea edx, [esp + 0x1c]
push 8
push edx
push esi
call edi
mov ax, word [esp + 0x28]
mov cx, word [esp + 0x2a]
xor edx, edx
mov word [ebx], ax
mov dx, word [ebx + 6]
mov eax, dword [ebx + 0xc]
shl edx, 6
push edx
push eax
push esi
mov word [ebx + 2], cx
call edi
push esi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x401990
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0xe0]
lea ecx, [ebx + 0xe0]
push edi
mov eax, dword [eax - 8]
push eax
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x8000
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.datasrvlist.cfg
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll__open]
mov esi, eax
add esp, 8
test esi, esi
jle 0x401ad9
push esi
call dword [sym.imp.MSVCRT.dll__filelength]
mov ecx, eax
mov eax, 0xcccccccd
sub ecx, 8
add esp, 4
mul ecx
shr edx, 5
test dx, dx
mov word [ebx + 4], dx
ja 0x401a56
push esi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x401a66
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
mov ax, word [ebx + 4]
lea edx, [eax + eax*4]
shl edx, 3
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebx + 0x14], eax
test eax, eax
jne 0x401a97
push esi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
push 0
push 0
push esi
call dword [sym.imp.MSVCRT.dll__lseek]
mov edi, dword [sym.imp.MSVCRT.dll__read]
lea eax, [esp + 0x1c]
push 8
push eax
push esi
call edi
xor eax, eax
mov cx, word [esp + 0x28]
mov ax, word [ebx + 4]
mov word [ebx + 0xa], cx
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x14]
shl edx, 3
push edx
push eax
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll__close]
add esp, 0x28
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret