joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180215a2
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
and dword [eax], 0
push ebx
push esi
push edi
push 1
call fcn.18050cf1
mov esi, eax
neg eax
sbb eax, eax
and eax, dword [fcn.1800a31f]
pop ecx
mov dword [ebp - 4], esi
jne 0x180215df
test esi, esi
je 0x180215d5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80004005
jmp 0x180216fd
mov eax, dword [0x180b4188]
mov ecx, 0x180b4188
call dword [eax + 0xc]
mov edi, eax
push esi
add edi, 0x10
lea esi, [ebp - 0xc]
mov dword [ebp - 8], edi
call fcn.18018870
mov ebx, dword [ebp - 0xc]
mov esi, ebx
test ebx, ebx
jle 0x18021612
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x18021643
cmp ebx, 0x80004005
je 0x18021625
push ebx
call fcn.18018852
pop ecx
lea eax, [edi - 0x10]
call fcn.18003e0a
cmp dword [ebp - 4], 0
je 0x1802163c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x180216fd
lea eax, [ebp - 8]
push eax
call fcn.180214c1
mov esi, eax
pop ecx
test esi, esi
jge 0x1802166a
cmp ebx, 0x80004005
je 0x18021662
push ebx
call fcn.18018852
pop ecx
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
jmp 0x18021628
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
jne 0x18021685
mov edi, 0x80004005
cmp ebx, edi
je 0x180216e4
push ebx
call fcn.18018852
pop ecx
jmp 0x180216e4
mov edi, dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.18021387
mov edi, eax
pop ecx
pop ecx
test edi, edi
jge 0x180216a8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp ebx, 0x80004005
jmp 0x1802167a
cmp ebx, 0x80004005
je 0x180216b7
push ebx
call fcn.18018852
pop ecx
push 0xb
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x180216dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x180216db
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esi - 0x10]
call fcn.18003e0a
cmp dword [ebp - 4], 0
je 0x180216fb
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x18030004
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x180af1d0]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push 0x24c
lea eax, [esp + 0x30]
push ebx
push eax
mov dword [esp + 0x34], ebx
call fcn.180769e0
add esp, 0xc
push 0x1809c3b8
mov eax, esi
lea ecx, [esp + 0x28]
call fcn.18002a0a
mov eax, dword [eax]
pop ecx
lea ecx, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.18003e0a
cmp dword [esp + 0x10], 0xffffffff
jne 0x18030090
call fcn.1800d4b3
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.18075e75
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x18030129
dec eax
je 0x180300cf
dec eax
jne 0x18030184
cmp dword [esp + 0x28], 0x80
je 0x180300bb
test byte [esp + 0x28], 0x10
jne 0x18030184
push edi
push esi
lea eax, [esp + 0x30]
call fcn.1802ff06
pop ecx
pop ecx
mov ebx, eax
jmp 0x18030184
test byte [esp + 0x28], 0x10
je 0x18030184
lea eax, [esp + 0x28]
call fcn.1802fec6
test al, al
jne 0x18030184
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x24]
call fcn.18003b7f
lea eax, [esp + 0x20]
push eax
mov eax, esi
lea ebx, [esp + 0x20]
call fcn.1800a585
mov eax, dword [esp + 0x24]
pop ecx
add eax, 0xfffffff0
call fcn.18003e0a
push edi
mov eax, ebx
push 2
push eax
call fcn.18030004
mov ebx, eax
mov eax, dword [esp + 0x28]
jmp 0x18030179
test byte [esp + 0x28], 0x10
je 0x18030184
lea eax, [esp + 0x28]
call fcn.1802fec6
test al, al
jne 0x18030184
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x18]
call fcn.18003b7f
lea eax, [esp + 0x14]
push eax
mov eax, esi
lea ebx, [esp + 0x1c]
call fcn.1800a585
mov eax, dword [esp + 0x18]
pop ecx
add eax, 0xfffffff0
call fcn.18003e0a
push edi
mov eax, ebx
push 1
push eax
call fcn.18030004
mov ebx, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
add eax, 0xfffffff0
call fcn.18003e0a
test ebx, ebx
jl 0x180301a3
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18030090
xor esi, esi
jmp 0x180301a5
mov esi, ebx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x1803007b
Function at 0x180303c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov esi, 0x180b10d0
mov edi, eax
call fcn.18040963
mov ecx, dword [ebp + 8]
add ecx, 0x14
mov eax, dword [ecx]
mov dword [ebp - 0xc], ecx
call dword [eax + 4]
mov eax, dword [edi]
sub eax, 0x10
mov dword [ebp - 8], 1
call fcn.1800392c
mov esi, eax
add esi, 0x10
cmp dword [esi - 0xc], 0
je 0x18030441
mov eax, dword [edi + 4]
sub eax, 0x10
mov dword [ebp - 8], 3
call fcn.1800392c
mov ebx, eax
add ebx, 0x10
cmp dword [ebx - 0xc], 0
je 0x18030444
mov eax, dword [edi + 8]
sub eax, 0x10
mov dword [ebp - 8], 7
call fcn.1800392c
add eax, 0x10
cmp dword [eax - 0xc], 0
je 0x18030447
mov byte [ebp - 1], 0
jmp 0x1803044b
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov byte [ebp - 1], 1
test byte [ebp - 8], 4
je 0x1803045d
and dword [ebp - 8], 0xfffffffb
add eax, 0xfffffff0
call fcn.18003e0a
test byte [ebp - 8], 2
je 0x1803046f
and dword [ebp - 8], 0xfffffffd
lea eax, [ebx - 0x10]
call fcn.18003e0a
test byte [ebp - 8], 1
je 0x1803047d
lea eax, [esi - 0x10]
call fcn.18003e0a
cmp byte [ebp - 1], 0
je 0x18030499
mov esi, 0x80070057
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [0x180b4188]
mov ecx, 0x180b4188
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov eax, edi
call fcn.18030a9c
mov esi, eax
test esi, esi
jge 0x180304cd
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18003e0a
jmp 0x18030488
lea eax, [ebp - 8]
lea edi, [ebp + 8]
call fcn.1800a616
push dword [eax]
call fcn.1800454c
mov esi, eax
mov eax, dword [ebp + 8]
pop ecx
add eax, 0xfffffff0
call fcn.18003e0a
test esi, esi
jl 0x180304c0
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 8]
mov eax, dword [eax]
push 1
push edi
push eax
call fcn.1800b2cf
mov esi, eax
add esp, 0xc
test esi, esi
jge 0x18030510
lea eax, [edi - 0x10]
jmp 0x180304c6
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
call fcn.18030bce
mov esi, eax
pop ecx
pop ecx
test esi, esi
jge 0x1803052d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1803050b
mov esi, 0x180b10f0
call fcn.18040963
lea eax, [edi - 0x10]
call fcn.18003e0a
xor esi, esi
jmp 0x18030488
Function at 0x180306b8
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.18003f6f
mov dword [esp + 0x24], eax
or eax, edx
pop ecx
mov dword [esp + 0x24], edx
jne 0x18030726
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.18075e75
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x180b4188]
mov esi, 0x180b4188
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [0x180b4188]
mov ecx, esi
call dword [eax + 0xc]
mov ebx, eax
mov eax, dword [0x180b4188]
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.18030b1a
mov edi, eax
lea eax, [esi - 0x10]
call fcn.18003e0a
lea eax, [ebx - 0x10]
call fcn.18003e0a
test edi, edi
jge 0x180307a1
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.18003e0a
jmp 0x18030704
and dword [esp + 0x30], 0
push 0x24c
lea eax, [esp + 0x38]
push 0
push eax
call fcn.180769e0
add esp, 0xc
push 0x1809c3b8
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
call fcn.18002a0a
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.18003e0a
cmp edi, 0xffffffff
jne 0x180307f7
call fcn.1800d4b3
mov edi, eax
jmp 0x18030790
lea eax, [esp + 0x30]
call fcn.1802fec6
test al, al
jne 0x18030883
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x1c]
call fcn.18003b7f
lea eax, [esp + 0x18]
push eax
call fcn.18003f6f
mov ebx, eax
mov eax, dword [esp + 0x1c]
pop ecx
add eax, 0xfffffff0
mov esi, edx
call fcn.18003e0a
mov eax, ebx
or eax, esi
je 0x18030883
cmp esi, dword [esp + 0x24]
ja 0x18030883
jb 0x18030841
cmp ebx, dword [esp + 0x20]
jae 0x18030883
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x18]
call fcn.18003b7f
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
lea ebx, [esp + 0x14]
call fcn.1800a585
mov eax, dword [esp + 0x18]
pop ecx
add eax, 0xfffffff0
call fcn.18003e0a
mov esi, dword [esp + 0x10]
call fcn.18004a3d
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.18003e0a
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180307f7
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.18003e0a
xor edi, edi
jmp 0x18030704
Function at 0x18032596
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.180324e5
add esp, 0x14
test eax, eax
jge 0x180325cf
mov eax, dword [ebp - 4]
cmp eax, esi
je 0x18032619
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x18032619
mov edi, dword [ebp - 4]
push esi
push esi
push edi
push 0x1803269d
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
neg eax
sbb eax, eax
and eax, dword [fcn.1800a31f]
cmp eax, esi
je 0x180325f6
xor edi, edi
jmp 0x18032604
call fcn.1800d4b3
push eax
push esi
mov eax, edi
call fcn.1803261e
cmp ebx, esi
je 0x1803260f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
je 0x18032619
mov eax, dword [edi]
push edi
call dword [eax + 8]
pop edi
pop esi
pop ebx
leave
ret

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.1800cd0b
test al, al
jne 0x180394ac
xor esi, esi
push esi
push str._DealPlyLive.exe__NetDiags__only_runs_on_Windows_XP_or_later.
push str.DealPlyLive.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 0x180394d9
push str.AttachConsole
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x180394d3
push 0xffffffffffffffff
call eax
jmp 0x180394d5
xor eax, eax
cmp eax, esi
jne 0x180394e1
push esi
push str.Please_run__DealPlyLive.exe__NetDiags__from_a_cmd.exe_window.
jmp 0x18039498
push 0x1809c7f0
call fcn.18039421
pop ecx
push 2
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, esi
jge 0x18039508
push eax
push str.Failed_to_::CoInitialize____0x_x__n
call fcn.18039421
pop ecx
pop ecx
jmp 0x180394a4
lea eax, [ebp - 4]
push eax
push ecx
mov dword [ebp - 4], esi
call fcn.180367ab
pop ecx
mov ebx, eax
call fcn.180368fb
cmp eax, esi
jge 0x18039529
push eax
push str.Failed_to_GetUserNetworkConfig____0x_x__n
jmp 0x180394ff
mov edi, dword [ebp - 4]
mov ebx, edi
call fcn.18035747
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.1801148a
cmp dword [ebp - 4], 3
jne 0x1803956d
push str.Default_browser_is_Firefox_n
call fcn.18039421
pop ecx
push 0x20
call fcn.18076ac4
pop ecx
cmp eax, esi
je 0x18039564
mov ebx, eax
call fcn.1803c807
jmp 0x18039566
xor eax, eax
push eax
push edi
call fcn.180356c0
push 4
call fcn.18076ac4
pop ecx
cmp eax, esi
je 0x18039581
mov dword [eax], 0x180a2fa8
jmp 0x18039583
xor eax, eax
push eax
push edi
call fcn.180356c0
lea eax, [ebp - 0x1c]
push eax
mov ebx, edi
call fcn.18035adb
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x10]
push 0x18
cdq
pop ecx
idiv ecx
test eax, eax
jne 0x180395b2
push str.No_Network_Configurations_to_display_n
call fcn.18039421
pop ecx
jmp 0x180395d8
lea eax, [ebp - 4]
push eax
lea ebx, [ebp - 0x1c]
call fcn.18035c5b
pop ecx
push dword [eax]
push str._Detected_Network_Configurations___n_s__n
call fcn.18039421
mov eax, dword [ebp - 4]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.18003e0a
lea esi, [ebp - 0x1c]
call fcn.18037947
push dword [ebp - 0x1c]
call fcn.18075e6a
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1803974f
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.18039421
and dword [ebp - 8], 0
pop ecx
pop ecx
call fcn.180367ab
lea ecx, [ebp - 8]
push ecx
mov ebx, eax
call fcn.180368fb
test eax, eax
jge 0x18039793
push eax
push str.Failed_to_GetUserNetworkConfig____0x_x__n
call fcn.18039421
pop ecx
pop ecx
jmp 0x180398b3
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.18039930
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.18007597
mov eax, dword [0x180b4188]
mov ecx, 0x180b4188
call dword [eax + 0xc]
add eax, 0x10
push 0x104
lea esi, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.18003ce3
push eax
push 0
push 0x180a3414
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.18003baa
test bl, bl
je 0x1803981e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.::GetTempFileName_Failed___d__n
call fcn.18039421
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
jmp 0x18039899
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 4]
call fcn.180399e0
mov edi, dword [edi + 0x5c]
push edi
test eax, eax
jge 0x1803984b
push eax
push str.Download_failed._HRESULT_0x_x___HTTP_Status__d__n
call fcn.18039421
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, 0xfffffff0
jmp 0x1803989b
push str.HTTP_Status__d__n
call fcn.18039421
mov esi, dword [ebp + 8]
push esi
push str.Downloaded_File__s__n
call fcn.18039421
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1803988b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.::DeleteFile_Failed___s___d__n
call fcn.18039421
add esp, 0xc
lea eax, [esi - 0x10]
jmp 0x1803989b
push esi
push str.Deleted_file___s__n
call fcn.18039421
lea eax, [esi - 0x10]
pop ecx
pop ecx
call fcn.18003e0a
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.18003e0a
lea eax, [ebp - 4]
call fcn.18039971
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1803a471
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 0x1803a4b5
call fcn.1800d4b3
jmp 0x1803a55c
mov eax, dword [esi + 0x88]
cmp dword [eax + 0x3c], edi
je 0x1803a551
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x1803a541
cmp eax, 0x7fffffff
ja 0x1803a541
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 0x1803a528
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 0x1803a521
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, esi
cmp ebx, 0xffffffff
jne 0x1803a554
jmp 0x1803a4ab
push edi
xor eax, eax
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1803a554
call fcn.1800d4b3
mov esi, eax
jmp 0x1803a546
mov esi, 0x80004005
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x1803a55c
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 0x1803e984
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.1803eb26
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.18003e0a
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.18009858
pop ecx
test al, al
je 0x1803ea3d
mov eax, 0x80040810
jmp 0x1803eb20
mov ecx, dword [ebx + 0x6c]
test ecx, ecx
je 0x1803ea49
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 0x1803ea64
mov eax, ecx
jmp 0x1803eb20
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.180038eb
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.18003e0a
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.18037373
lea esi, [ebp - 0x24]
call fcn.1800bac7
push dword [ebp - 0x24]
call fcn.18075e6a
cmp dword [ebx + 0x78], 0
pop ecx
jge 0x1803eae0
call fcn.1803f9a8
test al, al
je 0x1803ead6
mov eax, dword [ebx + 0x78]
jmp 0x1803eadb
mov eax, 0x80040801
mov dword [ebx + 0x78], eax
jmp 0x1803eb20
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, eax
sub ecx, 0xc8
je 0x1803eb19
sub ecx, 4
je 0x1803eb19
dec ecx
dec ecx
je 0x1803eb19
sub ecx, 0x62
je 0x1803eb19
lea ecx, [eax - 0x64]
cmp ecx, 0x195
ja 0x1803eb0f
add eax, 0x80042000
jmp 0x1803eb14
mov eax, 0x800423ff
mov dword [ebx + 0x78], eax
jmp 0x1803eb1d
and dword [ebx + 0x78], 0
mov eax, dword [ebx + 0x78]
pop edi
pop esi
leave
ret 0xc
Function at 0x18040d6f
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 0x18040d98
call fcn.1800d4b3
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 0x18040dc3
call fcn.1800d4b3
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x18040d93
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 0x18040e22
cmp dword [ebp - 0x2c], 1
je 0x18040e81
cmp dword [ebp - 0x2c], 3
je 0x18040e22
push 0x1c
lea eax, [ebp - 0x30]
push 0
push eax
call fcn.180769e0
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x18040e22
call fcn.1800d4b3
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x18040db6
cmp dword [ebp - 0x2c], 1
je 0x18040e81
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [ebp - 0x2c], 1
mov dword [ebp - 0x10], eax
je 0x18040e81
call edi
sub eax, dword [ebp - 0x10]
cmp eax, 0x1f40
jae 0x18040e6a
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1c
lea eax, [ebp - 0x30]
push 0
push eax
call fcn.180769e0
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push ebx
call esi
cmp dword [ebp - 0x2c], 1
jne 0x18040e39
cmp dword [ebp - 0x2c], 1
je 0x18040e81
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, 0x800705b4
jmp 0x18040db6
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
jmp 0x18040db6

Function at 0x18040eda
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 0x18040efb
xor al, al
jmp 0x18040f1a
push esi
push 4
push str.Schedule
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
jne 0x18040f1e
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 0x18040f4c
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 4]
call esi
mov al, bl
jmp 0x18040f19
cmp dword [ebp - 0x1c], 4
je 0x18040f58
cmp dword [ebp - 0x1c], 2
jne 0x18040f3a
mov bl, 1
jmp 0x18040f3a
Function at 0x1804126e
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 0x18041293
test eax, eax
je 0x18041290
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], edi
cmp dword [esi + 8], 0
pop edi
jne 0x1804129d
xor al, al
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
ret