joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024f3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402532
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402532
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402532
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402532
cmp dword [ecx + 0x74], 0xe
jbe 0x402532
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x403a99
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x40b5ee]
test eax, eax
ja 0x403aac
and dword [0x40b5cc], 0
xor eax, eax
ret
push edi
push esi
mov esi, 0x800
cmp eax, esi
ja 0x403ab9
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll__lread]
push esi
push dword [0x40b5c8]
push dword [0x40afe0]
call edi
cmp dword [0x40aff0], 0
mov ecx, eax
mov dword [0x40b5cc], ecx
je 0x403b28
cmp ecx, 0xffffffff
je 0x403b28
cmp ecx, esi
je 0x403b39
test ecx, ecx
jl 0x403b28
mov ax, word [0x408918]
push dword [0x40aff4]
inc ax
push eax
call fcn.0040132a
mov ecx, dword [0x40b5cc]
test ecx, ecx
jne 0x403b21
push esi
push dword [0x40b5c8]
push dword [0x40afe0]
call edi
mov ecx, eax
mov dword [0x40b5cc], ecx
cmp ecx, 0xffffffff
je 0x403b28
mov esi, ecx
cmp ecx, esi
je 0x403b39
push 2
call fcn.00401c9a
mov ecx, dword [0x40b5cc]
sub dword [0x40b5ee], ecx
mov esi, dword [0x40b5c8]
cmp dword [0x40afe4], 0
mov dword [0x40b5fc], esi
je 0x403b7b
mov eax, ecx
mov edx, eax
dec eax
test edx, edx
je 0x403b7b
lea edi, [eax + 1]
call fcn.004052f0
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00405306
inc esi
dec edi
pop ecx
jne 0x403b60
mov ecx, dword [0x40b5cc]
mov eax, ecx
dec ecx
pop esi
mov dword [0x40b5cc], ecx
pop edi
ret

Function at 0x405306
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40b068]
xor eax, ecx
mov edx, 0xff
and eax, edx
push esi
shr ecx, 8
mov eax, dword [eax*4 + 0x40b0a0]
xor eax, ecx
mov ecx, dword [0x40b070]
mov dword [0x40b068], eax
and eax, edx
add eax, dword [0x40b06c]
mov esi, ecx
and esi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [0x40b06c], eax
shr eax, 0x18
xor esi, eax
shr ecx, 8
mov eax, dword [esi*4 + 0x40b0a0]
pop esi
xor eax, ecx
mov dword [0x40b070], eax
ret

Function at 0x4053ed
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [0x40afec]
call fcn.00405361
pop ecx
lea eax, [ebp - 0xc]
push 0xc
push dword [ebp + 8]
push eax
call fcn.00401000
add esp, 0xc
xor edi, edi
lea esi, [ebp + edi - 0xc]
call fcn.004052f0
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00405306
inc edi
pop ecx
cmp edi, 0xc
jl 0x405414
cmp dword [0x40afe8], 0
movzx ax, byte [ebp - 1]
je 0x405447
xor ecx, ecx
mov cl, byte [0x40b5e7]
jmp 0x405450
mov ecx, dword [0x40b5ea]
shr ecx, 0x18
cmp ax, cx
je 0x40545a
or eax, 0xffffffff
jmp 0x40545c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100bb278
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0xaf289
jmp fcn.10001058
Function at 0x421165
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x42d3e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x4301a4
call fcn.004117e4
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x84]
push 0x7f
push eax
call fcn.004118c5
push dword [0x42da04]
push eax
lea eax, [ebp - 0x84]
push 1
push eax
call dword [sym.imp.ucrtbased.dll_fwrite]
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
call fcn.004113b6
leave
ret

Function at 0x4211d1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x4301a4
call fcn.004117e4
mov eax, dword [0x42da00]
push dword [0x42da04]
lea eax, [eax*2 + 2]
push eax
push 1
push 0x42da08
call dword [sym.imp.ucrtbased.dll_fwrite]
mov ecx, dword [ebp + 0xc]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421207
push dword [0x42da04]
sub ecx, edx
push ecx
push 1
push dword [ebp + 0xc]
call dword [sym.imp.ucrtbased.dll_fwrite]
add esp, 0x10
pop ebp
ret
Function at 0x421fc2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x590
mov eax, dword [0x42d3e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov ecx, 0x4301dc
push esi
mov esi, dword [ebp + 8]
call fcn.004117e4
push 0x42aad0
push esi
call dword [sym.imp.ucrtbased.dll_fopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x422001
xor al, al
jmp 0x422190
mov eax, dword [ebx + 0x7b0]
test eax, eax
je 0x42201e
push esi
push eax
push 1
push dword [ebx + 0x7ac]
call dword [sym.imp.ucrtbased.dll_fwrite]
add esp, 0x10
cmp byte [ebp + 0xc], 0
je 0x422037
push esi
push 2
push 1
push 0x42aad4
call dword [sym.imp.ucrtbased.dll_fwrite]
add esp, 0x10
push 0x180
lea eax, [ebp - 0x184]
push 0x20
push eax
call fcn.0041129e
and dword [ebp - 0x58c], 0
add esp, 0xc
cmp dword [ebx + 0x7a8], 0
jbe 0x422186
xor ecx, ecx
mov dword [ebp - 0x590], ecx
push edi
mov eax, dword [ebx + 0x7a4]
xor edi, edi
and dword [ebp - 0x584], 0
add eax, ecx
xor ecx, ecx
mov dword [ebp - 0x384], eax
mov dword [ebp - 0x588], ecx
mov eax, dword [ebp + edi*4 - 0x584]
mov edx, dword [ebp + edi*4 - 0x384]
test eax, eax
jne 0x4220df
cmp byte [ebp + 0xc], al
je 0x4220bf
test edi, edi
je 0x4220bf
push esi
push ecx
lea eax, [ebp - 0x184]
push 1
push eax
call dword [sym.imp.ucrtbased.dll_fwrite]
mov edx, dword [ebp + edi*4 - 0x384]
add esp, 0x10
push dword [ebp + 0xc]
mov ecx, ebx
push edx
push esi
call fcn.0041165e
mov ecx, dword [ebp - 0x588]
mov edx, dword [ebp + edi*4 - 0x384]
mov eax, dword [ebp + edi*4 - 0x584]
cmp dword [edx + 0x10], 1
je 0x422103
cmp dword [edx + 0x10], 0
je 0x4220fd
push dword [ebp + 0xc]
mov ecx, ebx
push edx
push esi
call fcn.004111a4
mov ecx, dword [ebp - 0x588]
dec edi
sub ecx, 3
jmp 0x42214f
cmp eax, dword [edx + 0x18]
jne 0x42212f
cmp byte [ebp + 0xc], 0
je 0x4220eb
test edi, edi
je 0x4220eb
push esi
push ecx
lea eax, [ebp - 0x184]
push 1
push eax
call dword [sym.imp.ucrtbased.dll_fwrite]
mov edx, dword [ebp + edi*4 - 0x384]
add esp, 0x10
jmp 0x4220eb
and dword [ebp + edi*4 - 0x580], 0
imul eax, eax, 0x1c
add eax, dword [edx + 0x14]
inc dword [ebp + edi*4 - 0x584]
mov dword [ebp + edi*4 - 0x380], eax
inc edi
add ecx, 3
mov dword [ebp - 0x588], ecx
test edi, edi
jns 0x422089
mov edx, dword [ebp - 0x58c]
mov ecx, dword [ebp - 0x590]
inc edx
add ecx, 0x1c
mov dword [ebp - 0x58c], edx
mov dword [ebp - 0x590], ecx
cmp edx, dword [ebx + 0x7a8]
jb 0x42206a
pop edi
push esi
call dword [sym.imp.ucrtbased.dll_fclose]
pop ecx
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004113b6
leave
ret 8
Function at 0x422436
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ecx, 0x4301e4
call fcn.004117e4
push 0xa
pop ebx
push 0xb
call dword [sym.imp.ucrtbased.dll_malloc]
mov esi, eax
mov dword [esp], 0x42aad8
call fcn.00411253
pop ecx
xor edi, edi
call dword [sym.imp.ucrtbased.dll_getchar]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x4224d9
cmp eax, 0xffffffff
je 0x4224a8
cmp edi, ebx
jne 0x422491
add ebx, ebx
lea eax, [ebx + 1]
push eax
push esi
call dword [sym.imp.ucrtbased.dll_realloc]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4224c6
mov eax, dword [ebp - 4]
mov byte [edi + esi], al
mov byte [edi + esi + 1], 0
inc edi
call dword [sym.imp.ucrtbased.dll_getchar]
mov dword [ebp - 4], eax
cmp eax, 0xa
jne 0x422470
cmp edi, ebx
jne 0x4224d9
lea eax, [ebx + 1]
push eax
push esi
call dword [sym.imp.ucrtbased.dll_realloc]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4224d9
push str.Cannot_realloc_string._n
jmp 0x4224cb
push str.Cannot_reallic_string._n
call fcn.00411253
pop ecx
push 0xffffffffffffffff
call dword [sym.imp.ucrtbased.dll_exit]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x422b00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov ecx, 0x430225
call fcn.004117e4
push 0x42b6a8
push dword [ebp + 8]
call dword [sym.imp.ucrtbased.dll_fopen]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x422b7b
push ebx
push esi
mov esi, dword [sym.imp.ucrtbased.dll_fseek]
push 2
push 0
push edi
call esi
push edi
call dword [sym.imp.ucrtbased.dll_ftell]
push 0
push 0
push edi
mov ebx, eax
call esi
lea ecx, [ebx + 1]
push ecx
call dword [sym.imp.ucrtbased.dll_malloc]
mov esi, eax
add esp, 0x20
test esi, esi
je 0x422b64
push edi
push ebx
push 1
push esi
call dword [sym.imp.ucrtbased.dll_fread]
add esp, 0x10
push edi
call dword [sym.imp.ucrtbased.dll_fclose]
mov eax, dword [ebp + 0xc]
pop ecx
mov byte [ebx + esi], 0
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
jmp 0x422b83
mov eax, dword [ebp + 0xc]
and dword [eax], 0
xor eax, eax
pop edi
pop ebp
ret
Function at 0x45f7e1
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.00455bb8
and dword [ebp - 4], 0
cmp dword [0x493288], 0
mov ebx, eax
jne 0x45f892
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45f943
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x473330
push edi
call esi
test eax, eax
je 0x45f943
push eax
call fcn.00455b46
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x493288], eax
call esi
push eax
call fcn.00455b46
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x49328c], eax
call esi
push eax
call fcn.00455b46
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x493290], eax
call esi
push eax
call fcn.00455b46
pop ecx
mov dword [0x493298], eax
test eax, eax
je 0x45f892
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00455b46
pop ecx
mov dword [0x493294], eax
mov eax, dword [0x493294]
cmp eax, ebx
je 0x45f8ea
cmp dword [0x493298], ebx
je 0x45f8ea
push eax
call fcn.00455bc1
push dword [0x493298]
mov esi, eax
call fcn.00455bc1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45f8ea
test edi, edi
je 0x45f8ea
call esi
test eax, eax
je 0x45f8e1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45f8e1
test byte [ebp - 0xc], 1
jne 0x45f8ea
or dword [ebp + 0x10], 0x200000
jmp 0x45f923
mov eax, dword [0x49328c]
cmp eax, ebx
je 0x45f923
push eax
call fcn.00455bc1
pop ecx
test eax, eax
je 0x45f923
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45f923
mov eax, dword [0x493290]
cmp eax, ebx
je 0x45f923
push eax
call fcn.00455bc1
pop ecx
test eax, eax
je 0x45f923
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x493288]
call fcn.00455bc1
pop ecx
test eax, eax
je 0x45f943
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45f945
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x476ef0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x51486b
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.00509818
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x476f72
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0050772a
mov eax, dword [eax]
push 0x601cf0
push eax
call fcn.004f95e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00509aa3
test bl, bl
je 0x476f72
push 0x601cf0
lea ecx, [esp + 0xc]
call fcn.00509e33
push 0x601cfc
lea ecx, [esp + 0xc]
call fcn.00509e33
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 0x476fae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00509aa3
jmp 0x477079
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 0x477032
lea edx, [esp + 0x7c]
push 0x601cf8
push edx
call fcn.004f95e4
add esp, 8
test eax, eax
je 0x477032
lea eax, [esp + 0x7c]
push 0x601cf4
push eax
call fcn.004f95e4
add esp, 8
test eax, eax
je 0x477032
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 0x476fc2
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.00509aa3
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 0x477870
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 0x4778d2
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 0x4778e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5148eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x6149f8]
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 0x477a18
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x477946
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00509aa3
xor eax, eax
jmp 0x477a8f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00509be0
push esi
lea ecx, [esp + 0xc]
call fcn.00509e6f
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 0x477a6d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00477870
test eax, eax
jne 0x477a6d
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.00477870
test eax, eax
jne 0x477a6d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.004fa660
mov esi, eax
add esp, 8
test esi, esi
jne 0x477a4c
lea ecx, [esp + 0x14]
push 0x601d08
push ecx
call fcn.004fa5e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x477a4c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x477a4f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00509b90
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x47795e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00509aa3
xor eax, eax
jmp 0x477a8f
mov byte [esi], 0
push 0x601d04
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.00509aa3
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 0x47dda6
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x47ddce
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 + 0x3a0], eax
pop esi
add esp, 0x190
ret
Function at 0x486c40
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 0x486cae
cmp si, 0x69
ja 0x486cae
add esi, 0xffd0
cmp si, 0x11
je 0x486c7e
push 0x11
call edi
test ax, ax
jge 0x486c7e
or esi, 0x2000
cmp si, 0x10
je 0x486c93
push 0x10
call edi
test ax, ax
jge 0x486c93
or esi, 0x4000
cmp si, 0x12
je 0x486ca8
push 0x12
call edi
test ax, ax
jge 0x486ca8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x486cbb
mov esi, 0xbd
jmp 0x486c6f
cmp si, 0x6e
jne 0x486cc8
mov esi, 0xbe
jmp 0x486c6f
cmp si, 0x6f
jne 0x486c69
mov esi, 0xbf
jmp 0x486c6f

Function at 0x4884d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x625260]
xor edx, edx
cmp eax, edx
jne 0x4884f6
xor eax, eax
mov byte [eax + 0x625160], al
inc eax
cmp eax, 0x100
jl 0x4884de
mov dword [0x625260], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x625160
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x488587
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 0x48855a
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 0x488528
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x488600
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 0x488653
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 0x48863a
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