joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18062684
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
cmp esi, ebx
jne 0x1806269f
mov eax, 0x80070057
jmp 0x180627c7
call fcn.18003bdc
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 0x20019
push ebx
push eax
xor eax, eax
cmp byte [ebp + 8], bl
mov dword [ebp - 4], ebx
setne al
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x180626e4
jle 0x180627c7
and eax, 0xffff
or eax, 0x80070000
jmp 0x180627c7
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 8]
push ecx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call edi
mov esi, eax
cmp esi, ebx
je 0x1806272e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jle 0x180627c4
and esi, 0xffff
or esi, 0x80070000
jmp 0x180627c4
cmp dword [ebp - 0x10], 1
je 0x1806273a
cmp dword [ebp - 0x10], 2
jne 0x1806273f
cmp dword [ebp - 8], ebx
jne 0x1806274f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x8007000d
jmp 0x180627c6
mov eax, dword [0x180b41a8]
mov ecx, 0x180b41a8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
shr eax, 1
push eax
lea esi, [ebp - 0xc]
call fcn.18003cf7
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
lea edx, [ebp - 8]
push edx
push eax
push ebx
push ebx
push ecx
push dword [ebp - 4]
call edi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x180627ab
mov eax, dword [ebp - 8]
shr eax, 1
lea edx, [ebp - 0xc]
call fcn.18003d5c
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0xc]
call fcn.180038ff
cmp esi, ebx
jle 0x180627b9
and esi, 0xffff
or esi, 0x80070000
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x180627cb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
jne 0x180627e3
mov eax, 0x80070057
jmp 0x1806286f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 0x20019
push edi
push eax
push 0x80000002
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x18062813
jle 0x1806286f
and eax, 0xffff
or eax, 0x80070000
jmp 0x1806286f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push esi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push dword [ebp - 4]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x1806285a
jle 0x18062856
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x1806286e
cmp dword [ebp - 8], 4
jne 0x18062869
cmp dword [ebp - 0xc], edi
je 0x18062869
xor eax, eax
jmp 0x1806286e
mov eax, 0x8007000d
pop esi
pop edi
leave
ret
Function at 0x18062c76
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [eax]
push edi
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x18062ca0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18062c9e
and eax, 0xffff
or eax, 0x80070000
pop edi
ret
push esi
push str.GOOGLEUPDATEREPAIR
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x18062cd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18062cc9
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop esi
pop edi
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 4
je 0x18062ceb
mov esi, 0x8000ffff
jmp 0x18062ccb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x18062cb5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x18062d09
mov esi, 0x80070006
jmp 0x18062ccb
cmp dword [eax], 1
jne 0x18062ce4
xor esi, esi
jmp 0x18062ccb
Function at 0x18062d58
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x18062eea
mov eax, fcn.1802196e
test eax, eax
je 0x18062eea
or dword [ebp - 0xc], 0xffffffff
push str.AutoUpdateCheckPeriodMinutes
lea eax, [ebp - 4]
call fcn.18003b93
push str.SoftwarePoliciesCatalinaGroupUpdate_
lea eax, [ebp - 8]
call fcn.18003b93
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.180627cb
mov esi, eax
mov eax, dword [ebp - 8]
add esp, 0xc
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e1e
cmp esi, edi
jl 0x18062dd6
cmp dword [ebp - 0xc], edi
jne 0x18062dd6
mov eax, 0x800704ec
jmp 0x18062eef
mov eax, dword [0x180b41a8]
mov esi, 0x180b41a8
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [0x180b41a8]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
lea ebx, [ebp - 8]
call fcn.18062a7d
cmp eax, edi
mov ebx, dword [ebp - 4]
pop ecx
jge 0x18062e2b
mov edi, eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18003e1e
lea eax, [ebx - 0x10]
call fcn.18003e1e
mov eax, edi
jmp 0x18062eef
cmp dword [ebx - 0xc], edi
jne 0x18062e37
mov edi, 0x80004005
jmp 0x18062e11
push 0x1809c304
lea eax, [ebp - 0x18]
call fcn.18003b93
push dword [ebp + 8]
lea eax, [ebp - 0x14]
call fcn.18003b93
push str.6C598730_F715_407B_A7AE_A8F10D0F8FA7
lea eax, [ebp - 0x10]
call fcn.18003b93
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
call fcn.18062b41
mov edi, eax
mov eax, dword [ebp - 0x10]
add esp, 0x14
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.18003e1e
test edi, edi
jl 0x18062eac
lea esi, [ebp - 4]
call fcn.18062d12
mov edi, eax
test edi, edi
jge 0x18062ebf
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call esi
push dword [ebp - 8]
call esi
jmp 0x18062e11
push dword [ebp + 0xc]
lea eax, [ebp - 4]
call fcn.18062c1d
pop ecx
push 4
push 0
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
jmp 0x18062e17
mov eax, 0x80070057
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18064f05
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
push edi
lea ecx, [eax + 0x10]
xor esi, esi
movzx edx, byte [ecx]
shl edx, 0x18
inc ecx
movzx edi, byte [ecx]
shl edi, 0x10
or edx, edi
inc ecx
movzx edi, byte [ecx]
shl edi, 8
or edx, edi
inc ecx
movzx edi, byte [ecx]
or edx, edi
inc ecx
mov dword [ebp + esi*4 - 0x150], edx
inc esi
cmp esi, 0x10
jl 0x18064f16
push 0x50
pop edx
cmp esi, edx
jge 0x18064f68
lea ecx, [ebp + esi*4 - 0x188]
sub edx, esi
mov esi, dword [ecx + 0x2c]
xor esi, dword [ecx + 0x18]
xor esi, dword [ecx - 8]
xor esi, dword [ecx]
add ecx, 4
dec edx
rol esi, 1
mov dword [ecx + 0x34], esi
jne 0x18064f52
mov ecx, dword [eax + 0x50]
mov edi, dword [eax + 0x54]
mov esi, dword [eax + 0x58]
mov edx, dword [eax + 0x5c]
and dword [ebp - 4], 0
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0x60]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
rol ecx, 5
add ecx, dword [ebp + ebx*4 - 0x150]
add ecx, dword [ebp - 0xc]
cmp ebx, 0x14
jge 0x18064fad
mov ebx, edx
xor ebx, esi
and ebx, edi
xor ebx, edx
lea ecx, [ecx + ebx + 0x5a827999]
jmp 0x18064fee
cmp dword [ebp - 4], 0x28
jge 0x18064fc2
mov ebx, edx
xor ebx, esi
xor ebx, edi
lea ecx, [ecx + ebx + 0x6ed9eba1]
jmp 0x18064fee
cmp dword [ebp - 4], 0x3c
jge 0x18064fe1
mov ebx, esi
or ebx, edi
mov edi, esi
and edi, dword [ebp - 0x10]
and ebx, edx
or ebx, edi
mov edi, dword [ebp - 0x10]
lea ecx, [ecx + ebx - 0x70e44324]
jmp 0x18064fee
mov ebx, edx
xor ebx, esi
xor ebx, edi
lea ecx, [ecx + ebx - 0x359d3e2a]
inc dword [ebp - 4]
ror edi, 2
cmp dword [ebp - 4], 0x50
mov dword [ebp - 0xc], edx
mov edx, esi
mov esi, edi
mov edi, dword [ebp - 8]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], ecx
jl 0x18064f84
mov ebx, dword [eax + 0x50]
add ebx, ecx
mov ecx, dword [eax + 0x54]
add ecx, edi
mov dword [eax + 0x54], ecx
mov ecx, dword [eax + 0x58]
add ecx, esi
mov dword [eax + 0x58], ecx
mov ecx, dword [eax + 0x5c]
add ecx, edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x5c], ecx
mov ecx, dword [eax + 0x60]
pop edi
add ecx, edx
pop esi
mov dword [eax + 0x50], ebx
mov dword [eax + 0x60], ecx
pop ebx
leave
ret

Function at 0x1806503e
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 8], 0
and dword [eax + 0xc], 0
mov dword [eax], fcn.1806503e
mov dword [eax + 0x50], 0x67452301
mov dword [eax + 0x54], 0xefcdab89
mov dword [eax + 0x58], 0x98badcfe
mov dword [eax + 0x5c], 0x10325476
mov dword [eax + 0x60], 0xc3d2e1f0
ret
Function at 0x18065252
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push 0x40
pop ebx
push ebx
lea edi, [esi + 0x70]
push 0
push edi
call fcn.18076d30
add esp, 0xc
cmp dword [ebp + 0xc], ebx
jbe 0x1806528f
mov eax, dword [esi]
push esi
call dword [eax]
push dword [ebp + 0xc]
mov eax, dword [esi]
push dword [ebp + 8]
push esi
call dword [eax + 4]
mov eax, dword [esi]
add esp, 0x10
push dword [eax + 0x10]
push esi
call dword [eax + 8]
pop ecx
push eax
jmp 0x18065295
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.180764c0
add esp, 0xc
mov eax, edi
mov ecx, ebx
xor byte [eax], 0x36
inc eax
dec ecx
jne 0x180652a2
mov eax, dword [esi]
push esi
call dword [eax]
mov eax, dword [esi]
push ebx
push edi
push esi
call dword [eax + 4]
add esp, 0x10
xor byte [edi], 0x6a
inc edi
dec ebx
jne 0x180652b9
pop edi
pop ebx
pop ebp
ret

Function at 0x1806544a
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 8], 0
and dword [eax + 0xc], 0
mov dword [eax], fcn.1806544a
mov dword [eax + 0x50], 0x67452301
mov dword [eax + 0x54], 0xefcdab89
mov dword [eax + 0x58], 0x98badcfe
mov dword [eax + 0x5c], 0x10325476
ret
Function at 0x18066d96
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [0x180b5839]
sub esp, 0x34
neg eax
push ebx
sbb eax, eax
and eax, 0x180b5ae0
push esi
push edi
je 0x18066dd8
xor edi, edi
inc edi
push edi
push 8
pop esi
push esi
mov dword [ebp - 0x18], eax
call fcn.18001cc0
mov dword [ebp - 0x14], eax
push str._StartService_
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
call fcn.18001000
pop ecx
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x18066df8
call fcn.1800d3ff
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
call fcn.1804029d
pop ecx
push 0x14
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
cmp ebx, edi
jne 0x18066e37
call fcn.1800d3ff
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e1e
push dword [ebp - 8]
call esi
mov eax, edi
jmp 0x18066df3
push 6
mov dword [ebp - 0x34], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x18066e66
cmp dword [ebp - 0x30], 4
je 0x18066e5f
cmp dword [ebp - 0x30], 2
jne 0x18066e66
push ebx
call esi
xor edi, edi
jmp 0x18066e23
xor edi, edi
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x18066e7a
push ebx
call esi
jmp 0x18066e23
call fcn.1800d3ff
mov edi, eax
cmp edi, 0x80070420
jne 0x18066e75
jmp 0x18066e5f

Function at 0x1806714a
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 8], eax
and dword [ebp - 0x21c], 0
push ebx
push esi
lea eax, [ebp - 0x218]
call fcn.180075fe
mov esi, dword [eax]
xor eax, eax
mov word [ebp - 0x214], ax
test esi, esi
je 0x1806719e
cmp word [esi], ax
je 0x1806719e
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x180671c9
xor ebx, ebx
inc ebx
call fcn.18052c3a
lea eax, [ebp - 0x21c]
call fcn.1805300a
jmp 0x180671dc
push 2
pop ebx
call fcn.18052c3a
lea eax, [ebp - 0x218]
call fcn.18052e5f
mov eax, dword [eax]
sub eax, 0x10
call fcn.18003940
mov esi, eax
add esi, 0x10
test bl, 2
je 0x18067201
mov eax, dword [ebp - 0x218]
add eax, 0xfffffff0
and ebx, 0xfffffffd
call fcn.18003e1e
test bl, 1
je 0x18067214
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
call fcn.18003e1e
push esi
call fcn.1800482c
pop ecx
lea eax, [esi - 0x10]
call fcn.18003e1e
cmp word [ebp - 0x214], 0
je 0x1806723a
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.180761c5
leave
ret 4
Function at 0x18067408
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x180b41a8]
push ebx
push esi
mov ecx, 0x180b41a8
call dword [eax + 0xc]
add eax, 0x10
push 0x104
lea esi, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.18003cf7
mov esi, eax
lea eax, [ebp - 8]
call fcn.180075fe
mov eax, dword [eax]
push esi
push 0
push 0x180a90c4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
mov eax, dword [ebp - 8]
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
call fcn.18003e1e
or eax, 0xffffffff
lea esi, [ebp - 4]
call fcn.18003bbe
test bl, bl
mov ebx, dword [ebp - 4]
je 0x18067495
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18067483
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea eax, [ebx - 0x10]
call fcn.18003e1e
mov eax, esi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push 1
push ebx
push eax
call fcn.1800b263
add esp, 0xc
test eax, eax
jl 0x18067483
push edi
mov edi, dword [ebp + 8]
add edi, 4
lea eax, [ebp - 4]
call fcn.180038ff
xor esi, esi
pop edi
jmp 0x18067485
Function at 0x180692fd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x138
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x78]
push esi
mov esi, dword [0x180b416c]
mov dword [ebp - 0xa0], eax
movzx eax, word [ebp + 0x7c]
push 0xf0
push eax
push esi
mov dword [ebp - 0x9c], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1806948f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1806948f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1806948f
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x1806948d
inc esi
inc esi
movzx edi, ax
movzx eax, word [esi]
inc esi
inc esi
mov ecx, dword [esi]
mov dword [ebp - 0xa4], ecx
mov ecx, 0x403
add esi, 4
cmp cx, ax
jne 0x180693fe
lea eax, [ebp - 0x94]
push 3
mov dword [ebp - 0x98], eax
push esi
lea eax, [ebp - 0x98]
push eax
call fcn.18021512
push dword [ebp - 0x98]
movzx eax, di
push 0
push 0x143
push eax
mov eax, dword [ebp - 0xa0]
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x180693de
and dword [ebp - 0x9c], 0
lea eax, [ebp - 0x94]
cmp dword [ebp - 0x98], eax
je 0x1806947a
push dword [ebp - 0x98]
call fcn.1807642d
pop ecx
jmp 0x1806947a
mov ecx, 0x1234
cmp cx, ax
jne 0x1806947a
or dword [ebp - 0xc4], 0xffffffff
lea eax, [ebp - 0x94]
push 3
mov dword [ebp - 0x98], eax
push esi
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0xc8], 1
call fcn.18021512
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
mov dword [ebp - 0xc0], eax
cmp eax, ecx
je 0x18069451
push eax
call fcn.1807642d
pop ecx
lea eax, [ebp - 0xc8]
push eax
push 0
movzx eax, di
push 0x40b
push eax
mov eax, dword [ebp - 0xa0]
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x1806947a
and dword [ebp - 0x9c], 0
add esi, dword [ebp - 0xa4]
cmp dword [ebp - 0x9c], 0
jne 0x1806936e
pop edi
pop ebx
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x9c]
xor ecx, ebp
pop esi
call fcn.180761c5
add ebp, 0x70
leave
ret 8

Function at 0x1806da9c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push dword [esp + 8]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
movzx eax, byte [esi]
neg eax
sbb eax, eax
and eax, 5
push eax
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
cmp byte [esi + 1], al
setne al
push eax
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 2], 0
je 0x1806db02
cmp byte [esi + 3], 0
je 0x1806db02
push 1
push ebx
push 0x28
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x1806db02
or eax, 1
push eax
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop ebx
ret 4
Function at 0x1806dca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
call fcn.1806d239
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
and dword [esp + 0x10], 0
push 5
push dword [esp + 0x1c]
push esi
call edi
mov ebp, eax
test ebp, ebp
je 0x1806dd5c
push 0xf0
push dword [esp + 0x1c]
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1806dceb
push eax
push esi
call edi
push eax
call ebx
and dword [esp + 0xc], 0
push ebp
push esi
call edi
test eax, eax
je 0x1806dd41
push eax
call ebx
mov edi, eax
test edi, edi
je 0x1806dd41
call fcn.1806db4d
push 0
push 0x1806db06
push dword [esp + 0x24]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1806dd2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
cmp ebx, edi
je 0x1806dd4b
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1806dd4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x1806dd5c
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x1806e1eb
Capabilities:
Hide graphical window

Disassembly:
push ebp
push esi
push edi
lea esi, [ebx + 8]
mov eax, ebx
call fcn.1804f682
movzx eax, word [ebx + 0x24]
mov esi, dword [0x180b416c]
push 0
push eax
call fcn.1806dca0
pop ecx
pop ecx
test eax, eax
jne 0x1806e21a
mov eax, 0x80040e80
jmp 0x1806e2ad
push dword [ebx + 0x64]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
lea esi, [ebx + 4]
push dword [esi]
call edi
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfff4ffff
push eax
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x7db
push dword [esi]
call ebp
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x7d5
push dword [esi]
call ebp
mov ebp, eax
push 1
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 0x60]
push ebp
call edi
mov eax, ebx
call fcn.1806e2b1
push 2
push 0xff
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
push esi
xor eax, eax
call fcn.18007348
push dword [esi]
lea edi, [ebx + 0x68]
call fcn.18010896
xor eax, eax
pop ecx
inc eax
mov ecx, ebx
call fcn.1806e32f
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x1806fb51
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
call fcn.1806fb33
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xe
push dword [ebp + 0xc]
call esi
mov ebx, eax
mov eax, dword [0x180b41a8]
mov ecx, 0x180b41a8
mov dword [ebp - 8], ebx
call dword [eax + 0xc]
mov edi, eax
add edi, 0x10
mov dword [ebp - 4], edi
test ebx, ebx
jbe 0x1806fbb2
push ebx
lea eax, [ebp - 4]
call fcn.18002b1f
push eax
inc ebx
push ebx
push 0xd
push dword [ebp + 0xc]
call esi
or eax, 0xffffffff
lea esi, [ebp - 4]
call fcn.18003bbe
mov edi, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
call fcn.1806a40f
mov esi, eax
test esi, esi
je 0x1806fbd6
cmp dword [ebp - 8], 0
jbe 0x1806fbd6
mov eax, dword [ebp + 8]
push edi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [edi - 0x10]
call fcn.18003e1e
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x1807191c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.18003b93
lea eax, [ebp + 0xc]
push eax
call fcn.18009396
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
jne 0x18071967
mov edi, 0x104
push edi
lea esi, [ebp + 0xc]
call fcn.18003cf7
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
or eax, 0xffffffff
call fcn.18003bbe
mov edi, esi
call fcn.1800a6cc
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
cmp esi, ebx
jne 0x18071998
call fcn.1800d3ff
mov edi, eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
mov ebx, dword [ebp + 8]
push esi
push dword [ebp - 4]
call fcn.180719af
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18071984