joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ff661
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4ff69e
cmp dword [ebp + 0x14], edi
je 0x4ff69e
cmp ecx, edi
jne 0x4ff6a5
call fcn.00505aa4
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004fed5d
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4ff6b9
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4ff6da
cmp ebx, 0xffffffff
je 0x4ff6c9
push ebx
push edi
push ecx
call fcn.005002f0
add esp, 0xc
cmp esi, edi
je 0x4ff686
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4ff686
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4ff6f6
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4ff6fd
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4ff7ee
test word [esi + 0xc], 0x10c
je 0x4ff751
mov eax, dword [esi + 4]
test eax, eax
je 0x4ff751
jl 0x4ff84f
cmp ebx, eax
mov edi, ebx
jb 0x4ff722
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4ff7f6
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004fe295
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4ff7e6
cmp ebx, dword [ebp - 0xc]
jb 0x4ff7be
cmp dword [ebp - 0xc], 0
je 0x4ff77b
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x4ff770
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4ff777
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4ff786
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x4ff786
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4ff822
push eax
push dword [ebp - 8]
push esi
call fcn.0050c114
pop ecx
push eax
call fcn.0050c9d5
add esp, 0xc
test eax, eax
je 0x4ff861
cmp eax, 0xffffffff
je 0x4ff84f
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4ff7e6
push esi
call fcn.0050c2f4
cmp eax, 0xffffffff
pop ecx
je 0x4ff853
cmp dword [ebp - 4], 0
je 0x4ff822
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4ff705
mov eax, dword [ebp + 0x14]
jmp 0x4ff6a0
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4ff80d
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.005002f0
add esp, 0xc
call fcn.00505aa4
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4ff696
cmp dword [ebp + 0xc], 0xffffffff
je 0x4ff838
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.005002f0
add esp, 0xc
call fcn.00505aa4
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4ff696
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4ff6a0
or dword [esi + 0xc], 0x10
jmp 0x4ff853
Function at 0x508c23
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x589c00]
je 0x508c3e
inc edi
cmp edi, 0x17
jb 0x508c2f
cmp edi, 0x17
jae 0x508dbe
push ebp
push 3
call fcn.0051554f
cmp eax, 1
pop ecx
je 0x508d8a
push 3
call fcn.0051554f
test eax, eax
pop ecx
jne 0x508c72
cmp dword [0x589550], 1
je 0x508d8a
cmp ebx, 0xfc
je 0x508dbd
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x5b9568
push ebp
call fcn.005006d7
add esp, 0xc
test eax, eax
je 0x508ca8
push esi
push esi
push esi
push esi
push esi
call fcn.004fec61
add esp, 0x14
push 0x104
mov esi, 0x5b9581
push esi
push 0
mov byte [0x5b9685], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x508cec
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.005006d7
add esp, 0xc
test eax, eax
je 0x508cec
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004fec61
add esp, 0x14
push esi
call fcn.00503a90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x508d31
push esi
call fcn.00503a90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x5b987c
push 0x546b04
sub ecx, eax
push ecx
push eax
call fcn.005085cd
add esp, 0x14
test eax, eax
je 0x508d31
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004fec61
add esp, 0x14
jmp 0x508d33
xor esi, esi
push 0x546b00
push ebx
push ebp
call fcn.004ffe58
add esp, 0xc
test eax, eax
je 0x508d53
push esi
push esi
push esi
push esi
push esi
call fcn.004fec61
add esp, 0x14
push dword [edi*8 + 0x589c04]
push ebx
push ebp
call fcn.004ffe58
add esp, 0xc
test eax, eax
je 0x508d75
push esi
push esi
push esi
push esi
push esi
call fcn.004fec61
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00515392
add esp, 0xc
jmp 0x508dbd
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x508dbd
cmp ebp, 0xffffffff
je 0x508dbd
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x589c04]
push dword [esi]
call fcn.00503a90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x515392
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00503283
xor ebx, ebx
cmp dword [0x5b9e50], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x515468
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x515548
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x515548
push eax
call fcn.00503215
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5b9e50], eax
call esi
push eax
call fcn.00503215
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5b9e54], eax
call esi
push eax
call fcn.00503215
mov dword [0x5b9e58], eax
lea eax, [ebp - 0xc]
push eax
call fcn.005089b0
test eax, eax
pop ecx
pop ecx
je 0x515436
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004fec61
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x515468
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00503215
cmp eax, ebx
pop ecx
mov dword [0x5b9e60], eax
je 0x515468
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00503215
pop ecx
mov dword [0x5b9e5c], eax
mov eax, dword [0x5b9e5c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x5154ed
cmp dword [0x5b9e60], ecx
je 0x5154ed
push eax
call fcn.0050328c
push dword [0x5b9e60]
mov esi, eax
call fcn.0050328c
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x5154ed
cmp edi, ebx
je 0x5154ed
call esi
cmp eax, ebx
je 0x5154ba
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5154ba
test byte [ebp - 0x18], 1
jne 0x5154ed
lea eax, [ebp - 0x10]
push eax
call fcn.005089e7
test eax, eax
pop ecx
je 0x5154d5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004fec61
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x5154e4
or dword [ebp + 0x10], 0x200000
jmp 0x515528
or dword [ebp + 0x10], 0x40000
jmp 0x515528
mov eax, dword [0x5b9e54]
cmp eax, dword [ebp - 8]
je 0x515528
push eax
call fcn.0050328c
cmp eax, ebx
pop ecx
je 0x515528
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x515528
mov eax, dword [0x5b9e58]
cmp eax, dword [ebp - 8]
je 0x515528
push eax
call fcn.0050328c
cmp eax, ebx
pop ecx
je 0x515528
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5b9e50]
call fcn.0050328c
cmp eax, ebx
pop ecx
je 0x515548
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x51554a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5d8aa7
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edx, 0x5d87dc
mov esi, 0xe18f021f
call fcn.005d8ad7
sub eax, eax
dec esi
xor dword [edi], edx
dec eax
add edi, 2
mov eax, eax
mov eax, esi
cmp edi, ebx
jl fcn.005d8aa7
mov esi, 0x43004797
mov eax, 0xf8649d7f
ret
Function at 0x406004
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x422a1c], esi
push edi
jne 0x40603e
mov ecx, 0x422a18
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40601a
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422e18
jl 0x406015
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406073
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a18]
xor eax, esi
inc ecx
dec edx
jne 0x406056
pop edi
pop esi
not eax
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40605d
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.kernel32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x430908], 0x55004e
mov dword [0x43090c], 0x4c
mov edi, 0x400
mov ebp, 0x430908
je 0x4060b3
push 1
push 0
push esi
call fcn.00405f07
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4061d2
cmp eax, edi
jg 0x4061d2
mov esi, 0x431108
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4061d2
cmp eax, edi
jg 0x4061d2
push esi
push ebp
push str._ls_ls_r_n
push 0x430508
call dword [sym.imp.user32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434f14]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040644e
push 4
push 0xc0000000
push esi
call fcn.00405f07
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4061d2
push 0
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4061cb
push edi
push esi
push ebp
call fcn.0040644e
test eax, eax
je 0x4061cb
push str._Rename__r_n
push esi
call fcn.0040644e
test eax, eax
jne 0x406169
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40619e
add eax, 0xa
push 0x40a580
push eax
call fcn.0040644e
mov ebp, eax
test ebp, ebp
je 0x40619a
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40618b
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406185
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4061a0
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x430508
push eax
call fcn.00405ec2
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.kernel32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.0040644e
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4061d7
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
jne 0x4061fa
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040605d
pop ecx
pop ecx
inc dword [0x434fb0]
ret 8

Function at 0x4068f3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x40692a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406904
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x4068ff
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40695b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x40693d
pop edi
not eax
pop esi
ret 0xc
Function at 0x410acc
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x410b64
push edi
push 0x483544
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4829b4]
test edi, edi
je 0x410b38
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x410b31
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x4829b4
call fcn.00434adf
pop ecx
pop ecx
jmp 0x410b33
mov edi, dword [edi]
test edi, edi
jne 0x410b08
pop ebx
mov eax, dword [0x480884]
mov esi, eax
inc eax
push 0x10
push 0x4829b4
mov dword [0x480884], eax
call fcn.00434b1f
pop ecx
pop ecx
push 0x483544
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x413990
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4139e5
push dword [esp + 0x10]
push 0x41390f
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x482a18]
test esi, esi
je 0x413a3e
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4139dd
cmp byte [esi + 0x10], 0
je 0x4139dd
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 0x4139b9
jmp 0x413a3e
mov esi, dword [0x482a18]
test esi, esi
je 0x413a3e
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 0x413a37
cmp byte [esi + 0x11], 0
je 0x413a13
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x413a2a
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 0x482a18
call fcn.00434adf
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4139f2
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x4141a9
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebp
push esi
push edi
push dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x10], esi
call fcn.00464170
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], eax
lea eax, [edi + 0x18]
push eax
push esi
push dword [0x482978]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x4142a8
push ebx
mov ebx, dword [esp + 0x30]
lea eax, [edi + 0x18]
push esi
push dword [ebx + 0x18]
push eax
push ebp
push edi
push dword [esp + 0x48]
call fcn.00414698
mov esi, eax
add esp, 0x18
test esi, esi
je 0x41420c
cmp esi, edi
jge 0x41420c
mov dword [esp + 0x34], ebp
jmp 0x41420e
mov esi, edi
push dword [esp + 0x14]
call sub.MSVCRT.dll_strlen
mov word [esp + 0x2c], ax
mov eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cdq
mov dword [esp + 0x1c], eax
mov eax, esi
pop ecx
mov dword [esp + 0x1c], edx
cdq
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x40]
push eax
push 0x12
lea eax, [esp + 0x24]
mov dword [esp + 0x30], edx
push eax
push dword [ebx]
call edi
cmp dword [esp + 0x3c], 0x12
jne 0x41428d
push 0
lea eax, [esp + 0x40]
push eax
movsx eax, word [esp + 0x30]
push eax
push dword [esp + 0x20]
push dword [ebx]
call edi
movsx eax, word [esp + 0x28]
cmp eax, dword [esp + 0x3c]
jne 0x41428d
push 0
lea eax, [esp + 0x40]
push eax
push esi
push dword [esp + 0x40]
push dword [ebx]
call edi
cmp esi, dword [esp + 0x3c]
jne 0x41428d
xor esi, esi
inc esi
jmp 0x414291
mov esi, dword [esp + 0x10]
push ebx
call fcn.004148b2
pop ecx
push ebp
push 0
push dword [0x482978]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
push dword [esp + 0x10]
call fcn.00464160
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x1c
ret 0x10
Function at 0x4144e3
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
or dword [esp], 0xffffffff
xor edx, edx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov esi, edx
test edi, edi
je 0x41451a
cmp word [edi], dx
je 0x41451a
push edi
call fcn.00464170
mov ebp, dword [esp + 0x20]
mov edi, eax
push edi
push ebp
call fcn.004148f7
pop ecx
pop ecx
mov esi, eax
xor edx, edx
jmp 0x414530
mov ebp, dword [esp + 0x20]
cmp dword [ebp + 8], edx
je 0x414645
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 4]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x414645
cmp dword [esp + 0x30], 0
je 0x414554
push dword [esi]
push edx
push dword [0x482978]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, dword [esi]
jmp 0x41455c
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x414649
cdq
cmp edx, dword [esi + 4]
jl 0x414649
jg 0x41457c
cmp eax, dword [esi]
jb 0x414649
push 0
lea eax, [esi + 0x14]
push eax
push dword [esi + 0x10]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
cmp eax, dword [esi]
jne 0x4145ce
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jne 0x4145ce
push 0
lea eax, [esp + 0x30]
push eax
push dword [esi]
push ebx
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, dword [esp + 0x2c]
mov eax, ebp
cdq
cmp dword [esi], eax
jne 0x414649
cmp dword [esi + 4], edx
jne 0x414649
mov dword [esp + 0x10], ebp
jmp 0x41464d
push dword [esi + 8]
push 0
push dword [0x482978]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x414649
push 0
lea ecx, [esp + 0x30]
push ecx
push dword [esi + 8]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x2c]
cdq
cmp dword [esi + 8], eax
jne 0x41462d
cmp dword [esi + 0xc], edx
jne 0x41462d
push dword [esp + 0x14]
push ebx
push dword [esp + 0x20]
call fcn.00414b58
cdq
add esp, 0xc
cmp eax, dword [esi]
jne 0x41462d
cmp edx, dword [esi + 4]
jne 0x41462d
mov ebp, dword [esi]
mov dword [esp + 0x10], ebp
jmp 0x414631
mov ebp, dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [0x482978]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41464d
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x414679
cmp ebp, 0xffffffff
jne 0x414673
test ebx, ebx
je 0x41466d
push ebx
push 0
push dword [0x482978]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov ebx, eax
jmp 0x41467f
mov eax, dword [esi]
mov dword [ecx], eax
jmp 0x41467d
mov ebx, dword [esp + 0x10]
xor eax, eax
test edi, edi
je 0x41468e
cmp word [edi], ax
je 0x41468e
push edi
call fcn.00464160
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x414937
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
xor ebx, ebx
push 0x40
pop ebp
cmp dword [esi + 4], ebx
jne 0x414aba
push edi
push 0x100
push ebx
push dword [0x482978]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
push ebx
push 4
pop edi
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [esi + 0x14], 0x706c7a31
lea eax, [esp + 0x4c]
push 0
push eax
jne 0x4149cc
push 0x18
lea eax, [esp + 0x3c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x4c], 0x18
jne 0x414ab9
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov ax, word [esp + 0x40]
mov word [esp + 0x2c], ax
jmp 0x4149e6
push 0x12
lea eax, [esp + 0x28]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x4c], 0x12
jne 0x414ab9
cmp dword [esi + 0xc], ebp
jl 0x414a08
add ebp, 0x40
mov eax, ebp
shl eax, 2
push eax
push dword [esi + 4]
push 8
push dword [0x482978]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi + 4], eax
movsx eax, word [esp + 0x2c]
add eax, 0x19
push eax
push 0
push dword [0x482978]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0x1c]
mov edx, eax
push 0
lea eax, [esp + 0x50]
mov dword [esp + 0x14], edx
push eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 0xc], ecx
movsx eax, word [esp + 0x34]
push eax
lea eax, [edx + 0x18]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, word [esp + 0x2c]
xor ecx, ecx
mov edx, dword [esp + 0x10]
mov byte [eax + edx + 0x18], cl
cmp dword [esi + 0x14], 0x706c7a31
movsx eax, word [esp + 0x2c]
jne 0x414a7b
add eax, 0x18
jmp 0x414a7e
add eax, 0x12
add edi, eax
mov dword [edx + 0x10], edi
adc ebx, ecx
mov dword [edx + 0x14], ebx
mov ecx, dword [esi + 0xc]
add edi, dword [esp + 0x24]
mov eax, dword [esi + 4]
adc ebx, dword [esp + 0x28]
push 1
mov dword [eax + ecx*4], edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
inc dword [esi + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x1c], ecx
push ecx
jmp 0x41496e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret