joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18010bcd
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x181cf008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0xe8], 0x181a9bf4
mov edi, ecx
mov dword [ebp - 0xcc], esi
push ecx
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xd0], esi
mov ebx, edx
mov dword [ebp - 0xe4], esi
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0xdc], esi
call fcn.180105dd
test al, al
jne 0x18010c2b
mov esi, 0x80004005
jmp 0x18010db5
lea ecx, [ebp - 0xc8]
call fcn.180075b4
push ecx
push ecx
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xe8]
call fcn.1800a512
test al, al
jne 0x18010c58
mov esi, 0x80004005
jmp 0x18010daa
lea ecx, [ebp - 0x114]
mov dword [ebp - 0xd8], 0x181a985c
mov dword [ebp - 0xd4], esi
call fcn.18004b7a
push 0x12
push 1
lea eax, [ebp - 0x68]
push 0x181a8e74
push eax
call fcn.180047c1
add esp, 0x10
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x114]
push esi
push 0xc0100000
push eax
call fcn.18004bf7
lea ecx, [ebp - 0x68]
call fcn.180048aa
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x68]
push 0x181a8e74
push eax
call fcn.180047c1
add esp, 0x14
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x114]
push esi
push 0xc0100000
push eax
call fcn.18004bf7
lea ecx, [ebp - 0x68]
call fcn.180048aa
push esi
push 0xc0100000
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x114]
call fcn.18004bf7
push ecx
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xd8]
call fcn.18007c7f
lea ecx, [ebp - 0xd8]
call fcn.18007d60
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xf0], eax
lea eax, [ebp - 0xf4]
push esi
push eax
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xf4], 0xc
push eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xec], 1
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x18010d83
push esi
push 1
push dword [ebp - 0xcc]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x18010d83
mov eax, dword [ebp - 0xcc]
mov dword [edi], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xcc], esi
mov dword [ebp - 0xd0], esi
mov dword [ebx], eax
jmp 0x18010d8a
call fcn.18013e1e
mov esi, eax
lea ecx, [ebp - 0x114]
call fcn.18004bc0
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xd8], 0x181a985c
call fcn.18004f8f
lea ecx, [ebp - 0xc8]
call fcn.180048aa
lea ecx, [ebp - 0xe8]
mov dword [ebp - 0xe8], 0x181a9bf4
call fcn.18007fd8
cmp dword [ebp - 0xd0], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x18010de1
push dword [ebp - 0xd0]
call edi
cmp dword [ebp - 0xcc], 0
je 0x18010df2
push dword [ebp - 0xcc]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145fe4
leave
ret
Function at 0x180115df
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x181cf008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x124]
push pe_nt_image_headers32
push ebx
mov dword [ebp - 0x12c], ebx
push eax
mov dword [ebp - 0x128], 0x11c
call fcn.18148b00
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x18011741.2
mov edi, dword [ebp - 0x124]
xor esi, esi
inc esi
cmp edi, 6
je 0x180116d2
cmp edi, 0xa
je 0x180116d2
cmp edi, 5
jne case.0x18011741.2
cmp dword [ebp - 0x120], 2
jne 0x180116bc
cmp byte [ebp - 0xe], 1
jne 0x18011682
lea ecx, [ebp - 0x130]
call fcn.18011345
push 0x181aa6e0
mov ecx, eax
mov dword [ebp - 0x12c], esi
call fcn.1800c345
test eax, eax
jne 0x18011682
mov bl, 1
inc eax
jmp 0x18011688
mov eax, dword [ebp - 0x12c]
test al, 1
je 0x1801169a
mov ecx, dword [ebp - 0x130]
lea ecx, [ecx - 0x10]
call fcn.18004715
test bl, bl
jne case.0x18011741.1
test dword [ebp - 0x10], 0x8000
je case.0x18011741.7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145fe4
leave
ret
cmp dword [ebp - 0x120], esi
jne case.0x18011741.2
test dword [ebp - 0x10], 0x200
jne case.0x18011741.2
xor eax, eax
inc eax
jmp 0x180116ad
mov eax, dword [ebp - 0x120]
mov ecx, str.kernel32.dll
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x130], eax
call fcn.18009dd9
mov esi, eax
test esi, esi
je case.0x18011741.2
push str.GetProductInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x18011718
lea ecx, [ebp - 0x12c]
push ecx
push ebx
push ebx
push dword [ebp - 0x130]
push edi
call eax
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je case.0x18011741.2
mov eax, dword [ebp - 0x12c]
cmp eax, 0x1b
ja 0x18011750
je case.0x18011741.4
dec eax
cmp eax, 0x18
ja case.0x18011741.2
movzx eax, byte [eax + 0x180117b3]
jmp dword [eax*4 + 0x180117a3]
push 2
pop eax
jmp 0x180116ad
cmp eax, 0x54
ja 0x18011770
je case.0x18011741.4
sub eax, 0x30
je case.0x18011741.1
sub eax, 0x16
je case.0x18011741.4
dec eax
sub eax, 1
je case.0x18011741.4
jmp case.0x18011741.2
cmp eax, 0x79
jb case.0x18011741.2
cmp eax, 0x7a
jbe 0x1801179e
cmp eax, 0x7c
jbe case.0x18011741.2
cmp eax, 0x7e
jbe case.0x18011741.4
add eax, 0xffffff7f
cmp eax, 1
ja case.0x18011741.2
push 3
jmp 0x1801174a
push 4
jmp 0x1801174a
Function at 0x180124d4
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
mov esi, ecx
push eax
call fcn.1801310d
cmp byte [ebp - 8], 0
je 0x180124f4
mov eax, dword [ebp - 0xc]
jmp 0x1801251d
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jle 0x1801250c
movzx eax, ax
or eax, 0x80070000
cmp eax, 0x80070002
je 0x1801251a
cmp eax, 0x80070003
jne 0x1801251d
xor eax, eax
inc eax
pop esi
leave
ret 4

Function at 0x18012794
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 4], edx
mov edi, 0x80070003
call fcn.18006e44
lea ecx, [ebp - 8]
call fcn.180132a5
mov esi, dword [ebp - 8]
test eax, eax
je 0x180128b3
and dword [ebp - 0x10], 0
or edx, 0xf003f
push 0
push ecx
push edx
push ecx
push ecx
push esi
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x181a9c78
mov dword [ebp - 0xc], 0x200
call fcn.1801257e
mov edi, eax
test edi, edi
jne 0x180128a4
mov eax, dword [ebp + 8]
sub eax, 1
je 0x18012886
sub eax, 1
je 0x18012882
sub eax, 1
je 0x18012856
sub eax, 1
je 0x18012847
sub eax, 3
je 0x18012834
sub eax, 4
je 0x18012822
mov edi, 0x8007065d
jmp 0x18012896
push dword [ebx + 4]
lea ecx, [ebp - 0x14]
push dword [ebx]
push dword [ebp - 4]
call fcn.18012d12
jmp 0x18012894
push 7
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
push ebx
push dword [ebp - 4]
call fcn.18012d77
jmp 0x18012894
push dword [ebx]
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.18012ce9
jmp 0x18012894
mov eax, ebx
neg eax
sbb eax, eax
and eax, dword [ebp + 0x10]
push eax
push ebx
push 3
push 0
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jle 0x18012896
movzx edi, di
or edi, 0x80070000
jmp 0x18012896
push 2
jmp 0x18012888
push 1
push ebx
push dword [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.18012d3b
mov edi, eax
lea ecx, [ebp - 0x14]
call fcn.18012552
test edi, edi
jne 0x180128a4
mov edi, eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x181a9c78
call fcn.18012552
lea ecx, [esi - 0x10]
call fcn.18004715
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18012b05
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 4]
push eax
xor ecx, ecx
lea eax, [ebp - 8]
push ecx
push eax
push ecx
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push dword [edi + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x18012b3d
movzx esi, si
or esi, 0x80070000
test esi, esi
jne 0x18012b9f
mov eax, dword [ebp - 4]
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.181466de
pop ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
test ecx, ecx
je 0x18012b9a
cmp dword [ebp - 4], 0
je 0x18012b93
lea eax, [ebp - 4]
push eax
push ecx
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov esi, eax
test esi, esi
jle 0x18012b9f
movzx esi, si
or esi, 0x80070000
jmp 0x18012b9f
xor eax, eax
mov word [ecx], ax
jmp 0x18012b9f
mov esi, 0x8007000e
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x18013199
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x181cf008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x224]
push esi
push edi
push ebx
push eax
mov edi, ecx
call fcn.1801310d
cmp byte [ebp - 0x220], 0
je 0x180131d5
mov eax, dword [ebp - 0x224]
jmp 0x18013294
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x21c]
and dword [ebp - 0x218], 0
or eax, 0xf003f
push 0
push eax
push ebx
push dword [edi + 4]
mov dword [ebp - 0x21c], 0x181a9c78
mov dword [ebp - 0x214], 0x200
call fcn.18012691
mov esi, eax
cmp esi, 0x80070002
je 0x1801321c
cmp esi, 0x80070003
jne 0x1801322f
xor esi, esi
inc esi
jmp 0x1801322f
lea eax, [ebp - 0x20c]
push eax
call fcn.18013199
mov esi, eax
test esi, esi
jne 0x1801327d
xor ecx, ecx
mov dword [ebp - 0x210], 0x100
lea eax, [ebp - 0x22c]
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push ecx
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x21c]
test eax, eax
je 0x18013221
call fcn.18012552
push ebx
mov ecx, edi
call fcn.180124d4
mov esi, eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x181a9c78
call fcn.18012552
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145fe4
leave
ret 4
Function at 0x180137ac
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181cf008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x14]
mov word [ebp - 8], 0x500
push eax
mov esi, ecx
lea eax, [ebp - 0xc]
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 - 0xc], ecx
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x18013814
lea eax, [ebp - 0x10]
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 - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop esi
call fcn.18145fe4
leave
ret
Function at 0x18013824
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov eax, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x30], eax
mov edi, ebx
mov dword [ebp - 4], edi
mov byte [eax], bl
lea eax, [ebp - 8]
push eax
push 1
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.NETAPI32.dll_NetWkstaUserGetInfo]
test eax, eax
jne 0x180139a8
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x180139b2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
push eax
push 1
push ebx
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
jne 0x18013888
call fcn.18013e1e
mov ebx, eax
jmp 0x1801399b
mov eax, dword [ebp - 0xc]
push esi
mov esi, dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x1c], ebx
jbe 0x18013993
mov ecx, ebx
mov dword [ebp - 0x18], ebx
lea edx, [ebp - 0x28]
mov dword [ebp - 0x10], ebx
push edx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x28], ebx
push edx
push 7
push dword [ecx + eax]
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x180138d3
call fcn.18013e1e
mov edi, eax
mov dword [ebp - 4], edi
jmp 0x18013966
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
mov eax, dword [ebp - 0xc]
push 5
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], edi
push dword [ecx + eax]
push ebx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x1801390d
call fcn.18013e1e
mov dword [ebp - 4], eax
push edi
call esi
mov edi, dword [ebp - 4]
jmp 0x18013966
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
test eax, eax
je 0x18013952
cmp word [eax], bx
je 0x18013952
test edi, edi
je 0x18013952
cmp word [edi], bx
je 0x18013952
push eax
mov eax, dword [ebp - 8]
push dword [eax + 4]
call fcn.18152d83
pop ecx
pop ecx
test eax, eax
jne 0x1801394a
mov eax, dword [ebp - 8]
push dword [ebp - 0x14]
push dword [eax]
call fcn.18152d83
pop ecx
pop ecx
test eax, eax
je 0x18013983
push edi
call esi
push dword [ebp - 0x20]
jmp 0x18013906
push edi
mov dword [ebp - 4], 0x80004005
call esi
push dword [ebp - 0x20]
call esi
mov edi, 0x80004005
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
inc eax
add ecx, 0xc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], ecx
cmp eax, dword [ebp - 0x1c]
jae 0x18013993
mov eax, dword [ebp - 0xc]
jmp 0x180138a6
mov eax, dword [ebp - 0x30]
push edi
mov byte [eax], 1
call esi
push dword [ebp - 0x20]
call esi
jmp 0x18013995
mov ebx, edi
push dword [ebp - 0x34]
call esi
pop esi
push dword [ebp - 0x38]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov eax, ebx
jmp 0x180139b2
jle 0x180139b2
movzx eax, ax
or eax, 0x80070000
pop edi
pop ebx
leave
ret
Function at 0x18013bf4
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x181cf008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x18013c5a
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.18145fe4
leave
ret

Function at 0x18013e5c
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 0x18013ecb
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 0x18013ea7
push ebx
push edi
push eax
call fcn.18149380
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 0x18013ec2
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 0x18013ece
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
mov eax, edx
mov dword [esp + 0x1c], eax
push esi
push edi
cmp eax, 0xffffffff
jne 0x18013eef
mov eax, 0x80070057
jmp 0x1801408b
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.180071f9
add eax, 0x10
mov dword [esp + 0x38], 0x44
push 0x40
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x40]
push 0
push eax
call fcn.18148b00
and dword [esp + 0x2c], 0
lea edi, [esp + 0x34]
xor eax, eax
xor ebx, ebx
stosd dword es:[edi], eax
xor esi, esi
add esp, 0xc
mov dword [esp + 0x10], esi
inc ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [esp + 0xc], edi
cmp dword [ebp + 0xc], esi
je 0x18013f91
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
call fcn.18010bcd
mov ebx, eax
test ebx, ebx
jns 0x18013f60
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
jmp 0x18014067
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
mov dword [esp + 0x68], 0x100
call esi
mov edi, dword [esp + 0xc]
push 0xfffffffffffffff4
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
call esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
inc ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x20], ebx
xor eax, eax
push eax
push dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x18013fc1
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], 0x400
mov dword [esp + 0x10], eax
jmp 0x18013fcb
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x1c]
mov edx, 0x104
mov ecx, dword [eax - 8]
sub ebx, dword [eax - 4]
sub ecx, edx
or ebx, ecx
jge 0x18013ff2
push edx
lea ecx, [esp + 0x1c]
call fcn.18007252
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
push ecx
xor ecx, ecx
push ecx
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [esp + 0x34]
push ecx
push ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.18006e9f
test ebx, ebx
jne 0x1801402f
call fcn.18013e1e
mov ebx, eax
jmp 0x1801405f
push dword [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x1801404a
push dword [esp + 0x28]
call ebx
jmp 0x18014050
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1801405d
mov eax, esi
xor esi, esi
mov dword [ecx], eax
xor ebx, ebx
push 0
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test edi, edi
je 0x18014072
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1801407d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx - 0x10]
call fcn.18004715
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1801487e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x181cf008]
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.18006eee
mov ax, word [0x18181c4c]
push 0x206
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push 0
push eax
call fcn.18148b00
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x180148e6
call fcn.18013e1e
jmp 0x18014991
mov eax, dword [0x181aabec]
mov dword [ebp - 0xc], eax
mov ax, word [0x181aabf0]
mov word [ebp - 8], ax
mov ax, word [ebp - 0x214]
push esi
lea esi, [ebp - 0x214]
push edi
test ax, ax
je 0x1801498a
movzx ecx, ax
mov ax, word [0x18181c4c]
push 0x206
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push 0
push eax
mov word [ebp - 0xc], cx
call fcn.18148b00
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 0x18014973
lea eax, [ebp - 0x41c]
push eax
call fcn.1814ca63
mov edi, eax
lea eax, [ebp - 0x41c]
push edi
push eax
push ebx
call fcn.1815475a
add esp, 0x10
test eax, eax
je 0x1801499e
push esi
call fcn.1814ca63
pop ecx
lea esi, [esi + eax*2]
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x1801490f
mov eax, 0x8007000f
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.18145fe4
leave
ret
lea eax, [ebx + edi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x181aabe0
push dword [ebp - 0x420]
call fcn.1800f2dc
add esp, 0x10
xor eax, eax
jmp 0x1801498f
Function at 0x180154b7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x181cf008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x418], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x414], eax
xor eax, eax
push 0x60
push eax
push esi
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x410], eax
call ebx
mov edi, eax
push 2
pop eax
test edi, edi
jne 0x18015522
push eax
push edi
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x18015522
call fcn.18004702
mov esi, eax
jmp 0x180155fa
push dword [ebp - 0x414]
push dword [ebp - 0x418]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x18015545
call fcn.18004702
jmp 0x180155ed
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1801553b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x1801556e
mov esi, 0x8007000e
jmp 0x180155ef
push 2
pop ecx
mul ecx
test edx, edx
ja 0x18015626
jb 0x18015586
cmp eax, 0xffffffff
ja 0x18015626
cmp eax, 0x400
jbe 0x1801559b
push eax
lea ecx, [ebp - 0x410]
call fcn.1801aaef
jmp 0x180155a7
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
je 0x18015564
push esi
push dword [ebp - 0x410]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1801553b
mov eax, dword [ebp - 0x410]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x420]
push dword [ebp - 0x410]
call fcn.18016022
mov esi, eax
test edi, edi
je 0x180155fa
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x40c]
cmp dword [ebp - 0x410], eax
je 0x18015613
lea ecx, [ebp - 0x410]
call fcn.1801a171
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.18145fe4
leave
ret 0x10
push 0x80070216
call fcn.1800457b
int3
Function at 0x180172be
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ecx + 0x94]
cmp dword [esi], 0
jne 0x1801731e
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [esi + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor edi, edi
inc edi
test eax, eax
je 0x1801731b
jmp 0x18017315
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 4]
cmp edx, eax
jae 0x1801730c
or ecx, 0xffffffff
sub ecx, eax
add ecx, edx
cmp ecx, dword [ebp - 8]
jae 0x1801731b
cmp dword [esi + 4], 0
jg 0x180172eb
xchg dword [esi], edi
pop edi
pop esi
leave
ret