joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1804720a
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
push edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x69], 0
mov dword [ebp - 0x88], 0x40
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x50], 0xf
call fcn.18006633
push edi
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x4c]
push eax
push 5
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x180472a6
push 0xa
lea eax, [ebp - 0x4c]
push edi
push eax
mov byte [ebp - 0x69], 1
call fcn.18077ce9
mov esi, dword [ebp - 0x54]
add esp, 0xc
mov dword [ebp - 0x7c], eax
cmp esi, eax
ja 0x180472a6
cmp dword [ebp - 0x50], eax
je 0x180472a6
push 1
push eax
lea ecx, [ebp - 0x68]
call fcn.18006499
test al, al
je 0x180472a4
push esi
lea ecx, [ebp - 0x68]
call fcn.18006633
xor edi, edi
push edi
mov dword [ebp - 0x78], edi
push edi
mov edi, dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
jmp 0x1804733a
cmp dword [ebp - 0x70], 0
jbe 0x1804735e
mov ebx, dword [ebp - 0x70]
lea eax, [ebp - 0xa0]
call fcn.1803f648
mov eax, dword [ebp - 0x90]
sub eax, dword [ebp - 0x94]
jne 0x180472e1
call fcn.1807753a
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x94]
push dword [ebp - 0x74]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, eax
test ebx, ebx
je 0x18047353
mov eax, dword [ebp - 0x80]
test eax, eax
jbe 0x18047353
add dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x90]
sub eax, dword [ebp - 0x94]
jne 0x1804731a
call fcn.1807753a
push dword [ebp - 0x80]
lea eax, [ebp - 0x68]
push dword [ebp - 0x94]
call fcn.18047bf6
lea esi, [ebp - 0xa0]
call fcn.1800f711
push 0
push 0
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
call edi
mov ebx, eax
test ebx, ebx
jne 0x180472b6
mov byte [ebp - 0x69], 0
jmp 0x180473aa
lea esi, [ebp - 0xa0]
call fcn.1800f711
test ebx, ebx
je 0x1804734d
cmp byte [ebp - 0x69], 0
je 0x18047370
mov eax, dword [ebp - 0x7c]
cmp dword [ebp - 0x78], eax
jne 0x1804734d
cmp dword [ebp - 0x84], 0
mov byte [ebp - 0x69], 1
je 0x180473aa
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x68]
call fcn.180479ca
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0x84]
xor ebx, ebx
call fcn.1801bcb6
push ebx
push 1
lea esi, [ebp - 0xa4]
call fcn.1801bda8
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.1800664f
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 0x69]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180761c5
leave
ret
Function at 0x180487a1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x3c], 0
mov dword [ebp - 0x28], edi
je 0x180488b4
cmp byte [edi + 0x41], 0
je 0x180488b4
mov eax, dword [edi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x180487e0
xor al, al
jmp 0x180488b6
lea esi, [ebp - 0x20]
call fcn.180484d1
lea eax, [edi + 0x44]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x20]
call fcn.180485f1
mov esi, eax
call fcn.180488c5
mov ebx, eax
add ebx, dword [ebp - 0x30]
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x20]
call fcn.180485f1
mov esi, eax
call fcn.180488c5
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
lea esi, [ebp - 0x24]
push esi
push ebx
push eax
push dword [ebp - 0x2c]
call dword [edx + 0x18]
sub eax, 0
je 0x1804884c
dec eax
je 0x18048850
dec eax
dec eax
je 0x180488b0
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.1800664f
mov al, bl
jmp 0x180488b6
mov byte [edi + 0x41], 0
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x20]
call fcn.180485f1
mov esi, eax
call fcn.180488c5
mov ebx, dword [ebp - 0x24]
sub ebx, eax
je 0x1804888e
push dword [edi + 0x4c]
lea eax, [ebp - 0x40]
push ebx
push 1
lea ecx, [ebp - 0x20]
call fcn.180485f1
mov esi, eax
call fcn.180488c5
push eax
call fcn.1808ead9
add esp, 0x10
cmp ebx, eax
jne 0x1804883a
cmp byte [edi + 0x41], 0
je 0x180488b0
test ebx, ebx
jne 0x180487ee
push ebx
push 8
pop ebx
lea edi, [ebp - 0x20]
call fcn.180485ad
mov edi, dword [ebp - 0x28]
jmp 0x180487ee
mov bl, 1
jmp 0x1804883c
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180761c5
leave
ret
Function at 0x18050ecf
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x180af1d0]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x1809904c
lea edi, [esp + 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x34]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jl 0x18050f5e
lea edi, [esp + 0x34]
lea esi, [esp + 0x14]
call fcn.18004c45
lea eax, [esp + 0x1c]
call fcn.18003f45
push dword [ebp + 0xc]
mov edi, dword [esp + 0x18]
push edi
lea ebx, [esp + 0x24]
call fcn.18004328
push dword [esp + 0x20]
mov eax, ebx
call fcn.18051071
add esp, 0xc
test eax, eax
jge 0x18050f70
mov ebx, eax
lea esi, [esp + 0x1c]
call fcn.18003f6b
lea eax, [edi - 0x10]
call fcn.18003e1e
mov eax, ebx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.180761c5
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x18050f98
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18050f49
and eax, 0xffff
or eax, 0x80070000
jmp 0x18050f49
xor ebx, ebx
jmp 0x18050f4b

Function at 0x18050f9c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x180af1d0]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [esp + 0x30], ax
lea eax, [esp + 0x32]
push eax
mov esi, ecx
mov edi, edx
call fcn.18076d30
mov esi, dword [esi]
add esp, 0xc
push 0x104
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x18051017
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x18051002
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.180761c5
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
call fcn.18003f45
push dword [ebp + 8]
lea eax, [esp + 0x2c]
push eax
lea ebx, [esp + 0x18]
call fcn.18004328
pop ecx
pop ecx
push dword [esp + 0x10]
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [edi], eax
test eax, eax
jne 0x1805106d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1805105e
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
lea esi, [esp + 0x10]
call fcn.18003f6b
mov eax, edi
jmp 0x18051002
xor edi, edi
jmp 0x18051060
Function at 0x180510cd
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10818
call fcn.18080120
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push dword [ebx]
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x10814], esi
mov dword [ebp - 0x10810], edi
call fcn.1800acf4
pop ecx
test al, al
jne 0x1805110c
mov eax, 0x80070002
jmp 0x180511ef
call fcn.1800abcc
xor eax, eax
push 0xfffe
mov word [ebp - 0x10808], ax
xor edi, edi
lea eax, [ebp - 0x10806]
push edi
push eax
call fcn.18076d30
mov eax, dword [ebx]
mov ecx, dword [esi]
add esp, 0xc
push eax
push 0x8000
lea eax, [ebp - 0x10808]
push eax
push edi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ecx
call edi
xor esi, esi
mov dword [ebp - 0x10818], eax
test eax, eax
jbe 0x180511ed
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x806]
push eax
call fcn.18076d30
add esp, 0xc
lea eax, [ebp + esi*2 - 0x10808]
push eax
lea eax, [ebp - 0x1080c]
call fcn.18003b93
push dword [ebx]
lea eax, [ebp - 0x808]
push 0x400
push eax
mov eax, dword [ebp - 0x10814]
push 0
push dword [ebp - 0x1080c]
push dword [eax]
call edi
push dword [ebp - 0x10810]
lea eax, [ebp - 0x1080c]
call fcn.1801ba93
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.18003dfb
mov eax, dword [ebp - 0x1080c]
mov ecx, dword [eax - 0xc]
add eax, 0xfffffff0
lea esi, [esi + ecx + 1]
call fcn.18003e1e
cmp esi, dword [ebp - 0x10818]
jb 0x1805115d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.180761c5
leave
ret
Function at 0x180511fd
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub esp, 0x10
cmp dword [eax - 0xc], 0
jne 0x18051213
xor eax, eax
inc eax
leave
ret
mov eax, dword [0x180b41a8]
push ebx
push esi
push edi
mov edi, 0x180b41a8
mov ecx, edi
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 - 0xc]
call fcn.180075fe
mov eax, dword [eax]
push esi
push 0
push 0x180a5ddc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
mov eax, dword [ebp - 0xc]
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
je 0x1805128e
call fcn.1800d3ff
mov esi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.18003e1e
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x18051275
mov eax, dword [0x180b41a8]
mov ecx, edi
call dword [eax + 0xc]
push dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp + 8]
push eax
call fcn.180079b3
push dword [eax]
lea eax, [ebp - 8]
push 0xbf
push 0xbb
push 0xef
push str._c_c_c_s
push eax
call fcn.1800db4a
mov eax, dword [ebp + 8]
add esp, 0x20
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, dword [ebp - 8]
push ebx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax - 0xc]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x18051334
call fcn.1800d3ff
mov edi, eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18003e1e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, edi
jmp 0x1805127c
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
call fcn.180038ff
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18003e1e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x1805127c
Function at 0x18051574
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
je 0x18051596
call fcn.180520a5
test al, al
je 0x18051596
mov eax, 0x80004005
pop edi
pop esi
pop ebx
leave
ret
and dword [ebp - 8], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xc], 0x1809c9b0
call fcn.18003f45
push dword [ebp + 8]
lea ebx, [ebp - 0x2c]
push str.4F68A168_86BB_45F7_A852_DF43DFC2A3AF
call fcn.18004328
pop ecx
pop ecx
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
push eax
call fcn.18009730
test al, al
jne 0x180515e8
mov edi, 0x80004005
lea esi, [ebp - 0x2c]
call fcn.18003f6b
lea ecx, [ebp - 0xc]
call fcn.18009752
mov eax, edi
jmp 0x18051591
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
call dword [eax + 4]
mov edi, 0x1809c71c
xor ebx, ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
call fcn.18052c3a
push ebx
push 0xf003f
push dword [ebp + 8]
call fcn.180121ae
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.1800bb44
mov esi, eax
cmp esi, ebx
jge 0x18051639
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.1800bac9
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
call dword [eax + 8]
mov edi, esi
jmp 0x180515d4
push ebx
push ebx
push ebx
push ebx
mov esi, 0x180a5cf4
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1805166b
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.1800bac9
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
call dword [eax + 8]
xor edi, edi
jmp 0x180515d4
mov eax, dword [0x180b41a8]
mov ecx, 0x180b41a8
call dword [eax + 0xc]
add eax, 0x10
lea ebx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.1800544e
mov ebx, eax
test ebx, ebx
jge 0x180516b2
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.18003e1e
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
call fcn.1800bac9
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
call dword [eax + 8]
mov edi, ebx
jmp 0x180515d4
mov ebx, dword [ebp + 8]
push ebx
push esi
lea eax, [ebp - 0x14]
push eax
call fcn.1800c1b4
mov esi, eax
test esi, esi
jge 0x180516d3
lea eax, [ebx - 0x10]
call fcn.18003e1e
jmp 0x18051621
mov esi, 0x180b16e0
call fcn.18041000
lea eax, [ebx - 0x10]
call fcn.18003e1e
jmp 0x18051650

Function at 0x18052175
Capabilities:
Identify system language via api

Disassembly:
cmp byte [esp + 8], 0
push esi
je 0x18052185
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
jmp 0x1805218b
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x409
movzx esi, ax
xor edx, edx
mov eax, ecx
cmp si, ax
je 0x180521dd
inc edx
mov eax, edx
imul eax, eax, 0x1a
movzx eax, word [eax + 0x1809a1e8]
test ax, ax
jne 0x18052197
mov edx, ecx
xor eax, eax
pop esi
cmp cx, dx
je 0x180521e2
inc eax
mov ecx, eax
imul ecx, ecx, 0x1a
movzx ecx, word [ecx + 0x1809a1e8]
test cx, cx
jne 0x180521b3
push 0x180a60c0
mov eax, dword [esp + 8]
call fcn.18003b93
mov eax, dword [esp + 4]
ret
movzx edx, si
jmp 0x180521b0
imul eax, eax, 0x1a
add eax, 0x1809a1ea
push eax
jmp 0x180521cf
Function at 0x180534c0
Capabilities:
Get hostname

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp + 0x188], eax
push ebx
xor eax, eax
push 0x1fe
mov word [ebp - 0x78], ax
xor ebx, ebx
lea eax, [ebp - 0x76]
push ebx
push eax
call fcn.18076d30
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 3
mov dword [ebp - 0x80], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x1805352c
push 1
lea eax, [ebp - 0x78]
push str..catalinahub.com
push eax
call fcn.18007e9b
add esp, 0xc
test al, al
je 0x1805352c
mov al, 1
jmp 0x18053568
push esi
lea eax, [ebp - 0x7c]
push eax
push 0x64
push ebx
mov dword [ebp - 0x7c], ebx
call sub.NETAPI32.dll_NetWkstaGetInfo
mov ecx, dword [ebp - 0x7c]
mov esi, ecx
cmp eax, ebx
jne 0x1805355f
cmp dword [ecx + 8], ebx
je 0x1805355f
push str.catalinahub
push dword [ecx + 8]
call fcn.18077235
pop ecx
pop ecx
test eax, eax
jne 0x1805355f
mov bl, 1
push esi
call sub.NETAPI32.dll_NetApiBufferFree
mov al, bl
pop esi
mov ecx, dword [ebp + 0x188]
xor ecx, ebp
pop ebx
call fcn.180761c5
add ebp, 0x18c
leave
ret

Function at 0x1805417f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x234], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
mov ebx, ecx
call fcn.18076d30
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x180541e9
call fcn.1800d3ff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180761c5
leave
ret
cmp eax, esi
jb 0x180541f4
mov eax, 0x80004005
jmp 0x180541da
mov esi, 0x1809904c
lea edi, [ebp - 0x224]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x224]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jl 0x180541da
lea edi, [ebp - 0x224]
lea esi, [ebp - 0x22c]
call fcn.18004c45
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x228]
call fcn.18003b93
mov edi, dword [ebp - 0x22c]
push edi
lea eax, [ebp - 0x228]
call fcn.180057ed
lea eax, [ebp - 0x228]
call fcn.180543dd
mov esi, dword [ebp - 0x228]
push esi
call fcn.18004560
pop ecx
mov dword [ebp - 0x230], eax
test eax, eax
jge 0x18054286
lea eax, [esi - 0x10]
call fcn.18003e1e
lea eax, [edi - 0x10]
call fcn.18003e1e
mov eax, dword [ebp - 0x230]
jmp 0x180541da
mov eax, dword [ebx]
push 1
push esi
push eax
call fcn.1800b059
add esp, 0xc
test eax, eax
jge 0x180542b1
mov ebx, eax
lea eax, [esi - 0x10]
call fcn.18003e1e
lea eax, [edi - 0x10]
call fcn.18003e1e
mov eax, ebx
jmp 0x180541da
mov edi, dword [ebp - 0x234]
lea eax, [ebp - 0x228]
call fcn.180038ff
mov edi, dword [ebp - 0x22c]
xor ebx, ebx
jmp 0x1805429a
Function at 0x18054aa5
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
call fcn.180079b3
mov eax, dword [0x180b41a8]
pop ecx
pop ecx
mov ecx, 0x180b41a8
call dword [eax + 0xc]
mov esi, dword [ebp - 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [esi - 0xc]
call fcn.18008026
mov ebx, eax
push ebx
call fcn.18077023
pop ecx
mov edi, eax
mov eax, dword [esi - 0xc]
push ebx
push edi
mov ecx, esi
call fcn.18008043
pop ecx
pop ecx
push eax
push edi
lea eax, [ebp - 8]
call fcn.18009035
push edi
call fcn.180761d4
pop ecx
push 0x1e
pop eax
lea edi, [ebp - 0x48]
call fcn.18055bba
mov eax, dword [ebp - 8]
push dword [eax - 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.18007a5f
add esp, 0xc
lea edi, [ebp - 0x1c]
call fcn.180038ff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.18003e1e
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x48]
call fcn.18055ccb
mov ebx, dword [ebp - 0x10]
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
xor edi, edi
push eax
mov dword [ebp + 0xc], edi
call fcn.18050660
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
jge 0x18054b9f
cmp dword [ebp + 0xc], edi
je 0x18054b6e
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, esi
lea eax, [ebx - 0x10]
call fcn.18003e1e
lea esi, [ebp - 0x48]
call fcn.18055c4e
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.18003e1e
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [ebp + 0x10], edi
je 0x18054bfc
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp + 0x10], edi
cmp eax, edi
jne 0x18054bd7
lea eax, [ebp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x18054be7
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x18054b70
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18054b70
cmp eax, 0x102
jne 0x18054be7
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp esi, edi
je 0x18054bf2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x80004005
jmp 0x18054b70
cmp dword [ebp + 0xc], edi
je 0x18054b70
push dword [ebp + 0xc]
jmp 0x18054bcf
Function at 0x18057b3f
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
cmp esi, edi
jne 0x18057b60
call fcn.1800d3ff
jmp 0x18057bd4
mov eax, dword [0x180b41a8]
mov ecx, 0x180b41a8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.1800cb93
mov ebx, dword [ebp - 8]
mov dword [ebp - 4], edi
pop ecx
cmp dword [ebx - 0xc], edi
je 0x18057b92
lea eax, [ebp - 4]
push eax
push ebx
call sub.ADVAPI32.dll_ConvertStringSidToSidW
push dword [ebp + 0x20]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x18057bba
call fcn.1800d3ff
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea eax, [ebx - 0x10]
call fcn.18003e1e
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1806237e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x18062393
mov eax, 0x80070057
jmp 0x18062404
push edi
xor eax, eax
mov dword [ebp - 0x10], esi
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x3c
stosd dword es:[edi], eax
lea eax, [ebp - 0x4c]
push esi
push eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x50], esi
call fcn.18076d30
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x28], 0x80
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
test eax, eax
jne 0x180623f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x18062404
and eax, 0xffff
or eax, 0x80070000
jmp 0x18062404
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
pop esi
leave
ret

Function at 0x18062455
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x18062476
mov eax, 0x80070057
jmp 0x180624e2
push edi
call fcn.18003bdc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.18076d30
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x180624c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x180624e1
and eax, 0xffff
or eax, 0x80070000
jmp 0x180624e1
cmp eax, edi
jb 0x180624d2
mov eax, 0x80004005
jmp 0x180624e1
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.18003dfb
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.180761c5
leave
ret

Function at 0x18062543
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x180af1d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
cmp dword [esi - 0xc], 0
je 0x180625d5
test edi, edi
je 0x180625d5
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.18076d30
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x180a7f4c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x180625b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x180625da
and eax, 0xffff
or eax, 0x80070000
jmp 0x180625da
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.18003dfb
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
jmp 0x180625da
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.180761c5
leave
ret