joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30028c6d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x30028d3b
push esi
push edi
push eax
call fcn.3004dd60
mov esi, eax
inc esi
mov eax, esi
push 0x106
shl eax, 2
push eax
call fcn.3005343f
mov edi, eax
push esi
push edi
push dword [ebx]
mov dword [ebp - 8], edi
call fcn.3004f088
mov eax, edi
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 4], edi
mov edi, dword [ebx]
je 0x30028d2b
jmp 0x30028cbb
mov eax, dword [ebp + 8]
cmp word [eax], cx
je 0x30028cdc
cmp word [eax], 0x7c
je 0x30028ccd
inc eax
inc eax
cmp word [eax], cx
jne 0x30028cc0
cmp word [eax], cx
je 0x30028cdc
mov word [eax], cx
inc eax
inc eax
mov dword [ebp + 8], eax
jmp 0x30028cdf
mov dword [ebp + 8], ecx
push dword [ebp - 4]
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x30028cf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x30028d1f
cmp edi, dword [ebx]
je 0x30028d02
mov word [edi], 0x7c
inc edi
inc edi
mov eax, edi
sub eax, dword [ebx]
mov ecx, esi
sar eax, 1
sub ecx, eax
push ecx
push edi
push dword [ebp - 4]
call fcn.3004f088
push edi
call fcn.3004dd60
lea edi, [edi + eax*2]
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
mov dword [ebp - 4], eax
jne 0x30028cb8
cmp edi, dword [ebx]
pop edi
pop esi
jne 0x30028d33
mov dword [ebx], ecx
push dword [ebp - 8]
call fcn.30053354
pop ebx
leave
ret 4
Function at 0x30028d40
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3f4]
sub esp, 0x474
mov eax, dword [section..cdata]
and dword [ebp - 0x6c], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3fc]
test edi, edi
mov dword [ebp + 0x3f0], eax
je 0x30028f37
mov eax, dword [edi]
test eax, eax
je 0x30028f37
push eax
call fcn.3004dd60
mov esi, eax
inc esi
mov eax, esi
push 0x106
shl eax, 2
push eax
mov dword [ebp + 0x3fc], esi
call fcn.3005343f
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x74], ebx
je 0x30028f3a
push esi
push ebx
push dword [edi]
call fcn.3004f088
mov dword [ebp - 0x70], ebx
jmp 0x30028dba
cmp word [ebx], 0x3b
je 0x30028dc0
inc ebx
inc ebx
cmp word [ebx], 0
jne 0x30028db2
cmp word [ebx], 0
mov esi, ebx
je 0x30028dd0
and word [ebx], 0
inc ebx
inc ebx
jmp 0x30028dd2
xor ebx, ebx
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x30028f16
and dword [ebp - 0x78], 0
jmp 0x30028dff
mov ax, word [esi]
test ax, ax
je 0x30028e18
cmp ax, 0x5c
je 0x30028e08
dec esi
dec esi
cmp esi, dword [ebp - 0x74]
jae 0x30028df1
jmp 0x30028e18
push dword [ebp - 0x70]
and word [esi + 2], 0
call fcn.3004dd60
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x3fc]
lea eax, [eax*4 + 0x400]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.3004dd60
mov esi, eax
add esi, dword [ebp - 0x78]
mov eax, 0x104
cmp esi, eax
jae 0x30028ef8
and word [ebp + 0x1e8], 0
cmp dword [ebp - 0x78], 0
je 0x30028e66
push eax
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x70]
call fcn.3004f088
mov eax, 0x104
push eax
lea eax, [ebp + 0x1e8]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.3004f0ca
lea eax, [ebp + 0x1e8]
push eax
call fcn.30025dc1
test eax, eax
jne 0x30028ef8
mov eax, dword [ebp - 0x6c]
lea ecx, [esi + eax + 1]
cmp ecx, dword [ebp + 0x3fc]
jle 0x30028ebe
push dword [ebp - 0x7c]
push dword [edi]
call fcn.30053472
test eax, eax
je 0x30028f2f
add dword [ebp + 0x3fc], 0x100
add dword [ebp - 0x7c], 0x400
mov dword [edi], eax
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x30028ece
mov ecx, dword [edi]
mov word [ecx + eax*2], 0x3b
inc eax
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp + 0x3fc]
sub ecx, eax
lea esi, [eax + eax]
mov eax, dword [edi]
push ecx
add eax, esi
push eax
lea eax, [ebp + 0x1e8]
push eax
call fcn.3004f088
mov eax, dword [edi]
add eax, esi
push eax
call fcn.3004dd60
add dword [ebp - 0x6c], eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x30028e28
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
mov dword [ebp - 0x70], ebx
jne 0x30028dba
cmp dword [ebp - 0x6c], ebx
jne 0x30028f2f
push dword [edi]
call fcn.30053354
and dword [edi], ebx
push dword [ebp - 0x74]
call fcn.30053354
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x3f0]
pop edi
pop esi
pop ebx
call fcn.30062195
add ebp, 0x3f4
leave
ret 4
Function at 0x3002910f
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x3002912c
xor eax, eax
inc eax
leave
ret
mov eax, dword [ebp - 4]
and al, 0x10
sub al, 0x10
neg al
sbb eax, eax
inc eax
leave
ret

Function at 0x300294a7
Capabilities:
Connect to http server

Disassembly:
push ebx
push esi
xor ebx, ebx
call fcn.30022b36
test eax, eax
mov esi, 0x30096c34
je 0x300294c6
push esi
push 0x30003ce4
call fcn.30022c53
pop ecx
pop ecx
mov eax, dword [0x3009763c]
test eax, eax
je 0x300294d4
mov ebx, 0x800000
push 1
push ebx
neg eax
push 3
sbb eax, eax
mov ecx, 0x30002850
push ecx
and eax, 0x16b
push ecx
add eax, 0x50
push eax
push esi
push dword [0x30096c00]
call dword [sym.imp.WININET.dll_InternetConnectA]
and dword [0x30096c0c], 0
test eax, eax
pop esi
mov dword [0x30096c04], eax
mov dword [0x30099898], 1
pop ebx
jne 0x30029539
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x30029555
call fcn.30022b36
test eax, eax
je 0x30029536
push 0x30003ccc
call fcn.30022bd0
xor eax, eax
ret
and dword [0x30099898], 0
push 0
push 0
push 0x1427
push dword [0x300a1718]
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
inc eax
ret

Function at 0x300296ed
Capabilities:
Send data

Disassembly:
mov eax, dword [0x3009764c]
push edi
xor edi, edi
cmp eax, edi
jne 0x30029711
push edi
push edi
push 0x1427
push dword [0x300a1718]
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
inc eax
pop edi
ret
mov ecx, dword [0x30097640]
push esi
push 0x30097648
push dword [0x30097644]
add ecx, eax
push ecx
push dword [0x30096c08]
xor esi, esi
inc esi
mov dword [0x30099898], esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x30029769
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
je 0x30029791
call fcn.30022b36
test eax, eax
je 0x30029765
push edi
push 0x30003d4c
call fcn.30022c53
pop ecx
pop ecx
xor eax, eax
jmp 0x30029793
cmp dword [0x30096bd4], 3
mov dword [0x30099898], edi
jne 0x3002977e
mov dword [0x300a170c], esi
push edi
push edi
push 0x1427
push dword [0x300a1718]
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, esi
pop esi
pop edi
ret
Function at 0x3002a55b
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.3002a423
test eax, eax
je 0x3002a5bc
push dword [0x3006562c]
call fcn.30025dc1
test eax, eax
jne 0x3002a5b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call fcn.30022b36
test eax, eax
je 0x3002a59b
push dword [0x3006562c]
push 0x30003f34
call fcn.30022c53
pop ecx
pop ecx
call fcn.30022b36
test eax, eax
je 0x3002a5b3
push dword [ebp - 4]
push 0x30003f10
call fcn.30022c53
pop ecx
pop ecx
xor eax, eax
jmp 0x3002a5ce
xor eax, eax
inc eax
jmp 0x3002a5ce
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
neg eax
sbb eax, eax
neg eax
leave
ret 4
Function at 0x3002f0ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x30004724
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x3002f114
xor eax, eax
jmp 0x3002f148
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 4
push 0
push 0
push 0x30004770
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
leave
ret 4

Function at 0x3002f1aa
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x300047e0
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3002f1fc
push edi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push 0x300047a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
je 0x3002f200
xor eax, eax
jmp 0x3002f209
xor eax, eax
cmp eax, dword [ebp - 8]
sbb eax, eax
neg eax
pop esi
leave
ret
Function at 0x3002f20c
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [section..cdata]
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
xor eax, eax
mov word [ebp - 0x61c], si
mov ecx, 0x103
lea edi, [ebp - 0x61a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x20c], si
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
cmp edi, esi
mov dword [ebp - 0x620], esi
je 0x3002f36a
call fcn.3002f1aa
test eax, eax
je 0x3002f284
cmp dword [ebp + 0xc], esi
je 0x3002f284
call fcn.30022b36
test eax, eax
je 0x3002f36a
push 0x30004a1c
jmp 0x3002f2c9
mov eax, dword [edi]
push esi
lea ecx, [ebp - 0x620]
push ecx
push esi
push 0x2001f
and eax, 0x10000000
push esi
neg eax
push esi
sbb eax, eax
push esi
neg eax
add eax, 0x80000001
push 0x300047e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x3002f2d3
call fcn.30022b36
test eax, eax
je 0x3002f36a
push 0x300049fc
call fcn.30022bd0
jmp 0x3002f36a
cmp dword [ebp + 0xc], esi
jne 0x3002f2eb
push 0x30004784
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x3002f36a
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
je 0x3002f36a
dec eax
cmp word [ebp + eax*2 - 0x20c], 0x5c
jne 0x3002f2fe
push 0x74
mov word [ebp + eax*2 - 0x20c], si
push 0x300049e0
lea eax, [ebp - 0x20c]
push eax
push 0x300049c8
lea eax, [ebp - 0x61c]
push 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
lea eax, [ebp - 0x61c]
push eax
call fcn.3004dd60
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x61c]
push eax
push 1
push esi
push 0x30004784
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.30062195
leave
ret 8

Function at 0x30030c5c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call fcn.30031e6a
test eax, eax
je 0x30030c74
xor eax, eax
inc eax
jmp 0x30030cfa
push esi
push edi
xor esi, esi
push esi
push 0x80
push 2
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x30030cb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call fcn.30022b36
test eax, eax
je 0x30030cf1
push dword [ebp - 4]
push 0x30004e9c
jmp 0x30030cea
push ebx
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
pop ebx
jne 0x30030cf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call fcn.30022b36
test eax, eax
je 0x30030cf1
push dword [ebp - 4]
push 0x30004e7c
call fcn.30022c53
pop ecx
pop ecx
xor eax, eax
jmp 0x30030cf8
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0xc
Function at 0x30030f53
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0xa80]
sub esp, 0xb00
mov eax, dword [section..cdata]
push ebx
push esi
mov esi, dword [ebp + 0xa88]
xor edx, edx
lea ebx, [esi + 0x21c]
cmp dword [ebx], edx
mov dword [ebp + 0xa7c], eax
mov dword [ebp - 0x80], edx
jne 0x30030fb0
push 0x106
push 5
push 5
push 0x44c
push ebx
call fcn.30055216
test eax, eax
jne 0x30030fd1
call fcn.30022b36
test eax, eax
je 0x30030fdb
push 0x30004f30
call fcn.30022bd0
jmp 0x30030fdb
mov eax, dword [ebx]
movzx ecx, word [eax]
push ecx
push edx
push eax
call fcn.30054ed3
test eax, eax
jne 0x30030fd1
call fcn.30022b36
test eax, eax
je 0x30030fdb
push 0x30004f08
jmp 0x30030fa9
push esi
call fcn.3002ef72
test eax, eax
jne 0x30030fe2
xor eax, eax
jmp 0x3003112f
push edi
lea eax, [esi + 0xc]
mov esi, 0x104
push esi
lea ecx, [ebp + 0x1d8]
push ecx
push eax
call fcn.3004f088
push esi
lea eax, [ebp + 0x1d8]
push eax
push 0x30004ef8
call fcn.3004f0ca
lea eax, [ebp + 0x3e0]
push eax
lea eax, [ebp + 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
je 0x30031106
test dword [ebp + 0x3e0], 0xffffffef
je 0x300310db
xor eax, eax
mov ecx, 0x113
lea edi, [ebp + 0x630]
rep stosd dword es:[edi], eax
push esi
lea eax, [ebp + 0x630]
push eax
mov eax, dword [ebp + 0xa88]
add eax, 0xc
push eax
call fcn.3004f088
push esi
lea eax, [ebp + 0x630]
push eax
push 0x30002eb8
call fcn.3004f0ca
push esi
lea eax, [ebp + 0x630]
push eax
lea eax, [ebp + 0x40c]
push eax
call fcn.3004f0ca
push esi
lea eax, [ebp + 0x838]
push eax
lea eax, [ebp + 0x630]
push eax
call fcn.30030014
test eax, eax
je 0x300310fc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x838]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x300310d4
test dword [ebp - 0x78], 0xffffffef
je 0x300310d4
mov eax, dword [ebx]
lea ecx, [ebp + 0x630]
push ecx
push eax
call fcn.30054d59
cmp eax, 0xffffffff
je 0x30031146
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp + 0x3e0]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x300310fc
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x7c], 0xffffffff
cmp dword [ebp - 0x7c], 0xffffffff
jne 0x3003102b
mov dword [ebp - 0x80], 1
mov esi, dword [ebp + 0xa88]
push dword [esi + 0x214]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x80], 0
pop edi
jne 0x3003112c
push esi
call fcn.30030dc8
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp + 0xa7c]
pop esi
pop ebx
call fcn.30062195
add ebp, 0xa80
leave
ret 4
call fcn.30022b36
test eax, eax
je 0x3003110d
push 0x30004ed0
call fcn.30022bd0
jmp 0x3003110d
Function at 0x3003115b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 3], 0x10
push edi
mov edi, 0x104
lea ebx, [esi + 0xc]
je 0x300311be
push edi
push ebx
mov dword [ebp + 8], 0x80000002
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
mov dword [ebp - 8], eax
je 0x30031199
cmp eax, edi
jbe 0x300311f2
call fcn.30022b36
test eax, eax
je 0x30031335
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x30004fc8
call fcn.30022c53
pop ecx
pop ecx
jmp 0x30031335
push 1
push 0x1c
push ebx
push 0
mov dword [ebp + 8], 0x80000001
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x300311f2
call fcn.30022b36
test eax, eax
je 0x30031335
push 0x30004fa0
call fcn.30022bd0
jmp 0x30031335
push edi
push ebx
push 0x300054a8
call fcn.3004f0ca
lea ecx, [ebp - 8]
push ecx
lea eax, [esi + 8]
push eax
xor eax, eax
push eax
push 0x2001f
push eax
push eax
push eax
push 0x30004724
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x3003123a
call fcn.30022b36
test eax, eax
je 0x30031236
push 0x30004f7c
call fcn.30022bd0
and dword [esi + 8], 0
mov eax, dword [esi]
and eax, 7
dec eax
je 0x300312f5
dec eax
je 0x300312b1
dec eax
dec eax
je 0x3003126a
call fcn.30022b36
test eax, eax
je 0x30031335
mov eax, dword [esi]
and eax, 7
push eax
push 0x30004f54
jmp 0x300311b2
push edi
push ebx
push 0x300054f8
call fcn.3004f0ca
cmp dword [0x30065700], 0
je 0x30031289
mov eax, dword [0x30065704]
mov dword [esi + 4], eax
jmp 0x30031290
mov dword [esi + 4], 0x32
cmp dword [ebp - 4], 0
jne 0x300312a5
mov dword [esi + 0x218], 0x30004830
jmp 0x30031325
mov dword [esi + 0x218], 0x30004854
jmp 0x30031325
push edi
push ebx
push 0x300054e4
call fcn.3004f0ca
cmp dword [0x30065700], 0
je 0x300312d0
mov eax, dword [0x30065704]
mov dword [esi + 4], eax
jmp 0x300312d7
mov dword [esi + 4], 0x32
cmp dword [ebp - 4], 0
jne 0x300312e9
mov dword [esi + 0x218], 0x30004820
jmp 0x30031325
mov dword [esi + 0x218], 0x30004840
jmp 0x30031325
push edi
push ebx
push 0x300054d0
call fcn.3004f0ca
cmp dword [0x30065700], 0
je 0x30031314
mov eax, dword [0x30065704]
mov dword [esi + 4], eax
jmp 0x3003131b
mov dword [esi + 4], 0x32
mov dword [esi + 0x218], 0x30004810
cmp dword [ebp + 0xc], 0
je 0x30031339
push esi
call fcn.30030f53
test eax, eax
jne 0x30031339
xor eax, eax
jmp 0x3003133c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x3003181b
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi]
xor eax, eax
and edi, 7
cmp dword [ebp + 0xc], eax
mov dword [ebp - 4], 4
jne 0x30031847
push 0x30004754
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x30031893
push ebx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
push eax
mov ebx, 0x30004754
push ebx
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x3003187b
cmp eax, 2
jne 0x30031892
mov eax, dword [esi]
and eax, 0x10000000
push eax
push edi
call fcn.3003175f
mov dword [ebp + 8], eax
or dword [ebp + 8], edi
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push ebx
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x30031e0f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
inc esi
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x30031e3d
xor eax, eax
jmp 0x30031e65
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x30031e5a
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0x10

Function at 0x30031e6a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4

Function at 0x30031e81
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..cdata]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x30031ee6
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x30031edd
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop ebx
call fcn.30062195
leave
ret

Function at 0x30032022
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3e8]
sub esp, 0x468
mov eax, dword [section..cdata]
push esi
push edi
mov dword [ebp + 0x3e4], eax
push 0x10
xor eax, eax
pop ecx
push dword [ebp + 0x3f0]
mov dword [ebp - 0x80], 0x44
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [ebp - 0x3c], esi
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.3004dd60
cmp eax, 0x104
jle 0x30032072
push 0x300056b8
jmp 0x300320df
push dword [ebp + 0x3f4]
lea eax, [ebp - 0x2c]
push 0x6b
push dword [ebp + 0x3f0]
push 0x300056a0
push 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push 0x4000020
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x300320da
lea eax, [ebp - 0x2c]
push eax
push 0x30005690
call fcn.30022c53
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
pop ecx
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x38]
call esi
jmp 0x300320e5
push 0x3000565c
call fcn.30022c53
pop ecx
mov ecx, dword [ebp + 0x3e4]
pop edi
pop esi
call fcn.30062195
add ebp, 0x3e8
leave
ret 8