joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10046330
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
push 0x207
lea eax, [esp + 0x19]
push 0
push eax
mov dword [esp + 0x18], 0x104
call fcn.1012e060
mov ecx, 9
mov esi, str.SOFTWAREMicroWorldMailScan_for_SMTP_
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x20]
add esp, 0xc
movsb byte es:[edi], byte [esi]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10046380
mov ecx, dword [str.Smtpserver1]
mov edx, dword [0x10163fa0]
mov dword [eax], ecx
mov ecx, dword [0x10163fa4]
mov dword [eax + 4], edx
lea esi, [esp + 0x14]
mov dword [eax + 8], ecx
call fcn.10065240
lea edx, [esp + 8]
push edx
mov eax, esi
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
je 0x100463e9
push str.0.0.0.0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.10127db1
add esp, 0x218
ret
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push ebx
lea edx, [esp + 0x18]
push edx
push 0
push str.bindIp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10046449
push str.0.0.0.0
push ebx
cmp eax, 0xea
jne 0x10046443
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.10127db1
add esp, 0x218
ret
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.10127db1
add esp, 0x218
ret
Function at 0x10053260
Capabilities:
Get disk size

Disassembly:
sub esp, 0xc
push ebx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ebx, eax
test ebx, ebx
je 0x100532dd
mov eax, dword [esp + 0x14]
imul eax, dword [esp + 4]
push esi
cdq
push edi
mov esi, eax
mov eax, dword [esp + 0x10]
mov edi, edx
push edi
cdq
push esi
push edx
push eax
call fcn.10138f60
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 4], edx
test eax, eax
je 0x100532c2
mov edx, dword [ecx]
mov dword [eax], edx
mov ecx, dword [ecx + 4]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x14]
push edi
cdq
push esi
push edx
push eax
call fcn.10138f60
mov ecx, dword [esp + 0x24]
pop edi
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, ebx
pop esi
pop ebx
add esp, 0xc
ret 0x10
Function at 0x10053380
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x320
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x31c], eax
push ebx
mov ebx, dword [esp + 0x32c]
push esi
mov esi, dword [esp + 0x32c]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100533b7
xor eax, eax
jmp 0x10053532
push 0
lea eax, [esp + 0x1c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov esi, eax
test esi, esi
je 0x10053530
cmp esi, 0x104
jb 0x100533eb
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x10053530
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x10053530
push 0x104
lea edx, [esp + 0x120]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x10053444
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1005343d
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x10053524
mov eax, dword [esp + 8]
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x128]
push edx
push 0
push 0
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jge 0x1005349c
mov ecx, eax
and ecx, 0x1fff0000
cmp ecx, 0x70000
jne 0x1005348d
movzx edx, ax
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x10053524
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x10053524
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov esi, eax
test esi, esi
jne 0x100534c2
cmp byte [esp + 0x18], al
je 0x100534c2
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100534f8
push edi
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, dword [esp + 0x338]
lea edi, [esi + 1]
cmp edi, eax
jbe 0x100534ea
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, edi
jmp 0x100534f7
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x10053524
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0x324]
pop esi
pop ebx
xor ecx, esp
call fcn.10127db1
add esp, 0x320
ret 0xc
Function at 0x100535d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x148
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x144], eax
cmp dword [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
jne 0x10053675
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1005367d
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x1005367d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esi], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x18]
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x24]
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.10127db1
mov esp, ebp
pop ebp
ret 0xc
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.10127db1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100538c0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, eax
push edi
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x100538e6
mov eax, 0x200
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x28]
mov edx, eax
xor ebp, ebp
and edx, 1
je 0x100538f8
mov ebp, 1
test al, 2
je 0x100538ff
or ebp, 2
test al, 4
je 0x10053906
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x10053910
or ebp, 0x10
test al, 0x20
je 0x10053917
or ebp, 0x20
test ecx, ecx
je 0x10053923
or ebp, 0x40000000
jmp 0x10053929
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x10053939
or ebp, 0x800000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp eax, 0x28
jbe 0x100539e7
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
mov edx, 0x54ad
cmp word [esp + 0x10], dx
jne 0x100539e7
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 0x34]
cmp dword [esp + 0x14], ecx
jbe 0x100539e7
push 0
push 0
push eax
push esi
call edi
push 0
lea edx, [esp + 0x1c]
push edx
push 4
lea eax, [esp + 0x2c]
push eax
push esi
call ebx
mov eax, dword [esp + 0x20]
cmp eax, 0x5a4d
je 0x100539e1
cmp eax, 0x454e
je 0x100539e1
cmp eax, 0x454c
je 0x100539e1
cmp eax, 0x4550
jne 0x100539e7
or ebp, 0x400000
mov eax, dword [esp + 0x60]
test eax, eax
je 0x100539f1
mov dword [eax], ebp
mov eax, dword [esp + 0x64]
test eax, eax
je 0x100539ff
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov esi, dword [esp + 0x68]
test esi, esi
je 0x10053a3a
push 0
mov eax, 0x8edc2e80
sub eax, 0xd53e8000
mov ecx, 0x1cad4a4
push 0x989680
sbb ecx, 0x19db1de
push ecx
push eax
mov dword [esp + 0x34], 0
call fcn.10138fa0
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x10053a6f
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push edx
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.100537e0
movzx eax, word [esp + 0x20]
movzx ecx, word [esp + 0x24]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c
ret
Function at 0x100544e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x100544e7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x100545c4
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10151a70]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x10151a70]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x10151a70]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10151a70]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10151a70]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10151a70]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10151a70]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x10151a70]
inc ecx
sub edx, 8
sub esi, 1
jne 0x10054500
pop edi
test edx, edx
je 0x100545eb
jmp 0x100545d0
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x10151a70]
inc ecx
sub edx, 1
jne 0x100545d0
not eax
pop esi
ret

Function at 0x100545f0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x10151a70]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x10151a70]
mov dword [edx + 8], ecx
ret
Function at 0x10054830
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [esp + 0x14]
mov eax, ebx
je 0x1005490b
mov eax, dword [esi + 0x3c]
push ebp
xor ebp, ebp
cmp eax, ebp
je 0x10054864
cmp dword [esi + 0x40], edi
jae 0x10054864
push eax
call fcn.10128f5b
add esp, 4
mov dword [esi + 0x3c], ebp
cmp dword [esi + 0x3c], ebp
jne 0x1005487b
lea eax, [edi + edi]
push eax
call fcn.101264a0
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.10130710
add esp, 0xc
cmp edi, ebp
jbe 0x10054907
lea ecx, [ecx]
mov edx, dword [esi + 0x3c]
mov bl, byte [edx + ebp]
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x38]
movsx ecx, bl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x10151a70]
shr edi, 8
xor ecx, edi
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x10151a70]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, bl
mov byte [ecx + ebp], al
inc ebp
cmp ebp, dword [esp + 0x18]
jb 0x10054890
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
pop ebp
mov edx, dword [esi + 0x20]
test edx, edx
je 0x10054947
mov ecx, dword [esi + 0x24]
add dword [esi + 0x44], edi
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x1005492f
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.10130710
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10054968
push 0
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x10054b90
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esi + 0x7c]
push edi
test ecx, ecx
je 0x10054bdb
mov eax, dword [esi + 0x84]
mov edi, dword [esi + 0x80]
cmp eax, edi
jae 0x10054c18
sub edi, eax
cmp edi, edx
jbe 0x10054bb1
mov edi, edx
push edi
add eax, ecx
push eax
push ebx
call fcn.10130710
mov eax, dword [esi + 0x70]
add dword [esi + 0x84], edi
add dword [esi + 0x6c], edi
add esp, 0xc
mov edx, edi
mov ecx, ebx
call fcn.100544e0
mov dword [esi + 0x70], eax
mov eax, edi
pop edi
pop ecx
ret
mov eax, dword [esi + 0x74]
test eax, eax
je 0x10054c11
push 0
lea ecx, [esp + 8]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10054c18
mov edi, dword [esp + 4]
mov eax, dword [esi + 0x70]
add dword [esi + 0x6c], edi
mov edx, edi
mov ecx, ebx
call fcn.100544e0
mov dword [esi + 0x70], eax
mov eax, edi
pop edi
pop ecx
ret
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop ecx
ret
Function at 0x10057050
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x10151a70]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x10151a70]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x10057830
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x10057862
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10057858
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x10057875
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.10130710
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x10057a40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x10057a85
cmp byte [esi + 1], 0
je 0x10057a8d
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x10057aa2
cmp byte [esi + 1], 0
je 0x10057a94
mov eax, dword [esi + 4]
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi + 0xc]
mov ebp, eax
mov dword [esp + 4], ebp
jmp 0x10057aab
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x10057a5e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x10057aab
mov edx, dword [esi + 0x1c]
mov dword [esp + 4], edx
mov ebp, edx
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x10057abf
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.10128320
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10057add
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x10057c03
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x10057b03
mov dword [esp + 0x14], eax
mov ecx, ebp
sub ecx, dword [esp + 0x14]
mov eax, ebp
sub eax, ecx
mov dword [esp + 0x20], ecx
mov ebp, 0x404
cmp eax, 0x404
ja 0x10057b1f
mov ebp, eax
cmp byte [esi], 0
je 0x10057b44
cmp byte [esi + 1], 0
je 0x10057c03
mov eax, dword [esi + 0xc]
push 0
push 0
add eax, ecx
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x10057b47
mov dword [esi + 0x1c], ecx
cmp byte [esi], 0
je 0x10057b62
cmp byte [esi + 1], 0
je 0x10057b62
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
mov edi, ebp
je 0x10057b8a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10057b84
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x10057bb0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x10057b9b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.10130710
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x10057c03
lea eax, [ebp - 3]
test eax, eax
jl 0x10057be0
dec eax
cmp byte [eax + ebx], 0x50
jne 0x10057bdc
cmp byte [eax + ebx + 1], 0x4b
jne 0x10057bdc
cmp byte [eax + ebx + 2], 5
jne 0x10057bdc
cmp byte [eax + ebx + 3], 6
je 0x10057bf9
test eax, eax
jge 0x10057bc0
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x14], edx
jae 0x10057c03
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
mov edi, edx
jmp 0x10057af2
mov ecx, dword [esp + 0x20]
add eax, ecx
mov dword [esp + 0x18], eax
push ebx
call fcn.10128243
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x10058360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x10058378
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x1005836d
cmp dword [edi + 0x7c], ebx
je 0x10058387
call fcn.10058760
push ebx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.10058170
add esp, 0x10
test eax, eax
je 0x100583ae
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push ebp
push 0x84
call fcn.10128320
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x100583f0
push 0x4000
call fcn.10128320
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [ebp], eax
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
mov dword [ebp + 0x4c], ebx
cmp eax, ebx
jne 0x100583fc
push ebp
call fcn.10128243
add esp, 4
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [ebp + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [ebp + 0x54], ecx
mov dword [ebp + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [ebp + 0x64], edx
mov ecx, dword [edi]
mov dword [ebp + 0x60], ecx
mov edx, dword [edi + 0xc]
push esi
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x18], ebx
cmp eax, ebx
jne 0x10058445
lea esi, [ebp + 4]
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x2c], ebx
call fcn.100572c0
test eax, eax
jne 0x10058445
mov dword [ebp + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [ebp + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [ebp + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [ebp + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x1005846f
mov cl, byte [edi + 0x39]
mov byte [ebp + 0x80], cl
jmp 0x10058478
mov dl, byte [edi + 0x3f]
mov byte [ebp + 0x80], dl
movzx eax, byte [ebp + 0x6c]
mov esi, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [ebp + 0x70]
mov dword [ebp + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [ebp + 0x74], 0x23456789
mov dword [ebp + 0x78], 0x34567890
cmp esi, ebx
je 0x100584b5
mov cl, byte [esi]
cmp cl, bl
je 0x100584b5
call fcn.100545f0
add esi, 1
jne 0x100584a5
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [ebp + 0x3c], eax
mov dword [ebp + 8], ebx
pop esi
mov dword [edi + 0x7c], ebp
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0xc
ret