joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d525
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x1001f2b8]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x21c]
push esi
push edi
mov edi, dword [esp + 0x228]
xor esi, esi
cmp edi, esi
je 0x1000d4fb
push eax
call fcn.100136a0
add esp, 4
test eax, eax
je 0x1000d6b3
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
call fcn.10010b70
add esp, 0xc
cmp eax, 0x426
jne 0x1000d568
push 2
push str.TermService
call fcn.10011110
add esp, 8
test eax, eax
je 0x1000d6b3
push str.TermService
call fcn.1000cb80
add esp, 4
test eax, eax
je 0x1000d6b3
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.10010b70
add esp, 0xc
cmp eax, esi
jne 0x1000d6b3
call fcn.10017980
mov eax, dword [esp + 0x10]
push eax
call fcn.10015310
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, esi
je 0x1000d59e
call fcn.10010750
test eax, eax
je 0x1000d6b3
lea ecx, [esp + 0x14]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp word [esp + eax*2 + 0x12], 0x5c
je 0x1000d5c8
xor ecx, ecx
mov edx, 0x5c
mov word [esp + eax*2 + 0x14], dx
mov word [esp + eax*2 + 0x16], cx
inc eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebp
push str.termsrvw.dll
lea edx, [esp + eax*2 + 0x20]
push edx
call ebx
cmp edi, esi
jne 0x1000d61b
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x1c]
push eax
call ebp
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push str..ini
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
lea eax, [esp + 0x1c]
push eax
call ebp
push str._SystemRoot_System32_termsrv.dll
lea ecx, [esp + 0x20]
push ecx
call ebx
lea edx, [esp + 0x1c]
push edx
call fcn.1000ff00
mov ebx, dword [esp + 0x14]
add esp, 4
cmp ebx, esi
jle 0x1000d67c
mov edi, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea ebx, [ebx]
mov eax, dword [edi + esi*4]
push eax
call fcn.1000cb80
mov ecx, dword [edi + esi*4]
add esp, 4
push ecx
push 0
call ebp
push eax
call fcn.10015150
inc esi
cmp esi, ebx
jl 0x1000d640
push edi
push 0
call ebp
push eax
call fcn.10015150
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [esp + 0x230]
push str.TermService
call fcn.1000cb80
push edi
call fcn.10017cb0
push edi
call fcn.1000fc00
add esp, 0xc
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.10008464
add esp, 0x218
ret
mov ecx, dword [esp + 0x21c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.10008464
add esp, 0x218
ret
Function at 0x1000d6d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push 0x3c
lea eax, [esp + 4]
push eax
call sub.NTDLL.dll_RtlZeroMemory
mov eax, dword [esp + 0x44]
mov dword [esp], 0x3c
mov dword [esp + 4], 0x800400
mov dword [esp + 0x1c], 0
test eax, eax
je 0x1000d702
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x1000d70e
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1000d71a
mov dword [esp + 0xc], eax
cmp dword [esp + 0x4c], 0
je 0x1000d72b
mov dword [esp + 0x1c], 1
jmp 0x1000d733
mov dword [esp + 4], 0x808400
push esi
mov esi, dword [esp + 0x54]
push edi
test esi, esi
je 0x1000d742
or dword [esp + 0xc], 0x40
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edi, eax
test edi, edi
je 0x1000d793
test esi, esi
je 0x1000d793
cmp esi, 0xffffffff
je 0x1000d764
imul esi, esi, 0x3e8
jmp 0x1000d767
or esi, 0xffffffff
mov edx, dword [esp + 0x40]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x1000d787
push eax
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x40]
push ecx
call sub.NTDLL.dll_NtClose
mov eax, edi
pop edi
pop esi
add esp, 0x3c
ret
Function at 0x1000f730
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
mov eax, dword [0x1001f2b8]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x110]
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
push edi
mov edi, dword [esp + 0x11c]
mov dword [esp + 0x10], eax
xor eax, eax
mov byte [esp + eax + 0x14], al
inc eax
cmp eax, 0x100
jl 0x1000f763
xor esi, esi
xor ecx, ecx
mov eax, ecx
cdq
idiv dword [esp + 0x10]
movzx ebx, byte [esp + ecx + 0x14]
movzx edx, word [edi + edx*2]
add edx, ebx
add esi, edx
and esi, 0x800000ff
jns 0x1000f797
dec esi
or esi, 0xffffff00
inc esi
mov al, byte [esp + esi + 0x14]
mov byte [esp + ecx + 0x14], al
inc ecx
mov byte [esp + esi + 0x14], bl
cmp ecx, 0x100
jl 0x1000f773
mov edx, dword [esp + 0x128]
xor esi, esi
xor edi, edi
xor eax, eax
test edx, edx
jle 0x1000f817
lea ecx, [ecx]
inc esi
and esi, 0x800000ff
jns 0x1000f7d1
dec esi
or esi, 0xffffff00
inc esi
movzx ecx, byte [esp + esi + 0x14]
add edi, ecx
and edi, 0x800000ff
jns 0x1000f7e8
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x14]
mov byte [esp + esi + 0x14], bl
mov byte [esp + edi + 0x14], cl
movzx ebx, byte [esp + esi + 0x14]
add ebx, ecx
and ebx, 0x800000ff
jns 0x1000f80b
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [esp + ebx + 0x14]
xor byte [eax + ebp], cl
inc eax
cmp eax, edx
jl 0x1000f7c0
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.10008464
add esp, 0x108
ret

Function at 0x1000f840
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
mov eax, dword [0x1001f2b8]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x110]
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
push edi
mov edi, dword [esp + 0x11c]
mov dword [esp + 0x10], eax
xor eax, eax
mov byte [esp + eax + 0x14], al
inc eax
cmp eax, 0x100
jl 0x1000f873
xor esi, esi
xor ecx, ecx
mov eax, ecx
cdq
idiv dword [esp + 0x10]
movzx ebx, byte [esp + ecx + 0x14]
movzx edx, byte [edx + edi]
add edx, ebx
add esi, edx
and esi, 0x800000ff
jns 0x1000f8a7
dec esi
or esi, 0xffffff00
inc esi
mov al, byte [esp + esi + 0x14]
mov byte [esp + ecx + 0x14], al
inc ecx
mov byte [esp + esi + 0x14], bl
cmp ecx, 0x100
jl 0x1000f883
mov edx, dword [esp + 0x128]
xor esi, esi
xor edi, edi
xor eax, eax
test edx, edx
jle 0x1000f927
lea ecx, [ecx]
inc esi
and esi, 0x800000ff
jns 0x1000f8e1
dec esi
or esi, 0xffffff00
inc esi
movzx ecx, byte [esp + esi + 0x14]
add edi, ecx
and edi, 0x800000ff
jns 0x1000f8f8
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x14]
mov byte [esp + esi + 0x14], bl
mov byte [esp + edi + 0x14], cl
movzx ebx, byte [esp + esi + 0x14]
add ebx, ecx
and ebx, 0x800000ff
jns 0x1000f91b
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [esp + ebx + 0x14]
xor byte [eax + ebp], cl
inc eax
cmp eax, edx
jl 0x1000f8d0
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.10008464
add esp, 0x108
ret
Function at 0x1000fc00
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x68
push edi
push 0x1000
push 8
mov dword [esp + 0x14], str.netsh_advfirewall_firewall_add_rule_name_Remote_Desktop__dirin_protocoltcp_localport3389_profileany_actionallow
mov dword [esp + 0x18], str.netsh_advfirewall_firewall_add_rule_name_Remote_Desktop__dirin_protocoludp_localport3389_profileany_actionallow
mov dword [esp + 0x1c], str.netsh_advfirewall_firewall_delete_rule_name_Remote_Desktop_
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.10016d00
mov edi, eax
test edi, edi
je 0x1000fd43
push 0x800
lea ecx, [edi + 2]
mov eax, 0x22
push ecx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1000fd34
inc eax
cmp word [edi + eax*2 - 2], 0x5c
je 0x1000fc6b
mov edx, 0x5c
mov word [edi + eax*2], dx
inc eax
mov ecx, dword [esp + 0x70]
push esi
mov esi, ecx
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 2
neg ecx
sbb ecx, ecx
add ecx, 3
mov dword [esp + 0xc], ecx
cmp esi, ecx
jge 0x1000fd33
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [edi + eax*2]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x18]
mov edx, dword [esp + 0x10]
push ecx
push str.cmd.exe___c__s
push edx
call ebx
add esp, 0xc
push 0x44
lea eax, [esp + 0x38]
push eax
call sub.NTDLL.dll_RtlZeroMemory
push 0x10
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
call sub.NTDLL.dll_RtlZeroMemory
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push edi
push 0
call ebp
test eax, eax
je 0x1000fd26
mov ecx, dword [esp + 0x24]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x28]
push edx
call sub.NTDLL.dll_NtClose
mov eax, dword [esp + 0x24]
push eax
call sub.NTDLL.dll_NtClose
inc esi
cmp esi, dword [esp + 0x14]
jl 0x1000fca4
pop ebp
pop ebx
pop esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.10015150
pop edi
add esp, 0x68
ret
Function at 0x1000ff00
Capabilities:
Create process on windows
Get common file path
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x58
mov ecx, dword [0x1001fe0c]
push ebp
xor ebp, ebp
push ebp
neg ecx
sbb ecx, ecx
lea eax, [esp + 8]
push eax
push ebp
and ecx, 0x100
add ecx, 0x20006
push ecx
push ebp
push ebp
push ebp
push str.SYSTEMCurrentControlSetServicesTermServiceParameters
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10010085
push edi
mov edi, dword [esp + 0x64]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [eax + eax + 2]
mov eax, dword [esp + 8]
push edx
push edi
push 2
push ebp
push str.ServiceDll
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10010079
lea ebp, [eax + 1]
cmp dword [0x1001fe0c], eax
je 0x10010079
mov eax, dword [0x10020360]
cmp dword [eax + 4], 6
jne 0x10010079
cmp dword [eax + 8], 0
jne 0x10010079
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 0x1000
push 8
call ebx
push eax
call fcn.10016d00
mov esi, eax
test esi, esi
je 0x10010077
push 0x800
lea edx, [esi + 2]
mov ecx, 0x22
push edx
mov word [esi], cx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1001006c
inc eax
cmp word [esi + eax*2 - 2], 0x5c
je 0x1000ffeb
mov ecx, 0x5c
mov word [esi + eax*2], cx
inc eax
push edi
lea edx, [esi + eax*2]
push str.reg.exe__add_HKLMSYSTEMCurrentControlSetServicesTermServiceParameters__v_ServiceDll__t_REG_EXPAND_SZ__d___s___f
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x44
lea eax, [esp + 0x28]
push eax
call sub.NTDLL.dll_RtlZeroMemory
push 0x10
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x58], ebp
call sub.NTDLL.dll_RtlZeroMemory
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1001006c
mov ecx, dword [esp + 0x14]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x18]
push edx
call sub.NTDLL.dll_NtClose
mov eax, dword [esp + 0x14]
push eax
call sub.NTDLL.dll_NtClose
push esi
push 0
call ebx
push eax
call fcn.10015150
pop esi
pop ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebp
pop ebp
add esp, 0x58
ret
Function at 0x10010580
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x1001f2b8]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
mov esi, dword [esp + 0x228]
test esi, esi
jne 0x100105c7
mov eax, dword [0x1001fe78]
push str.URLN
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.10008464
add esp, 0x220
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [0x1001fe78]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push str.URLN
push ecx
mov dword [esp + 0x2c], 0x20a
mov dword [esp + 0x28], 1
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10010618
push esi
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x10010637
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [0x1001fe78]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push str.URLN
push ecx
call edi
mov al, byte [esp + 0x234]
test al, al
je 0x10010659
cmp al, 0xfe
jbe 0x10010650
mov dword [esp + 0xc], 0xfe
jmp 0x10010661
movzx edx, al
mov dword [esp + 0xc], edx
jmp 0x10010661
mov dword [esp + 0xc], 0xc
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x1001fe78]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push str.Next
mov esi, 4
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
call ebx
test eax, eax
jne 0x100106a2
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0xc]
je 0x100106b8
mov eax, dword [0x1001fe78]
push esi
lea edx, [esp + 0x10]
push edx
push esi
push 0
push str.Next
push eax
call edi
mov ecx, dword [esp + 0x228]
pop edi
pop ebx
pop esi
xor ecx, esp
call fcn.10008464
add esp, 0x220
ret
Function at 0x10011110
Capabilities:
Modify service

Disassembly:
push ebx
push edi
push 1
push str.ServicesActive
xor ebx, ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x10011165
mov eax, dword [esp + 0xc]
push ebp
push esi
push 2
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x10011160
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ecx
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push esi
mov ebx, eax
call ebp
push edi
call ebp
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
ret

Function at 0x10011170
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, eax
push edi
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.10017330
test eax, eax
jne 0x1001118d
lea eax, [edi + 9]
pop edi
pop esi
ret
cmp dword [esi], edi
je 0x100111e7
push ebx
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x100111e1
lea esp, [esp]
mov eax, dword [esi]
mov ecx, dword [eax + ebx*4]
push ecx
push 0
push 0x5a
call fcn.10017150
mov edi, eax
test edi, edi
je 0x100111d5
push 0
push edi
call sub.NTDLL.dll_NtSuspendThread
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push edx
push edi
call fcn.100138f0
add esp, 8
push edi
call sub.NTDLL.dll_NtClose
inc ebx
cmp ebx, dword [esi + 8]
jb 0x100111a0
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebx
mov eax, edi
pop edi
pop esi
ret
mov eax, edi
pop edi
pop esi
ret
Function at 0x100115f0
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
sub esp, 0x7c
mov eax, dword [0x1001f2b8]
xor eax, esp
mov dword [esp + 0x78], eax
push ebp
mov ebp, dword [esp + 0x88]
push esi
mov esi, dword [esp + 0x88]
push edi
xor edi, edi
cmp esi, edi
je 0x10011747
push ebx
push edi
push esi
lea eax, [esp + 0x18]
push eax
lea ebx, [edi + 0x20]
mov dword [esp + 0x1c], edi
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x10011636
mov ebx, 0x420
push 0x44
lea ecx, [esp + 0x28]
push ecx
call sub.NTDLL.dll_RtlZeroMemory
push 0x10
lea ecx, [esp + 0x18]
lea eax, [esp + 0x6c]
push ecx
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x70], 0x690057
mov dword [esp + 0x74], 0x73006e
mov dword [esp + 0x78], 0x610074
mov dword [esp + 0x7c], 0x5c0030
mov dword [esp + 0x80], 0x650044
mov dword [esp + 0x84], 0x610066
mov dword [esp + 0x88], 0x6c0075
mov dword [esp + 0x8c], 0x74
mov dword [esp + 0x34], eax
call sub.NTDLL.dll_RtlZeroMemory
cmp dword [0x1001fe20], edi
jne 0x100116fb
mov eax, dword [0x100200b8]
lea ecx, [esp + 0x24]
test eax, eax
je 0x100116db
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push ecx
push 0
push edx
push ebx
push 0
push 0
push 0
push ebp
push 0
push esi
call eax
jmp 0x1001171e
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
push edx
push ebx
push 0
push 0
push 0
push ebp
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x1001171e
mov eax, dword [0x1001fe2c]
test eax, eax
je 0x10011738
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x28]
push edx
push 0
push ecx
push ebx
push ebp
push 0
push 0
push esi
call eax
mov edi, eax
test edi, edi
je 0x10011738
mov edx, dword [esp + 0x18]
push edx
call sub.NTDLL.dll_NtClose
mov eax, dword [esp + 0x14]
push eax
call sub.NTDLL.dll_NtClose
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x10011747
push eax
call sub.USERENV.dll_DestroyEnvironmentBlock
mov ecx, dword [esp + 0x84]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10008464
add esp, 0x7c
ret
Function at 0x10012520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10012546
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push esi
call fcn.10012ca0
add esp, 0xc
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x10012810
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x3c]
push ebp
push esi
mov esi, dword [eax + ebx + 0x78]
mov ebp, dword [esi + ebx + 0x24]
mov ecx, dword [esi + ebx + 0x20]
add esi, ebx
push edi
add ecx, ebx
xor edi, edi
add ebp, ebx
mov dword [esp + 0x10], ecx
cmp dword [esi + 0x18], edi
jbe 0x10012883
mov dword [esp + 0x18], 0x10020310
movzx edx, word [ebp + edi*2]
mov eax, dword [esi + 0x10]
add eax, edx
cmp eax, 0x1e
jne 0x1001287d
cmp eax, 0x20
jne 0x1001287d
cmp eax, 0x22
jne 0x1001287d
mov ecx, dword [ecx + edi*4]
mov edx, dword [0x1002030c]
add ecx, ebx
push ecx
push edx
call fcn.10015c90
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
add ecx, 4
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
inc edi
cmp edi, dword [esi + 0x18]
jb 0x10012841
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10012ea0
Capabilities:
Modify service
Query service status
Start service

Disassembly:
sub esp, 0x28
mov eax, dword [0x1001f2b8]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 8], eax
test edi, edi
je 0x10012f7d
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push edi
mov dword [esp + 0x18], 0
call ebp
test eax, eax
je 0x10012f3f
mov eax, dword [esp + 8]
push ebx
push esi
push eax
push 8
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.10016d00
mov esi, eax
test esi, esi
je 0x10012f3d
lea edx, [esp + 0x10]
push edx
push ebx
push esi
push edi
call ebp
test eax, eax
je 0x10012f2e
cmp dword [esi + 4], 2
je 0x10012f2e
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call fcn.10015150
pop esi
pop ebx
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [esp + 0x14], 4
pop ebp
jne 0x10012f57
test eax, eax
jne 0x10012f68
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x38]
push ecx
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov eax, 1
pop edi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10008464
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
pop edi
xor ecx, esp
xor eax, eax
call fcn.10008464
add esp, 0x28
ret
Function at 0x100147e0
Capabilities:
Delete file
Enumerate files on windows
Move file

Disassembly:
sub esp, 0x664
mov eax, dword [0x1001f2b8]
xor eax, esp
mov dword [esp + 0x660], eax
mov eax, dword [esp + 0x66c]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
push esi
mov esi, dword [esp + 0x674]
push edi
push eax
push 0x2a
push esi
lea eax, [esp + 0x26c]
push str._s_c_s
push eax
xor edi, edi
call ebp
add esp, 0x14
push 0x250
lea ecx, [esp + 0x14]
push ecx
call sub.NTDLL.dll_RtlZeroMemory
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10014851
xor eax, eax
jmp 0x100148b6
mov eax, dword [esp + 0x10]
test al, 0x10
jne 0x1001489d
test eax, eax
je 0x1001489d
lea ecx, [esp + 0x3c]
push ecx
push esi
lea edx, [esp + 0x268]
push 0x100194b0
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10014898
push 4
push eax
lea ecx, [esp + 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, 1
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10014851
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
mov ecx, dword [esp + 0x670]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10008464
add esp, 0x664
ret
Function at 0x10015340
Capabilities:
Copy file
Get disk size
Move file
Read file via mapping

Disassembly:
sub esp, 0x23c
mov eax, dword [0x1001f2b8]
xor eax, esp
mov dword [esp + 0x238], eax
mov eax, dword [0x1001fe24]
push esi
lea edx, [esp + 0x24]
push edx
xor ecx, ecx
push eax
mov word [esp + 0x34], cx
lea ecx, [esp + 0x38]
push 0x100194b0
push ecx
mov dword [esp + 0x34], 0x62002e
mov dword [esp + 0x38], 0x6b0061
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [0x1001fe24]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0x10
push 2
lea edx, [esp + 0x34]
push edx
push eax
call esi
test eax, eax
je 0x100154ff
mov ecx, dword [0x1001fe24]
push 0
push ecx
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x100153e4
mov eax, dword [0x1001fe24]
push 2
push eax
lea ecx, [esp + 0x38]
push ecx
call esi
pop esi
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.10008464
add esp, 0x23c
ret
mov edx, dword [0x1001fe24]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100154f9
push ebx
push 0
push 0
push 0
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x100154f2
push ebp
push 0
push 0
push 0
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
je 0x100154ea
mov ecx, dword [0x1001fe1c]
xorpd xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
push edi
mov edi, dword [esp + 0x250]
xorpd xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
xorpd xmm0, xmm0
mov dword [esp + 0x28], 0x3a0000
movlpd qword [esp + 0x10], xmm0
mov dword [esp + 0x2c], 0x5c
mov dx, word [ecx]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
mov word [esp + 0x2c], dx
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x100154e9
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, eax
ja 0x100154c3
mov eax, dword [esp + 0x10]
jb 0x100154b7
cmp eax, edi
jae 0x100154c3
test ecx, ecx
jne 0x100154bf
test eax, eax
je 0x100154c3
shr eax, 1
mov edi, eax
test edi, edi
je 0x100154e9
push 0
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x100154e9
push 0
push 0
push 0
push esi
call edi
pop edi
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop ebp
push ebx
call sub.NTDLL.dll_NtClose
pop ebx
push esi
call sub.NTDLL.dll_NtClose
mov ecx, dword [esp + 0x23c]
pop esi
xor ecx, esp
call fcn.10008464
add esp, 0x23c
ret