joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433678
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
fild dword [ebp + 0xc]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fadd qword [0x13dbc86]
fstp qword [ebp - 0x10]
mov dword [ebp - 0x14], esp
push 0
push dword [ebp + 0xc]
mov eax, 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 1
fld qword [ebp - 0x10]
call fcn.00401dcc
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x4336e3
push 6
call fcn.00437971
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x433735
mov dword [ebp - 4], esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x43370f
push 6
call fcn.00437971
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e5
jne 0x433724
jmp 0x433735
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043373b
mov esp, ebp
pop ebp
ret 0x10

Function at 0x43381e
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
fild dword [ebp + 0xc]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fadd qword [0x13dbc86]
fstp qword [ebp - 0x10]
mov dword [ebp - 0x14], esp
push 0
push dword [ebp + 0xc]
push 0
mov eax, 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 1
fld qword [ebp - 0x10]
call fcn.00401dcc
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x433882
push 6
call fcn.00437971
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4338d5
mov dword [ebp - 4], esp
call dword [sym.imp.KERNEL32.dll_GetLastError]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4338ae
push 6
call fcn.00437971
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e5
jne 0x4338c3
jmp 0x4338d5
push dword [ebp + 0xc]
call fcn.004338e5
mov eax, 0
jmp 0x4338df
mov eax, 1
jmp 0x4338df
mov esp, ebp
pop ebp
ret 8
Function at 0x433dea
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x80000301
push 0
push 0x2000
push 0x80000301
push 0
push 0x1000
push 2
mov ebx, 0xc8
call fcn.0043a3e0
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x40
push dword [ebp - 4]
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x433e4f
push 6
call fcn.00437971
add esp, 4
jmp 0x433e54
mov esp, ebp
pop ebp
ret 4

Function at 0x433f32
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x433f72
push 6
call fcn.00437971
add esp, 4
jmp 0x433f77
mov esp, ebp
pop ebp
ret 0x14

Function at 0x433fcd
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x433ffd
push 6
call fcn.00437971
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x434011
mov esp, ebp
pop ebp
ret 4

Function at 0x4346a3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4346e3
push 6
call fcn.00437971
add esp, 4
jmp 0x4346e8
mov esp, ebp
pop ebp
ret 0x14

Function at 0x4346ee
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
jne 0x434716
mov dword [ebp + 0xc], 0xffffffff
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esp
push 0x4bf
push dword [ebp + 0xc]
push 0
lea eax, [ebp + 8]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x434760
push 6
call fcn.00437971
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0xffffffff
je 0x4347bb
push 0
mov ebx, 0x308
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fstp qword [ebp - 0x14]
fld qword [ebp - 0x14]
fild dword [ebp - 4]
fstp qword [ebp - 0x1c]
fsub qword [ebp - 0x1c]
fstp qword [ebp - 0x24]
fild dword [ebp + 0xc]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x24]
fsub qword [ebp - 0x2c]
fcomp qword [0x13dbcd5]
fnstsw ax
test ah, 1
jne 0x4347bb
mov dword [ebp - 8], 0x102
push 0
mov ebx, 0x350
call fcn.0043a820
add esp, 4
cmp dword [ebp - 8], 0
je 0x4347eb
cmp dword [ebp - 8], 0x102
je 0x4347eb
mov eax, 1
jmp 0x4347ed
xor eax, eax
test eax, eax
jne 0x43472b
cmp dword [ebp - 8], 0
mov eax, 0
sete al
jmp 0x434806
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43480c
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x43483c
push 6
call fcn.00437971
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x434850
mov esp, ebp
pop ebp
ret 4

Function at 0x438b40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x438b81.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x438b81.2
jmp dword [eax*4 + 0x438c0c]
mov word [esp + 0x48], di
jmp 0x438bba
mov word [esp + 0x48], 2
jmp 0x438bba
mov word [esp + 0x48], 3
jmp 0x438bba
mov word [esp + 0x48], 4
jmp 0x438bba
mov word [esp + 0x48], 7
jmp 0x438bba
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x438c04
cmp dword [esp + 0x70], edi
je 0x438bf0
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x43a1c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x43a252
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x43a244
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x43a23c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x43a205
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x43a260
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.00450855
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x43a2ca
push esi
lea edi, [eax + 0x400]
call fcn.0045087e
push edi
call fcn.00450855
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x43a29a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x43a2e6
push ecx
push esi
call fcn.0043cfe0
add esp, 8
mov ebx, eax
push esi
call fcn.0045087e
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x43a400
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x32014
call fcn.00445560
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.0043d390
mov eax, dword [esp + 0x32028]
lea ecx, [esp + 0x20]
push eax
push 0x32000
push ecx
mov dword [esp + 0x18], 0x4585d0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
jle 0x43a47c
lea ebx, [esp + eax + 0x20]
mov al, byte [esp + 0x20]
test al, al
lea esi, [esp + 0x20]
je 0x43a47c
cmp esi, ebx
jae 0x43a47c
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
push edi
push esi
call fcn.0043cfe0
add esp, 8
lea ecx, [esp + 0xc]
push eax
call fcn.0043d620
mov al, byte [esi + edi + 1]
lea esi, [esi + edi + 1]
test al, al
jne 0x43a44a
mov edi, dword [esp + 0x1c]
shr edi, 2
shl edi, 2
lea edx, [edi + 8]
push edx
call fcn.00438720
mov ebx, eax
add esp, 4
mov dword [ebx], 1
mov eax, dword [esp + 0x1c]
shr eax, 2
mov dword [ebx + 4], eax
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
neg esi
sbb esi, esi
and esi, ecx
mov ecx, edi
mov edx, ecx
lea edi, [ebx + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x4585cc
call fcn.0043d590
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x32014
ret

Function at 0x43ad80
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x43ad9e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x43ad93
pop esi
ret
Function at 0x43ae80
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x43af0b
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x43af0b
test esi, esi
je 0x43aec5
cmp esi, 0xffffffff
je 0x43aec5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp], esi
je 0x43af51
mov eax, dword [esp + 0x160]
test eax, eax
je 0x43aef4
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
je 0x43af0b
jmp 0x43af03
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x14]
test edx, eax
je 0x43af0b
mov dword [esp + 0x10], 1
test esi, esi
je 0x43af51
cmp esi, 0xffffffff
je 0x43af51
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x43af88
mov eax, dword [esp + 0x160]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x14]
push eax
push esi
je 0x43af5e
call edi
test eax, eax
je 0x43af51
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
jne 0x43af88
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x43af39
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
call edi
test eax, eax
je 0x43af51
mov ebx, dword [esp + 0x15c]
test dword [esp + 0x14], ebx
jne 0x43af88
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x43af6b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00438720
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
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
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret

Function at 0x43aff0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x43b059
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00438720
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x43b060
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret
Function at 0x43b210
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
jne 0x43b223
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push ebx
call fcn.0043d930
add esp, 4
test eax, eax
jne 0x43b235
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [esp + 0x24]
test edi, edi
jg 0x43b244
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x43b29b
mov ebx, dword [ebx + 4]
push edi
call fcn.00450855
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push esi
push eax
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43b27e
push ebp
call fcn.0045087e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebp
call fcn.0043d070
push ebp
mov esi, eax
call fcn.0045087e
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x43b2dd
mov ebx, dword [ebx + 4]
lea edx, [edi + 8]
push edx
call fcn.00438720
mov esi, eax
add esp, 4
lea ecx, [esi + 8]
mov dword [esi], 1
mov dword [esi + 4], edi
mov eax, dword [ebx]
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
test eax, eax
jne 0x43b2da
push esi
call fcn.004387b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x43b5d0
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
ret
Function at 0x43b600
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
test ebx, ebx
push edi
jne 0x43b619
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push ebx
call fcn.0043d930
add esp, 4
test eax, eax
jne 0x43b62e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43b648
mov eax, dword [esp + 0x2c]
test eax, eax
jg 0x43b648
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x43b730
mov ebp, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push esi
push esi
push ebp
call edi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x43b680
push 2
push esi
push esi
push ebp
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x43b697
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
sub esi, ebx
jmp 0x43b69b
mov esi, dword [esp + 0x2c]
push esi
call fcn.00450855
add esp, 4
mov ebx, eax
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43b6d4
push 2
push eax
push eax
push ebp
call edi
push ebx
call fcn.0045087e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
xor edi, edi
test edx, edx
mov ecx, ebx
jbe 0x43b6f0
mov al, byte [ecx]
test al, al
je 0x43b6f0
cmp al, 0x1a
je 0x43b6f0
inc edi
inc ecx
cmp edi, edx
jb 0x43b6e0
lea ecx, [edi + 1]
push ecx
call fcn.00438720
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
push 0
lea eax, [edi + edx]
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push ebx
push esi
call fcn.00445590
push ebx
mov byte [edi + esi], 0
call fcn.0045087e
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x43b7ab
mov ebx, dword [ebx + 4]
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x14]
test edi, edi
mov ebp, eax
jne 0x43b74a
or eax, 0xffffffff
jmp 0x43b74e
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
mov ecx, ebx
call dword [edx + 0x30]
mov edx, dword [esp + 0x10]
xor edi, edi
test eax, eax
jbe 0x43b77d
mov cl, byte [edx]
test cl, cl
je 0x43b77d
cmp cl, 0x1a
je 0x43b77d
inc edi
inc edx
cmp edi, eax
jb 0x43b76c
lea edx, [edi + 1]
push edx
call fcn.00438720
add esp, 4
lea ecx, [edi + ebp]
mov esi, eax
mov eax, dword [ebx]
push 0
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov edx, dword [esp + 0x10]
push edi
push edx
push esi
call fcn.00445590
add esp, 0xc
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x43b7c0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x43b7d6
mov eax, 1
pop esi
add esp, 0xc
ret
push esi
call fcn.0043d930
add esp, 4
test eax, eax
jne 0x43b7ed
mov eax, 1
pop esi
add esp, 0xc
ret
mov eax, dword [esi]
push ebx
push ebp
cmp eax, 1
push edi
mov dword [esp + 0x10], 1
jne 0x43b89d
mov esi, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
mov ebx, eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x43b905
cmp edi, ebx
jae 0x43b905
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x43b905
mov eax, dword [esp + 0x30]
test eax, eax
je 0x43b905
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x2c]
push 1
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push edi
push esi
mov ebx, eax
call ebp
test ebx, ebx
je 0x43b905
mov al, byte [esp + 0x24]
test al, al
je 0x43b8fd
cmp al, 0x1a
jne 0x43b905
pop edi
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
cmp eax, 2
jne 0x43b905
mov esi, dword [esi + 4]
mov ecx, esi
call fcn.0043d960
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov edi, eax
cmp edi, ebx
jae 0x43b905
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], 0
test eax, eax
je 0x43b905
mov eax, dword [esp + 0x30]
test eax, eax
je 0x43b905
mov edx, dword [esi]
lea eax, [esp + 0x24]
push 1
push eax
mov ecx, esi
call dword [edx + 0x20]
mov edx, dword [esi]
push 0
push edi
mov ecx, esi
mov ebp, eax
call dword [edx + 0x18]
test ebp, ebp
je 0x43b905
mov al, byte [esp + 0x24]
test al, al
je 0x43b8fd
cmp al, 0x1a
jne 0x43b905
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0xc
ret
Function at 0x43b920
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
push edi
jne 0x43b939
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push esi
call fcn.0043d930
add esp, 4
test eax, eax
jne 0x43b94e
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esi]
xor edi, edi
cmp eax, 1
jne 0x43ba8e
mov edi, dword [esi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push 0
push 0
push edi
mov dword [esp + 0x24], edi
call esi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x43b98c
push 2
push 0
push 0
push edi
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push 0x1000
xor ebp, ebp
call fcn.00445be0
add esp, 4
mov ebx, eax
lea eax, [esp + 0x20]
mov esi, ebx
push ebp
push eax
push 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43ba6e
mov edx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
jbe 0x43b9d4
mov al, byte [esi]
cmp al, 0xd
je 0x43ba16
cmp al, 0xa
je 0x43ba16
inc ecx
inc esi
cmp ecx, edx
jb 0x43b9c4
add ebp, edx
cmp edx, 0x1000
jb 0x43ba18
push 0x1000
push ebx
call fcn.004458b1
mov ebx, eax
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, 0x1000
jne 0x43ba18
lea ecx, [esp + 0x20]
push 0
lea esi, [ebx + ebp]
push ecx
push 0x1000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43ba6e
jmp 0x43b9ba
add ebp, ecx
lea edx, [ebp + 1]
push edx
call fcn.00438720
mov ecx, dword [esp + 0x14]
mov edi, eax
mov al, byte [esi]
add esp, 4
add ecx, ebp
cmp al, 0xd
je 0x43ba36
cmp al, 0xa
jne 0x43ba3f
mov al, byte [esi + 1]
inc ecx
cmp al, 0xa
jne 0x43ba3f
inc ecx
mov eax, dword [esp + 0x14]
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push ebx
push edi
call fcn.00445590
push ebx
mov byte [edi + ebp], 0
call fcn.004457c8
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call fcn.004457c8
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x43bb1c
mov esi, dword [esi + 4]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
mov dword [esp + 0x18], eax
mov eax, dword [esi]
push edx
push 0xffffffffffffffff
push 0
mov ecx, esi
call dword [eax + 0x30]
mov ebp, dword [esp + 0x20]
xor ebx, ebx
test eax, eax
jbe 0x43bad7
mov cl, byte [ebp]
cmp cl, 0xd
je 0x43bad7
cmp cl, 0xa
je 0x43bad7
inc ebx
inc ebp
cmp ebx, eax
jb 0x43bac4
lea eax, [ebx + 1]
push eax
call fcn.00438720
mov ecx, dword [esp + 0x18]
mov edi, eax
mov al, byte [ebp]
add esp, 4
add ecx, ebx
cmp al, 0xd
je 0x43baf6
cmp al, 0xa
jne 0x43baff
mov al, byte [ebp + 1]
inc ecx
cmp al, 0xa
jne 0x43baff
inc ecx
mov edx, dword [esi]
push 0
push ecx
mov ecx, esi
call dword [edx + 0x18]
mov eax, dword [esp + 0x20]
push ebx
push eax
push edi
call fcn.00445590
add esp, 0xc
mov byte [ebx + edi], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret