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

Disassembly:
push 0xffffffffffffffff
push 0x56c058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x5706e8]
push 0
lea ecx, [esp + 0x20]
call fcn.005619e3
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004a5b80
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00561911
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0055e0f5
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0055e0f5
push 1
push 0
push 0
mov ecx, esi
call fcn.0055e09d
push 1
push 0
push 1
mov ecx, esi
call fcn.0055e09d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00561a55
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4a63a0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x56c078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.005619e3
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004a5b80
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00561911
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x5706e8]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4a6464
cmp dword [esp + 0x40], 1
jne 0x4a6462
cmp ecx, eax
jge 0x4a6464
mov eax, ecx
cmp eax, 0xc8
jge 0x4a6470
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004a6220
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x5706e4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00561a55
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x550b30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x56ec90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.00545848
mov eax, dword [0x634390]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0054577a
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00551670
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x550bd7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x550bce
cmp al, 0xff
je 0x550bce
dec al
mov byte [ecx], al
jmp 0x550bd7
push ecx
call fcn.0055abb8
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x550c08
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x550bff
cmp al, 0xff
je 0x550bff
dec al
mov byte [ecx], al
jmp 0x550c08
push ecx
call fcn.0055abb8
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x429d70
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x401a96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0xd8
call fcn.0041f690
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401768
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x34]
call dword [fcn.004011b0]
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [fcn.00401094]
mov dword [ebp - 4], 3
push 0x405684
mov eax, dword [ebp - 0x34]
push eax
call dword [fcn.00401058]
mov edx, eax
lea ecx, [ebp - 0x90]
call dword [fcn.00401218]
lea ecx, [ebp - 0x90]
push ecx
call fcn.0042a3b0
lea ecx, [ebp - 0x90]
call dword [fcn.00401244]
mov dword [ebp - 4], 4
lea edx, [ebp - 0x30]
mov dword [ebp - 0x9c], edx
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x9c]
mov dword [eax], 0xc
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x9c]
mov dword [ecx + 8], 1
mov dword [ebp - 4], 7
mov edx, dword [ebp - 0x9c]
mov dword [edx + 4], 0
mov dword [ebp - 4], 8
mov dword [ebp - 0x9c], 0
mov dword [ebp - 4], 9
lea eax, [ebp - 0x7c]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 4], 0xa
mov ecx, dword [ebp - 0xa0]
mov dword [ecx], 0x44
mov dword [ebp - 4], 0xb
mov edx, dword [ebp - 0xa0]
mov dword [edx + 0x2c], 1
mov dword [ebp - 4], 0xc
mov ecx, dword [ebp + 0x10]
call dword [0x4010f8]
mov ecx, dword [ebp - 0xa0]
mov word [ecx + 0x30], ax
mov dword [ebp - 4], 0xd
mov dword [ebp - 0xa0], 0
mov dword [ebp - 4], 0xe
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0xe4]
push ecx
push 0x40499c
call dword [fcn.00401118]
push eax
push 0
push 0
push 0x20
push 1
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push 0x4056a0
call dword [fcn.00401058]
mov edx, eax
lea ecx, [ebp - 0x90]
call dword [fcn.00401218]
push eax
lea edx, [ebp - 0x94]
push edx
call dword [fcn.004011f0]
push eax
push 0
call fcn.004225e0
mov dword [ebp - 0x98], eax
call dword [fcn.00401064]
lea eax, [ebp - 0xe4]
push eax
lea ecx, [ebp - 0x7c]
push ecx
push 0x40499c
call dword [fcn.0040104c]
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x90]
push ecx
push 2
call dword [fcn.004011b8]
add esp, 0xc
lea edx, [ebp - 0xe4]
push edx
push 0x40499c
call dword [fcn.00401210]
mov dword [ebp - 4], 0xf
movsx eax, word [ebp + 0xc]
test eax, eax
je 0x429fb5
mov dword [ebp - 4], 0x10
push 0xffff
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.00422238
call dword [fcn.00401064]
mov dword [ebp - 4], 0x12
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 0x13
mov eax, dword [ebp - 0x8c]
push eax
call fcn.004219b4
call dword [fcn.00401064]
mov dword [ebp - 4], 0x14
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.004219b4
call dword [fcn.00401064]
push 0x40c443
jmp 0x42a018
lea ecx, [ebp - 0xe4]
push ecx
push 0x40499c
call dword [fcn.00401210]
lea ecx, [ebp - 0x34]
call dword [fcn.00401244]
lea edx, [ebp - 0x7c]
push edx
push 0x40499c
call dword [fcn.00401060]
ret
Function at 0x430269
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
cmp byte [ecx], bl
push edi
mov dword [ebp - 4], ebx
mov edx, ecx
je 0x430283
inc edx
cmp byte [edx], bl
jne 0x43027e
mov esi, dword [ebp + 0x10]
dec edx
mov edi, esi
cmp edx, ecx
jb 0x430295
mov al, byte [edx]
dec edx
mov byte [edi], al
inc edi
jmp 0x430289
mov byte [edi], bl
cmp byte [esi], bl
mov edx, esi
je 0x4302a2
inc edx
cmp byte [edx], bl
jne 0x43029d
dec edx
cmp byte [ecx], bl
mov dword [ebp + 8], edx
mov edi, ecx
je 0x4302b1
inc edi
cmp byte [edi], bl
jne 0x4302ac
dec edi
cmp ecx, edi
jae 0x4302d0
mov edx, esi
sub edx, ecx
mov al, byte [ecx]
xor byte [ecx + edx], al
movsx eax, byte [ecx + edx]
add dword [ebp - 4], eax
inc ecx
cmp ecx, edi
jb 0x4302ba
mov edx, dword [ebp + 8]
xor ebx, ebx
cmp esi, edx
mov ecx, esi
jae 0x4302dc
inc ecx
dec edx
cmp ecx, edx
jb 0x4302d6
mov eax, dword [ebp - 4]
push 0xa
lea edi, [ecx - 1]
xor edx, edx
pop ecx
div ecx
mov eax, dword [ebp + 0xc]
add dl, 0x61
cmp esi, edi
ja 0x43030a
mov cl, byte [esi]
and cl, 0xf
add cl, dl
mov byte [eax], cl
mov cl, byte [esi]
sar cl, 4
inc eax
add cl, dl
mov byte [eax], cl
inc eax
inc esi
jmp 0x4302ef
pop edi
mov byte [eax], bl
pop esi
pop ebx
leave
ret
Function at 0x4011c0
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0
push 0
mov ecx, dword [0x405654]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push ecx
call dword [0x404018]
test eax, eax
jne 0x401202
call dword [0x404030]
push 1
call fcn.00401220
add esp, 4
ret
push eax
call dword [0x404020]
push 1
call fcn.00401220
add esp, 4
ret

Function at 0x401220
Capabilities:
Delete registry value
Set registry value

Disassembly:
sub esp, 0x20c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x1c]
push str.SYSTEMCurrentControlSetControlUsbFlags
push eax
mov dword [esp + 0x18], 0
mov byte [esp + 0x1f], 1
call dword [0x4040d0]
add esp, 8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
mov ebp, dword [0x404004]
push ecx
push edx
push 0
push 0xf003f
push 1
push 0x405658
lea eax, [esp + 0x34]
push 0
push eax
push 0x80000002
call ebp
mov esi, dword [esp + 0x220]
mov ebx, dword [0x40401c]
test eax, eax
jne 0x4012db
test esi, esi
je 0x4012c9
mov edx, dword [0x405924]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x17]
push 1
push ecx
push 3
push 0
push edx
push eax
call ebx
mov edx, dword [0x405920]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 1
push eax
push str.usbmpid
push ecx
call ebx
jmp 0x4012db
mov edx, dword [0x405924]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [0x40400c]
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x404010]
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlClass36FC9E60_C465_11CF_8056_444553540000
push 0x80000002
call dword [0x404024]
test eax, eax
jne 0x40136e
test esi, esi
je 0x401353
mov edi, dword [0x40402c]
push 8
push 8
call edi
push eax
call dword [0x404034]
mov ecx, dword [str.mpfilt]
mov esi, eax
mov dword [eax], ecx
mov dx, word [0x405108]
push 8
push esi
mov word [eax + 4], dx
mov eax, dword [esp + 0x18]
push 7
push 0
push str.LowerFilters
push eax
call ebx
push esi
push 0
call edi
push eax
call dword [0x404038]
jmp 0x401363
mov ecx, dword [esp + 0x10]
push str.LowerFilters
push ecx
call dword [0x40400c]
mov edx, dword [esp + 0x10]
push edx
call dword [0x404010]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push 0xf003f
push 1
push 0x405658
lea edx, [esp + 0x34]
push 0
push edx
push 0x80000002
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret

Function at 0x4013a0
Capabilities:
Delete service

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x405654]
push esi
push 0xf01ff
push eax
push ecx
call dword [0x404014]
mov esi, eax
test esi, esi
je 0x4013e2
push esi
call dword [section..rdata]
test eax, eax
jne 0x4013cf
call dword [0x404030]
push esi
call dword [0x404020]
push 0
call fcn.00401220
add esp, 4
pop esi
ret
call dword [0x404030]
push 0
call fcn.00401220
add esp, 4
pop esi
ret
Function at 0x408866
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410204
push 0x4101fc
push str.FlsGetValue
push 0x21
call fcn.00408723
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40889d
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4088a5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41020c
push 0x410204
push str.FlsSetValue
push 0x22
call fcn.00408723
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4088df
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x40d5a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d5cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d5cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40df50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x471a8b
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.004662d3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40dfd2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00463f7d
mov eax, dword [eax]
push 0x4a61f0
push eax
call fcn.00456444
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046655e
test bl, bl
je 0x40dfd2
push 0x4a61f0
lea ecx, [esp + 0xc]
call fcn.004668ee
push 0x4a9d6c
lea ecx, [esp + 0xc]
call fcn.004668ee
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 0x40e00e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046655e
jmp 0x40e0d9
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 0x40e092
lea edx, [esp + 0x7c]
push 0x4a9d68
push edx
call fcn.00456444
add esp, 8
test eax, eax
je 0x40e092
lea eax, [esp + 0x7c]
push 0x4a9d64
push eax
call fcn.00456444
add esp, 8
test eax, eax
je 0x40e092
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 0x40e022
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.0046655e
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 0x40e8d0
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 0x40e932
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 0x40e940
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x471b0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b08b0]
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 0x40ea78
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40e9a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046655e
xor eax, eax
jmp 0x40eaef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046669b
push esi
lea ecx, [esp + 0xc]
call fcn.0046692a
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 0x40eacd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040e8d0
test eax, eax
jne 0x40eacd
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 closesocket
mov ecx, edi
call fcn.0040e8d0
test eax, eax
jne 0x40eacd
lea eax, [esp + 0x14]
push 0x4a9d80
push eax
call fcn.00457480
mov esi, eax
add esp, 8
test esi, esi
jne 0x40eaac
lea ecx, [esp + 0x14]
push 0x4a9d7c
push ecx
call fcn.00457400
mov esi, eax
add esp, 8
test esi, esi
jne 0x40eaac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40eaaf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046664b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40e9be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046655e
xor eax, eax
jmp 0x40eaef
mov byte [esi], 0
push 0x4a9d78
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.0046655e
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 0x420420
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 0x42048e
cmp si, 0x69
ja 0x42048e
add esi, 0xffd0
cmp si, 0x11
je 0x42045e
push 0x11
call edi
test ax, ax
jge 0x42045e
or esi, 0x2000
cmp si, 0x10
je 0x420473
push 0x10
call edi
test ax, ax
jge 0x420473
or esi, 0x4000
cmp si, 0x12
je 0x420488
push 0x12
call edi
test ax, ax
jge 0x420488
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42049b
mov esi, 0xbd
jmp 0x42044f
cmp si, 0x6e
jne 0x4204a8
mov esi, 0xbe
jmp 0x42044f
cmp si, 0x6f
jne 0x420449
mov esi, 0xbf
jmp 0x42044f

Function at 0x421c50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4c0fd0]
xor edx, edx
cmp eax, edx
jne 0x421c76
xor eax, eax
mov byte [eax + 0x4c0ed0], al
inc eax
cmp eax, 0x100
jl 0x421c5e
mov dword [0x4c0fd0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4c0ed0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x421d07
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 0x421cda
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 0x421ca8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x421d80
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 0x421dd3
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 0x421dba
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 0x428810
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x4289a8
cmp ebp, ebx
jle 0x4289a8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x42886e
dec eax
or eax, 0xfffffff8
inc eax
je 0x428875
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x428884
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42888b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0046629f
add esp, 4
cmp eax, ebx
je 0x4288ac
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0046629f
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x42899e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x428985
mov al, byte [edx]
cmp al, 0xc0
jbe 0x428971
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x428966
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x428974
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x428974
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x428910
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x428901
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret