joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3003dec5
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x970
mov eax, dword [0x300222cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x970]
push 0
push eax
mov dword [ebp - 0x934], 0x824
call sub.MSVCR80.dll_memset
add esp, 0xc
test esi, esi
lea eax, [ebp - 0x108]
mov dword [ebp - 0x970], edi
mov dword [ebp - 0x960], eax
mov dword [ebp - 0x95c], 0x104
je 0x3003e06f
mov edi, 0x10000000
push edi
lea eax, [ebp - 0x934]
push eax
lea eax, [ebp - 0x92c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
je 0x3003e06f
lea eax, [ebp - 0x970]
push eax
push edi
push dword [ebp - 0x934]
lea eax, [ebp - 0x92c]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x3003e06f
cmp dword [ebp - 0x964], 3
je 0x3003df7d
cmp dword [ebp - 0x964], 4
jne 0x3003e06f
push dword [ebp - 0x960]
call fcn.30059eb2
mov edi, eax
mov esi, 0x30004c58
push esi
mov dword [ebp - 0x930], edi
call fcn.30059eb2
mov ebx, dword [sym.imp.MSVCR80.dll__strnicmp]
push eax
lea eax, [ebp - 0x92c]
push esi
push eax
call ebx
add esp, 0xc
test eax, eax
je 0x3003dfd4
mov esi, 0x30004c60
push esi
call fcn.30059eb2
push eax
lea eax, [ebp - 0x92c]
push esi
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x3003e06f
push esi
call fcn.30059eb2
lea eax, [ebp + eax - 0x92c]
jmp 0x3003dfec
test cl, cl
je 0x3003e06f
inc eax
mov cl, byte [eax]
cmp cl, 0x2f
jne 0x3003dfe3
test cl, cl
je 0x3003e06f
mov eax, dword [ebp - 0x960]
lea esi, [edi + eax]
mov edi, 0x30004f78
push edi
call fcn.30059eb2
cmp dword [ebp - 0x930], eax
jl 0x3003e028
push eax
mov ecx, esi
sub ecx, eax
push edi
push ecx
call ebx
add esp, 0xc
test eax, eax
jne 0x3003e028
xor eax, eax
inc eax
jmp 0x3003e071
mov edi, 0x30004f6c
push edi
call fcn.30059eb2
cmp dword [ebp - 0x930], eax
jl 0x3003e049
push eax
sub esi, eax
push edi
push esi
call ebx
add esp, 0xc
test eax, eax
je 0x3003e023
mov esi, 0x30004f5c
push esi
call fcn.30059eb2
cmp dword [ebp - 0x930], eax
jne 0x3003e06f
push esi
push dword [ebp - 0x960]
call dword [sym.imp.MSVCR80.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x3003e023
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30069776
leave
ret 4
Function at 0x3003e506
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
mov dword [ebp - 4], esi
je 0x3003e5b2
cmp dword [ebp + 8], esi
je 0x3003e5b2
mov edi, 0x10000
push edi
call fcn.30043102
mov ebx, eax
cmp ebx, esi
je 0x3003e5b2
push edi
push esi
push ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x8000
push ebx
push dword [ebp + 8]
call fcn.3003e4b3
test eax, eax
jne 0x3003e55d
push ebx
call fcn.3004315f
mov eax, esi
jmp 0x3003e5b4
push esi
push esi
push esi
push 1
push dword [ebp + 0x10]
push esi
push 0x40000000
push dword [ebp + 0xc]
call fcn.3005ec81
mov edi, eax
cmp edi, 0xffffffff
jne 0x3003e5bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 8], eax
je 0x3003e592
cmp eax, 0x21
je 0x3003e592
cmp eax, 0x36
jne 0x3003e5ac
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x3003e5a6
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0x32
jl 0x3003e55d
push ebx
call fcn.3004315f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push esi
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 8]
push eax
push ebx
call fcn.30059f43
add eax, eax
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
jmp 0x3003e553

Function at 0x3003e5f1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
mov dword [ebp - 4], edi
je 0x3003e697
cmp dword [ebp + 8], edi
je 0x3003e697
mov esi, 0x8000
push esi
call fcn.30043102
mov ebx, eax
cmp ebx, edi
je 0x3003e697
push esi
push edi
push ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push ebx
push dword [ebp + 8]
call fcn.3003e45f
test eax, eax
jne 0x3003e644
push ebx
call fcn.3004315f
mov eax, edi
jmp 0x3003e699
push edi
push edi
push edi
push 4
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call fcn.3005ec81
mov esi, eax
cmp esi, 0xffffffff
jne 0x3003e6a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 8], eax
je 0x3003e677
cmp eax, 0x21
je 0x3003e677
cmp eax, 0x36
jne 0x3003e691
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x3003e68b
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0x32
jl 0x3003e644
push ebx
call fcn.3004315f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push ebx
call fcn.30059eb2
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc edi
jmp 0x3003e63a
Function at 0x3003eb84
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x300222cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp word [ebx], si
push edi
mov word [ebp - 0x1c], 0x3a
mov word [ebp - 0x1a], 0x5c
mov word [ebp - 0x18], 0x2f
mov word [ebp - 0x16], 0x3c
mov word [ebp - 0x14], 0x3e
mov word [ebp - 0x12], 0x22
mov word [ebp - 0x10], 0x7c
mov word [ebp - 0xe], 0x2a
mov word [ebp - 0xc], 0x3f
mov word [ebp - 0xa], 0x26
mov word [ebp - 8], 0x2c
mov word [ebp - 6], 0x25
mov dword [ebp - 0x7c], 0x300050ec
mov dword [ebp - 0x78], 0x300050e4
mov dword [ebp - 0x74], 0x300050dc
mov dword [ebp - 0x70], 0x300050cc
mov dword [ebp - 0x6c], 0x300050c4
mov dword [ebp - 0x68], 0x300050b8
mov dword [ebp - 0x64], 0x300050ac
mov dword [ebp - 0x60], 0x300050a0
mov dword [ebp - 0x5c], 0x30005094
mov dword [ebp - 0x58], 0x30005088
mov dword [ebp - 0x54], 0x3000507c
mov dword [ebp - 0x50], 0x30005070
mov dword [ebp - 0x4c], 0x30005064
mov dword [ebp - 0x48], 0x30005058
mov dword [ebp - 0x44], 0x3000504c
mov dword [ebp - 0x40], 0x30005040
mov dword [ebp - 0x3c], 0x30005034
mov dword [ebp - 0x38], 0x30005028
mov dword [ebp - 0x34], 0x3000501c
mov dword [ebp - 0x30], 0x30005010
mov dword [ebp - 0x2c], 0x30005004
mov dword [ebp - 0x28], 0x30004ff8
mov dword [ebp - 0x24], 0x30004fec
mov ecx, ebx
je 0x3003ecbb
movzx eax, word [ecx]
xor edx, edx
cmp ax, word [ebp + edx*2 - 0x1c]
jne 0x3003ec9b
push 0x5f
pop eax
inc edx
cmp edx, 0xc
jl 0x3003ec91
cmp ax, si
mov word [ecx], ax
jbe 0x3003ecb4
cmp ax, 0x20
jae 0x3003ecb4
mov word [ecx], 0x5f
inc ecx
inc ecx
cmp word [ecx], si
jne 0x3003ec8c
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp + eax*4 - 0x7c]
push esi
call fcn.30059f43
mov edi, eax
push edi
push esi
push ebx
call dword [sym.imp.MSVCR80.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x3003ecec
movzx eax, word [ebx + edi*2]
test ax, ax
je 0x3003ecf7
cmp ax, 0x2e
je 0x3003ecf7
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0x17
jl 0x3003ecbe
jmp 0x3003ecfc
mov word [ebx], 0x58
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30069776
leave
ret 4

Function at 0x3003f77c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x300222cc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x300cb528], 1
push edi
mov edi, dword [ebp + 8]
jb 0x3003f7a5
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x3003f80d
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x3003f80a
push ebx
push edi
call fcn.30059eb2
mov ebx, eax
lea eax, [ebp - 0x108]
push eax
call fcn.30059eb2
lea eax, [ebx + eax + 2]
cmp eax, esi
pop ebx
ja 0x3003f80a
push esi
lea eax, [ebp - 0x108]
push eax
push 0x300041fc
call fcn.3005b4d7
push esi
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.3005b4d7
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x3003f80c
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.30069776
leave
ret 4
Function at 0x3003f8d8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x58], 0x44
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0xfa0
push dword [0x300bfc8c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 8], ebx
je 0x3003f959
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push dword [0x300cb504]
call edi
mov esi, eax
inc esi
lea eax, [esi + esi]
push eax
lea eax, [ebp - 4]
push eax
call fcn.30043398
test eax, eax
je 0x3003f99c
push esi
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push dword [0x300cb504]
call edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp - 4]
push 0x300bfebc
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 4], ebx
mov esi, eax
je 0x3003f988
push dword [ebp - 4]
call fcn.300432ec
cmp esi, ebx
je 0x3003f99c
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x3003fdfd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x300222cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x3003ffc7
test byte [ebp + 0xc], 8
je 0x3003ffc7
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x118]
push eax
call fcn.30036b28
test eax, eax
je 0x3003ffc6
push edi
push esi
lea eax, [ebp - 0x118]
push eax
push 0x300053ac
call fcn.3005b4d7
push esi
lea eax, [ebp - 0x118]
push eax
push 0x300053a4
call fcn.3005b4d7
push 1
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
je 0x3003ffc5
push 0x3000538c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp esi, ebx
je 0x3003ffc5
push dword [ebp + 8]
sub esi, edi
push ebx
push 0x43a
mov dword [ebp - 0x124], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x3003ffc5
lea eax, [ebp - 0x11c]
push eax
push ebx
push ebx
push edi
mov dword [ebp - 0x11c], ebx
call dword [0x300d2838]
push dword [ebp - 0x11c]
call fcn.30043102
cmp eax, ebx
mov dword [ebp - 0x120], eax
je 0x3003ffbe
lea ecx, [ebp - 0x11c]
push ecx
push dword [ebp - 0x11c]
push eax
push edi
call dword [0x300d2838]
test eax, eax
je 0x3003ffb3
xor esi, esi
test dword [ebp - 0x11c], 0xfffffffc
jbe 0x3003ffb3
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x120]
push dword [eax + esi*4]
push edi
call dword [0x300d2844]
test eax, eax
jle 0x3003ff68
lea eax, [ebp - 0x14]
push 0x300053a4
push eax
call dword [sym.imp.MSVCR80.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x3003ff68
push 0xc
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x120]
push dword [eax + esi*4]
push edi
call dword [0x300d2840]
test eax, eax
jne 0x3003ff78
mov eax, dword [ebp - 0x11c]
inc esi
shr eax, 2
cmp esi, eax
jb 0x3003ff1c
jmp 0x3003ffb3
mov ecx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x130]
add eax, ecx
lea ecx, [ebp - 0x124]
push ecx
push ebx
push ebx
push eax
push 0x10000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
cmp esi, ebx
je 0x3003ffb3
push 0xf
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x120]
call fcn.3004315f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.30069776
leave
ret 8
Function at 0x3004045f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x300222cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x120]
push ecx
push eax
call fcn.3006b4aa
test eax, eax
je 0x3004061a
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call fcn.3005b426
lea eax, [ebp - 0x108]
push eax
call fcn.3003dce8
mov edi, eax
cmp byte [edi], 0x5c
jne 0x30040619
push ebx
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor ebx, ebx
push ebx
lea eax, [ebp - 0x108]
mov byte [edi], bl
push eax
push dword [ebp - 0x120]
inc edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30040618
mov eax, dword [esi + 0xc]
sub eax, ebx
je 0x300405de
dec eax
je 0x300405be
dec eax
je 0x300405a2
dec eax
jne 0x3004060c
push 1
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x110]
push eax
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], ebx
call fcn.3006b41f
test eax, eax
je 0x3004060c
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x110]
push ebx
push ebx
call edi
mov dword [ebp - 0x114], eax
add eax, eax
push eax
mov dword [ebp - 0x124], eax
call fcn.30043102
cmp eax, ebx
mov dword [esi + 4], eax
je 0x3004058d
push dword [ebp - 0x114]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x110]
push ebx
push ebx
call edi
mov eax, dword [ebp - 0x124]
mov dword [esi + 8], eax
mov dword [esi], 1
cmp dword [ebp - 0x110], ebx
je 0x3004060c
push dword [ebp - 0x110]
call fcn.3004315f
jmp 0x3004060c
push 3
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
push edi
push dword [ebp - 0x10c]
call fcn.3006b41f
test eax, eax
je 0x3004060c
jmp 0x30040606
xor ebx, ebx
inc ebx
push ebx
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
push edi
push dword [ebp - 0x10c]
call fcn.3006b41f
test eax, eax
je 0x3004060c
mov dword [esi], ebx
jmp 0x3004060c
lea eax, [ebp - 0x118]
push eax
lea eax, [esi + 4]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x118], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x3004060c
mov dword [esi], 1
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30069776
leave
ret 8
Function at 0x30040629
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x30004c24
call fcn.3006b4aa
test eax, eax
jne 0x30040647
leave
ret
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
mov ebx, 0x20019
push ebx
xor esi, esi
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call edi
test eax, eax
jne 0x3004073b
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x3004069e
inc dword [ebp - 0x10]
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
call fcn.30043398
test eax, eax
jne 0x300406ac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x3004073b
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
jbe 0x3004074f
mov eax, dword [ebp - 0x10]
push esi
push esi
push esi
push esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x3004072a
push dword [ebp - 8]
call fcn.3003d583
test eax, eax
je 0x3004071d
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x3004071d
push 3
push 0x3008b4b0
push 0x3008b4ac
push str.DigitalProductID
push dword [ebp - 0x14]
call fcn.3006b41f
test eax, eax
push dword [ebp - 0x14]
jne 0x3004073f
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jb 0x300406b8
jmp 0x3004074f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call fcn.300432ec
xor eax, eax
jmp 0x3004076a
mov dword [0x3008b4a8], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call fcn.300432ec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x3004084b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x300222cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
imul esi, esi, 0x18
xor ebx, ebx
cmp dword [esi + 0x3008b490], ebx
je 0x30040886
mov ecx, dword [esi + 0x3008b494]
cmp ecx, dword [ebp + 0x10]
jne 0x30040886
xor eax, eax
inc eax
jmp 0x30040975
push edi
mov edi, 0x104
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.3005b426
mov eax, dword [esi + 0x3008b4a0]
cmp eax, ebx
je 0x300408cd
cmp byte [eax], bl
je 0x300408cd
push edi
lea eax, [ebp - 0x108]
push eax
push 0x300041fc
call fcn.3005b4d7
push edi
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x3008b4a0]
call fcn.3005b4d7
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.3006b4aa
test eax, eax
je 0x30040952
push dword [ebp - 0x10c]
call fcn.3003dce8
mov edi, eax
cmp byte [edi], 0x5c
jne 0x30040952
push ebx
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x20006
push ebx
push ebx
mov byte [edi], bl
push ebx
push dword [ebp - 0x10c]
inc edi
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x30040952
mov eax, dword [esi + 0x3008b4a4]
cmp eax, ebx
je 0x30040935
cmp byte [eax], bl
jne 0x30040937
mov eax, edi
push 4
pop edi
push edi
lea ecx, [ebp + 0x10]
push ecx
push edi
push ebx
push eax
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x30040956
xor eax, eax
jmp 0x30040974
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x3008b494], eax
xor eax, eax
inc eax
mov dword [esi + 0x3008b498], edi
mov dword [esi + 0x3008b490], eax
mov dword [esi + 0x3008b49c], ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.30069776
leave
ret 0xc

Function at 0x300409d3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [0x300222cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x30040aac
call fcn.3003db37
test eax, eax
je 0x30040a15
push 0x300053f0
call fcn.3003dbd1
push esi
call fcn.3003dbd1
push 0x300041f0
call fcn.3003dbd1
cmp dword [0x300cb4ec], 0
jne 0x30040a28
push esi
call fcn.3003ce90
test eax, eax
je 0x30040a32
push esi
call fcn.3003cf53
test eax, eax
jne 0x30040aac
push 0x824
lea eax, [ebp - 0x828]
push eax
push esi
call fcn.3005b426
cmp dword [ebp + 0xc], 0
je 0x30040a58
lea eax, [ebp - 0x828]
push eax
call fcn.3003d0ca
jmp 0x30040aac
push 0x38
lea eax, [ebp - 0x860]
push 0
push eax
call sub.MSVCR80.dll_memset
lea eax, [ebp - 0x828]
mov dword [ebp - 0x854], eax
add esp, 0xc
lea eax, [ebp - 0x864]
push eax
mov dword [ebp - 0x864], 0x3c
mov dword [ebp - 0x848], 0xa
mov dword [ebp - 0x860], 0x100
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x30040aac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30069776
leave
ret 8
Function at 0x30040de5
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x30040e6e
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x30040e6d
push esi
call fcn.3003dd10
cmp eax, esi
je 0x30040e6d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push edi
push edi
push edi
sub eax, esi
sar eax, 1
push eax
push esi
push edi
push dword [0x300cb504]
mov dword [ebp - 8], eax
call ebx
mov esi, eax
inc esi
push esi
lea eax, [ebp - 4]
push eax
call fcn.30043398
test eax, eax
je 0x30040e6c
push esi
push edi
push dword [ebp - 4]
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push edi
push esi
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 0xc]
push edi
push dword [0x300cb504]
call ebx
test eax, eax
je 0x30040e64
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push dword [ebp - 4]
call fcn.300432ec
pop ebx
pop esi
pop edi
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x30040fb2
xor eax, eax
jmp 0x30040fb5
and eax, 0x10
pop ebp
ret 4