joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019b5b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100254a0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10019b9b
cmp byte [ebx], 0xa
jne 0x10019b9b
or byte [edi + eax + 0x28], 4
jmp 0x10019ba0
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10019c9f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10019c82
inc eax
cmp dl, 0xd
je 0x10019bcc
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10019bf2
cmp eax, ecx
jae 0x10019c00
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10019bb4
jmp 0x10019c9f
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10019c7d
cmp dword [ebp - 0x10], 0
je 0x10019c7d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100254a0]
test byte [eax + edi + 0x28], 0x48
je 0x10019c57
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10019c42
mov byte [esi], dl
jmp 0x10019c53
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100254a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10019c9f
cmp byte [ebp - 1], 0xa
jne 0x10019c66
cmp esi, ebx
jne 0x10019c66
mov byte [esi], 0xa
jmp 0x10019c9e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001908a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10019c9f
mov byte [esi], 0xd
jmp 0x10019c9e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100254a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10019c9c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10019c9f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10019ca8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100254a0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10019cee
cmp word [ebx], dx
jne 0x10019cee
or byte [eax + edi + 0x28], 4
jmp 0x10019cf3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10019e56
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10019e36
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10019d34
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10019d6a
cmp eax, edx
jae 0x10019d78
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10019d0f
jmp 0x10019e56
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10019e31
cmp dword [ebp - 0x18], 0
je 0x10019e31
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100254a0]
test byte [eax + edi + 0x28], 0x48
je 0x10019e07
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10019dcb
mov word [esi], cx
jmp 0x10019e02
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100254a0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100254a0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100254a0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10019e56
pop eax
cmp word [ebp - 4], ax
jne 0x10019e17
cmp esi, ebx
jne 0x10019e17
mov word [esi], ax
jmp 0x10019e53
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001908a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10019e56
push 0xd
pop eax
jmp 0x10019e12
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100254a0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10019e50
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10019e56
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001a074
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1001a20b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001a1e3
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001a1e3
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001a198
jg 0x1001a0d0
test eax, eax
je 0x1001a18e
push 1
push 0x1000
call fcn.100138de
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001a0f3
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001a185
push 0x8000
push ebx
call fcn.10019f6e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001a11c
jg 0x1001a117
cmp ecx, 0x1000
jb 0x1001a11c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10015530
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001a161
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1001a117
jl 0x1001a148
test ecx, ecx
jne 0x1001a109
push dword [ebp - 0xc]
push ebx
call fcn.10019f6e
push esi
call fcn.10013019
add esp, 0xc
xor ebx, ebx
jmp 0x1001a1f1
cmp byte [edi + 0x24], 0
je 0x1001a178
cmp dword [edi + 0x20], 5
jne 0x1001a178
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001a183
mov ebx, dword [edi + 0x18]
jmp 0x1001a185
xor ebx, ebx
push esi
call fcn.10013019
pop ecx
jmp 0x1001a1f1
test ecx, ecx
jg 0x1001a15a
jl 0x1001a198
test eax, eax
jae 0x1001a15a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001908a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001a1b8
cmp byte [edi + 0x1c], 0
je 0x1001a15a
jmp 0x1001a1e9
push ebx
call fcn.10016820
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001a15a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001a1f1
cmp byte [edi + 0x1c], 0
je 0x1001a1ee
mov ebx, dword [edi + 0x18]
jmp 0x1001a1f1
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1001908a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x72f792f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
mov eax, section..data_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x19140e98
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401007
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [0x4305c8]
mov dword [ebp - 0x24], eax
mov eax, dword [0x4305cc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x14]
call fcn.00401000
mov eax, dword [0x4305d0]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4305d4]
add ebx, 0x23f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, edi
shl eax, 4
cmp dword [0x43f80c], 0xc
mov dword [ebp - 4], eax
jne 0x401080
xor eax, eax
push eax
lea ecx, [ebp - 0x2c]
push ecx
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
mov eax, dword [0x43f80c]
cmp eax, 0xfa9
jne 0x40109c
mov dword [0x43f808], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010be
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
and dword [0x43f760], 0
mov ecx, dword [ebp - 8]
and dword [ebp - 0x10], 0
mov edx, edi
lea eax, [ebx + edi]
shr edx, cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [0x43f804], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor eax, edx
sub esi, eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, esi
shr edx, cl
lea eax, [ebx + esi]
mov dword [ebp - 0x14], eax
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor dword [ebp - 4], edx
sub edi, dword [ebp - 4]
add ebx, 0x61c88647
dec dword [ebp - 0x18]
jne 0x401054
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 4
Function at 0x407fcf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42fd70]
jne 0x407fd9
repz ret
jmp fcn.0040c2b2

Function at 0x40a768
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404b87
and dword [ebp - 4], 0
cmp dword [0x4347f8], 0
mov ebx, eax
jne 0x40a819
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a8ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a8ca
push eax
call fcn.00404b15
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4347f8], eax
call esi
push eax
call fcn.00404b15
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4347fc], eax
call esi
push eax
call fcn.00404b15
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x434800], eax
call esi
push eax
call fcn.00404b15
pop ecx
mov dword [0x434808], eax
test eax, eax
je 0x40a819
push 0x42bf28
push edi
call esi
push eax
call fcn.00404b15
pop ecx
mov dword [0x434804], eax
mov eax, dword [0x434804]
cmp eax, ebx
je 0x40a871
cmp dword [0x434808], ebx
je 0x40a871
push eax
call fcn.00404b90
push dword [0x434808]
mov esi, eax
call fcn.00404b90
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a871
test edi, edi
je 0x40a871
call esi
test eax, eax
je 0x40a868
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a868
test byte [ebp - 0xc], 1
jne 0x40a871
or dword [ebp + 0x10], 0x200000
jmp 0x40a8aa
mov eax, dword [0x4347fc]
cmp eax, ebx
je 0x40a8aa
push eax
call fcn.00404b90
pop ecx
test eax, eax
je 0x40a8aa
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a8aa
mov eax, dword [0x434800]
cmp eax, ebx
je 0x40a8aa
push eax
call fcn.00404b90
pop ecx
test eax, eax
je 0x40a8aa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4347f8]
call fcn.00404b90
pop ecx
test eax, eax
je 0x40a8ca
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a8cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bad0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47009b
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.00464b90
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40bb52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00462aa8
mov eax, dword [eax]
push 0x48f0f0
push eax
call fcn.0044d680
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00464e1b
test bl, bl
je 0x40bb52
push 0x48f0f0
lea ecx, [esp + 0xc]
call fcn.004651ab
push 0x492c64
lea ecx, [esp + 0xc]
call fcn.004651ab
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 0x40bb8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00464e1b
jmp 0x40bc59
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 0x40bc12
lea edx, [esp + 0x7c]
push 0x492c60
push edx
call fcn.0044d680
add esp, 8
test eax, eax
je 0x40bc12
lea eax, [esp + 0x7c]
push 0x492c5c
push eax
call fcn.0044d680
add esp, 8
test eax, eax
je 0x40bc12
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 0x40bba2
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.00464e1b
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 0x40c450
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 0x40c4b2
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 0x40c4c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47011b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x499100]
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 0x40c5f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c526
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00464e1b
xor eax, eax
jmp 0x40c66f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00464f58
push esi
lea ecx, [esp + 0xc]
call fcn.004651e7
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 0x40c64d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push bind
call fcn.0040c450
test eax, eax
jne 0x40c64d
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 bind
mov ecx, edi
call fcn.0040c450
test eax, eax
jne 0x40c64d
lea eax, [esp + 0x14]
push 0x492c78
push eax
call fcn.0044e795
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c62c
lea ecx, [esp + 0x14]
push 0x492c74
push ecx
call fcn.0044e5d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c62c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c62f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00464f08
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c53e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00464e1b
xor eax, eax
jmp 0x40c66f
mov byte [esi], 0
push 0x492c70
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.00464e1b
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 0x413046
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3ac]
test eax, eax
jne 0x41306e
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3ac], eax
pop esi
add esp, 0x190
ret
Function at 0x41d150
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 0x41d1be
cmp si, 0x69
ja 0x41d1be
add esi, 0xffd0
cmp si, 0x11
je 0x41d18e
push 0x11
call edi
test ax, ax
jge 0x41d18e
or esi, 0x2000
cmp si, 0x10
je 0x41d1a3
push 0x10
call edi
test ax, ax
jge 0x41d1a3
or esi, 0x4000
cmp si, 0x12
je 0x41d1b8
push 0x12
call edi
test ax, ax
jge 0x41d1b8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41d1cb
mov esi, 0xbd
jmp 0x41d17f
cmp si, 0x6e
jne 0x41d1d8
mov esi, 0xbe
jmp 0x41d17f
cmp si, 0x6f
jne 0x41d179
mov esi, 0xbf
jmp 0x41d17f

Function at 0x41e900
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a7808]
xor edx, edx
cmp eax, edx
jne 0x41e926
xor eax, eax
mov byte [eax + 0x4a7708], al
inc eax
cmp eax, 0x100
jl 0x41e90e
mov dword [0x4a7808], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a7708
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41e9b7
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 0x41e98a
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 0x41e958
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41ea30
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 0x41ea83
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 0x41ea6a
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