joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008bfc0
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x101c83f8], eax
je 0x1008bfd6
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x101c8408]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x1008c03d
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
movzx eax, byte [edx + 0x36]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebp
jne 0x1008c02c
mov ebx, dword [esi + 0x10]
cmp ebx, ebp
je 0x1008c02c
mov edx, ebx
and edx, 0xffff0000
xor eax, eax
mov ecx, 0x12
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [edx + 8]
mov dword [ebx + 0x40], eax
mov dword [edx + 8], ebx
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.10152975
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x1008bfe6
mov dword [0x101c8408], ebp
call fcn.1008bb80
mov esi, dword [0x101c8404]
cmp esi, ebp
je 0x1008c06f
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esi + 4]
push ecx
call ebx
mov edi, dword [esi]
push esi
call fcn.10152975
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x1008c058
pop edi
pop esi
mov dword [0x101c8404], ebp
mov dword [0x101c83f8], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x1008c3c0
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x101c83fc]
test eax, eax
jne 0x1008c43e
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x1008c3de
xor eax, eax
pop edi
ret 4
push esi
push 8
call fcn.1015294a
mov esi, eax
add esp, 4
test esi, esi
jne 0x1008c3f6
mov edi, 8
jmp 0x1008c413
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1008c42a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.10152975
add esp, 4
pop esi
mov dword [0x101c83fc], edi
mov eax, edi
mov dword [0x101c8400], 0
pop edi
ret 4
mov eax, dword [0x101c8404]
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [0x101c8404], esi
pop esi
xor eax, eax
pop edi
ret 4
Function at 0x1008c7b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x101c83f8], eax
je 0x1008c7c8
mov eax, 0x10dd
pop ecx
ret 8
mov eax, dword [0x101c83fc]
test eax, eax
jne 0x1008c93e
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x1008c7e8
mov eax, 6
pop esi
pop ecx
ret 8
cmp dword [esi], 0
jne 0x1008c802
mov eax, 6
mov dword [0x101c8400], esi
mov dword [0x101c83fc], eax
pop esi
pop ecx
ret 8
push ebp
push edi
push 0x18
call fcn.1015294a
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1008c81e
mov esi, 8
jmp 0x1008c91c
mov esi, dword [esi]
test esi, esi
push ebx
mov bl, 0x25
je 0x1008c85c
cmp byte [esi], 0xff
jne 0x1008c843
cmp byte [esi + 1], bl
jne 0x1008c843
mov edi, dword [esi + 2]
mov edx, edi
mov ecx, esi
call fcn.1008b9f0
test al, al
je 0x1008c843
mov esi, dword [edi]
cmp byte [esi], 0xeb
jne 0x1008c85c
movsx eax, byte [esi + 1]
lea esi, [esi + eax + 2]
cmp byte [esi], 0xe9
jne 0x1008c85c
mov ecx, dword [esi + 1]
lea esi, [esi + ecx + 5]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov edi, ecx
je 0x1008c89e
cmp byte [ecx], 0xff
jne 0x1008c880
cmp byte [ecx + 1], bl
jne 0x1008c880
mov ebx, dword [ecx + 2]
mov edx, ebx
call fcn.1008b9f0
test al, al
je 0x1008c880
mov edi, dword [ebx]
cmp byte [edi], 0xeb
jne 0x1008c89c
movsx edx, byte [edi + 1]
mov al, byte [edi + edx + 2]
cmp al, 0xe9
lea edi, [edi + edx + 2]
jne 0x1008c89c
mov eax, dword [edi + 1]
lea edi, [edi + eax + 5]
mov ecx, edi
movzx eax, byte [esi + 0x36]
mov edi, dword [esi + 0x40]
sub edi, eax
test eax, eax
pop ebx
je 0x1008c90e
cmp eax, 0x1e
ja 0x1008c90e
cmp dword [esi + 0x44], ecx
jne 0x1008c90e
lea ecx, [esp + 0xc]
push ecx
push 0x40
push eax
push edi
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1008c8db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1008c91c
mov edx, dword [esp + 0x14]
mov ecx, dword [0x101c8408]
mov dword [ebp + 0x10], esi
mov dword [ebp + 0xc], edi
mov dword [ebp + 4], 1
mov dword [ebp + 8], edx
mov eax, dword [esp + 0xc]
pop edi
mov dword [ebp + 0x14], eax
mov dword [ebp], ecx
mov dword [0x101c8408], ebp
pop ebp
xor eax, eax
pop esi
pop ecx
ret 8
mov eax, dword [0x101c83f0]
test eax, eax
mov esi, 9
jne 0x1008c922
mov dword [0x101c83fc], esi
test ebp, ebp
je 0x1008c92f
push ebp
call fcn.10152975
add esp, 4
mov edx, dword [esp + 0x14]
pop edi
pop ebp
mov eax, esi
mov dword [0x101c8400], edx
pop esi
pop ecx
ret 8
Function at 0x1008cf20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017fa38
push 0x10101244
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
test eax, eax
mov esi, 0x10000
je 0x1008cf58
lea esi, [eax + 0x10000]
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
or edi, 0xffffffff
push 0x1c
lea ecx, [ebp - 0x3c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
ja 0x1008cf98
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x2c], 0x1000
jne 0x1008cfff
mov eax, dword [ebp - 0x28]
cmp al, 1
je 0x1008cfff
test ah, 1
jne 0x1008cfff
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], esi
cmp word [esi], 0x5a4d
jne 0x1008cffc
mov eax, dword [esi + 0x3c]
cmp eax, dword [ebp - 0x30]
ja 0x1008cffc
cmp eax, 0x40
jb 0x1008cffc
add eax, esi
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
jne 0x1008cffc
mov dword [ebp - 4], edi
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x30]
lea esi, [eax + edx]
jmp 0x1008cf72
Function at 0x1008d010
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017fa48
push 0x10101244
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x1008d04a
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
cmp word [eax], 0x5a4d
je 0x1008d062
push 0xc1
jmp 0x1008d139
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x28], ecx
cmp dword [ecx], 0x4550
je 0x1008d07c
push 0xbf
jmp 0x1008d139
mov ax, word [ecx + 0x14]
test ax, ax
je 0x1008d134
movzx eax, ax
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 0x20], edx
xor edx, edx
mov dword [ebp - 0x24], edx
jmp 0x1008d0a0
movzx eax, word [ecx + 6]
cmp edx, eax
jae 0x1008d134
lea ecx, [edx + edx*4]
mov eax, dword [ebp - 0x20]
lea ebx, [eax + ecx*8]
mov edi, str..detour
mov esi, ebx
mov ecx, 8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x1008d11f
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x1008d134
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x1008d134
mov ecx, dword [ebp - 0x1c]
lea esi, [eax + ecx]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
cmp eax, 0x40
jb 0x1008d134
cmp dword [esi + 4], 0x727444
jne 0x1008d134
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x1008d0fb
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc edx
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x28]
jmp 0x1008d0a0
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1008d2f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
cmp dword [ebx], 0x678
jne 0x1008d417
cmp dword [esp + 0x18], 0x678
jb 0x1008d417
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0x10]
or eax, 0xffffffff
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0x40
push ecx
push edx
mov dword [esp + 0x28], 0
call ebp
test eax, eax
je 0x1008d40b
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 0x14]
lea eax, [esp + 8]
push eax
push 0x40
push ecx
push edx
call ebp
test eax, eax
je 0x1008d3f7
mov ecx, dword [ebx + 4]
mov eax, ecx
shr ecx, 2
push esi
push edi
mov edi, dword [ebx + 0x10]
lea esi, [ebx + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
mov edi, dword [ebx + 0x14]
mov edx, ecx
shr ecx, 2
lea esi, [ebx + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x1008d3d9
mov edx, dword [ebx + 0xc]
lea ecx, [esp + 0x24]
push ecx
push 0x40
push edx
push eax
call ebp
test eax, eax
je 0x1008d3e1
mov ecx, dword [ebx + 0xc]
mov edi, dword [ebx + 0x18]
mov eax, ecx
shr ecx, 2
lea esi, [ebx + 0x664]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0xc]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0x18]
push edx
push eax
push ecx
call ebp
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 8]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ebx + 0x14]
push eax
push ecx
push edx
call ebp
pop edi
pop esi
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 4]
lea eax, [esp + 0xc]
push eax
mov eax, dword [ebx + 0x10]
push ecx
push edx
push eax
call ebp
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
add esp, 0xc
ret 8
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
add esp, 0xc
ret 8
Function at 0x1008e090
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x101b9578]
push ebx
mov ebx, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov ecx, dword [eax]
mov dword [ebx + 8], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0xc], edx
mov edx, dword [ebp + 0xc]
cmp edx, 1
push esi
mov esi, dword [ebp + 8]
push edi
jae 0x1008e0d4
mov byte [esi], 0x2a
mov edx, 1
jmp 0x1008e0de
cmp edx, 0x38
jbe 0x1008e0de
mov edx, 0x38
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx + 0x10]
mov ecx, 0x12
mov esi, 0x1017fa68
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x58]
mov ecx, 0x400
mov esi, 0x1017fab0
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x10]
lea ecx, [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x12
jmp 0x1008e130
xor esi, esi
mov dword [esp + 0xc], 4
lea ebx, [ebx]
movzx edi, byte [ecx]
shl esi, 8
or esi, edi
inc ecx
inc eax
cmp eax, edx
jne 0x1008e154
xor eax, eax
lea ecx, [esp + 0x1c]
dec dword [esp + 0xc]
jne 0x1008e140
mov edi, dword [esp + 0x14]
xor dword [edi], esi
mov esi, dword [esp + 0x10]
add edi, 4
dec esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
jne 0x1008e130
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
lea esi, [ebx + 0x10]
nop
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.1008d460
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi], edx
add esi, 4
inc edi
mov dword [esi], eax
inc edi
add esi, 4
cmp edi, 0x12
jb 0x1008e180
lea eax, [ebx + 0x58]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 4
mov esi, dword [esp + 0xc]
xor edi, edi
lea ebx, [ebx]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.1008d460
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi], edx
add esi, 4
inc edi
mov dword [esi], eax
inc edi
add esi, 4
cmp edi, 0x100
jl 0x1008e1c0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
add ecx, 0x400
dec eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
jne 0x1008e1b4
mov ecx, dword [esp + 0x54]
mov eax, ebx
call fcn.1010122d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1008f930
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x1008f93b
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x1008fa33
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x101824e0]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x101824e0]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x101824e0]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x101824e0]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x101824e0]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x101824e0]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x101824e0]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x101824e0]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x1008f956
test edi, edi
je 0x1008fa52
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x101824e0]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x1008fa37
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret

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

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [esp + 8]
push esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x101824e0]
shr ecx, 8
xor eax, ecx
mov ecx, dword [edx + 4]
mov dword [edx], eax
and eax, 0xff
add eax, 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
mov esi, dword [eax*4 + 0x101824e0]
shr ecx, 8
xor ecx, esi
mov dword [edx + 8], ecx
pop esi
ret

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

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [edx + 8]
push ebx
movsx ebx, byte [esp + 0xc]
push esi
push edi
mov edi, dword [edx]
mov eax, edi
xor eax, ebx
and eax, 0xff
mov eax, dword [eax*4 + 0x101824e0]
shr edi, 8
xor eax, edi
mov edi, dword [edx + 4]
mov dword [edx], eax
and eax, 0xff
add eax, edi
imul eax, eax, 0x8088405
mov esi, ecx
and esi, 0xfffd
or esi, 2
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
mov edi, dword [eax*4 + 0x101824e0]
mov eax, esi
xor eax, 1
imul eax, esi
shr ecx, 8
xor ecx, edi
pop edi
shr eax, 8
pop esi
xor eax, ebx
mov dword [edx + 8], ecx
pop ebx
ret
Function at 0x1008fc80
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x48
push esi
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1008fca2
mov eax, 0x200
pop esi
add esp, 0x48
ret
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
push edi
je 0x1008fcb7
mov ebp, 1
test al, 2
je 0x1008fcbe
or ebp, 2
test al, 4
je 0x1008fcc5
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x1008fccf
or ebp, 0x10
test al, 0x20
je 0x1008fcd6
or ebp, 0x20
test ecx, ecx
je 0x1008fce2
or ebp, 0x40000000
jmp 0x1008fce8
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x1008fcf8
or ebp, 0x800000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [esp + 0x14], eax
jbe 0x1008fda5
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
cmp word [esp + 0x10], 0x54ad
jne 0x1008fda5
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea edx, [eax + 0x34]
cmp ecx, edx
jbe 0x1008fda5
push 0
push 0
push eax
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebx
mov eax, dword [esp + 0x20]
cmp eax, 0x5a4d
je 0x1008fd9f
cmp eax, 0x454e
je 0x1008fd9f
cmp eax, 0x454c
je 0x1008fd9f
cmp eax, 0x4550
jne 0x1008fda5
or ebp, 0x400000
mov eax, dword [esp + 0x60]
test eax, eax
je 0x1008fdaf
mov dword [eax], ebp
mov eax, dword [esp + 0x64]
test eax, eax
je 0x1008fdbd
mov edx, dword [esp + 0x14]
mov dword [eax], edx
mov esi, dword [esp + 0x68]
test esi, esi
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
je 0x1008fe3e
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push 0
sub eax, 0xd53e8000
push 0x989680
sbb ecx, 0x19db1de
push ecx
push eax
call fcn.101046e0
mov dword [esi + 4], edx
mov dword [esi], eax
push 0
mov edx, ebx
sub edx, 0xd53e8000
mov eax, edi
push 0x989680
sbb eax, 0x19db1de
push eax
push edx
call fcn.101046e0
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x2c]
push 0
sub ecx, 0xd53e8000
push 0x989680
sbb edx, 0x19db1de
push edx
push ecx
mov dword [esi + 8], eax
call fcn.101046e0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x1008fe6b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
call fcn.1008fc10
movzx edx, word [esp + 0x20]
movzx eax, word [esp + 0x24]
shl edx, 0x10
add esp, 0x10
or edx, eax
mov dword [esi], edx
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x48
ret
Function at 0x10090050
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ebx, ecx
mov al, byte [ebx + 0x2d]
test al, al
push esi
mov esi, dword [esp + 0x10]
push edi
je 0x100900d7
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x10090081
cmp dword [ebx + 0x40], ebp
jae 0x10090081
push eax
call fcn.10152975
add esp, 4
mov dword [ebx + 0x3c], 0
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x1009009b
lea eax, [ebp + ebp]
push eax
call fcn.1015297a
add esp, 4
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], ebp
mov edi, dword [ebx + 0x3c]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
test ebp, ebp
jbe 0x100900d4
lea edi, [ebx + 0x30]
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
mov cl, byte [esi + eax]
push ecx
push edi
call fcn.1008fac0
mov edx, dword [ebx + 0x3c]
add esp, 8
mov byte [esi + edx], al
inc esi
cmp esi, ebp
jb 0x100900b7
mov esi, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x1009011f
mov eax, dword [ebx + 0x24]
mov edi, dword [ebx + 0x28]
lea ecx, [eax + ebp]
cmp ecx, edi
jb 0x100900fb
pop edi
pop esi
pop ebp
mov dword [ebx + 0x14], 0x30000
xor eax, eax
pop ebx
ret 8
lea edi, [eax + edx]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x24]
add eax, ebp
pop edi
mov dword [ebx + 0x24], eax
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 8
mov eax, dword [ebx + 4]
test eax, eax
je 0x10090141
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
mov dword [ebx + 0x14], 0x1000000
xor eax, eax
pop ebx
ret 8
Function at 0x100904d0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, ecx
mov edx, dword [ebx + 0x84]
test edx, edx
push esi
push edi
je 0x1009054e
mov eax, dword [ebx + 0x8c]
push ebp
mov ebp, dword [ebx + 0x88]
cmp eax, ebp
jb 0x100904f9
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov ecx, dword [esp + 0x18]
sub ebp, eax
cmp ebp, ecx
jbe 0x10090505
mov ebp, ecx
lea esi, [eax + edx]
mov eax, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x8c]
mov ecx, dword [ebx + 0x74]
push ebp
push eax
mov eax, dword [ebx + 0x78]
add edx, ebp
add ecx, ebp
push eax
mov dword [ebx + 0x8c], edx
mov dword [ebx + 0x74], ecx
call fcn.1008f930
add esp, 0xc
mov dword [ebx + 0x78], eax
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
ret 8
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x10090596
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009059d
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x78]
push esi
add ecx, esi
push edi
push eax
mov dword [ebx + 0x74], ecx
call fcn.1008f930
add esp, 0xc
mov dword [ebx + 0x78], eax
pop edi
mov eax, esi
pop esi
pop ebx
ret 8
mov dword [ebx + 0x14], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
ret 8