joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18018909
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.18015cc2
test al, al
je 0x18018a1a
push esi
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
mov esi, eax
test esi, esi
js 0x18018a1a
xor ebx, ebx
lea ecx, [ebp - 8]
push str.._
mov dword [ebp - 8], ebx
call fcn.180074da
lea eax, [esi + 0x41]
push eax
lea ecx, [ebp - 8]
call fcn.18009f07
push 0x3a
lea ecx, [ebp - 8]
call fcn.18009f07
push ebx
push ebx
push 3
push ebx
push 7
pop edi
push edi
push 0x80
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x18018a0b
mov dword [ebp - 0x18], edi
xor eax, eax
lea edi, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
push ebx
mov dword [ebp - 0x14], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0xc
lea eax, [ebp - 0x18]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x180189c0
cmp byte [ebp - 0x1c], bl
sete bl
jmp 0x180189fe
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x30]
mov dword [ebp - 0x18], 8
stosd dword es:[edi], eax
push ebx
mov dword [ebp - 0xc], ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push 0xc
lea eax, [ebp - 0x30]
push eax
push 0xc
lea eax, [ebp - 0x18]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x18018a04
xor ebx, ebx
cmp byte [ebp - 0x28], bl
setne bl
inc ebx
cmp esi, 0xffffffff
je 0x18018a0b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.18006f52
mov eax, ebx
jmp 0x18018a1c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e248
leave
ret
Function at 0x18018a84
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x18], edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1800bf45
mov eax, dword [ebp - 0x1c]
push ebx
push esi
xor esi, esi
push esi
test eax, eax
jne 0x18018ac7
push esi
push esi
jmp 0x18018acd
push eax
push 0x400
push esi
push esi
push esi
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x18018ae7
call fcn.1801baa5
mov esi, eax
jmp 0x18018b27
movzx ecx, byte [0x181d605a]
neg ecx
sbb ecx, ecx
and ecx, 0x181d5f50
je 0x18018b27
push 7
pop edx
xor eax, eax
mov dword [ebp - 0x2c], ecx
inc eax
mov dword [ebp - 0x28], edx
push eax
push edx
mov dword [ebp - 0x24], eax
call fcn.18008b3f
push dword [ebx + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push str._Started_process___u_
push eax
call fcn.18007210
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.1800bf9f
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e248
leave
ret

Function at 0x18018f52
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 8]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18018fc8
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push str.SeDebugPrivilege
push esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x18018fc8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
push esi
push esi
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x18018fcf
call fcn.1801baa5
mov esi, eax
cmp dword [ebp - 8], 0
je 0x18018fde
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1811e248
leave
ret
Function at 0x18019105
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp ecx, 0xffffffff
je 0x1801914d
lea eax, [ebp - 8]
xor edx, edx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], edx
push eax
push 8
push ecx
push edx
mov dword [ebp - 8], edx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x1801914d
mov eax, dword [ebp - 0xc]
push esi
push eax
mov esi, dword [eax]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
test esi, esi
pop esi
sete al
jmp 0x1801914f
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1811e248
leave
ret
Function at 0x1801921f
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov dword [ebp - 0xb8], edx
push edi
mov ebx, ecx
mov dword [ebp - 8], esi
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x24], 0x1819d1d8
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.18018896
test al, al
jne 0x1801926c
mov esi, 0x80004005
jmp 0x180193e3
push 0x60
lea eax, [ebp - 0xa8]
push esi
push eax
call fcn.18132f00
add esp, 0xc
lea ecx, [ebp - 0xa8]
call fcn.1800a494
push ecx
push ecx
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x24]
call fcn.1801022e
test al, al
jne 0x180192a8
mov esi, 0x80004005
jmp 0x180193d8
push 8
pop ecx
xor eax, eax
mov dword [ebp - 0x14], 0x1819d1b0
lea edi, [ebp - 0x44]
mov dword [ebp - 0x10], esi
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x44]
call fcn.1800ab89
push 0x12
push 1
mov edi, 0x1819d174
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.1800a512
add esp, 0x10
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x44]
push esi
push 0xc0100000
push eax
call fcn.1800ac25
lea ecx, [ebp - 0x118]
call fcn.1800a5fb
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.1800a512
add esp, 0x14
lea eax, [ebp - 0x118]
mov edi, 0xc0100000
lea ecx, [ebp - 0x44]
push esi
push edi
push eax
call fcn.1800ac25
lea ecx, [ebp - 0x118]
call fcn.1800a5fb
push esi
push edi
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x44]
call fcn.1800ac25
push ecx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x14]
call fcn.1800b6fa
lea ecx, [ebp - 0x14]
call fcn.1800b87f
mov eax, dword [ebp - 0x10]
xor edi, edi
mov dword [ebp - 0xb0], eax
inc edi
push esi
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], 0xc
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xac], edi
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x180193ba
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x180193ba
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xb8]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ecx], eax
jmp 0x180193c1
call fcn.1801baa5
mov esi, eax
lea ecx, [ebp - 0x44]
call fcn.1800abd2
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1819d1b0
call fcn.18007bd0
lea ecx, [ebp - 0xa8]
call fcn.1800a5fb
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1819d1d8
call fcn.1800bb80
cmp dword [ebp - 0xc], 0
je 0x18019401
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x18019410
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e248
leave
ret
Function at 0x1801a7c2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], eax
mov edi, ecx
xor ecx, ecx
lea eax, [ebp - 0xc]
push eax
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
push ecx
push ebx
push dword [edi + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x1801a80d
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x1801a860
mov eax, dword [ebp - 0xc]
xor ecx, ecx
shr eax, 1
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1811eb28
cmp dword [ebp - 0xc], 0
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
je 0x1801a85b
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push ebx
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x1801a860
movzx esi, si
or esi, 0x80070000
jmp 0x1801a860
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e248
leave
ret 8

Function at 0x1801a873
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
push edx
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], edx
push ecx
push edx
push eax
push dword [ebx + 4]
mov dword [ebp - 8], edx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x1801a8be
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x1801a92f
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x1801a928
shr edx, 1
add edx, 1
js 0x1801a942
mov eax, dword [edi]
xor ecx, ecx
inc ecx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x1801a8ea
push edx
mov ecx, edi
lfence
call fcn.1800771c
cmp dword [edi], 0
jne 0x1801a8f6
mov esi, 0x8007000e
jmp 0x1801a91d
lea eax, [ebp - 0xc]
push eax
push dword [edi]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 0x10]
push dword [ebx + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x1801a91d
movzx esi, si
or esi, 0x80070000
push 0xffffffffffffffff
mov ecx, edi
call fcn.18009eb8
jmp 0x1801a92f
mov ecx, edi
call fcn.18007526
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e248
leave
ret 8
push 0x80070057
call fcn.18006bc5
int3
Function at 0x1801af05
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x181d000c]
xor eax, esp
mov dword [esp + 0x220], eax
and dword [esp + 8], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0x1819d1fc
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], 0x200
mov eax, dword [edi + 8]
or eax, 0xf003f
push eax
push ebx
push dword [edi + 4]
call fcn.1801a206
mov esi, eax
cmp esi, 0x80070002
je 0x1801af64
cmp esi, 0x80070003
jne 0x1801afa9
xor esi, esi
inc esi
cmp dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x1819d1fc
je 0x1801af80
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1811e248
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.1801af05
mov esi, eax
test esi, esi
jne 0x1801af67
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1801af99
cmp dword [esp + 0x14], esi
je 0x1801aff2
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0x200
push ebx
mov ecx, edi
call fcn.18019fc4
mov esi, eax
jmp 0x1801af67

Function at 0x1801b6d5
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x14]
mov word [ebp - 0xc], 0x500
push eax
mov esi, ecx
lea eax, [ebp - 0x10]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x220
push 0x20
push 2
push eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 8], eax
test eax, eax
je 0x1801b73d
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop esi
call fcn.1811e248
leave
ret
Function at 0x1801b96c
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x44
pop eax
push eax
mov dword [ebp - 0x50], eax
xor esi, esi
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.18132f00
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
push esi
push 0xb
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x1801b9c6
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], esi
push eax
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x1801b9c6
cmp dword [ebp - 0x4c], esi
setne al
jmp 0x1801b9c8
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1811e248
leave
ret

Function at 0x1801bae5
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1801bb54
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1801bb30
push ebx
push edi
push eax
call fcn.18132980
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x1801bb4b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret
Function at 0x1801cef5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
push ebx
mov ebx, ecx
mov dword [ebp - 0x420], eax
mov ecx, eax
call fcn.18007526
mov ax, word [0x18172bbc]
push 0x206
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push 0
push eax
call fcn.18132f00
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x1801cf5d
call fcn.1801baa5
jmp 0x1801d008
mov eax, dword [0x181a2704]
mov dword [ebp - 0xc], eax
mov ax, word [0x181a2708]
mov word [ebp - 8], ax
mov ax, word [ebp - 0x214]
push esi
lea esi, [ebp - 0x214]
push edi
test ax, ax
je 0x1801d001
movzx ecx, ax
mov ax, word [0x18172bbc]
push 0x206
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push 0
push eax
mov word [ebp - 0xc], cx
call fcn.18132f00
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0x104
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1801cfea
lea eax, [ebp - 0x41c]
push eax
call fcn.18136f50
mov edi, eax
lea eax, [ebp - 0x41c]
push edi
push eax
push ebx
call fcn.1813c41a
add esp, 0x10
test eax, eax
je 0x1801d015
push esi
call fcn.18136f50
pop ecx
lea esi, [esi + eax*2]
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x1801cf86
mov eax, 0x8007000f
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1811e248
leave
ret
lea eax, [ebx + edi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s_s
push dword [ebp - 0x420]
call fcn.18016b1d
add esp, 0x10
xor eax, eax
jmp 0x1801d006
Function at 0x1801ed62
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, edx
mov esi, ecx
call fcn.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
mov dword [ebp - 0xc], esi
mov edx, 0x811c9dc5
xor ecx, ecx
movzx eax, byte [ebp + ecx - 0xc]
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x1801ed98
push edx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.180258cd
mov ecx, dword [0x181d607c]
mov eax, dword [eax + 4]
test eax, eax
jne 0x1801edc8
mov eax, ecx
cmp eax, ecx
je 0x1801edda
add eax, 0xc
lea ecx, [ebp - 8]
push eax
call fcn.18009e6a
jmp 0x1801edf0
or esi, 0x4000
lea edx, [ebp - 8]
mov ecx, esi
call fcn.1800cafe
mov esi, eax
test esi, esi
js 0x1801ee5f
mov eax, dword [ebp - 8]
xor edx, edx
mov esi, dword [edi]
inc edx
mov edi, 0x104
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or edx, ecx
jge 0x1801ee15
push edi
lea ecx, [ebp - 8]
call fcn.1800771c
mov eax, dword [ebp - 8]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 8]
mov esi, eax
call fcn.18009eb8
test esi, esi
jne 0x1801ee34
mov esi, 0x80040709
jmp 0x1801ee5f
mov esi, dword [ebp - 8]
test esi, esi
jne 0x1801ee3f
xor eax, eax
jmp 0x1801ee46
push esi
call fcn.18136f50
pop ecx
push eax
push esi
mov ecx, ebx
call fcn.180075cd
cmp byte [ebp + 8], 0
je 0x1801ee5d
mov ecx, dword [ebp - 8]
call fcn.1800c9d0
xor esi, esi
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.18006f52
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e248
leave
ret
Function at 0x18026b13
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
push edi
mov edi, dword [ebp + 0xc]
test cl, cl
je 0x18026c36
call fcn.18015ca1
test al, al
je 0x18026c36
call fcn.1801705c
test al, al
je 0x18026c36
xor ebx, ebx
lea ecx, [ebp - 0x11]
mov byte [ebp - 0x11], bl
call fcn.1800d73c
test eax, eax
sets al
dec al
and byte [ebp - 0x11], al
je 0x18026b76
push ecx
mov edx, edi
mov ecx, esi
call fcn.1801bef7
pop ecx
jmp 0x18026c4d
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push dword [esi]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x18026c20
cmp dword [ebp - 0xc], ebx
jne 0x18026b9c
xor edi, edi
inc edi
jmp 0x18026c27
push dword [esi]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.180074da
mov dword [ebp - 8], ebx
call fcn.18006f7b
push eax
lea ecx, [ebp - 8]
call fcn.1800768f
xor edi, edi
inc edi
cmp dword [ebp - 0xc], edi
jle 0x18026bf9
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], ebx
je 0x18026bd4
push 0x20
lea ecx, [ebp - 8]
call fcn.18009f07
mov ebx, dword [esi + edi*4]
test ebx, ebx
jne 0x18026bdf
xor eax, eax
jmp 0x18026be6
push ebx
call fcn.18136f50
pop ecx
push eax
push ebx
lea ecx, [ebp - 8]
call fcn.18009f34
inc edi
push 0
pop ebx
cmp edi, dword [ebp - 0xc]
jl 0x18026bc2
push ecx
lea edx, [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.180172c9
pop ecx
mov ecx, dword [ebp - 8]
mov edi, eax
add ecx, 0xfffffff0
call fcn.18006f52
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.18006f52
jmp 0x18026c2b
call fcn.1801baa5
mov edi, eax
test esi, esi
je 0x18026c32
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
jmp 0x18026c4d
push 0
mov edx, edi
mov ecx, esi
call fcn.1801bc3a
pop ecx
test eax, eax
jns 0x18026c4b
lfence
jmp 0x18026c4d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e248
leave
ret
Function at 0x18027b2c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x181d000c]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x208
mov dword [esp + 0x10], eax
xor edi, edi
lea eax, [esp + 0x2c]
mov bl, dl
push edi
push eax
mov esi, ecx
call fcn.18132f00
add esp, 0xc
lea eax, [esp + 0x28]
push 0x104
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x18027b93
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18027be7
movzx eax, ax
or eax, 0x80070000
jmp 0x18027be7
lea ecx, [esp + 0x10]
call fcn.1800bfcf
lea eax, [esp + 0x10]
mov dl, bl
push eax
lea ecx, [esp + 0x2c]
call fcn.1800c6f9
pop ecx
push dword [esp + 0x10]
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov ecx, dword [esp + 0xc]
mov dword [ecx], eax
test eax, eax
jne 0x18027bdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x18027bdc
movzx edi, di
or edi, 0x80070000
lea ecx, [esp + 0x10]
call fcn.1800bff8
mov eax, edi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1811e248
mov esp, ebp
pop ebp
ret

Function at 0x18027c2c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10820
call fcn.18159d00
mov eax, dword [0x181d000c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0x1081c], esi
mov ecx, dword [edi]
call fcn.18010809
test al, al
jne 0x18027c68
mov eax, 0x80070002
jmp 0x18027d68
mov ecx, esi
call fcn.1801cc8d
push 0x10000
lea eax, [ebp - 0x1080c]
push 0
push eax
call fcn.18132f00
add esp, 0xc
lea eax, [ebp - 0x1080c]
push dword [edi]
push 0x8000
push eax
push 0
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
and dword [ebp - 0x10814], 0
mov dword [ebp - 0x10818], eax
test eax, eax
je 0x18027d66
push 0x800
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.18132f00
mov eax, dword [ebp - 0x10814]
lea ecx, [ebp - 0x1080c]
and dword [ebp - 0x10810], 0
add esp, 0xc
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x10810]
call fcn.180074da
push dword [edi]
lea eax, [ebp - 0x80c]
push 0x400
push eax
push 0
push dword [ebp - 0x10810]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x10810]
mov ecx, esi
push eax
call fcn.18028fb0
mov esi, eax
lea eax, [ebp - 0x80c]
push eax
call fcn.18136f50
pop ecx
push eax
lea eax, [ebp - 0x80c]
mov ecx, esi
push eax
call fcn.180075cd
mov eax, dword [ebp - 0x10810]
mov esi, dword [ebp - 0x10814]
inc esi
add esi, dword [eax - 0xc]
lea ecx, [eax - 0x10]
mov dword [ebp - 0x10814], esi
call fcn.18006f52
cmp esi, dword [ebp - 0x10818]
mov esi, dword [ebp - 0x1081c]
jb 0x18027cb4
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1811e248
leave
ret