joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4171f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4173a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x410064]
call fcn.00403a0c
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x410064]
call fcn.00403a0c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4172f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [str.756b]
movzx ebx, byte [ebx + 4]
mov edx, dword [str.756b]
add edx, 5
mov ecx, 0x228eff
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, ebx
call fcn.00411498
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00411554
mov eax, dword [ebp - 0x10]
call fcn.00416910
test al, al
je 0x4172d4
lea eax, [ebp - 4]
mov edx, 0x4173bc
call fcn.00404824
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
mov edx, eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 4]
call fcn.004127d4
call fcn.00416b74
test al, al
jne 0x4172ea
mov ecx, 0x4173c8
mov dl, 1
mov eax, dword [0x4067e8]
call fcn.0040ad10
call fcn.004041d4
jmp 0x4172ea
mov ecx, 0x4173c8
mov dl, 1
mov eax, dword [0x4067e8]
call fcn.0040ad10
call fcn.004041d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x417344
mov eax, dword [ebp - 0x10]
call fcn.00403a3c
mov eax, dword [ebp - 0xc]
call fcn.00403a3c
mov eax, dword [ebp - 8]
call fcn.00407b3c
test al, al
je 0x417380
mov eax, dword [ebp - 8]
call fcn.00404bf8
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00404984
mov eax, dword [ebp - 0x18]
call fcn.00404bf8
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4173aa
lea eax, [ebp - 0x18]
call fcn.0040478c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004047b0
ret
Function at 0x4175a0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
xor edx, edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x417681
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x3c
call fcn.00403440
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x20], 1
lea edx, [ebp - 0x40]
xor eax, eax
call fcn.00403264
mov eax, dword [ebp - 0x40]
call fcn.00404bf8
mov dword [ebp - 0x2c], eax
mov eax, ebx
call fcn.00417704
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x44]
call fcn.00407d64
mov eax, dword [ebp - 0x44]
call fcn.00404bf8
mov dword [ebp - 0x24], eax
mov eax, 0x417690
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
jne 0x41765e
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x50]
call fcn.0040a4fc
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
lea eax, [ebp - 0x4c]
push eax
push 0
mov ecx, 0x4176a0
mov dl, 1
mov eax, dword [0x4067e8]
call fcn.0040ad4c
call fcn.004041d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417688
lea eax, [ebp - 0x50]
call fcn.0040478c
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004047b0
ret
Function at 0x406810
Capabilities:
Connect socket

Disassembly:
sbb bl, byte [esi + 6]
mov dword [eax + 0x34], 0x6b2401
sbb ecx, dword [esi]
into
rcl dword [esi - 0x7f717af], 0x55
jmp dword [esi]
dec esi
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push 0x4066e0
xor al, 0x8b
or al, 0x50
call fcn.00405640
push esi
call 0x423f9358
add eax, esp
add al, 0x5e
jg 0x4067f3
add al, 0
nop
add eax, 0x9090b790
nop
nop
nop
nop
nop
nop
nop

Function at 0x40ad90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub eax, 0xffffff94
je 0x40adab
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0x273f
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 0x14]
outsd dx, dword [esi]
dec ebp
mov dl, 0x8b
push ebp
jnp 0x40ae05
push ecx
push edx
and edx, dword [eax + ebx*4]
xchg ebx, eax
add byte [ebx - 0x3c2b3a3c], al
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
mov eax, dword [ebp - 0x7e]
mov edi, dword [edx + 0xc]
add dword [eax + edx + 0x15cffb03], 0x2c
rol dword [eax], 0x76
add byte [eax + eax], bl
add byte [ebx + esi - 0x40], al
pop ebp
ret
mov al, byte [esi]
lcall 0x7657, 0x4588633c
sbb cl, byte [ebx + 0x79bb10ef]
add byte [eax], al
add byte [0x800000ff], ah
adc byte [ebx + 0x79], bh
and eax, 0x800000ff
cdq
das
sti
std
xor byte [eax + 0x1881055], cl
inc ecx
jmp 0x40ae21
mov eax, dword [ebp + 0x10]
mov ebx, 0xe70083
aam 0xff
add byte [eax], al
add byte [ecx + 0x3004fbf7], bl
mov byte [ecx], al
inc ecx
mov al, dl
add al, 0x6b
push cs
mov al, byte [ecx - 0x3a]
stosb byte es:[edi], al
and eax, dword [ecx + 0x4f]
jne 0x40adf9
mov eax, dword [ebp + 0xc]
pop edi
pop esi
invalid
Function at 0x401620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43cd58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x452550]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [0x5b37b0]
push eax
push 0x4539b8
call fcn.004015e0
add esp, 8
mov dword [ebp - 0x18], 0
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp + 8]
call fcn.00403660
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4016ab
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404200
mov eax, dword [ebp - 0x14]
jmp 0x4016ea
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [0x5b37b0]
push edx
push 0x4539b8
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404200
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x402320
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x452550]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], 0x128
mov eax, dword [ebp + 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x130], eax
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4023bd
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x124]
jne 0x402398
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x124]
jmp 0x4023c0
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x402367
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427fb1
mov esp, ebp
pop ebp
ret

Function at 0x4023d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x452550]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x230], 0x128
mov eax, dword [ebp + 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x234], eax
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4024a4
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x228]
jne 0x40247f
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea ecx, [ebp - 0x107]
push ecx
call fcn.00429bc0
add esp, 0xc
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x218]
push eax
call fcn.00402320
add esp, 8
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x218]
jmp 0x4024a7
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40241b
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427fb1
mov esp, ebp
pop ebp
ret
Function at 0x402be0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d091
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x452550]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x11c], 0
lea ecx, [ebp - 0x118]
call fcn.00404060
mov dword [ebp - 4], 0
mov byte [ebp - 0x114], 0
push 0x103
push 0
lea eax, [ebp - 0x113]
push eax
call fcn.00429bc0
add esp, 0xc
lea ecx, [ebp - 0x114]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x118]
call fcn.00404b90
push 0x4481f8
lea ecx, [ebp - 0x118]
call fcn.00403d50
push 0x4481fc
lea ecx, [ebp - 0x118]
call fcn.00403d50
lea eax, [ebp - 0x138]
push eax
call fcn.00413c10
add esp, 4
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x134], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x134]
push edx
lea ecx, [ebp - 0x118]
call fcn.00404040
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x138]
call fcn.00404200
push ecx
mov ecx, esp
mov dword [ebp - 0x13c], esp
lea eax, [ebp - 0x118]
push eax
call fcn.00403ea0
mov dword [ebp - 0x140], eax
call fcn.00414520
add esp, 4
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x120]
mov dword [ecx], edx
push 0x448200
lea ecx, [ebp - 0x118]
call fcn.00403d50
lea eax, [ebp - 0x128]
push eax
call fcn.00413c10
add esp, 4
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
mov dword [ebp - 0x124], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x124]
push edx
lea ecx, [ebp - 0x118]
call fcn.00404040
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.00404200
push str..ini
lea ecx, [ebp - 0x118]
call fcn.00403d50
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403ea0
mov ecx, dword [ebp - 0x11c]
or ecx, 1
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call fcn.00404200
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427fb1
mov esp, ebp
pop ebp
ret
Function at 0x402dc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d0d6
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x452550]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x114], 0
push 0x103
push 0
lea eax, [ebp - 0x113]
push eax
call fcn.00429bc0
add esp, 0xc
lea ecx, [ebp - 0x114]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x118]
call fcn.00404bb0
mov dword [ebp - 4], 0
push 0x44820c
lea ecx, [ebp - 0x118]
call fcn.00403d50
push 0x448210
lea ecx, [ebp - 0x118]
call fcn.00403d50
lea eax, [ebp - 0x128]
push eax
call fcn.00413c10
add esp, 4
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x120], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x120]
push edx
lea ecx, [ebp - 0x118]
call fcn.00404040
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x128]
call fcn.00404200
push ecx
mov ecx, esp
mov dword [ebp - 0x12c], esp
lea eax, [ebp - 0x118]
push eax
call fcn.00403ea0
mov dword [ebp - 0x130], eax
call fcn.00414520
add esp, 4
push 0x448214
lea ecx, [ebp - 0x118]
call fcn.00403d50
lea ecx, [ebp - 0x118]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403ea0
mov edx, dword [ebp - 0x11c]
or edx, 1
mov dword [ebp - 0x11c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call fcn.00404200
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00427fb1
mov esp, ebp
pop ebp
ret

Function at 0x402f30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x452550]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], 0
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.00429bc0
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x402fc9
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea edx, [ebp - 0x108]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404bb0
mov eax, dword [ebp - 0x10c]
or eax, 1
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 8]
jmp 0x402fe8
push 0x447f1b
mov ecx, dword [ebp + 8]
call fcn.00404bb0
mov ecx, dword [ebp - 0x10c]
or ecx, 1
mov dword [ebp - 0x10c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00427fb1
mov esp, ebp
pop ebp
ret
Function at 0x4042d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4042f4
xor eax, eax
jmp 0x404374
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40430b
xor eax, eax
jmp 0x404374
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x404357
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x404357
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40432e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x404363
xor eax, eax
jmp 0x404374
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x404371
xor eax, eax
jmp 0x404374
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x404db0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d1c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x452550]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
push 0
lea ecx, [ebp - 0x18]
call fcn.00405690
mov byte [ebp - 4], 2
push 0x2001f
push 0x448290
push SysReAllocStringLen
lea ecx, [ebp - 0x18]
call fcn.00405320
test eax, eax
jne 0x404e23
push 0xffffffffffffffff
push 0
lea ecx, [ebp + 0xc]
call fcn.00403660
push eax
lea ecx, [ebp + 8]
call fcn.00403660
push eax
lea ecx, [ebp - 0x18]
call fcn.004053c0
lea ecx, [ebp - 0x18]
call fcn.00405620
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00405670
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00404200
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00404200
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x405130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x405139
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40517a
mov eax, dword [ebp - 8]
jmp 0x4051dd
cmp dword [ebp - 0xc], 1
je 0x40518d
cmp dword [ebp - 0xc], 2
je 0x40518d
mov eax, 0xd
jmp 0x4051dd
cmp dword [ebp + 0xc], 0
je 0x4051d3
cmp dword [ebp - 4], 0
je 0x4051c4
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 1
div ecx
test edx, edx
jne 0x4051bb
mov edx, dword [ebp - 4]
shr edx, 0
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax + edx - 1]
test ecx, ecx
je 0x4051c2
mov eax, 0xd
jmp 0x4051dd
jmp 0x4051d3
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 0xc]
mov byte [ecx + eax], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4051f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
xor eax, eax
jne 0x4051f9
cmp dword [ebp + 0xc], 0
je 0x40520c
mov dword [ebp - 0xc], 1
jmp 0x405213
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x405226
mov eax, 0xd
jmp 0x405275
xor edx, edx
jne 0x4051fd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 1], al
add dword [ebp - 8], 1
cmp byte [ebp - 1], 0
jne 0x405239
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
add edx, 1
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4053c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
cmp dword [ebp + 8], 0
je 0x4053d8
mov dword [ebp - 0xc], 1
jmp 0x4053df
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
xor ecx, ecx
jne 0x4053e5
cmp dword [ebp - 0x14], 0
jne 0x4053f9
push 0x80004005
call fcn.00404990
xor edx, edx
jne 0x4053c9
xor eax, eax
jne 0x4053fd
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x405416
cmp dword [ebp + 0x14], 0xffffffff
jne 0x405416
mov eax, 0x57
jmp 0x40548b
cmp dword [ebp + 0x14], 0xffffffff
jne 0x40544f
mov edx, dword [ebp + 8]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov dl, byte [ecx]
mov byte [ebp - 1], dl
add dword [ebp - 8], 1
cmp byte [ebp - 1], 0
jne 0x40542b
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp + 0x14], ecx
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x405460
mov dword [ebp - 0x10], 7
jmp 0x405467
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x20]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4065c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d3c8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x452550]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403ea0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00404600
sub eax, 1
push eax
lea ecx, [ebp - 0x14]
call fcn.00406870
movsx ecx, al
cmp ecx, 0x5c
je 0x40661e
push 0x5c
lea ecx, [ebp - 0x14]
call fcn.00407290
lea ecx, [ebp - 0x3c]
call fcn.004068b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00404060
mov byte [ebp - 4], 2
mov byte [ebp - 0xe], 0
mov dword [ebp - 0x18], 0
jmp 0x40664c
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
lea ecx, [ebp - 0x14]
call fcn.00404600
cmp dword [ebp - 0x18], eax
jge 0x40669f
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406870
movsx ecx, al
cmp ecx, 0x5c
je 0x406687
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.00406870
movzx eax, al
push eax
lea ecx, [ebp - 0x20]
call fcn.00407290
jmp 0x40669d
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00406910
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.00407290
jmp 0x406643
lea ecx, [ebp - 0x1c]
call fcn.00406a20
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x3c]
call fcn.004033b0
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
jmp 0x4066c8
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00406a40
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x3c]
call fcn.004068e0
push eax
lea ecx, [ebp - 0x1c]
call fcn.00406a70
movzx eax, al
test eax, eax
je 0x406712
push 0
lea ecx, [ebp - 0x1c]
call fcn.00403660
mov ecx, eax
call fcn.00403660
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x406706
mov byte [ebp - 0xd], 1
jmp 0x40670a
mov byte [ebp - 0xd], 0
mov cl, byte [ebp - 0xd]
mov byte [ebp - 0xe], cl
jmp 0x4066ba
movzx edx, byte [ebp - 0xe]
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00404200
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00403390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00404200
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4067b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x406817
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
add eax, 0xffffffff
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + 1]
mov byte [ebp - 1], dl
add dword [ebp - 8], 1
cmp byte [ebp - 1], 0
jne 0x4067e4
mov edi, dword [ebp - 8]
mov ecx, 0xa
mov esi, str.MicrosoftInternet_ExplorerQuick_Launch
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x10]
jmp 0x406819
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret