joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e708
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x46e722
call fcn.00406577
mov esi, dword [eax + 0xc]
push dword [0x564388]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x46e740
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x46e738
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x46e76d
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x46e73a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0046e636
mov esi, eax
jmp 0x46e75f

Function at 0x4ccf61
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.004161e6
call fcn.00402dc0
cmp eax, esi
pop esi
jne 0x4ccf7d
mov ecx, 0x560910
jmp fcn.00408d7b
ret

Function at 0x4d08ee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4d0906
mov edi, dword [esi + 0xc]
jmp 0x4d0946
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4d091f
call fcn.00409f57
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4d0934
call fcn.00409f57
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4d0946
call fcn.00409f57
call fcn.00406577
cmp dword [eax + 0x3c], 0
je 0x4d095b
push edi
mov ecx, ebx
call fcn.004cf72a
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d0808
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4d0979
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d0985
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4f5614
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x55f550]
jne 0x4f561e
repz ret
jmp fcn.004fce24
Function at 0x509b50
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x55f550]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004ffc36
and dword [ebp - 0x14], 0
cmp dword [0x566b50], 0
mov dword [ebp - 0x18], eax
jne 0x509c03
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x509cab
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x509cab
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x54252c
push ebx
mov dword [0x566b50], eax
call edi
push eax
call esi
push 0x542518
push ebx
mov dword [0x566b54], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x566b58], eax
call edi
push eax
call esi
mov dword [0x566b60], eax
test eax, eax
je 0x509c03
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x566b5c], eax
mov eax, dword [0x566b5c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x509c5c
cmp dword [0x566b60], ecx
je 0x509c5c
push eax
call esi
push dword [0x566b60]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x509c5c
test ebx, ebx
je 0x509c5c
call edi
test eax, eax
je 0x509c53
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x509c53
test byte [ebp - 8], 1
jne 0x509c5c
or dword [ebp + 0x10], 0x200000
jmp 0x509c8f
mov eax, dword [0x566b54]
cmp eax, dword [ebp - 0x18]
je 0x509c8f
push eax
call esi
test eax, eax
je 0x509c8f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x509c8f
mov eax, dword [0x566b58]
cmp eax, dword [ebp - 0x18]
je 0x509c8f
push eax
call esi
test eax, eax
je 0x509c8f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x566b50]
call esi
test eax, eax
je 0x509cab
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x509cad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f5614
leave
ret
Function at 0x10001000
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10055c00
call fcn.1001ee70
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov edx, dword [ebp - 0x30]
cmp word [edx], ax
jne 0x10001068
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x10001068
mov ecx, dword [eax + 0xd8]
lea esi, [ecx + edx]
cmp dword [ebp + 0xc], esi
jb 0x10001068
mov eax, dword [eax + 0xdc]
add eax, ecx
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x10001068
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x10001071
mov dword [ebp - 4], 0xfffffffe
xor al, al
call fcn.1001eeb6
ret
Function at 0x10001169
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
push edi
mov ebx, 0x10000
cmp esi, 0x7ff80000
jbe 0x1000118c
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x1000118f
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x100011a2
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x100011a9
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x1024aaa4]
mov ecx, dword [0x1024aaa0]
test eax, eax
jne 0x100011c3
test ecx, ecx
je 0x100011d8
mov eax, ecx
mov dword [0x1024aaa4], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x100011d8
cmp edx, dword [ebp - 4]
jb 0x100011d8
cmp edx, dword [ebp - 8]
jbe 0x100012a9
mov eax, ecx
test ecx, ecx
jmp 0x100011fc
test eax, eax
je 0x100011f7
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100011f7
cmp ecx, dword [ebp - 4]
jb 0x100011f7
cmp ecx, dword [ebp - 8]
jbe 0x100012a9
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x1024aaa4], eax
jne 0x100011de
mov eax, esi
and eax, 0xffff
sub esi, eax
mov edi, esi
cmp esi, dword [ebp - 4]
jbe 0x1000133b
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x10001229
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000133b
cmp dword [ebp - 0x30], ebx
jne 0x10001248
cmp dword [ebp - 0x34], ebx
jae 0x1000125b
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x10001217
jmp 0x1000133b
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1024aaa4], eax
test eax, eax
je 0x1000133b
mov ecx, dword [0x1024aaa0]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x1024aaa0], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x1000129b
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x10001340
cmp esi, dword [ebp - 8]
ja 0x10001340
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.1001f750
add esp, 0xc
mov eax, esi
jmp 0x10001342
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x100012ea
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10001340
cmp dword [ebp - 0x14], ebx
jne 0x10001335
cmp dword [ebp - 0x18], ebx
jb 0x10001335
movzx ecx, si
test ecx, ecx
je 0x10001319
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x1024aaa4], eax
test eax, eax
jne 0x10001277
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 8]
jb 0x100012d8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100013cb
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x1024aaac], edi
je 0x100013de
mov eax, 0x10dd
jmp 0x10001439
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x1024aaac
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x100013d7
push esi
mov esi, dword [0x1024aaa0]
mov dword [0x1024aaa8], edi
mov dword [0x1024aabc], edi
mov dword [0x1024aab8], edi
mov dword [0x1024aab0], edi
mov dword [0x1024aab4], edi
jmp 0x10001432
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x1000141c
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x1000143c
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1024aaac], eax
je 0x10001452
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x1024aabc]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x1000149d
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x1000148e
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x1000148e
call fcn.10001347
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.1001eecb
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x10001461
mov dword [0x1024aabc], ebx
call fcn.10001142
mov esi, dword [0x1024aab8]
cmp esi, ebx
je 0x100014ca
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.1001eecb
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x100014b2
pop edi
pop esi
mov dword [0x1024aab8], ebx
mov dword [0x1024aaac], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10001721
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1024aab0]
test eax, eax
jne 0x10001791
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x1000173d
xor eax, eax
jmp 0x10001790
push esi
push 8
call fcn.1001e381
mov esi, eax
pop ecx
test esi, esi
jne 0x10001751
push 8
pop edi
jmp 0x1000176c
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1000177d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.1001eecb
pop ecx
and dword [0x1024aab4], 0
mov dword [0x1024aab0], edi
mov eax, edi
jmp 0x1000178f
mov eax, dword [0x1024aab8]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x1024aab8], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x100019e5
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1024aaac], eax
je 0x10001a01
mov eax, 0x10dd
jmp 0x10001ae4
mov eax, dword [0x1024aab0]
test eax, eax
jne 0x10001ae4
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x10001a1e
push 6
pop eax
jmp 0x10001ae3
cmp dword [edi], 0
jne 0x10001a36
push 6
pop eax
mov dword [0x1024aab0], eax
mov dword [0x1024aab4], edi
jmp 0x10001ae3
push ebx
push esi
push 0x18
call fcn.1001e381
mov esi, eax
pop ecx
test esi, esi
jne 0x10001a4b
push 8
pop edi
jmp 0x10001ac6
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.1000109f
mov ebx, dword [edi + 0x18]
pop ecx
pop ecx
movzx ecx, byte [edi + 0x17]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x10001abb
cmp ecx, 0x17
ja 0x10001abb
cmp dword [edi + 0x1c], eax
jne 0x10001abb
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001a91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10001ac6
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x1024aabc]
mov dword [esi], eax
mov dword [0x1024aabc], esi
xor eax, eax
jmp 0x10001ae1
push 9
pop edi
cmp dword [0x1024aaa8], edx
jne 0x10001acc
mov dword [0x1024aab0], edi
test esi, esi
je 0x10001ad7
push esi
call fcn.1001eecb
pop ecx
mov eax, dword [ebp + 8]
mov dword [0x1024aab4], eax
mov eax, edi
pop esi
pop ebx
pop edi
leave
ret 8
Function at 0x10005ad0
Capabilities:
Allocate or change rwx memory
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10005bc5
cmp dword [ebp - 4], 1
je 0x10005af1
jmp 0x10005c46
lea ecx, [ebp - 8]
push ecx
push 0x40
push 0x2b3ffe
push 0x401000
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp eax, 1
jne 0x10005bc0
mov ecx, 0x100759ec
call fcn.10016800
call fcn.10019430
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x10004f50
push 7
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x1024a40c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x10019e10
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x1024a410], eax
push 0
push 0
push 0x1001a180
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x1024a414], eax
push str.._Glow.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1024a41c], eax
push 0x10042480
call fcn.1001a830
add esp, 4
test eax, eax
jle 0x10005bc0
call fcn.100013cb
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10001721
push 0x1001a980
push 0x1024a434
call fcn.10001af0
push 0x1001a970
push 0x1024a438
call fcn.10001af0
call fcn.10001ae8
jmp 0x10005c46
mov edx, dword [0x1024a40c]
push edx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword [0x1024a410]
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov ecx, dword [0x1024a414]
push ecx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
cmp dword [0x1024a41c], 0
je 0x10005c01
mov edx, dword [0x1024a41c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push str.WindowMode
call fcn.1001a830
add esp, 4
test eax, eax
jle 0x10005c46
call fcn.100013cb
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10001721
push 0x1001a980
push 0x1024a434
call fcn.100019e5
push 0x1001a970
push 0x1024a438
call fcn.100019e5
call fcn.10001ae8
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000ed50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10057294]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x1000ed77
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x1000ed7e
mov al, 1
jmp 0x1000ee52
call fcn.10011400
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.10011400
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.10011460
add esp, 8
movzx eax, al
test eax, eax
je 0x1000edba
xor al, al
jmp 0x1000ee52
mov dword [ebp - 0x48], 0x20
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x38]
call fcn.10013370
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x1000edf6
cmp dword [ebp - 0x30], 1
je 0x1000edfd
cmp dword [ebp - 0x30], 3
je 0x1000ee4c
jmp 0x1000ee50
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x34], ecx
je 0x1000ee2c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.1002570b
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x1000ee2c
xor al, al
jmp 0x1000ee52
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x1000ee40
mov dword [ebp - 0x38], 1
jmp 0x1000ee47
mov dword [ebp - 0x38], 0
mov al, byte [ebp - 0x38]
jmp 0x1000ee52
mov al, 1
jmp 0x1000ee52
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001e370
mov esp, ebp
pop ebp
ret
Function at 0x10012570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x10057294]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x2c], ecx
call fcn.10011400
mov dword [ebp - 0x44], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.10011460
add esp, 8
movzx edx, al
test edx, edx
je 0x100125b5
lea eax, [ebp + 8]
push eax
call fcn.10012420
add esp, 4
jmp 0x10012736
mov ecx, dword [ebp - 0x2c]
call fcn.10012900
test eax, eax
je 0x100125f7
mov ecx, dword [ebp - 0x2c]
call fcn.10012900
mov esi, eax
mov ecx, dword [ebp - 0x2c]
call fcn.10011440
cmp esi, eax
jae 0x100125f7
lea ecx, [ebp + 8]
push ecx
call fcn.10012fe0
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x2c]
call fcn.10010240
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x10012736
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x4c], 0
jne 0x1001260a
call fcn.10011400
jmp 0x10012736
mov ecx, dword [ebp - 0x2c]
call fcn.10010290
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
jne 0x10012659
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.10012fe0
add esp, 4
movzx ecx, al
push ecx
call fcn.10006b90
add esp, 8
movzx edx, al
test edx, edx
je 0x10012649
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
jmp 0x10012651
call fcn.10011400
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
jmp 0x10012736
mov dword [ebp - 0x50], 0x20
lea ecx, [ebp + 8]
push ecx
call fcn.10012fe0
add esp, 4
mov byte [ebp - 0x2e], al
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x2d]
push eax
lea ecx, [ebp - 0x2e]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x38]
call fcn.10012530
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x10012731
cmp dword [ebp - 0x34], 1
jle 0x100126b4
cmp dword [ebp - 0x34], 3
je 0x10012701
jmp 0x10012731
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x38], ecx
je 0x100126e6
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.1002570b
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x100126e6
call fcn.10011400
jmp 0x10012736
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x2e]
cmp dword [ebp - 0x4c], edx
je 0x100126fa
mov eax, dword [ebp + 8]
jmp 0x10012736
call fcn.10011400
jmp 0x10012736
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x2e]
push edx
call fcn.10006b90
add esp, 8
movzx eax, al
test eax, eax
je 0x10012724
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x40], ecx
jmp 0x1001272c
call fcn.10011400
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
jmp 0x10012736
call fcn.10011400
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001e370
mov esp, ebp
pop ebp
ret 4
Function at 0x10013480
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, 1
test eax, eax
je 0x100135a6
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x100134b8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.100135c0
jmp 0x100135ba
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.1000f7b0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x1001354c
jg 0x100134e0
cmp dword [ebp + 0xc], 0
jbe 0x1001354c
cmp dword [ebp - 8], 0
jl 0x1001354c
jg 0x100134ee
cmp dword [ebp - 0xc], 0
jbe 0x1001354c
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x1001350c
jl 0x10013500
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x1001350c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 4]
call fcn.10011fa0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.10010f90
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.10011be0
cmp dword [ebp + 0x10], 0
jl 0x10013596
jg 0x1001355a
cmp dword [ebp + 0xc], 0
jbe 0x10013596
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x10013596
mov ecx, dword [ebp - 4]
call fcn.10010290
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1002509e
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x100135ba
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.100135c0
mov esp, ebp
pop ebp
ret 0xc