joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d3740
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
mov edi, dword [esi + 4]
xor edx, edx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x10], edi
mov edi, dword [esi]
mov dword [esp + 0x24], edi
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 8]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov edi, 0x20
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
mov esi, ecx
sub edx, 0x61c88647
shl esi, 4
add esi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, ebp
mov ebp, dword [esp + 0x18]
xor esi, ebx
lea ebx, [edx + ecx]
xor esi, ebx
mov ebx, dword [esp + 0x14]
add eax, esi
mov esi, eax
shl esi, 4
add esi, ebx
mov ebx, eax
shr ebx, 5
add ebx, ebp
xor esi, ebx
lea ebx, [edx + eax]
xor esi, ebx
add ecx, esi
dec edi
jne 0x6d3776
mov edx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [edx], eax
mov dword [edx + 4], ecx
pop ebx
add esp, 0xc
ret 8

Function at 0x6d3940
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov ebx, 4
sub esi, ecx
lea eax, [edi + ecx]
lea edx, [esp + ebp + 0x10]
add edi, ebx
mov cl, byte [esi + eax]
mov byte [edx], cl
mov byte [eax], cl
add edx, 4
inc eax
dec ebx
jne 0x6d3963
inc ebp
cmp ebp, 4
jl 0x6d394b
cmp edi, 0xb0
jge 0x6d3a1a
mov ebp, 0x6b1f58
xor eax, eax
lea ecx, [esp + 0x10]
inc eax
mov edx, eax
and edx, reloc.WSOCK32.dll_closesocket
jns 0x6d399e
dec edx
or edx, 0xfffffffc
inc edx
xor ebx, ebx
add ecx, 4
mov bl, byte [esp + edx*4 + 0x13]
mov dl, byte [ebx + 0x6b1d58]
mov bl, byte [ecx - 4]
xor bl, dl
cmp eax, 4
mov byte [ecx - 4], bl
jl 0x6d398e
mov al, byte [ebp]
mov cl, byte [esp + 0x10]
xor cl, al
add ebp, 4
mov byte [esp + 0x10], cl
mov esi, 1
lea eax, [esp + esi + 0x10]
mov ecx, 4
mov dl, byte [eax - 1]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
add eax, 4
dec ecx
jne 0x6d39d8
inc esi
cmp esi, 4
jl 0x6d39cf
xor esi, esi
lea eax, [esp + esi + 0x10]
mov ecx, 4
mov ebx, dword [esp + 0x24]
mov dl, byte [eax]
add eax, 4
mov byte [edi + ebx], dl
inc edi
dec ecx
jne 0x6d39f8
inc esi
cmp esi, 4
jl 0x6d39ef
cmp edi, 0xb0
jl 0x6d3988
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x6d3a30
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
push ebp
push esi
call fcn.006d3ac0
add esp, 8
lea edi, [ebp + 0x10]
mov ebx, 9
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x6b1d58]
mov byte [eax + esi - 1], dl
jl 0x6d3a50
push 0
push esi
call fcn.006d3af0
push esi
call fcn.006d3b40
push edi
push esi
call fcn.006d3ac0
add esp, 0x14
add edi, 0x10
dec ebx
jne 0x6d3a4e
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x6b1d58]
mov byte [eax + esi - 1], dl
jl 0x6d3a85
push 0
push esi
call fcn.006d3af0
add ebp, 0xa0
push ebp
push esi
call fcn.006d3ac0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x6d3ac0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push ebx
push esi
sub ecx, eax
mov esi, 0x10
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x6d3ad1
pop esi
pop ebx
ret

Function at 0x6e1410
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
mov bx, word [esp + 0x48]
push esi
mov esi, dword [esp + 0x50]
cmp bx, 4
mov word [esi], 0
jbe 0x6e1433
pop esi
xor al, al
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.006e1100
lea ecx, [esp + 0x38]
push 0x10
push ecx
call fcn.006e1150
lea edx, [esp + 0x18]
push 0x10
push edx
call fcn.006e11f0
lea eax, [esp + 0x18]
add bl, 0x31
push eax
call fcn.006be330
and eax, 0xffff
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xc]
mov byte [esp + eax + 0x1c], bl
push 0x10
push edx
lea eax, [esp + 0x24]
push 0x6b27a4
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x6e14e3
lea edx, [esp + 8]
push 0x2c
push edx
call fcn.006e13e0
test ax, ax
je 0x6e14ad
and eax, 0xffff
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x6e14cf
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x6e14cf
lea ecx, [esp + 0xa]
push esi
push ecx
call fcn.006be440
test al, al
jne 0x6e14e3
jmp 0x6e14de
lea edx, [esp + 8]
push esi
push edx
call fcn.006be3a0
test al, al
jne 0x6e14e3
mov word [esi], 0
mov ax, word [esi]
test ax, ax
je 0x6e14fe
cmp ax, 0xffff
je 0x6e14fe
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret 8
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret 8
Function at 0x6e1510
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
mov bx, word [esp + 0x48]
push esi
mov esi, dword [esp + 0x50]
cmp bx, 4
mov word [esi], 0
jbe 0x6e1533
pop esi
xor al, al
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.006e1100
lea ecx, [esp + 0x38]
push 0x10
push ecx
call fcn.006e1150
lea edx, [esp + 0x18]
push 0x10
push edx
call fcn.006e11f0
lea eax, [esp + 0x18]
add bl, 0x31
push eax
call fcn.006be330
and eax, 0xffff
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xc]
mov byte [esp + eax + 0x1c], bl
push 0x10
push edx
lea eax, [esp + 0x24]
push 0x6b27a4
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x6e15de
lea edx, [esp + 8]
push 0x2c
push edx
call fcn.006e13e0
test ax, ax
je 0x6e15de
and eax, 0xffff
mov cl, byte [esp + eax + 9]
and cl, 0xdf
cmp cl, 0x54
jne 0x6e15de
cmp byte [esp + eax + 0xa], 0x3a
jne 0x6e15de
lea edx, [esp + eax + 0xb]
push esi
push edx
call fcn.006be3a0
test al, al
je 0x6e15d9
mov ax, word [esi]
cmp ax, 1
jl 0x6e15d9
cmp ax, 7
jle 0x6e15de
mov word [esi], 0
xor eax, eax
cmp word [esi], ax
pop esi
pop ebx
setne al
add esp, 0x40
ret 8

Function at 0x6e15f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
lea eax, [esp]
push esi
push 0x10
push eax
call fcn.006e1100
lea ecx, [esp + 0x24]
push 0x10
push ecx
call fcn.006e1150
lea edx, [esp + 0x14]
push 0x10
push edx
call fcn.006e12b0
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.006e1270
lea ecx, [esp + 4]
lea edx, [esp + 0x34]
push ecx
push 0x10
push edx
lea eax, [esp + 0x20]
push 0x6b27a4
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
je 0x6e1660
lea edx, [esp + 0x34]
lea eax, [esp + 0x44]
push edx
push eax
call fcn.006be1e0
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
xor eax, eax
test esi, esi
setne al
pop esi
add esp, 0x50
ret 8

Function at 0x6e1670
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp]
push 0x10
push eax
call fcn.006e1100
lea ecx, [esp + 0x20]
push 0x10
push ecx
call fcn.006e1150
lea edx, [esp + 0x10]
push 0x10
push edx
call fcn.006e1230
lea eax, [esp]
lea ecx, [esp + 0x10]
push eax
push 0
lea edx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor edx, edx
mov ecx, dword [esp + 0x34]
test eax, eax
setne dl
mov word [ecx], ax
mov al, dl
add esp, 0x30
ret 4
Function at 0x6e16d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
lea eax, [esp]
push esi
mov esi, dword [esp + 0x78]
push 0x10
push 0
push eax
mov word [esi], 0
call fcn.006be350
lea ecx, [esp + 0x14]
push 0x10
push ecx
call fcn.006e1100
lea edx, [esp + 0x34]
push 0x10
push edx
call fcn.006e1150
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.006e11a0
lea ecx, [esp + 0x44]
push 0x10
push ecx
call fcn.006e1300
lea edx, [esp + 0x54]
push 0x10
push edx
call fcn.006e1390
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.006e1350
lea ecx, [esp + 0x14]
lea edx, [esp + 4]
push ecx
push 0x10
push edx
lea eax, [esp + 0x30]
push 0x6b27a4
lea ecx, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x6e17be
lea edx, [esp + 0x44]
lea eax, [esp + 4]
push edx
push eax
call fcn.006be1e0
test al, al
je 0x6e177f
xor eax, eax
mov word [esi], 2
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
lea ecx, [esp + 0x54]
lea edx, [esp + 4]
push ecx
push edx
call fcn.006be1e0
test al, al
je 0x6e17a6
xor eax, eax
mov word [esi], 3
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
lea eax, [esp + 0x64]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.006be1e0
test al, al
je 0x6e17be
mov word [esi], 1
xor eax, eax
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
Function at 0x4016b9
Capabilities:
Get file system object information

Disassembly:
mov dword [0x4061db], 0
mov eax, dword [0x4061db]
mov ecx, 0
push ecx
xor ecx, ecx
push ecx
call dword [sym.imp.USER32.DLL_LoadMenuW]
mov dword [0x40600d], 0
mov eax, dword [0x40600d]
mov dword [0x406039], 0
mov ecx, dword [0x406039]
push ecx
push 0
pop ecx
push ecx
call dword [sym.imp.USER32.DLL_LoadMenuW]
mov edx, 0
mov eax, edx
mov dword [0x406168], eax
push 0xf78
pop ebx
sub ebx, edi
cmp ebx, 0xbce
jbe 0x401723
rol ebx, 6
shr ebx, 1
add ebx, dword [0x40607d]
sub ebx, 0x5ae
add ebx, 0xf65
add ebx, esi
mov ecx, ebx
add ecx, ebx
add ecx, 0xd7
ja 0x401753
sub ecx, 0x19c
je 0x401753
add ecx, dword [0x40606f]
mov dword [0x4060a8], ecx
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push 0x406109
push 0x21405e
pop edx
shl edx, 1
call dword [edx]
push 0
push 0
push 0
push 0
push 0x406109
mov edx, dword [sym.imp.shell32.dll_SHGetFileInfoA]
call edx
push 0
push 0
push 0
push 0
push 0x406109
mov edx, 0x2140ec
shl edx, 1
call dword [edx]
mov ecx, 0
inc ecx
sub ecx, ecx
sub ecx, 0xbb6
cmp ecx, 0x3e
jb 0x4017bc
dec ecx
rol ecx, 8
sub ecx, 0xa67
jbe 0x4017cd
sub ecx, dword [0x406024]
add ecx, 0x858
inc ecx
ror ecx, 1
sub ecx, dword [0x40609f]
add dword [0x4060c2], ecx
sub eax, 0x13479e5
mov ebx, 0x182
shr ebx, 7
mov ecx, ebx
sub ecx, ecx
ror ecx, 1
sub ecx, dword [0x40616d]
add ecx, eax
sub ecx, 0xb9b
rol ecx, 1
sub ecx, dword [0x406015]
add ecx, ecx
mov dword [0x4061f8], ecx
sub eax, 0xfe8b6d2b
mov dword [0x4061b9], eax
lea ecx, [ecx + 0x406054]
add ecx, 0x82b
rol ecx, 3
dec ecx
sub ecx, esi
sub dword [0x40601f], ecx
add ecx, dword [0x406138]
shl ecx, 1
inc ecx
shl ecx, 1
add dword [0x406232], ecx
push dword [0x4061b9]
lea ecx, [eax + 0x406171]
shl ecx, 1
sub ecx, 0xa5
mov dword [0x406196], ecx
shr ecx, 1
add ecx, dword [0x406141]
dec ecx
sub ecx, 0x882
sub ecx, ebx
mov eax, ecx
sub eax, 0x643
jne 0x401880
add eax, dword [0x406228]
add dword [0x4060c7], eax
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4eddc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb7000]
push edi
jmp 0x4eddda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4edde1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4eddd0
mov eax, 1
add ebx, ebx
jne 0x4eddf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ede04
jne 0x4ede23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ede23
dec eax
add ebx, ebx
jne 0x4ede10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4edde8
add ebx, ebx
jne 0x4ede1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ede75
xor ecx, ecx
sub eax, 3
jb 0x4ede3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4edeaa
sar eax, 1
mov ebp, eax
jmp 0x4ede46
add ebx, ebx
jne 0x4ede46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ede14
inc ecx
add ebx, ebx
jne 0x4ede54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ede14
add ebx, ebx
jne 0x4ede61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ede56
jne 0x4ede72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ede56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ede94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ede86
jmp 0x4eddd6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ede94
add edi, ecx
jmp 0x4eddd6
pop esi
mov edi, esi
mov ecx, 0x3132
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4edeb2
cmp byte [edi], 0x19
jne 0x4edeb2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4edeb7
lea edi, [esi + 0xea000]
mov eax, dword [edi]
or eax, eax
je 0x4edf2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15410c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x154224]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4edee4
mov ecx, edi
jns 0x4edf13
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x154228]
or eax, eax
je 0x4edf29
mov dword [ebx], eax
add ebx, 4
jmp 0x4edf01
call dword [esi + 0x154238]
mov ebp, dword [esi + 0x15422c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4edf63
sub esp, 0xffffff80
jmp 0x453cde
Function at 0x438df9
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00438fa9
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 0x438ef7
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 0x438e9a
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x438edd
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x438eb1
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x438ecc
test al, 0x40
je 0x438ec3
mov ecx, dword [edi + 0x20]
jmp 0x438eca
test al, 0x80
je 0x438edd
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x438edd
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 0x438e69
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x409c20
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4816ab
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.00476412
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409ca2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00473d77
mov eax, dword [eax]
push 0x4b51c0
push eax
call fcn.00453324
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047669d
test bl, bl
je 0x409ca2
push 0x4b51c0
lea ecx, [esp + 0xc]
call fcn.00476a2d
push 0x4b8d80
lea ecx, [esp + 0xc]
call fcn.00476a2d
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 0x409cde
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047669d
jmp 0x409da9
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 0x409d62
lea edx, [esp + 0x7c]
push 0x4b8d7c
push edx
call fcn.00453324
add esp, 8
test eax, eax
je 0x409d62
lea eax, [esp + 0x7c]
push 0x4b8d78
push eax
call fcn.00453324
add esp, 8
test eax, eax
je 0x409d62
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 0x409cf2
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.0047669d
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 0x40a5a0
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 0x40a602
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 0x40a610
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48172b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4bf610]
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 0x40a748
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40a676
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047669d
xor eax, eax
jmp 0x40a7bf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004767da
push esi
lea ecx, [esp + 0xc]
call fcn.00476a69
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 0x40a79d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040a5a0
test eax, eax
jne 0x40a79d
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.0040a5a0
test eax, eax
jne 0x40a79d
lea eax, [esp + 0x14]
push 0x4b8d94
push eax
call fcn.004544e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a77c
lea ecx, [esp + 0x14]
push 0x4b8d90
push ecx
call fcn.00454460
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a77c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40a77f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047678a
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40a68e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047669d
xor eax, eax
jmp 0x40a7bf
mov byte [esi], 0
push 0x4b8d8c
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.0047669d
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 0x41ae70
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 0x41aede
cmp si, 0x69
ja 0x41aede
add esi, 0xffd0
cmp si, 0x11
je 0x41aeae
push 0x11
call edi
test ax, ax
jge 0x41aeae
or esi, 0x2000
cmp si, 0x10
je 0x41aec3
push 0x10
call edi
test ax, ax
jge 0x41aec3
or esi, 0x4000
cmp si, 0x12
je 0x41aed8
push 0x12
call edi
test ax, ax
jge 0x41aed8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41aeeb
mov esi, 0xbd
jmp 0x41ae9f
cmp si, 0x6e
jne 0x41aef8
mov esi, 0xbe
jmp 0x41ae9f
cmp si, 0x6f
jne 0x41ae99
mov esi, 0xbf
jmp 0x41ae9f

Function at 0x41cf90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4e0f30]
xor edx, edx
cmp eax, edx
jne 0x41cfb6
xor eax, eax
mov byte [eax + 0x4e0e30], al
inc eax
cmp eax, 0x100
jl 0x41cf9e
mov dword [0x4e0f30], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4e0e30
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41d047
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 0x41d01a
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 0x41cfe8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41d0c0
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 0x41d113
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 0x41d0fa
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