joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415810
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x430278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push edi
xor edi, edi
mov dword [esp + 0xc], edi
call fcn.00415800
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00415370
add esp, 8
mov ebp, dword [esp + 0x30]
mov cl, byte [esp + 0x10]
mov dword [esp + 0x28], edi
mov byte [ebp], cl
mov ecx, dword [esp + 0x18]
mov dword [ebp + 4], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
mov eax, dword [0x4313b0]
mov ebx, ecx
cmp eax, ebx
jae 0x41586d
mov ebx, eax
lea edx, [esp + 0x10]
cmp ebp, edx
jne 0x41588c
push eax
push ebx
mov ecx, ebp
call fcn.0040ae20
push edi
push edi
mov ecx, ebp
call fcn.0040ae20
jmp 0x415912
cmp ebx, edi
jbe 0x4158d8
cmp ebx, ecx
jne 0x4158d8
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x4158a1
mov eax, 0x4313b4
cmp byte [eax - 1], 0xfe
jae 0x4158d8
push 1
mov ecx, ebp
call fcn.0040aae0
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x4158bd
mov eax, 0x4313b4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x415912
push 1
push ebx
mov ecx, ebp
call fcn.0040af60
test al, al
je 0x415912
push esi
mov esi, dword [esp + 0x18]
cmp esi, edi
jne 0x4158f4
mov esi, 0x4313b4
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.0040af40
xor edi, edi
pop esi
mov ecx, dword [esp + 0x14]
cmp ecx, edi
je 0x415948
mov al, byte [ecx - 1]
test al, al
je 0x41593e
cmp al, 0xff
je 0x41593e
dec al
pop edi
mov byte [ecx - 1], al
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call fcn.00420ca8
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, ebp
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x4159a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp eax, 1
pop edi
jne 0x4159e7
cmp dword [esp + 4], 6
jb 0x4159e7
cmp dword [esp + 8], 1
jb 0x4159e7
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret

Function at 0x4159f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp eax, 1
pop edi
jne 0x415a30
cmp dword [esp + 4], 6
jb 0x415a30
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret
Function at 0x415a40
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp eax, 1
pop edi
jne 0x415a87
cmp dword [esp + 4], 5
jne 0x415a87
cmp dword [esp + 8], 1
jne 0x415a87
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret

Function at 0x415e30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 4]
mov edx, dword [esp + 0x48]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + 4]
mov dword [esp + 4], 0x3c
push ecx
mov dword [esp + 0xc], 0x500
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
neg eax
sbb eax, eax
pop edi
neg eax
add esp, 0x3c
ret

Function at 0x4161f0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
push 0
push 0xf
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41627a
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push ebx
call sub.KERNEL32.DLL_Process32First
mov ebp, dword [esp + 0x13c]
mov edi, dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ecx, dword [esp + 0x18]
push ecx
push 0
push 0x1f0fff
call edi
mov esi, eax
test esi, esi
je 0x41625c
lea edx, [esp + 0x34]
push ebp
push edx
call fcn.004241d6
add esp, 8
test eax, eax
jne 0x41625c
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
cmp eax, dword [esp + 0x18]
jne 0x41626d
lea eax, [esp + 0x10]
push eax
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
je 0x41627a
jmp 0x41622a
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x128
ret
Function at 0x416290
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push str.Kernel32
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov edi, eax
push ebx
push ebx
lea eax, [esp + 0x18]
push 0x1f0fff
push eax
call esi
mov ebp, dword [esp + 0x34]
push eax
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
mov esi, eax
mov eax, dword [esp + 0x10]
test esi, esi
jne 0x4162e1
mov eax, ebp
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
je 0x41633b
cmp dword [esp + 0x18], 0x103
jne 0x41633b
push str.ExitProcess
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, dword [esp + 0x10]
test esi, esi
jne 0x416311
mov ecx, ebp
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x2c]
push 0
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
mov edi, eax
test edi, edi
jne 0x416345
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp + 0x14], eax
jmp 0x416364
mov dword [esp + 0x14], 0x42b
jmp 0x416364
mov eax, dword [esp + 0x10]
test esi, esi
jne 0x41634f
mov eax, ebp
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, 1
test esi, esi
je 0x416373
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test ebx, ebx
jne 0x416382
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x416810
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4303b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
mov dword [esp + 8], ebx
mov al, byte [esp + 0x38]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x18], esp
mov dword [esp + 0x38], ebx
mov byte [ecx], al
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebx
mov edx, dword [0x4313b0]
lea eax, [esp + 0x48]
push edx
push ebx
push eax
call fcn.0040a8e0
sub esp, 0x10
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
mov byte [esp + 0x4c], 1
call fcn.0040a480
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00416920
add esp, 0x18
mov esi, dword [esp + 0x40]
push eax
push esi
mov byte [esp + 0x40], 3
call fcn.00416a70
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp eax, ebx
je 0x4168c0
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4168b7
cmp al, 0xff
je 0x4168b7
dec al
mov byte [ecx], al
jmp 0x4168c0
push ecx
call fcn.00420ca8
add esp, 4
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], ebx
cmp ecx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
je 0x416901
mov al, byte [ecx - 1]
cmp al, bl
je 0x4168f7
cmp al, 0xff
je 0x4168f7
dec al
mov byte [ecx - 1], al
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x24
ret
dec ecx
push ecx
call fcn.00420ca8
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret
Function at 0x416bc0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x430438
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [esp + 0x30]
xor ebx, ebx
push ebx
lea ecx, [esp + 0x10]
mov al, byte [esi]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x10], al
call fcn.0040aae0
mov ecx, dword [0x4313b0]
push ecx
push ebx
push esi
lea ecx, [esp + 0x18]
call fcn.0040a8e0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], ebx
cmp eax, ebx
je 0x416c3d
mov cl, byte [eax - 1]
cmp cl, bl
je 0x416c31
cmp cl, 0xff
je 0x416c31
mov edx, dword [esp + 0x14]
push ebx
push edx
lea ecx, [esp + 0x14]
call fcn.0040af60
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x416c3d
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0x10]
push ebp
push edi
cmp eax, ebx
mov edi, eax
je 0x416c74
mov cl, byte [eax - 1]
cmp cl, bl
je 0x416c64
cmp cl, 0xff
je 0x416c64
mov eax, dword [esp + 0x1c]
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.0040af60
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x416c74
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x416c78
xor ebp, ebp
jmp 0x416ca6
mov edx, dword [esp + 0x1c]
mov cl, byte [eax - 1]
cmp cl, bl
lea ebp, [edx + eax]
je 0x416c9a
cmp cl, 0xff
je 0x416c9a
push ebx
push edx
lea ecx, [esp + 0x1c]
call fcn.0040af60
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x416ca6
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0x18]
mov esi, eax
cmp esi, ebp
je 0x416cc0
movsx ecx, byte [esi]
push ecx
call fcn.0042441a
add esp, 4
mov byte [edi], al
inc esi
inc edi
cmp esi, ebp
jne 0x416cac
mov esi, dword [esp + 0x34]
mov dl, byte [esp + 0x14]
lea ecx, [esp + 0x14]
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x4313b0]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.0040a8e0
mov ecx, dword [esp + 0x18]
pop edi
cmp ecx, ebx
pop ebp
je 0x416d1d
mov al, byte [ecx - 1]
cmp al, bl
je 0x416d13
cmp al, 0xff
je 0x416d13
dec al
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call fcn.00420ca8
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x4179b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push ebx
push esi
lea eax, [esp + 0x10]
push edi
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4179fc
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push edx
push ebx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x417a58
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x14]
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x417a70
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x417a9e
xor eax, eax
ret
mov edx, dword [esp + 0x10]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
je 0x417acb
xor eax, eax
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
ret

Function at 0x417ae0
Capabilities:
Delete registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push eax
push 0x20019
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x417b07
pop edi
xor eax, eax
pop esi
ret
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x417b2f
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x417b48
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret
Function at 0x417eb0
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x408
push ebx
push ebp
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [esp + 0x10]
xor esi, esi
xor eax, eax
push ecx
mov dword [esp + 0x14], esi
push eax
mov dword [esp + 0x18], 4
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x417faa
mov edx, dword [esp + 0x10]
push edx
call fcn.00423f62
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp dword [esp + 0x420], esi
je 0x417f58
xor ecx, ecx
xor edx, edx
mov cl, byte [edi + 0x199]
mov dl, byte [edi + 0x198]
xor eax, eax
push ecx
mov al, byte [edi + 0x197]
push edx
xor ecx, ecx
push eax
mov cl, byte [edi + 0x196]
xor edx, edx
mov dl, byte [edi + 0x195]
xor eax, eax
mov al, byte [edi + 0x194]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push str._0.2x__0.2x__0.2x__0.2x__0.2x__0.2x
push ecx
jmp 0x417f98
xor edx, edx
xor eax, eax
mov dl, byte [edi + 0x199]
mov al, byte [edi + 0x198]
xor ecx, ecx
push edx
mov cl, byte [edi + 0x197]
push eax
xor edx, edx
push ecx
mov dl, byte [edi + 0x196]
xor eax, eax
mov al, byte [edi + 0x195]
xor ecx, ecx
mov cl, byte [edi + 0x194]
push edx
push eax
push ecx
lea edx, [esp + 0x30]
push str._0.2x_0.2x_0.2x_0.2x_0.2x_0.2x
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
push edi
call fcn.00420ca8
add esp, 4
mov ebp, dword [esp + 0x41c]
mov al, byte [esp + 0x17]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
mov byte [ebp], al
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp + 4], esi
mov ebx, ecx
mov dword [ebp + 8], esi
cmp ebx, 0xfffffffd
mov dword [ebp + 0xc], esi
jbe 0x417fdb
call fcn.004227d6
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x41800b
mov al, byte [ecx - 1]
test al, al
je 0x41800b
cmp al, 0xff
je 0x41800b
cmp ebx, esi
jne 0x41803a
dec al
push esi
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.0040aae0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x408
ret
cmp ebx, esi
jne 0x418025
push 1
mov ecx, ebp
call fcn.0040aae0
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x408
ret
mov eax, dword [ebp + 0xc]
cmp eax, 0x1f
ja 0x418031
cmp eax, ebx
jae 0x418042
push 1
mov ecx, ebp
call fcn.0040aae0
push ebx
mov ecx, ebp
call fcn.0040b5a0
mov edi, dword [ebp + 4]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
pop edi
pop esi
mov byte [ebx + eax], 0
mov eax, ebp
pop ebp
pop ebx
add esp, 0x408
ret
Function at 0x4183d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
push ebx
push ebp
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x125]
mov byte [esp + 0x124], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x124]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x124]
push ecx
push edx
mov byte [esp + 0x12d], bl
call fcn.00418350
add esp, 8
test eax, eax
jne 0x418432
pop edi
pop ebp
pop ebx
add esp, 0x21c
ret
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x24]
push eax
push ecx
push str._I64d
push edx
call ebp
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x41847f
pop edi
pop ebp
pop ebx
add esp, 0x21c
ret
push esi
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4184bc
push 0x438b34
call fcn.0042409f
mov cl, byte [esp + esi + 0x2c]
add esp, 4
add cl, al
lea edi, [esp + 0x28]
mov byte [esp + esi + 0x28], cl
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp esi, ecx
jb 0x418492
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0xa9]
mov byte [esp + 0xa8], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x28]
lea ecx, [esp + 0xa8]
push eax
push 0x4389c8
push ecx
mov byte [esp + esi + 0x35], bl
call ebp
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x230]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x438b30
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x21c
ret
Function at 0x418950
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 0x400
push esi
mov esi, dword [esp + 0x40c]
push edi
push str.QuickLaunch
push esi
call fcn.004241d6
add esp, 8
test eax, eax
jne 0x4189f8
push ebx
lea eax, [esp + 0xc]
push 0x400
push eax
push 0x43e7b0
push str.AppData
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocStringLen
call fcn.004179b0
mov edi, str.MicrosoftInternet_ExplorerQuick_Launch
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x40c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x400
ret
lea ecx, [esp + 8]
push 0x400
push ecx
push 0x43e7b0
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocStringLen
call fcn.004179b0
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x40c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x400
ret

Function at 0x418a50
Capabilities:
Get common file path

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 8]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea ecx, [esp]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp]
mov ecx, dword [esp + 8]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop ecx
ret
Function at 0x418aa0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x618
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
push 0x26
call fcn.00418a50
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x418b43
lea ecx, [esp + 0x20c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea edx, [esp + 0x310]
lea eax, [esp + 0x414]
push edx
lea ecx, [esp + 0x51c]
push eax
lea edx, [esp + 0x110]
push ecx
lea eax, [esp + 0x218]
push edx
push eax
call fcn.00423d56
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
add esp, 0x14
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x108]
push str.Program_Files
push ecx
lea edx, [esp + 0xc]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [esp + 0x624]
mov edx, dword [esp + 0x620]
lea ecx, [esp + 4]
push eax
push ecx
push edx
call fcn.004248be
add esp, 0xc
pop edi
add esp, 0x618
ret

Function at 0x418b70
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x418ba7
cmp dword [esp + 0x10], 2
jne 0x418ba7
cmp dword [esp + 4], 6
jb 0x418ba7
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret
Function at 0x41a1e0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.004185a0
mov ebx, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
add esp, 4
test eax, eax
je 0x41a1fd
push esi
call ebx
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push 0
push 0
push esi
push edi
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov edi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41a222
push esi
call ebx
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
pop ebx
ret

Function at 0x41a780
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe]
mov word [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 4]
push eax
push 0x4318d0
push 1
push 0
push 0x4318c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
pop edi
jge 0x41a7c7
mov eax, 0x80004005
add esp, 0x210
ret
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
mov edx, dword [esp + 0x224]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp]
mov edx, dword [esp + 0x21c]
push 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [esp]
mov edx, dword [esp + 0x220]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x431a80
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x41a83e
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 0x80004005
add esp, 0x210
ret
mov eax, dword [esp + 0x218]
push esi
lea edx, [esp + 0xc]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, esi
pop esi
add esp, 0x210
ret