joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe4890
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
je 0xe49d2
mov eax, dword [0x4e73e0]
push ebx
mov ebx, dword [ebp + 0x101c]
push esi
push edi
mov edi, dword [eax + 0x60f4]
push ebp
mov dword [esp + 0x18], ebx
call fcn.000e4f40
mov esi, dword [0x4e73e0]
add dword [esi + 0x670c], 1
mov eax, edi
sub eax, 1
je 0xe49b5
sub eax, 1
jne 0xe49cf
mov eax, dword [esi + 0x5b18]
test ah, 1
jne 0xe48eb
test al, 0xc0
je 0xe48f8
push 0
call fcn.000eb530
mov esi, dword [0x4e73e0]
mov ecx, dword [esi + 0x2520]
cmp dword [ecx + 0x21d0], 6
jne 0xe496a
mov eax, esi
call fcn.000a9dc0
test eax, eax
mov esi, dword [0x4e73e0]
je 0xe496a
cmp dword [esi + 0x3dc0], 0xbb8
jae 0xe496a
mov ebx, 0x20
lea esp, [esp]
mov edx, dword [esi + 0x670c]
and edx, 0xff
imul edx, dword [esi + 0x60c0]
mov eax, 1
sub eax, dword [esi + 0x6708]
lea edi, [esi + 8]
add edx, eax
add edx, edx
push edx
call fcn.000eb480
sub ebx, 1
mov esi, dword [0x4e73e0]
jne 0xe4930
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + 0x6104]
mov ecx, eax
and eax, 0xf0000
and ecx, 0xf
cmp eax, 0x10000
jbe 0xe4992
lea eax, [ecx - 1]
test ecx, eax
je 0xe4992
test ebx, ebx
jne 0xe4992
push ebp
call fcn.000e5c50
mov cl, byte [esi + 0x6106]
mov eax, dword [esi + 0x6708]
add eax, 1
xor edx, edx
pop edi
and ecx, 0xf
div ecx
mov dword [esi + 0x6708], edx
pop esi
pop ebx
pop ebp
ret 4
test byte [esi + 0x5b19], 1
je 0xe49c5
push 0
call fcn.000eb530
test ebx, ebx
jne 0xe49cf
push ebp
call fcn.000e5c50
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x11e2f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor ebx, ebx
test esi, esi
jle 0x11e31a
mov eax, ebx
xor edx, edx
mov ecx, 0x11
div ecx
mov al, 0x29
mov ecx, edx
shl al, cl
mov cl, bl
add cl, 1
add ebx, 1
xor al, cl
cmp ebx, esi
mov byte [ebx + edi - 1], al
jl 0x11e2f7
pop ebx
ret

Function at 0x11e3a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xe4
cmp dword [0x5274d8], 0
push esi
mov dword [esp + 8], 0
jne 0x11e46e
push edi
mov edi, 0x11e350
mov dword [esp + 8], 0
call fcn.0011e270
xor ecx, ecx
cmp byte [eax], cl
mov esi, eax
lea edx, [esp + 0x24]
je 0x11e3e9
jmp 0x11e3e0
add ecx, 1
cmp byte [ecx + eax], 0
jne 0x11e3e0
add ecx, 1
je 0x11e402
mov edi, edi
movzx di, byte [esi]
mov word [edx], di
add edx, 2
add esi, 1
sub ecx, 1
jne 0x11e3f0
call fcn.0011e320
mov esi, dword [esp + 0xf0]
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push 0x46
lea edx, [esp + 0x34]
push edx
push 0x23205c
push esi
call sub.WIN32K.SYS_EngDeviceIoControl
test eax, eax
pop edi
jne 0x11e441
cmp dword [esp + 8], eax
je 0x11e441
mov dword [0x5274d8], 1
push ebx
xor ebx, ebx
mov eax, ebx
xor edx, edx
mov ecx, 0x11
div ecx
mov al, 0x29
mov ecx, edx
shl al, cl
mov cl, bl
add cl, 1
add ebx, 1
xor al, cl
cmp ebx, 0xc8
mov byte [esp + ebx + 0x23], al
jl 0x11e444
pop ebx
jmp 0x11e475
mov esi, dword [esp + 0xec]
cmp dword [0x5274d4], 0
jne 0x11e504
cmp dword [0x5274d8], 0
je 0x11e504
xor edx, edx
test esi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 4], 0
mov dword [esp + 0x1c], edx
je 0x11e504
lea eax, [esp + 4]
push eax
push 0x14
lea ecx, [esp + 0x14]
push ecx
push edx
push edx
push 0x233028
push esi
call sub.WIN32K.SYS_EngDeviceIoControl
test eax, eax
jne 0x11e504
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [0x5274c0], edx
mov edx, dword [esp + 0x18]
mov dword [0x5274c4], eax
mov eax, dword [esp + 0x1c]
mov dword [0x5274c8], ecx
mov dword [0x5274cc], edx
mov dword [0x5274d0], eax
mov dword [0x5274d4], 1
pop esi
add esp, 0xe4
ret 4
Function at 0x2acbf0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, dword [ebp + 4]
xor eax, eax
cmp ebx, ecx
push esi
jle 0x2acc06
mov ebx, ecx
xor esi, esi
test ebx, ebx
jle 0x2acc2f
push edi
lea ecx, [ecx]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x18]
mov edx, dword [edx + esi*4]
lea edi, [ecx + esi*4]
mov ecx, dword [edi]
and edx, ecx
xor ecx, edx
add esi, 1
or eax, ecx
cmp esi, ebx
mov dword [edi], edx
jl 0x2acc10
pop edi
pop esi
pop ebp
pop ebx
ret 0x14

Function at 0x2bdf60
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x2bdf97
push esi
lea esp, [esp]
movsx ecx, cl
lea esi, [ecx + ecx*2]
shl esi, 4
add esi, ecx
lea ecx, [ecx + esi*4]
mov esi, eax
imul esi, esi, 0x34c3
add ecx, esi
sar eax, 2
add edx, 1
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x2bdf70
pop esi
and eax, 0x7fffffff
ret

Function at 0x2bdfa0
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x2bdfd3
push esi
lea esp, [esp]
movsx ecx, cl
lea esi, [ecx + ecx*8]
lea esi, [ecx + esi*4]
lea ecx, [eax + eax*8]
lea ecx, [ecx + ecx*8]
lea ecx, [ecx + ecx*8]
add esi, ecx
mov cl, byte [edx + 1]
add edx, 1
sar eax, 1
xor eax, esi
test cl, cl
jne 0x2bdfb0
pop esi
ret
Function at 0x300f30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [ecx + 0xc]
mov edx, eax
sub esp, 0x10
shr edx, 2
push ebp
mov ebp, dword [esp + 0x1c]
xor edx, eax
test edx, 0x3000000
push edi
je 0x300f77
mov eax, dword [esp + 0x1c]
mov dword [eax], 0x3020100
movsx eax, byte [ecx + 0x1c]
movsx edi, word [ecx + 0xc]
call fcn.002161b0
call fcn.00300ec0
mov dword [ebp], eax
pop edi
mov eax, 1
pop ebp
add esp, 0x10
ret 8
push ebx
movsx ebx, word [ecx + 0xc]
push esi
movsx esi, byte [ecx + 0x1c]
mov eax, esi
mov edi, ebx
call fcn.002161b0
call fcn.00300ec0
mov dword [esp + 0x14], eax
mov al, bl
and al, 3
mov byte [esp + 0x28], al
mov eax, ebx
sar eax, 2
and al, 3
mov byte [esp + 0x29], al
mov eax, ebx
sar eax, 4
and al, 3
sar ebx, 6
mov byte [esp + 0x2a], al
and bl, 3
mov eax, esi
mov byte [esp + 0x2b], bl
call fcn.00300ec0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
xor edi, edi
test eax, eax
mov dword [ebp], 0
je 0x301099
mov bl, 0xff
jmp 0x300fe3
mov eax, dword [esp + 0x14]
cmp al, bl
mov dword [esp + 0x10], 0
jne 0x301002
cmp byte [esp + 0x18], bl
jne 0x301002
movzx ecx, byte [esp + 0x28]
test ecx, ecx
je 0x301002
mov byte [esp + ecx + 0x10], bl
cmp ah, bl
jne 0x30101f
mov ecx, dword [esp + 0x18]
shr ecx, 8
cmp cl, bl
jne 0x30101f
movzx ecx, byte [esp + 0x29]
cmp ecx, 1
je 0x30101f
mov byte [esp + ecx + 0x10], bl
mov dx, word [esp + 0x16]
cmp dl, bl
jne 0x30103c
cmp byte [esp + 0x1a], bl
jne 0x30103c
movzx ecx, byte [esp + 0x2a]
cmp ecx, 2
je 0x30103c
mov byte [esp + ecx + 0x10], bl
cmp dh, bl
jne 0x301054
cmp byte [esp + 0x1b], bl
jne 0x301054
movzx ecx, byte [esp + 0x2b]
cmp ecx, 3
je 0x301054
mov byte [esp + ecx + 0x10], bl
cmp dword [esp + 0x10], eax
je 0x3010a8
mov esi, dword [esp + 0x24]
xor ecx, ecx
lea edx, [edi + ebp]
sub esi, ebp
cmp byte [esp + ecx + 0x14], bl
jne 0x301081
cmp byte [esp + ecx + 0x10], 0
jne 0x301081
mov byte [esi + edx], cl
mov byte [edx], bl
add edi, 1
add edx, 1
mov byte [esp + ecx + 0x1c], bl
add ecx, 1
cmp ecx, 4
jl 0x301065
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x300fdf
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x10
ret 8
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x10
ret 8
Function at 0x38b130
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
sub ebx, ebx
mov ecx, 0x20
sub eax, eax
sub edx, edx
mov ax, word [esi]
mov dx, word [esi + 2]
mov word [ebx + edi], ax
mov word [ebx + edi + 4], dx
mov ax, word [esi + 4]
mov dx, word [esi + 6]
mov word [ebx + edi + 0x10], ax
mov word [ebx + edi + 0x14], dx
mov ax, word [esi + 8]
mov dx, word [esi + 0xa]
mov word [ebx + edi + 0x40], ax
mov word [ebx + edi + 0x44], dx
mov ax, word [esi + 0xc]
mov dx, word [esi + 0xe]
mov word [ebx + edi + 0x50], ax
mov word [ebx + edi + 0x54], dx
mov ax, word [esi + 0x10]
mov dx, word [esi + 0x12]
mov word [ebx + edi + 0x100], ax
mov word [ebx + edi + 0x104], dx
mov ax, word [esi + 0x14]
mov dx, word [esi + 0x16]
mov word [ebx + edi + 0x110], ax
mov word [ebx + edi + 0x114], dx
mov ax, word [esi + 0x18]
mov dx, word [esi + 0x1a]
mov word [ebx + edi + 0x140], ax
mov word [ebx + edi + 0x144], dx
mov ax, word [esi + 0x1c]
mov dx, word [esi + 0x1e]
mov word [ebx + edi + 0x150], ax
mov word [ebx + edi + 0x154], dx
add esi, dword [ebp + 0xc]
or ebx, 0x155
add ebx, 2
and ebx, 0x2aa
dec ecx
jne 0x38b150
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x3afd10
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x3afd50
mov ecx, 1
mov dword [eax + 0x10], ecx
mov eax, dword [eax + 0x12514]
mov edx, 0x14
mul edx
cmp dword [0x3fa0b8], 0
mov dword [esp + 0x18], eax
mov ebp, edx
je 0x3afd5a
call fcn.003f4680
mov dword [esp + 0x18], eax
mov ebp, edx
jmp 0x3afd5a
mov dword [esp + 0x18], 0x2710
xor ebp, ebp
pushal
rdtsc
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], edx
popal
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
xor edi, edi
xor ecx, ecx
or edi, eax
or esi, ecx
add dword [esp + 0x18], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
adc ebp, esi
call fcn.001e3310
lea esp, [esp]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
pushal
rdtsc
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
popal
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
xor eax, eax
xor edi, edi
or esi, eax
or edi, edx
cmp esi, ebp
jg 0x3afde4
jl 0x3afdc0
cmp edi, dword [esp + 0x18]
jae 0x3afde4
cmp esi, dword [esp + 0x24]
jl 0x3afde4
jg 0x3afdce
cmp edi, dword [esp + 0x20]
jbe 0x3afde4
pause
pause
pause
pause
pause
pause
pause
pause
pause
pause
jmp 0x3afd90
sub edi, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
sbb esi, dword [esp + 0x2c]
test eax, eax
mov edx, esi
je 0x3afe02
add dword [eax + 0x12f48], edi
adc dword [eax + 0x12f4c], esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x3e1b90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
movzx ecx, byte [eax + 0x30]
mov byte [esp + 7], cl
mov ecx, dword [eax + 0x38]
push ebx
mov ebx, dword [eax + 0x34]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x48]
push esi
push edi
mov dword [esp + 0x1c], ecx
lea esi, [eax + 0x50]
mov ecx, 0x22
lea edi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
movzx ecx, byte [eax + 0xd8]
mov al, byte [eax + 0xd9]
push ebx
push edx
mov dword [esp + 0x1c], edx
mov byte [esp + 0x34], cl
mov byte [esp + 0x30], al
call fcn.003e12a0
add esp, 8
test al, al
je 0x3e1d7f
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x40]
cmp eax, 0xffffffff
je 0x3e1c15
mov edx, dword [eax*4 + 0x41fbe0]
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x14]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fild dword [ecx + 0x12554]
or ah, 0xc
mov edx, dword [esp + 0x1c]
lea edi, [edx + 0x58]
fsubr dword [ebx + 0xe4]
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
mov esi, dword [esp + 0x18]
add esi, dword [edx + 0x110]
fldcw word [esp + 0x14]
fild dword [ecx + 0x12558]
fnstcw word [esp + 0x14]
fsubr dword [ebx + 0xe8]
movzx eax, word [esp + 0x14]
or ah, 0xc
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
mov eax, dword [esp + 0x1c]
fistp dword [esp + 0x18]
mov edx, dword [esp + 0x18]
add edx, dword [eax + 0x114]
mov eax, dword [ebx + 0xd8]
fldcw word [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xdc]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
shr eax, 7
and al, 1
cmp byte [esp + 0x13], 0
mov byte [esp + 0x18], al
je 0x3e1d1d
cmp dword [esp + 0x38], 0
je 0x3e1d1d
mov eax, dword [edi + 0x50]
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x80]
mov dword [esp + 0xb0], eax
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x24]
push eax
push esi
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x38]
push ebx
push eax
push ecx
mov ecx, dword [esp + 0x34]
mov eax, edi
mov dword [esp + 0x78], 3
call fcn.003e0aa0
mov ecx, dword [ebp + 8]
add esp, 0x20
mov dword [ecx + 0x18], 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
push eax
push edx
mov edx, dword [esp + 0x30]
push esi
push edx
mov edx, dword [ebx + 0x88]
imul edx, dword [ebx + 0x84]
imul edx, eax
cmp dword [ebx + 0x7c], edx
push edi
sete al
movzx edx, al
movzx eax, byte [esp + 0x37]
push edx
push eax
push ebx
push ecx
call fcn.003e0160
mov ecx, dword [ebp + 8]
add esp, 0x34
mov dword [ecx + 0x18], 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
pop edi
pop esi
mov dword [edx + 0x18], 2
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00404502
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00404502
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00404502
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00404502
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00404502
mov dword [0x41203c], eax
call fcn.00404502
test eax, eax
jge 0x402550
push 8
call fcn.00404502
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00404502
pop ecx
push 1
call fcn.00404502
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00404502
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00404502
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00404502
jmp 0x402495

Function at 0x404502
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x404511
pop dword [ebp - 0x1c]
mov eax, 0xd0ccf99d
add eax, 0x2f734b74
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x36dfa
push 0
mov eax, 0x27576b9e
sub eax, 0x27168ac6
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x3eb1
xor edi, edi
add edi, eax
mov esi, 0xcbbfce2e
sub esi, 0xcb7e926a
add esi, dword [ebp - 0x1c]
mov ebx, 0xc288237a
sub ebx, 0x6b98c33a
add dword [ebp - 0x10], 0xfd8f40b5
mov edx, dword [esi]
mov dword [ebp - 0x10], 0xf7688fef
xor edx, ebx
sub dword [ebp - 8], 0xf7b71765
mov dword [edi], edx
xor dword [ebp - 0x14], 0xfbfe59a9
add edi, 0x8b7023c9
sub edi, 0x8b7023c5
add esi, 0xf3d75845
add esi, 0xc28a7bf
loop 0x40456c
add eax, 0x26d8be2b
sub eax, 0x26d7d094
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
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
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x40ad40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e57b
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.00462cf0
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40adc2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00460a9d
mov eax, dword [eax]
push 0x5531d0
push eax
call fcn.00452f24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00462f7b
test bl, bl
je 0x40adc2
push 0x5531d0
lea ecx, [esp + 0xc]
call fcn.0046330b
push 0x556d4c
lea ecx, [esp + 0xc]
call fcn.0046330b
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 0x40adfe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00462f7b
jmp 0x40aec9
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 0x40ae82
lea edx, [esp + 0x7c]
push 0x556d48
push edx
call fcn.00452f24
add esp, 8
test eax, eax
je 0x40ae82
lea eax, [esp + 0x7c]
push 0x556d44
push eax
call fcn.00452f24
add esp, 8
test eax, eax
je 0x40ae82
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 0x40ae12
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.00462f7b
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 0x40c120
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 0x40c182
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 0x40c190
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e6db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x55d6d8]
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 0x40c2c8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c1f6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00462f7b
xor eax, eax
jmp 0x40c33f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004630b8
push esi
lea ecx, [esp + 0xc]
call fcn.00463347
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 0x40c31d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040c120
test eax, eax
jne 0x40c31d
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.0040c120
test eax, eax
jne 0x40c31d
lea eax, [esp + 0x14]
push 0x556d60
push eax
call fcn.00453f60
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c2fc
lea ecx, [esp + 0x14]
push 0x556d5c
push ecx
call fcn.00453ee0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c2fc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c2ff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00463068
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c20e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00462f7b
xor eax, eax
jmp 0x40c33f
mov byte [esi], 0
push 0x556d58
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.00462f7b
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 0x41f520
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 0x41f58e
cmp si, 0x69
ja 0x41f58e
add esi, 0xffd0
cmp si, 0x11
je 0x41f55e
push 0x11
call edi
test ax, ax
jge 0x41f55e
or esi, 0x2000
cmp si, 0x10
je 0x41f573
push 0x10
call edi
test ax, ax
jge 0x41f573
or esi, 0x4000
cmp si, 0x12
je 0x41f588
push 0x12
call edi
test ax, ax
jge 0x41f588
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41f59b
mov esi, 0xbd
jmp 0x41f54f
cmp si, 0x6e
jne 0x41f5a8
mov esi, 0xbe
jmp 0x41f54f
cmp si, 0x6f
jne 0x41f549
mov esi, 0xbf
jmp 0x41f54f

Function at 0x420c40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x56ddc8]
xor edx, edx
cmp eax, edx
jne 0x420c66
xor eax, eax
mov byte [eax + 0x56dcc8], al
inc eax
cmp eax, 0x100
jl 0x420c4e
mov dword [0x56ddc8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x56dcc8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x420cf7
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 0x420cca
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 0x420c98
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x420d70
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 0x420dc3
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 0x420daa
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