joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001fde
Capabilities:
Encrypt data using des
Get file attributes

Disassembly:
sub esp, 0x78
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
xor ebx, ebx
push ebx
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x10001ffc
push ebx
call edi
push ebp
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push 0x1882
push dword [esp + 0x90]
call fcn.10001738
push dword [esp + 0x94]
call fcn.10001d53
add esp, 0xc
xor ebp, ebp
movsx eax, byte [ebp + str.91__]
mov edx, dword [esp + 0x90]
dec eax
mov ecx, eax
sar ecx, 3
movsx ecx, byte [ecx + edx]
and eax, 7
test dword [eax*4 + 0x1000a328], ecx
push ebx
setne al
mov byte [esp + ebp + 0x1c], al
call esi
test eax, eax
je 0x10002064
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
inc ebp
cmp ebp, 0x38
jl 0x10002031
push ebx
call esi
test eax, eax
je 0x10002086
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x14]
movsx ebp, byte [ecx + 0x1000a0c8]
xor eax, eax
xor ecx, ecx
cmp eax, 0x1c
setge cl
dec ecx
and ecx, 0xffffffe4
add ecx, 0x38
cmp ebp, ecx
mov ecx, ebp
jl 0x100020c1
lea ecx, [ebp - 0x1c]
mov cl, byte [esp + ecx + 0x18]
mov byte [esp + eax + 0x50], cl
inc eax
inc ebp
cmp eax, 0x38
jl 0x100020a9
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
movsx eax, byte [eax + 0x1000a0d8]
cmp byte [esp + eax + 0x4f], bl
je 0x10002129
push ebx
call esi
test eax, eax
je 0x100020ef
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
mov eax, dword [esp + 0x10]
cdq
push 6
pop ecx
idiv ecx
mov ecx, dword [esp + 0x14]
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0x8c]
add eax, ecx
mov ebp, edx
mov ecx, dword [ebp*4 + 0x1000a328]
sar ecx, 2
or byte [eax], cl
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x30
jl 0x100020d4
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x10
jl 0x1000209c
push ebx
call esi
test eax, eax
pop ebp
je 0x1000214e
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x78
ret
Function at 0x100024a1
Capabilities:
Get file attributes
Get mac address on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
push 8
xor ebx, ebx
push 0xff
push ebp
mov byte [esp + 0x1f], bl
mov dword [esp + 0x20], ebx
call fcn.100082d0
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
add esp, 0xc
push ebx
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x100024dc
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
lea eax, [esp + 0x14]
push eax
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x100025c0
push dword [esp + 0x14]
call fcn.10005260
pop ecx
lea ecx, [esp + 0x14]
push ecx
push eax
mov dword [esp + 0x20], eax
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x100025c0
push ebx
mov byte [ebp + 3], bl
mov byte [ebp + 2], bl
call esi
test eax, eax
je 0x10002533
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
mov eax, dword [esp + 0x18]
mov cl, byte [eax + 0x194]
mov byte [ebp + 1], cl
mov cl, byte [eax + 0x195]
mov byte [ebp], cl
mov cl, byte [eax + 0x196]
mov byte [ebp + 7], cl
mov al, byte [eax + 0x197]
push ebx
mov byte [ebp + 6], al
call esi
test eax, eax
je 0x10002577
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
mov eax, dword [esp + 0x18]
mov cl, byte [eax + 0x198]
mov byte [ebp + 5], cl
mov al, byte [eax + 0x199]
push ebx
mov byte [ebp + 4], al
call esi
test eax, eax
je 0x100025a9
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
mov byte [esp + 0x13], 1
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x100025cc
Capabilities:
Get file attributes

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
xor ebx, ebx
push ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 1
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x100025f6
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push 7
pop ebp
mov eax, dword [esp + 0x1c]
movsx ecx, byte [eax + ebp]
push ecx
call fcn.1000248c
add esp, 4
test eax, eax
je 0x10002625
add ecx, 0xffffffd0
jmp 0x10002628
add ecx, 0xffffffa9
imul ecx, dword [esp + 0x14]
add dword [esp + 0x10], ecx
push ebx
call esi
test eax, eax
je 0x1000263b
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
shl dword [esp + 0x14], 4
dec ebp
jns 0x1000260b
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x10002660
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
xor ebx, ebx
push ebx
call edi
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x10002684
push ebx
call esi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000272b
lea eax, [ebp - 0x104]
push str.1024
push eax
call fcn.100081e0
pop ecx
pop ecx
push ebx
call edi
test eax, eax
je 0x100026c9
push ebx
call esi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
call edi
test eax, eax
je 0x100026f3
push ebx
call esi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x100091d0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
jne 0x10002705
push ebx
call edi
test eax, eax
je 0x10002735
push ebx
call esi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000274c
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x1890
call fcn.100052a0
push ebx
push ebp
push esi
push edi
push dword [esp + 0x18a4]
call fcn.10008330
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
pop ecx
mov ebp, eax
xor ebx, ebx
push ebx
inc ebp
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x10002782
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
lea eax, [esp + 0x1c]
push eax
call fcn.10001d53
pop ecx
push ebx
call esi
test eax, eax
je 0x100027a9
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push str.SFsdkfjf9uasd0fjPOd9fsapodfjASakjgsd0f97ASDF7sdgkj
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x20]
push str.SFsdkfjf9uasd0fjPOd9fsapodfjASakjgsd0f97ASDF7sdgkj
push eax
call fcn.10001fde
add esp, 0xc
push ebx
call esi
test eax, eax
je 0x100027e3
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push 8
mov eax, ebp
cdq
pop ecx
idiv ecx
push ecx
pop eax
sub eax, edx
add ebp, eax
push ebp
call fcn.10005260
push ebp
push ebx
push eax
mov dword [esp + 0x24], eax
call fcn.100082d0
add esp, 0x10
push ebx
call esi
test eax, eax
je 0x10002822
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push dword [esp + 0x18a4]
push dword [esp + 0x18]
call fcn.100081d0
pop ecx
pop ecx
mov eax, ebp
push 8
cdq
pop ecx
idiv ecx
cmp eax, ebx
jle 0x10002879
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
call fcn.10002169
add dword [esp + 0x20], 8
dec dword [esp + 0x18]
pop ecx
pop ecx
jne 0x1000285e
push ebx
call esi
test eax, eax
je 0x10002883
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
push ebp
call fcn.10001364
push ebx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x18b8]
push ebp
push dword [esp + 0x2c]
call fcn.10001415
add esp, 0x1c
push ebx
call esi
test eax, eax
je 0x100028c4
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1890
ret
Function at 0x100028e1
Capabilities:
Check if file exists
Get file attributes
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
xor ebx, ebx
push ebx
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x10002905
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x100029ee
push ebx
call esi
test eax, eax
je 0x10002942
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
mov ecx, dword [ebp + 0x10]
mov eax, 0x800
cmp ecx, eax
mov dword [ebp - 8], ecx
jb 0x10002966
mov dword [ebp - 8], eax
push ebx
call esi
test eax, eax
je 0x10002970
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x810]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
sub dword [ebp + 0x10], eax
cmp eax, 0x800
je 0x10002954
push ebx
call esi
test eax, eax
je 0x100029c9
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], ebx
jne 0x100029ee
xor eax, eax
inc eax
jmp 0x100029f0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002d3c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push str.lize
push str.orFina
push str.Monit
lea eax, [ebp - 0x108]
push str._s_s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x108]
push eax
call fcn.100067d2
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
add esp, 0x18
xor ebx, ebx
push ebx
mov dword [ebp - 4], eax
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x10002d93
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
cmp dword [ebp - 4], ebx
je 0x10002dff
push ebx
call esi
test eax, eax
je 0x10002db4
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
test eax, eax
je 0x10002de2
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003381
Capabilities:
Check if file exists
Enumerate processes
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push ebx
mov dword [ebp - 4], eax
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x100033b0
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
cmp dword [ebp - 4], 0xffffffff
je 0x1000349d
push ebx
mov dword [ebp - 0x12c], 0x224
call esi
test eax, eax
je 0x100033e0
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10003478
push ebx
call esi
test eax, eax
je 0x1000340f
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push dword [ebp - 0x124]
lea eax, [ebp - 0x230]
push str.LoaderStarted__X
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
call esi
test eax, eax
je 0x10003446
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
lea eax, [ebp - 0x230]
push eax
call fcn.100068a0
pop ecx
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 4]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10003421
push ebx
call esi
test eax, eax
je 0x10003482
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100034a2
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
push 0x24
mov dword [ebp - 8], ebx
call fcn.10005260
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
pop ecx
push ebx
mov dword [ebp - 4], eax
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x100034d1
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
mov ecx, dword [ebp - 4]
call fcn.10005a4e
test al, al
je 0x100035b3
push ebx
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
je 0x10003500
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
cmp dword [ebp + 8], ebx
push ebx
jne 0x1000357c
call esi
test eax, eax
je 0x10003521
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0xfde8
call fcn.10006506
test al, al
je 0x100035b7
push ebx
call esi
test eax, eax
je 0x10003557
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 4]
push eax
call fcn.100066ed
jmp 0x100035b7
call esi
test eax, eax
je 0x10003585
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
mov ecx, dword [ebp - 4]
push 4
lea eax, [ebp + 8]
push eax
push ebx
push 0xfde8
call fcn.1000637b
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
jmp 0x100035b7
or dword [ebp - 8], 0xffffffff
push ebx
call esi
test eax, eax
je 0x100035c1
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
mov ecx, dword [ebp - 4]
call fcn.10006021
push dword [ebp - 4]
call fcn.10005280
mov eax, dword [ebp - 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100047fd
Capabilities:
Get file attributes

Disassembly:
cmp dword [esp + 8], 1
jne 0x1000485e
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
xor ebx, ebx
push ebx
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x1000481f
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
mov eax, dword [esp + 0x10]
mov dword [0x1000a3b0], eax
call fcn.1000447a
push ebx
call esi
test eax, eax
je 0x10004849
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
pop edi
pop esi
pop ebx
xor eax, eax
inc eax
ret 0xc

Function at 0x10004864
Capabilities:
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x110
mov dword [esp + 0x14], ecx
call fcn.10005260
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
pop ecx
xor ebx, ebx
push ebx
mov ebp, eax
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x10004892
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push 0x108
push dword [esp + 0x1c]
push ebp
call fcn.100084d0
lea eax, [ebp + 4]
push 0x5c
push eax
call fcn.100084a0
add esp, 0x14
push ebx
mov dword [ebp + 0x10c], eax
call esi
test eax, eax
je 0x100048d1
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
mov eax, dword [ebp + 0x10c]
cmp eax, ebx
jne 0x100048f2
lea eax, [ebp + 4]
jmp 0x100048f3
inc eax
push ebx
mov dword [ebp + 0x10c], eax
call esi
test eax, eax
je 0x10004903
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
or dword [ebp + 0x108], 0xffffffff
test byte [ebp], 1
je 0x1000495a
push ebx
call esi
test eax, eax
je 0x1000492c
push ebx
call edi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
call edi
push ebx
call esi
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp + 0x108], eax
mov ecx, dword [esp + 0x10]
add ecx, 4
mov eax, dword [ecx]
push ebp
call dword [eax + 4]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x10004a4c
Capabilities:
Get file attributes

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
xor ebp, ebp
push ebp
mov edi, ecx
call esi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x10004a6b
push ebp
call ebx
push ebp
call ebx
push ebp
call esi
push ebp
call ebx
push ebp
call esi
push ebp
call ebx
push ebp
call esi
add edi, 4
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x10], ebp
call dword [eax + 0x18]
test eax, eax
jle 0x10004aca
push dword [esp + 0x10]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
cmp dword [eax + 0x108], ebp
je 0x10004ab9
push dword [esp + 0x10]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
push dword [eax + 0x108]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi]
inc dword [esp + 0x10]
mov ecx, edi
call dword [eax + 0x18]
cmp dword [esp + 0x10], eax
jl 0x10004a8f
push ebp
call esi
test eax, eax
je 0x10004ad4
push ebp
call ebx
push ebp
call ebx
push ebp
call esi
push ebp
call ebx
push ebp
call esi
push ebp
call ebx
push ebp
call esi
mov eax, dword [edi]
mov ecx, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp dword [eax + 0x24]

Function at 0x10004af4
Capabilities:
Get file attributes

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edi
xor ebp, ebp
push ebp
mov ebx, ecx
call esi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
je 0x10004b14
push ebp
call edi
push ebp
call edi
push ebp
call esi
push ebp
call edi
push ebp
call esi
push ebp
call edi
push ebp
call esi
add ebx, 4
mov eax, dword [ebx]
mov ecx, ebx
mov dword [esp + 0x10], ebp
call dword [eax + 0x18]
test eax, eax
jle 0x10004bff
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
push ebp
call esi
test eax, eax
je 0x10004b51
push ebp
call edi
push ebp
call edi
push ebp
call esi
push ebp
call edi
push ebp
call esi
push ebp
call edi
push ebp
call esi
mov eax, dword [ebx]
push 1
push 0xffffffffffffffff
push dword [esp + 0x24]
mov ecx, ebx
push dword [esp + 0x1c]
call dword [eax + 0x10]
add eax, 4
push eax
call fcn.10007504
add esp, 0x10
test eax, eax
jne 0x10004bce
push dword [esp + 0x10]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
cmp dword [eax + 0x108], 0xffffffff
je 0x10004bb1
push dword [esp + 0x10]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
push dword [eax + 0x108]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
push dword [esp + 0x10]
mov ecx, ebx
mov dword [esp + 0x18], eax
call dword [eax + 0x10]
push eax
mov eax, dword [esp + 0x18]
mov ecx, ebx
call dword [eax + 8]
dec dword [esp + 0x10]
push ebp
call esi
test eax, eax
je 0x10004bd8
push ebp
call edi
push ebp
call edi
push ebp
call esi
push ebp
call edi
push ebp
call esi
push ebp
call edi
push ebp
call esi
mov eax, dword [ebx]
inc dword [esp + 0x10]
mov ecx, ebx
call dword [eax + 0x18]
cmp dword [esp + 0x10], eax
jl 0x10004b47
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4