joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2221180
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x440
push ebx
push ebp
push esi
mov esi, dword [esp + 0x450]
push edi
lea ebx, [esi + 0x38]
lea eax, [esp + 0x40]
push ebx
push eax
xor ebp, ebp
call fcn.0226b20c
mov ecx, dword [esp + 0x460]
push ecx
lea edx, [esp + 0x4c]
push str..ipt
push edx
call fcn.0225d7c0
mov edx, dword [esi + 0x34]
lea eax, [esp + 0x2c]
push eax
push 0x10
push 0x8502
lea ecx, [esp + 0x60]
push ecx
push edx
call fcn.0225dfa0
mov edi, eax
add esp, 0x28
cmp edi, 0xffffffff
jne 0x22211ec
pop edi
pop esi
pop ebp
mov eax, 0x48b
pop ebx
add esp, 0x440
ret
lea eax, [esp + 0x10]
push eax
call fcn.02267cd0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.02267d10
mov eax, dword [esi + 0x34]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push ebx
add eax, 0x3c8
push eax
mov eax, dword [esp + 0x38]
push 0
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x54]
push ecx
inc edx
push edx
add eax, 0x76c
push eax
add esi, 4
push esi
lea ecx, [esp + 0x74]
push str._s___04d_02d_02d__02d:_02d:_02d._03d___s___s_r_n
push ecx
call fcn.0226a710
lea edx, [esp + 0x7c]
push edx
call fcn.0226b228
add esp, 0x40
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x4c]
push edx
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x440
ret

Function at 0x2221410
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x2a4
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2b4]
mov eax, dword [esi + 0x460]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebp, ebp
push ebp
push ebp
push ebp
push eax
call edi
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x2221442
call ebx
mov edx, dword [esi + 0x460]
push ebp
lea eax, [esp + 0x14]
push eax
push 0x2a0
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x44c]
push ebp
push ebp
mov dword [esp + 0x2b4], eax
mov eax, dword [esi + 0x460]
push ebp
push eax
call edi
cmp eax, 0xffffffff
jne 0x2221483
call ebx
mov eax, dword [esi + 0x460]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
lea ecx, [esp + 0x14]
push ecx
push 0x2a0
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x24], ebp
call ebx
mov eax, dword [esi + 0x44c]
xor edi, edi
cmp eax, ebp
jle 0x22214df
mov edx, dword [esi + 0x45c]
mov eax, dword [edx + edi*4]
push ebp
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x460]
push 0x40
add eax, 0x18
push eax
push ecx
mov dword [esp + 0x24], ebp
call ebx
mov eax, dword [esi + 0x44c]
inc edi
cmp edi, eax
jl 0x22214b2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2a4
ret
Function at 0x22214f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
push edi
mov edi, dword [esp + 0x34]
xor ebp, ebp
push ebp
push ebp
push ebp
push edi
call ebx
cmp eax, 0xffffffff
jne 0x2221513
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 4
push 0x200
call fcn.0226b127
mov ecx, dword [esp + 0x40]
add esp, 8
test eax, eax
mov dword [ecx], eax
jne 0x2221538
pop edi
pop ebp
mov eax, 0x446
pop ebx
add esp, 0x24
ret
push esi
push 1
push 0
push 0
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x2221555
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x2221555
or esi, esi
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
mov dword [eax], esi
lea ecx, [ecx]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x20
lea edx, [esp + 0x20]
push edx
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x22215e0
cmp dword [esp + 0x10], 0x20
jne 0x22215e0
mov eax, dword [esp + 0x14]
cmp eax, 0x40000000
je 0x22215a1
cmp eax, 0x50000000
je 0x22215a1
cmp eax, 0x60000000
jne 0x22215e0
mov eax, dword [esp + 0x1c]
push 1
push 0
push eax
push edi
call ebx
cmp eax, 0xffffffff
jne 0x22215b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push 0
push 0
push edi
inc ebp
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x22215d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x22215d5
or esi, esi
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
mov dword [edx + ebp*4], esi
jmp 0x2221560
mov eax, dword [esp + 0x40]
pop esi
pop edi
mov dword [eax], ebp
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
Function at 0x2227120
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
dec eax
je 0x22271c5
dec eax
je 0x2227191
dec eax
jne 0x2227202
mov eax, dword [esp + 4]
movzx ecx, word [eax + 0x1a]
movzx edx, word [eax + 0x18]
push ecx
movzx ecx, word [eax + 0x16]
push edx
movzx edx, word [eax + 0x14]
push ecx
movzx ecx, word [eax + 0x12]
push edx
movzx edx, word [eax + 0x10]
push ecx
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xa]
push edx
movzx edx, word [eax + 8]
push ecx
movzx ecx, word [eax + 6]
push edx
movzx edx, word [eax + 4]
push ecx
movzx ecx, word [eax + 2]
push edx
movzx edx, word [eax]
mov eax, dword [esp + 0x3c]
push ecx
push edx
push str.ts__c_c_c_c__c_c__c_c__c_c__c_c__c_c
push eax
call fcn.0226a710
add esp, 0x40
ret
mov eax, dword [esp + 4]
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
push ecx
movzx ecx, word [eax + 6]
push edx
movzx edx, word [eax + 4]
push ecx
movzx ecx, word [eax + 2]
push edx
movzx edx, word [eax]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push str.t__c_c__c_c__c_c
push eax
call fcn.0226a710
add esp, 0x20
ret
mov eax, dword [esp + 4]
movzx ecx, word [eax + 0xe]
movzx edx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xa]
push edx
movzx edx, word [eax + 8]
push ecx
movzx ecx, word [eax + 6]
push edx
movzx edx, word [eax + 4]
push ecx
movzx ecx, word [eax + 2]
push edx
movzx edx, word [eax]
mov eax, dword [esp + 0x24]
push ecx
push edx
push str.d__c_c_c_c__c_c__c_c
push eax
call fcn.0226a710
add esp, 0x28
ret
Function at 0x2228aa0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push edi
mov edi, dword [ebx + 0xc]
push edi
call fcn.02234900
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0xc], ebp
jne 0x2228c16
push esi
push 0xc
call fcn.02218c40
mov esi, eax
mov dword [esi + 4], 0xbabe000a
mov eax, dword [edi + 0x834]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x588]
push ebp
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x24]
push ebp
push eax
push esi
call fcn.0221c130
push esi
mov ebx, eax
call fcn.02218ce0
mov esi, dword [edi + 0x854]
xor ecx, ecx
add esp, 0x18
cmp esi, ecx
je 0x2228b6b
mov eax, dword [esi + 0x468]
test ah, 2
je 0x2228b6b
mov edi, dword [ebx]
mov eax, dword [esi + 0x460]
push ecx
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2228b38
or eax, 0xffffffff
jmp 0x2228b3c
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x2228c0c
mov eax, dword [esi + 0x468]
or eax, 0x100
push ebx
mov dword [esi + 0x468], eax
mov ebp, 0x494
call fcn.02218ce0
add esp, 4
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [ebx]
lea edx, [esp + 0x1c]
push edx
push eax
lea eax, [ebx + 4]
push eax
push edi
mov dword [esp + 0x2c], ecx
call fcn.0221b540
add esp, 0x10
test eax, eax
je 0x2228ba4
push eax
call fcn.02219b90
add esp, 4
push ebx
mov ebp, eax
call fcn.02218ce0
add esp, 4
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
mov eax, dword [esi + 4]
add esi, 4
push ecx
push eax
call fcn.0221b4e0
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
add esi, 4
push esi
call fcn.02202d70
mov ebp, dword [esp + 0x24]
add esp, 0x14
test ebp, ebp
jne 0x2228bf2
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.02202d70
add esp, 0xc
mov ecx, dword [esp + 0x18]
push ecx
push eax
push edi
call fcn.0221dd60
mov edx, dword [esp + 0x28]
add esp, 0xc
push edx
call dword [edi + 0xc18]
push ebx
call fcn.02218ce0
add esp, 4
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
Function at 0x222d340
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0xc]
push edi
xor edi, edi
cmp ecx, edi
jle 0x222d36b
mov eax, dword [esi]
cmp eax, edi
je 0x222d36b
push edi
lea edx, [esp + 0x10]
push edx
push ecx
mov ecx, dword [esi + 8]
push ecx
push eax
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esi + 0xc], edi
pop edi
xor eax, eax
pop esi
ret

Function at 0x222d860
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
jle 0x222d88d
mov eax, dword [esi]
test eax, eax
je 0x222d88d
push 0
lea edx, [esp + 0xc]
push edx
push ecx
mov ecx, dword [esi + 8]
push ecx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi]
push edx
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 8]
push eax
call fcn.0226affd
push esi
call fcn.0226affd
add esp, 8
pop esi
ret

Function at 0x222d8c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
xor ebx, ebx
cmp eax, ecx
push edi
jne 0x222d8fa
cmp eax, ebx
jle 0x222d8f7
mov ecx, dword [esi]
cmp ecx, ebx
je 0x222d8f7
push ebx
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [esi + 8]
push eax
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esi + 0xc], ebx
mov edi, dword [esp + 0x1c]
cmp di, 0xa
jne 0x222d90f
push esi
push 0xd
call fcn.0222d8c0
add esp, 8
mov ecx, dword [esi + 0xc]
cmp ecx, dword [esi + 4]
jne 0x222d93a
cmp ecx, ebx
jle 0x222d937
mov eax, dword [esi]
cmp eax, ebx
je 0x222d937
push ebx
lea edx, [esp + 0x24]
push edx
push ecx
mov ecx, dword [esi + 8]
push ecx
push eax
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esi + 0xc], ebx
lea edx, [esp + 0x10]
push edi
push edx
mov byte [esp + 0x19], bl
mov byte [esp + 0x18], bl
call fcn.02236840
mov ebp, eax
add esp, 8
xor edi, edi
cmp ebp, ebx
jle 0x222d9a5
jmp 0x222d960
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov dl, byte [esp + edi + 0x10]
mov byte [eax + ecx], dl
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 4]
inc edx
mov eax, edx
cmp eax, ecx
mov dword [esi + 0xc], edx
jne 0x222d9a0
cmp eax, ebx
jle 0x222d99d
mov ecx, dword [esi]
cmp ecx, ebx
je 0x222d99d
push ebx
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [esi + 8]
push eax
push ecx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esi + 0xc], ebx
inc edi
cmp edi, ebp
jl 0x222d960
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x223dd00
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov ecx, dword [esp + 0x28]
push esi
push edi
lea eax, [esp + 8]
push eax
push 0x40
push 0x8000
xor edi, edi
push ecx
mov dword [esp + 0x18], edi
call fcn.022687b0
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
je 0x223dd81
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
push edi
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x24], edx
push 0x1c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], edx
push ecx
mov dword [esp + 0x34], edx
push esi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], 0x82a30d69
jne 0x223dd7a
cmp dword [esp + 0x28], 0x93b41e7a
jne 0x223dd7a
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x24
ret

Function at 0x22408e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x81c]
test ch, 0x20
mov edx, dword [esp + 0xc]
je 0x224090d
mov ecx, dword [eax + 0x83c]
mov eax, dword [eax + 0x838]
push edx
mov edx, dword [esp + 0xc]
push edx
push eax
call dword [ecx + 0x32c]
ret
mov eax, dword [eax + 0x838]
push 0
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2240937
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret

Function at 0x2240980
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x81c]
test ch, 0x20
mov edx, dword [esp + 0xc]
je 0x22409ad
mov ecx, dword [eax + 0x83c]
mov eax, dword [eax + 0x838]
push edx
mov edx, dword [esp + 0xc]
push edx
push eax
call dword [ecx + 0x318]
ret
mov eax, dword [eax + 0x838]
push 0
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x22409d7
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret
Function at 0x2243610
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x94
mov eax, dword [esp + 0xa0]
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
mov esi, dword [esp + 0xa8]
push edi
xor edi, edi
push ebp
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [eax], edi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
mov word [esp + 0x3c], di
call fcn.022434f0
mov ebx, eax
add esp, 0x18
cmp ebx, edi
jne 0x224367c
pop edi
pop esi
pop ebp
mov eax, 0x446
pop ebx
add esp, 0x94
ret
mov edx, dword [esp + 0xa8]
push ebp
push esi
push edx
call fcn.0221aa00
mov edi, eax
add esp, 0xc
test edi, edi
je 0x224380c
mov eax, dword [edi + 0x59c]
test eax, eax
jne 0x22436a4
mov eax, edi
mov dword [ebx + 0x4c], eax
mov eax, dword [esp + 0x10]
cmp eax, 1
mov dword [ebx + 0x68], edi
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x78], 0xffffffff
jne 0x22436ce
mov dword [esp + 0x1c], 0x1010
jmp 0x22437fd
test eax, eax
jne 0x22437fd
mov eax, dword [esi]
push ebp
mov ebp, dword [esp + 0xac]
push eax
push ebp
mov dword [esp + 0x28], 0x1008
call fcn.0221dd60
lea ecx, [esp + 0x30]
push ecx
push ebp
mov dword [esi], eax
call fcn.0225ed50
mov esi, eax
add esp, 0x14
test esi, esi
mov dword [ebx + 0x68], esi
mov dword [ebx + 0x4c], esi
jne 0x2243718
mov dword [esp + 0x18], 0x406
jmp 0x22437f2
mov ebp, dword [edi + 0x594]
mov edx, dword [edi + 0x590]
push 0x4e
push 0x57
push esi
mov dword [esp + 0x1c], ebp
mov dword [esi + 0x590], edx
call fcn.022370c0
mov eax, dword [esp + 0x20]
mov dword [esi + 0x588], eax
mov ecx, dword [edi + 0x5a8]
xor eax, eax
mov dword [esi + 0x5a8], ecx
add esp, 0xc
cmp ebp, eax
mov dword [edi + 0x5a8], eax
mov dword [esi + 0x594], ebp
mov dword [edi + 0x594], eax
je 0x22437f2
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
test ecx, ecx
mov ebp, dword [ebp + 0xc]
mov dword [eax + 8], esi
mov dword [esp + 0x14], 0
jle 0x22437db
mov eax, dword [ebp]
push eax
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x28], eax
call fcn.0226b20c
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xc0]
add esp, 8
cmp eax, edi
jne 0x22437b1
lea ecx, [esp + 0x64]
push ecx
push esi
jmp 0x22437b7
lea edx, [esp + 0x64]
push edx
push eax
call fcn.0225ee50
mov ecx, dword [esp + 0x18]
mov dword [ebp], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx + 0x10]
add esp, 8
inc eax
add ebp, 0x64
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x2243786
mov eax, ecx
mov edx, dword [esp + 0xa8]
mov ecx, dword [edx + 0x860]
push ecx
push eax
call fcn.02223330
add esp, 8
push 0
push edi
call fcn.022293d0
add esp, 8
mov eax, dword [esp + 0x18]
test eax, eax
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x54], edx
jne 0x2243826
mov eax, dword [esp + 0xa8]
push ebx
push eax
call fcn.02248de0
mov ecx, dword [esp + 0xb8]
add esp, 8
mov dword [ecx], ebx
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
Function at 0x224c2d0
Capabilities:
Get file size

Disassembly:
sub esp, 0x214
push ebx
push esi
push edi
mov edi, dword [esp + 0x22c]
push 0x2277308
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
call fcn.0226b864
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x224c30f
push ebx
lea eax, [esi + 4]
push ebx
push eax
call fcn.0226b434
add esp, 0xc
mov dword [esp + 0xc], eax
mov word [esi], bx
add edi, 4
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.0226b20c
lea edx, [esp + 0x20]
push 4
push edx
call fcn.02268640
add esp, 0x10
test eax, eax
je 0x224c33f
pop edi
pop esi
mov eax, 0x492
pop ebx
add esp, 0x214
ret
push ebp
lea eax, [esp + 0x18]
push eax
push 0x20
lea ecx, [esp + 0x24]
push 0x8000
push ecx
mov dword [esp + 0x28], ebx
call fcn.022687b0
mov ebp, eax
add esp, 0x10
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
jne 0x224c380
mov edx, dword [esp + 0x18]
push edx
call fcn.022015d0
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x214
ret
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x224c3a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x214
ret
test edi, edi
jle 0x224c4e6
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x22c]
mov eax, dword [ebx]
mov esi, dword [eax + 0x90]
push 0
push 0
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x224c3db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov eax, dword [edx + 0x80]
sub eax, 2
je 0x224c3f0
sub eax, 0x11
je 0x224c3f0
dec eax
jne 0x224c3f6
sub edi, dword [esp + 0x10]
mov esi, edi
lea eax, [esi + 8]
push eax
push 1
call fcn.0226b127
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x224c414
mov ebx, 0x446
jmp 0x224c4e2
mov ecx, dword [esp + 0x14]
push esi
lea edi, [ebp + 4]
push edi
push ecx
call fcn.02209f80
add esp, 0xc
cmp eax, 0xffffffff
jne 0x224c439
push eax
call fcn.022015d0
add esp, 4
jmp 0x224c4d7
mov edx, dword [ebx]
mov eax, dword [edx + 0x80]
dec eax
cmp eax, 0x14
ja case.0x224c44e.7
movzx eax, byte [eax + 0x224c508]
jmp dword [eax*4 + 0x224c4fc]
mov ecx, dword [esp + 0x228]
push 0
push ebp
push ebx
mov dword [ebp], esi
push ecx
jmp 0x224c4cf
mov eax, edi
mov byte [esi + ebp + 4], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x224c470
sub eax, edx
mov ebx, eax
lea edx, [ebx + ebx + 2]
push edx
call fcn.0226b115
mov esi, eax
add esp, 4
test esi, esi
jne 0x224c495
mov ebx, 0x446
jmp 0x224c4d9
inc ebx
push ebx
push edi
push esi
call fcn.02201c20
mov eax, dword [esp + 0x238]
mov ecx, dword [esp + 0x234]
push 0
push esi
push eax
push ecx
call fcn.02249e20
push esi
mov ebx, eax
call fcn.0226affd
add esp, 0x20
jmp 0x224c4d9
mov edx, dword [esp + 0x228]
push 0
push edi
push ebx
push edx
call fcn.02249e20
add esp, 0x10
mov ebx, eax
push ebp
call fcn.0226affd
add esp, 4
mov ebp, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x214
ret
Function at 0x22551c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
push ebx
mov dword [esp + 0xc], eax
push esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push 1
xor ebx, ebx
mov dword [esp + 0x28], eax
push ebx
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x464]
push ebx
push eax
mov dword [esp + 0x1c], 0x60000000
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
cmp edi, 0xffffffff
jne 0x2255219
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x2255219
or edi, edi
mov ecx, dword [esi + 0x44c]
mov dword [esp + 0x10], edi
mov edi, 0x20
xor eax, eax
test ecx, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x18], 1
jle 0x225526f
mov ecx, dword [esi + 0x45c]
mov edx, dword [esp + 0x34]
cmp edx, dword [ecx]
je 0x2255266
inc eax
add ecx, 4
cmp eax, dword [esi + 0x44c]
jl 0x2255254
jmp 0x225526f
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x225527e
or dword [esi + 0x468], 0x100
mov ebx, 0x49c
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 0x464]
push 0
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x2c], ecx
push edi
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x22552b2
cmp dword [esp + 0x30], edi
je 0x22552b9
mov ebx, 0x46b
jmp 0x22552bd
test ebx, ebx
je 0x22552c7
or dword [esi + 0x468], 0x100
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
Function at 0x22552d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20
xor eax, eax
mov dword [esp], eax
mov dword [esp + 4], eax
push ebx
mov dword [esp + 0xc], eax
push esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push 1
xor ebx, ebx
mov dword [esp + 0x28], eax
push ebx
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x464]
push ebx
push eax
mov dword [esp + 0x1c], 0x50000000
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
cmp edi, 0xffffffff
jne 0x2255329
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x2255329
or edi, edi
mov ecx, dword [esi + 0x44c]
mov dword [esp + 0x10], edi
mov edi, 0x20
xor eax, eax
test ecx, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0xffffffff
mov dword [esp + 0x18], 1
jle 0x225537f
mov ecx, dword [esi + 0x45c]
mov edx, dword [esp + 0x34]
cmp edx, dword [ecx]
je 0x2255376
inc eax
add ecx, 4
cmp eax, dword [esi + 0x44c]
jl 0x2255364
jmp 0x225537f
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x225538e
or dword [esi + 0x468], 0x100
mov ebx, 0x49c
mov ecx, dword [esp + 0x38]
mov eax, dword [esi + 0x464]
push 0
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x2c], ecx
push edi
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x22553c2
cmp dword [esp + 0x30], edi
je 0x22553c9
mov ebx, 0x46b
jmp 0x22553cd
test ebx, ebx
je 0x22553d7
or dword [esi + 0x468], 0x100
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret