joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10298f9
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, dword [0x1075004]
mov esi, 0x1075004
mov ebx, 0x1002028
cmp eax, esi
je 0x102992e
test byte [eax + 0x1c], 4
je 0x102992e
cmp byte [eax + 0x19], 5
jb 0x102992e
push ebx
push 0x63
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
cmp dword [ebp + 8], 0
mov eax, 0x1001d44
je 0x102993e
mov eax, 0x1001d28
push eax
push dword [0x1078064]
call fcn.010286ce
mov dword [ebp - 4], eax
test eax, eax
jne 0x102998c
mov dword [ebp + 8], 8
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1029aa8
test byte [eax + 0x1c], 4
je 0x1029aa8
cmp byte [eax + 0x19], 2
jb 0x1029aa8
push ebx
push 0x64
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x1029aa8
cmp dword [ebp + 8], 0
push edi
mov edi, 0x1077eec
je 0x102999d
mov edi, 0x1077ee8
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10299db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1029aa7
test byte [eax + 0x1c], 4
je 0x1029aa7
cmp byte [eax + 0x19], 2
jb 0x1029aa7
push dword [ebp + 8]
push ebx
push 0x65
jmp 0x1029a47
push dword [ebp - 4]
or dword [edi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1029a16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1075004]
cmp ecx, esi
je 0x1029a16
test byte [ecx + 0x1c], 4
je 0x1029a16
cmp byte [ecx + 0x19], 2
jb 0x1029a16
push eax
push ebx
push 0x66
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101463a
mov ecx, dword [0x1078064]
push edi
push dword [ebp + 8]
call fcn.010294b0
mov dword [ebp + 8], eax
test eax, eax
je 0x1029a54
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1029aa7
test byte [eax + 0x1c], 4
je 0x1029aa7
cmp byte [eax + 0x19], 2
jb 0x1029aa7
push dword [ebp + 8]
push ebx
push 0x67
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x1029aa7
push dword [edi]
call fcn.01027fdf
test eax, eax
jne 0x1029a84
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1029aa7
test byte [eax + 0x1c], 4
je 0x1029a89
cmp byte [eax + 0x19], 2
jb 0x1029a89
push 0
push ebx
push 0x68
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1029aa7
test byte [eax + 0x1c], 4
je 0x1029aa7
cmp byte [eax + 0x19], 5
jb 0x1029aa7
push ebx
push 0x69
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
pop edi
push dword [ebp - 4]
call fcn.0105c21c
mov eax, dword [ebp + 8]
pop esi
pop ebx
leave
ret 4
Function at 0x102c252
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x106e70c
call fcn.0105b971
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
and dword [ebp - 0x34], 0
mov eax, dword [0x1075004]
mov esi, 0x1075004
cmp eax, esi
je 0x102c294
test byte [eax + 0x1c], 4
je 0x102c294
cmp byte [eax + 0x19], 5
jb 0x102c294
push 0x1002028
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
lea ecx, [ebp - 0x30]
call fcn.01028929
and dword [ebp - 4], 0
cmp dword [0x107805c], 0
jne 0x102c2c2
xor esi, esi
inc esi
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.01025760
mov eax, esi
call fcn.0105b9dc
ret 8
push ebx
lea edx, [ebp - 0x30]
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0102a4a9
xor edi, edi
cmp eax, edi
jne 0x102c30a
mov eax, dword [0x1075004]
cmp eax, esi
je 0x102c2fe
test byte [eax + 0x1c], 4
je 0x102c2fe
cmp byte [eax + 0x19], 2
jb 0x102c2fe
push 0x1002028
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov dword [ebp - 0x34], 0xe
jmp 0x102c43e
push edi
mov dword [ebp - 4], edi
call fcn.01027e39
test eax, eax
je 0x102c391
mov eax, dword [0x1075004]
cmp eax, esi
je 0x102c33e
test byte [eax + 0x1c], 4
je 0x102c33e
cmp byte [eax + 0x19], 5
jb 0x102c33e
push 0x1002028
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
push edi
call fcn.0102c1a4
mov dword [ebp - 0x34], eax
cmp eax, edi
je 0x102c391
mov eax, dword [0x1075004]
cmp eax, esi
je 0x102c375
test byte [eax + 0x1c], 4
je 0x102c375
cmp byte [eax + 0x19], 2
jb 0x102c375
push dword [ebp - 0x34]
push 0x1002028
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
cmp dword [0x107805c], edi
je 0x102c435
cmp dword [0x1077eec], 0xffffffff
je 0x102c435
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x102c39d
lea eax, [ebp - 0x2c]
push edi
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, ecx
push ecx
push eax
push dword [0x1077eec]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x102c435
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x102c435
test byte [eax + 0x1c], 4
je 0x102c435
cmp byte [eax + 0x19], 2
jb 0x102c435
push dword [ebp - 0x34]
push 0x1002028
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x102c435
cmp dword [ebp - 0x34], edi
je 0x102c2a9
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x102c2ac
Function at 0x102c453
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x106e73e
call fcn.0105b971
mov edi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [0x1075004]
mov esi, 0x1075004
cmp eax, esi
je 0x102c490
test byte [eax + 0x1c], 4
je 0x102c490
cmp byte [eax + 0x19], 5
jb 0x102c490
push 0x1002028
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
lea ecx, [ebp - 0x30]
call fcn.01028929
and dword [ebp - 4], 0
cmp dword [0x1078060], 0
jne 0x102c4be
xor esi, esi
inc esi
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.01025760
mov eax, esi
call fcn.0105b9dc
ret 4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0102ad27
test eax, eax
jne 0x102c4fd
mov eax, dword [0x1075004]
cmp eax, esi
je 0x102c4f5
test byte [eax + 0x1c], 4
je 0x102c4f5
cmp byte [eax + 0x19], 2
jb 0x102c4f5
push 0x1002028
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
push 0xe
pop ebx
jmp 0x102c62f
and dword [ebp - 4], 0
push 1
call fcn.01027e39
test eax, eax
je 0x102c584
mov eax, dword [0x1075004]
cmp eax, esi
je 0x102c533
test byte [eax + 0x1c], 4
je 0x102c533
cmp byte [eax + 0x19], 5
jb 0x102c533
push 0x1002028
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
push 1
call fcn.0102c1a4
mov ebx, eax
test ebx, ebx
je 0x102c584
mov eax, dword [0x1075004]
cmp eax, esi
je 0x102c568
test byte [eax + 0x1c], 4
je 0x102c568
cmp byte [eax + 0x19], 2
jb 0x102c568
push ebx
push 0x1002028
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
cmp dword [0x1078060], 0
je 0x102c627
cmp dword [0x1077ee8], 0xffffffff
je 0x102c627
xor ebx, ebx
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x102c590
lea eax, [ebp - 0x2c]
push 0
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, ecx
push ecx
push eax
push dword [0x1077ee8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x102c627
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x102c627
test byte [eax + 0x1c], 4
je 0x102c627
cmp byte [eax + 0x19], 2
jb 0x102c627
push ebx
push 0x1002028
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x102c627
test ebx, ebx
je 0x102c4a5
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x102c4a8
Function at 0x102c700
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov eax, dword [0x1075004]
mov edi, 0x1075004
cmp eax, edi
je 0x102c733
test byte [eax + 0x1c], 4
je 0x102c733
cmp byte [eax + 0x19], 5
jb 0x102c733
push 0x10022a4
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
push 0x1077ef0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 0xc]
xor ecx, ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
cmp eax, ecx
jne 0x102c76d
cmp dword [esi + 0x18], ecx
jne 0x102c76d
push 0x1077e34
call fcn.01034076
jmp 0x102c8a1
cmp eax, 2
jne 0x102c7d1
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x102c8a1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x102c8a1
mov eax, dword [0x1075004]
cmp eax, edi
je 0x102c8a1
test byte [eax + 0x1c], 4
je 0x102c8a1
cmp byte [eax + 0x19], 2
jb 0x102c8a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push 0x10022a4
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x102c8a1
cmp eax, 3
jne 0x102c8a1
push ebx
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x102c81d
mov eax, dword [0x1075004]
cmp eax, edi
je 0x102c81d
test byte [eax + 0x1c], 4
je 0x102c81d
cmp byte [eax + 0x19], 2
jb 0x102c81d
call ebx
push eax
mov eax, dword [0x1075004]
push 0x10022a4
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
cmp dword [esi + 0x644], 0
je 0x102c86c
cmp dword [esi + 0x640], 0
je 0x102c875
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x102c86c
call ebx
mov ecx, dword [0x1075004]
cmp ecx, edi
je 0x102c86c
test byte [ecx + 0x1c], 4
je 0x102c86c
cmp byte [ecx + 0x19], 2
jb 0x102c86c
push eax
lea eax, [esi + 0x24]
push eax
push 0x10022a4
push 0x17
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.010091cb
cmp dword [esi + 0x640], 0
jne 0x102c8a0
lea ebx, [esi + 0x648]
cmp dword [ebx], 0
je 0x102c8a0
mov edi, 0x1077f58
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
push 1
push 1
push dword [ebx]
call fcn.0103a6bb
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
push esi
call fcn.0105c21c
push 0x1077ef0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
ret 4
Function at 0x1031fd9
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x214], edi
mov eax, dword [0x1075004]
mov esi, 0x1075004
mov ebx, 0x10022b4
cmp eax, esi
je 0x1032027
test byte [eax + 0x1c], 4
je 0x1032027
cmp byte [eax + 0x19], 5
jb 0x1032027
push ebx
push 0x38
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x100236c
push edi
call fcn.01031bec
test eax, eax
jne 0x1032096
mov eax, dword [0x1075004]
cmp eax, esi
je 0x103208f
test byte [eax + 0x1c], 4
je 0x103208f
cmp byte [eax + 0x19], 2
jb 0x103208f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push ebx
push 0x39
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
xor eax, eax
jmp 0x1032144
lea eax, [ebp - 0x20c]
push eax
call fcn.0105c8ee
mov dword [edi + 0x34], eax
test eax, eax
jne 0x1032141
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp - 0x210], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x10320e4
test byte [eax + 0x1c], 4
je 0x10320e4
cmp byte [eax + 0x19], 2
jb 0x10320e4
push dword [ebp - 0x210]
push ebx
push 0x3a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1032130
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1032130
test byte [eax + 0x1c], 4
je 0x1032130
cmp byte [eax + 0x19], 2
jb 0x1032130
call edi
push eax
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x214]
push dword [eax + 0x18]
mov eax, dword [0x1075004]
push ebx
push 0x3b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01043dbf
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x103208f
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105b7af
leave
ret 4
Function at 0x103215a
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [0x1075004]
mov esi, 0x1075004
cmp eax, esi
je 0x10321a0
test byte [eax + 0x1c], 4
je 0x10321a0
cmp byte [eax + 0x19], 5
jb 0x10321a0
push 0x10022b4
push 0x3c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebx + 0x164], 0
jne 0x10322d1
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x1002374
push ebx
call fcn.01031bec
test eax, eax
jne 0x1032220
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1032219
test byte [eax + 0x1c], 4
je 0x1032219
cmp byte [eax + 0x19], 2
jb 0x1032219
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push 0x10022b4
push 0x3d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
xor eax, eax
jmp 0x10322d4
lea eax, [ebp - 0x20c]
push eax
call fcn.0105c8ee
mov dword [ebx + 0x164], eax
test eax, eax
jne 0x10322d1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp - 0x210], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1032276
test byte [eax + 0x1c], 4
je 0x1032276
cmp byte [eax + 0x19], 2
jb 0x1032276
push dword [ebp - 0x210]
push 0x10022b4
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10322c0
mov eax, dword [0x1075004]
cmp eax, esi
je 0x10322c0
test byte [eax + 0x1c], 4
je 0x10322c0
cmp byte [eax + 0x19], 2
jb 0x10322c0
call edi
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebx + 0x18]
mov eax, dword [0x1075004]
push 0x10022b4
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01043dbf
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
jmp 0x10322d4
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0105b7af
leave
ret 4
Function at 0x1035a6d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov eax, dword [0x1075004]
mov esi, 0x1075004
mov edi, 0x1002380
cmp eax, esi
je 0x1035aac
test byte [eax + 0x1c], 4
je 0x1035aac
cmp byte [eax + 0x19], 5
jb 0x1035aac
push edi
push 0x136
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1035aeb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1035b25
test byte [eax + 0x1c], 4
je 0x1035b25
cmp byte [eax + 0x19], 2
jb 0x1035b25
push ebx
push edi
push 0x137
jmp 0x1035b10
cmp dword [ebp - 4], 4
je 0x1035b1d
push 0x26
pop ebx
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1035b25
test byte [eax + 0x1c], 4
je 0x1035b25
cmp byte [eax + 0x19], 2
jb 0x1035b25
push ebx
push edi
push 0x138
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x1035b25
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x103610f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], 1
mov eax, dword [0x1075004]
mov edi, 0x1075004
mov ebx, 0x1002380
cmp eax, edi
je 0x1036159
test byte [eax + 0x1c], 4
je 0x1036159
cmp byte [eax + 0x19], 5
jb 0x1036159
push ebx
push 0x14a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.01035e9f
mov dword [ebp - 4], eax
cmp eax, esi
je 0x10361ad
mov eax, dword [0x1075004]
cmp eax, edi
je 0x10362ce
test byte [eax + 0x1c], 4
je 0x10362ce
cmp byte [eax + 0x19], 2
jb 0x10362ce
push dword [ebp - 4]
push ebx
push 0x14b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x10362ce
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x10361ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x10362ce
test byte [eax + 0x1c], 4
je 0x10362ce
cmp byte [eax + 0x19], 2
jb 0x10362ce
push dword [ebp - 4]
push ebx
push 0x14c
jmp 0x10362c3
push 0
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1036249
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x10362ce
test byte [eax + 0x1c], 4
je 0x10362ce
cmp byte [eax + 0x19], 2
jb 0x10362ce
push dword [ebp - 4]
push ebx
push 0x14d
jmp 0x10362c3
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1036287
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x10362ce
test byte [eax + 0x1c], 4
je 0x10362ce
cmp byte [eax + 0x19], 2
jb 0x10362ce
push dword [ebp - 4]
push ebx
push 0x14e
jmp 0x10362c3
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x10362ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, edi
je 0x10362ce
test byte [eax + 0x1c], 4
je 0x10362ce
cmp byte [eax + 0x19], 2
jb 0x10362ce
push dword [ebp - 4]
push ebx
push 0x14f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
cmp dword [ebp - 8], 0
pop edi
pop esi
pop ebx
je 0x10362df
push dword [ebp - 8]
call fcn.0105c21c
mov eax, dword [ebp - 4]
leave
ret 0xc
Function at 0x1036490
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov eax, dword [0x1075004]
mov esi, 0x1075004
mov edi, 0x1002380
cmp eax, esi
je 0x10364d3
test byte [eax + 0x1c], 4
je 0x10364d3
cmp byte [eax + 0x19], 5
jb 0x10364d3
push edi
push 0x155
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x103651c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1036665
test byte [eax + 0x1c], 4
je 0x1036665
cmp byte [eax + 0x19], 2
jb 0x1036665
push dword [ebp - 4]
push edi
push 0x156
jmp 0x10365eb
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0x590
jae 0x1036563
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1036557
test byte [eax + 0x1c], 4
je 0x1036557
cmp byte [eax + 0x19], 3
jb 0x1036557
push ebx
push edi
push 0x157
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov dword [ebp - 4], 0x570
jmp 0x1036679
push ebx
call fcn.0105c184
mov dword [ebp - 8], eax
test eax, eax
jne 0x10365a3
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1036597
test byte [eax + 0x1c], 4
je 0x1036597
cmp byte [eax + 0x19], 2
jb 0x1036597
push ebx
push edi
push 0x158
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov dword [ebp - 4], 8
jmp 0x103666b
push 0
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10365f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1036665
test byte [eax + 0x1c], 4
je 0x1036665
cmp byte [eax + 0x19], 2
jb 0x1036665
push dword [ebp - 4]
push edi
push 0x159
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x1036665
cmp ebx, dword [ebp - 0xc]
je 0x103662c
push 0x26
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x1075004]
cmp eax, esi
je 0x103666b
test byte [eax + 0x1c], 4
je 0x103666b
cmp byte [eax + 0x19], 2
jb 0x103666b
push ecx
push edi
push 0x15a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x103666b
push dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
push ebx
call fcn.01034687
test eax, eax
jne 0x1036660
push 0xd
pop ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x1075004]
cmp eax, esi
je 0x103666b
test byte [eax + 0x1c], 4
je 0x103666b
cmp byte [eax + 0x19], 2
jb 0x103666b
push ecx
push edi
push 0x15b
jmp 0x103661f
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
cmp dword [ebp - 4], 0
je 0x1036679
cmp dword [ebp - 8], 0
je 0x1036679
push dword [ebp - 8]
call fcn.0105c21c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10397f2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [0x1075004]
mov esi, 0x1075004
mov edi, 0x1002380
cmp eax, esi
je 0x1039837
test byte [eax + 0x1c], 4
je 0x1039837
cmp byte [eax + 0x19], 5
jb 0x1039837
push edi
push 0x4b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov eax, dword [0x1078100]
push dword [eax + 0x5c]
and dword [ebp - 0x460], 0
push 0x1002d54
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.01009a76
add esp, 0x10
test eax, eax
jge 0x1039890
mov ecx, dword [0x1075004]
cmp ecx, esi
je 0x1039889
test byte [ecx + 0x1c], 4
je 0x1039889
cmp byte [ecx + 0x19], 2
jb 0x1039889
push eax
push edi
push 0x4c
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101463a
xor eax, eax
jmp 0x1039a1d
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x464], eax
cmp eax, 0xffffffff
jne 0x10398e3
mov eax, dword [0x1075004]
cmp eax, esi
je 0x10398db
test byte [eax + 0x1c], 4
je 0x10398db
cmp byte [eax + 0x19], 3
jb 0x10398db
mov ecx, dword [0x1078100]
push dword [ecx + 0x5c]
push edi
push 0x4d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100915e
xor eax, eax
inc eax
jmp 0x1039a1d
lea eax, [ebp - 0x430]
push eax
mov eax, dword [0x1078100]
push dword [eax + 0x5c]
lea eax, [ebp - 0x20c]
push 0x10019a0
push ebx
push eax
call fcn.01009a76
add esp, 0x14
test eax, eax
jge 0x103993e
mov ecx, dword [0x1075004]
cmp ecx, esi
je 0x10399ae
test byte [ecx + 0x1c], 4
je 0x10399ae
cmp byte [ecx + 0x19], 2
jb 0x10399ae
push eax
push edi
push 0x4e
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0101463a
jmp 0x10399ae
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1039968
test byte [eax + 0x1c], 4
je 0x1039968
cmp byte [eax + 0x19], 5
jb 0x1039968
lea ecx, [ebp - 0x20c]
push ecx
push edi
push 0x4f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100915e
lea eax, [ebp - 0x20c]
push eax
call fcn.01039466
test eax, eax
jne 0x10399b8
mov eax, dword [0x1075004]
cmp eax, esi
je 0x10399ae
test byte [eax + 0x1c], 4
je 0x10399ae
cmp byte [eax + 0x19], 2
jb 0x10399ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [0x1075004]
push edi
push 0x50
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010091cb
mov dword [ebp - 0x460], 1
lea eax, [ebp - 0x45c]
push eax
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10398e3
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
jne 0x1039a12
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1039a12
test byte [eax + 0x1c], 4
je 0x1039a12
cmp byte [eax + 0x19], 2
jb 0x1039a12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push edi
push 0x51
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
xor eax, eax
cmp dword [ebp - 0x460], eax
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105b7af
leave
ret