joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bbd99
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [0x501230]
xor eax, esp
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x48]
push ebx
push ebp
push esi
mov eax, dword [edx]
push edi
cmp eax, 3
ja case.0x4bbd7d.0
jmp dword [eax*4 + 0x4bbe8c]
mov edi, 2
jmp 0x4bbd9b
mov edi, 3
jmp 0x4bbd9b
mov edi, 1
jmp 0x4bbd9b
xor edi, edi
push edx
lea eax, [ecx + 4]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004bb920
push 2
mov ebp, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__lock_file]
add esp, 0x14
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov esi, eax
test esi, esi
je 0x4bbdea
jmp dword [edi*4 + 0x4bbe9c]
cmp dword [ebp + 0x14], 0x10
mov dword [esp + 0x10], ebp
jb 0x4bbdfb
mov eax, dword [ebp]
mov dword [esp + 0x10], eax
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 2
call edi
push eax
push dword [ebp + 0x10]
push 1
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push 2
call edi
push eax
push dword [ebp + 0x1c]
push 1
push dword [ebp + 0x18]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea edi, [ebp + 0x20]
add esp, 0x28
cmp dword [edi + 0x14], 0x10
jb 0x4bbe36
mov edi, dword [edi]
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
push dword [ebp + 0x30]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x14
test esi, esi
je 0x4bbe5a
push 0x107
push esi
call ebx
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlock_file]
add esp, 8
lea ecx, [esp + 0x14]
call fcn.004bb020
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c75e8
add esp, 0x44
ret 4

Function at 0x4bedb0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov ecx, dword [esp + 4]
mov edx, ecx
push esi
mov esi, dword [ecx + 0x14]
cmp esi, 0x10
jb 0x4bedc1
mov edx, dword [ecx]
add edx, dword [ecx + 0x10]
cmp esi, 0x10
jb 0x4bedcb
mov ecx, dword [ecx]
xor esi, esi
cmp ecx, edx
je 0x4bedf6
movsx eax, byte [ecx]
inc ecx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor esi, eax
rol esi, 0xd
add esi, 0xfaddaf14
lea esi, [esi + esi*4]
cmp ecx, edx
jne 0x4bedd1
mov eax, esi
pop esi
ret 4
Function at 0x4c9a70
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ecx
push esi
push edi
push 0
push 1
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4c9b1d
call edi
mov esi, eax
cmp esi, 0x80090016
jne 0x4c9af2
push 8
push 1
push 0
push 0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4c9b1d
call edi
push 1
push 0x4eb488
mov esi, eax
call fcn.004073a0
add esp, 8
test eax, eax
je 0x4c9b6a
push esi
push esi
push str.fail_to_acquire_cryptography_context_for_new_keyset__error_code__d_0x_08X_
push 1
push 0x4eb488
call fcn.00407400
add esp, 0x14
jmp 0x4c9b6a
push 1
push 0x4eb488
call fcn.004073a0
add esp, 8
test eax, eax
je 0x4c9b6a
push esi
push esi
push str.fail_to_acquire_cryptography_context__error_code__d_0x_08X_
push 1
push 0x4eb488
call fcn.00407400
add esp, 0x14
jmp 0x4c9b6a
push dword [esp + 0x10]
push 0x10
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4c9b82
call edi
push 1
push 0x4eb488
mov esi, eax
call fcn.004073a0
add esp, 8
test eax, eax
je 0x4c9b5e
push esi
push esi
push str.fail_to_generate_random_data__error_code__d_0x_08X_
push 1
push 0x4eb488
call fcn.00407400
add esp, 0x14
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x48
push str..._tech1utilscutilcutil_uuid.c
push str.__Cannot_generate_randomness_for_uuid_
call fcn.00407dc0
add esp, 0xc
pop edi
pop esi
pop ecx
ret
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ecx
ret
Function at 0x4c9e50
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ecx
push ebp
push esi
mov eax, 0x34
mov esi, dword [esp + 0x10]
cdq
mov ecx, 6
push edi
mov edi, dword [esp + 0x18]
idiv edi
cmp dword [esp + 0x20], 0
mov edx, 1
mov ebp, dword [esi]
cmovne ecx, edx
add eax, ecx
imul edx, eax, 0x9e3779b9
mov dword [esp + 0x18], edx
test edx, edx
je 0x4c9f56
lea ecx, [edi - 1]
lea eax, [edi - 1]
lea ecx, [esi + ecx*4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], ecx
push ebx
nop
mov ebx, edx
shr ebx, 2
and ebx, 3
test eax, eax
jle 0x4c9efd
nop dword [eax]
mov esi, dword [esi + eax*4 - 4]
mov ecx, ebp
shr ecx, 3
mov edi, esi
shl edi, 4
mov edx, esi
xor edi, ecx
shr edx, 5
lea ecx, [ebp*4]
xor edx, ecx
mov ecx, eax
add edi, edx
and ecx, 3
mov edx, dword [esp + 0x20]
xor ecx, ebx
mov edx, dword [edx + ecx*4]
mov ecx, dword [esp + 0x1c]
xor edx, esi
mov esi, dword [esp + 0x18]
xor ecx, ebp
add edx, ecx
xor edi, edx
sub dword [esi + eax*4], edi
mov ebp, dword [esi + eax*4]
dec eax
test eax, eax
jg 0x4c9eb0
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx]
and eax, 3
mov edi, esi
mov ecx, ebp
shr ecx, 3
mov edx, esi
shl edi, 4
xor eax, ebx
xor edi, ecx
shr edx, 5
lea ecx, [ebp*4]
xor edx, ecx
mov ecx, dword [esp + 0x20]
add edi, edx
mov edx, dword [esp + 0x1c]
mov ecx, dword [ecx + eax*4]
mov eax, edx
xor ecx, esi
xor eax, ebp
mov esi, dword [esp + 0x18]
add ecx, eax
mov eax, dword [esp + 0x10]
xor edi, ecx
mov ecx, dword [esp + 0x24]
sub dword [esi], edi
add edx, 0x61c88647
mov ebp, dword [esi]
mov dword [esp + 0x1c], edx
jne 0x4c9ea0
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x4c9f60
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
xor ecx, ecx
cmp dword [esp + 0x24], ecx
mov ebx, 6
push edi
mov edi, dword [esp + 0x20]
lea eax, [edi - 1]
mov ebp, dword [esi + edi*4 - 4]
lea eax, [esi + eax*4]
mov dword [esp + 0x10], eax
mov eax, 1
cmovne ebx, eax
mov eax, 0x34
cdq
idiv edi
add ebx, eax
test ebx, ebx
jle 0x4ca071
lea edx, [edi - 1]
mov dword [esp + 0x28], edx
nop dword [eax]
dec ebx
sub ecx, 0x61c88647
mov dword [esp + 0x14], ebx
xor eax, eax
mov ebx, ecx
mov dword [esp + 0x20], ecx
shr ebx, 2
and ebx, 3
test edx, edx
jle 0x4ca01b
nop dword [eax]
mov esi, dword [esi + eax*4 + 4]
mov ecx, ebp
shr ecx, 5
mov edx, esi
shr edx, 3
lea edi, [esi*4]
xor edi, ecx
mov ecx, ebp
shl ecx, 4
xor edx, ecx
mov ecx, eax
add edi, edx
and ecx, 3
mov edx, dword [esp + 0x24]
xor ecx, ebx
mov edx, dword [edx + ecx*4]
mov ecx, dword [esp + 0x20]
xor edx, ebp
xor ecx, esi
mov esi, dword [esp + 0x1c]
add edx, ecx
xor edi, edx
add dword [esi + eax*4], edi
mov ebp, dword [esi + eax*4]
inc eax
cmp eax, dword [esp + 0x28]
jl 0x4c9fd0
mov esi, dword [esi]
mov ecx, ebp
shr ecx, 5
mov edx, esi
and eax, 3
shr edx, 3
xor eax, ebx
mov ebx, dword [esp + 0x14]
lea edi, [esi*4]
xor edi, ecx
mov ecx, ebp
shl ecx, 4
xor edx, ecx
mov ecx, dword [esp + 0x24]
add edi, edx
mov edx, dword [esp + 0x28]
mov ecx, dword [ecx + eax*4]
mov eax, dword [esp + 0x20]
xor ecx, ebp
xor eax, esi
mov esi, dword [esp + 0x1c]
add ecx, eax
mov eax, dword [esp + 0x10]
xor edi, ecx
mov ecx, dword [esp + 0x20]
add dword [eax], edi
mov ebp, dword [eax]
test ebx, ebx
jg 0x4c9fb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4ca170
Capabilities:
Encode data using base64

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x18]
mov eax, esi
shr eax, 0x1f
push edi
sub esp, 8
movd xmm0, esi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x4e6b30]
divsd xmm0, qword [0x4eb7e8]
movsd qword [esp + 0x14], xmm0
fld qword [esp + 0x14]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [esp + 0x14]
movsd xmm0, qword [esp + 0x14]
add esp, 8
mulsd xmm0, qword [0x4eb7f0]
call fcn.004c8460
mov ecx, dword [esp + 0x20]
mov edi, eax
mov dword [esp + 0xc], edi
test ecx, ecx
je 0x4ca1d7
mov dword [ecx], edi
lea ecx, [edi + 1]
push ecx
call fcn.00407e00
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x4ca1f4
pop edi
pop esi
pop ebx
add esp, 8
ret
xor ecx, ecx
mov byte [edi + ebx], 0
test esi, esi
je 0x4ca287
mov edi, ebx
push ebp
cmp ecx, esi
jae 0x4ca228
mov ebp, dword [esp + 0x1c]
movzx ebx, byte [ecx + ebp]
inc ecx
mov edx, ebx
cmp ecx, esi
jae 0x4ca22a
movzx eax, byte [ecx + ebp]
inc ecx
cmp ecx, esi
jae 0x4ca22c
movzx ebp, byte [ecx + ebp]
inc ecx
jmp 0x4ca22e
xor edx, edx
xor eax, eax
xor ebp, ebp
shl edx, 8
add edx, eax
shl edx, 8
add edx, ebp
mov eax, edx
shr eax, 0x12
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 1], al
mov eax, edx
shr eax, 6
and edx, 0x3f
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 2], al
movzx eax, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + 3], al
add edi, 4
cmp ecx, esi
jb 0x4ca209
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
pop ebp
mov eax, 0xaaaaaaab
mul esi
shr edx, 1
lea eax, [edx + edx*2]
sub esi, eax
mov ecx, dword [esi*4 + 0x501274]
test ecx, ecx
je 0x4ca2b0
lea eax, [ebx - 1]
add eax, edi
mov byte [eax], 0x3d
lea eax, [eax - 1]
sub ecx, 1
jne 0x4ca2a5
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 8
ret

Function at 0x4cbbd0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x501230]
xor eax, esp
mov dword [esp + 0x84], eax
push 0x80
lea eax, [esp + 8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp], 0x80
lea eax, [esp]
push eax
lea eax, [esp + 8]
push eax
push dword [esp + 0x94]
call dword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x4cbc6c
push 0
push str.MISC
call fcn.004073a0
add esp, 8
test eax, eax
je 0x4cbc54
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call fcn.004067e0
push eax
push str.portable_get_socket_port
push str._s:_getsockname_error___s_n
push 0
push str.MISC
call fcn.00407400
add esp, 0x18
or eax, 0xffffffff
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004c75e8
add esp, 0x88
ret
movzx eax, word [esp + 6]
push eax
call dword [sym.imp.WSOCK32.dll_ntohs]
mov ecx, dword [esp + 0x84]
xor ecx, esp
movzx eax, ax
call fcn.004c75e8
add esp, 0x88
ret
Function at 0x4cc980
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x509d38], 0
push ebx
push ebp
push esi
push edi
jne 0x4cc9e3
xor edi, edi
mov dword [0x509d38], 1
nop dword [eax]
mov eax, edi
mov bl, 8
shl eax, 8
movzx esi, ax
nop word [eax + eax]
lea ecx, [esi + esi]
mov eax, ecx
xor eax, 0x8005
test si, si
movzx edx, ax
movzx eax, cx
cmovns edx, eax
movzx eax, dx
mov ecx, eax
mov esi, eax
add bl, 0xff
jne 0x4cc9b0
mov word [edi*2 + 0x509d40], cx
inc edi
cmp edi, 0x100
jl 0x4cc9a0
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x18], edi
jle 0x4cca36
nop dword [eax]
mov eax, dword [esp + 0x14]
xor ebx, ebx
xor edx, edx
movzx eax, byte [eax + ebp]
lea esi, [ebx + 8]
nop
test al, 1
je 0x4cca0e
mov ecx, 7
sub ecx, edx
bts ebx, ecx
shr eax, 1
inc edx
sub esi, 1
jne 0x4cca00
movzx ecx, di
inc ebp
shr ecx, 8
movzx eax, bl
xor ecx, eax
shl edi, 8
xor di, word [ecx*2 + 0x509d40]
movzx edi, di
cmp ebp, dword [esp + 0x18]
jl 0x4cc9f0
xor ecx, ecx
movzx edx, di
xor esi, esi
lea edi, [ecx + 0x10]
test dl, 1
je 0x4cca4f
mov eax, 0xf
sub eax, esi
bts ecx, eax
shr edx, 1
inc esi
sub edi, 1
jne 0x4cca40
pop edi
pop esi
pop ebp
mov ax, cx
pop ebx
ret
Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x52815262
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x34c80184
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x405049
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x56a2b5f0
push 0
push ebx
call ebp
xchg byte [eax], al
adc eax, 0x6c70000
add byte [eax], al
str word [ecx + 0x5689fd56]
adc byte [edi + 0x46], bh
adc al, 0x5d
xor al, 0x8b
push ss
pop eax
adc byte [ebx + 0x461108be], cl
or byte [ebx], al
clc
js 0x4050ba
add al, 0x8b
movsb byte es:[edi], byte [esi]
mov eax, 0xc83b087b
jbe 0x405066
into
cmc
or byte [edx - 0x3f7af3bd], cl
je 0x405091
in eax, dx
sti
scasd eax, dword es:[edi]
push edx
add byte [eax], al
lea ecx, [esi + 0x18]
mov dword [esi], 0
fimul dword [esi + 0x10]
mov edi, dword [esi + 0x10]
mov ecx, dword [ebp + 0x10]
aam 0x36
mov dword [esi + 4], esi
lea eax, [edi + 0x42]
mov dword [edi + 0x34], eax
mov dword [esi - 0xb], eax
mov dword [edi + 0x18], ebx
add dword [ebp - 0x7f], ebx
mov eax, dword [0x77893077]
sub al, 0x2e
test ch, 0xd4
mov dword [edi + 0x2c], esi
test ch, 0xd4
and byte [ebx], bh
fimul word [ecx + 0x77890477]
adc byte [ecx + 0x77e414e5], cl
cmp byte [ecx + 0x77893c77], cl
sbb al, 9
ja 0x4050fd
mov dword [edi + 0x28], esi
mov dword [edi], ebx
jns 0x405142
mov edx, dword [ebx + 0x18]
push edx
call 0x1a404910
cmp ebx, dword [ecx + 0x4d104544]
rcl dword [eax - 0x12], 0xda
push ecx
add byte [eax], al
mov eax, dword [ebp + 0x10]
mov ebx, ecx
add al, 0x93
and eax, dword [ecx*4 - 0x31c4f764]
mov dword [edx], ecx
je 0x40510b
mov dword [ecx - 0x7e], edx
mov dword [ebx], edi
cmp eax, dword [ebp + 0x740c5f89]
sbb al, 0x2a
adc dword [esi], esp
push edx
add byte [eax], al
mov ebp, dword [ebx + 8]
mov dword [eax], edi
pop edi
pop esi
xor eax, eax
pop ebx
xor eax, 0x8b9410c2
inc ebp
adc byte [edx - 0x40], ch
je 0x405136
push 0xc
cmp al, 0xd0
add esp, 4
pop edi
pop esi
mov eax, 0xa100000c
pop ebx
pop ebp
mov dl, byte [eax]
add byte [ecx + 0x77890877], cl
or al, 0x8b
aas
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov edi, dword [edi]
xor al, 0x89
cmp ch, al
pop esi
xor esi, dword [esi + 0x5b]
add al, 9
invalid
Function at 0x405aa9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x405ae1
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x405acf
mov al, 1
jmp 0x405b40
cmp dword [ebx + 0x54], ecx
jne 0x405ad8
mov al, 2
jmp 0x405b40
cmp dword [ebx + 0x7c], ecx
jne 0x405b40
mov al, 3
jmp 0x405b40
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x405af6
mov al, 4
jmp 0x405b40
cmp ecx, 5
jne 0x405b16
cmp ebx, 0
jne 0x405b04
mov al, 5
jmp 0x405b40
cmp ebx, 1
jne 0x405b0d
mov al, 6
jmp 0x405b40
cmp ebx, 2
jne 0x405b16
mov al, 7
jmp 0x405b40
cmp ecx, 6
jne 0x405b3e
cmp ebx, 0
jne 0x405b24
mov al, 8
jmp 0x405b40
cmp ebx, 1
jne 0x405b2b
mov al, 9
cmp ebx, 2
jne 0x405b32
mov al, 0xa
cmp ebx, 3
jne 0x405b39
mov al, 0xb
cmp ebx, 4
jne 0x405b40
mov al, 0xc
pop ebx
leave
ret
Function at 0x417180
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bdaeb
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.004b1d72
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x417202
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004af13f
mov eax, dword [eax]
push 0x5bacd8
push eax
call fcn.004a0fe4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004b1ffd
test bl, bl
je 0x417202
push 0x5bacd8
lea ecx, [esp + 0xc]
call fcn.004b238d
push 0x5bace4
lea ecx, [esp + 0xc]
call fcn.004b238d
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 0x41723e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004b1ffd
jmp 0x417309
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 0x4172c2
lea edx, [esp + 0x7c]
push 0x5bace0
push edx
call fcn.004a0fe4
add esp, 8
test eax, eax
je 0x4172c2
lea eax, [esp + 0x7c]
push 0x5bacdc
push eax
call fcn.004a0fe4
add esp, 8
test eax, eax
je 0x4172c2
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 0x417252
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.004b1ffd
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 0x417b10
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 0x417b72
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 0x417b80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bdb6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5cc938]
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 0x417cb8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x417be6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004b1ffd
xor eax, eax
jmp 0x417d2f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004b213a
push esi
lea ecx, [esp + 0xc]
call fcn.004b23c9
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 0x417d0d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00417b10
test eax, eax
jne 0x417d0d
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.00417b10
test eax, eax
jne 0x417d0d
lea eax, [esp + 0x14]
push 0x5bacf4
push eax
call fcn.004a2060
mov esi, eax
add esp, 8
test esi, esi
jne 0x417cec
lea ecx, [esp + 0x14]
push 0x5bacf0
push ecx
call fcn.004a1fe0
mov esi, eax
add esp, 8
test esi, esi
jne 0x417cec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x417cef
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004b20ea
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x417bfe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004b1ffd
xor eax, eax
jmp 0x417d2f
mov byte [esi], 0
push 0x5bacec
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.004b1ffd
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 0x428e70
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 0x428ede
cmp si, 0x69
ja 0x428ede
add esi, 0xffd0
cmp si, 0x11
je 0x428eae
push 0x11
call edi
test ax, ax
jge 0x428eae
or esi, 0x2000
cmp si, 0x10
je 0x428ec3
push 0x10
call edi
test ax, ax
jge 0x428ec3
or esi, 0x4000
cmp si, 0x12
je 0x428ed8
push 0x12
call edi
test ax, ax
jge 0x428ed8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x428eeb
mov esi, 0xbd
jmp 0x428e9f
cmp si, 0x6e
jne 0x428ef8
mov esi, 0xbe
jmp 0x428e9f
cmp si, 0x6f
jne 0x428e99
mov esi, 0xbf
jmp 0x428e9f

Function at 0x42a7b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5dd150]
xor edx, edx
cmp eax, edx
jne 0x42a7d6
xor eax, eax
mov byte [eax + 0x5dd050], al
inc eax
cmp eax, 0x100
jl 0x42a7be
mov dword [0x5dd150], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5dd050
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42a867
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 0x42a83a
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 0x42a808
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42a8e0
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 0x42a933
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 0x42a91a
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