joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b0a8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44b0bf
add esp, 0xfffffff0
call fcn.004033e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00418ec4
mov eax, dword [0x44ff34]
cmp word [eax + 2], 0
jne 0x44b0e7
mov eax, dword [0x44ff34]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044c780
mov eax, dword [0x44ffdc]
cmp word [eax + 2], 0
jne 0x44b101
mov eax, dword [0x44ffdc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044c978
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4111bc]
call fcn.004030a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4111bc]
call fcn.004030a8
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41b098]
call fcn.00420ce0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44b288
mov eax, dword [0x44fe58]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004210b0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44cf18
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x44fe58]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040bdac
test eax, eax
je 0x44b1f6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408164
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040bdd4
test eax, eax
je 0x44b20a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404080
mov eax, dword [0x44fd5c]
cmp byte [eax], 0
jne 0x44b23e
mov eax, ebx
call fcn.0044b3b0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044d0f4
mov eax, ebx
call fcn.0044dab8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44b27e
call fcn.0040343c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44b630
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x451bb0]
cmp dword [eax + 0x30], 0
je 0x44b6da
cmp dword [ebx + 0x94], 0
jne 0x44b6d4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44b5c0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44b6d4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44b69a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44b6d4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413524
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44b6a9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44c23c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44c271
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f00
jmp 0x44c27e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403e64
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44d2d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44d311
mov eax, esi
call fcn.0043334c
test al, al
je 0x44d311
mov eax, dword [ebx + 0x84]
call fcn.004330ec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44d311
push 0
mov eax, dword [ebx + 0x84]
call fcn.004330ec
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4010b0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
push eax
mov edi, ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x4010d6
pop edi
pop esi
pop ebx
add esp, 8
ret 4
push esi
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [edi + 4], eax
push eax
push esi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x401105
mov ecx, edi
call fcn.00401090
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
mov ecx, dword [edi + 4]
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push edx
push eax
push str.VarFileInfoTranslation
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x401133
mov ecx, edi
call fcn.00401090
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, dword [eax]
mov cx, word [eax]
shr edx, 0x10
shl ecx, 0x10
or edx, ecx
mov eax, 1
mov dword [edi + 8], edx
pop edi
pop esi
pop ebx
add esp, 8
ret 4

Function at 0x401160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x407987
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
mov eax, dword [esi + 4]
test eax, eax
jne 0x4011ae
mov esi, dword [esp + 0x24]
push str.Plase_Wait_the_End_of_the_Thread
mov ecx, esi
call fcn.0040719c
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push edi
mov edi, dword [esp + 0x30]
test edi, edi
jne 0x4011ba
mov edi, dword [esi + 8]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push eax
push edi
push str.StringFileInfo_08lx_s
push ecx
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x30]
push edx
push eax
push 0
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
pop edi
je 0x401223
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push edx
call sub.MFC42.DLL_CString::operator_1
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov dword [esp + 0xc], 1
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc

Function at 0x401360
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x401389
call fcn.00401390
test eax, eax
jne 0x401375
pop esi
ret
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [esi + 0x14], 1
mov eax, dword [esi + 0x14]
pop esi
ret
Function at 0x4013e0
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x401460
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4013fe
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4013fe
push eax
call ecx
add esp, 4
mov eax, dword [esi + 0x10]
push edi
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esi + 0x10]
push 1
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov ecx, dword [esi + 0x10]
push 0xbf
push 0xffffffffffffffff
add ecx, 0x2c
push 0
push ecx
push 1
call edi
cmp eax, 1
jne 0x401421
mov ecx, dword [esi + 0x10]
pop edi
test ecx, ecx
je 0x401448
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x10], 0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x14], 0
pop esi
ret
Function at 0x402ca0
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x407ecf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push str.Plase_Wait_the_End_of_the_Thread
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0x30
mov byte [esp + 0x11], 0x31
mov byte [esp + 0x12], 0x32
mov byte [esp + 0x13], 0x33
mov byte [esp + 0x14], 0x34
mov byte [esp + 0x15], 0x35
mov byte [esp + 0x16], 0x36
mov byte [esp + 0x17], 0x37
mov byte [esp + 0x18], 0x38
mov byte [esp + 0x19], 0x39
mov byte [esp + 0x1a], 0x41
mov byte [esp + 0x1b], 0x42
mov byte [esp + 0x1c], 0x43
mov byte [esp + 0x1d], 0x44
mov byte [esp + 0x1e], 0x45
mov byte [esp + 0x1f], 0x46
call fcn.0040719c
mov eax, dword [esp + 0x30]
xor edx, edx
and eax, 0xff
mov dword [esp + 0x24], 1
mov ecx, eax
and ecx, 0xf
shr eax, 4
mov dl, byte [esp + ecx + 0xc]
xor ecx, ecx
mov cl, byte [esp + eax + 0xc]
push edx
push ecx
lea edx, [esp + 0xc]
push 0x40c374
push edx
call sub.MFC42.DLL_CString::Format
mov esi, dword [esp + 0x3c]
add esp, 0x10
lea eax, [esp + 4]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x405b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
and edx, 0xffff
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x405b5c
pop edi
pop esi
ret 0x10
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x405b77
pop edi
pop esi
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x405b87
pop edi
pop esi
ret 0x10
push ebx
push ebp
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, dword [esp + 0x20]
lea edi, [ebx + 0xa]
mov dword [eax], ebx
push edi
call sub.MFC42.DLL_operatornew
mov ecx, edi
mov edx, eax
mov ebp, ecx
xor eax, eax
mov edi, edx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
pop ebp
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebx
mov edi, edx
mov eax, ecx
pop ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword [ecx], edx
ret 0x10

Function at 0x406b30
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x1d8]
test eax, eax
je 0x406b76
lea ecx, [esp + 4]
push 2
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 8]
push 0
push edx
mov edx, dword [esi + 0x1d8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
add esp, 8
ret 8
Function at 0x405c1d
Capabilities:
Encode data using xor

Disassembly:
xchg ebp, eax
sub byte [eax + 0x63], cl
push esp
loop 0x405c69
push ss
das
inc byte [esi + edi*8]
pop ebx
sbb esp, dword [ecx - 0x3c65a2ec]
mov eax, dword [0xc39a5d14]
xchg byte [esi - 0x5f], ch
and eax, dword [ecx - 0x67]
inc ebp
xor ecx, dword [ebp + 0x137151f3]
dec edx
mov byte [0x52eda4b8], al
and ebp, dword [ebp + 0x60]
sub dword [eax], edi
mov cl, 0xda
adc al, 0x9a
loop 0x405bf6
pop ebx
ret
mov ecx, 0xf13580f4
dec ebp
xor eax, dword [edx - 0x59]
lodsd eax, dword [esi]
jg 0x405cf2
invalid
push eax
xchg esp, eax
pop ebx

Function at 0x40668f
Capabilities:
Encode data using xor

Disassembly:
push ds
push ebx
and ah, 0x90
sbb edi, dword [ebp + 0x7e24e91e]
and al, 0x7e
jle 0x406698
std
xor esp, dword [0x38fc1c7b]
sbb edi, esi
pop esi
and eax, 0x54024628
mov al, byte [0x8c9ba9ca]
enter 0x178a, 0x56
mov al, byte [0xb137feef]
push edi
sbb dl, dl
loop 0x406699
ror byte [edx - 0x1b8dbe21], cl
and byte [edi], bh
xor al, 0x33
xchg ebp, eax
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x5f1a6dad
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x470a1608
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4a33da
Capabilities:
Contain obfuscated stackstrings
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
push edi
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4a3400
jmp 0x4a3516
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0xffffffff
jne 0x4a3420
jmp 0x4a3516
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov al, byte [ebp - 4]
mov byte [ebp - 0x1c], al
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004a7999
add esp, 4
mov dword [0x4c20a0], 0
mov dword [ebp - 0x420], 0x646c6f47
mov dword [ebp - 0x41c], 0x6f736e65
mov byte [ebp - 0x418], 0x66
mov dword [ebp - 0x20], 0
jmp 0x4a346d
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 9
jge 0x4a348d
mov eax, dword [ebp - 0x20]
movsx eax, byte [eax + ebp - 0x420]
xor al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov byte [ecx + ebp - 0x420], al
jmp 0x4a346a
mov al, byte [ebp - 0x1c]
mov byte [ebp - 0x417], al
push 0xa
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll__lread]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4a34f5
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004a753c
add esp, 8
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
jmp 0x4a34a9
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a351b
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call fcn.004a72f1
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.004a7379
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push eax
call fcn.004a7c4f
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], 2
jne 0x4a359e
cmp dword [0x4c22d2], 1
jne 0x4a359e
cmp dword [ebp - 0xc], 0
je 0x4a359e
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004a33da
add esp, 8
jmp 0x4a35ad
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 0x14], eax
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 8
Function at 0x4a377c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
nop
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0
jmp 0x4a37c4
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1e
jge 0x4a37ea
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp dword [eax*4 + 0x4c20a4], ecx
jne 0x4a37e8
cmp dword [ebp - 0xc], 0
je 0x4a37e6
mov eax, dword [ebp - 0xc]
add dword [eax + 8], 0xa
jmp 0x4a37ea
jmp 0x4a37c1
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jne 0x4a388d
mov dword [ebp - 0x18], 0
jmp 0x4a3818
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1e
jge 0x4a388d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
cmp dword [eax*4 + 0x4c20a4], ecx
jne 0x4a388b
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx*4 + 0x4c21b2]
cmp dword [eax*4 + 0x4c213a], ecx
jb 0x4a387a
mov eax, dword [ebp - 0x10]
cmp dword [0x4c20a0], eax
je 0x4a3868
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 0x4c211c]
push eax
call fcn.004a7999
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [0x4c20a0], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004a74f0
add esp, 8
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x18]
add dword [ecx*4 + 0x4c213a], eax
jmp 0x4a388d
jmp 0x4a3815
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 0x14
Function at 0x4a389e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
nop
leave
add esp, 4
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push esi
push edx
push ecx
push ebx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
jmp 0x4a38ec
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1e
jge 0x4a394e
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
cmp dword [eax*4 + 0x4c20a4], ecx
jne 0x4a394c
mov eax, dword [ebp - 0xc]
cmp dword [0x4c20a0], eax
je 0x4a3926
mov eax, dword [ebp - 0x18]
mov al, byte [eax + 0x4c211c]
push eax
call fcn.004a7999
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [0x4c20a0], eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004a753c
add esp, 8
mov dword [ebp - 0x10], 1
cmp dword [ebp - 8], 0
je 0x4a394a
mov eax, dword [ebp - 8]
add dword [eax + 8], 0xa
jmp 0x4a394e
jmp 0x4a38e9
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x4a397c
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004a74f0
add esp, 8
pop ebx
pop ecx
pop edx
pop esi
pop edi
mov eax, dword [ebp - 0x14]
leave
ret 0x14
Function at 0x4a75d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 8], 0xffffffff
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
push 0
push 0
push 0x1e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], 0
jmp 0x4a760f
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 3
jge 0x4a76e5
push 0
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
mov al, byte [ebp - 0x20]
cmp eax, 0x54
jne 0x4a76e0
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x44
je 0x4a765f
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
je 0x4a765f
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x53
jne 0x4a76e0
mov al, byte [ebp - 0x17]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.004a7999
add esp, 4
xor eax, eax
mov al, byte [ebp - 0x1f]
cmp eax, 0x64
jne 0x4a76b2
mov dword [0x4c22d2], 1
mov dword [ebp - 0x10], 0
jmp 0x4a7695
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 7
jge 0x4a76b0
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x1e]
xor cl, byte [ebp - 0x17]
mov eax, dword [ebp - 0x10]
mov byte [eax + ebp - 0x1e], cl
jmp 0x4a7692
jmp 0x4a76bc
mov dword [0x4c22d2], 0
mov eax, dword [ebp - 0x1e]
xor eax, 0x19611225
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1a]
xor eax, 0x198931
and eax, 0xffffff
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx]
mov dword [ebp - 8], eax
jmp 0x4a76e5
jmp 0x4a760c
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 8]
jmp 0x4a76fc
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4a7826
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 4], 0xffffffff
push 0
lea eax, [ebp - 0xc]
push eax
push 0xa
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], 0
jmp 0x4a7858
inc dword [ebp - 8]
cmp dword [ebp - 8], 9
jge 0x4a7873
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + ebp - 0x18]
xor cl, byte [ebp - 0xf]
mov eax, dword [ebp - 8]
mov byte [eax + ebp - 0x18], cl
jmp 0x4a7855
cmp dword [ebp - 0x18], 0x646c6f47
jne 0x4a78bd
cmp dword [ebp - 0x14], 0x6f736e65
jne 0x4a78bd
xor eax, eax
mov al, byte [ebp - 0x10]
cmp eax, 0x66
jne 0x4a78bd
mov al, byte [ebp - 0xf]
mov ecx, dword [ebp + 0x10]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
push eax
call fcn.004a7999
add esp, 4
cmp dword [ebp + 0xc], 0
je 0x4a78b4
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov dword [ebp - 4], 0xa
jmp 0x4a78cd
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 4]
jmp 0x4a78d2
pop edi
pop esi
pop ebx
leave
ret