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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46a0d8
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 0x4340e9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4341fc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4340fd
mov eax, 0xffffffc7
jmp 0x4341fe
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43410e
cmp dword [esi + 8], eax
jne 0x4340fd
cmp dword [esi + 8], eax
jne 0x434127
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x434127
mov eax, 0xffffffc7
jmp 0x4341fe
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43413b
push eax
mov ecx, ebx
call fcn.004338e0
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.00405e30
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43416c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00405e50
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00433050
test eax, eax
mov dword [esp + 0x38], eax
je 0x43419f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x485970
call fcn.00406030
mov eax, dword [esp + 0x38]
jmp 0x4341fe
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00433f10
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4341e3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00433f30
mov esi, eax
test esi, esi
jne 0x434213
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00433f10
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4341b5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x485970
call fcn.00406030
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], 0x485970
call fcn.00406030
mov eax, esi
jmp 0x4341fe

Function at 0x437340
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4373a0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4373a0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4373a0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4373a0
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 0x4373e0
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 0x43d510
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46a708
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.00463752
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043ceb0
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.00463680
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.0045ff44
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.0045ff44
push 1
push 0
push 0
mov ecx, esi
call fcn.0045feec
push 1
push 0
push 1
mov ecx, esi
call fcn.0045feec
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004637c4
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43d690
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46a728
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.00463752
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043ceb0
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.00463680
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 0x43d754
cmp dword [esp + 0x40], 1
jne 0x43d752
cmp ecx, eax
jge 0x43d754
mov eax, ecx
cmp eax, 0xc8
jge 0x43d760
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043d510
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.004637c4
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43ded0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46a793
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.0045e362
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.004639fa
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00464f16
test eax, eax
je 0x43dfec
mov ecx, dword [esp + 0x3c]
call fcn.00463a27
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 0x43dfb0
push edi
mov ecx, esi
call fcn.0046108f
mov ecx, esi
call fcn.0043e150
cmp dword [esp + 0x38], 1
jne 0x43dfe5
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.004611ca
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 0x440a00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440a33
push esi
call fcn.00443af0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x440a2c
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 0x440ab9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440aa2
mov eax, dword [esi + 8]
test eax, eax
je 0x440a57
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 0x440a9e
cmp eax, 2
je 0x440aa2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x440a4a
cmp eax, 3
je 0x440a7d
cmp eax, 1
jne 0x440a4a
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 0x440a4a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x440a4a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440ae0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440ac8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440ae0
add esp, 4
pop esi
ret

Function at 0x45f157
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45f18f
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.0045d20e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045d1e6
jmp 0x45f19b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46084c
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 0x46088e
call fcn.004662fc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46088e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x460885
xor eax, eax
jmp 0x460896
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046089c
pop edi
pop esi
pop ebx
ret 4

Function at 0x46682c
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 0x46685a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x466878
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00466792
jmp 0x466878
mov eax, dword [esi + 0x14]
test eax, eax
je 0x466878
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00466792
test edi, edi
mov eax, edi
jne 0x466862
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402520
Capabilities:
Create thread

Disassembly:
sub esp, 8
push ebp
mov dword [esp + 4], ecx
mov ecx, dword [0x416870]
push esi
push edi
call fcn.00405180
mov esi, eax
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
cmp ebp, 0xfffffffd
jbe 0x402550
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov edi, dword [0x416864]
test edi, edi
je 0x402582
mov al, byte [edi - 1]
test al, al
je 0x402582
cmp al, 0xff
je 0x402582
test ebp, ebp
jne 0x4025b0
dec al
mov byte [edi - 1], al
mov dword [0x416864], ebp
mov dword [0x416868], ebp
mov dword [0x41686c], ebp
jmp 0x4025e2
test ebp, ebp
jne 0x402595
push 1
mov ecx, 0x416860
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x4025e2
mov eax, dword [0x41686c]
cmp eax, 0x1f
ja 0x4025a3
cmp eax, ebp
jae 0x4025c2
push 1
mov ecx, 0x416860
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebp
mov ecx, 0x416860
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [0x416864]
mov ecx, ebp
mov eax, ecx
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 [0x416864]
mov dword [0x416868], ebp
mov byte [ecx + ebp], 0
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0
push eax
push 0x402650
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 8
ret
Function at 0x4065b5
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov eax, dword [esi + 0x44]
xor ecx, ecx
cmp eax, ebp
je 0x4065e7
mov edx, dword [eax + 0x54]
lea ecx, [ecx + edx + 0x58]
mov edx, dword [eax + 4]
cmp edx, ebp
je 0x4065df
mov edx, dword [esi + 0xc]
add edx, ecx
mov dword [eax + 8], edx
mov eax, dword [eax + 4]
jmp 0x4065c0
mov dword [eax + 8], ebp
mov eax, dword [eax + 4]
jmp 0x4065c0
mov eax, dword [esi + 0xc]
push ebp
push ebp
mov dword [esi + 0x48], eax
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esi + 0x44]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp ebx, ebp
je 0x406722
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push ebp
push ecx
push 4
push ebx
push edx
mov dword [esp + 0x24], ebp
call edi
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0xc]
add edx, eax
lea ecx, [esp + 0x10]
push ebp
mov dword [esi + 0xc], edx
mov edx, dword [esi + 4]
push ecx
push 4
push 0x410e38
push edx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, dword [esi + 4]
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x10]
push ebp
push ecx
lea edx, [ebx + 8]
push 4
push edx
push eax
call edi
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0xc]
add edx, ecx
mov ecx, dword [esi + 4]
mov dword [esi + 0xc], edx
lea edx, [esp + 0x10]
push ebp
push edx
lea eax, [ebx + 0xc]
push 4
push eax
push ecx
call edi
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0xc]
add ecx, edx
mov edx, dword [esi + 4]
lea eax, [esp + 0x10]
mov dword [esi + 0xc], ecx
push ebp
push eax
lea ecx, [ebx + 0x10]
push 4
push ecx
push edx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xc]
add ecx, eax
lea ebp, [ebx + 0x14]
mov dword [esi + 0xc], ecx
mov dword [esp + 0x14], 0x10
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push 0
push ecx
push 4
push ebp
push edx
call edi
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0xc]
add edx, eax
mov eax, dword [esp + 0x14]
add ebp, 4
dec eax
mov dword [esi + 0xc], edx
mov dword [esp + 0x14], eax
jne 0x4066ae
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push 0
lea ebp, [ebx + 0x54]
push ecx
push 4
push ebp
push edx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xc]
add ecx, eax
push 0
mov dword [esi + 0xc], ecx
mov edx, dword [ebp]
mov eax, dword [ebx + 0x58]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call edi
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0xc]
add eax, edx
xor ebp, ebp
mov dword [esi + 0xc], eax
mov ebx, dword [ebx + 4]
jmp 0x406603
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x406733
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov eax, dword [esi + 0x54]
xor ecx, ecx
cmp eax, ebp
je 0x406765
mov edx, dword [eax + 0x14]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [eax + 4]
cmp edx, ebp
je 0x40675d
mov edx, dword [esi + 0xc]
add edx, ecx
mov dword [eax + 8], edx
mov eax, dword [eax + 4]
jmp 0x40673e
mov dword [eax + 8], ebp
mov eax, dword [eax + 4]
jmp 0x40673e
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 0x54]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esi + 0x58], eax
cmp edi, ebp
je 0x40685e
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push ebp
push ecx
push 4
push edi
push edx
mov dword [esp + 0x24], ebp
call ebx
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0xc]
add edx, eax
lea ecx, [esp + 0x10]
push ebp
mov dword [esi + 0xc], edx
mov edx, dword [esi + 4]
push ecx
push 4
push 0x410e38
push edx
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, dword [esi + 4]
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x10]
push ebp
push ecx
lea edx, [edi + 8]
push 4
push edx
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0xc]
add edx, ecx
mov ecx, dword [esi + 4]
mov dword [esi + 0xc], edx
lea edx, [esp + 0x10]
push ebp
push edx
lea eax, [edi + 0xc]
push 4
push eax
push ecx
call ebx
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0xc]
add ecx, edx
mov edx, dword [esi + 4]
lea eax, [esp + 0x10]
mov dword [esi + 0xc], ecx
push ebp
push eax
lea ecx, [edi + 0x10]
push 4
push ecx
push edx
call ebx
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0xc]
add edx, eax
lea ecx, [esp + 0x10]
push 0
mov dword [esi + 0xc], edx
mov edx, dword [esi + 4]
lea ebp, [edi + 0x14]
push ecx
push 4
push ebp
push edx
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xc]
add ecx, eax
push 0
mov dword [esi + 0xc], ecx
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
mov eax, dword [edi + 0x18]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
call ebx
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0xc]
add eax, edx
xor ebp, ebp
mov dword [esi + 0xc], eax
mov edi, dword [edi + 4]
jmp 0x406774
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x406873
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov eax, dword [esi + 0x64]
xor ecx, ecx
cmp eax, ebp
je 0x4068a1
mov edx, dword [eax + 4]
add ecx, 0x14
cmp edx, ebp
je 0x406899
mov edx, dword [esi + 0xc]
add edx, ecx
mov dword [eax + 8], edx
mov eax, dword [eax + 4]
jmp 0x40687e
mov dword [eax + 8], ebp
mov eax, dword [eax + 4]
jmp 0x40687e
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 0x64]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esi + 0x68], eax
cmp edi, ebp
je 0x406958
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push ebp
push ecx
push 4
push edi
push edx
mov dword [esp + 0x24], ebp
call ebx
mov eax, dword [esp + 0x10]
mov edx, dword [esi + 0xc]
add edx, eax
lea ecx, [esp + 0x10]
push ebp
mov dword [esi + 0xc], edx
mov edx, dword [esi + 4]
push ecx
push 4
push 0x410e38
push edx
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov eax, dword [esi + 4]
mov dword [esi + 0xc], ecx
lea ecx, [esp + 0x10]
push ebp
push ecx
lea edx, [edi + 8]
push 4
push edx
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0xc]
add edx, ecx
mov ecx, dword [esi + 4]
mov dword [esi + 0xc], edx
lea edx, [esp + 0x10]
push ebp
push edx
lea eax, [edi + 0xc]
push 4
push eax
push ecx
call ebx
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0xc]
add eax, edx
mov edx, dword [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esp + 0x10]
push ebp
push eax
lea ecx, [edi + 0x10]
push 4
push ecx
push edx
call ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xc]
add ecx, eax
mov dword [esi + 0xc], ecx
mov edi, dword [edi + 4]
jmp 0x4068b0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x407e90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x40]
push edi
mov edi, dword [ebx + 0x48]
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x18], 0
jle 0x408003
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
test edi, edi
je 0x408003
mov eax, dword [ebx + 4]
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x5c
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
je 0x407fee
lea eax, [esi + 0x54]
xor ecx, ecx
mov edi, esi
lea edx, [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ecx, 0x17
xor eax, eax
rep stosd dword es:[edi], eax
push eax
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
push edx
push 4
push esi
push eax
call ebp
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esi + 4]
push 4
push edx
push eax
call ebp
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0
lea eax, [esi + 8]
push ecx
push 4
push eax
push edx
mov dword [esp + 0x30], eax
call ebp
mov edx, dword [ebx + 4]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esi + 0xc]
push 4
push ecx
push edx
call ebp
mov edx, dword [ebx + 4]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esi + 0x10]
push 4
push ecx
push edx
call ebp
lea edi, [esi + 0x14]
mov dword [esp + 0x14], 0x10
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x10]
push 0
push eax
push 4
push edi
push ecx
call ebp
mov eax, dword [esp + 0x14]
add edi, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x407f67
mov eax, dword [ebx + 4]
lea edx, [esp + 0x10]
push 0
push edx
lea edi, [esi + 0x54]
push 4
push edi
push eax
call ebp
mov ecx, dword [edi]
inc ecx
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [edi]
add esp, 4
mov edx, eax
inc ecx
mov dword [esi + 0x58], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x54]
mov edx, dword [esi + 0x58]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push eax
call ebp
mov eax, dword [ebx + 0x44]
test eax, eax
jne 0x407fdf
mov dword [ebx + 0x44], esi
jmp 0x407fe5
mov ecx, dword [ebx + 0x24]
mov dword [ecx + 4], esi
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x24], esi
mov edi, dword [edx]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x407eb9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x408010
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x50]
push edi
mov edi, dword [ebx + 0x58]
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x14], 0
jle 0x40815a
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
test edi, edi
je 0x40815a
mov eax, dword [ebx + 4]
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x1c
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
je 0x408145
lea eax, [esi + 0x14]
xor ecx, ecx
mov edi, esi
lea edx, [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov ecx, 7
xor eax, eax
rep stosd dword es:[edi], eax
push eax
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
push edx
push 4
push esi
push eax
call ebp
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esi + 4]
push 4
push edx
push eax
call ebp
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esi + 8]
push 4
push edx
push eax
call ebp
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x10]
push 0
lea eax, [esi + 0xc]
push ecx
push 4
push eax
push edx
mov dword [esp + 0x2c], eax
call ebp
mov edx, dword [ebx + 4]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esi + 0x10]
push 4
push ecx
push edx
call ebp
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x10]
push 0
push eax
lea edi, [esi + 0x14]
push 4
push edi
push ecx
call ebp
mov edx, dword [edi]
inc edx
push edx
call sub.MFC42.DLL_operatornew
mov ecx, dword [edi]
add esp, 4
mov edx, eax
inc ecx
mov dword [esi + 0x18], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push eax
call ebp
mov eax, dword [ebx + 0x54]
test eax, eax
jne 0x408136
mov dword [ebx + 0x54], esi
jmp 0x40813c
mov ecx, dword [ebx + 0x28]
mov dword [ecx + 4], esi
mov edx, dword [esp + 0x18]
mov dword [ebx + 0x28], esi
mov edi, dword [edx]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x408039
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret