joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18030e12
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x180af1d0]
xor eax, esp
mov dword [esp + 0x278], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [edi + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
mov esi, edx
mov dword [esp + 0x2c], ecx
call dword [eax + 4]
push esi
call fcn.18003f83
mov dword [esp + 0x24], eax
or eax, edx
pop ecx
mov dword [esp + 0x24], edx
jne 0x18030e80
mov edi, 0x80070057
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esp + 0x284]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.180761c5
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x180b41a8]
mov esi, 0x180b41a8
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x180b41a8]
mov ecx, esi
call dword [eax + 0xc]
mov ebx, eax
mov eax, dword [0x180b41a8]
add ebx, 0x10
mov ecx, esi
mov dword [esp + 0x18], ebx
call dword [eax + 0xc]
mov esi, eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
add esi, 0x10
push edi
lea eax, [esp + 0x28]
mov dword [esp + 0x20], esi
call fcn.18031274
mov edi, eax
lea eax, [esi - 0x10]
call fcn.18003e1e
lea eax, [ebx - 0x10]
call fcn.18003e1e
test edi, edi
jge 0x18030efb
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.18003e1e
jmp 0x18030e5e
and dword [esp + 0x30], 0
push 0x24c
lea eax, [esp + 0x38]
push 0
push eax
call fcn.18076d30
add esp, 0xc
push 0x1809c3e0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
call fcn.18002a05
mov eax, dword [eax]
pop ecx
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.18003e1e
cmp edi, 0xffffffff
jne 0x18030f51
call fcn.1800d3ff
mov edi, eax
jmp 0x18030eea
lea eax, [esp + 0x30]
call fcn.18030620
test al, al
jne 0x18030fdd
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x1c]
call fcn.18003b93
lea eax, [esp + 0x18]
push eax
call fcn.18003f83
mov ebx, eax
mov eax, dword [esp + 0x1c]
pop ecx
add eax, 0xfffffff0
mov esi, edx
call fcn.18003e1e
mov eax, ebx
or eax, esi
je 0x18030fdd
cmp esi, dword [esp + 0x24]
ja 0x18030fdd
jb 0x18030f9b
cmp ebx, dword [esp + 0x20]
jae 0x18030fdd
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x18]
call fcn.18003b93
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
lea ebx, [esp + 0x14]
call fcn.1800a5bc
mov eax, dword [esp + 0x18]
pop ecx
add eax, 0xfffffff0
call fcn.18003e1e
mov esi, dword [esp + 0x10]
call fcn.18004a51
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.18003e1e
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18030f51
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.18003e1e
xor edi, edi
jmp 0x18030e5e
Function at 0x18032cab
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
xor esi, esi
push dword [ebp + 0x10]
mov ebx, ecx
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call fcn.18032bfa
add esp, 0x14
test eax, eax
jge 0x18032ce4
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x18032d2e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x18032d2e
mov edi, dword [ebp - 4]
push esi
push esi
push edi
push 0x18032db2
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
neg eax
sbb eax, eax
and eax, dword [fcn.18019f46]
cmp eax, esi
je 0x18032d0b
xor edi, edi
jmp 0x18032d19
call fcn.1800d3ff
push eax
push esi
mov eax, edi
call fcn.18032d33
cmp ebx, esi
je 0x18032d24
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
je 0x18032d2e
mov eax, dword [edi]
push edi
call dword [eax + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x18035bae
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, eax
push esi
call fcn.18076825
lea edx, [esi + eax*2]
pop ecx
mov ecx, esi
mov eax, 0x811c9dc5
cmp esi, edx
je 0x18035bd7
movzx esi, word [ecx]
imul eax, eax, 0x1000193
xor eax, esi
inc ecx
inc ecx
cmp ecx, edx
jne 0x18035bc6
pop esi
ret
Function at 0x18039ced
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.1800cc3b
test al, al
jne 0x18039d1b
xor esi, esi
push esi
push str._GoogleUpdate.exe__NetDiags__only_runs_on_Windows_XP_or_later.
push str.GoogleUpdate.exe
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor esi, esi
cmp eax, esi
je 0x18039d48
push str.AttachConsole
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x18039d42
push 0xffffffffffffffff
call eax
jmp 0x18039d44
xor eax, eax
cmp eax, esi
jne 0x18039d50
push esi
push str.Please_run__GoogleUpdate.exe__NetDiags__from_a_cmd.exe_window.
jmp 0x18039d07
push 0x1809c818
call fcn.18039c90
pop ecx
push 2
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, esi
jge 0x18039d77
push eax
push str.Failed_to_::CoInitialize____0x_x__n
call fcn.18039c90
pop ecx
pop ecx
jmp 0x18039d13
lea eax, [ebp - 4]
push eax
push ecx
mov dword [ebp - 4], esi
call fcn.18036edc
pop ecx
mov ebx, eax
call fcn.1803702c
cmp eax, esi
jge 0x18039d98
push eax
push str.Failed_to_GetUserNetworkConfig____0x_x__n
jmp 0x18039d6e
mov edi, dword [ebp - 4]
mov ebx, edi
call fcn.18035e78
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.180114b1
cmp dword [ebp - 4], 3
jne 0x18039ddc
push str.Default_browser_is_Firefox_n
call fcn.18039c90
pop ecx
push 0x20
call fcn.18076e14
pop ecx
cmp eax, esi
je 0x18039dd3
mov ebx, eax
call fcn.1803d0cf
jmp 0x18039dd5
xor eax, eax
push eax
push edi
call fcn.18035df1
push 4
call fcn.18076e14
pop ecx
cmp eax, esi
je 0x18039df0
mov dword [eax], 0x180a30e8
jmp 0x18039df2
xor eax, eax
push eax
push edi
call fcn.18035df1
lea eax, [ebp - 0x1c]
push eax
mov ebx, edi
call fcn.1803620c
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x10]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
jne 0x18039e21
push str.No_Network_Configurations_to_display_n
call fcn.18039c90
pop ecx
jmp 0x18039e47
lea eax, [ebp - 4]
push eax
lea ebx, [ebp - 0x1c]
call fcn.1803638c
pop ecx
push dword [eax]
push str._Detected_Network_Configurations___n_s__n
call fcn.18039c90
mov eax, dword [ebp - 4]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.18003e1e
lea esi, [ebp - 0x1c]
call fcn.18038139
push dword [ebp - 0x1c]
call fcn.180761ba
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18039fbe
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push dword [eax]
push str._nDownload_request_for___s__n
call fcn.18039c90
and dword [ebp - 8], 0
pop ecx
pop ecx
call fcn.18036edc
lea ecx, [ebp - 8]
push ecx
mov ebx, eax
call fcn.1803702c
test eax, eax
jge 0x1803a002
push eax
push str.Failed_to_GetUserNetworkConfig____0x_x__n
call fcn.18039c90
pop ecx
pop ecx
jmp 0x1803a122
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x58]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebp - 4]
call fcn.1803a19f
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edi + 0x6c], eax
lea eax, [ebp - 8]
mov dword [edi + 0x50], 2
call fcn.180075fe
mov eax, dword [0x180b41a8]
mov ecx, 0x180b41a8
call dword [eax + 0xc]
add eax, 0x10
push 0x104
lea esi, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.18003cf7
push eax
push 0
push 0x180a357c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebx, eax
neg ebx
sbb bl, bl
or eax, 0xffffffff
inc bl
call fcn.18003bbe
test bl, bl
je 0x1803a08d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.::GetTempFileName_Failed___d__n
call fcn.18039c90
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
jmp 0x1803a108
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 4]
call fcn.1803a24f
mov edi, dword [edi + 0x5c]
push edi
test eax, eax
jge 0x1803a0ba
push eax
push str.Download_failed._HRESULT_0x_x___HTTP_Status__d__n
call fcn.18039c90
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, 0xfffffff0
jmp 0x1803a10a
push str.HTTP_Status__d__n
call fcn.18039c90
mov esi, dword [ebp + 8]
push esi
push str.Downloaded_File__s__n
call fcn.18039c90
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1803a0fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.::DeleteFile_Failed___s___d__n
call fcn.18039c90
add esp, 0xc
lea eax, [esi - 0x10]
jmp 0x1803a10a
push esi
push str.Deleted_file___s__n
call fcn.18039c90
lea eax, [esi - 0x10]
pop ecx
pop ecx
call fcn.18003e1e
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18003e1e
lea eax, [ebp - 4]
call fcn.1803a1e0
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1803ace0
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x88]
xor edi, edi
xor ecx, ecx
cmp dword [eax + 0x3c], edi
mov eax, dword [esi + 0x48]
setne cl
push edi
push 0x80
lea ecx, [ecx + ecx + 2]
push ecx
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1803ad24
call fcn.1800d3ff
jmp 0x1803adcb
mov eax, dword [esi + 0x88]
cmp dword [eax + 0x3c], edi
je 0x1803adc0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x1803adb0
cmp eax, 0x7fffffff
ja 0x1803adb0
mov ebp, dword [esi + 0x88]
cmp eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x40]
setg al
cmp dword [esp + 0x10], ecx
push edi
setne dl
or al, dl
je 0x1803ad97
push 0x80
push 2
push edi
push edi
mov dword [ebp + 0x40], edi
mov esi, dword [esi + 0x48]
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp ebx, esi
je 0x1803ad90
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
cmp ebx, 0xffffffff
jne 0x1803adc3
jmp 0x1803ad1a
push edi
xor eax, eax
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1803adc3
call fcn.1800d3ff
mov esi, eax
jmp 0x1803adb5
mov esi, 0x80004005
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x1803adcb
mov dword [eax + 0x40], edi
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x1803f24c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, dword [ebx + 0x70]
mov eax, dword [ecx]
push esi
push edi
push dword [ebx + 0x68]
call dword [eax + 0x2c]
push dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x70]
push dword [ebx + 0x38]
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, dword [ebx + 0x70]
mov eax, dword [ecx]
lea edx, [ebx + 0x34]
push edx
call dword [eax + 0x30]
mov ecx, dword [ebx + 0x70]
mov eax, dword [ecx]
lea edx, [ebx + 0x40]
push edx
call dword [eax + 0x3c]
movzx edx, byte [ebx + 0x54]
mov ecx, dword [ebx + 0x70]
mov eax, dword [ecx]
push edx
call dword [eax + 0x40]
mov ecx, dword [ebx + 0x70]
push dword [ebx + 0x6c]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov eax, dword [ebx + 0x70]
mov eax, dword [eax]
lea edi, [ebp - 0xc]
mov esi, ebx
mov dword [ebp - 8], eax
call fcn.1803f3ee
mov ecx, dword [ebx + 0x70]
push eax
mov eax, dword [ebp - 8]
call dword [eax + 0x48]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.18003e1e
mov ecx, dword [ebx + 0x70]
push dword [ebx + 0x74]
mov eax, dword [ecx]
call dword [eax + 0x38]
movzx edx, byte [ebx + 0xa8]
mov ecx, dword [ebx + 0x70]
mov eax, dword [ecx]
push edx
call dword [eax + 0x4c]
mov ecx, dword [ebx + 0x70]
mov eax, dword [ecx]
lea edx, [ebx + 0x48]
push edx
call dword [eax + 0x58]
push dword [ebx + 0x88]
call fcn.18009890
pop ecx
test al, al
je 0x1803f305
mov eax, 0x80040810
jmp 0x1803f3e8
mov ecx, dword [ebx + 0x6c]
test ecx, ecx
je 0x1803f311
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx + 0x70]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, 0x80040810
mov dword [ebx + 0x78], eax
cmp eax, ecx
jne 0x1803f32c
mov eax, ecx
jmp 0x1803f3e8
mov ecx, dword [ebx + 0x70]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [ebx + 0x70]
mov dword [ebx + 0x7c], eax
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov ecx, dword [ebx + 0x70]
mov eax, dword [ecx]
lea edx, [ebp - 0xc]
push edx
call dword [eax + 0x24]
mov edi, dword [ebp + 0xc]
call fcn.180038ff
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.18003e1e
mov ecx, dword [ebx + 0x70]
mov eax, dword [ecx]
lea edx, [ebp - 0x24]
push edx
call dword [eax + 0x18]
mov edi, eax
mov eax, dword [ebp + 0x10]
call fcn.18037d30
lea esi, [ebp - 0x24]
call fcn.1800b9f7
push dword [ebp - 0x24]
call fcn.180761ba
cmp dword [ebx + 0x78], 0
pop ecx
jge 0x1803f3a8
call fcn.180401ac
test al, al
je 0x1803f39e
mov eax, dword [ebx + 0x78]
jmp 0x1803f3a3
mov eax, 0x80040801
mov dword [ebx + 0x78], eax
jmp 0x1803f3e8
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, eax
sub ecx, 0xc8
je 0x1803f3e1
sub ecx, 4
je 0x1803f3e1
dec ecx
dec ecx
je 0x1803f3e1
sub ecx, 0x62
je 0x1803f3e1
lea ecx, [eax - 0x64]
cmp ecx, 0x195
ja 0x1803f3d7
add eax, 0x80042000
jmp 0x1803f3dc
mov eax, 0x800423ff
mov dword [ebx + 0x78], eax
jmp 0x1803f3e5
and dword [ebx + 0x78], 0
mov eax, dword [ebx + 0x78]
pop edi
pop esi
leave
ret 0xc
Function at 0x18041414
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x1804143d
call fcn.1800d3ff
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 0x24
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
jne 0x18041468
call fcn.1800d3ff
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x18041438
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x30], esi
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
push ebx
call esi
test eax, eax
je 0x180414c7
cmp dword [ebp - 0x2c], 1
je 0x18041526
cmp dword [ebp - 0x2c], 3
je 0x180414c7
push 0x1c
lea eax, [ebp - 0x30]
push 0
push eax
call fcn.18076d30
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x180414c7
call fcn.1800d3ff
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1804145b
cmp dword [ebp - 0x2c], 1
je 0x18041526
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [ebp - 0x2c], 1
mov dword [ebp - 0x10], eax
je 0x18041526
call edi
sub eax, dword [ebp - 0x10]
cmp eax, 0x1f40
jae 0x1804150f
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1c
lea eax, [ebp - 0x30]
push 0
push eax
call fcn.18076d30
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push ebx
call esi
cmp dword [ebp - 0x2c], 1
jne 0x180414de
cmp dword [ebp - 0x2c], 1
je 0x18041526
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, 0x800705b4
jmp 0x1804145b
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
jmp 0x1804145b

Function at 0x1804157f
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 4], edi
cmp edi, ebx
jne 0x180415a0
xor al, al
jmp 0x180415bf
push esi
push 4
push str.Schedule
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
jne 0x180415c3
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
pop esi
pop edi
pop ebx
leave
ret
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x180415f1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 4]
call esi
mov al, bl
jmp 0x180415be
cmp dword [ebp - 0x1c], 4
je 0x180415fd
cmp dword [ebp - 0x1c], 2
jne 0x180415df
mov bl, 1
jmp 0x180415df
Function at 0x180418c5
Capabilities:
Check mutex on windows

Disassembly:
push edi
push dword [esi + 4]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov eax, dword [esi + 8]
cmp eax, edi
je 0x180418ea
test eax, eax
je 0x180418e7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], edi
cmp dword [esi + 8], 0
pop edi
jne 0x180418f4
xor al, al
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
ret
Function at 0x180430ed
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x10]
push ecx
push 1
mov edi, eax
xor eax, eax
push eax
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push str.cupdate
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x18043135
call fcn.1800d3ff
jmp 0x18043176
mov eax, edi
call fcn.180058aa
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [edi + 0xc]
mov dword [ebp + 8], eax
add eax, ecx
lea esi, [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.18017092
push dword [ebp + 8]
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov esi, edi
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.18043216
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1804317b
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x10]
push ecx
push 1
mov edi, eax
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x180431d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x180431c9
call fcn.1800d3ff
jmp 0x18043211
mov eax, 0x8007000d
jmp 0x18043211
mov eax, edi
call fcn.180058aa
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [edi + 0xc]
mov dword [ebp + 8], eax
add eax, ecx
lea esi, [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.18017092
push dword [ebp + 8]
mov eax, dword [ebp - 8]
push dword [ebp + 8]
mov esi, edi
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.18043216
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x180462bb
Capabilities:
Create pipe

Disassembly:
mov eax, dword [esi + 0x80]
test eax, eax
je 0x180462c8
xor al, al
ret
push edi
xor edi, edi
push edi
push 1
push edi
mov dword [esi + 0x80], 2
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x5c], eax
cmp eax, edi
je 0x18046342
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x98], eax
cmp eax, edi
je 0x18046342
push 4
push 0xffffffffffffffff
push esi
push 0x180469a7
push eax
lea eax, [esi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x18046342
cmp dword [esi + 0x4c], 8
jb 0x1804631f
mov eax, dword [esi + 0x38]
jmp 0x18046322
lea eax, [esi + 0x38]
push dword [esi + 0x50]
push edi
push 0x40
push 0x40
push 1
push 6
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x54], eax
cmp eax, 0xffffffff
jne 0x18046346
xor al, al
pop edi
ret
mov eax, esi
call fcn.180463a8
mov eax, dword [esi + 0x80]
xor ecx, ecx
cmp eax, 1
setne cl
mov al, cl
pop edi
ret

Function at 0x1804644f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push edi
push 0x2c
lea edi, [esi + 0x9c]
push 0
push edi
call fcn.18076d30
add esp, 0xc
lea eax, [esi + 0x88]
push eax
lea eax, [ebp - 4]
push eax
push 0x2c
push edi
push dword [esi + 0x54]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne bl
test bl, bl
je 0x18046490
xor eax, eax
jmp 0x18046496
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
test bl, bl
pop ebx
jne 0x180464af
cmp eax, 0x3e5
je 0x180464af
push 0xa
pop ecx
mov eax, esi
call fcn.18046717
leave
ret
mov dword [esi + 0x80], 5
leave
ret

Function at 0x180467b7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.18045f7f
mov dword [ebp - 0x30], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
push esi
lea eax, [ebp - 0x30]
call fcn.18046738
test al, al
jne 0x18046813
cmp dword [ebp - 0x10], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x180467f9
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0xc], 0
je 0x18046804
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 8], 0
je 0x1804680f
push dword [ebp - 8]
call esi
xor al, al
jmp 0x18046864
and dword [ebp - 4], 0
push ebx
lea eax, [esi + 0x88]
push eax
lea eax, [ebp - 4]
push eax
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
test bl, bl
je 0x1804683f
xor eax, eax
jmp 0x18046845
call dword [sym.imp.KERNEL32.dll_GetLastError]
test bl, bl
jne 0x18046854
cmp eax, 0x3e5
je 0x18046854
xor al, al
jmp 0x18046863
push dword [ebp + 8]
mov ebx, esi
call fcn.18046925
test al, al
setne al
pop ebx
pop esi
leave
ret 4
Function at 0x18046869
Capabilities:
Connect pipe

Disassembly:
push esi
mov esi, eax
mov al, byte [esi + 0x84]
test al, al
jne 0x180463a6
mov eax, dword [esi + 0x58]
test eax, eax
je 0x1804637e
push eax
call dword [sym.imp.KERNEL32.dll_UnregisterWait]
and dword [esi + 0x58], 0
mov eax, dword [esi + 0x54]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18046393
push eax
call edi
and dword [esi + 0x54], 0
add esi, 0x98
mov eax, dword [esi]
test eax, eax
je 0x180463a5
push eax
call edi
and dword [esi], 0
pop edi
pop esi
ret
push esi
mov esi, eax
push dword [esi + 0x98]
xor eax, eax
mov dword [esi + 0xc8], eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x90], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x180466de
call fcn.18046700
pop esi
ret
push dword [esi + 0x54]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x180466d7
mov al, byte [esi + 0x84]
test al, al
jne 0x180466dc
push 2
pop ecx
mov eax, esi
pop esi
jmp fcn.18046717
push esi
mov esi, eax
mov al, byte [esi + 0x84]
test al, al
je 0x1804688e
push dword [esi + 0x98]
mov dword [esi + 0x80], 1
call dword [sym.imp.KERNEL32.dll_ResetEvent]
pop esi
ret
mov eax, dword [esi + 0x80]
dec eax
cmp eax, 9
ja case.default.0x1804689a
jmp dword [eax*4 + 0x180468fd]
mov eax, esi
pop esi
jmp 0x1804635f
mov eax, esi
pop esi
jmp fcn.180463a8
call fcn.18046401
pop esi
ret
call fcn.1804644f
pop esi
ret
call fcn.180464bb
pop esi
ret
push edi
mov edi, esi
call fcn.18046504
pop edi
pop esi
ret
call fcn.180465ad
pop esi
ret
call fcn.180465f0
pop esi
ret
call fcn.18046651
pop esi
ret
mov eax, esi
pop esi
jmp 0x180466a4
mov dword [esi + 0x80], 1
pop esi
ret