joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4466aa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebp
xor ebp, ebp
cmp dword [0x48ef58], ebp
je 0x446890
push ebx
mov ebx, dword [esp + 0x60]
push edi
test ebx, ebx
je 0x4466ca
mov edi, ebx
jmp 0x4466dc
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x44688e
lea eax, [esp + 0x18]
push eax
push 0x18
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x446883
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push esi
mov esi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.0042a340
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], esi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x20
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x446882
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push esi
push 0
push dword [esp + 0x78]
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul esi, dword [esp + 0x14]
test esi, esi
jle 0x446882
cmp dword [esp + 0x6c], 0
je 0x44682f
mov ebp, dword [esp + 0x10]
push 0xa
pop ebx
movzx ecx, byte [ebp + 1]
xor edx, edx
movzx eax, byte [ebp + 2]
lea eax, [eax + ecx*2]
movzx ecx, byte [ebp]
imul eax, eax, 3
add eax, ecx
div ebx
mov cl, al
cmp cl, 0x40
jae 0x4467c3
movzx eax, cl
sub eax, 0x40
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax + 0x40]
jmp 0x4467d9
cmp cl, 0xc0
jbe 0x4467d9
movzx eax, cl
sub eax, 0xc0
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax - 0x40]
movzx eax, byte [ebp + 3]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movzx eax, cl
movd xmm0, eax
divss xmm1, dword [0x4791c8]
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm0
cvttss2si ecx, xmm1
mov byte [ebp], cl
mov eax, dword [esp + 0x10]
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
mov byte [ecx + 2], al
mov ebp, dword [esp + 0x10]
add ebp, 4
mov dword [esp + 0x10], ebp
sub esi, 1
jne 0x446793
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
jmp 0x446882
mov edx, dword [esp + 0x10]
mov al, byte [edx + 3]
cmp al, 0xff
jae 0x446876
movzx ecx, al
movzx eax, byte [edx]
imul ecx, eax
shr ecx, 8
mov byte [edx], cl
mov edx, dword [esp + 0x10]
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 3]
imul ecx, eax
shr ecx, 8
mov byte [edx + 1], cl
mov edx, dword [esp + 0x10]
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
imul ecx, eax
shr ecx, 8
mov byte [edx + 2], cl
mov edx, dword [esp + 0x10]
add edx, 4
mov dword [esp + 0x10], edx
sub esi, 1
jne 0x446833
pop esi
test ebx, ebx
jne 0x44688e
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop ebx
mov eax, ebp
pop ebp
add esp, 0x50
ret 0xc
Function at 0x446c8e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
xor ebp, ebp
push esi
test ebx, ebx
je 0x446ca2
mov esi, ebx
jmp 0x446cb4
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x446da2
lea eax, [esp + 0x18]
push eax
push 0x18
pop eax
push eax
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x446d97
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push edi
mov edi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.0042a340
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], edi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x18
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x446d96
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push edi
push 0
push dword [esp + 0x78]
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul edi, dword [esp + 0x14]
test edi, edi
jle 0x446d96
mov ebp, dword [esp + 0x10]
push 3
pop ebx
movzx ecx, byte [ebp + 1]
xor edx, edx
movzx eax, byte [ebp + 2]
add eax, ecx
movzx ecx, byte [ebp]
add eax, ecx
div ebx
mov byte [ebp], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 1], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 2], al
mov ebp, dword [esp + 0x10]
add ebp, ebx
mov dword [esp + 0x10], ebp
sub edi, 1
jne 0x446d5a
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
pop edi
test ebx, ebx
jne 0x446da2
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x50
ret 8

Function at 0x449150
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x449188
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x449183
xor eax, eax
cmp dword [esp + 0xc], esi
pop edi
sete al
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call fcn.0042dac0
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x44c7d9
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x44c802
test byte [esp + 8], 2
je 0x44c7f6
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x44c804
xor eax, eax
ret 8

Function at 0x44c815
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x44c835
cmp dword [esp + 8], 0
je 0x44c835
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x44c837
xor eax, eax
ret 8

Function at 0x44c86c
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x44c9b4
xor ecx, ecx
cmp word [eax], cx
je 0x44c9b4
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00467e65
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.0041f6a2
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x44c8c5
cmp eax, 3
jne 0x44c8ff
cmp word [esp + 0xa], 0x3a
jne 0x44c8ff
cmp eax, 2
jne 0x44c8e3
lea eax, [esp + 8]
push 0x473398
push eax
call fcn.00467e34
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x44c9b4
push 0xfffffffffffffffe
pop edi
jmp 0x44c9b4
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x44c914
cmp ax, bx
jne 0x44c91e
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x44c907
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x44c95d
test byte [esp + 0x21c], 0x10
je 0x44c944
push 0xfffffffffffffffe
pop edi
jmp 0x44c954
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x44c9b2
cmp word [esp + 0x10], bp
jne 0x44c96b
cmp word [esp + 0x12], bp
je 0x44c98a
cmp word [esp + 0x10], bx
jne 0x44c979
cmp word [esp + 0x12], bx
je 0x44c98a
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x44c9b2
cmp word [esp + 0x12], ax
jne 0x44c9b2
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x44c99f
test al, 0x10
je 0x44c9b2
jmp 0x44c9af
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x44c9b2
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4
Function at 0x44c9c3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x44ca3b
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.00467e65
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.0041f6a2
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x44ca1c
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x44ca19
cmp ecx, 0x5c
je 0x44ca19
cmp ecx, 0x2f
jne 0x44ca26
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x44ca06
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x44ca3d
xor eax, eax
leave
ret 4
Function at 0x44ced0
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebx
mov ebx, eax
mov eax, dword [0x48efbc]
push esi
push edi
test eax, eax
jne 0x44cef6
push fcn.0044cfff
push 0x10
push 0x258
call fcn.0044f3f2
mov dword [0x48efbc], eax
mov edi, dword [esp + 0x10]
push edi
push eax
call fcn.0044f375
mov esi, eax
test esi, esi
je 0x44cff7
cmp dword [esp + 0x14], ebx
mov eax, 0x476268
push ebp
cmovne eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x44cf2e
xor ecx, ecx
cmp word [ebp], cx
jne 0x44cf37
mov ebp, 0x479340
mov dword [esp + 0x1c], ebp
push eax
call fcn.0041f6a2
push ebp
mov dword [esp + 0x20], eax
call fcn.0041f6a2
add eax, dword [esp + 0x20]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x48c828]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x44cfe4
push dword [esp + 0x14]
push ebp
call fcn.00467e12
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x44cf97
mov eax, dword [esp + 0x14]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x44cf97
push 0x473398
push ebp
call fcn.00467e34
pop ecx
pop ecx
push dword [esp + 0x1c]
push ebp
call fcn.00467e34
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x44cfbc
xor ecx, ecx
mov dword [esi + 4], ecx
jmp 0x44cfd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
jne 0x44cfd2
mov dword [esi + 4], 1
mov ebx, esi
push ebp
push ecx
push dword [0x48c828]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x44cff6
cmp edi, 0xffffffff
cmove edi, esi
push edi
push dword [0x48efbc]
call fcn.0044f314
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
ret 0xc

Function at 0x44d1a0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x44d1b9
push dword [0x48f410]
call fcn.0044f479
pop edi
ret 4
push esi
push edi
push dword [0x48f410]
call fcn.0044f34e
mov esi, eax
test esi, esi
je 0x44d223
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44d20f
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x44d1fe
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x48c828]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x48f410]
call fcn.0044f314
pop esi
pop edi
ret 4

Function at 0x44d230
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x44d26c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x44d610
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x48f410]
call fcn.0044f34e
mov esi, eax
test esi, esi
je 0x44d68f
cmp dword [esi + 4], 0
je 0x44d660
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.0044dda0
test eax, eax
je 0x44d654
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44d69a
cmp dword [esp + 8], 0
je 0x44d69a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4

Function at 0x44d800
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push ebx
push dword [0x48f410]
mov dword [esp + 0x14], 0
call fcn.0044f34e
mov ebp, eax
test ebp, ebp
je 0x44d96a
push esi
push edi
push ebx
call fcn.0044d9d0
cmp dword [ebp + 4], 0
mov esi, eax
mov edi, edx
je 0x44d84e
push 4
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.0044dda0
mov ecx, eax
mov dword [esp + 0x14], ecx
jmp 0x44d869
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
cmp ecx, 2
jl 0x44d899
lea edx, [esp + 0x10]
mov eax, 0xfeff
cmp word [edx], ax
jne 0x44d899
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.0044e3b0
pop edi
pop esi
pop ebp
mov eax, 0x19
pop ebx
add esp, 8
ret 4
cmp ecx, 3
jl 0x44d8cc
lea edx, [esp + 0x10]
cmp word [edx], 0xbbef
jne 0x44d8cc
cmp byte [edx + 2], 0xbf
jne 0x44d8cc
add esi, 3
adc edi, 0
push edi
push esi
push ebx
call fcn.0044e3b0
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 8
ret 4
cmp ecx, 2
jl 0x44d8fc
lea edx, [esp + 0x10]
mov eax, 0xfffe
cmp word [edx], ax
jne 0x44d8fc
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.0044e3b0
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 8
ret 4
cmp ecx, 4
jl 0x44d953
lea eax, [esp + 0x10]
cmp dword [eax], 0xfeff
jne 0x44d92a
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.0044e3b0
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 8
ret 4
lea eax, [esp + 0x10]
cmp dword [eax], 0xfffe0000
jne 0x44d953
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.0044e3b0
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 8
ret 4
push edi
push esi
push ebx
call fcn.0044e3b0
pop edi
pop esi
pop ebp
mov eax, 0x18
pop ebx
add esp, 8
ret 4
pop ebp
mov eax, 0x18
pop ebx
add esp, 8
ret 4
Function at 0x44daa0
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x48f410]
call fcn.0044f34e
test eax, eax
je case.0x44dace.3
mov ecx, dword [esp + 8]
add ecx, 0xfffffffe
cmp ecx, 0x17
ja case.0x44dace.3
movzx ecx, byte [ecx + 0x44dbd8]
jmp dword [ecx*4 + 0x44dbc0]
cmp dword [eax + 4], 0
je 0x44daeb
push 2
push 0x479368
push eax
call fcn.0044e410
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x479368
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x44db1a
push 3
push 0x478a8c
push eax
call fcn.0044e410
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 3
push 0x478a8c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x44db49
push 2
push 0x47936c
push eax
call fcn.0044e410
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x47936c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x44db78
push 4
push 0x479370
push eax
call fcn.0044e410
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x479370
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x44dba7
push 4
push 0x479378
push eax
call fcn.0044e410
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x479378
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x44dbf0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x44dc55
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x44dc4d
push dword [esp + 0x10]
push dword [0x48f410]
call fcn.0044f34e
test eax, eax
je 0x44dc43
cmp dword [eax + 4], 0
je 0x44dc32
push edi
push esi
push eax
call fcn.0044e410
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x44dc60
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x44dd5e
cmp word [edx], 0
je 0x44dd5e
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x44dc8e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x44dce4
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44dca0
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x44dcc6
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.0044e410
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
lea eax, [esp + 0x14]
push eax
push edx
xor edx, edx
mov eax, 0xfde9
cmp ecx, 2
cmovne eax, edx
push eax
call fcn.0044e530
mov edi, eax
test edi, edi
je 0x44dcda
cmp dword [esi + 4], 0
je 0x44dd31
push dword [esp + 0x14]
push edi
push esi
call fcn.0044e410
push edi
push 0
push dword [0x48c828]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x48c828]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x44dda0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
cmp dword [ebx + 0x14], 0
jne 0x44ddc3
push ebx
call fcn.0044d230
mov dword [ebx + 0x14], 1
mov dword [ebx + 0xc], 0
mov esi, dword [ebx + 0xc]
mov eax, dword [ebx + 0x10]
mov ebp, dword [esp + 0x20]
sub eax, esi
add eax, dword [ebx + 4]
mov dword [esp + 0x10], esi
cmp esi, ebp
jl 0x44de47
mov ecx, ebp
sub ecx, 1
je 0x44de32
sub ecx, 1
je 0x44de1b
sub ecx, 2
je 0x44de06
push ebp
push eax
push dword [esp + 0x24]
call fcn.0042dac0
add esp, 0xc
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], ecx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov word [eax], cx
mov eax, ebp
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x1c]
mov dl, byte [eax]
mov eax, ebp
pop edi
pop esi
mov byte [ecx], dl
sub dword [ebx + 0xc], ebp
pop ebp
pop ebx
pop ecx
ret 0xc
push esi
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.0042dac0
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edx, dword [ebx + 8]
add eax, esi
mov ecx, dword [ebx]
sub ebp, esi
mov dword [esp + 0x1c], eax
push 0
cmp ebp, edx
jl 0x44de90
lea edx, [esp + 0x1c]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x18]
pop edi
add eax, esi
mov dword [ebx + 0xc], 0
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
lea eax, [esp + 0x1c]
push eax
push edx
push dword [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x18]
cmp ebp, esi
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
cmovle esi, ebp
push esi
push dword [ebx + 4]
push eax
call fcn.0042dac0
sub dword [ebx + 0xc], esi
add esp, 0xc
mov eax, dword [esp + 0x10]
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x44dee0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0x48c828]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x44e070
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
nop
cmp ebp, 0xffffffff
je 0x44df2e
test ebp, ebp
je 0x44dfd6
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x44df4a
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0044dda0
mov dword [esp + 0x10], eax
jmp 0x44df64
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x24]
cmp eax, 1
jne 0x44dfd9
test cl, cl
je 0x44df78
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, esi
mov edx, dword [esp + 0x1c]
dec eax
sub edi, edx
cmp edi, eax
jle 0x44dfb3
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x48c828]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x24]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [edi + edx]
test cl, cl
je 0x44dfd6
cmp dword [esp + 0x28], 0
jne 0x44df20
cmp cl, 0xd
je 0x44dfe2
cmp cl, 0xa
jne 0x44df20
dec esi
jmp 0x44e053
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x44e053
jmp 0x44dfe5
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x44dfed
dec esi
jmp 0x44e053
cmp cl, 0xd
jne 0x44e053
dec esi
cmp dword [edi], 0
je 0x44e00b
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0044dda0
mov dword [esp + 0x10], eax
jmp 0x44e021
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x24], 0xa
je 0x44e053
cmp dword [edi], 0
je 0x44e032
inc dword [ebx + 0xc]
jmp 0x44e053
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x30]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10