joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3003e487
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 0x3003e533
cmp dword [ebp + 8], esi
je 0x3003e533
mov edi, 0x10000
push edi
call fcn.300430c2
mov ebx, eax
cmp ebx, esi
je 0x3003e533
push edi
push esi
push ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x8000
push ebx
push dword [ebp + 8]
call fcn.3003e434
test eax, eax
jne 0x3003e4de
push ebx
call fcn.3004311f
mov eax, esi
jmp 0x3003e535
push esi
push esi
push esi
push 1
push dword [ebp + 0x10]
push esi
push 0x40000000
push dword [ebp + 0xc]
call fcn.3005ebd1
mov edi, eax
cmp edi, 0xffffffff
jne 0x3003e53c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 8], eax
je 0x3003e513
cmp eax, 0x21
je 0x3003e513
cmp eax, 0x36
jne 0x3003e52d
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x3003e527
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0x32
jl 0x3003e4de
push ebx
call fcn.3004311f
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.30059e93
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 0x3003e4d4

Function at 0x3003e572
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 0x3003e618
cmp dword [ebp + 8], edi
je 0x3003e618
mov esi, 0x8000
push esi
call fcn.300430c2
mov ebx, eax
cmp ebx, edi
je 0x3003e618
push esi
push edi
push ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push ebx
push dword [ebp + 8]
call fcn.3003e3e0
test eax, eax
jne 0x3003e5c5
push ebx
call fcn.3004311f
mov eax, edi
jmp 0x3003e61a
push edi
push edi
push edi
push 1
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call fcn.3005ebd1
mov esi, eax
cmp esi, 0xffffffff
jne 0x3003e621
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 8], eax
je 0x3003e5f8
cmp eax, 0x21
je 0x3003e5f8
cmp eax, 0x36
jne 0x3003e612
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x3003e60c
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], 0x32
jl 0x3003e5c5
push ebx
call fcn.3004311f
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.30059e02
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 0x3003e5bb
Function at 0x3003eb05
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x3002226c]
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 0x3003ec3c
movzx eax, word [ecx]
xor edx, edx
cmp ax, word [ebp + edx*2 - 0x1c]
jne 0x3003ec1c
push 0x5f
pop eax
inc edx
cmp edx, 0xc
jl 0x3003ec12
cmp ax, si
mov word [ecx], ax
jbe 0x3003ec35
cmp ax, 0x20
jae 0x3003ec35
mov word [ecx], 0x5f
inc ecx
inc ecx
cmp word [ecx], si
jne 0x3003ec0d
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp + eax*4 - 0x7c]
push esi
call fcn.30059e93
mov edi, eax
push edi
push esi
push ebx
call dword [sym.imp.MSVCR80.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x3003ec6d
movzx eax, word [ebx + edi*2]
test ax, ax
je 0x3003ec78
cmp ax, 0x2e
je 0x3003ec78
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0x17
jl 0x3003ec3f
jmp 0x3003ec7d
mov word [ebx], 0x58
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.300696c7
leave
ret 4

Function at 0x3003f6fd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x3002226c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x300cb528], 1
push edi
mov edi, dword [ebp + 8]
jb 0x3003f726
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x3003f78e
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x3003f78b
push ebx
push edi
call fcn.30059e02
mov ebx, eax
lea eax, [ebp - 0x108]
push eax
call fcn.30059e02
lea eax, [ebx + eax + 2]
cmp eax, esi
pop ebx
ja 0x3003f78b
push esi
lea eax, [ebp - 0x108]
push eax
push 0x300041fc
call fcn.3005b427
push esi
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.3005b427
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x3003f78d
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.300696c7
leave
ret 4
Function at 0x3003f859
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 0x3003f8da
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.30043358
test eax, eax
je 0x3003f91d
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 0x3003f909
push dword [ebp - 4]
call fcn.300432ac
cmp esi, ebx
je 0x3003f91d
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 0x3003fd7e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x3002226c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x3003ff48
test byte [ebp + 0xc], 8
je 0x3003ff48
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x118]
push eax
call fcn.30036aab
test eax, eax
je 0x3003ff47
push edi
push esi
lea eax, [ebp - 0x118]
push eax
push 0x300053ac
call fcn.3005b427
push esi
lea eax, [ebp - 0x118]
push eax
push 0x300053a4
call fcn.3005b427
push 1
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
je 0x3003ff46
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 0x3003ff46
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 0x3003ff46
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.300430c2
cmp eax, ebx
mov dword [ebp - 0x120], eax
je 0x3003ff3f
lea ecx, [ebp - 0x11c]
push ecx
push dword [ebp - 0x11c]
push eax
push edi
call dword [0x300d2838]
test eax, eax
je 0x3003ff34
xor esi, esi
test dword [ebp - 0x11c], 0xfffffffc
jbe 0x3003ff34
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 0x3003fee9
lea eax, [ebp - 0x14]
push 0x300053a4
push eax
call dword [sym.imp.MSVCR80.dll__stricmp]
test eax, eax
pop ecx
pop ecx
jne 0x3003fee9
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 0x3003fef9
mov eax, dword [ebp - 0x11c]
inc esi
shr eax, 2
cmp esi, eax
jb 0x3003fe9d
jmp 0x3003ff34
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 0x3003ff34
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.3004311f
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.300696c7
leave
ret 8
Function at 0x3004041d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x3002226c]
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.3006b3fb
test eax, eax
je 0x300405d8
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call fcn.3005b376
lea eax, [ebp - 0x108]
push eax
call fcn.3003dc6b
mov edi, eax
cmp byte [edi], 0x5c
jne 0x300405d7
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 0x300405d6
mov eax, dword [esi + 0xc]
sub eax, ebx
je 0x3004059c
dec eax
je 0x3004057c
dec eax
je 0x30040560
dec eax
jne 0x300405ca
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.3006b370
test eax, eax
je 0x300405ca
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.300430c2
cmp eax, ebx
mov dword [esi + 4], eax
je 0x3004054b
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 0x300405ca
push dword [ebp - 0x110]
call fcn.3004311f
jmp 0x300405ca
push 3
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
push edi
push dword [ebp - 0x10c]
call fcn.3006b370
test eax, eax
je 0x300405ca
jmp 0x300405c4
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.3006b370
test eax, eax
je 0x300405ca
mov dword [esi], ebx
jmp 0x300405ca
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 0x300405ca
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.300696c7
leave
ret 8
Function at 0x300405e7
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.3006b3fb
test eax, eax
jne 0x30040605
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 0x300406f9
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 0x3004065c
inc dword [ebp - 0x10]
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
call fcn.30043358
test eax, eax
jne 0x3004066a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x300406f9
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
jbe 0x3004070d
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 0x300406e8
push dword [ebp - 8]
call fcn.3003d506
test eax, eax
je 0x300406db
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call edi
test eax, eax
jne 0x300406db
push 3
push 0x3008b4b0
push 0x3008b4ac
push str.DigitalProductID
push dword [ebp - 0x14]
call fcn.3006b370
test eax, eax
push dword [ebp - 0x14]
jne 0x300406fd
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jb 0x30040676
jmp 0x3004070d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call fcn.300432ac
xor eax, eax
jmp 0x30040728
mov dword [0x3008b4a8], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call fcn.300432ac
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 0x30040809
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x3002226c]
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 0x30040844
mov ecx, dword [esi + 0x3008b494]
cmp ecx, dword [ebp + 0x10]
jne 0x30040844
xor eax, eax
inc eax
jmp 0x30040933
push edi
mov edi, 0x104
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.3005b376
mov eax, dword [esi + 0x3008b4a0]
cmp eax, ebx
je 0x3004088b
cmp byte [eax], bl
je 0x3004088b
push edi
lea eax, [ebp - 0x108]
push eax
push 0x300041fc
call fcn.3005b427
push edi
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x3008b4a0]
call fcn.3005b427
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.3006b3fb
test eax, eax
je 0x30040910
push dword [ebp - 0x10c]
call fcn.3003dc6b
mov edi, eax
cmp byte [edi], 0x5c
jne 0x30040910
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 0x30040910
mov eax, dword [esi + 0x3008b4a4]
cmp eax, ebx
je 0x300408f3
cmp byte [eax], bl
jne 0x300408f5
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 0x30040914
xor eax, eax
jmp 0x30040932
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.300696c7
leave
ret 0xc

Function at 0x30040991
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [0x3002226c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x30040a6a
call fcn.3003daba
test eax, eax
je 0x300409d3
push 0x300053f0
call fcn.3003db54
push esi
call fcn.3003db54
push 0x300041f0
call fcn.3003db54
cmp dword [0x300cb4ec], 0
jne 0x300409e6
push esi
call fcn.3003ce13
test eax, eax
je 0x300409f0
push esi
call fcn.3003ced6
test eax, eax
jne 0x30040a6a
push 0x824
lea eax, [ebp - 0x828]
push eax
push esi
call fcn.3005b376
cmp dword [ebp + 0xc], 0
je 0x30040a16
lea eax, [ebp - 0x828]
push eax
call fcn.3003d04d
jmp 0x30040a6a
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 0x30040a6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.300696c7
leave
ret 8
Function at 0x30040da3
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 0x30040e2c
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x30040e2b
push esi
call fcn.3003dc93
cmp eax, esi
je 0x30040e2b
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.30043358
test eax, eax
je 0x30040e2a
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 0x30040e22
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push dword [ebp - 4]
call fcn.300432ac
pop ebx
pop esi
pop edi
leave
ret 8

Function at 0x30040f5b
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 0x30040f70
xor eax, eax
jmp 0x30040f73
and eax, 0x10
pop ebp
ret 4
Function at 0x300415a6
Capabilities:
Get common file path
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x3002226c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
je 0x300415e6
lea eax, [ebp - 0x108]
push eax
push 0x300055c0
call edi
push 0x300055b0
call fcn.3003f6fd
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x10c], eax
je 0x300416a2
push 0x3000559c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x30041696
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 0x26
push ebx
call esi
test eax, eax
jne 0x30041636
lea eax, [ebp - 0x108]
push eax
push 0x30005590
call edi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 0x2b
push ebx
call esi
test eax, eax
jne 0x30041656
lea eax, [ebp - 0x108]
push eax
push 0x30005584
call edi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 0x1a
push ebx
call esi
test eax, eax
jne 0x30041676
lea eax, [ebp - 0x108]
push eax
push 0x3000557c
call edi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 5
push ebx
call esi
test eax, eax
jne 0x30041696
lea eax, [ebp - 0x108]
push eax
push 0x30005570
call edi
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x110]
push eax
push 0x20019
push ebx
push 0x3000553c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30041734
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 0x30005534
push dword [ebp - 0x110]
mov dword [ebp - 0x10c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x30041728
lea eax, [ebp - 0x108]
lea esi, [ebp - 0x108]
push eax
dec esi
call fcn.30059e02
cmp byte [eax + esi], 0x5c
jne 0x3004171a
lea eax, [ebp - 0x108]
push eax
call fcn.30059e02
mov byte [eax + esi], bl
lea eax, [ebp - 0x108]
push eax
push 0x30005528
call edi
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.300696c7
leave
ret

Function at 0x30041743
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x30041754
xor eax, eax
jmp 0x300417b1
cmp dword [ebp + 0x10], edi
push esi
je 0x3004177d
push dword [ebp + 0x10]
call fcn.300430c2
mov esi, eax
cmp esi, edi
jne 0x3004176c
xor eax, eax
jmp 0x300417b0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
jmp 0x30041780
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebp + 8]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x3004179e
push esi
call dword [ebp + 8]
jmp 0x300417ad
mov ecx, dword [0x300bccd0]
lea eax, [ebp - 4]
push eax
call fcn.300403e0
mov eax, dword [ebp - 4]
pop esi
pop edi
leave
ret 0xc