joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b558
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42ab20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi]
and dword [esi + 4], 0
xor ecx, ecx
mov word [eax], cx
xor eax, eax
push edi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call fcn.004092bc
mov ecx, dword [ebp - 4]
dec edi
mov eax, 0x103
cmp eax, edi
sbb eax, eax
xor ecx, ebp
inc eax
pop edi
call fcn.00417bcb
leave
ret

Function at 0x41100f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
push esi
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
and esi, 7
cmp eax, 5
jae 0x41102f
xor eax, eax
jmp 0x411148
add dword [ebp + 0x10], 5
push ebx
mov ebx, dword [ebp + 8]
sub eax, 4
add eax, ebx
push edi
mov dword [ebp + 0xc], eax
mov edi, dword [ebp - 4]
lea edx, [edi + ebx]
jmp 0x411051
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x411056
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x411048
mov ecx, edx
sub ecx, edi
mov eax, edx
sub eax, ebx
sub ecx, ebx
mov dword [ebp - 4], eax
cmp edx, dword [ebp + 0xc]
jae 0x411131
cmp ecx, 2
jbe 0x4110b1
xor esi, esi
movzx ecx, byte [edx + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x4110cf
movzx eax, byte [edx + 3]
mov edi, dword [ebp + 0x10]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 5
add edi, ecx
cmp dword [ebp + 0x18], 0
je 0x4110dc
add eax, edi
jmp 0x4110de
shr esi, cl
test esi, esi
je 0x411073
cmp esi, 4
ja 0x4110cf
cmp esi, 3
je 0x4110cf
mov eax, esi
shr eax, 1
movzx eax, byte [eax + edx + 1]
inc eax
test al, 0xfe
jne 0x411073
or esi, 8
shr esi, 1
inc dword [ebp - 4]
jmp 0x411040
sub eax, edi
test esi, esi
je 0x41110f
and esi, 6
shl esi, 2
mov ebx, eax
mov ecx, esi
shr ebx, cl
inc ebx
test bl, 0xfe
jne 0x41110a
mov ebx, 0x100
shl ebx, cl
dec ebx
xor eax, ebx
cmp dword [ebp + 0x18], 0
je 0x411108
add eax, edi
jmp 0x41110a
sub eax, edi
mov ebx, dword [ebp + 8]
xor esi, esi
mov ecx, eax
shr ecx, 8
mov byte [edx + 1], al
mov byte [edx + 2], cl
mov ecx, eax
shr eax, 0x18
shr ecx, 0x10
and al, 1
neg al
mov byte [edx + 3], cl
mov byte [edx + 4], al
jmp 0x411040
push 2
pop eax
shr esi, cl
cmp eax, ecx
mov ecx, dword [ebp + 0x14]
sbb eax, eax
not eax
and eax, esi
pop edi
mov dword [ecx], eax
mov eax, dword [ebp - 4]
pop ebx
pop esi
leave
ret 0x14
Function at 0x4114ab
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x368]
sub esp, 0x3e8
mov eax, dword [0x42ab20]
xor eax, ebp
mov dword [ebp + 0x364], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4114e7
cmp dword [ebp - 0x7c], 6
jne 0x4114e7
cmp dword [ebp - 0x78], 0
je 0x411511
push str.SetDefaultDllDirectories
push 0x4229b4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411511
push 0xc00
call eax
test eax, eax
jne 0x4115a5
push 0x106
lea eax, [ebp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4115a5
cmp eax, 0x104
ja 0x4115a5
lea eax, [ebp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 + 0x92], 0x5c
je 0x411552
push 0x5c
pop ecx
mov word [ebp + eax*2 + 0x94], cx
inc eax
cmp byte [0x422e68], 0
push esi
mov esi, 0x422e68
je 0x4115a4
push edi
lea edi, [ebp + eax*2 + 0x94]
mov ecx, edi
mov al, byte [esi]
movzx dx, al
inc esi
mov word [ecx], dx
inc ecx
inc ecx
test al, al
jne 0x41156b
push str..dll
lea eax, [ebp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 8
push 0
lea eax, [ebp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x411569
pop edi
pop esi
mov ecx, dword [ebp + 0x364]
xor ecx, ebp
call fcn.00417bcb
add ebp, 0x368
leave
ret

Function at 0x41468d
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4146c8
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4146af
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4146c0
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4146ca
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4146a5
xor eax, eax
pop edi
pop esi
ret
Function at 0x414a1e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cdq
sub dh, al
inc ebp
lcall 0xc635, 0x9b45c633
inc ebp
pushfd
xor al, 0xc6
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0041465d
push eax
push esi
push dword [ebp + 8]
call fcn.00414612
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0041465d
push eax
push esi
push dword [ebp + 8]
call fcn.00414612
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.0041464d
js 0x414aaf
stosb byte es:[edi], al
sti
invalid
or byte [eax - 0x78], ah
popfd
jl 0x414ad2
invalid
invalid

Function at 0x4155cb
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [eax + 0x38fffffc], esp
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.0041465d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00414612
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.0041464d
jnp 0x41563f
invalid
jecxz 0x4156b2
add al, 1
add byte [eax], al
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.0041464d
loope 0x41568f
sub dword [eax + 0xe06580], ecx
and byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0x1d
and byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0x8f
mov byte [ebp - 0x16], 0x92
mov byte [ebp - 0x15], 0xb2
mov byte [ebp - 0x14], 0x83
mov byte [ebp - 0x13], 0x96
mov byte [ebp - 0x12], 0x8a
mov byte [ebp - 0x11], 0xa3
mov byte [ebp - 0x10], 0xe2
lea eax, [ebp - 0x20]
push eax
call fcn.0041465d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
invalid
Function at 0x417bcb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ab20]
jne 0x417bd5
repz ret
jmp fcn.0041bf6c

Function at 0x41e3d8
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.0041a9ba
and dword [ebp - 4], 0
cmp dword [0x42c39c], 0
mov ebx, eax
jne 0x41e489
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41e53a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41e53a
push eax
call fcn.0041a948
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42c39c], eax
call esi
push eax
call fcn.0041a948
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42c3a0], eax
call esi
push eax
call fcn.0041a948
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42c3a4], eax
call esi
push eax
call fcn.0041a948
pop ecx
mov dword [0x42c3ac], eax
test eax, eax
je 0x41e489
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041a948
pop ecx
mov dword [0x42c3a8], eax
mov eax, dword [0x42c3a8]
cmp eax, ebx
je 0x41e4e1
cmp dword [0x42c3ac], ebx
je 0x41e4e1
push eax
call fcn.0041a9c3
push dword [0x42c3ac]
mov esi, eax
call fcn.0041a9c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41e4e1
test edi, edi
je 0x41e4e1
call esi
test eax, eax
je 0x41e4d8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41e4d8
test byte [ebp - 0xc], 1
jne 0x41e4e1
or dword [ebp + 0x10], 0x200000
jmp 0x41e51a
mov eax, dword [0x42c3a0]
cmp eax, ebx
je 0x41e51a
push eax
call fcn.0041a9c3
pop ecx
test eax, eax
je 0x41e51a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41e51a
mov eax, dword [0x42c3a4]
cmp eax, ebx
je 0x41e51a
push eax
call fcn.0041a9c3
pop ecx
test eax, eax
je 0x41e51a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42c39c]
call fcn.0041a9c3
pop ecx
test eax, eax
je 0x41e53a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41e53c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41fd1c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42c520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00416e92
and dword [ebp - 0x14], 0
cmp dword [0x45b068], 0
mov dword [ebp - 0x18], eax
jne 0x41fdcf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41fe77
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41fe77
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45b068], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45b06c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45b070], eax
call edi
push eax
call esi
mov dword [0x45b078], eax
test eax, eax
je 0x41fdcf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45b074], eax
mov eax, dword [0x45b074]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41fe28
cmp dword [0x45b078], ecx
je 0x41fe28
push eax
call esi
push dword [0x45b078]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41fe28
test ebx, ebx
je 0x41fe28
call edi
test eax, eax
je 0x41fe1f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41fe1f
test byte [ebp - 8], 1
jne 0x41fe28
or dword [ebp + 0x10], 0x200000
jmp 0x41fe5b
mov eax, dword [0x45b06c]
cmp eax, dword [ebp - 0x18]
je 0x41fe5b
push eax
call esi
test eax, eax
je 0x41fe5b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41fe5b
mov eax, dword [0x45b070]
cmp eax, dword [ebp - 0x18]
je 0x41fe5b
push eax
call esi
test eax, eax
je 0x41fe5b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45b068]
call esi
test eax, eax
je 0x41fe77
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41fe79
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113eb
leave
ret

Function at 0x4011d4
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 8
lea eax, [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00401241
add esp, 4
call fcn.004012cb
mov dword [ebp - 0x1c], 0
jmp 0x401225
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0x64
jae 0x40122d
jmp 0x40121c
call dword [sym.imp.OLE32.DLL_CoUninitialize]
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x4598f2
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 4], ebx
clc
jae 0x45990a
xchg byte [eax + 0x5c47b4], bh
mov eax, 0x5c47b4
push eax
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
test ebx, ebx
je 0x459922
push ebx
call fcn.004f77a4
add esp, 4
pop eax
mov ebx, dword [ebp - 4]
mov dword [ebx], eax
push dword [ebp + 8]
stc
jb 0x45992f
or dword [ebx + 0x8b2404], 0x50ff008b
or byte [ebx + 0x4c25de5], cl
add byte [ebp - 0x75], dl
in al, dx
sub esp, 0x5c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0xc
call fcn.004f77aa
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx], 0x5c45fc
push ebx
add ebx, 4
push ebx
push 8
call fcn.004f77aa
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x5b793a
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
add ebx, 4
push ebx
push 8
call fcn.004f77aa
add esp, 4
pop ebx
mov dword [ebx], eax
mov edi, eax
mov esi, 0x5b793a
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
pop ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
jmp 0x4599e8
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov esp, ebp
pop ebp
ret 4
add bh, al
inc ebx
or byte [eax], al
add byte [eax], al
add bh, al
add edi, esp
inc ebp
pop esp
add byte [ebx - 0x7d], dl
ret
jg 0x459974
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x459a06
pop ebp
or byte [ebx + 0x74c08503], cl
adc eax, 0xe8d88b50
bnd jbe 0x4599f2
push eax
mov ebx, eax
call fcn.004010eb
inc eax
push eax
inc dword [eax + 0x50]
call fcn.004f77aa
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x459a17
push ebx
call fcn.004f77a4
add esp, 4
pop eax
mov dword [ebp - 4], eax
clc
jae 0x459a1f
jle 0x4599e7
mov dword [ebp - 8], 0
inc ebp
clc
add byte [eax], al
add byte [eax], al
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov eax, 0x5c4547
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov eax, str.User_Agent
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
call 0x459a53
add dword [esp], 6
ret
Function at 0x509780
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5ace8b
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.005a1358
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x509802
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0059ea64
mov eax, dword [eax]
push 0x731ea0
push eax
call fcn.00590044
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005a15e3
test bl, bl
je 0x509802
push 0x731ea0
lea ecx, [esp + 0xc]
call fcn.005a1973
push 0x731eac
lea ecx, [esp + 0xc]
call fcn.005a1973
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 0x50983e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.005a15e3
jmp 0x509909
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 0x5098c2
lea edx, [esp + 0x7c]
push 0x731ea8
push edx
call fcn.00590044
add esp, 8
test eax, eax
je 0x5098c2
lea eax, [esp + 0x7c]
push 0x731ea4
push eax
call fcn.00590044
add esp, 8
test eax, eax
je 0x5098c2
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 0x509852
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.005a15e3
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 0x50ab80
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 0x50abe2
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 0x50abf0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5acfeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x7733c0]
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 0x50ad28
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x50ac56
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005a15e3
xor eax, eax
jmp 0x50ad9f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.005a1720
push esi
lea ecx, [esp + 0xc]
call fcn.005a19af
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x731ef0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x50ad7d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0050ab80
test eax, eax
jne 0x50ad7d
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.0050ab80
test eax, eax
jne 0x50ad7d
lea eax, [esp + 0x14]
push 0x731ecc
push eax
call fcn.005911b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x50ad5c
lea ecx, [esp + 0x14]
push 0x731ec8
push ecx
call fcn.00591130
mov esi, eax
add esp, 8
test esi, esi
jne 0x50ad5c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x50ad5f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.005a16d0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x50ac6e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005a15e3
xor eax, eax
jmp 0x50ad9f
mov byte [esi], 0
push 0x731ec4
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.005a15e3
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 0x521550
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 0x5215be
cmp si, 0x69
ja 0x5215be
add esi, 0xffd0
cmp si, 0x11
je 0x52158e
push 0x11
call edi
test ax, ax
jge 0x52158e
or esi, 0x2000
cmp si, 0x10
je 0x5215a3
push 0x10
call edi
test ax, ax
jge 0x5215a3
or esi, 0x4000
cmp si, 0x12
je 0x5215b8
push 0x12
call edi
test ax, ax
jge 0x5215b8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x5215cb
mov esi, 0xbd
jmp 0x52157f
cmp si, 0x6e
jne 0x5215d8
mov esi, 0xbe
jmp 0x52157f
cmp si, 0x6f
jne 0x521579
mov esi, 0xbf
jmp 0x52157f

Function at 0x523010
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x783d38]
xor edx, edx
cmp eax, edx
jne 0x523036
xor eax, eax
mov byte [eax + 0x783c38], al
inc eax
cmp eax, 0x100
jl 0x52301e
mov dword [0x783d38], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x783c38
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x5230c7
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 0x52309a
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 0x523068
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x523140
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 0x523193
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 0x52317a
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
Function at 0x5267a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5aea58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x20]
call fcn.005a8060
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x40], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub eax, esi
sub ecx, edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call fcn.00526670
add esp, 0x14
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.005a80d2
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret