joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f4b08
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
lea eax, [esp + 0x105]
push eax
push 0
push 0x4f4b4c
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
lea eax, [esp + 0x105]
call fcn.0040d270
add esp, 0x20c
pop ebx
ret

Function at 0x4f4ed8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
mov ecx, dword [0x52bf8c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x4f3fd4]
call fcn.0046497c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f50a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x52c284]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0046a304
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov eax, dword [eax + 0x1fc]
mov edx, edi
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp - 4]
call fcn.00465770
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
call fcn.004657a0
mov eax, dword [0x52c284]
mov eax, dword [eax]
call fcn.00469d48
mov edx, eax
mov eax, dword [ebp - 4]
sub edx, dword [eax + 0x48]
sar edx, 1
jns 0x4f4f73
adc edx, 0
mov eax, dword [ebp - 4]
call fcn.0044ba44
mov eax, dword [0x52c284]
mov eax, dword [eax]
call fcn.00469d3c
mov edx, eax
mov eax, dword [ebp - 4]
sub edx, dword [eax + 0x4c]
sar edx, 1
jns 0x4f4f96
adc edx, 0
mov eax, dword [ebp - 4]
call fcn.0044ba68
test bl, bl
je 0x4f501c
mov eax, dword [edi + 0xc]
mov edx, dword [0x46e3e0]
call fcn.004047d0
test al, al
jne 0x4f501c
mov eax, dword [edi + 0xc]
mov edx, dword [0x429d68]
call fcn.004047d0
test al, al
jne 0x4f501c
mov eax, edi
call fcn.004f5f8c
test al, al
je 0x4f4ff9
cmp dword [0x52b308], 0
je 0x4f4ff9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
xor edx, edx
call fcn.0044c1f4
mov eax, dword [edi + 0xc]
mov cl, 0xff
mov edx, dword [ebp - 4]
call fcn.004f6080
jmp 0x4f501c
push 0
mov eax, dword [edi + 0xc]
call fcn.004f4928
push eax
mov eax, dword [ebp - 4]
call fcn.00452af4
push eax
call sub.user32.dll_SetWindowRgn
mov eax, dword [ebp - 4]
mov byte [eax + 0x2fc], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x2fe], 0
mov eax, dword [ebp - 4]
mov dl, byte [ebp + 8]
mov byte [eax + 0x2fd], dl
mov eax, dword [ebp - 4]
call fcn.00468cec
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x88]
mov eax, dword [0x52bf8c]
mov eax, dword [eax]
call fcn.0046be4c
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
jmp 0x4f5066
mov eax, dword [0x52bf8c]
mov eax, dword [eax]
call fcn.0046c1c8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x2fe], 0
jne 0x4f5083
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
imul edx, esi, 0x3e8
cmp eax, edx
jl 0x4f505a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f50ae
mov eax, dword [0x52c284]
mov eax, dword [eax]
xor edx, edx
call fcn.0046a304
mov eax, dword [ebp - 4]
call fcn.00404638
ret
Function at 0x4f5378
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
cmp byte [eax - 1], 0
je 0x4f538c
mov ebx, 3
jmp 0x4f5391
mov ebx, 1
push ebx
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00405958
push eax
push 0x4f53bc
mov eax, dword [0x52bf8c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
pop ebx
pop ebp
ret

Function at 0x4f53c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 1], cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00405948
mov eax, dword [ebp - 0xc]
call fcn.00405948
lea esi, [ebp - 0x48]
xor eax, eax
push ebp
push 0x4f5585
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4f555d
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 8]
call fcn.0048d2ec
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 8]
call fcn.00405520
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 0xc]
call fcn.0048d2ec
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0xc]
call fcn.00405520
lea eax, [ebp - 0x54]
push eax
mov ecx, 7
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004059b8
mov eax, dword [ebp - 0x54]
mov edx, 0x4f559c
call fcn.004058a4
je 0x4f54af
lea eax, [ebp - 0x58]
push eax
mov ecx, 8
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004059b8
mov eax, dword [ebp - 0x58]
mov edx, 0x4f55ac
call fcn.004058a4
je 0x4f54af
lea eax, [ebp - 0x5c]
push eax
mov ecx, 6
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004059b8
mov eax, dword [ebp - 0x5c]
mov edx, 0x4f55c0
call fcn.004058a4
jne 0x4f54c0
mov eax, dword [0x52bcb8]
cmp dword [eax], 4
jg 0x4f54c0
push ebp
call fcn.004f5378
pop ecx
mov eax, esi
xor ecx, ecx
mov edx, 0x3c
call fcn.00403ba0
mov dword [esi], 0x3c
mov dword [esi + 4], 0x40
mov eax, 0x4f55c8
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 8]
call fcn.00405958
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0xc]
call fcn.00405958
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x60]
call fcn.0040d030
mov eax, dword [ebp - 0x60]
call fcn.00405958
mov dword [esi + 0x18], eax
cmp byte [ebp - 1], 0
je 0x4f551b
mov dword [esi + 0x1c], 3
jmp 0x4f5522
mov dword [esi + 0x1c], 1
or eax, 0xffffffff
call fcn.00403bc0
mov dword [esi + 8], eax
mov ebx, dword [esi + 8]
test ebx, ebx
jbe 0x4f5522
push ebx
call sub.user32.dll_IsWindow
test eax, eax
jne 0x4f5522
push esi
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x4f555d
cmp byte [ebp + 8], 0
je 0x4f555d
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4f555d
push 0xffffffffffffffff
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f558c
lea eax, [ebp - 0x60]
mov edx, 6
call fcn.004054ac
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004054ac
ret
Function at 0x4f567a
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov eax, dword [0x52c2b0]
cmp dword [eax], 2
je 0x4f55e9
mov byte [esp], 1
jmp 0x4f56be
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x4f5627
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x4f5627
lea eax, [esp + 4]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x4f56be
mov eax, 0x400
call fcn.00402e98
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x400
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x4f56b7
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x52b31c
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x4f56ad
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x4f56a9
mov byte [esp], 1
jmp 0x4f56ad
inc edi
dec ebx
jne 0x4f5690
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00402ec8
mov al, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4f57c8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f5854
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4f5837
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004f5760
mov eax, dword [ebp - 0xc]
call fcn.00405958
push eax
call sub.kernel32.dll_GetFileAttributesA
test eax, eax
jns 0x4f581d
call fcn.00404574
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f583e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x5223e8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x522501
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea edx, [ebp - 0x14]
mov eax, dword [0x52bf8c]
mov eax, dword [eax]
call fcn.0046ca44
mov eax, dword [ebp - 0x14]
call fcn.00405958
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x5224eb
push 2
push 0
push 0xfffffffffffffff6
push esi
call sub.kernel32.dll_SetFilePointer_1
lea eax, [ebp - 0xf]
xor ecx, ecx
mov edx, 0xb
call fcn.00403ba0
push 0
lea eax, [ebp - 4]
push eax
push 0xa
lea eax, [ebp - 0xf]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
mov edx, 0x522510
lea eax, [ebp - 0xf]
call fcn.0040d154
test eax, eax
jne 0x5224a0
push 2
push 0
push 0xfffffffffffffff2
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x5542dc
push esi
call sub.kernel32.dll_ReadFile_1
mov bl, 1
jmp 0x5224e5
mov edx, 0x52251c
lea eax, [ebp - 0xf]
call fcn.0040d154
test eax, eax
jne 0x5224e5
push 2
push 0
push 0xfffffffffffffff2
push esi
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x5542dc
push esi
call sub.kernel32.dll_ReadFile_1
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
sub eax, dword [0x5542dc]
mov dword [0x5542dc], eax
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x522508
lea eax, [ebp - 0x14]
call fcn.00405488
ret
Function at 0x2209f80
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x2209fae
or eax, 0xffffffff
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret

Function at 0x220a040
Capabilities:
Get file size

Disassembly:
sub esp, 0x23c
mov eax, dword [esp + 0x244]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x1c]
xor edi, edi
push ecx
mov dword [esp + 0x14], edi
xor ebx, ebx
call fcn.0226b20c
mov edx, dword [esp + 0x25c]
lea eax, [esp + 0x20]
push 0x2277308
push eax
mov dword [edx], edi
call fcn.0226b864
mov esi, eax
add esp, 0x10
cmp esi, edi
je 0x220a097
push edi
lea ecx, [esi + 4]
push edi
push ecx
call fcn.0226b434
add esp, 0xc
mov ebx, eax
mov word [esi], di
lea edx, [esp + 0x18]
push 4
push edx
call fcn.02268640
add esp, 8
test eax, eax
je 0x220a0b9
pop edi
pop esi
mov eax, 0x492
pop ebx
add esp, 0x23c
ret
push ebp
lea eax, [esp + 0x18]
push eax
push 0x20
lea ecx, [esp + 0x24]
push 0x8000
push ecx
mov dword [esp + 0x28], edi
call fcn.022687b0
mov ebp, eax
add esp, 0x10
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
jne 0x220a0fa
mov edx, dword [esp + 0x18]
push edx
call fcn.022015d0
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x23c
ret
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x220a114
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x220a1a2
cmp esi, edi
jle 0x220a1a2
push edi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x220a131
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x250]
mov edi, dword [eax + 0x90]
mov eax, dword [eax + 0x80]
sub eax, 2
je 0x220a151
sub eax, 0x11
je 0x220a151
dec eax
jne 0x220a155
sub esi, ebx
mov edi, esi
lea eax, [edi + 8]
push eax
call fcn.0226b115
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x220a171
mov dword [esp + 0x10], 0x446
jmp 0x220a1a2
mov ecx, dword [esp + 0x14]
push edi
lea ebp, [ebx + 4]
push ebp
push ecx
call fcn.02209f80
add esp, 0xc
cmp eax, 0xffffffff
jne 0x220a1b8
push eax
call fcn.022015d0
add esp, 4
mov dword [esp + 0x10], eax
push ebx
call fcn.0226affd
add esp, 4
mov ebp, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x23c
ret
mov edx, dword [esp + 0x250]
mov eax, dword [edx + 0x80]
dec eax
cmp eax, 0x14
ja case.0x220a1d2.7
movzx eax, byte [eax + 0x220a244]
jmp dword [eax*4 + 0x220a238]
mov dword [ebx], edi
jmp 0x220a195
mov eax, ebp
mov byte [ebx + edi + 4], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x220a1e7
sub eax, edx
mov esi, eax
lea ecx, [esi + esi + 2]
push ecx
call fcn.0226b115
mov edx, dword [esp + 0x25c]
add esp, 4
test eax, eax
mov dword [edx], eax
jne 0x220a219
mov dword [esp + 0x10], 0x446
jmp 0x220a195
inc esi
push esi
push ebp
push eax
call fcn.02201c20
add esp, 0xc
jmp 0x220a195
mov eax, dword [esp + 0x258]
mov dword [eax], ebx
jmp 0x220a19e
Function at 0x2210440
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push edi
xor edi, edi
cmp ebp, edi
jne 0x2210461
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push eax
push edi
push ecx
call sym.edb500x.dll_ListUsersW
pop edi
pop ebp
ret 0xc
push ebx
push esi
mov esi, dword [esp + 0x1c]
movsx eax, word [esi]
push 0x158
push eax
mov dword [esp + 0x20], eax
call fcn.0226b127
mov ebx, eax
add esp, 8
cmp ebx, edi
je 0x22105a2
mov edx, dword [esp + 0x14]
push esi
push ebx
push edx
call sym.edb500x.dll_ListUsersW
cmp eax, edi
mov dword [esp + 0x1c], eax
jne 0x22105a2
mov dword [esp + 0x14], edi
lea edi, [ebx + 0xa]
lea esi, [ebp + 4]
sub ebx, ebp
mov ebp, 0x4f0
nop
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
jge 0x2210599
mov ecx, dword [edi - 0xa]
mov dword [esi - 4], ecx
mov edx, dword [ebx + esi]
mov dword [esi], edx
mov ax, word [edi - 2]
mov word [esi + 4], ax
mov cl, byte [edi]
mov byte [esi + 6], cl
mov dl, byte [edi + 1]
mov byte [esi + 7], dl
mov al, byte [edi + 2]
mov byte [esi + 8], al
mov cl, byte [edi + 3]
mov byte [esi + 9], cl
mov dx, word [edi + 4]
mov word [esi + 0xa], dx
mov al, byte [edi + 6]
mov byte [esi + 0xc], al
mov cl, byte [edi + 7]
mov byte [esi + 0xd], cl
mov dl, byte [edi + 8]
mov byte [esi + 0xe], dl
mov al, byte [edi + 9]
mov byte [esi + 0xf], al
mov cl, byte [edi + 0xa]
push 0x50
lea edx, [edi + 0xc]
push edx
lea eax, [esi + 0x11]
push eax
mov byte [esi + 0x10], cl
call fcn.02201bf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x2210579
push 0x40
lea ecx, [edi + 0x5c]
push ecx
lea edx, [esi + 0x61]
push edx
call fcn.02201bf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x2210579
push 0x80
lea eax, [edi + 0x9c]
push eax
lea ecx, [esi + 0xa1]
push ecx
call fcn.02201bf0
add esp, 0xc
cmp eax, 0xffffffff
je 0x2210579
push 0x30
lea edx, [edi + 0x11c]
push edx
lea eax, [esi + 0x121]
push eax
call fcn.02201bf0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x221057d
mov dword [esp + 0x1c], ebp
inc dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add edi, 0x158
add esi, 0x158
test eax, eax
je 0x22104b0
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
ret 0xc
pop esi
pop ebx
mov eax, edi
pop edi
pop ebp
ret 0xc

Function at 0x2216dc0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2216dee
or eax, 0xffffffff
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret
Function at 0x2217370
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
mov ecx, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x1c]
xor eax, eax
push edi
mov dword [esp + 8], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0x20
push 0x8000
push ecx
push ebx
mov dword [esp + 0x20], 0x20000
call fcn.0225dfa0
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
jne 0x22173bb
pop edi
mov eax, 0x429
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [ebx + 0xd48]
mov edx, dword [ebx + 0x83c]
push ebp
push 6
push 0x42
push eax
push ecx
call dword [edx + 0x2f4]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x22173f9
push edi
mov dword [esp + 0x10], 0x429
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop ebp
pop edi
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x10]
push esi
lea edx, [esp + 0x14]
push edx
push eax
push 0x400
call fcn.0225e120
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x2217421
mov dword [esp + 0x10], 0x446
jmp 0x2217487
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push esi
push edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x221746c
mov edi, dword [esp + 0x18]
cmp edi, 0xffffffff
je 0x221746c
mov eax, dword [ebx + 0x83c]
push edi
push esi
push ebp
call dword [eax + 0x32c]
cmp eax, 0xffffffff
je 0x221746c
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x2217425
jmp 0x221747a
push 5
call fcn.022015d0
add esp, 4
mov dword [esp + 0x10], eax
push esi
call fcn.0226affd
mov edi, dword [esp + 0x20]
add esp, 4
mov ecx, dword [ebx + 0x83c]
push ebp
call dword [ecx + 0x2fc]
mov eax, dword [esp + 0x10]
test eax, eax
pop esi
je 0x22174aa
mov edx, dword [esp + 0x2c]
push edx
call fcn.02268750
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
pop ebp
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x22174c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
lea eax, [esp + 0x14]
push eax
push 0x20
push 0x8000
push ecx
xor edi, edi
push esi
mov dword [esp + 0x24], 0x20000
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
call fcn.0225dfa0
mov ebp, eax
add esp, 0x14
cmp ebp, 0xffffffff
jne 0x2217509
pop edi
pop esi
mov eax, 0x429
pop ebp
add esp, 0x10
ret
mov eax, dword [esp + 0x28]
push ebx
lea edx, [esp + 0x18]
push edx
push 0x10
push 0x8102
push eax
push esi
call fcn.0225dfa0
mov ebx, eax
add esp, 0x14
cmp ebx, 0xffffffff
jne 0x2217546
push ebp
mov dword [esp + 0x14], 0x429
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
push edx
push 0x400
call fcn.0225e120
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x221756d
mov dword [esp + 0x10], 0x446
jmp 0x22175da
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push esi
push ebp
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x22175c3
mov edi, dword [esp + 0x1c]
cmp edi, 0xffffffff
je 0x22175c3
push 0
lea edx, [esp + 0x20]
push edx
push edi
push esi
push ebx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x22175c3
cmp dword [esp + 0x1c], 0xffffffff
je 0x22175c3
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x2217571
jmp 0x22175d1
push 5
call fcn.022015d0
add esp, 4
mov dword [esp + 0x10], eax
push esi
call fcn.0226affd
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x22175f6
mov eax, dword [esp + 0x2c]
push eax
call fcn.02268750
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x22207a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push edi
push 0x20
push 1
xor ebp, ebp
xor edi, edi
call fcn.0226b127
mov ebx, eax
mov eax, dword [esp + 0x50]
add esp, 8
cmp ebx, ebp
mov dword [eax], ebp
jne 0x22207ce
pop edi
pop ebp
mov eax, 0x446
pop ebx
add esp, 0x2c
ret
mov eax, dword [esp + 0x40]
mov dword [ebx], 0xa0ef0fe3
mov ecx, dword [eax + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x44]
cmp eax, ebp
push esi
mov dword [ebx + 4], ecx
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], ebp
jle 0x222092d
push 0x30
push eax
call fcn.0226b127
add esp, 8
cmp eax, ebp
mov dword [ebx + 0x18], eax
jne 0x222081b
push ebx
mov edi, 0x446
call sym.edb500x.dll_FreeExpression
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret
mov esi, eax
mov dword [esp + 0x10], ebp
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x48]
jge 0x2220919
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0x460]
push ebp
lea ecx, [esp + 0x18]
push ecx
push 0x24
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x22208e9
cmp dword [esp + 0x14], 0x24
jne 0x22208e9
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esi], eax
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
mov dword [esi + 4], ecx
jne 0x222087e
xor eax, eax
jmp 0x222088e
mov edx, dword [esp + 0x44]
imul eax, eax, 0xc8
add eax, dword [edx + 0x578]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x30]
cmp eax, ebp
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x20], edx
jle 0x22208f5
push eax
call fcn.0226b115
add esp, 4
cmp eax, ebp
mov dword [esi + 0xc], eax
jne 0x22208c8
mov edi, 0x446
jmp 0x22208f5
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
push ecx
push eax
mov eax, dword [edx + 0x460]
push eax
call fcn.02209f80
mov ecx, dword [esp + 0x3c]
add esp, 0xc
cmp eax, ecx
je 0x22208f5
push 5
call fcn.022015d0
add esp, 4
mov edi, eax
mov edx, dword [esp + 0x10]
inc edx
add esi, 0x30
cmp edi, ebp
mov dword [esp + 0x10], edx
je 0x2220821
push ebx
call sym.edb500x.dll_FreeExpression
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret
cmp edi, ebp
je 0x222092d
push ebx
call sym.edb500x.dll_FreeExpression
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x4c]
pop esi
mov eax, edi
pop edi
pop ebp
mov dword [ecx], ebx
pop ebx
add esp, 0x2c
ret