joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479f30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525d08
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0x50]
call fcn.004012b0
mov dword [ebp - 4], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push 0
lea ecx, [ebp - 0x30]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.005209d0
add esp, 8
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x98], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x98]
call fcn.00401340
push eax
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00401320
cmp dword [ebp - 0x54], 0
jne 0x47a04f
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x50]
call fcn.00401380
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00401360
push eax
lea edx, [ebp - 0x30]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x8c]
push ecx
call fcn.005209d0
add esp, 8
mov dword [ebp - 0x9c], eax
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], edx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xa0]
call fcn.00401340
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.00401320
lea ecx, [ebp - 0x50]
call fcn.00401340
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00520fb0
add esp, 8
mov byte [ebp - 4], 4
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402be0
mov eax, dword [ebp - 0x90]
or eax, 1
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00402c20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.00401320
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.004ba1db
mov esp, ebp
pop ebp
ret
Function at 0x47a0c0
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525d75
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x108], 0
lea eax, [ebp - 0xe8]
push eax
call fcn.00521330
add esp, 4
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x110]
call fcn.00402b70
push eax
lea edx, [ebp - 0x2c]
push edx
call fcn.005209d0
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe8]
call fcn.00402c20
lea ecx, [ebp - 0x48]
call fcn.00402b90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004258a0
movzx eax, al
test eax, eax
jne 0x47a265
lea ecx, [ebp - 0x2c]
call fcn.00401340
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47a265
push 0x533ac8
lea ecx, [ebp - 0x2c]
call fcn.00401340
push eax
call fcn.004bb673
add esp, 8
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x47a265
push 2
push 0
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004c076d
add esp, 0xc
mov edx, dword [ebp - 0x4c]
push edx
call fcn.004c0675
add esp, 4
mov dword [ebp - 0x50], eax
push 0
push 0
mov eax, dword [ebp - 0x4c]
push eax
call fcn.004c076d
add esp, 0xc
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.004bffb7
add esp, 4
mov dword [ebp - 0xcc], eax
mov edx, dword [ebp - 0x4c]
push edx
push 1
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0xcc]
push ecx
call fcn.004c04bb
add esp, 0x10
mov dword [ebp - 0xc8], eax
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xc4]
call fcn.0043c630
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [ebp - 0xc4]
call fcn.0043dab0
mov dword [ebp - 0x114], eax
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x118], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x118]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401000
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x104]
call fcn.00402c20
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004bb34d
add esp, 4
lea edx, [ebp - 0x48]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402be0
mov eax, dword [ebp - 0x108]
or eax, 1
mov dword [ebp - 0x108], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00402c20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401320
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.004ba1db
mov esp, ebp
pop ebp
ret
Function at 0x47b3b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x47b3b9
xor ecx, ecx
jne 0x47b3b9
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x47b400
mov eax, dword [ebp - 0xc]
jmp 0x47b45d
cmp dword [ebp - 4], 1
je 0x47b413
cmp dword [ebp - 4], 2
je 0x47b413
mov eax, 0xd
jmp 0x47b45d
cmp dword [ebp + 0xc], 0
je 0x47b451
cmp dword [ebp - 8], 0
je 0x47b449
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x47b440
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x47b447
mov eax, 0xd
jmp 0x47b45d
jmp 0x47b451
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x47b470
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0
push 0x534014
push 0x10000
push 0
push 0x8000004
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x47b4b5
jmp 0x47b4cf
push 0
push 0
push 0
push 6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x47b520
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52602b
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x274], ecx
mov eax, dword [ebp - 0x274]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x274]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x274]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp - 0x21d]
call fcn.00458b70
mov dword [ebp - 4], 0
push 0
push 0
push 0x104
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x21d]
call fcn.00472340
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x47b6cc
push str.KuaiZip.exe
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004c2154
add esp, 0xc
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47b606
mov dword [ebp - 0x264], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d]
call fcn.0046c590
mov eax, dword [ebp - 0x264]
jmp 0x47b6ee
mov dword [ebp - 0x260], 0
push 0x38
push 0
lea eax, [ebp - 0x25c]
push eax
call fcn.004ba280
add esp, 0xc
mov dword [ebp - 0x260], 0x3c
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x250], ecx
mov dword [ebp - 0x24c], str._KZsetup_integration
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x25c], 0x40
lea edx, [ebp - 0x260]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x47b6a8
push 0xffffffffffffffff
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x268], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d]
call fcn.0046c590
mov eax, dword [ebp - 0x268]
jmp 0x47b6ee
mov dword [ebp - 0x26c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d]
call fcn.0046c590
mov eax, dword [ebp - 0x26c]
jmp 0x47b6ee
mov dword [ebp - 0x270], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21d]
call fcn.0046c590
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret

Function at 0x47bb50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x47bb80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov esp, ebp
pop ebp
ret
Function at 0x4802f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526762
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xdc], ecx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xdc]
cmp dword [eax + 0x66c], 0
je 0x48035e
mov ecx, dword [ebp - 0xdc]
mov ecx, dword [ecx + 0x66c]
call dword [0x551c38]
movzx edx, al
test edx, edx
jne 0x48035e
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xdc]
cmp dword [eax + 0x678], 0
je 0x480441
lea ecx, [ebp - 0xd8]
push ecx
mov edx, dword [ebp - 0xdc]
mov eax, dword [edx + 0x678]
mov ecx, dword [ebp - 0xdc]
mov ecx, dword [ecx + 0x678]
mov edx, dword [eax]
mov eax, dword [edx + 0x28]
call eax
mov dword [ebp - 0xe0], eax
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xe4]
call dword [0x551c68]
push eax
lea ecx, [ebp - 0x34]
call fcn.004012e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd8]
call dword [0x551c58]
lea ecx, [ebp - 0x34]
call fcn.00401340
push eax
call fcn.004b9ddb
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jg 0x4803f8
mov dword [ebp - 0x10], 0
jmp 0x480432
push 3
push 0
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x34]
call fcn.0040d8e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.00401340
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x480426
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.00401320
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401320
mov eax, dword [ebp - 0xdc]
cmp dword [eax + 0x668], 0
je 0x4804a0
cmp dword [ebp - 0x10], 0
je 0x48047c
push 1
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ecx + 0x668]
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 0x668]
mov edx, dword [edx]
mov eax, dword [edx + 0xd8]
call eax
jmp 0x4804a0
push 0
mov ecx, dword [ebp - 0xdc]
mov edx, dword [ecx + 0x668]
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 0x668]
mov edx, dword [edx]
mov eax, dword [edx + 0xd8]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret
Function at 0x4804c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5267ae
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf4], ecx
mov eax, dword [ebp - 0xf4]
cmp dword [eax + 0x678], 0
jne 0x480505
jmp 0x480707
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0xf0]
push ecx
mov edx, dword [ebp - 0xf4]
mov eax, dword [edx + 0x678]
mov ecx, dword [ebp - 0xf4]
mov ecx, dword [ecx + 0x678]
mov edx, dword [eax]
mov eax, dword [edx + 0x28]
call eax
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xfc]
call dword [0x551c68]
push eax
lea ecx, [ebp - 0x4c]
call fcn.004012e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xf0]
call dword [0x551c58]
lea ecx, [ebp - 0x4c]
call fcn.00401340
push eax
call fcn.004b9ddb
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 3
jg 0x480593
mov dword [ebp - 0x10], 0
jmp 0x4805cd
push 3
push 0
lea edx, [ebp - 0x6c]
push edx
lea ecx, [ebp - 0x4c]
call fcn.0040d8e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x6c]
call fcn.00401340
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4805c1
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
call fcn.00401320
cmp dword [ebp - 0x10], 0
jne 0x48061a
mov eax, dword [ebp - 0xf4]
cmp dword [eax + 0x668], 0
je 0x480606
push 0
mov ecx, dword [ebp - 0xf4]
mov edx, dword [ecx + 0x668]
mov eax, dword [ebp - 0xf4]
mov ecx, dword [eax + 0x668]
mov edx, dword [edx]
mov eax, dword [edx + 0xd8]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00401320
jmp 0x480707
mov ecx, dword [ebp - 0xf4]
cmp dword [ecx + 0x66c], 0
je 0x4806ae
mov edx, dword [ebp - 0xf4]
mov ecx, dword [edx + 0x66c]
call dword [0x551c38]
movzx eax, al
test eax, eax
je 0x48067b
mov ecx, dword [ebp - 0xf4]
cmp dword [ecx + 0x668], 0
je 0x480679
push 1
mov edx, dword [ebp - 0xf4]
mov eax, dword [edx + 0x668]
mov ecx, dword [ebp - 0xf4]
mov ecx, dword [ecx + 0x668]
mov edx, dword [eax]
mov eax, dword [edx + 0xd8]
call eax
jmp 0x4806ae
mov ecx, dword [ebp - 0xf4]
cmp dword [ecx + 0x668], 0
je 0x4806ae
push 0
mov edx, dword [ebp - 0xf4]
mov eax, dword [edx + 0x668]
mov ecx, dword [ebp - 0xf4]
mov ecx, dword [ecx + 0x668]
mov edx, dword [eax]
mov eax, dword [edx + 0xd8]
call eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.0043a0b0
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.00402b70
push eax
push 0x7ef
mov ecx, dword [ebp - 0xf4]
add ecx, 0x4f8
mov eax, dword [ebp - 0xf4]
mov edx, dword [eax + 0x4f8]
mov eax, dword [edx]
call eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00402c20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00401320
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret
Function at 0x480b60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x26c], ecx
push 0x44
push 0
lea eax, [ebp - 0x268]
push eax
call fcn.004ba280
add esp, 0xc
mov dword [ebp - 0x268], 0x44
push 0x10
push 0
lea ecx, [ebp - 0x220]
push ecx
call fcn.004ba280
add esp, 0xc
xor edx, edx
mov word [ebp - 0x210], dx
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.004ba280
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x5350c8
lea edx, [ebp - 0x210]
push edx
call fcn.004babbc
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x268]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x480c27
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba1db
mov esp, ebp
pop ebp
ret 4

Function at 0x481500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 8], 0
jne 0x481519
mov eax, 1
jmp 0x481622
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x48161d
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
push 0x53518c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x481574
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x481622
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004828fb
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x481613
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
push str.ProgramW6432Dir
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4815df
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.004b9d83
add esp, 4
mov eax, 1
jmp 0x481622
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004c0fee
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004b9d83
add esp, 4
xor eax, eax
jmp 0x481622
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4821a0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push 0
push 1
push 0x5353f0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4821c9
mov eax, dword [ebp - 4]
jmp 0x4821e1
push 8
push 1
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push 0
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4821f0
Capabilities:
Encrypt data using rc4 via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x482218
xor eax, eax
jmp 0x482283
push 0
mov edx, dword [ebp + 0xc]
push edx
call fcn.004ba1f0
add esp, 4
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x48223d
xor eax, eax
jmp 0x482283
lea edx, [ebp - 4]
push edx
push 0x800000
mov eax, dword [ebp - 8]
push eax
push 0x6801
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x482261
xor eax, eax
jmp 0x482283
cmp dword [ebp - 8], 0
je 0x482280
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
jne 0x482280
mov dword [ebp - 8], 0
xor eax, eax
jmp 0x482283
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x482736
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x586318], 0
push esi
jne 0x4826a9
call fcn.004825cf
test eax, eax
je 0x4826ec
mov eax, dword [0x586318]
cmp eax, 1
jne 0x4826ca
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4826ec
pop esi
ret
push eax
call dword [0x586320]
test eax, eax
jne 0x482734
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4826f0
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x586318]
call dword [0x586320]
mov edi, eax
test edi, edi
je 0x482715
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x482731
mov edi, esi
add esi, 0xff0
push edi
push dword [0x586318]
call dword [0x58631c]
add edi, 0x10
cmp edi, esi
jb 0x48271d
mov eax, edi
pop edi
pop esi
ret
jmp 0x482696
Function at 0x48ea49
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jge 0x48ea5f
push 8
pop edi
push 2
call esi
test ax, ax
jge 0x48ea6b
or edi, 1
push 1
call esi
test ax, ax
jge 0x48ea77
or edi, 2
push 0x10
call esi
test ax, ax
jge 0x48ea83
or edi, 4
push 0x12
call esi
test ax, ax
jge 0x48ea8f
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret

Function at 0x48ec0d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x580ca0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x214], 0
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004ba280
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0xffffffffffffffff
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call sym.Install.exe_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004ba1db
leave
ret

Function at 0x4911af
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x4911d4
cmp ebx, dword [esi + 0x54]
je 0x4911d4
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x54]
cmp ebx, eax
je 0x491296
push edi
test eax, eax
je 0x491227
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x54]
mov ecx, esi
call sym.Install.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
mov dword [esi + 0x54], edi
test ebx, ebx
je 0x491295
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x491295
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test al, al
je 0x491295
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xd4]
test al, al
je 0x491295
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x54], ebx
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x108]
xor eax, eax
push eax
push eax
push eax
push str.setfocus
push dword [esi + 0x54]
mov ecx, esi
call sym.Install.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
pop edi
pop esi
pop ebx
leave
ret 4