joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004587
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
xor esi, esi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], esi
cmp dword [ebp + 0x10], esi
jne 0x100045c7
cmp dword [0x10033a64], esi
je 0x10004756
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp dword [ebp + 8], esi
jne 0x100045b6
mov dword [ebp + 8], eax
cmp dword [ebp + 8], eax
jne 0x100045c7
cmp dword [ebp + 0xc], esi
jne 0x100045c7
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.100044bc
movzx eax, al
cmp dword [ebp + 0xc], esi
jne 0x100045e8
xor ecx, ecx
cmp eax, esi
sete cl
mov eax, ecx
cmp eax, esi
jne 0x10004756
push edi
mov edi, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x10004755
mov eax, dword [edi + 0x3c]
add eax, edi
cmp dword [eax], 0x4550
jne 0x10004755
push ebx
mov ebx, dword [eax + 0x80]
cmp ebx, esi
je 0x10004754
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
cmp dword [ebp + 0xc], esi
je 0x10004637
call fcn.1000451b
mov dword [eax], esi
jmp 0x1000463c
call fcn.100044e1
add ebx, edi
mov eax, dword [ebx + 0xc]
cmp eax, esi
je 0x10004745
jmp 0x1000464e
mov edi, dword [ebp + 8]
lea esi, [eax + edi]
push 0x10029660
push esi
call fcn.1001d439
pop ecx
pop ecx
test eax, eax
jne 0x10004719
mov esi, dword [ebx]
add esi, edi
mov edi, dword [ebx + 0x10]
add edi, dword [ebp + 8]
jmp 0x100046d5
js 0x100046cf
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx + 2]
push 0x100288d0
push eax
call fcn.10017810
pop ecx
pop ecx
test eax, eax
jne 0x100046cf
cmp dword [ebp + 0xc], 0
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
je 0x100046a5
xor ecx, ecx
cmp eax, sym.BugTrap.dll_BT_NetFilter
setne cl
mov eax, ecx
jmp 0x100046a8
xor eax, eax
inc eax
test eax, eax
je 0x100046cf
push 0x1c
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea eax, [ebp - 0x10]
push eax
push 4
push dword [ebp - 0x24]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100046dd
add esi, 4
add edi, 4
mov eax, dword [esi]
test eax, eax
jne 0x10004672
jmp 0x10004735
cmp dword [ebp + 0xc], 0
mov eax, sym.BugTrap.dll_BT_NetFilter
jne 0x100046eb
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [ebp + 0xc], 0
je 0x10004735
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
call fcn.1000451b
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
jmp 0x10004735
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10004735
mov ecx, dword [ebp + 0x10]
inc ecx
push ecx
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push eax
call fcn.10004587
mov eax, dword [ebx + 0x20]
add ebx, 0x14
test eax, eax
jne 0x1000464b
xor esi, esi
cmp dword [ebp - 8], esi
je 0x10004754
mov ecx, dword [ebp - 4]
push 1
call fcn.100043b5
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x10004984
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0x12c
mov eax, dword [0x100310fc]
xor eax, ebp
mov dword [ebp + 0xa8], eax
mov eax, dword [ebp + 0xb4]
and dword [ebp - 0x60], 0
push ebx
mov ebx, ecx
mov dword [ebp - 0x6c], eax
mov eax, dword [ebx + 4]
push esi
push edi
test eax, eax
jbe 0x10004ab1
and dword [ebp - 0x68], 0
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [ebx]
add esi, dword [ebp - 0x68]
cmp dword [esi], 0
je 0x10004ace
cmp eax, 1
jbe 0x100049f9
mov eax, dword [ebp - 0x60]
inc eax
push eax
push dword [ebp - 0x6c]
lea eax, [ebp - 0x5c]
push str._s_d.bmp
push 0x104
push eax
call fcn.100165d7
add esp, 0x14
jmp 0x10004a12
push dword [ebp - 0x6c]
lea eax, [ebp - 0x5c]
push str._s.bmp
push 0x104
push eax
call fcn.100165d7
add esp, 0x10
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x64], eax
cmp eax, 0xffffffff
je 0x10004ace
push 0xe
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.100162f0
mov eax, 0x4d42
mov word [ebp - 0x80], ax
mov eax, dword [esi + 8]
add eax, 0xe
add esp, 0xc
mov dword [ebp - 0x76], eax
mov ecx, dword [esi + 0xc]
add ecx, eax
push 0
lea eax, [ebp - 0x70]
push eax
push 0xe
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x64]
mov dword [ebp - 0x7e], ecx
call edi
push 0
lea eax, [ebp - 0x70]
push eax
push dword [esi + 8]
push dword [esi]
push dword [ebp - 0x64]
call edi
push 0
lea eax, [ebp - 0x70]
push eax
push dword [esi + 0xc]
push dword [esi + 4]
push dword [ebp - 0x64]
call edi
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x60]
mov eax, dword [ebx + 4]
add dword [ebp - 0x68], 0x10
cmp dword [ebp - 0x60], eax
jb 0x100049c6
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xa8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100162d3
add ebp, 0xac
leave
ret 4
xor eax, eax
jmp 0x10004ab4

Function at 0x10004f16
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x24]
mov edi, str.Unknown
push eax
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x10033a64], 0
je 0x10004f61
movzx eax, word [ebp - 0x24]
test eax, eax
je 0x10004f61
cmp eax, 6
je 0x10004f59
cmp eax, 9
je 0x10004f51
mov dword [esi], edi
jmp 0x10004f67
mov dword [esi], str.AMD_x64
jmp 0x10004f67
mov dword [esi], str.IA_64
jmp 0x10004f67
mov dword [esi], str.Intel_x86
mov eax, dword [ebp - 0x10]
pop edi
mov dword [esi + 4], eax
pop esi
leave
ret
Function at 0x10004f71
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x100310fc]
xor eax, ebp
mov dword [ebp + 0x98], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xa8]
mov ebx, str.Unknown
push ebx
mov esi, 0x80
push esi
push edi
call fcn.100168b9
push 0x10028bc4
lea eax, [edi + 0x80]
push 0x10
push eax
call fcn.100168b9
push ebx
lea eax, [edi + 0x90]
push esi
push eax
call fcn.100168b9
xor ebx, ebx
add esp, 0x24
mov dword [ebp - 0x7c], 1
cmp dword [0x10033a64], ebx
je 0x100050ee
push dword [ebp + 0xa4]
lea eax, [ebp - 0x6c]
push str.HARDWAREDESCRIPTIONSystemCentralProcessor_lu
push 0x104
push eax
call fcn.100165d7
add esp, 0x10
lea eax, [ebp - 0x78]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x6c]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100050eb
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.MHz
push dword [ebp - 0x78]
mov dword [ebp - 0x74], 4
call ebx
test eax, eax
jne 0x10005063
cmp dword [ebp - 0x70], 4
jne 0x10005063
push 0xa
push 0x10
lea eax, [edi + 0x80]
push eax
push dword [ebp - 0x80]
call fcn.100164a6
add esp, 0x10
jmp 0x1000506a
mov byte [edi + 0x80], 0
lea eax, [ebp - 0x74]
push eax
lea eax, [edi + 0x90]
push eax
lea eax, [ebp - 0x70]
push eax
push 0
push str.ProcessorNameString
push dword [ebp - 0x78]
mov dword [ebp - 0x74], esi
call ebx
test eax, eax
jne 0x100050a6
cmp dword [ebp - 0x70], 1
jne 0x100050a6
push str.__t_r_n
lea eax, [edi + 0x90]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
jmp 0x100050ad
mov byte [edi + 0x90], 0
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x70]
push eax
push 0
push str.Identifier
push dword [ebp - 0x78]
mov dword [ebp - 0x74], esi
call ebx
test eax, eax
jne 0x100050dd
cmp dword [ebp - 0x70], 1
jne 0x100050dd
push str.__t_r_n
push edi
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
jmp 0x100050e0
mov byte [edi], 0
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100050ee
mov dword [ebp - 0x7c], ebx
mov ecx, dword [ebp + 0x98]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100162d3
add ebp, 0x9c
leave
ret
Function at 0x10005251
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
mov eax, dword [0x100310fc]
xor eax, ebp
mov dword [ebp + 0x70], eax
push esi
mov esi, dword [ebp + 0x7c]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x20]
sub eax, 3
mov dword [esi], str.Unknown
je 0x10005354
dec eax
je 0x1000530a
dec eax
je 0x100052da
dec eax
je 0x100052bb
dec eax
jne 0x10005366
cmp dword [ebp - 0x14], 2
jne 0x10005366
cmp dword [ebp - 0x1c], eax
jne 0x10005366
mov dword [esi], str.Windows_7
jmp 0x10005366
cmp dword [ebp - 0x14], 2
jne 0x10005366
cmp dword [ebp - 0x1c], 0
jne 0x10005366
mov dword [esi], str.Windows_Vista
jmp 0x10005366
cmp dword [ebp - 0x14], 2
jne 0x10005366
mov eax, dword [ebp - 0x1c]
sub eax, 0
je 0x10005302
dec eax
je 0x100052fa
dec eax
jne 0x10005366
mov dword [esi], str.Windows_Server_2003
jmp 0x10005366
mov dword [esi], str.Windows_XP
jmp 0x10005366
mov dword [esi], str.Windows_2000
jmp 0x10005366
cmp dword [ebp - 0x1c], 0
je 0x10005338
cmp dword [ebp - 0x1c], 0xa
je 0x1000532a
cmp dword [ebp - 0x1c], 0x5a
jne 0x10005366
cmp dword [ebp - 0x14], 1
jne 0x10005366
mov dword [esi], str.Windows_Me
jmp 0x10005366
cmp dword [ebp - 0x14], 1
jne 0x10005366
mov dword [esi], str.Windows_98
jmp 0x10005366
cmp dword [ebp - 0x14], 2
jne 0x10005346
mov dword [esi], str.Windows_NT_4.0
jmp 0x10005366
cmp dword [ebp - 0x14], 1
jne 0x10005366
mov dword [esi], str.Windows_95
jmp 0x10005366
cmp dword [ebp - 0x1c], 0x33
jne 0x10005366
cmp dword [ebp - 0x14], 2
jne 0x10005366
mov dword [esi], str.Windows_NT_3.51
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 4]
push 0x80
push eax
call fcn.100168b9
push 0xa
push 0x10
add esi, 0x84
push esi
push dword [ebp - 0x18]
call fcn.100164a6
mov ecx, dword [ebp + 0x70]
add esp, 0x1c
xor ecx, ebp
pop esi
call fcn.100162d3
add ebp, 0x74
leave
ret

Function at 0x10005440
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov esi, dword [ebp + 8]
push 0xa
push 8
push esi
push dword [ebp - 0x1c]
call fcn.100164a6
push 0xa
push 0x10
lea eax, [esi + 8]
push eax
push dword [ebp - 0x18]
call fcn.100164a6
push 0xa
push 0x10
lea eax, [esi + 0x18]
push eax
push dword [ebp - 0x14]
call fcn.100164a6
push 0xa
push 0x10
lea eax, [esi + 0x28]
push eax
push dword [ebp - 0x10]
call fcn.100164a6
add esp, 0x40
push 0xa
push 0x10
add esi, 0x38
push esi
push dword [ebp - 0xc]
call fcn.100164a6
add esp, 0x10
pop esi
leave
ret
Function at 0x100054aa
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0xc]
shr eax, 0x14
push eax
mov eax, dword [ebp - 0x10]
shr eax, 0x14
push eax
mov eax, dword [ebp - 0x14]
shr eax, 0x14
push eax
mov eax, dword [ebp - 0x18]
shr eax, 0x14
push eax
push dword [ebp - 0x1c]
push str.Current_Memory_Load:__________lu___r_nTotal_Physical_Memory:________lu_MB_r_nAvailable_Physical_Memory:____lu_MB_r_nTotal_Page_File_Memory:_______lu_MB_r_nAvailable_Page_File_Memory:___lu_MB
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100165d7
add esp, 0x20
leave
ret

Function at 0x10005925
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x100310fc]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
mov ebx, dword [ebp + 0x98]
push str.environment
mov ecx, ebx
call fcn.10010de2
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x100059f1
cmp byte [eax], 0
push esi
mov esi, eax
je 0x100059e9
push edi
push 0x3d
push esi
call fcn.10017577
pop ecx
mov edi, eax
pop ecx
push 0
test edi, edi
je 0x100059d5
push edi
call fcn.10017577
mov dword [ebp - 0x80], eax
mov eax, edi
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x78]
push 0x104
push eax
call fcn.10017898
add esp, 0x18
push str.variable
mov ecx, ebx
call fcn.10010de2
lea eax, [ebp - 0x78]
push eax
push str.name
mov ecx, ebx
call fcn.10010f74
inc edi
push edi
push str.value
mov ecx, ebx
call fcn.10010f74
mov ecx, ebx
call fcn.10010e6c
mov eax, dword [ebp - 0x80]
jmp 0x100059dd
push esi
call fcn.10017577
pop ecx
pop ecx
lea esi, [eax + 1]
cmp byte [esi], 0
jne 0x1000596d
mov eax, dword [ebp - 0x7c]
pop edi
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop esi
mov ecx, ebx
call fcn.10010e6c
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
pop ebx
call fcn.100162d3
add ebp, 0x90
leave
ret
Function at 0x10005a4b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
jne 0x10005a60
xor eax, eax
jmp 0x10005aef
mov eax, dword [ebp + 0xc]
push esi
mov byte [eax], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
jne 0x10005a7d
xor eax, eax
jmp 0x10005aee
push ebx
push esi
call fcn.10001029
mov ebx, eax
pop ecx
cmp ebx, edi
jne 0x10005a8f
xor eax, eax
jmp 0x10005aed
push ebx
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x10005ae4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x10028dc8
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10005ae4
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._lu._lu._lu._lu
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.100165d7
xor edi, edi
add esp, 0x1c
inc edi
push ebx
call fcn.10016394
pop ecx
mov eax, edi
pop ebx
pop esi
pop edi
leave
ret

Function at 0x10005af2
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x21c]
sub esp, 0x29c
mov eax, dword [0x100310fc]
xor eax, ebp
mov dword [ebp + 0x218], eax
mov eax, dword [ebp + 0x224]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x78]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10005bb3
push 0x100
lea eax, [ebp + 0x118]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x10005bad
push esi
lea eax, [ebp + 0x118]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x10005bac
cmp word [esi + 8], 2
jne 0x10005bac
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
push edi
xor edi, edi
test eax, eax
je 0x10005bab
push ebx
movsx ecx, word [esi + 0xa]
push ecx
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.100169c0
add esp, 0xc
push dword [ebp - 0x80]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ebx, eax
test edi, edi
je 0x10005b96
mov ecx, dword [ebp - 0x7c]
push 0x10028dcc
call fcn.10001639
mov ecx, dword [ebp - 0x7c]
push ebx
call fcn.10001639
mov eax, dword [esi + 0xc]
inc edi
mov eax, dword [eax + edi*4]
test eax, eax
jne 0x10005b68
pop ebx
pop edi
pop esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp + 0x218]
xor ecx, ebp
call fcn.100162d3
add ebp, 0x21c
leave
ret
Function at 0x10005c05
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x100310fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x294]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10005cc6
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x10005cc0
push esi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x10005cbf
cmp word [esi + 8], 2
jne 0x10005cbf
push 0x10028dd4
mov ecx, ebx
call fcn.10010de2
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x10005cb8
push edi
xor edi, edi
movsx ecx, word [esi + 0xa]
push ecx
push eax
lea eax, [ebp - 0x298]
push eax
call fcn.100169c0
add esp, 0xc
push dword [ebp - 0x298]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x10028dd0
mov ecx, ebx
call fcn.10010f74
mov eax, dword [esi + 0xc]
add edi, 4
mov eax, dword [edi + eax]
test eax, eax
jne 0x10005c7c
pop edi
mov ecx, ebx
call fcn.10010e6c
pop esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100162d3
leave
ret

Function at 0x100063e0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push closesocket
push dword [ebp + 0xc]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, 0xffffffff
je 0x100064ca
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, 0x19000
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x1000642b
mov dword [ebp - 4], ecx
push dword [ebp - 4]
call fcn.10001029
pop ecx
mov dword [ebp - 8], eax
cmp eax, edi
je 0x100064bf
push 9
push 8
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.10012dee
add esp, 0x28
test eax, eax
jne 0x100064b6
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x1000649c
cmp dword [ebp + 0x10], edi
je 0x100064a7
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.10012489
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
inc esi
je 0x100064a7
push edi
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
mov dword [ebp + 0x10], edi
call ebx
mov esi, eax
cmp esi, edi
jne 0x1000646f
push dword [ebp + 8]
call fcn.10012736
pop ecx
test eax, eax
je 0x100064b6
xor esi, esi
push dword [ebp - 8]
call fcn.10016394
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100064eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100064e8
cmp eax, 3
je 0x100064e8
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x100064eb
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100064f2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x710], edi
jne 0x1000650d
xor eax, eax
jmp 0x1000659d
push ebx
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10006531
xor eax, eax
jmp 0x1000659c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 8], eax
cmp dword [esi + 0xc], edi
je 0x10006570
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0xc]
push edi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push dword [0x1003109c]
mov dword [ebp - 0xc], 1
push ebx
push dword [ebp - 8]
jmp 0x1000657b
push edi
push edi
push edi
push dword [0x1003109c]
push ebx
push eax
push dword [ebp - 4]
call dword [esi + 0x710]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
jne 0x1000659a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x10007c35
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x714], ebx
je 0x10007cf7
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ebx
call fcn.10003192
test eax, eax
je 0x10007cf7
push edi
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
sete al
cmp dword [esi + 0xc], ebx
je 0x10007c8a
cmp al, bl
jne 0x10007ce3
cmp al, bl
je 0x10007ca1
push str.active
push ebx
push ecx
push dword [ebp + 8]
mov ecx, esi
call fcn.10007aae
jmp 0x10007ce3
push ecx
push ebx
push 0x4a
call dword [esi + 0x714]
mov edi, eax
cmp edi, ebx
je 0x10007ce3
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
mov eax, str.suspended
jne 0x10007cc6
mov eax, str.running
push eax
push edi
push dword [ebp - 4]
mov ecx, esi
push dword [ebp + 8]
call fcn.10007aae
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call fcn.1000320c
test eax, eax
jne 0x10007c78
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1000832e
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x714], ebx
je 0x100083f0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ebx
call fcn.10003192
test eax, eax
je 0x100083f0
push edi
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
sete al
cmp dword [esi + 0xc], ebx
je 0x10008383
cmp al, bl
jne 0x100083dc
cmp al, bl
je 0x1000839a
push str.Active_Thread
push ebx
push ecx
push dword [ebp + 8]
mov ecx, esi
call fcn.10008281
jmp 0x100083dc
push ecx
push ebx
push 0x4a
call dword [esi + 0x714]
mov edi, eax
cmp edi, ebx
je 0x100083dc
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
mov eax, str.Suspended_Thread
jne 0x100083bf
mov eax, str.Running_Thread
push eax
push edi
push dword [ebp - 4]
mov ecx, esi
push dword [ebp + 8]
call fcn.10008281
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call fcn.1000320c
test eax, eax
jne 0x10008371
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100087c5
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2d8]
sub esp, 0x358
mov eax, dword [0x100310fc]
xor eax, ebp
mov dword [ebp + 0x2d4], eax
mov eax, dword [ebp + 0x2e4]
push ebx
mov ebx, dword [ebp + 0x2e0]
push 0
push eax
mov dword [ebp - 0x80], eax
call fcn.100123ec
pop ecx
pop ecx
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x100088e7
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
push edi
push 0x10028630
push ebx
lea eax, [ebp + 0xcc]
xor edi, edi
push eax
inc edi
call esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
je 0x10008886
test byte [ebp - 0x74], 0x10
jne 0x10008868
lea eax, [ebp - 0x48]
push eax
push ebx
lea eax, [ebp + 0x1d0]
push eax
call esi
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp + 0x1d0]
push eax
push dword [ebp - 0x7c]
call fcn.100063e0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x10008879
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10008838
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x100088c4
mov eax, dword [0x10033a6c]
xor ebx, ebx
mov dword [ebp - 0x78], eax
test eax, eax
jbe 0x100088c4
push ebx
mov ecx, 0x10033a68
call fcn.1000340d
mov esi, dword [eax]
add esi, 4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
push esi
push dword [ebp - 0x7c]
call fcn.100063e0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100088c4
inc ebx
cmp ebx, dword [ebp - 0x78]
jb 0x10008894
push 0
push dword [ebp - 0x7c]
call fcn.10012747
pop ecx
pop ecx
test eax, eax
je 0x100088d6
xor edi, edi
test edi, edi
jne 0x100088e3
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp + 0x2d4]
xor ecx, ebp
pop ebx
call fcn.100162d3
add ebp, 0x2d8
leave
ret 8