joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100312e
Capabilities:
Persist via winlogon helper dll registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
mov edi, 0x10016b0
push edi
push 0x80000001
mov word [ebp - 0x210], bx
call esi
test eax, eax
jne 0x100318c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
push 0x10016a0
push dword [ebp - 4]
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x210], bx
jne 0x10031d3
lea eax, [ebp - 4]
push eax
push 1
push ebx
push edi
push 0x80000002
call esi
test eax, eax
jne 0x10031d3
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push ebx
push 0x10016a0
push dword [ebp - 4]
mov dword [ebp - 8], 0x208
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x210]
push eax
push 0x1001684
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
leave
ret
Function at 0x1003261
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push edi
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0100312e
test eax, eax
je 0x1003292
mov eax, dword [ebp + 8]
mov dword [0x1009024], edi
mov dword [0x1009020], edi
mov dword [eax + 0xc], edi
xor eax, eax
jmp 0x10033f5
push ebx
push esi
call fcn.010031ef
test eax, eax
mov esi, dword [ebp + 8]
je 0x10032a8
mov dword [esi + 0xc], edi
jmp 0x1003377
push 0x104
lea eax, [ebp - 0x260]
push eax
mov dword [esi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x100171c
lea eax, [ebp - 0x260]
push eax
call ebx
push 0x1001438
lea eax, [ebp - 0x260]
push eax
call ebx
mov eax, 0x80000000
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x260]
push eax
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], di
mov word [ebp - 0x16], di
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x100336e
push dword [ebp - 0x58]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x54]
call ebx
jmp 0x100336e
cmp dword [ebp - 4], 0xa
jge 0x1003377
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 4]
call fcn.010031ef
test eax, eax
je 0x100335a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1009244]
cmp eax, edi
je 0x1003392
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
push 0x10
push 0x100306e
mov dword [0x1009024], 1
push esi
mov dword [esi], edi
call sub.USER32.dll_DdeInitializeW
mov ebx, 0x4b0
push ebx
mov edi, 0x1001450
push edi
push dword [esi]
call sub.USER32.dll_DdeCreateStringHandleW
push ebx
push edi
push dword [esi]
mov dword [ebp + 8], eax
call sub.USER32.dll_DdeCreateStringHandleW
mov edi, eax
push edi
push dword [ebp + 8]
push esi
call fcn.010030dc
push dword [ebp + 8]
mov dword [0x1009020], eax
push dword [esi]
call sub.USER32.dll_DdeFreeStringHandle
push edi
push dword [esi]
call sub.USER32.dll_DdeFreeStringHandle
mov eax, dword [0x1009020]
pop esi
pop ebx
pop edi
leave
ret 4
Function at 0x1003542
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push ebx
push esi
push 0xa000
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1003614
push dword [ebp + 8]
call sub.SHELL32.dll_Ordinal_45
test eax, eax
je 0x10035ff
push dword [ebp + 8]
push 0x5000
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp eax, ebx
mov dword [ebp + 0xc], eax
jle 0x10035ff
push 0xd6
call fcn.010066d2
cmp word [esi], bx
je 0x10035ff
push edi
mov edi, dword [sym.imp.SHELL32.dll_Ordinal_58]
mov eax, esi
sub eax, dword [ebp - 4]
sar eax, 1
cmp dword [ebp + 0xc], eax
jl 0x10035fb
push 0x20
lea eax, [ebp - 0x44]
push eax
push ebx
push esi
call edi
push 0x208
lea eax, [ebp - 0x454]
push eax
push 1
push esi
call edi
push dword [ebp + 0x18]
lea eax, [ebp - 0x454]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call fcn.01002910
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x10035a8
mov esi, dword [ebp - 4]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
push ebx
push 0x1000
push ebx
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop esi
pop ebx
leave
ret 0x14
Function at 0x10038da
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
push ebx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 4], ebx
je 0x1003a1e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea eax, [ebp - 8]
push eax
push 0x22
lea eax, [ebp - 0x2c]
push eax
push ebx
call edi
cmp dword [ebp - 0x2c], 0x43434d50
je 0x1003995
cmp dword [ebp - 0x2c], 0x43554d50
jne 0x1003a14
push esi
push esi
push esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call ebx
push esi
lea eax, [ebp - 8]
push eax
push 0x3c
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 4]
call edi
push 2
push esi
push esi
push dword [ebp - 4]
call ebx
cmp dword [ebp - 0x64], eax
ja 0x1003a14
push esi
push esi
push dword [ebp - 0x44]
push dword [ebp - 4]
call ebx
push esi
lea eax, [ebp - 8]
push eax
push 0x3e
lea eax, [ebp - 0xa8]
push eax
push dword [ebp - 4]
call edi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 2
pop esi
jmp 0x1003a14
push 2
push esi
push esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call ebx
cmp word [ebp - 0x26], ax
ja 0x1003a14
cmp word [ebp - 0x16], si
jne 0x10039e1
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
call sub.SHELL32.dll_Ordinal_34
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.SHELL32.dll_Ordinal_31]
cmp ebx, esi
je 0x10039dc
cmp eax, esi
je 0x10039dc
cmp ebx, eax
je 0x10039dc
mov cx, word [ebx]
mov word [edi], cx
inc edi
inc edi
inc ebx
inc ebx
jne 0x10039c8
mov word [edi], si
jmp 0x1003a11
movzx eax, word [ebp - 0x16]
push esi
push esi
push eax
push dword [ebp - 4]
call ebx
push esi
lea eax, [ebp - 8]
push eax
push 0x1f
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 4]
call edi
push 0x1f
push dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
push 0xffffffffffffffff
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x1003c43
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
movzx ebx, word [ebp + 0xc]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push 2
xor edi, edi
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
call esi
cmp eax, ebx
jle 0x1003ccc
push edi
push edi
push ebx
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
push edi
lea eax, [ebp - 0x10]
push eax
push 6
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003ccc
cmp dword [ebp - 0x10], edi
je 0x1003ccc
movzx eax, word [ebp - 8]
sub eax, 0x8000
je 0x1003d8f
sub eax, 0x101
je 0x1003d50
dec eax
je 0x1003d1a
dec eax
je 0x1003ced
dec eax
je 0x1003cd3
sub eax, 0x7efb
je 0x1003ccc
cmp dword [ebp - 0xc], edi
je 0x1003ccc
cmp word [ebp - 4], 6
jae 0x1003d05
pop edi
pop esi
pop ebx
leave
ret 8
movzx eax, word [ebp - 6]
push eax
push dword [0x1009258]
call ebx
cmp eax, edi
je 0x1003d05
mov dword [eax + 0x18], 1
jmp 0x1003d05
movzx eax, word [ebp - 6]
push eax
push dword [0x1009258]
call ebx
cmp eax, edi
je 0x1003d05
mov dword [eax + 0x14], 7
push 1
movzx eax, word [ebp - 4]
push edi
sub eax, 6
push eax
push dword [ebp + 8]
call esi
jmp 0x1003c79
push edi
lea eax, [ebp - 0x10]
push eax
push 2
lea eax, [ebp + 0xe]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, word [ebp - 6]
push eax
push dword [0x1009258]
call ebx
cmp eax, edi
je 0x1003c79
mov cx, word [ebp + 0xe]
mov word [eax + 0x12], cx
jmp 0x1003c79
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.010069ba
movzx eax, word [ebp - 6]
push eax
push dword [0x1009258]
call ebx
cmp eax, edi
je 0x1003c79
lea ecx, [ebp - 0x218]
push ecx
add eax, 4
push eax
call dword [sym.imp.COMCTL32.dll_Str_SetPtrW]
jmp 0x1003c79
xor eax, eax
inc eax
mov dword [ebp - 0xc], eax
push eax
jmp 0x1003d07
Function at 0x1003d9b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
push 2
push eax
push eax
push dword [ebp + 8]
mov dword [ebp - 0x1c], eax
call ebx
mov ecx, dword [ebp + 0xc]
cmp eax, ecx
jbe 0x1003e35
push esi
mov esi, dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp + 0xc], ecx
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
push 0
lea eax, [ebp - 4]
push eax
push 0xd
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x1003e33
xor ecx, ecx
cmp dword [ebp - 4], ecx
je 0x1003e33
movzx eax, word [ebp - 0x14]
sub eax, 0x8000
je 0x1003f06
sub eax, 0x101
je 0x1003ea1
dec eax
je 0x1003e78
dec eax
je 0x1003e59
dec eax
je 0x1003e3a
sub eax, 0x7efb
je 0x1003e33
cmp dword [ebp - 0x1c], ecx
je 0x1003e33
cmp word [ebp - 0xc], 6
jae 0x1003efa
pop edi
pop esi
pop ebx
leave
ret 8
push dword [ebp - 0x10]
push dword [0x1009258]
call esi
test eax, eax
je 0x1003efa
mov dword [eax + 0x18], 1
jmp 0x1003efa
push dword [ebp - 0x10]
push dword [0x1009258]
call esi
test eax, eax
je 0x1003efa
mov dword [eax + 0x14], 7
jmp 0x1003efa
push ecx
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call edi
push dword [ebp - 0x10]
push dword [0x1009258]
call esi
test eax, eax
je 0x1003efa
mov cx, word [ebp - 0x18]
mov word [eax + 0x12], cx
jmp 0x1003efa
mov eax, dword [ebp + 0xc]
push ecx
push ecx
add eax, 0xc
push eax
push dword [ebp + 8]
call ebx
push 0
lea eax, [ebp - 4]
push eax
push 0x208
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 8]
call edi
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x10]
push dword [0x1009258]
call esi
test eax, eax
je 0x1003efa
lea ecx, [ebp - 0x42c]
push ecx
add eax, 4
push eax
call dword [sym.imp.COMCTL32.dll_Str_SetPtrW]
movzx eax, word [ebp - 0xc]
add dword [ebp + 0xc], eax
jmp 0x1003dd1
mov dword [ebp - 0x1c], 1
jmp 0x1003efa
Function at 0x100414d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
movzx eax, word [ebp + 0xc]
push ebx
push edi
lea ebx, [eax + eax]
push ebx
push 0x40
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor edi, edi
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x100417f
xor eax, eax
jmp 0x100431e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push edi
push 0x22
push dword [ebp + 8]
call esi
push edi
lea eax, [ebp - 0x28]
push eax
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
dec ebx
push ebx
push dword [ebp + 0x18]
call fcn.01006724
movzx eax, word [ebp + 0xc]
cmp eax, edi
mov dword [ebp + 0x18], edi
jbe 0x1004311
mov ebx, dword [ebp + 0x18]
push ebx
call fcn.01006854
mov eax, dword [ebp - 8]
mov word [ebp - 0x244], di
mov word [ebp - 0x644], di
mov word [ebp - 0x444], di
mov word [ebp - 0x20], di
mov ax, word [eax + ebx*2]
cmp ax, di
je 0x1004299
cmp ax, word [ebp + 0x10]
ja 0x100424b
mov ebx, dword [ebp + 8]
push edi
movzx eax, ax
push edi
push eax
push ebx
call esi
push edi
lea eax, [ebp - 0xc]
push eax
push 0x18
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0xc], 0x18
jne 0x100424b
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push eax
call fcn.01003bc9
test eax, eax
je 0x100424b
movzx eax, word [ebp - 0x12]
push edi
push edi
push eax
push ebx
call esi
push ebx
push 0x200
lea eax, [ebp - 0x244]
push eax
call fcn.010069ba
cmp word [ebp - 0x244], di
jne 0x1004250
mov dword [ebp - 4], edi
jmp 0x1004299
movzx eax, word [ebp - 0x10]
push edi
push edi
push eax
push ebx
call esi
push ebx
push 0x200
lea eax, [ebp - 0x644]
push eax
call fcn.010069ba
cmp word [ebp - 0xe], 0xffff
je 0x1004292
movzx eax, word [ebp - 0xe]
push edi
push edi
push eax
push ebx
call esi
push ebx
push 0x200
lea eax, [ebp - 0x444]
push eax
call fcn.010069ba
jmp 0x1004299
mov word [ebp - 0x444], di
lea eax, [ebp - 0x44]
push eax
call fcn.01004127
cmp word [ebp - 0x244], di
je 0x10042ee
push edi
push edi
lea eax, [ebp - 0x244]
push eax
call fcn.01003a75
mov ebx, dword [sym.imp.COMCTL32.dll_Str_SetPtrW]
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x44]
push eax
call ebx
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x3c]
push eax
call ebx
lea eax, [ebp - 0x444]
push eax
lea eax, [ebp - 0x38]
push eax
call ebx
mov ax, word [ebp - 0x20]
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x18]
push dword [0x1009258]
call dword [sym.imp.COMCTL32.dll_DSA_InsertItem]
movzx eax, word [ebp + 0xc]
inc dword [ebp + 0x18]
cmp dword [ebp + 0x18], eax
jb 0x10041ba
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
leave
ret 0x14
Function at 0x10049ab
Capabilities:
Persist via run registry key
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp word [0x1009030], 0
push ebx
push esi
push edi
mov esi, 0x1009030
jne 0x1004a91
push 0x1001410
mov edi, 0x104
push edi
push esi
push 0x1001cbc
mov ebx, 0x1001428
push ebx
push 0x1001c98
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [0x1009030], 0
jne 0x1004a2f
lea eax, [ebp - 4]
push eax
push esi
push 0x1001950
push 0x80000001
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x1004a25
push edi
push esi
push 0xd7
push dword [0x100924c]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [0x1009030], 0
je 0x1004aa2
push 0
push 2
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_Ordinal_175]
lea eax, [ebp - 0x20c]
push eax
call sub.SHELL32.dll_Ordinal_32
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push ebx
push 0x1001488
push 0x80000001
call fcn.01006d59
cmp word [0x1009030], 0
je 0x1004aa2
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1004aa2
inc eax
jmp 0x1004aa4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1004b97
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
mov eax, dword [0x1009254]
push edi
mov edi, dword [eax]
test edi, edi
je 0x1004c6d
and word [ebp - 0x210], 0
push 0x208
lea eax, [ebp - 0x210]
push eax
push 0x1001920
push 0x100190c
push 0x80000002
call fcn.01006d04
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push 0x1001938
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x1004c6d
push esi
xor esi, esi
test edi, edi
jle 0x1004c63
push esi
push dword [0x1009254]
call dword [sym.imp.COMCTL32.dll_DSA_GetItemPtr]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xa30]
push 0x1001ac4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xa30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
lea eax, [ebp - 0xa30]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc esi
cmp esi, edi
jl 0x1004c04
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
leave
ret
Function at 0x10051cf
Capabilities:
Create process on windows
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x308
push esi
push dword [ebp + 0x78]
xor esi, esi
mov dword [ebp + 0x68], esi
call fcn.0100383f
test eax, eax
je 0x1005393
push ebx
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100538a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea eax, [ebp + 0x64]
push eax
push 0x3c
lea eax, [ebp - 0x14]
push eax
push ebx
call edi
test eax, eax
je 0x1005382
cmp dword [ebp + 0x64], 0x3c
jne 0x1005382
push esi
push esi
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp + 0x64]
push eax
push 0x3e
lea eax, [ebp - 0x94]
push eax
push ebx
call edi
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x54]
push eax
call fcn.010049ab
test eax, eax
lea eax, [ebp - 0x29c]
je 0x1005295
cmp dword [0x100923c], esi
push 1
je 0x1005291
push 0x18
push eax
push dword [ebp + 0x74]
call dword [sym.imp.SHELL32.dll_Ordinal_175]
jmp 0x10052ad
push 7
jmp 0x1005285
push dword [ebp + 0x78]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0x74]
call fcn.01003afa
test eax, eax
je 0x1005382
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x10]
push dword [ebp + 0x1c]
push ebx
call fcn.01004416
test eax, eax
jne 0x10052e3
test byte [ebp + 0x7c], 2
je 0x10052e3
push 0x30
push esi
push 0xcf
push 0xca
push dword [ebp + 0x74]
call fcn.01006a4e
push dword [ebp - 0x10]
push ebx
call fcn.01003d9b
call fcn.01003f0f
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.SHELL32.dll_IsLFNDrive]
test eax, eax
jne 0x1005307
call fcn.01003f4e
call fcn.01003f7e
lea eax, [ebp - 0x29c]
push eax
call fcn.01004af9
test byte [ebp + 0x7c], 8
je 0x1005325
call fcn.01004eab
jmp 0x1005337
movzx eax, word [ebp + 0x1c]
push eax
push esi
lea eax, [ebp - 0x29c]
push eax
call fcn.0100468a
test byte [ebp + 0x7c], 4
je 0x100537b
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x30], eax
lea eax, [ebp - 0x29c]
mov dword [ebp + 0x38], eax
mov eax, dword [0x100924c]
mov dword [ebp + 0x48], eax
lea eax, [ebp + 0x28]
push eax
mov dword [ebp + 0x28], 0x3c
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x50], esi
mov dword [ebp + 0x44], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp + 0x68], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
call fcn.01003865
mov eax, dword [ebp + 0x68]
pop ebx
pop esi
add ebp, 0x6c
leave
ret 0xc
Function at 0x10054e9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
and dword [ebp - 8], 0
lea eax, [ebp - 0x420]
push eax
call fcn.010033fa
test eax, eax
je 0x100563b
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, 0x400
mov ebx, 0x1001c88
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [ebp - 4], eax
je 0x100555e
lea ecx, [ebp - 0x420]
push ecx
push esi
push eax
push 0x1001cbc
push 0
push ebx
call edi
lea ecx, [esi - 5]
cmp eax, ecx
jb 0x1005565
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
add esi, 0x400
cmp esi, 0x2000
jb 0x100551d
xor eax, eax
jmp 0x1005638
cmp dword [ebp + 0xc], 0
je 0x1005570
call fcn.01006604
mov esi, dword [ebp - 4]
jmp 0x10055fe
lea eax, [ebp - 0x420]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x1001cbc
push esi
push ebx
call edi
cmp word [ebp - 0x218], 0
je 0x10055f3
cmp dword [ebp + 0x10], 0
je 0x10055b4
lea eax, [ebp - 0x218]
push eax
call fcn.0100549e
test eax, eax
je 0x10055f3
lea eax, [ebp - 0x218]
push eax
call dword [ebp + 8]
inc dword [ebp - 8]
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x10055f3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x65c]
lea eax, [ebp - 0x218]
push eax
call fcn.0100539b
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x1005578
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push dword [ebp - 0x10]
lea eax, [ebp - 0x420]
push eax
call fcn.0100539b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp + 0xc], 0
je 0x1005635
call fcn.0100660f
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1005681
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x410
lea eax, [esp]
push eax
call fcn.0100563f
test eax, eax
je 0x1005766
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebp
push esi
push edi
mov esi, 0x400
mov ebp, 0x1001c88
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x1005762
lea eax, [esp + 0x10]
push eax
push esi
push edi
push 0x1001cbc
push 0
push ebp
call ebx
lea ecx, [esi - 5]
cmp eax, ecx
jb 0x10056ef
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
add esi, 0x400
cmp esi, 0x2000
jb 0x10056ad
jmp 0x1005762
cmp dword [esp + 0x428], 0
je 0x10056fe
call fcn.01006604
cmp word [edi], 0
mov esi, edi
je 0x100574c
lea eax, [esp + 0x10]
push eax
push 0x104
lea eax, [esp + 0x220]
push eax
push 0x1001cbc
push esi
push ebp
call ebx
cmp word [esp + 0x218], 0
je 0x100573b
lea eax, [esp + 0x218]
push eax
call dword [esp + 0x428]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x1005706
cmp dword [esp + 0x428], 0
je 0x100575b
call fcn.0100660f
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret 8