joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18054231
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.18009d8f
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.18009f92
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 0x18054281
push dword [esi - 0xc]
lea ecx, [ebp + 8]
call fcn.18007171
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 0x1805431d
cmp dword [ebp - 4], ebx
jl 0x18054316
mov eax, dword [edi]
mov dword [ebp + 8], eax
test eax, eax
jne 0x180542a8
xor ecx, ecx
jmp 0x180542b4
push eax
call fcn.18179019
pop ecx
mov ecx, eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
push eax
call fcn.18006f63
cmp dword [ebp - 4], ebx
jle 0x18054316
mov esi, dword [ebp - 8]
push dword [edi + ebx*4]
lea ecx, [ebp + 8]
call fcn.18006e68
mov eax, dword [esi + 8]
mov dword [ebp - 0x10], eax
cmp eax, dword [esi + 0xc]
je 0x180542f5
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.18009f92
mov ecx, dword [ebp - 0x10]
add eax, 0x10
mov dword [ecx], eax
add dword [esi + 8], 4
jmp 0x18054302
lea ecx, [ebp + 8]
push ecx
push eax
lea ecx, [esi + 4]
call fcn.1800a060
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.1800694d
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x180542c6
mov esi, dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esi - 0x10]
call fcn.1800694d
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x18054473
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 0x18054492
test eax, eax
je 0x1805448f
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 0x180544aa
test eax, eax
je 0x180544a7
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 0x180544bb
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 0x180544cf
call fcn.1801b35e
test esi, esi
je 0x180544d9
mov eax, dword [esi]
push esi
call dword [eax + 4]
push ebx
xor edi, edi
push edi
push edi
push esi
push 0x180547cf
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x34]
mov ebx, eax
cmp ecx, ebx
je 0x18054505
test ecx, ecx
je 0x18054500
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x34], ebx
mov ecx, ebx
pop ebx
test ecx, ecx
jne 0x1805451b
call fcn.18018dce
mov edi, eax
test esi, esi
je 0x1805451b
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x18054604
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10018
call fcn.18199bf0
mov eax, dword [0x1822b00c]
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 0x1805473d
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 0x18054697
test ecx, ecx
je 0x1805469b
mov ecx, 0x10000
cmp ebx, ecx
je 0x1805469b
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 0x18054663
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.1801396e
test edi, edi
je 0x18054704
mov edi, dword [ebp - 0x10014]
xor eax, eax
mov word [ebp + ebx - 0x10008], ax
lea eax, [ebp - 0x10008]
push eax
call fcn.18179019
pop ecx
push eax
lea eax, [ebp - 0x10008]
push eax
lea ecx, [edi + 0x54]
call fcn.18006f63
jmp 0x18054729
cmp ebx, 0x10002
jae 0x1805474a
mov ecx, dword [ebp - 0x10014]
lea eax, [ebp - 0x10008]
push eax
mov byte [ebp + ebx - 0x10008], 0
lea ecx, [ecx + 0x54]
call fcn.1800fc90
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.181605f4
leave
ret
call fcn.18161034
int3
Function at 0x1805d777
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 0x1805d833
mov eax, dword [ebx + 0x88]
cmp dword [eax + 0x30], edi
je 0x1805d84f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x1805d83c
cmp eax, 0x7fffffff
ja 0x1805d83c
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 0x1805d823
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 0x1805d852
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
cmp esi, 0xffffffff
jmp 0x1805d831
push edi
push edi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1805d852
call fcn.18018dce
mov edi, eax
jmp 0x1805d841
mov edi, 0x80004005
cmp esi, 0xffffffff
je 0x1805d857
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1805d857
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 0x1806101a
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, edx
lea eax, [ebp - 4]
xor edx, edx
push edx
push eax
push edx
push edx
push esi
push ecx
mov dword [ebp - 4], edx
call dword [sym.imp.DNSAPI.dll_DnsQuery_W]
test eax, eax
jne 0x18061103
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + 8]
cmp eax, 5
jne 0x1806107d
mov eax, dword [ebp + 8]
test eax, eax
je 0x18061068
push dword [ebp + 0xc]
mov ecx, dword [ecx + 0x18]
dec eax
push eax
mov edx, esi
call fcn.1806101a
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov esi, eax
jmp 0x1806106d
mov esi, 0x251d
push 1
push ecx
call dword [sym.imp.DNSAPI.dll_DnsFree]
mov eax, esi
jmp 0x18061103
xor esi, esi
inc esi
cmp eax, 0x1c
jne 0x180610bf
movzx eax, word [ecx + 0x26]
push eax
movzx eax, word [ecx + 0x24]
push eax
movzx eax, word [ecx + 0x22]
push eax
movzx eax, word [ecx + 0x20]
push eax
movzx eax, word [ecx + 0x1e]
push eax
movzx eax, word [ecx + 0x1c]
push eax
movzx eax, word [ecx + 0x1a]
push eax
movzx eax, word [ecx + 0x18]
push eax
push str._x:_x:_x:_x:_x:_x:_x:_x
push dword [ebp + 0xc]
call fcn.1805ee2c
add esp, 0x28
jmp 0x180610e8
cmp ax, si
jne 0x180610f6
movzx eax, byte [ecx + 0x1b]
push eax
movzx eax, byte [ecx + 0x1a]
push eax
movzx eax, byte [ecx + 0x19]
push eax
movzx eax, byte [ecx + 0x18]
push eax
push 0x181f4484
push dword [ebp + 0xc]
call fcn.1805ee2c
add esp, 0x18
push esi
push dword [ebp - 4]
call dword [sym.imp.DNSAPI.dll_DnsFree]
xor eax, eax
jmp 0x18061103
push esi
push ecx
call dword [sym.imp.DNSAPI.dll_DnsFree]
mov eax, 0x251d
pop esi
leave
ret
Function at 0x18061920
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edx, dword [eax]
xor esi, esi
mov edi, esi
mov dword [ebp - 0x24], esi
mov ebx, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
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 0x182058b0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
jne 0x18061987
call fcn.18018dce
test eax, eax
js 0x18061a3c
jmp 0x180619a6
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.1805e61a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
lea ecx, [ebp - 0x18]
call fcn.1801396e
push dword [ebp + 8]
lea ecx, [ebx + 0x1c]
call fcn.18061f2c
mov esi, eax
cmp esi, 0xffffffff
jne 0x180619f8
push dword [ebp + 8]
lea ecx, [ebx + 0x1c]
call fcn.18061f5e
push dword [ebp + 0xc]
lea ecx, [ebx + 0x28]
call fcn.18061f5e
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebx + 0x34]
call fcn.18061eaa
lea eax, [ebp + 8]
mov dword [ebp + 8], 0xffff
push eax
lea ecx, [ebx + 0x40]
call fcn.18061e03
jmp 0x18061a2e
push dword [ebp + 0xc]
lea ecx, [ebx + 0x28]
push esi
call fcn.18061dde
mov ecx, eax
call fcn.18009d41
lea eax, [ebp - 0x24]
push eax
push esi
lea ecx, [ebx + 0x34]
call fcn.18061e85
mov ecx, eax
call fcn.18061d96
push esi
lea ecx, [ebx + 0x40]
call fcn.18061dde
mov dword [eax], 0xffff
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
call dword [eax + 8]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x18061a6e
sub edi, esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], edi
cmp edi, 0x1000
jb 0x18061a65
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.18007456
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
pop ecx
pop ecx
push edi
push esi
call fcn.18160b12
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x180665f8
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1822b00c]
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 0x1806662f
call fcn.18018dce
mov ebx, eax
jmp 0x18066709
push 0x24
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x180666ee
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 0x1806668e
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x180666f9
cmp eax, 3
je 0x18066691
push 0x1c
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.181757a0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x180666ee
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x180666f9
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [ebp - 0x1c], 1
mov dword [ebp - 0x24], eax
je 0x180666f9
call edi
sub eax, dword [ebp - 0x24]
cmp eax, 0x1f40
jae 0x180666df
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1c
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.181757a0
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 0x180666a7
jmp 0x180666e2
mov eax, dword [ebp - 0x1c]
cmp eax, 1
je 0x180666f9
mov ebx, 0x800705b4
jmp 0x180666f9
call fcn.18018dce
mov ebx, eax
test esi, esi
je 0x18066700
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.181605f4
leave
ret

Function at 0x18066753
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1822b00c]
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 0x180667cc
push esi
push 4
push str.Schedule
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x180667c2
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 0x180667b7
cmp dword [ebp - 0x1c], 4
je 0x180667b3
cmp dword [ebp - 0x1c], 2
jne 0x180667bb
mov bl, 1
jmp 0x180667bb
test esi, esi
je 0x180667c2
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.181605f4
leave
ret
Function at 0x18066c4a
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push esi
push 0x18066cc5
mov eax, dword [esi + 0x20]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x18066ca8
mov eax, dword [esi + 0x30]
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 8], eax
cmp edi, eax
je 0x18066ca7
sub eax, edi
sar eax, 2
cmp eax, dword [esi + 0x38]
ja 0x18066ca7
mov eax, dword [edi]
lea ecx, [esi + 0x20]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.180672d4
add edi, 4
cmp edi, dword [ebp - 8]
jne 0x18066c8c
xor ebx, ebx
pop edi
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x24]
jne 0x18066cbd
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
je 0x18066cbf
cmp dword [esi + 0x38], ebx
jbe 0x18066cbf
mov bl, 1
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x18067043
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call fcn.18066c4a
test al, al
jne 0x1806707c
mov eax, dword [esi + 0x20]
push esi
push 0x18066ffc
mov dword [esi + 0x24], eax
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x18067075
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x24]
jne 0x1806707c
xor eax, eax
jmp 0x18067110
mov eax, dword [esi + 0x24]
xor ebx, ebx
mov edi, dword [esi + 0x20]
inc ebx
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], eax
cmp edi, eax
je 0x1806710e
mov eax, dword [edi]
push 0
push 0xf060
push 0x112
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x180670f3
push 0xfffffffffffffff0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
shr eax, 0x1d
test al, 1
je 0x180670c9
push 8
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x180670dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 0x40], 0
je 0x180670ec
push ebx
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_FlashWindow]
mov al, bl
mov byte [ebp - 1], al
jmp 0x180670f6
mov al, byte [ebp - 1]
add edi, 4
cmp edi, dword [ebp - 0xc]
jne 0x18067090
test al, al
je 0x1806710e
push dword [ebp + 8]
mov ecx, esi
call fcn.180668c7
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x180671b1
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1822b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0
push 4
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp ebx, 0xffffffff
jne 0x180671e4
xor al, al
jmp 0x1806725d
xor eax, eax
mov dword [ebp - 0x20], 0x1c
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x18067251
mov eax, dword [ebp - 0x24]
mov esi, dword [esi + 0x10]
cmp esi, dword [eax + 0x14]
je 0x1806723c
mov ebx, eax
mov eax, dword [esi]
cmp eax, dword [ebp - 0x14]
jne 0x18067231
mov eax, dword [ebp - 0x18]
mov ecx, edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
call fcn.18016143
add esi, 4
cmp esi, dword [ebx + 0x14]
jne 0x18067219
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
mov esi, dword [ebp - 0x24]
test eax, eax
jne 0x1806720c
mov eax, dword [edi]
cmp eax, dword [edi + 4]
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.181605f4
leave
ret 4

Function at 0x1806726e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov byte [ebp - 1], bl
mov edi, ebx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x180672cb
push ebx
push dword [ecx + edi*4]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x180672a3
mov dl, 1
mov byte [ebp - 1], dl
jmp 0x180672a6
mov dl, byte [ebp - 1]
mov eax, dword [esi + 8]
inc edi
mov ecx, dword [esi + 4]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x1806728e
test dl, dl
je 0x180672cb
push dword [ebp + 8]
mov ecx, esi
call fcn.180668c7
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4

Function at 0x18067441
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push dword [edi + 4]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov eax, dword [edi + 8]
cmp eax, esi
je 0x1806746c
test eax, eax
je 0x18067467
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], esi
mov eax, esi
test eax, eax
je 0x1806747e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne bl
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x18069164
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
push eax
push 1
push ecx
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ecx
push eax
push ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 8], ecx
push eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x180691b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x180691b1
call fcn.18018dce
jmp 0x180691de
mov eax, 0x8007000d
jmp 0x180691de
push dword [ebp - 8]
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
add edx, esi
push edx
push esi
mov eax, dword [ecx]
push eax
mov dword [ecx + 4], eax
call fcn.1805e61a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
leave
ret

Function at 0x1806962b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x18069640
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 4]
push eax
xor eax, eax
push eax
push esi
push 0x180695e6
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
test eax, eax
jne 0x1806966e
xor al, al
jmp 0x1806967f
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb al, al
inc al
pop esi
pop ebp
ret 4
Function at 0x18072b88
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x18072baf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.18023e96
jmp 0x18072c64
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x18072bd1
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x18072bd3
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x18072c58
jg 0x18072be8
test esi, esi
je 0x18072c58
test ecx, ecx
jl 0x18072c3b
jg 0x18072bf2
test eax, eax
je 0x18072c3b
cmp edi, ecx
jg 0x18072c06
jl 0x18072bfc
cmp esi, eax
jae 0x18072c06
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.18175220
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
mov eax, dword [ebp + 8]
add eax, ecx
test edi, edi
jl 0x18072c58
jg 0x18072c3e
test esi, esi
je 0x18072c58
jmp 0x18072c3e
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x18072c58
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.1819b3d1
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x18072c6d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test ebx, ebx
jg 0x18072c94
jl 0x18072c8b
test esi, esi
jne 0x18072c94
xor eax, eax
xor edx, edx
jmp 0x18072d9d
cmp dword [edi + 0x38], 0
je 0x18072ca9
push ebx
push esi
push dword [ebp + 8]
call fcn.18023f74
jmp 0x18072d9d
mov eax, dword [edi + 0x1c]
mov ecx, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov ecx, dword [eax]
test ecx, ecx
je 0x18072d05
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
test eax, eax
je 0x18072d05
cmp eax, esi
jb 0x18072cd3
mov eax, esi
mov dword [esp + 0xc], esi
push eax
push ecx
push dword [ebp + 8]
call fcn.18175220
mov edx, dword [esp + 0x18]
mov ecx, esi
mov eax, dword [ebp + 8]
sub ecx, edx
add eax, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
add esp, 0xc
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x14], ecx
sub dword [eax], edx
mov eax, dword [edi + 0x1c]
add dword [eax], edx
jmp 0x18072d0c
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
cmp dword [edi + 0x4c], 0
je 0x18072d90
mov ecx, edi
call fcn.18073d76
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp eax, 0xfff
jbe 0x18072d68
mov ecx, dword [esp + 0xc]
push dword [edi + 0x4c]
push 0xfff
push 1
push ecx
call fcn.1819b9ca
mov ecx, dword [esp + 0x1c]
add esp, 0x10
mov edx, dword [esp + 0x10]
add ecx, eax
sub edx, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
cmp eax, 0xfff
jne 0x18072d64
cmp edx, eax
ja 0x18072d2c
jmp 0x18072d6c
sub esi, edx
jmp 0x18072d96
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, eax
test eax, eax
je 0x18072d94
push dword [edi + 0x4c]
push edx
push 1
push dword [esp + 0x18]
call fcn.1819b9ca
mov ecx, dword [esp + 0x24]
add esp, 0x10
sub ecx, eax
jmp 0x18072d94
mov ecx, dword [esp + 0x14]
sub esi, ecx
sbb ebx, 0
mov eax, esi
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc