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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x180fd00c]
xor eax, esp
mov dword [esp + 0x278], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x250
mov dword [esp + 0x18], eax
xor ebx, ebx
lea eax, [esp + 0x34]
mov dword [esp + 0x30], edx
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x1c], esi
call fcn.180a89f0
add esp, 0xc
lea ecx, [esp + 0x28]
mov edx, esi
push 0x180e467c
call fcn.18005b2d
pop ecx
lea ecx, [esp + 0x30]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [esp + 0x28]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18003140
cmp esi, 0xffffffff
jne 0x1803bf37
call fcn.18015f1f
mov edi, eax
mov ebx, edi
cmp esi, 0xffffffff
je 0x1803bf20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x284]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.180a61d8
mov esp, ebp
pop ebp
ret
mov edi, ebx
mov eax, dword [esp + 0x2c]
sub eax, ebx
je 0x1803bfe1
sub eax, 1
je 0x1803bf81
sub eax, 1
jne 0x1803c049
cmp dword [esp + 0x30], 0x80
je 0x1803bf68
test byte [esp + 0x30], 0x10
jne 0x1803c041
push dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x34]
call fcn.1803bdee
pop ecx
mov edi, eax
jmp 0x1803c041
test byte [esp + 0x30], 0x10
je 0x1803c041
lea ecx, [esp + 0x30]
call fcn.1803bdb1
test al, al
jne 0x1803c041
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x1c]
call fcn.18005bdc
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
call fcn.180114a5
pop ecx
mov ecx, dword [esp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.18003140
push dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 2
pop edx
call fcn.1803be97
pop ecx
mov ecx, dword [esp + 0x1c]
jmp 0x1803c037
test byte [esp + 0x30], 0x10
je 0x1803c041
lea ecx, [esp + 0x30]
call fcn.1803bdb1
test al, al
jne 0x1803c041
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x24]
call fcn.18005bdc
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
call fcn.180114a5
pop ecx
mov ecx, dword [esp + 0x20]
lea ecx, [ecx - 0x10]
call fcn.18003140
push dword [esp + 0x14]
xor edx, edx
lea ecx, [esp + 0x28]
inc edx
call fcn.1803be97
pop ecx
mov ecx, dword [esp + 0x24]
lea ecx, [ecx - 0x10]
mov edi, eax
call fcn.18003140
test edi, edi
js 0x1803bf12
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1803bf39
jmp 0x1803bf19
Function at 0x1803c1b4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ecx, 0x180fe508
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
call fcn.1801a740
lea eax, [esi + 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.18011b0a
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
sub ecx, 0x10
call fcn.180060dc
add eax, 0x10
xor ecx, ecx
inc ecx
mov dword [ebp - 0xc], eax
cmp dword [eax - 0xc], ebx
je 0x1803c22c
mov ecx, dword [edi + 4]
sub ecx, 0x10
call fcn.180060dc
push 3
pop ecx
lea esi, [eax + 0x10]
cmp dword [esi - 0xc], ebx
je 0x1803c22f
mov ecx, dword [edi + 8]
sub ecx, 0x10
call fcn.180060dc
add eax, 0x10
push 7
pop ecx
mov dword [ebp - 8], ecx
cmp dword [eax - 0xc], ebx
je 0x1803c232
mov byte [ebp + 0xb], bl
jmp 0x1803c23e
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov byte [ebp + 0xb], 1
test cl, 4
je 0x1803c249
lea ecx, [eax - 0x10]
call fcn.18003140
mov ecx, dword [ebp - 8]
test cl, 2
je 0x1803c256
lea ecx, [esi - 0x10]
call fcn.18003140
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff0
call fcn.18003140
cmp byte [ebp + 0xb], bl
je 0x1803c26d
mov ebx, 0x80070057
jmp 0x1803c2e8
lea ecx, [ebp + 8]
call fcn.18005c3b
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
push edi
call fcn.1803c7a3
mov esi, eax
test esi, esi
js 0x1803c2db
lea edx, [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.18011546
mov ecx, dword [eax]
call fcn.1800853f
mov ecx, dword [ebp - 0x10]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.18003140
test esi, esi
js 0x1803c2db
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 1
mov ecx, dword [eax]
call fcn.1800dac3
mov esi, eax
pop ecx
test esi, esi
js 0x1803c2db
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 8]
call fcn.1803c8d5
mov esi, eax
test esi, esi
jns 0x1803c2f9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.18003140
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
call dword [edx + 8]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
mov ecx, 0x180fe528
call fcn.1801a740
jmp 0x1803c2dd

Function at 0x1804151a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push 2
xor edi, edi
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x1804155d
push str.GOOGLEUPDATEAPPLICATIONCOMMANDS
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x1804155d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 4
jne 0x1804158b
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x18041574
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x18041590
movzx edi, di
or edi, 0x80070000
jmp 0x18041590
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x18041586
mov edi, 0x80070006
jmp 0x18041590
cmp dword [eax], 1
je 0x18041594
mov edi, 0x8000ffff
test esi, esi
je 0x1804159b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x18042012
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 8], ebx
call fcn.18005c3b
xor eax, eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.180060dc
xor ebx, ebx
inc ebx
lea esi, [eax + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp + 8], esi
cmp dword [esi - 4], ebx
jle 0x18042062
push dword [esi - 0xc]
lea ecx, [ebp + 8]
call fcn.18006235
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], esi
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x180420fe
cmp dword [ebp - 4], ebx
jl 0x180420f7
mov eax, dword [edi]
mov dword [ebp + 8], eax
test eax, eax
jne 0x18042089
xor ecx, ecx
jmp 0x18042095
push eax
call fcn.180ac191
pop ecx
mov ecx, eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
push eax
call fcn.18005f0f
cmp dword [ebp - 4], ebx
jle 0x180420f7
mov esi, dword [ebp - 8]
push dword [edi + ebx*4]
lea ecx, [ebp + 8]
call fcn.18005bdc
mov eax, dword [esi + 8]
mov dword [ebp - 0x10], eax
cmp eax, dword [esi + 0xc]
je 0x180420d6
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.180060dc
mov ecx, dword [ebp - 0x10]
add eax, 0x10
mov dword [ecx], eax
add dword [esi + 8], 4
jmp 0x180420e3
lea ecx, [ebp + 8]
push ecx
push eax
lea ecx, [esi + 4]
call fcn.1800a64b
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.18003140
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x180420a7
mov esi, dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esi - 0x10]
call fcn.18003140
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x18042254
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x18042273
test eax, eax
je 0x18042270
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], edi
mov eax, dword [esi + 0x28]
mov edi, dword [ebp + 0xc]
cmp eax, edi
je 0x1804228b
test eax, eax
je 0x18042288
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x28], edi
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 4]
test edx, edx
je 0x1804229c
lock inc dword [edx + 4]
mov edx, dword [eax + 4]
mov ecx, dword [esi + 0x30]
mov eax, dword [eax]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edx
test ecx, ecx
je 0x180422b0
call fcn.1801ed58
test esi, esi
je 0x180422ba
mov eax, dword [esi]
push esi
call dword [eax + 4]
push ebx
xor edi, edi
push edi
push edi
push esi
push 0x180425b0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x34]
mov ebx, eax
cmp ecx, ebx
je 0x180422e6
test ecx, ecx
je 0x180422e1
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x34], ebx
mov ecx, ebx
pop ebx
test ecx, ecx
jne 0x180422fc
call fcn.18015f1f
mov edi, eax
test esi, esi
je 0x180422fc
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x180423e5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10018
call fcn.180cb510
mov eax, dword [0x180fd00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push esi
mov dword [ebp - 0x10014], eax
mov esi, dword [eax + 0x28]
test esi, esi
je 0x1804251e
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ecx, ecx
push ecx
mov dword [eax + 0x28], ecx
lea eax, [ebp - 0x1000c]
push eax
push 0x10000
lea eax, [ebp - 0x10008]
mov dword [ebp - 0x1000c], ecx
push eax
push esi
call edi
mov ecx, dword [ebp - 0x1000c]
mov ebx, ecx
jmp 0x18042478
test ecx, ecx
je 0x1804247c
mov ecx, 0x10000
cmp ebx, ecx
je 0x1804247c
and dword [ebp - 0x1000c], 0
lea eax, [ebp - 0x1000c]
push 0
push eax
sub ecx, ebx
lea eax, [ebp - 0x10008]
push ecx
add eax, ebx
push eax
push esi
call edi
mov ecx, dword [ebp - 0x1000c]
add ebx, ecx
test eax, eax
jne 0x18042444
lea eax, [ebp - 0x10018]
mov dword [ebp - 0x10018], 0xf
push eax
push ebx
lea eax, [ebp - 0x10008]
push eax
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
mov ecx, dword [ebp - 0x10014]
mov edi, eax
add ecx, 0x38
push ecx
lea ecx, [ebp - 0x10010]
call fcn.18011b0a
test edi, edi
je 0x180424e5
mov edi, dword [ebp - 0x10014]
xor eax, eax
mov word [ebp + ebx - 0x10008], ax
lea eax, [ebp - 0x10008]
push eax
call fcn.180ac191
pop ecx
push eax
lea eax, [ebp - 0x10008]
push eax
lea ecx, [edi + 0x54]
call fcn.18005f0f
jmp 0x1804250a
cmp ebx, 0x10002
jae 0x1804252b
mov ecx, dword [ebp - 0x10014]
lea eax, [ebp - 0x10008]
push eax
mov byte [ebp + ebx - 0x10008], 0
lea ecx, [ecx + 0x54]
call fcn.1800ef8e
mov ecx, dword [ebp - 0x10010]
mov eax, dword [ecx]
call dword [eax + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.180a61d8
leave
ret
call fcn.180a6c19
int3
Function at 0x180426bb
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
lea ecx, [ebp - 4]
push edi
mov dword [ebp - 4], ebx
call fcn.18015ef2
test eax, eax
js 0x180427e8
cmp dword [ebp - 4], ebx
jne 0x180427fe
xor esi, esi
inc esi
movzx eax, si
or eax, 0x80070000
test eax, eax
js 0x180427d9
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
mov al, byte [0x18101323]
movzx ecx, al
neg ecx
mov dword [ebp - 8], 6
push 7
sbb ecx, ecx
pop edx
and ecx, 0x18101240
je 0x1804277d
mov eax, dword [ebp - 8]
push eax
push edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
call fcn.1800457f
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
movzx eax, ax
push eax
mov eax, dword [ebp - 0xc]
movzx eax, ax
push eax
lea eax, [ebp - 0x24]
push str._Turkey__system_default_lang_d__user_default_lang_d_
push eax
call fcn.18002ca6
mov al, byte [0x18101323]
add esp, 0x10
push 7
pop edx
movzx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x18101240
je 0x180427bb
mov eax, dword [ebp - 8]
push eax
push edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
call fcn.1800457f
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push edi
movzx eax, ax
push eax
lea eax, [ebp - 0x24]
push str._Turkey__system_ui_lang_d__user_ui_lang_d_
push eax
call fcn.18002ca6
add esp, 0x10
mov eax, 0x41f
cmp word [ebp - 0xc], ax
je 0x180427d7
cmp word [ebp - 0x10], ax
je 0x180427d7
cmp word [ebp - 0x14], ax
je 0x180427d7
cmp di, ax
jne 0x180427d9
mov bl, 1
cmp esi, 0x80004005
je 0x180427e8
push esi
call fcn.1801eeef
pop ecx
cmp dword [ebp - 4], 0
je 0x180427f7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x1804280f
mov esi, ebx
jmp 0x1804281e
call fcn.18015f1f
mov esi, eax
test esi, esi
jg 0x180426e5
mov eax, esi
jmp 0x180426ed
Function at 0x18044bae
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x180fd00c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
mov ebx, ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x40]
push esi
push edi
div dword [ebx + 0x10]
mov dword [ebp - 0x3c], ebx
lea edi, [eax + 1]
imul edi, dword [ebx + 0x10]
mov edx, edi
mov dword [ebp - 0x48], edi
call fcn.18048b0e
mov esi, dword [ebp - 0x40]
push edi
push 0
push esi
call fcn.180a89f0
add esp, 0xc
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 0x10
jb 0x18044c03
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x1c]
push eax
push esi
call fcn.180a8cf0
mov eax, dword [ebp - 0x3c]
add esp, 0xc
add ebx, 4
push 0
push 8
push str.ap29_re_d
push dword [eax + 0xc]
push dword [eax + 8]
push ebx
push dword [eax]
call dword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
xor ecx, ecx
lea eax, [ebp - 0x44]
push ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push edi
push esi
push dword [ebx]
mov ebx, dword [sym.imp.bcrypt.dll_BCryptEncrypt]
mov dword [ebp - 0x44], ecx
call ebx
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.18048b0e
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x44]
xor ecx, ecx
push ecx
push eax
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
push edi
push ecx
push ecx
push ecx
push dword [ebp - 0x48]
push esi
push dword [eax + 4]
call ebx
test eax, eax
jne 0x18044c90
push dword [ebp - 0x44]
lea eax, [ebp - 0x38]
push edi
push eax
call fcn.18044d4a
xor ecx, ecx
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], ecx
jmp 0x18044cac
xor ecx, ecx
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x20], ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], 2
mov ebx, dword [ebp - 0x4c]
push eax
mov dword [ebx], ecx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], ecx
mov ecx, ebx
call fcn.18010e7c
cmp dword [ebp - 0x3c], 0
je 0x18044d0b
mov eax, dword [ebp - 0xc]
cmp eax, 0x10
jb 0x18044cfc
mov ecx, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x48], ecx
cmp eax, 0x1000
jb 0x18044cf3
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.18003b3c
mov eax, dword [ebp - 0x3c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x48]
push eax
push ecx
call fcn.180a66f3
pop ecx
pop ecx
and dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0xf
mov byte [ebp - 0x20], 0
cmp dword [ebp - 0x40], 0
je 0x18044d19
lea ecx, [ebp - 0x38]
call fcn.18010dfb
test edi, edi
je 0x18044d24
push edi
call fcn.180a6a64
pop ecx
test esi, esi
je 0x18044d2f
push esi
call fcn.180a6a64
pop ecx
lea ecx, [ebp + 0xc]
call fcn.18010dfb
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180a61d8
leave
ret 0x1c
Function at 0x1804f696
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
xor edx, edx
push edi
xor edi, edi
push edi
mov eax, dword [ebx + 0x88]
push 0x80
cmp dword [eax + 0x30], edi
setne dl
lea edx, [edx*2 + 2]
push edx
push edi
push edi
push 0x40000000
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1804f752
mov eax, dword [ebx + 0x88]
cmp dword [eax + 0x30], edi
je 0x1804f76e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x1804f75b
cmp eax, 0x7fffffff
ja 0x1804f75b
mov edx, dword [ebx + 0x88]
push edi
cmp eax, dword [edx + 0x30]
mov ecx, dword [edx + 0x34]
mov dword [ebp - 4], ecx
setg cl
cmp eax, dword [edx + 0x34]
setne al
or cl, al
je 0x1804f742
push 0x80
push 2
push edi
push edi
push 0x40000000
mov dword [edx + 0x34], edi
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp esi, ebx
je 0x1804f771
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
cmp esi, 0xffffffff
jmp 0x1804f750
push edi
push edi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1804f771
call fcn.18015f1f
mov edi, eax
jmp 0x1804f760
mov edi, 0x80004005
cmp esi, 0xffffffff
je 0x1804f776
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1804f776
mov dword [eax + 0x34], edi
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x18050a7b
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
mov ebx, ecx
mov edx, dword [eax]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov eax, dword [edx - 0xc]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], edx
lea eax, [eax*2 + 2]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push 1
push esi
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], esi
push eax
push str.gupdate
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x18050adf
call fcn.18015f1f
test eax, eax
js 0x18050bc2
jmp 0x18050b01
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, ecx
push eax
push ecx
push esi
lea ecx, [ebp - 0x24]
call fcn.18059c50
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x24]
push edi
push ebx
lea ecx, [ebp - 0x18]
call fcn.18011b0a
push dword [ebp + 8]
lea ecx, [ebx + 0x1c]
call fcn.18051079
mov edi, eax
mov dword [ebp + 0x10], edi
cmp edi, 0xffffffff
jne 0x18050b5a
push dword [ebp + 8]
lea ecx, [ebx + 0x1c]
call fcn.180510ab
push dword [ebp + 0xc]
lea ecx, [ebx + 0x28]
call fcn.180510ab
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebx + 0x34]
call fcn.18050ff7
lea eax, [ebp + 8]
mov dword [ebp + 8], 0xffff
push eax
lea ecx, [ebx + 0x40]
call fcn.18050f50
mov esi, dword [ebp - 0x24]
jmp 0x18050bb9
push dword [ebp + 0xc]
lea ecx, [ebx + 0x28]
push edi
call fcn.18050f2b
mov ecx, eax
call fcn.18005b84
push edi
lea ecx, [ebx + 0x34]
call fcn.18050fd2
mov edi, eax
lea eax, [ebp - 0x24]
cmp edi, eax
je 0x18050ba8
mov ecx, dword [ebp - 0x20]
mov eax, dword [edi + 8]
sub ecx, esi
mov edx, dword [edi]
sub eax, edx
cmp ecx, eax
jbe 0x18050b99
push ecx
mov ecx, edi
call fcn.18051138
mov edx, dword [edi]
push edx
mov edx, dword [ebp - 0x20]
mov ecx, esi
call fcn.1800a9fd
pop ecx
mov dword [edi + 4], eax
push dword [ebp + 0x10]
lea ecx, [ebx + 0x40]
call fcn.18050f2b
mov dword [eax], 0xffff
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 8]
pop edi
test esi, esi
je 0x18050bf6
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], eax
cmp eax, 0x1000
jb 0x18050bed
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.18003b3c
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
push eax
push esi
call fcn.180a66f3
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0xc
Function at 0x180562da
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x180fd00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
mov esi, ecx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x18056311
call fcn.18015f1f
mov ebx, eax
jmp 0x180563eb
push 0x24
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x180563d0
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x18056370
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x180563db
cmp eax, 3
je 0x18056373
push 0x1c
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.180a89f0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x180563d0
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x180563db
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [ebp - 0x1c], 1
mov dword [ebp - 0x24], eax
je 0x180563db
call edi
sub eax, dword [ebp - 0x24]
cmp eax, 0x1f40
jae 0x180563c1
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1c
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.180a89f0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 0x1c]
cmp eax, 1
jne 0x18056389
jmp 0x180563c4
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x180563db
mov ebx, 0x800705b4
jmp 0x180563db
call fcn.18015f1f
mov ebx, eax
test esi, esi
je 0x180563e2
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.180a61d8
leave
ret

Function at 0x18056435
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x180fd00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x180564ae
push esi
push 4
push str.Schedule
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x180564a4
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
pop edi
test eax, eax
je 0x18056499
cmp dword [ebp - 0x1c], 4
je 0x18056495
cmp dword [ebp - 0x1c], 2
jne 0x1805649d
mov bl, 1
jmp 0x1805649d
test esi, esi
je 0x180564a4
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.180a61d8
leave
ret