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

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
mov byte [eax + esi + 0x20], 0x80
inc dword [esi + 0x1c]
cmp eax, 0x37
mov eax, dword [esi + 0x1c]
jle 0x4364d8
jmp 0x4364ae
mov byte [esi + eax + 0x20], 0
inc dword [esi + 0x1c]
mov eax, dword [esi + 0x1c]
cmp eax, 0x40
jl 0x4364a3
call fcn.004362f6
jmp 0x4364c5
mov eax, dword [esi + 0x1c]
mov byte [esi + eax + 0x20], 0
inc dword [esi + 0x1c]
cmp dword [esi + 0x1c], 0x38
jl 0x4364ba
jmp 0x4364dd
mov byte [esi + eax + 0x20], 0
inc dword [esi + 0x1c]
mov eax, dword [esi + 0x1c]
cmp eax, 0x38
jl 0x4364cd
mov al, byte [esi + 0x1b]
mov ecx, esi
mov byte [esi + 0x58], al
mov al, byte [esi + 0x1a]
mov byte [esi + 0x59], al
mov eax, dword [esi + 0x18]
shr eax, 8
mov byte [esi + 0x5a], al
mov al, byte [esi + 0x18]
mov byte [esi + 0x5b], al
mov al, byte [esi + 0x17]
mov byte [esi + 0x5c], al
mov al, byte [esi + 0x16]
mov byte [esi + 0x5d], al
mov eax, dword [esi + 0x14]
shr eax, 8
mov byte [esi + 0x5e], al
mov al, byte [esi + 0x14]
mov byte [esi + 0x5f], al
pop esi
jmp fcn.004362f6

Function at 0x4365ff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
push edx
push ecx
lea ecx, [ebp - 0x104]
call fcn.0043651b
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x436633
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x104]
call fcn.0043659c
xor byte [esi], al
inc esi
dec edi
jne 0x436621
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x436638
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
push edi
mov byte [esp + 0xc], 0
lea edi, [esp + 0xd]
xor eax, eax
mov esi, ecx
stosd dword es:[edi], eax
mov ebx, edx
mov edx, esi
stosd dword es:[edi], eax
lea ecx, [edx + 1]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [edx]
inc edx
test al, al
jne 0x43665f
sub edx, ecx
lea ecx, [esp + 0x20]
call fcn.004361eb
push edx
push esi
call fcn.00436282
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x24]
call fcn.00436221
push 5
lea ecx, [esp + 0x10]
pop edi
xor edx, edx
lea esi, [ecx + 3]
mov al, byte [esi]
xor byte [ecx + edx], al
mov al, byte [ecx + edx]
xor byte [esi], al
mov al, byte [esi]
xor byte [ecx + edx], al
inc edx
dec esi
cmp edx, 2
jl 0x436692
add ecx, 4
dec edi
jne 0x43668d
push dword [ebp + 8]
lea ecx, [esp + 0x10]
push ebx
push 0x10
pop edx
call fcn.004365ff
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4366c7
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x180
push ebx
push edi
lea eax, [esp + 8]
mov dword [esp + 8], 0x100
push eax
lea eax, [esp + 0x8c]
mov ebx, edx
push eax
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [esp + 0x20]
call fcn.004361eb
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
lea ecx, [esp + 0x28]
call fcn.00436282
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x28]
call fcn.00436282
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x24]
call fcn.00436221
push dword [ebp + 8]
lea ecx, [esp + 0x10]
push ebx
push 0x14
pop edx
call fcn.004365ff
pop ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x436755
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x43a3b0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x40]
push eax
mov esi, ecx
push edi
mov dword [ebp - 4], esi
call fcn.00441f21
add esp, 8
test eax, eax
jne 0x43a57d
push ebx
push 0x200
call fcn.0043e436
mov ecx, dword [ebp + 8]
add esp, 4
mov ebx, dword [ebp + 0x14]
mov dword [ecx], eax
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43a3f3
sub ecx, edx
lea eax, [ecx + 1]
mov ecx, esi
push eax
push edi
call fcn.004396f0
mov edx, eax
mov dword [ebp - 0x10], edx
lea edi, [edx - 1]
mov cl, byte [edi + 1]
lea edi, [edi + 1]
test cl, cl
jne 0x43a410
mov ax, word [0x480b40]
mov esi, ebx
mov word [edi], ax
mov al, byte [ebx]
inc ebx
test al, al
jne 0x43a425
sub ebx, esi
lea edi, [edx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43a431
mov ecx, ebx
lea eax, [ebp - 0x180]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, 0xffffffff
je 0x43a569
mov edi, 0x200
mov esi, 0x80
mov dword [ebp - 8], edi
mov dword [ebp + 0x14], esi
cmp byte [ebp + 0x10], 0
lea eax, [ebp - 0x154]
je 0x43a4ee
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43a482
mov ecx, dword [ebp - 4]
sub eax, edx
inc eax
push eax
push dword [ebp + 0xc]
call fcn.004396f0
mov ebx, eax
lea edi, [ebx - 1]
lea ecx, [ecx]
mov cl, byte [edi + 1]
lea edi, [edi + 1]
test cl, cl
jne 0x43a4a0
mov ax, word [0x480b40]
lea edx, [ebp - 0x154]
mov word [edi], ax
mov esi, edx
jmp 0x43a4c0
mov al, byte [edx]
inc edx
test al, al
jne 0x43a4c0
sub edx, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43a4d0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp - 8]
jmp 0x43a4fb
mov ecx, dword [ebp - 4]
push 0
push eax
call fcn.004396f0
mov ebx, eax
cmp esi, 2
jae 0x43a525
sub esi, 0xffffff80
add edi, 0x200
mov dword [ebp + 0x14], esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 8], edi
push dword [esi]
call fcn.00440534
add esp, 8
test eax, eax
je 0x43a549
mov dword [esi], eax
jmp 0x43a528
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov dword [eax], ebx
lea eax, [ebp - 0x180]
mov ebx, dword [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x43a569
mov esi, dword [ebp + 0x14]
jmp 0x43a473
mov eax, dword [esi]
test eax, eax
je 0x43a558
push eax
call fcn.0043e014
add esp, 4
pop ebx
pop edi
mov dword [esi], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
call fcn.0043b9c0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43b840
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x38]
push edi
push eax
push esi
xor edi, edi
mov byte [ebp - 1], 1
call fcn.00441f21
add esp, 8
test eax, eax
jne 0x43b88e
push 0x484308
push esi
call fcn.00440c82
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
jne 0x43b898
push esi
push str.ERROR:_Unable_to_open__s_for_reading_n
call fcn.004427d7
mov eax, dword [ebp + 0x10]
add esp, 8
test eax, eax
je 0x43b88e
mov dword [eax], edi
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0x18], 0
push ebx
je 0x43b8ff
cmp byte [ebp + 0x14], 0
mov eax, dword [ebp - 0x24]
je 0x43b8bc
mov dword [ebp + 0x14], eax
inc eax
push eax
call fcn.0043e436
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, dword [ebp + 0x14]
jmp 0x43b8cb
inc eax
push eax
call fcn.0043d630
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebx]
add esp, 4
test ecx, ecx
je 0x43b8ef
mov byte [ecx + eax], 0
mov eax, dword [ebx]
mov dword [ebp + 0x14], eax
test eax, eax
jne 0x43b8fa
push esi
push str.Unable_to_allocate_memory_to_read__s_to_mem
call fcn.004427d7
add esp, 8
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp - 0x24]
jmp 0x43b92a
cmp byte [ebp + 0x14], 0
je 0x43b910
mov esi, dword [ebp - 0x24]
push esi
call fcn.0043e436
jmp 0x43b91b
push dword [ebp - 0x24]
call fcn.0043d630
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp + 0xc]
add esp, 4
mov dword [ebp + 0x14], eax
mov dword [ebx], eax
test eax, eax
je 0x43b8ef
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x43b933
mov dword [ecx], esi
test esi, esi
je 0x43b9a8
mov ecx, 0x8000
lea esp, [esp]
push dword [ebp - 8]
sub esi, edi
cmp esi, 0x8000
cmova esi, ecx
push esi
push 1
push eax
call fcn.00440e5c
mov ecx, eax
add esp, 0x10
cmp ecx, esi
jne 0x43b978
mov eax, dword [ebp + 0x14]
add edi, ecx
mov esi, dword [ebp - 0x24]
add eax, ecx
mov dword [ebp + 0x14], eax
mov ecx, 0x8000
cmp edi, esi
jb 0x43b940
jmp 0x43b9a8
push dword [ebp + 8]
push edi
push esi
push str.Unable_to_read__li_bytes_at_offset__li_from_file__s_n
call fcn.004427d7
push dword [ebx]
call fcn.0043e014
mov eax, dword [ebp + 0x10]
add esp, 0x14
mov dword [ebx], 0
test eax, eax
je 0x43b9a4
mov dword [eax], 0
mov byte [ebp - 1], 0
push dword [ebp - 8]
call fcn.00441594
mov al, byte [ebp - 1]
add esp, 4
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x43ce60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43ce77
xor al, al
pop ebp
ret 4
shr al, 4
and al, 1
pop ebp
ret 4
Function at 0x43ce80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov edx, edi
mov dword [ebp - 4], ebx
lea esi, [edx + 1]
lea esp, [esp]
mov al, byte [edx]
inc edx
test al, al
jne 0x43cea0
sub edx, esi
cmp edx, 0x104
jae 0x43d088
cmp byte [ebp + 0xc], al
je 0x43ced2
push 0x104
lea eax, [ebp - 0x23c]
push eax
push edi
call fcn.0043d0c0
lea edi, [ebp - 0x23c]
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.00441f21
add esp, 8
test eax, eax
jne 0x43cef7
test dword [ebp - 0x2e], 0x4000
je 0x43cef7
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x138]
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x43cf01
lea eax, [ebp - 0x138]
push 0x5c
push eax
call fcn.0043f250
mov esi, eax
add esp, 8
test esi, esi
je 0x43d059
mov ecx, esi
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43cf30
sub ecx, edx
cmp ecx, 3
jbe 0x43cf7e
cmp byte [esi + 1], 0x5c
jne 0x43cf7e
lea eax, [esi + 2]
push 0x5c
push eax
call fcn.0043f250
add esp, 8
test eax, eax
je 0x43d059
inc eax
push 0x5c
push eax
call fcn.0043f250
add esp, 8
test eax, eax
je 0x43d059
inc eax
push 0x5c
push eax
call fcn.0043f250
add esp, 8
mov esi, eax
jmp 0x43cfc0
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43cf83
sub ecx, edx
lea edx, [ebp - 0x138]
lea ebx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x43cf95
sub edx, ebx
cmp ecx, edx
je 0x43cfbd
mov al, byte [esi - 1]
cmp al, 0x3a
je 0x43cfad
cmp al, 0x5c
jne 0x43cfbd
lea eax, [esi + 1]
push 0x5c
push eax
call fcn.0043f250
add esp, 8
mov esi, eax
mov ebx, dword [ebp - 4]
test esi, esi
je 0x43d059
jmp 0x43cfd0
lea ecx, [ebp - 0x138]
mov byte [esi], 0
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43cfe0
sub ecx, edx
je 0x43d03e
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.00441f21
add esp, 8
test eax, eax
jne 0x43d02b
test dword [ebp - 0x2e], 0x4000
jne 0x43d03e
lea eax, [ebp - 0x138]
push eax
push edi
push str.Cant_create_dir__s:_non_dir__s_in_the_way
call fcn.004427d7
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x138]
push eax
call fcn.00443b0f
add esp, 4
test eax, eax
jne 0x43d093
lea eax, [esi + 1]
mov byte [esi], 0x5c
push 0x5c
push eax
call fcn.0043f250
mov esi, eax
add esp, 8
test esi, esi
jne 0x43cfd0
push edi
mov ecx, ebx
call fcn.0043ce60
test al, al
jne 0x43ceec
push edi
call fcn.00443b0f
add esp, 4
test eax, eax
je 0x43ceec
push edi
push str.Unable_to_create_dir__s
call fcn.004427d7
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x138]
push eax
push str.Cant_create_dir__s:_mkdir_fails
call fcn.004427d7
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x450654
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x493560]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004486b0
mov dword [ebp - 0x14], eax
cmp dword [0x4abd48], esi
jne 0x450747
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4506d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x450827
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x450827
push 0x47a048
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x450827
push eax
call ebx
push 0x47a054
push edi
mov dword [0x4abd48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4abd4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4abd50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4abd58], eax
test eax, eax
je 0x450744
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4abd54], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x45076c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x45075f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x450781
push 4
pop eax
jmp 0x450829
cmp dword [ebp - 0x14], esi
je 0x450781
push dword [0x4abd48]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x450766
mov eax, dword [0x4abd54]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4507df
cmp dword [0x4abd58], edi
je 0x4507df
push eax
call ebx
push dword [0x4abd58]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4507df
test eax, eax
je 0x4507df
call ecx
test eax, eax
je 0x4507d4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4507d4
test byte [ebp - 8], 1
jne 0x4507df
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x45080f
mov eax, dword [0x4abd4c]
cmp eax, edi
je 0x45080c
push eax
call ebx
test eax, eax
je 0x45080c
call eax
mov esi, eax
test esi, esi
je 0x45080c
mov eax, dword [0x4abd50]
cmp eax, edi
je 0x45080c
push eax
call ebx
test eax, eax
je 0x45080c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4abd48]
call ebx
test eax, eax
je 0x450827
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x450829
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443c54
mov esp, ebp
pop ebp
ret
Function at 0x45fa13
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
push 0xffffffffffffffff
push 0x49160b
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.004866d4
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407e72
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004845e6
mov eax, dword [eax]
push 0x4acc60
push eax
call fcn.00476794
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048695f
test bl, bl
je 0x407e72
push 0x4acc60
lea ecx, [esp + 0xc]
call fcn.00486cef
push 0x4acc6c
lea ecx, [esp + 0xc]
call fcn.00486cef
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 0x407eae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048695f
jmp 0x407f79
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 0x407f32
lea edx, [esp + 0x7c]
push 0x4acc68
push edx
call fcn.00476794
add esp, 8
test eax, eax
je 0x407f32
lea eax, [esp + 0x7c]
push 0x4acc64
push eax
call fcn.00476794
add esp, 8
test eax, eax
je 0x407f32
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 0x407ec2
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.0048695f
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 0x408780
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 0x4087e2
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 0x4087f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49168b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4bc0a0]
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 0x408928
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408856
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048695f
xor eax, eax
jmp 0x40899f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00486a9c
push esi
lea ecx, [esp + 0xc]
call fcn.00486d2b
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 0x40897d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00408780
test eax, eax
jne 0x40897d
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.00408780
test eax, eax
jne 0x40897d
lea eax, [esp + 0x14]
push 0x4acc7c
push eax
call fcn.00477810
mov esi, eax
add esp, 8
test esi, esi
jne 0x40895c
lea ecx, [esp + 0x14]
push 0x4acc78
push ecx
call fcn.00477790
mov esi, eax
add esp, 8
test esi, esi
jne 0x40895c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40895f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00486a4c
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40886e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048695f
xor eax, eax
jmp 0x40899f
mov byte [esi], 0
push 0x4acc74
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.0048695f
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 0x417c30
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 0x417c9e
cmp si, 0x69
ja 0x417c9e
add esi, 0xffd0
cmp si, 0x11
je 0x417c6e
push 0x11
call edi
test ax, ax
jge 0x417c6e
or esi, 0x2000
cmp si, 0x10
je 0x417c83
push 0x10
call edi
test ax, ax
jge 0x417c83
or esi, 0x4000
cmp si, 0x12
je 0x417c98
push 0x12
call edi
test ax, ax
jge 0x417c98
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x417cab
mov esi, 0xbd
jmp 0x417c5f
cmp si, 0x6e
jne 0x417cb8
mov esi, 0xbe
jmp 0x417c5f
cmp si, 0x6f
jne 0x417c59
mov esi, 0xbf
jmp 0x417c5f

Function at 0x419420
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4cc7d8]
xor edx, edx
cmp eax, edx
jne 0x419446
xor eax, eax
mov byte [eax + 0x4cc6d8], al
inc eax
cmp eax, 0x100
jl 0x41942e
mov dword [0x4cc7d8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4cc6d8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4194d7
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 0x4194aa
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 0x419478
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4194e0
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 0x419533
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 0x41951a
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