joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ef5f
Capabilities:
Check if file exists
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x200
and dword [eax], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
jmp 0x100f003
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x100f024
cmp esi, 3
je 0x100f024
push esi
lea ecx, [ebp - 0x200]
call fcn.0100e252
push eax
push edi
push 0x10037a0
push 9
call fcn.01017562
add esp, 0x10
push esi
lea ecx, [ebp - 0x200]
call fcn.0100e252
push eax
push edi
push 0x10034e8
push 7
push 7
push 0x34
push 0
call fcn.01011f41
add esp, 0x1c
cmp eax, 6
sete bl
mov eax, 0x10027ec
test bl, bl
jne 0x100efe9
mov eax, 0x10027e4
push eax
push 0x1002fa8
push 7
call fcn.01017562
add esp, 0xc
test bl, bl
je 0x100f01c
push edi
call fcn.0100ed56
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x100ef7b
push edi
push 0x10034b8
push 0x17
jmp 0x100f02c
mov eax, dword [ebp + 8]
or dword [eax], 1
jmp 0x100f034
push edi
push 0x1003484
push 9
call fcn.01017562
add esp, 0xc
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x100f200
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x101c2c0]
sub esp, 0x408
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x100f293
push 0x2e
push dword [0x101c2bc]
call fcn.01018b5f
pop ecx
pop ecx
cmp eax, ebx
jne 0x100f23e
push dword [0x101c2bc]
push 0x1003a48
call fcn.01011f22
pop ecx
pop ecx
jmp 0x100f2b9
add eax, 2
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0101244b
test al, al
jne 0x100f26c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x408]
call fcn.0100e252
push eax
push 0x10039f8
jmp 0x100f235
push ebx
lea eax, [ebp - 0x208]
push eax
push dword [0x101c2bc]
call fcn.0100e8df
test al, al
je 0x100f2b9
lea ecx, [ebp - 0x208]
call fcn.01016fef
mov dword [0x101c2c0], eax
push eax
push 0x10039c4
push 7
call fcn.01017562
add esp, 0xc
push 5
push ebx
push ebx
push dword [0x101c2c0]
push ebx
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov bl, 1
mov al, bl
pop ebx
leave
ret 4
Function at 0x100f2c5
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x764
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push 0x1003c68
lea eax, [ebp - 0x364]
push eax
mov byte [ebp - 1], bl
call fcn.0100f043
mov esi, eax
cmp esi, ebx
je 0x100f450
push edi
push 0x1003c00
lea eax, [ebp - 0x15c]
push 0x1003bfc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push ebx
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x15c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100f41c
cmp dword [ebp - 8], edi
jne 0x100f41c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [ebp - 0x364]
push eax
push 0x1003bb8
push 6
call fcn.01017562
push dword [0x101c1f8]
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x564]
push 0x1003b84
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
push 0x44
pop edi
push edi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
xor eax, eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x564]
push eax
push 0x1003b68
push 7
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x30], 1
call fcn.01017562
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
lea eax, [ebp - 0x564]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100f3fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x764]
call fcn.0100e252
push eax
push 0x1003b18
call fcn.01011f22
pop ecx
pop ecx
jmp 0x100f443
push dword [ebp - 0x10]
push 0x1003ac8
push 7
call fcn.01017562
add esp, 0xc
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x18]
call esi
mov byte [ebp - 1], 1
jmp 0x100f44f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x764]
call fcn.0100e252
push eax
lea eax, [ebp - 0x364]
push eax
push 0x1003a88
call fcn.01011f22
add esp, 0xc
lea eax, [ebp - 0x364]
push eax
call fcn.0100eab2
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret

Function at 0x100f45c
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x200
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
and dword [esi], 0
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100f4a7
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
jne 0x100f4d4
push ebx
push 0x1003ce0
call fcn.0100e1b1
test al, al
je 0x100f4c8
or dword [esi], 1
push ebx
call fcn.0100ed56
push ebx
push 0x1003cb0
push 0x17
call fcn.01017562
push ebx
push 0x1002bcc
push 4
call fcn.0101220e
add esp, 0x18
test al, al
jne 0x100f4cb
or dword [esi], 2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
call edi
push eax
lea ecx, [ebp - 0x200]
call fcn.0100e252
push eax
push ebx
push 0x1003c70
call fcn.01011f22
add esp, 0xc
jmp 0x100f4c8
Function at 0x100ff7d
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
mov esi, dword [ebp + 0x14]
imul esi, esi, 0x32
push edi
xor ecx, ecx
push 2
xor ebx, ebx
pop edx
mov eax, esi
mul edx
seto cl
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
neg ecx
or ecx, eax
push ecx
call fcn.01011250
mov edi, eax
pop ecx
cmp edi, ebx
je 0x1010086
push dword [ebp + 8]
push esi
push edi
push 0x1001b68
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, edi
cmp word [edi], bx
je 0x1010071
mov eax, dword [ebp + 0x14]
cmp dword [ebp - 8], eax
jae 0x1010060
push 0x104
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100f85e
lea eax, [ebp - 0x210]
push 0x2c
push eax
call fcn.01018aad
pop ecx
pop ecx
cmp eax, ebx
je 0x101001e
xor ecx, ecx
mov word [eax], cx
lea ecx, [eax + 2]
xor edx, edx
call fcn.01019c70
jmp 0x1010032
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + eax*2 - 0x210]
mov ecx, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
lea edx, [ebp - 8]
call fcn.01011fd0
test al, al
je 0x1010071
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x100ffd9
jmp 0x1010071
push eax
push dword [ebp + 0xc]
push 0x1004608
call fcn.01011f22
add esp, 0xc
cmp word [esi], bx
jne 0x101007a
mov byte [ebp - 1], 1
push edi
call fcn.01011260
pop ecx
cmp byte [ebp - 1], bl
jne 0x101008a
or dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1010400
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x103c
call fcn.01011270
push ebx
xor ebx, ebx
cmp dword [0x101c290], 1
push edi
mov edi, dword [ebp + 8]
mov dword [edi], ebx
mov byte [ebp + 0xb], bl
je 0x1010443
push dword [0x101c03c]
lea eax, [ebp - 0x924]
push 0x1004b88
push eax
call fcn.010103ba
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x101044a
mov dword [ebp - 4], 0x1001b68
push esi
mov esi, 0x208
push esi
lea eax, [ebp - 0x61c]
push ebx
push eax
call fcn.01018ae0
push esi
lea eax, [ebp - 0x103c]
push ebx
push eax
call fcn.01018ae0
push esi
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.01018ae0
push esi
lea eax, [ebp - 0xe34]
push ebx
push eax
call fcn.01018ae0
push esi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.01018ae0
push esi
lea eax, [ebp - 0xc2c]
push ebx
push eax
call fcn.01018ae0
mov ecx, dword [0x101c28c]
add esp, 0x48
push dword [ebp - 4]
lea edx, [ebp - 0x103c]
push dword [0x101c040]
call fcn.01017050
lea edx, [ebp - 0x61c]
mov ecx, eax
call fcn.01017278
mov ecx, dword [0x101c284]
push eax
lea edx, [ebp - 0xe34]
call fcn.01017050
lea edx, [ebp - 0x824]
mov ecx, eax
call fcn.01017278
mov ecx, dword [0x101c288]
push eax
lea edx, [ebp - 0xc2c]
call fcn.01017050
lea edx, [ebp - 0x414]
mov ecx, eax
call fcn.01017278
push eax
push 0x1004b54
push 0xb
call fcn.0101220e
add esp, 0x1c
test al, al
jne 0x1010528
or dword [edi], 2
jmp 0x1010612
call fcn.01014b1a
test al, al
je 0x1010520
push esi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.01018ae0
mov ecx, dword [0x101c288]
add esp, 0xc
push 0x1004b4c
push 0x104
lea edx, [ebp - 0x414]
call fcn.01017050
lea edx, [ebp - 0x20c]
mov ecx, eax
call fcn.0101a1c0
test eax, eax
je 0x10105fa
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.01018aad
pop ecx
pop ecx
test eax, eax
je 0x10105fa
lea eax, [ebp - 0x20c]
push eax
push 0x1004af8
push 8
call fcn.01017562
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x1002bcc
push eax
call fcn.010103dd
add esp, 0x18
push 5
push ebx
push eax
push 0x1004ae4
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test eax, eax
jne 0x10105f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xa24]
call fcn.0100e252
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1004a98
push 9
call fcn.01017562
add esp, 0x10
jmp 0x101060f
mov byte [ebp + 0xb], 1
jmp 0x1010612
push dword [0x101c284]
push 0x1004a6c
push 9
call fcn.01017562
add esp, 0xc
or dword [edi], 1
mov eax, dword [edi]
shr eax, 1
pop esi
test al, 1
jne 0x1010632
cmp byte [ebp + 0xb], bl
jne 0x1010632
push dword [0x101c284]
push 0x10049e8
call fcn.01011efc
pop ecx
pop ecx
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x10120ea
Capabilities:
Shutdown system

Disassembly:
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1012103
push 0x1007868
call fcn.01011efc
pop ecx
ret

Function at 0x10124ed
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push 0x104
lea eax, [ebp - 0x208]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x1012535
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x408]
call fcn.0100e252
push eax
push 0x1007ae0
call fcn.01011f22
pop ecx
pop ecx
jmp 0x1012643
push esi
lea ecx, [ebp - 0x208]
call fcn.01016fef
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 1
mov dword [0x101c1a4], eax
push 2
lea eax, [ebp - 0x208]
push eax
push ebx
call esi
test eax, eax
jne 0x1012585
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x408]
call fcn.0100e252
push eax
push 0x1007a98
push 9
call fcn.01017562
add esp, 0xc
jmp 0x1012642
push edi
lea ecx, [ebp - 0x208]
call fcn.01016fef
push 1
mov dword [0x101c1ac], eax
push 0x17
lea eax, [ebp - 0x208]
push eax
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10125b6
lea ecx, [ebp - 0x208]
jmp 0x10125da
call edi
push eax
lea ecx, [ebp - 0x408]
call fcn.0100e252
push eax
push 0x1007a48
push 9
call fcn.01017562
mov ecx, dword [0x101c1ac]
add esp, 0xc
call fcn.01016fef
push ebx
mov dword [0x101c1b0], eax
push 0x26
lea eax, [ebp - 0x208]
push eax
push ebx
call esi
test eax, eax
jne 0x1012613
call edi
push eax
lea ecx, [ebp - 0x408]
call fcn.0100e252
push eax
push 0x1007a00
push 9
call fcn.01017562
add esp, 0xc
lea ecx, [ebp - 0x208]
call fcn.01016fef
mov dword [0x101c1a8], eax
pop edi
mov ecx, 0x10079f8
cmp byte [0x101c1bd], bl
jne 0x1012636
mov ecx, 0x10079f0
call fcn.01016fef
mov dword [0x101c1b4], eax
mov bl, 1
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x101264d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x408
push esi
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test esi, esi
jne 0x1012690
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x408]
call fcn.0100e252
push eax
push 0x1007b40
call fcn.01011f22
pop ecx
pop ecx
lea eax, [ebp + esi*2 - 0x20a]
cmp word [eax], 0x5c
pop esi
jne 0x10126a3
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x208]
call fcn.01016fef
push eax
push 0x1007b24
push 5
mov dword [0x101c298], eax
call fcn.01017562
add esp, 0xc
mov al, 1
leave
ret

Function at 0x1012a27
Capabilities:
Check if file exists
Enumerate disk volumes
Get disk information

Disassembly:
call fcn.0101441a
cmp byte [0x101c1e1], 0
jne 0x1012a3a
jmp fcn.010128ba
ret
Function at 0x1012d68
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov ecx, esi
mov byte [ebp - 1], 0
call fcn.01012bba
test al, al
je 0x1012e50
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
push ebx
push edi
push dword [esi + 8]
push dword [ebp + 8]
push 0x1008194
push 5
call fcn.01017562
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 8], 1
mov ebx, 0x1008188
cmp byte [ebp - 1], 0
jne 0x1012e4e
push dword [ebp - 8]
push dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
call edi
add esp, 0x10
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0xc]
mov ecx, esi
call fcn.01013fae
test al, al
jne 0x1012e57
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1012e0b
push dword [esi + 8]
push dword [ebp + 0xc]
push 0x1008154
push 5
call fcn.01017562
add esp, 0x10
mov byte [ebp - 1], 1
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xa
jb 0x1012db7
cmp byte [ebp - 1], 0
jne 0x1012e4e
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1012e4e
cmp eax, dword [ebp - 0xc]
je 0x1012e4e
push eax
push dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
call edi
push dword [esi + 8]
push dword [ebp + 0xc]
push 0x100813c
push 0x10080f8
push 5
call fcn.01017562
add esp, 0x24
mov byte [ebp - 1], 1
pop edi
pop ebx
mov al, byte [ebp - 1]
leave
ret 8
cmp word [ebp - 0x218], 0
je 0x1012df2
push 0x100813c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1012e0b
cmp dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
je 0x1012e85
mov dword [ebp - 0x10], eax
jmp 0x1012e0b
mov dword [ebp - 0xc], eax
jmp 0x1012e0b

Function at 0x1012f8e
Capabilities:
Link many functions at runtime

Disassembly:
xor eax, eax
lea edx, [ecx + 4]
inc eax
lock xadd dword [edx], eax
inc eax
cmp eax, 1
jne 0x1012fa3
jmp fcn.01012e8f
mov al, 1
ret
Function at 0x1012fca
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push edi
mov edi, 0x101c2dc
xor ebx, ebx
mov ecx, edi
mov byte [ebp - 1], bl
call fcn.01012f8e
test al, al
je 0x10130c6
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x100844c
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.01019f00
push dword [ebp + 8]
mov edx, esi
lea ecx, [ebp - 0x20c]
call fcn.01019f00
lea eax, [ebp - 0x20c]
push eax
push 0x1008418
push 3
call fcn.01017562
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [0x101c2e4]
mov esi, eax
cmp esi, ebx
jne 0x1013066
lea eax, [ebp - 0x20c]
push eax
push 0x10083dc
call fcn.01011f22
pop ecx
pop ecx
jmp 0x10130aa
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x1008390
push 3
call fcn.01017562
add esp, 0x14
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [0x101c2e8]
cmp eax, 1
je 0x10130a6
push eax
push dword [ebp + 0xc]
push 0x1008328
call fcn.01011f22
add esp, 0xc
jmp 0x10130aa
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x10130c5
push 0x10082fc
push 3
call fcn.01017562
pop ecx
pop ecx
push ebx
push ebx
push esi
call dword [0x101c2ec]
pop esi
cmp dword [0x101c2dc], ebx
je 0x10130d5
mov ecx, edi
call fcn.01012fab
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 0x10
Function at 0x1013358
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x278
push ebx
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp + 0xc]
push 0x1008718
push 7
call fcn.01017562
add esp, 0x14
lea ecx, [ebp - 0x58]
call fcn.01012c21
push 0x18
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_RtlZeroMemory]
lea eax, [ebp - 0x58]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov byte [ebp - 1], 0
call fcn.010130e3
mov byte [ebp + 0x13], al
test al, al
je 0x10134c1
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
mov cl, byte [ebp + 0x13]
shl eax, 3
test byte [eax + 0x1007ec4], cl
je 0x1013420
mov ebx, dword [eax + 0x1007ec0]
xor edi, edi
mov esi, dword [ebp + edi*4 - 0x18]
lea eax, [ebp - 0x278]
push eax
push ebx
call fcn.01012d68
test al, al
jne 0x101347e
cmp byte [esi + 0xc], al
je 0x1013409
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10134a7
push ebx
push dword [esi + 8]
push ebx
push 0x1008578
call fcn.01011f22
add esp, 0x10
cmp edi, 3
jb 0x101342d
inc dword [ebp - 8]
add dword [ebp - 0xc], 3
cmp dword [ebp - 8], 2
jb 0x10133c3
cmp dword [ebp - 8], 2
jb 0x10134c1
lea ecx, [ebp - 0x38]
call fcn.01012bba
test al, al
je 0x10134c1
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
push dword [ebp + 0xc]
call fcn.01014181
test al, al
je 0x10134c1
call fcn.0100e69b
test al, al
je 0x10134b6
call fcn.01012a27
push 0
push 0x696e7374
push 9
push dword [ebp + 0xc]
call fcn.01012fca
test al, al
je 0x10134b6
mov byte [ebp - 1], 1
jmp 0x10134f2
push dword [ebp + 0xc]
lea eax, [ebp - 0x278]
push eax
mov ecx, esi
call fcn.01014181
test al, al
je 0x101341b
lea ecx, [ebp - 0x278]
call fcn.01016fef
mov ecx, dword [ebp - 0xc]
add ecx, edi
mov dword [ebp + ecx*4 - 0x70], eax
inc edi
cmp edi, 3
jb 0x10133dc
jmp 0x101341b
push dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
call fcn.010141d2
lea esi, [ebp - 0x70]
mov dword [ebp + 0xc], 2
xor ebx, ebx
mov edi, dword [esi]
test edi, edi
je 0x10134e4
mov ecx, dword [ebp + ebx*4 - 0x18]
push edi
call fcn.010141d2
push edi
call fcn.01011260
pop ecx
inc ebx
add esi, 4
cmp ebx, 3
jb 0x10134cd
dec dword [ebp + 0xc]
jne 0x10134cb
lea ecx, [ebp - 0x58]
call fcn.01012ae6
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10137d9
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x468
push ebx
push esi
push edi
push 0x15
pop ecx
mov esi, 0x1008a78
lea edi, [ebp - 0x60]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 8]
movsw word es:[edi], word [esi]
xor ebx, ebx
call fcn.01013e18
lea eax, [ebp - 0x60]
push eax
push 0x80000001
lea ecx, [ebp - 8]
call fcn.01013f16
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
jne 0x101384d
call esi
test eax, eax
je 0x101384d
call esi
cmp eax, 0xb7
je 0x101384d
call esi
push eax
lea ecx, [ebp - 0x260]
call fcn.0100e252
push eax
push 0x1008a20
push 9
call fcn.01017562
add esp, 0xc
jmp 0x10138e5
mov edi, 0x1008a0c
cmp byte [ebp + 8], bl
jne 0x101385c
mov edi, 0x10089fc
push ebx
lea eax, [ebp - 0x468]
push eax
push edi
lea ecx, [ebp - 8]
call fcn.01013fae
call esi
cmp eax, 2
je 0x10138a9
call esi
test eax, eax
jne 0x101388b
lea eax, [ebp - 0x468]
push eax
push edi
push 0x10089bc
push 7
jmp 0x10138a2
call esi
push eax
lea ecx, [ebp - 0x260]
call fcn.0100e252
push eax
push edi
push 0x1008968
push 9
call fcn.01017562
jmp 0x10138e2
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
push edi
call fcn.01014181
test al, al
jne 0x10138d0
call esi
push eax
lea ecx, [ebp - 0x260]
call fcn.0100e252
push eax
push edi
push 0x100892c
jmp 0x10138a0
push dword [ebp + 0xc]
push edi
push 0x10088fc
push 7
call fcn.01017562
mov bl, 1
add esp, 0x10
lea ecx, [ebp - 8]
call fcn.01014478
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8

Function at 0x1013a66
Capabilities:
Enumerate process modules

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
mov eax, 0x7d0
push edi
push eax
mov edi, eax
call fcn.01011250
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1013ab2
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push edi
push esi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x1013aef
mov eax, dword [ebp - 4]
cmp eax, edi
jb 0x1013b0c
push esi
add edi, edi
call fcn.01011260
push edi
call fcn.01011250
pop ecx
mov esi, eax
pop ecx
test esi, esi
jne 0x1013a89
push edi
push 0x1008c50
call fcn.01011f22
pop ecx
pop ecx
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x1013ae6
call ebx
push esi
mov edi, eax
call fcn.01011260
pop ecx
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
call ebx
push eax
lea ecx, [ebp - 0x204]
call fcn.0100e252
push eax
push 0x1008c10
call fcn.01011f22
pop ecx
pop ecx
jmp 0x1013ace
mov ecx, dword [ebp + 8]
shr eax, 2
mov dword [ecx], eax
jmp 0x1013ae6
Function at 0x1013b1b
Capabilities:
Get process image filename

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
push edi
push 0x5c
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
call fcn.01018aad
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, edi
jne 0x1013b4c
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1013bff
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
mov dword [ebp + 8], eax
lea eax, [ebp - 8]
push eax
call fcn.01013a66
mov ebx, eax
cmp ebx, edi
je 0x1013bfd
cmp dword [ebp - 8], edi
jbe 0x1013be7
mov eax, dword [ebx + edi*4]
test eax, eax
je 0x1013be1
push eax
push 0
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
test eax, eax
je 0x1013bdb
push 0x104
lea ecx, [ebp - 0x214]
push ecx
push eax
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x1013bcc
lea eax, [ebp - 0x214]
push eax
call esi
cmp eax, dword [ebp + 8]
jb 0x1013bcc
sub eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
push 0xffffffffffffffff
push 1
lea ecx, [ebp + eax*2 - 0x214]
call fcn.01019e70
test eax, eax
je 0x1013be7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 4], 0
jmp 0x1013be1
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc edi
cmp edi, dword [ebp - 8]
jb 0x1013b72
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call fcn.01011260
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 4