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

Disassembly:
push 0x401300
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ecx], ch
pop esi
fcomp st(7)
mov dl, ch
in al, 0x47
wait
jnp 0x401252
xor dword [ecx], esi
adc al, 0x31
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
arpl word [ebx + 0x6a], sp
bound ebp, qword [ecx + 0x6e]
jae 0x4012fc
popal
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [edi], al
add byte [eax], al
add byte [edi + edx + 0x70040], ah
add byte [eax], al
pushal
pop ss
inc eax
add byte [edi], al
add byte [eax], al
add byte [edi + edx], dl
inc eax
add byte [edi], al
add byte [eax], al
add byte [esi + edx + 0x10040], bh
add byte [eax], al
fcom qword [0x40]
add byte [eax], al
or dword [eax + eax], eax
add byte [esi + 0x42], dl
xor eax, 0x2a211021
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi], bh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
or al, byte [eax]
or dword [eax + eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax], ah
sbb eax, 0x13a00040
inc eax
add byte [eax], al
lock xor byte [eax], al
add bh, bh
invalid
Function at 0x401010
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
or eax, 0xffffffff
test esi, esi
je 0x40103d
push ebx
push edi
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ecx + edi*4]
shr eax, 8
xor eax, ebx
inc edx
dec esi
jne 0x401022
pop edi
pop ebx
not eax
pop esi
ret 8

Function at 0x401050
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
xor ecx, ecx
test bl, 1
je 0x401063
mov ecx, 0x80
mov eax, ebx
shr eax, 1
test al, 1
je 0x40106e
or ecx, 0x40
shr eax, 1
test al, 1
je 0x401077
or ecx, 0x20
shr eax, 1
test al, 1
je 0x401080
or ecx, 0x10
shr eax, 1
test al, 1
je 0x401089
or ecx, 8
shr eax, 1
test al, 1
je 0x401092
or ecx, 4
shr eax, 1
test al, 1
je 0x40109b
or ecx, 2
test al, 2
je 0x4010a2
or ecx, 1
shl ecx, 0x18
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
lea edx, [eax + eax]
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
lea edx, [eax + eax]
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
lea edx, [eax + eax]
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
lea edx, [eax + eax]
xor ecx, edx
mov dword [esi + ebx*4], ecx
mov eax, ecx
xor edx, edx
mov ecx, 0x1f
lea ecx, [ecx]
test al, 1
je 0x40116d
mov edi, 1
shl edi, cl
or edx, edi
shr eax, 1
dec ecx
cmp ecx, 0xffffffff
jg 0x401160
mov dword [esi + ebx*4], edx
inc ebx
cmp ebx, 0xff
jle 0x401057
pop edi
pop esi
pop ebx
ret

Function at 0x4011a0
Capabilities:
Create http request

Disassembly:
fld qword [0x405458]
xor eax, eax
push esi
push eax
mov esi, ecx
push eax
fstp qword [esi + 0x18]
push eax
push eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x18]
push eax
mov dword [esi], 0x405450
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
mov eax, esi
pop esi
ret 4
Function at 0x4012b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x403e99
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
push edi
xor edi, edi
mov ecx, esi
mov dword [esp + 8], edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
push edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::StringLength]
add esp, 4
push eax
push edi
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x401e00
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push esi
push 0
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
xor ecx, ecx
mov dword [esp + 0xc], ecx
push 0x10
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x18], ecx
mov esi, eax
push edx
push esi
mov dword [esp + 0x24], ecx
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], ecx
mov word [esp + 0x1a], cx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x401e87
push 4
lea eax, [esp + 8]
push eax
push 4
push 0xffff
push esi
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x401e87
lea ecx, [esp + 8]
push ecx
push 0x8004667e
push esi
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x401e96
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x18
ret
mov eax, esi
pop esi
add esp, 0x18
ret
Function at 0x402a90
Capabilities:
Create process on windows
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4040c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
push edi
mov esi, ecx
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x48]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea ebx, [esi + 0x224]
push 0
mov ecx, ebx
mov dword [esp + 0x68], 0x44
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [esp + 0xc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edi, [esi + 0x228]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
test eax, eax
jle 0x402b56
push str.Reply
lea ecx, [esp + 0x20]
call fcn.004011a0
mov ecx, edi
mov dword [esp + 0x90], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0x20]
call fcn.00401210
push 0
mov ecx, esi
call sub.MFC71.DLL_CDialog::EndDialog
lea ecx, [esp + 0x1c]
mov dword [esp + 0x90], 0xffffffff
call fcn.004011e0
mov ecx, ebx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edi, [esi + 0x230]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::IsEmpty]
test al, al
jne 0x402baf
push 0x405e2c
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x402baf
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esi + 0x220]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 0x74c
push str.recommend.pipi.cn
mov ecx, esi
call fcn.00402700
push str.hidewin
lea ecx, [esi + 0x22c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
jne 0x402bd2
push eax
push eax
mov eax, dword [esi + 0x20]
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x88
ret
Function at 0x4031d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x70
push ebp
mov ebp, dword [esp + 0x78]
push esi
push edi
mov edi, dword [esp + 0x84]
test edi, edi
mov esi, ebp
jg 0x4031ff
push str.IDEA_encryption_error__t_block_size_is_negative_
call dword [sym.imp.MSVCR71.dll_puts]
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x70
ret
mov ecx, dword [esp + 0x88]
test ecx, ecx
jne 0x403222
push str.IDEA_encryption_error__t_user_key_is_NULL_
call dword [sym.imp.MSVCR71.dll_puts]
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x70
ret
push ebx
lea eax, [esp + 0x18]
call fcn.00402e30
mov eax, dword [esp + 0x90]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, edi
sar eax, 3
test eax, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jle 0x40327b
mov ebx, eax
jmp 0x403250
xor dword [esi], ecx
xor dword [esi + 4], edx
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
mov ecx, esi
call fcn.00402ff0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
add esp, 4
add esi, 8
dec ebx
jne 0x403250
mov esi, edi
and esi, 7
je 0x4032b0
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
call fcn.00402ff0
mov eax, edi
sub eax, esi
add esp, 4
cmp eax, edi
jge 0x4032b0
lea ecx, [esp + 0x10]
nop
mov bl, byte [eax + ebp]
mov dl, byte [ecx]
xor bl, dl
mov byte [eax + ebp], bl
inc eax
inc ecx
cmp eax, edi
jl 0x4032a0
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x70
ret
Function at 0x4032c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xe4
push ebp
mov ebp, dword [esp + 0xf0]
test ebp, ebp
push esi
mov esi, dword [esp + 0xf0]
jg 0x4032f4
push str.IDEA_decryption_error__t_block_size_is_negative_
call dword [sym.imp.MSVCR71.dll_puts]
add esp, 4
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0xe4
ret
mov ecx, dword [esp + 0xf8]
test ecx, ecx
jne 0x403319
push str.IDEA_decryption_error__t_user_key_is_NULL_
call dword [sym.imp.MSVCR71.dll_puts]
add esp, 4
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0xe4
ret
push ebx
push edi
lea eax, [esp + 0x24]
call fcn.00402e30
lea ecx, [esp + 0x8c]
lea eax, [esp + 0x24]
call fcn.00402eb0
mov eax, dword [esp + 0x104]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, ebp
sar eax, 3
test eax, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
jle 0x4033a8
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
mov ebp, dword [esi]
mov dword [esp + 0x20], eax
push esi
lea eax, [esp + 0x90]
mov ecx, esi
call fcn.00402ff0
mov eax, dword [esi]
mov edx, dword [esi + 4]
xor eax, edi
xor edx, ebx
mov ebx, dword [esp + 0x24]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], edx
add esp, 4
add esi, 8
dec eax
mov edi, ebp
mov dword [esp + 0x18], eax
jne 0x403355
mov ebp, dword [esp + 0xfc]
mov esi, dword [esp + 0xf8]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov edi, ebp
and edi, 7
je 0x4033e0
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x28]
call fcn.00402ff0
mov eax, ebp
sub eax, edi
add esp, 4
cmp eax, ebp
jge 0x4033e0
lea ecx, [esp + 0x10]
lea esp, [esp]
mov bl, byte [eax + esi]
mov dl, byte [ecx]
xor bl, dl
mov byte [eax + esi], bl
inc eax
inc ecx
cmp eax, ebp
jl 0x4033d0
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
add esp, 0xe4
ret
Function at 0x40396e
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x405f90
call fcn.00403b70
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4039ae
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4039ae
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4039c6
cmp eax, 0x20b
je 0x4039b3
mov dword [ebp - 0x1c], ebx
jmp 0x4039da
cmp dword [ecx + 0x84], 0xe
jbe 0x4039ae
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x4039d4
cmp dword [ecx + 0x74], 0xe
jbe 0x4039ae
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40712c], 0xffffffff
or dword [0x407130], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x4070e4]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x4070e0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x407128], eax
call fcn.00403c36
call fcn.00403cd6
cmp dword [0x407024], ebx
jne 0x403a3a
push fcn.00403cd6
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.00403cc4
push 0x40701c
push 0x407018
call sub.MSVCR71.dll__initterm
push 0x403c7a
call fcn.00403923
mov eax, dword [0x4070dc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4070d8]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x403a8e
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x407014
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x403b0c
cmp al, bl
je 0x403ab8
cmp dword [ebp - 0x20], ebx
jne 0x403b0c
mov al, byte [esi]
cmp al, bl
je 0x403ac8
cmp al, 0x20
ja 0x403ac8
inc esi
mov dword [ebp - 0x24], esi
jmp 0x403ab8
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x403ae4
movzx eax, word [ebp - 0x54]
jmp 0x403ae7
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00403e4e
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x403b04
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x403b61
cmp al, 0x22
jne 0x403b1b
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x403b2e
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x403aa6
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00403bab
ret
Function at 0x407c70
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4630bb
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.00457de8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407cf2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00455d37
mov eax, dword [eax]
push 0x4781c0
push eax
call fcn.00448c34
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00458073
test bl, bl
je 0x407cf2
push 0x4781c0
lea ecx, [esp + 0xc]
call fcn.00458403
push 0x47bd28
lea ecx, [esp + 0xc]
call fcn.00458403
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 0x407d2e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00458073
jmp 0x407df9
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 0x407db2
lea edx, [esp + 0x7c]
push 0x47bd24
push edx
call fcn.00448c34
add esp, 8
test eax, eax
je 0x407db2
lea eax, [esp + 0x7c]
push 0x47bd20
push eax
call fcn.00448c34
add esp, 8
test eax, eax
je 0x407db2
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 0x407d42
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.00458073
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 0x4085f0
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 0x408652
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 0x408660
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46313b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4821f0]
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 0x408798
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4086c6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00458073
xor eax, eax
jmp 0x40880f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004581b0
push esi
lea ecx, [esp + 0xc]
call fcn.0045843f
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 0x4087ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004085f0
test eax, eax
jne 0x4087ed
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.004085f0
test eax, eax
jne 0x4087ed
lea eax, [esp + 0x14]
push 0x47bd3c
push eax
call fcn.00449c70
mov esi, eax
add esp, 8
test esi, esi
jne 0x4087cc
lea ecx, [esp + 0x14]
push 0x47bd38
push ecx
call fcn.00449bf0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4087cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4087cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00458160
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4086de
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00458073
xor eax, eax
jmp 0x40880f
mov byte [esi], 0
push 0x47bd34
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.00458073
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 0x418f50
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 0x418fbe
cmp si, 0x69
ja 0x418fbe
add esi, 0xffd0
cmp si, 0x11
je 0x418f8e
push 0x11
call edi
test ax, ax
jge 0x418f8e
or esi, 0x2000
cmp si, 0x10
je 0x418fa3
push 0x10
call edi
test ax, ax
jge 0x418fa3
or esi, 0x4000
cmp si, 0x12
je 0x418fb8
push 0x12
call edi
test ax, ax
jge 0x418fb8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x418fcb
mov esi, 0xbd
jmp 0x418f7f
cmp si, 0x6e
jne 0x418fd8
mov esi, 0xbe
jmp 0x418f7f
cmp si, 0x6f
jne 0x418f79
mov esi, 0xbf
jmp 0x418f7f

Function at 0x41a670
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x492828]
xor edx, edx
cmp eax, edx
jne 0x41a696
xor eax, eax
mov byte [eax + 0x492728], al
inc eax
cmp eax, 0x100
jl 0x41a67e
mov dword [0x492828], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x492728
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41a727
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 0x41a6fa
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 0x41a6c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41a7a0
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 0x41a7f3
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 0x41a7da
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