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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x970
mov eax, dword [0x3002223c]
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 0x3003df40
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 0x3003df40
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 0x3003df40
cmp dword [ebp - 0x964], 3
je 0x3003de4e
cmp dword [ebp - 0x964], 4
jne 0x3003df40
push dword [ebp - 0x960]
call fcn.30059d82
mov edi, eax
mov esi, 0x30004c28
push esi
mov dword [ebp - 0x930], edi
call fcn.30059d82
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 0x3003dea5
mov esi, 0x30004c30
push esi
call fcn.30059d82
push eax
lea eax, [ebp - 0x92c]
push esi
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x3003df40
push esi
call fcn.30059d82
lea eax, [ebp + eax - 0x92c]
jmp 0x3003debd
test cl, cl
je 0x3003df40
inc eax
mov cl, byte [eax]
cmp cl, 0x2f
jne 0x3003deb4
test cl, cl
je 0x3003df40
mov eax, dword [ebp - 0x960]
lea esi, [edi + eax]
mov edi, 0x30004f48
push edi
call fcn.30059d82
cmp dword [ebp - 0x930], eax
jl 0x3003def9
push eax
mov ecx, esi
sub ecx, eax
push edi
push ecx
call ebx
add esp, 0xc
test eax, eax
jne 0x3003def9
xor eax, eax
inc eax
jmp 0x3003df42
mov edi, 0x30004f3c
push edi
call fcn.30059d82
cmp dword [ebp - 0x930], eax
jl 0x3003df1a
push eax
sub esi, eax
push edi
push esi
call ebx
add esp, 0xc
test eax, eax
je 0x3003def4
mov esi, 0x30004f2c
push esi
call fcn.30059d82
cmp dword [ebp - 0x930], eax
jne 0x3003df40
push esi
push dword [ebp - 0x960]
call dword [sym.imp.MSVCR80.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x3003def4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3006961b
leave
ret 4
Function at 0x3003e3d7
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 0x3003e483
cmp dword [ebp + 8], esi
je 0x3003e483
mov edi, 0x10000
push edi
call fcn.30042ff1
mov ebx, eax
cmp ebx, esi
je 0x3003e483
push edi
push esi
push ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x8000
push ebx
push dword [ebp + 8]
call fcn.3003e384
test eax, eax
jne 0x3003e42e
push ebx
call fcn.3004304e
mov eax, esi
jmp 0x3003e485
push esi
push esi
push esi
push 1
push dword [ebp + 0x10]
push esi
push 0x40000000
push dword [ebp + 0xc]
call fcn.3005eb51
mov edi, eax
cmp edi, 0xffffffff
jne 0x3003e48c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 8], eax
je 0x3003e463
cmp eax, 0x21
je 0x3003e463
cmp eax, 0x36
jne 0x3003e47d
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x3003e477
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0x32
jl 0x3003e42e
push ebx
call fcn.3004304e
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.30059e13
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 0x3003e424

Function at 0x3003e4c2
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 0x3003e568
cmp dword [ebp + 8], edi
je 0x3003e568
mov esi, 0x8000
push esi
call fcn.30042ff1
mov ebx, eax
cmp ebx, edi
je 0x3003e568
push esi
push edi
push ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push ebx
push dword [ebp + 8]
call fcn.3003e330
test eax, eax
jne 0x3003e515
push ebx
call fcn.3004304e
mov eax, edi
jmp 0x3003e56a
push edi
push edi
push edi
push 1
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call fcn.3005eb51
mov esi, eax
cmp esi, 0xffffffff
jne 0x3003e571
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 8], eax
je 0x3003e548
cmp eax, 0x21
je 0x3003e548
cmp eax, 0x36
jne 0x3003e562
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x3003e55c
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0x32
jl 0x3003e515
push ebx
call fcn.3004304e
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.30059d82
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 0x3003e50b
Function at 0x3003ea55
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x3002223c]
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], 0x300050bc
mov dword [ebp - 0x78], 0x300050b4
mov dword [ebp - 0x74], 0x300050ac
mov dword [ebp - 0x70], 0x3000509c
mov dword [ebp - 0x6c], 0x30005094
mov dword [ebp - 0x68], 0x30005088
mov dword [ebp - 0x64], 0x3000507c
mov dword [ebp - 0x60], 0x30005070
mov dword [ebp - 0x5c], 0x30005064
mov dword [ebp - 0x58], 0x30005058
mov dword [ebp - 0x54], 0x3000504c
mov dword [ebp - 0x50], 0x30005040
mov dword [ebp - 0x4c], 0x30005034
mov dword [ebp - 0x48], 0x30005028
mov dword [ebp - 0x44], 0x3000501c
mov dword [ebp - 0x40], 0x30005010
mov dword [ebp - 0x3c], 0x30005004
mov dword [ebp - 0x38], 0x30004ff8
mov dword [ebp - 0x34], 0x30004fec
mov dword [ebp - 0x30], 0x30004fe0
mov dword [ebp - 0x2c], 0x30004fd4
mov dword [ebp - 0x28], 0x30004fc8
mov dword [ebp - 0x24], 0x30004fbc
mov ecx, ebx
je 0x3003eb8c
movzx eax, word [ecx]
xor edx, edx
cmp ax, word [ebp + edx*2 - 0x1c]
jne 0x3003eb6c
push 0x5f
pop eax
inc edx
cmp edx, 0xc
jl 0x3003eb62
cmp ax, si
mov word [ecx], ax
jbe 0x3003eb85
cmp ax, 0x20
jae 0x3003eb85
mov word [ecx], 0x5f
inc ecx
inc ecx
cmp word [ecx], si
jne 0x3003eb5d
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp + eax*4 - 0x7c]
push esi
call fcn.30059e13
mov edi, eax
push edi
push esi
push ebx
call dword [sym.imp.MSVCR80.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x3003ebbd
movzx eax, word [ebx + edi*2]
test ax, ax
je 0x3003ebc8
cmp ax, 0x2e
je 0x3003ebc8
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0x17
jl 0x3003eb8f
jmp 0x3003ebcd
mov word [ebx], 0x58
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3006961b
leave
ret 4

Function at 0x3003f64a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x3002223c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x300c1890], 1
push edi
mov edi, dword [ebp + 8]
jb 0x3003f673
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x3003f6db
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x3003f6d8
push ebx
push edi
call fcn.30059d82
mov ebx, eax
lea eax, [ebp - 0x108]
push eax
call fcn.30059d82
lea eax, [ebx + eax + 2]
cmp eax, esi
pop ebx
ja 0x3003f6d8
push esi
lea eax, [ebp - 0x108]
push eax
push 0x300041cc
call fcn.3005b3a7
push esi
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.3005b3a7
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x3003f6da
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.3006961b
leave
ret 4
Function at 0x3003f7aa
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
mov eax, dword [0x300bfc58]
add esp, 0xc
push 0xfa0
push dword [eax + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 8], ebx
je 0x3003f82d
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push dword [0x300c1868]
call edi
mov esi, eax
inc esi
lea eax, [esi + esi]
push eax
lea eax, [ebp - 4]
push eax
call fcn.30043287
test eax, eax
je 0x3003f876
push esi
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push dword [0x300c1868]
call edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [0x300bfc58]
push ebx
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp - 4]
add eax, 0x258
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 4], ebx
mov esi, eax
je 0x3003f862
push dword [ebp - 4]
call fcn.300431db
cmp esi, ebx
je 0x3003f876
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 0x3003fcd7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x3002223c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x3003fea1
test byte [ebp + 0xc], 8
je 0x3003fea1
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x118]
push eax
call fcn.300369e5
test eax, eax
je 0x3003fea0
push edi
push esi
lea eax, [ebp - 0x118]
push eax
push 0x3000537c
call fcn.3005b3a7
push esi
lea eax, [ebp - 0x118]
push eax
push 0x30005374
call fcn.3005b3a7
push 1
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
je 0x3003fe9f
push 0x3000535c
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 0x3003fe9f
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 0x3003fe9f
lea eax, [ebp - 0x11c]
push eax
push ebx
push ebx
push edi
mov dword [ebp - 0x11c], ebx
call dword [0x300c8b98]
push dword [ebp - 0x11c]
call fcn.30042ff1
cmp eax, ebx
mov dword [ebp - 0x120], eax
je 0x3003fe98
lea ecx, [ebp - 0x11c]
push ecx
push dword [ebp - 0x11c]
push eax
push edi
call dword [0x300c8b98]
test eax, eax
je 0x3003fe8d
xor esi, esi
test dword [ebp - 0x11c], 0xfffffffc
jbe 0x3003fe8d
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x120]
push dword [eax + esi*4]
push edi
call dword [0x300c8ba4]
test eax, eax
jle 0x3003fe42
lea eax, [ebp - 0x14]
push 0x30005374
push eax
call dword [sym.imp.MSVCR80.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x3003fe42
push 0xc
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x120]
push dword [eax + esi*4]
push edi
call dword [0x300c8ba0]
test eax, eax
jne 0x3003fe52
mov eax, dword [ebp - 0x11c]
inc esi
shr eax, 2
cmp esi, eax
jb 0x3003fdf6
jmp 0x3003fe8d
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 0x3003fe8d
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.3004304e
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.3006961b
leave
ret 8
Function at 0x3004034e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x3002223c]
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.3006b34c
test eax, eax
je 0x30040509
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call fcn.3005b2f6
lea eax, [ebp - 0x108]
push eax
call fcn.3003dbbb
mov edi, eax
cmp byte [edi], 0x5c
jne 0x30040508
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 0x30040507
mov eax, dword [esi + 0xc]
sub eax, ebx
je 0x300404cd
dec eax
je 0x300404ad
dec eax
je 0x30040491
dec eax
jne 0x300404fb
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.3006b2c1
test eax, eax
je 0x300404fb
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.30042ff1
cmp eax, ebx
mov dword [esi + 4], eax
je 0x3004047c
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 0x300404fb
push dword [ebp - 0x110]
call fcn.3004304e
jmp 0x300404fb
push 3
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
push edi
push dword [ebp - 0x10c]
call fcn.3006b2c1
test eax, eax
je 0x300404fb
jmp 0x300404f5
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.3006b2c1
test eax, eax
je 0x300404fb
mov dword [esi], ebx
jmp 0x300404fb
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 0x300404fb
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.3006961b
leave
ret 8
Function at 0x30040518
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 0x30004bf4
call fcn.3006b34c
test eax, eax
jne 0x30040536
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 0x3004062a
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 0x3004058d
inc dword [ebp - 0x10]
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
call fcn.30043287
test eax, eax
jne 0x3004059b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x3004062a
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
jbe 0x3004063e
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 0x30040619
push dword [ebp - 8]
call fcn.3003d456
test eax, eax
je 0x3004060c
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x3004060c
push 3
push 0x3008b4b0
push 0x3008b4ac
push str.DigitalProductID
push dword [ebp - 0x14]
call fcn.3006b2c1
test eax, eax
push dword [ebp - 0x14]
jne 0x3004062e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jb 0x300405a7
jmp 0x3004063e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call fcn.300431db
xor eax, eax
jmp 0x30040659
mov dword [0x3008b4a8], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call fcn.300431db
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 0x3004073a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x3002223c]
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 0x30040775
mov ecx, dword [esi + 0x3008b494]
cmp ecx, dword [ebp + 0x10]
jne 0x30040775
xor eax, eax
inc eax
jmp 0x30040864
push edi
mov edi, 0x104
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.3005b2f6
mov eax, dword [esi + 0x3008b4a0]
cmp eax, ebx
je 0x300407bc
cmp byte [eax], bl
je 0x300407bc
push edi
lea eax, [ebp - 0x108]
push eax
push 0x300041cc
call fcn.3005b3a7
push edi
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x3008b4a0]
call fcn.3005b3a7
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.3006b34c
test eax, eax
je 0x30040841
push dword [ebp - 0x10c]
call fcn.3003dbbb
mov edi, eax
cmp byte [edi], 0x5c
jne 0x30040841
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 0x30040841
mov eax, dword [esi + 0x3008b4a4]
cmp eax, ebx
je 0x30040824
cmp byte [eax], bl
jne 0x30040826
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 0x30040845
xor eax, eax
jmp 0x30040863
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.3006961b
leave
ret 0xc

Function at 0x300408c2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [0x3002223c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x3004099b
call fcn.3003da0a
test eax, eax
je 0x30040904
push 0x300053c0
call fcn.3003daa4
push esi
call fcn.3003daa4
push 0x300041c0
call fcn.3003daa4
cmp dword [0x300c1850], 0
jne 0x30040917
push esi
call fcn.3003cd63
test eax, eax
je 0x30040921
push esi
call fcn.3003ce26
test eax, eax
jne 0x3004099b
push 0x824
lea eax, [ebp - 0x828]
push eax
push esi
call fcn.3005b2f6
cmp dword [ebp + 0xc], 0
je 0x30040947
lea eax, [ebp - 0x828]
push eax
call fcn.3003cf9d
jmp 0x3004099b
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 0x3004099b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.3006961b
leave
ret 8
Function at 0x30040cd4
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 0x30040d5d
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x30040d5c
push esi
call fcn.3003dbe3
cmp eax, esi
je 0x30040d5c
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 [0x300c1868]
mov dword [ebp - 8], eax
call ebx
mov esi, eax
inc esi
push esi
lea eax, [ebp - 4]
push eax
call fcn.30043287
test eax, eax
je 0x30040d5b
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 [0x300c1868]
call ebx
test eax, eax
je 0x30040d53
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push dword [ebp - 4]
call fcn.300431db
pop ebx
pop esi
pop edi
leave
ret 8

Function at 0x30040e8c
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 0x30040ea1
xor eax, eax
jmp 0x30040ea4
and eax, 0x10
pop ebp
ret 4