joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423e55
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x423eaa
push dword [esp + 0x10]
push 0x423dd4
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x482d9c]
test esi, esi
je 0x423f03
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x423ea2
cmp byte [esi + 0x10], 0
je 0x423ea2
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x423e7e
jmp 0x423f03
mov esi, dword [0x482d9c]
test esi, esi
je 0x423f03
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x423efc
cmp byte [esi + 0x11], 0
je 0x423ed8
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x423eef
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x482d9c
call fcn.0043b443
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x423eb7
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x424007
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x4840b8]
call fcn.0043ace3
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x424107
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x42405d
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x424055
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x42409d
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x4240df
push 0x22
pop edx
cmp cx, dx
je 0x42408f
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x42407f
xor ecx, ecx
cmp word [eax], cx
je 0x4240df
mov ecx, eax
add eax, 2
jmp 0x4240e1
test dx, dx
je 0x4240e7
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x42408f
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x4240d5
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x4240df
cmp cx, dx
je 0x4240d2
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4240c2
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x4240a7
jmp 0x42408f
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x4240e9
xor edx, edx
cmp dword [ebp], ebx
jne 0x4240f2
test edi, edi
jne 0x42410f
test edx, edx
je 0x4240f7
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x42404b
test edi, edi
jne 0x424120
mov eax, ebx
jmp 0x424124
test esi, esi
je 0x424120
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x424124
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x424818
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, eax
cmp dword [esp + 0x24], 0x18
je 0x4248c7
cmp dword [esp + 0x24], 2
je 0x4248c7
push 0x2000
push edi
push dword [0x48263c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x42489a
cmp dword [esp + 0x18], 2
jne 0x4248b2
test ebx, ebx
jne 0x424883
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x48263c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x4248b2
cmp ax, 0xd
je 0x42489a
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x42485a
push dword [esp + 0x28]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.0045f210
jmp 0x42494d
push eax
push 0
push dword [0x48263c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x424919
cmp dword [esp + 0x18], 1
jne 0x424931
test ebx, ebx
jne 0x424908
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x48263c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x424931
cmp al, 0xd
je 0x424919
mov byte [esi + edi], al
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x4248e0
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x28]
mov byte [esi + edi], 0
push esi
jne 0x424948
call fcn.0045f260
jmp 0x42494d
call fcn.0045f410
push esi
push 0
push dword [0x48263c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x425de7
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x425e49
cmp word [esi], di
je 0x425e49
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0044a9e0
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.0044ac90
add esp, 0x10
test eax, eax
jne 0x425e48
push 0x24
push 8
push dword [0x48263c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [ecx + 0x20], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0x426ba4
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 0x426cec
xor ecx, ecx
cmp word [eax], cx
je 0x426cec
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x426bfd
cmp eax, 3
jne 0x426c37
cmp word [esp + 0xa], 0x3a
jne 0x426c37
cmp eax, 2
jne 0x426c1b
lea eax, [esp + 8]
push 0x4680d8
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x426cec
push 0xfffffffffffffffe
pop edi
jmp 0x426cec
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x426c4c
cmp ax, bx
jne 0x426c56
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x426c3f
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x426c95
test byte [esp + 0x21c], 0x10
je 0x426c7c
push 0xfffffffffffffffe
pop edi
jmp 0x426c8c
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x426cea
cmp word [esp + 0x10], bp
jne 0x426ca3
cmp word [esp + 0x12], bp
je 0x426cc2
cmp word [esp + 0x10], bx
jne 0x426cb1
cmp word [esp + 0x12], bx
je 0x426cc2
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x426cea
cmp word [esp + 0x12], ax
jne 0x426cea
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x426cd7
test al, 0x10
je 0x426cea
jmp 0x426ce7
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x426cea
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 0x427102
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x42717a
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x42715b
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x427158
cmp ecx, 0x5c
je 0x427158
cmp ecx, 0x2f
jne 0x427165
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x427145
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x42717c
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4272b1
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x4831e8]
push esi
test eax, eax
jne 0x4272d6
push fcn.004273de
push 0x10
push 0x258
call fcn.0043adf5
mov dword [0x4831e8], eax
push dword [esp + 0xc]
push eax
call fcn.0043ad74
mov esi, eax
test esi, esi
je 0x4273d7
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x4272f8
mov edi, section..rdata
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x427308
xor eax, eax
cmp word [ebx], ax
jne 0x42730d
mov ebx, 0x46810c
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x48263c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4273be
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x42736e
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x427372
push 0x4680d8
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x427372
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x427396
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x4273ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4273aa
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x48263c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x4273d5
cmp dword [esp + 0x14], 0xffffffff
je 0x4273c9
mov esi, dword [esp + 0x14]
push esi
push dword [0x4831e8]
call fcn.0043ad12
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x427454
Capabilities:
Set file attributes

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
je 0x427462
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 8

Function at 0x427465
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x42748e
test byte [esp + 8], 2
je 0x427482
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 0x427490
xor eax, eax
ret 8
Function at 0x427555
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x42756b
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42756e
or eax, 0xffffffff
ret 4

Function at 0x427660
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 0x42769c
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 0x427c30
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x427d38
cmp word [edx], 0
je 0x427d38
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x427c5e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x427cbd
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x427c90
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427c70
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.004286d0
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427c90
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
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
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.004287e0
mov edi, eax
test edi, edi
je 0x427cb3
cmp dword [esi + 4], 0
je 0x427d0b
push dword [esp + 0x14]
push edi
push esi
call fcn.004286d0
push edi
push 0
push dword [0x48263c]
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 [0x48263c]
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 0x427d40
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x484124]
call fcn.0043ad4c
test eax, eax
je 0x427d5c
mov dword [esp + 4], eax
jmp fcn.00427c30
xor eax, eax
ret 0xc
Function at 0x427da0
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x484124]
call fcn.0043ad4c
test eax, eax
je case.0x427dce.3
mov ecx, dword [esp + 8]
add ecx, 0xfffffffe
cmp ecx, 0x17
ja case.0x427dce.3
movzx ecx, byte [ecx + 0x427ed8]
jmp dword [ecx*4 + 0x427ec0]
cmp dword [eax + 4], 0
je 0x427deb
push 2
push 0x468138
push eax
call fcn.004286d0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x468138
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x427e1a
push 3
push 0x468028
push eax
call fcn.004286d0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 3
push 0x468028
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x427e49
push 2
push 0x46813c
push eax
call fcn.004286d0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 2
push 0x46813c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x427e78
push 4
push 0x468140
push eax
call fcn.004286d0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x468140
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8
cmp dword [eax + 4], 0
je 0x427ea7
push 4
push 0x468148
push eax
call fcn.004286d0
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 4
push 0x468148
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x4280a0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x428105
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4280fd
push dword [esp + 0x10]
push dword [0x484124]
call fcn.0043ad4c
test eax, eax
je 0x4280f3
cmp dword [eax + 4], 0
je 0x4280e2
push edi
push esi
push eax
call fcn.004286d0
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 0x428180
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov byte [esp + 7], 0
push dword [0x484124]
call fcn.0043ad4c
test eax, eax
je 0x4281cb
cmp dword [eax + 4], 0
je 0x4281b5
push 1
lea ecx, [esp + 7]
push ecx
push eax
call fcn.00428850
movsx eax, byte [esp + 3]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
lea ecx, [esp + 0xf]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4
Function at 0x428220
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x48263c]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4283a4
mov cl, byte [esp + 3]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x42826e
test ebp, ebp
je 0x428310
dec ebp
cmp dword [ebx + 4], 0
je 0x428287
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00428850
mov dword [esp + 0x14], eax
jmp 0x4282a1
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
cmp eax, 1
jne 0x428310
test cl, cl
je 0x4282b5
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x20]
dec eax
sub edi, edx
cmp edi, eax
jle 0x4282f0
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x48263c]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x20], edx
lea esi, [edi + edx]
test cl, cl
je 0x428310
cmp dword [esp + 0x2c], 0
jne 0x428260
cmp cl, 0xd
je 0x428317
cmp cl, 0xa
jne 0x428260
dec esi
jmp 0x428387
cmp dword [esp + 0x2c], 0
jne 0x428387
cmp cl, 0xa
jne 0x42831f
dec esi
jmp 0x428387
cmp cl, 0xd
jne 0x428387
dec esi
cmp dword [ebx + 4], 0
je 0x42833e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00428850
mov dword [esp + 0x14], eax
jmp 0x428354
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x428387
cmp dword [ebx + 4], 0
je 0x428366
inc dword [ebx + 0xc]
jmp 0x428387
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x4283b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x48263c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x42855d
mov ax, word [esp]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], 0x7ff
cmp ebp, 0xffffffff
je 0x428404
test ebp, ebp
je 0x4284bd
dec ebp
cmp dword [ebx + 4], 0
je 0x42841d
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00428850
mov dword [esp + 0x14], eax
jmp 0x428437
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov ax, word [esp + 0x10]
jne 0x4284bd
test ax, ax
je 0x428451
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, edi
mov edx, dword [esp + 0x1c]
sub esi, ecx
sar esi, 1
cmp esi, edx
jle 0x428498
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x48263c]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov ax, word [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [ecx + esi*2]
test ax, ax
je 0x4284bd
cmp dword [esp + 0x30], 0
jne 0x4283f6
cmp ax, 0xd
je 0x4284c4
cmp ax, 0xa
jne 0x4283f6
sub edi, 2
jmp 0x42853c
cmp dword [esp + 0x30], 0
jne 0x42853c
cmp ax, 0xa
jne 0x4284cf
sub edi, 2
jmp 0x42853c
cmp ax, 0xd
jne 0x42853c
sub edi, 2
cmp dword [ebx + 4], 0
je 0x4284f1
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00428850
mov dword [esp + 0x14], eax
jmp 0x428507
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x42853c
cmp dword [ebx + 4], 0
je 0x42851b
add dword [ebx + 0xc], 2
jmp 0x42853c
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
xor eax, eax
add esp, 0x18
ret 0x10
Function at 0x428570
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x48263c]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x4286c0
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x4285bc
test edi, edi
je 0x42862d
dec edi
push esi
push ebp
call fcn.00428970
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4285cf
xor cl, cl
jmp 0x4285d1
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x428614
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x48263c]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x42862d
test eax, eax
jne 0x4285b2
cmp cl, 0xd
je 0x428631
cmp cl, 0xa
jne 0x4285b2
dec esi
jmp 0x4286a3
test eax, eax
jne 0x4286a3
cmp cl, 0xa
jne 0x428639
dec esi
jmp 0x4286a3
cmp cl, 0xd
jne 0x4286a3
dec esi
cmp dword [ebp + 4], 0
je 0x428658
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.00428850
mov dword [esp + 0x20], eax
jmp 0x42866f
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x4286a3
cmp dword [ebp + 4], 0
je 0x428681
inc dword [ebp + 0xc]
jmp 0x4286a3
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
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, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x4286d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x4287d7
cmp dword [esi + 0x14], 1
jne 0x42871b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x428798
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x428783
dec eax
je 0x42876c
sub eax, 2
je 0x428757
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.00427660
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x4287c5
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x428741
xor eax, eax
pop esi
add esp, 0xc
ret 0xc