joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457d30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x78], ebp
je 0x457eed
push ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x90]
cmp eax, ebp
je 0x457e66
mov ecx, dword [esi + 0x94]
sub ecx, eax
mov eax, dword [esp + 0x14]
sar ecx, 4
cmp eax, ecx
jae 0x457e66
xor ebx, ebx
mov edx, dword [esi + 0x90]
mov eax, dword [esp + 0x10]
add eax, edx
mov ecx, dword [eax + 4]
cmp ecx, ebp
je 0x457e4d
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x457e4d
mov eax, ecx
mov ecx, esi
mov edi, dword [eax + ebx*4]
push edi
call fcn.00458fa0
mov ebp, eax
test ebp, ebp
je 0x457e45
push ebp
mov ecx, esi
call fcn.00459890
test eax, eax
je 0x457e45
mov edx, dword [esi + 0x74]
cmp edi, edx
je 0x457e45
mov eax, dword [esp + 0x10]
xor ecx, ecx
test ebx, ebx
sete cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x90]
add eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x457e06
xor eax, eax
jmp 0x457e0e
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
dec eax
xor ecx, ecx
cmp ebx, eax
lea eax, [edi + 1]
sete cl
mov dword [esp + 0x28], ecx
xor ecx, ecx
cmp eax, edx
sete cl
dec edi
mov dword [esp + 0x30], ecx
xor eax, eax
cmp edi, edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
sete al
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x3c], eax
call fcn.00459f60
inc ebx
xor ebp, ebp
jmp 0x457d97
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
add eax, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x457d70
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
call fcn.00459290
test eax, eax
pop ebx
je 0x457eed
mov ecx, dword [esi + 0x74]
push ecx
mov ecx, esi
call fcn.00458fa0
mov edi, eax
cmp edi, ebp
je 0x457eed
push edi
mov ecx, esi
call fcn.00459890
test eax, eax
je 0x457eed
mov eax, 1
lea edx, [esi + 0x1f8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], edx
call fcn.00459490
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x20], eax
push ecx
mov ecx, esi
call fcn.00459500
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push eax
call fcn.00459f60
pop edi
pop esi
pop ebp
add esp, 0x28
ret 4
Function at 0x45ee30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x48b1c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.0047770b
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.0047770b
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.0045f950
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x45f9a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48b2a0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00483854
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x45f9d3
xor al, al
jmp 0x45faff
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x45f9f5
xor al, al
jmp 0x45faff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x45fa08
xor al, al
jmp 0x45faff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x45fa1c
xor al, al
jmp 0x45faff
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.004777bb
test eax, eax
jne 0x45fa50
xor al, al
jmp 0x45faff
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x4b2804
mov dword [esp + 0x20], ebp
call fcn.00483854
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.0048082d
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.00480884
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x45fae4
mov ax, word [ebx]
test ax, ax
je 0x45fad6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.0045fb20
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x45faba
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.00480884
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x460060
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.00481755
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4600a6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.00468e35
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x4cea64
push ecx
call fcn.0046a624
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x479f86
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x479fbe
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047ccb0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047cc88
jmp 0x479fca
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47b749
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47b78b
call fcn.00483854
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47b78b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47b782
xor eax, eax
jmp 0x47b793
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047b799
pop edi
pop esi
pop ebx
ret 4

Function at 0x483f18
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x483f46
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x483f64
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00483e7e
jmp 0x483f64
mov eax, dword [esi + 0x14]
test eax, eax
je 0x483f64
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00483e7e
test edi, edi
mov eax, edi
jne 0x483f4e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001005
Capabilities:
Timestomp file

Disassembly:
jmp 0x10010010
mov eax, dword [0x10080e8c]
sub esp, 8
cmp eax, 8
push esi
jne 0x10010028
mov eax, 1
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 7
push 0xc0000000
push eax
call fcn.100011db
mov esi, eax
cmp esi, 0xffffffff
je 0x1001009c
lea ecx, [esp + 4]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ecx, dword [esp + 4]
mov eax, 0x77359400
cmp ecx, eax
jbe 0x1001006c
sub ecx, eax
jmp 0x10010077
sub ecx, eax
mov eax, dword [esp + 8]
dec eax
mov dword [esp + 8], eax
lea edx, [esp + 4]
push edi
push edx
push 0
push 0
push esi
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
mov edi, eax
call fcn.100011ea
mov eax, edi
pop edi
pop esi
add esp, 8
ret
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x10001131
Capabilities:
Capture screenshot
Open clipboard

Disassembly:
jmp 0x100170d0
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push esi
mov edi, eax
call ebp
mov ebx, eax
push 0xa
push esi
mov dword [esp + 0x1c], ebx
call ebp
push eax
push ebx
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x14]
push 0xcc0020
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
push 0
push 0
push esi
push eax
push ecx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push 0xc
push esi
call ebp
push eax
push ebx
call fcn.10001582
add esp, 8
mov ebp, eax
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebp
push 8
call fcn.1000114f
call dword [sym.imp.USER32.dll_CloseClipboard]
mov edx, dword [esp + 0x10]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
call esi
push edi
call esi
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push eax
call esi
push ebx
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10001334
Capabilities:
Timestomp file

Disassembly:
jmp 0x1000ff30
mov eax, dword [0x10080e8c]
sub esp, 8
cmp eax, 8
push esi
jne 0x1000ff48
mov eax, 1
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 7
push 0xc0000000
push eax
call fcn.100011db
mov esi, eax
cmp esi, 0xffffffff
je 0x1000ffd0
lea ecx, [esp + 4]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [esp + 4]
cmp eax, 0x77359400
jbe 0x1000ff8d
sub eax, 0x77359400
jmp 0x1000ff9b
mov ecx, dword [esp + 8]
sub eax, 0x77359400
dec ecx
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push edi
mov dword [esp + 8], eax
mov dword [edx], eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 8]
push edx
push 0
push 0
push esi
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
mov edi, eax
call fcn.100011ea
mov eax, edi
pop edi
pop esi
add esp, 8
ret
xor eax, eax
pop esi
add esp, 8
ret
Function at 0x10001483
Capabilities:
Capture screenshot
Open clipboard

Disassembly:
jmp 0x100171f0
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
test esi, esi
push edi
je 0x1001720c
mov edi, dword [esp + 0x28]
push edi
call dword [sym.imp.USER32.dll_GetWindowDC]
jmp 0x1001721b
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edi, dword [esp + 0x28]
mov ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
test esi, esi
mov ebp, eax
je 0x10017238
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x10017244
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub esi, edi
mov edi, dword [esp + 0x20]
sub edi, edx
push edi
push esi
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
push ebx
push edi
push esi
push 0
push 0
push ebp
mov dword [esp + 0x50], eax
call dword [sym.imp.GDI32.dll_BitBlt]
push 0xc
push ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, dword [esp + 0x10]
push eax
push edi
call fcn.10001582
add esp, 8
mov esi, eax
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 8
call fcn.1000114f
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x28]
push ebx
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [esp + 0x2c]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call ebx
push edi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x100015af
Capabilities:
Read .ini file

Disassembly:
jmp 0x100185c0
mov eax, dword [esp + 8]
add ecx, 4
push esi
mov esi, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
push 0x514
push esi
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x100185f7
mov eax, dword [esp + 0x10]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x100185ed
pop esi
ret 0x10

Function at 0x100015eb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x1000e870
mov eax, dword [esp + 4]
push esi
push eax
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1000e895
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1000e895
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret
Function at 0x10001640
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
jmp 0x1000e8b0
sub esp, 0x220
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
push edi
xor esi, esi
mov ebx, 0x1006ee98
cmp dword [ebx], 1
jne 0x1000e8e7
mov eax, dword [ebx + 4]
test eax, eax
jne 0x1000e8e7
mov eax, dword [ebx + 0xc]
push eax
call fcn.100015eb
add esp, 4
test eax, eax
je 0x1000eaaa
cmp dword [ebx], 0
jne 0x1000e994
mov edx, dword [0x100508e0]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov word [esp + 0x10], ax
mov dword [esp + 0x12], ecx
push edx
mov dword [esp + 0x1a], ecx
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x22], ecx
push 0x1004ee14
push eax
mov dword [esp + 0x2e], ecx
call fcn.10023620
push 0x104
lea ecx, [esp + 0x38]
push 0x10080f68
push ecx
call fcn.10023a9f
lea edx, [esp + 0x2c]
push 8
lea eax, [esp + 0x44]
push edx
push eax
call fcn.10023a9f
add esp, 0x28
lea ecx, [esp + 0x10]
push ecx
call ebp
cmp eax, 0xffffffff
je 0x1000e96f
lea edx, [esp + 0x24]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 2
push 0
push 0
lea eax, [esp + 0x38]
push 0x40000000
push eax
call fcn.100011db
cmp eax, 0xffffffff
jne 0x1000ea7b
add ebx, 0x1c
inc esi
cmp ebx, 0x1007c958
jl 0x1000e8c7
xor esi, esi
mov ebx, 0x1006ee9c
cmp dword [ebx - 4], 1
jne 0x1000ea5d
cmp dword [ebx], 0
jne 0x1000ea5d
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x24]
xor edx, edx
rep stosd dword es:[edi], eax
mov word [esp + 0x10], ax
mov eax, dword [0x100508e0]
mov dword [esp + 0x12], edx
push eax
mov dword [esp + 0x1a], edx
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x22], edx
push 0x1004ee14
push ecx
mov dword [esp + 0x2e], edx
call fcn.10023620
push 0x104
lea edx, [esp + 0x38]
push 0x10080f68
push edx
call fcn.10023a9f
lea eax, [esp + 0x2c]
push 8
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.10023a9f
add esp, 0x28
lea edx, [esp + 0x10]
push edx
call ebp
cmp eax, 0xffffffff
je 0x1000ea3c
lea eax, [esp + 0x24]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 2
push 0
push 0
lea ecx, [esp + 0x38]
push 0x40000000
push ecx
call fcn.100011db
cmp eax, 0xffffffff
jne 0x1000eaa4
add ebx, 0x1c
inc esi
cmp ebx, 0x1007c95c
jl 0x1000e9ab
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x220
ret
push eax
call fcn.100011ea
lea ecx, [esp + 0x24]
push ecx
call fcn.1000156e
cmp esi, 0x7d0
jge 0x1000e9a4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret
push eax
call fcn.100011ea
push esi
call fcn.1000141f
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x220
ret
Function at 0x10021e80
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
push ebx
push esi
push edi
push 1
push eax
call fcn.10022850
push 0
mov ebx, eax
mov ecx, dword [esp + 0x28]
push ecx
call fcn.10022850
xor edx, edx
mov dl, byte [ebx + 0x1f]
mov esi, edx
test esi, esi
je 0x10022033
cmp esi, 0x1f
jge 0x10022033
cmp byte [esi + ebx], 0xe9
jne 0x10022033
mov ecx, dword [esi + ebx + 1]
lea edi, [ecx + ebx + 5]
mov cl, byte [ecx + ebx + 5]
cmp cl, 0xe9
je 0x10021ee6
push 9
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 8
mov edx, dword [edi + 1]
lea ecx, [edx + edi + 5]
cmp ecx, eax
je 0x10021f04
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 8
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x10021f4a
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x10021f4a
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x10021f4a
lea edx, [esp + 0x18]
push edx
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ecx, ecx
mov eax, ebx
test esi, esi
mov edx, edi
jle 0x10021f68
push 0
push eax
push edx
call fcn.10023110
mov ecx, eax
sub ecx, ebx
cmp ecx, esi
lea edx, [ecx + edi]
jl 0x10021f54
cmp ecx, esi
je 0x10021fda
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1002203b
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1002203b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1002203b
push eax
mov eax, dword [esp + 0x10]
push ecx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x1002203b
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10022025
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x10022025
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10022025
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x10022025
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret 8
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret 8
Function at 0x10022e40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10049270
push 0x10023be8
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 ecx, eax
mov dword [ebp - 0x1c], ecx
xor edi, edi
cmp eax, edi
jne 0x10022e80
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edi
cmp word [ecx], 0x5a4d
je 0x10022ea1
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
jmp 0x10022fc2
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x24], eax
cmp dword [eax], 0x4550
je 0x10022ec8
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
jmp 0x10022fc2
mov cx, word [eax + 0x14]
cmp cx, di
jne 0x10022ee8
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
jmp 0x10022fc2
and ecx, 0xffff
lea ecx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edi
xor edx, edx
mov dx, word [eax + 6]
cmp edi, edx
jae 0x10022fb0
lea eax, [edi + edi*4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax*8]
mov esi, str..patch
mov ecx, eax
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x10022f3a
test dl, dl
je 0x10022f36
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x10022f3a
add ecx, 2
add esi, 2
test dl, dl
jne 0x10022f16
xor ecx, ecx
jmp 0x10022f3f
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x10022f9b
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x10022fb0
mov edx, dword [eax + 0x10]
test edx, edx
je 0x10022fb0
mov edx, dword [ebp - 0x1c]
lea esi, [ecx + edx]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
cmp eax, 0x30
jb 0x10022fb0
cmp dword [esi + 4], 0x727444
jne 0x10022fb0
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x10022f77
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 edi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x24]
jmp 0x10022ef8
mov dword [ebp - 4], 0xffffffff
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
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