joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10051206
Capabilities:
Check mutex on windows

Disassembly:
push 0x1c
mov eax, 0x1023ec60
call fcn.10045b0b
mov esi, ecx
lea ecx, [ebp - 0x28]
call fcn.10060f45
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10060f5a
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0xc
call fcn.1001f8e0
push dword [ebp + 8]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
lea ecx, [ebp - 0x28]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 4], eax
call fcn.10060f55
call fcn.10045ad4
ret 4

Function at 0x1005166a
Capabilities:
Check if file exists

Disassembly:
push 0x234
mov eax, 0x1023ec86
call fcn.10045b3f
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0x1a
push eax
push ebx
call fcn.10051dd4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1005169a
sub ecx, edx
sar ecx, 1
je 0x10051735
push 0x102b5bd8
mov ebx, 0x104
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.100d386b
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.100d386b
push 0x102b5bd8
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.100d386b
add esp, 0x24
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10051727
and dword [ebp - 0x21c], eax
and dword [ebp - 4], eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10052d36
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x240]
call fcn.1001b290
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.1001c400
call fcn.10045ae9
ret 8
Function at 0x100518bc
Capabilities:
Check if file exists

Disassembly:
push 0xc7c
mov eax, 0x1023ed07
call fcn.10045b3f
mov esi, ecx
mov dword [ebp - 0xc88], esi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc40]
mov ebx, dword [ebp + 0xc]
push 0x208
push 0
push eax
mov dword [ebp - 0xc84], edi
call fcn.100a55e0
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.100a55e0
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100a55e0
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.100a55e0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100a55e0
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.100a55e0
xor ecx, ecx
mov dword [ebp - 0xc44], 7
xor eax, eax
mov dword [ebp - 0xc48], ecx
add esp, 0x48
mov word [ebp - 0xc58], ax
push ecx
push 0x1a
lea eax, [ebp - 0xc40]
mov dword [ebp - 4], ecx
push eax
push ecx
mov ecx, esi
call fcn.10051dd4
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.100c7667
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.100a86c6
add esp, 0x14
test eax, eax
jne 0x100519b8
mov ecx, esi
jmp 0x10051b27
xor ecx, ecx
mov esi, 0x104
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.100c7667
push str.Local
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.100d386b
add esp, 0x18
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
xor esi, esi
inc ecx
test eax, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
cmovne esi, ecx
push 0x104
push eax
call fcn.100c7667
push str.LocalLow
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.100d386b
add esp, 0x18
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 1
xor ecx, ecx
test eax, eax
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc84], ecx
push 0x104
push eax
call fcn.100c7667
push str.Roaming
lea eax, [ebp - 0xa38]
push 0x104
push eax
call fcn.100d386b
add esp, 0x18
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x10051b21
cmp dword [ebp - 0xc84], 0
je 0x10051b21
test ecx, ecx
je 0x10051b21
push ebx
lea eax, [ebp - 0x420]
push eax
push 0x1024732c
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.1004aa4c
add esp, 0x14
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10051b0d
and dword [ebp - 0xc5c], eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0xc80]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.10052d36
pop ecx
pop ecx
lea ecx, [ebp - 0xc80]
mov byte [ebp - 4], 0
call fcn.1001b290
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xc58]
call fcn.1001c400
jmp 0x10051b34
mov ecx, dword [ebp - 0xc88]
push ebx
lea eax, [ebp - 0xc58]
push eax
call fcn.1005166a
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.1001d690
lea ecx, [ebp - 0xc58]
call fcn.10021eb0
mov eax, edi
call fcn.10045ae9
ret 8
Function at 0x10052c02
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10052c31
push 2
pop eax
jmp 0x10052cc3
push 0x102b6058
push 0x102b606c
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.10052807
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.100a55e0
add esp, 0x1c
mov dword [ebp - 0x58], edi
test ebx, ebx
mov dword [ebp - 0x48], esi
mov ecx, str.open
mov dword [ebp - 0x54], 0x40
mov eax, 0x102473cc
mov dword [ebp - 0x3c], 5
cmove eax, ecx
cmp dword [ebp - 8], 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
and dword [ebp - 0x40], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x20], 0
mov esi, eax
je 0x10052cb9
cmp dword [ebp + 0x10], 0
je 0x10052cb9
push dword [ebp + 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1c]
call fcn.10021eb0
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100451cc
leave
ret

Function at 0x10052d36
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
mov byte [ebp - 1], dl
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x10052d4b
push dword [ebp + 8]
sub edi, ecx
sar edi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10052d6d
mov al, 1
jmp 0x10052dfe
push esi
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100219c0
push esi
mov ebx, eax
push 0
push ebx
call fcn.1001b930
push dword [ebp + 8]
push esi
push ebx
call fcn.100c7667
add esp, 0x1c
xor esi, esi
movzx eax, word [ebx + esi*2]
cmp eax, 0x5c
je 0x10052dac
cmp eax, 0x2f
jne 0x10052de8
mov dword [ebp - 8], eax
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10052de1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10052def
mov eax, dword [ebp + 0xc]
mov byte [ebp - 1], 1
cmp dword [eax + 0x24], 0
je 0x10052de1
push ebx
mov ecx, eax
call fcn.10052cf0
mov eax, dword [ebp - 8]
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jbe 0x10052d9e
jmp 0x10052df3
mov byte [ebp - 1], 0
push ebx
call fcn.10045361
mov al, byte [ebp - 1]
pop ecx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x1005414c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.100a55e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x8000
cmp byte [ebp + 0x10], 0
push edi
cmove eax, dword [ebp + 0xc]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x100541b7
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x100541c5
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.1001c380
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.100451cc
leave
ret
Function at 0x100547a0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push esi
push edi
push dword [ebp + 8]
xor esi, esi
push 0x104
push eax
call fcn.10055c67
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x1024742c
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1005492c
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10054411
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [ebp - 0x45c], 0x10
je 0x100548e9
mov ecx, 0x10246e0c
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10054869
test dx, dx
je 0x10054865
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10054869
add eax, 4
add ecx, 4
test dx, dx
jne 0x10054843
xor eax, eax
jmp 0x1005486e
sbb eax, eax
or eax, 1
test eax, eax
je 0x1005490f
mov ecx, 0x10247424
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100548a7
test dx, dx
je 0x100548a3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100548a7
add eax, 4
add ecx, 4
test dx, dx
jne 0x10054881
xor eax, eax
jmp 0x100548ac
sbb eax, eax
or eax, 1
test eax, eax
je 0x1005490f
cmp byte [ebp + 0xc], 0
je 0x100548cb
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call fcn.100547a0
add esp, 0xc
add esi, eax
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x10054905
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1005490c
inc esi
jmp 0x1005490f
mov byte [ebx], 1
lea eax, [ebp - 0x45c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10054803
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100451cc
leave
ret
Function at 0x1005553c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push edi
je 0x100555ec
cmp dword [ebp + 0xc], 0
je 0x100555ec
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10055581
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100555ef
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x10055579
jb 0x1005559d
push 8
pop eax
jmp 0x100555ef
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x100555a9
mov dword [eax], edi
inc esi
push esi
call fcn.100219c0
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
push esi
push eax
mov dword [ecx], eax
call fcn.100a55e0
add esp, 0x10
mov dword [ebp + 8], esi
lea eax, [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x10055579
cmp dword [ebp + 8], edi
jne 0x100555ec
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100555ef
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret

Function at 0x1005579b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [eax + 0x10], ebx
je 0x100558ac
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x100558ab
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x100557ca
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x100558ab
push 0x102da2fc
push eax
call fcn.1013b9f7
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x100558ab
cmp dword [esi + 0x14], 0x10
jb 0x100557ff
mov esi, dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, dword [ebp - 4]
test eax, eax
je 0x10055899
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10055899
mov eax, dword [ebp - 0x10]
push 0x102da2fc
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.1013b9f7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10055899
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x10055862
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.100189a0
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10055897
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.100212e0
mov bl, 1
push esi
call fcn.10045361
pop ecx
test edi, edi
je 0x100558ab
push edi
call fcn.10045361
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret
Function at 0x100558ca
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x664]
push esi
push 0x250
push 0
push eax
call fcn.100a55e0
add esp, 0xc
lea eax, [ebp - 0x414]
push dword [ebp + 8]
push 0x104
push eax
call fcn.10054411
push ebx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10055a4f
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10054411
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test byte [ebp - 0x664], 0x10
je 0x10055a13
mov ecx, 0x10246e0c
lea eax, [ebp - 0x638]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1005599f
test dx, dx
je 0x1005599b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1005599f
add eax, 4
add ecx, 4
test dx, dx
jne 0x10055979
xor eax, eax
jmp 0x100559a4
sbb eax, eax
or eax, 1
test eax, eax
je 0x10055a32
mov ecx, 0x10247424
lea eax, [ebp - 0x638]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100559dd
test dx, dx
je 0x100559d9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100559dd
add eax, 4
add ecx, 4
test dx, dx
jne 0x100559b7
xor eax, eax
jmp 0x100559e2
sbb eax, eax
or eax, 1
test eax, eax
je 0x10055a32
cmp byte [ebp + 0x10], 0
je 0x10055a32
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10055a32
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.100558ca
add esp, 0xc
jmp 0x10055a32
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10055a32
lea eax, [ebp - 0x20c]
push eax
call fcn.100558b2
pop ecx
lea eax, [ebp - 0x664]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10055939
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.100451cc
leave
ret

Function at 0x10055bfd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x10055c60
xor edi, edi
cmp word [eax], di
je 0x10055c60
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10055c36
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10055c55
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10055c63
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x10056272
Capabilities:
Create process on windows

Disassembly:
push 0x8c
mov eax, 0x1023f424
call fcn.10045b3f
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
push 0x44
pop edi
push edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.100a55e0
mov dword [ebp - 0x98], edi
xor eax, eax
lea edi, [ebp - 0x54]
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x10056320
push eax
lea ecx, [ebp - 0x40]
call fcn.1001c400
cmp dword [ebp - 0x30], esi
je 0x10056320
push 0x10246e18
lea ecx, [ebp - 0x28]
call fcn.1001c400
push ebx
lea ecx, [ebp - 0x28]
call fcn.1001c9c0
push 0x1024754c
lea ecx, [ebp - 0x28]
call fcn.1001c9c0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.1001c950
jmp 0x10056329
push ebx
lea ecx, [ebp - 0x28]
call fcn.1001c400
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x98]
push ecx
push esi
push esi
push esi
push 1
push esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1005635a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10056388
cmp byte [ebp + 0x10], 0
je 0x10056375
or eax, 0xffffffff
cmp dword [ebp + 0x14], 0
cmovg eax, dword [ebp + 0x14]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x50]
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x40]
call fcn.10021eb0
lea ecx, [ebp - 0x28]
call fcn.10021eb0
mov eax, esi
call fcn.10045ae9
ret
Function at 0x1005691c
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x102cd06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x102b6d74
mov dword [ebp - 0x440], eax
call fcn.1001c400
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.100a55e0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x100569c0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x100569c0
xor ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100219c0
mov ebx, eax
xor eax, eax
push esi
push eax
push ebx
call fcn.100a55e0
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x100569d1
push ebx
call fcn.10045361
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100451cc
leave
ret
mov eax, dword [0x10247544]
mov dword [ebp - 0xc], eax
mov ax, word [0x10247548]
push 0x208
mov word [ebp - 8], ax
call fcn.100219c0
mov edi, eax
mov dword [ebp - 0x43c], ebx
movzx eax, word [ebx]
pop ecx
push 0x104
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x10056a46
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10056ae5
push edi
call fcn.10045361
push 2
call fcn.100219c0
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0xc]
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10056ae5
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x10056a4d
sub esi, ecx
lea eax, [ebp - 0x218]
sar esi, 1
push esi
push edi
push eax
call fcn.100b2288
add esp, 0xc
test eax, eax
je 0x10056a95
mov esi, dword [ebp - 0x43c]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x10056a77
movzx eax, word [esi]
mov dword [ebp - 0x43c], esi
test ax, ax
je 0x10056ae5
jmp 0x100569f9
lea eax, [ebp - 0x218]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s_s
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.1004aa4c
add esp, 0x14
lea eax, [ebp - 0x420]
lea ecx, [ebp - 0x438]
push eax
call fcn.1001c380
mov ecx, dword [ebp - 0x440]
push eax
call fcn.1001b2c0
lea ecx, [ebp - 0x438]
call fcn.10021eb0
push ebx
call fcn.10045361
push edi
call fcn.10045361
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x100569c2