joyce8/EMBER2024-capa huggingface dataset:
Function at 0x30026593
Capabilities:
Get common file path
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [section..cdata]
push ebx
push esi
push edi
mov dword [ebp + 0x8c], eax
push 0x104
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
je 0x300265d3
lea eax, [ebp - 0x78]
push eax
push 0x300037bc
call edi
push 0x300037ac
call fcn.300247dd
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x7c], eax
je 0x3002666d
push 0x30003798
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x30026664
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x26
push ebx
call esi
test eax, eax
jne 0x30026616
lea eax, [ebp - 0x78]
push eax
push 0x3000378c
call edi
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x2b
push ebx
call esi
test eax, eax
jne 0x30026630
lea eax, [ebp - 0x78]
push eax
push 0x30003780
call edi
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x1a
push ebx
call esi
test eax, eax
jne 0x3002664a
lea eax, [ebp - 0x78]
push eax
push 0x30003778
call edi
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 5
push ebx
call esi
test eax, eax
jne 0x30026664
lea eax, [ebp - 0x78]
push eax
push 0x3000376c
call edi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x80]
push eax
push 0x20019
push ebx
push 0x30003738
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x300266e1
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push 0x30003730
push dword [ebp - 0x80]
mov dword [ebp - 0x7c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x300266d8
lea eax, [ebp - 0x78]
lea esi, [ebp - 0x78]
push eax
dec esi
call fcn.3004ead5
cmp byte [eax + esi], 0x5c
jne 0x300266cd
lea eax, [ebp - 0x78]
push eax
call fcn.3004ead5
mov byte [eax + esi], bl
lea eax, [ebp - 0x78]
push eax
push 0x30003724
call edi
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
pop ebx
call fcn.30063125
add ebp, 0x90
leave
ret
Function at 0x300266f7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x30026708
xor eax, eax
jmp 0x30026775
cmp dword [ebp + 0x10], esi
push ebx
je 0x30026741
push 0x106
push dword [ebp + 0x10]
call fcn.3005424c
mov ebx, eax
cmp ebx, esi
jne 0x30026725
xor eax, eax
jmp 0x30026774
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov eax, ecx
push edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
pop edi
jmp 0x30026744
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp + 8]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x30026762
push ebx
call dword [ebp + 8]
jmp 0x30026771
lea eax, [ebp - 4]
push eax
push dword [0x3009782c]
call fcn.30055b6b
mov eax, dword [ebp - 4]
pop ebx
pop esi
leave
ret 0xc
Function at 0x30028b74
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 0x30028c42
push esi
push edi
push eax
call fcn.3004eb5c
mov esi, eax
inc esi
mov eax, esi
push 0x106
shl eax, 2
push eax
call fcn.3005424c
mov edi, eax
push esi
push edi
push dword [ebx]
mov dword [ebp - 8], edi
call fcn.3004fe88
mov eax, edi
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 4], edi
mov edi, dword [ebx]
je 0x30028c32
jmp 0x30028bc2
mov eax, dword [ebp + 8]
cmp word [eax], cx
je 0x30028be3
cmp word [eax], 0x7c
je 0x30028bd4
inc eax
inc eax
cmp word [eax], cx
jne 0x30028bc7
cmp word [eax], cx
je 0x30028be3
mov word [eax], cx
inc eax
inc eax
mov dword [ebp + 8], eax
jmp 0x30028be6
mov dword [ebp + 8], ecx
push dword [ebp - 4]
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x30028bfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x30028c26
cmp edi, dword [ebx]
je 0x30028c09
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.3004fe88
push edi
call fcn.3004eb5c
lea edi, [edi + eax*2]
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
mov dword [ebp - 4], eax
jne 0x30028bbf
cmp edi, dword [ebx]
pop edi
pop esi
jne 0x30028c3a
mov dword [ebx], ecx
push dword [ebp - 8]
call fcn.30054161
pop ebx
leave
ret 4
Function at 0x30028c47
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 0x30028e3e
mov eax, dword [edi]
test eax, eax
je 0x30028e3e
push eax
call fcn.3004eb5c
mov esi, eax
inc esi
mov eax, esi
push 0x106
shl eax, 2
push eax
mov dword [ebp + 0x3fc], esi
call fcn.3005424c
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x74], ebx
je 0x30028e41
push esi
push ebx
push dword [edi]
call fcn.3004fe88
mov dword [ebp - 0x70], ebx
jmp 0x30028cc1
cmp word [ebx], 0x3b
je 0x30028cc7
inc ebx
inc ebx
cmp word [ebx], 0
jne 0x30028cb9
cmp word [ebx], 0
mov esi, ebx
je 0x30028cd7
and word [ebx], 0
inc ebx
inc ebx
jmp 0x30028cd9
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 0x30028e1d
and dword [ebp - 0x78], 0
jmp 0x30028d06
mov ax, word [esi]
test ax, ax
je 0x30028d1f
cmp ax, 0x5c
je 0x30028d0f
dec esi
dec esi
cmp esi, dword [ebp - 0x74]
jae 0x30028cf8
jmp 0x30028d1f
push dword [ebp - 0x70]
and word [esi + 2], 0
call fcn.3004eb5c
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.3004eb5c
mov esi, eax
add esi, dword [ebp - 0x78]
mov eax, 0x104
cmp esi, eax
jae 0x30028dff
and word [ebp + 0x1e8], 0
cmp dword [ebp - 0x78], 0
je 0x30028d6d
push eax
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x70]
call fcn.3004fe88
mov eax, 0x104
push eax
lea eax, [ebp + 0x1e8]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.3004feca
lea eax, [ebp + 0x1e8]
push eax
call fcn.30025f73
test eax, eax
jne 0x30028dff
mov eax, dword [ebp - 0x6c]
lea ecx, [esi + eax + 1]
cmp ecx, dword [ebp + 0x3fc]
jle 0x30028dc5
push dword [ebp - 0x7c]
push dword [edi]
call fcn.3005427f
test eax, eax
je 0x30028e36
add dword [ebp + 0x3fc], 0x100
add dword [ebp - 0x7c], 0x400
mov dword [edi], eax
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x30028dd5
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.3004fe88
mov eax, dword [edi]
add eax, esi
push eax
call fcn.3004eb5c
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 0x30028d2f
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
mov dword [ebp - 0x70], ebx
jne 0x30028cc1
cmp dword [ebp - 0x6c], ebx
jne 0x30028e36
push dword [edi]
call fcn.30054161
and dword [edi], ebx
push dword [ebp - 0x74]
call fcn.30054161
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x3f0]
pop edi
pop esi
pop ebx
call fcn.30063125
add ebp, 0x3f4
leave
ret 4
Function at 0x30029016
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 0x30029033
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 0x300293ae
Capabilities:
Connect to http server

Disassembly:
push ebx
push esi
xor ebx, ebx
call fcn.30022c75
test eax, eax
mov esi, 0x30097b1c
je 0x300293cd
push esi
push 0x30003cdc
call fcn.30022d92
pop ecx
pop ecx
mov eax, dword [0x30098524]
test eax, eax
je 0x300293db
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 [0x30097ae8]
call dword [sym.imp.WININET.dll_InternetConnectA]
and dword [0x30097af4], 0
test eax, eax
pop esi
mov dword [0x30097aec], eax
mov dword [0x3009a780], 1
pop ebx
jne 0x30029440
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x3002945c
call fcn.30022c75
test eax, eax
je 0x3002943d
push 0x30003cc4
call fcn.30022d0f
xor eax, eax
ret
and dword [0x3009a780], 0
push 0
push 0
push 0x1427
push dword [0x300a2600]
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
inc eax
ret

Function at 0x300295f4
Capabilities:
Send data

Disassembly:
mov eax, dword [0x30098534]
push edi
xor edi, edi
cmp eax, edi
jne 0x30029618
push edi
push edi
push 0x1427
push dword [0x300a2600]
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
inc eax
pop edi
ret
mov ecx, dword [0x30098528]
push esi
push 0x30098530
push dword [0x3009852c]
add ecx, eax
push ecx
push dword [0x30097af0]
xor esi, esi
inc esi
mov dword [0x3009a780], esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x30029670
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x3e5
je 0x30029698
call fcn.30022c75
test eax, eax
je 0x3002966c
push edi
push 0x30003d44
call fcn.30022d92
pop ecx
pop ecx
xor eax, eax
jmp 0x3002969a
cmp dword [0x30097abc], 3
mov dword [0x3009a780], edi
jne 0x30029685
mov dword [0x300a25f4], esi
push edi
push edi
push 0x1427
push dword [0x300a2600]
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, esi
pop esi
pop edi
ret
Function at 0x3002a49d
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.3002a32a
test eax, eax
je 0x3002a4fe
push dword [0x3006662c]
call fcn.30025f73
test eax, eax
jne 0x3002a4f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call fcn.30022c75
test eax, eax
je 0x3002a4dd
push dword [0x3006662c]
push 0x30003f2c
call fcn.30022d92
pop ecx
pop ecx
call fcn.30022c75
test eax, eax
je 0x3002a4f5
push dword [ebp - 4]
push 0x30003f08
call fcn.30022d92
pop ecx
pop ecx
xor eax, eax
jmp 0x3002a510
xor eax, eax
inc eax
jmp 0x3002a510
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 0x3002f3ee
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 SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x3002f416
xor eax, eax
jmp 0x3002f44a
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 0x3002f4ac
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 reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3002f4fe
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 0x3002f502
xor eax, eax
jmp 0x3002f50b
xor eax, eax
cmp eax, dword [ebp - 8]
sbb eax, eax
neg eax
pop esi
leave
ret
Function at 0x3002f50e
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]
push ebx
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
xor eax, eax
mov word [ebp - 0x61c], bx
mov ecx, 0x103
lea edi, [ebp - 0x61a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
cmp esi, ebx
mov word [ebp - 0x20c], bx
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x620], ebx
stosw word es:[edi], ax
je 0x3002f681
call fcn.3002f4ac
test eax, eax
je 0x3002f587
cmp dword [ebp + 0xc], ebx
je 0x3002f587
call fcn.30022c75
test eax, eax
je 0x3002f681
push 0x30004a1c
jmp 0x3002f5cc
mov eax, dword [esi]
push ebx
lea ecx, [ebp - 0x620]
push ecx
push ebx
push 0x2001f
and eax, 0x10000000
push ebx
neg eax
push ebx
sbb eax, eax
push ebx
neg eax
add eax, 0x80000001
push 0x300047e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x3002f5d6
call fcn.30022c75
test eax, eax
je 0x3002f681
push 0x300049fc
call fcn.30022d0f
jmp 0x3002f681
cmp dword [ebp + 0xc], ebx
jne 0x3002f5f1
push 0x30004784
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x3002f681
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
cmp esi, ebx
je 0x3002f681
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jmp 0x3002f617
cmp esi, ebx
je 0x3002f681
dec esi
cmp word [ebp + esi*2 - 0x20c], 0x5c
jne 0x3002f615
push 0x74
push 0x300049e0
lea eax, [ebp - 0x20c]
push eax
push 0x300049c8
lea eax, [ebp - 0x61c]
push 0x208
push eax
mov word [ebp + esi*2 - 0x20c], bx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
lea eax, [ebp - 0x61c]
push eax
call fcn.3004eb5c
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x61c]
push eax
push 1
push ebx
push 0x30004784
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.30063125
leave
ret 8
Function at 0x30030f74
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push dword [ebp + 8]
call fcn.30032182
test eax, eax
je 0x30030f8c
xor eax, eax
inc eax
jmp 0x30031012
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 0x30030fcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call fcn.30022c75
test eax, eax
je 0x30031009
push dword [ebp - 4]
push 0x30004e9c
jmp 0x30031002
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 0x3003100d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call fcn.30022c75
test eax, eax
je 0x30031009
push dword [ebp - 4]
push 0x30004e7c
call fcn.30022d92
pop ecx
pop ecx
xor eax, eax
jmp 0x30031010
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0xc
Function at 0x3003126b
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 0x300312c8
push 0x106
push 5
push 5
push 0x44c
push ebx
call fcn.30056028
test eax, eax
jne 0x300312e9
call fcn.30022c75
test eax, eax
je 0x300312f3
push 0x30004f30
call fcn.30022d0f
jmp 0x300312f3
mov eax, dword [ebx]
movzx ecx, word [eax]
push ecx
push edx
push eax
call fcn.30055ce5
test eax, eax
jne 0x300312e9
call fcn.30022c75
test eax, eax
je 0x300312f3
push 0x30004f08
jmp 0x300312c1
push esi
call fcn.3002f274
test eax, eax
jne 0x300312fa
xor eax, eax
jmp 0x30031447
push edi
lea eax, [esi + 0xc]
mov esi, 0x104
push esi
lea ecx, [ebp + 0x1d8]
push ecx
push eax
call fcn.3004fe88
push esi
lea eax, [ebp + 0x1d8]
push eax
push 0x30004ef8
call fcn.3004feca
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 0x3003141e
test dword [ebp + 0x3e0], 0xffffffef
je 0x300313f3
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.3004fe88
push esi
lea eax, [ebp + 0x630]
push eax
push 0x30002eb8
call fcn.3004feca
push esi
lea eax, [ebp + 0x630]
push eax
lea eax, [ebp + 0x40c]
push eax
call fcn.3004feca
push esi
lea eax, [ebp + 0x838]
push eax
lea eax, [ebp + 0x630]
push eax
call fcn.3003032c
test eax, eax
je 0x30031414
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 0x300313ec
test dword [ebp - 0x78], 0xffffffef
je 0x300313ec
mov eax, dword [ebx]
lea ecx, [ebp + 0x630]
push ecx
push eax
call fcn.30055b6b
cmp eax, 0xffffffff
je 0x3003145e
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 0x30031414
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 0x7c], 0xffffffff
cmp dword [ebp - 0x7c], 0xffffffff
jne 0x30031343
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 0x30031444
push esi
call fcn.300310e0
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp + 0xa7c]
pop esi
pop ebx
call fcn.30063125
add ebp, 0xa80
leave
ret 4
call fcn.30022c75
test eax, eax
je 0x30031425
push 0x30004ed0
call fcn.30022d0f
jmp 0x30031425
Function at 0x30031473
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 0x300314d6
push edi
push ebx
mov dword [ebp + 8], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
mov dword [ebp - 8], eax
je 0x300314b1
cmp eax, edi
jbe 0x3003150a
call fcn.30022c75
test eax, eax
je 0x3003164d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x30004fc8
call fcn.30022d92
pop ecx
pop ecx
jmp 0x3003164d
push 1
push 0x1c
push ebx
push 0
mov dword [ebp + 8], SysReAllocString
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x3003150a
call fcn.30022c75
test eax, eax
je 0x3003164d
push 0x30004fa0
call fcn.30022d0f
jmp 0x3003164d
push edi
push ebx
push 0x300054a8
call fcn.3004feca
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 0x30031552
call fcn.30022c75
test eax, eax
je 0x3003154e
push 0x30004f7c
call fcn.30022d0f
and dword [esi + 8], 0
mov eax, dword [esi]
and eax, 7
dec eax
je 0x3003160d
dec eax
je 0x300315c9
dec eax
dec eax
je 0x30031582
call fcn.30022c75
test eax, eax
je 0x3003164d
mov eax, dword [esi]
and eax, 7
push eax
push 0x30004f54
jmp 0x300314ca
push edi
push ebx
push 0x300054f8
call fcn.3004feca
cmp dword [0x30066700], 0
je 0x300315a1
mov eax, dword [0x30066704]
mov dword [esi + 4], eax
jmp 0x300315a8
mov dword [esi + 4], 0x32
cmp dword [ebp - 4], 0
jne 0x300315bd
mov dword [esi + 0x218], 0x30004830
jmp 0x3003163d
mov dword [esi + 0x218], 0x30004854
jmp 0x3003163d
push edi
push ebx
push 0x300054e4
call fcn.3004feca
cmp dword [0x30066700], 0
je 0x300315e8
mov eax, dword [0x30066704]
mov dword [esi + 4], eax
jmp 0x300315ef
mov dword [esi + 4], 0x32
cmp dword [ebp - 4], 0
jne 0x30031601
mov dword [esi + 0x218], 0x30004820
jmp 0x3003163d
mov dword [esi + 0x218], 0x30004840
jmp 0x3003163d
push edi
push ebx
push 0x300054d0
call fcn.3004feca
cmp dword [0x30066700], 0
je 0x3003162c
mov eax, dword [0x30066704]
mov dword [esi + 4], eax
jmp 0x30031633
mov dword [esi + 4], 0x32
mov dword [esi + 0x218], 0x30004810
cmp dword [ebp + 0xc], 0
je 0x30031651
push esi
call fcn.3003126b
test eax, eax
jne 0x30031651
xor eax, eax
jmp 0x30031654
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x30031b33
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 0x30031b5f
push 0x30004754
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x30031bab
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 0x30031b93
cmp eax, 2
jne 0x30031baa
mov eax, dword [esi]
and eax, 0x10000000
push eax
push edi
call fcn.30031a77
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