joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a02e5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x641490]
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.005928de
mov dword [ebp - 0x14], eax
cmp dword [0x64e8c8], esi
jne 0x5a03d8
push 0x800
push esi
push 0x60a170
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5a0365
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5a04b8
push esi
push esi
push 0x60a170
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5a04b8
push 0x60a188
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5a04b8
push eax
call ebx
push 0x60a194
push edi
mov dword [0x64e8c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x60a1a4
push edi
mov dword [0x64e8cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x64e8d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x64e8d8], eax
test eax, eax
je 0x5a03d5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x64e8d4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5a03fd
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5a03f0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5a0412
push 4
pop eax
jmp 0x5a04ba
cmp dword [ebp - 0x14], esi
je 0x5a0412
push dword [0x64e8c8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5a03f7
mov eax, dword [0x64e8d4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5a0470
cmp dword [0x64e8d8], edi
je 0x5a0470
push eax
call ebx
push dword [0x64e8d8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5a0470
test eax, eax
je 0x5a0470
call ecx
test eax, eax
je 0x5a0465
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 0x5a0465
test byte [ebp - 8], 1
jne 0x5a0470
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5a04a0
mov eax, dword [0x64e8cc]
cmp eax, edi
je 0x5a049d
push eax
call ebx
test eax, eax
je 0x5a049d
call eax
mov esi, eax
test esi, esi
je 0x5a049d
mov eax, dword [0x64e8d0]
cmp eax, edi
je 0x5a049d
push eax
call ebx
test eax, eax
je 0x5a049d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x64e8c8]
call ebx
test eax, eax
je 0x5a04b8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5a04ba
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058815d
mov esp, ebp
pop ebp
ret
Function at 0x5b019d
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 0x403720
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xor edx, edx
mov dx, word [eax]
test edx, 0x4000
jne 0x403747
cmp edx, 8
jb 0x403747
cmp edx, 0x100
jne 0x40374d
mov word [eax], 0
add eax, 8
jmp fcn.0040316c
mov word [eax], 0
ret
push eax
call fcn.00401234
ret

Function at 0x403754
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov al, 0x10
jmp 0x4025e8
cmp eax, edx
je 0x4037c4
cmp word [eax], 8
jb 0x403779
push eax
push edx
cmp word [eax], 0x100
je 0x40376f
push eax
call fcn.00401234
jmp 0x403777
add eax, 8
call fcn.0040316c
pop edx
pop eax
cmp word [edx], 8
jae 0x403790
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
ret
cmp word [edx], 0x100
jne 0x4037b0
mov edx, dword [edx + 8]
or edx, edx
je 0x4037a7
mov ecx, dword [edx - 8]
inc ecx
jle 0x4037a7
mov dword [edx - 8], ecx
mov word [eax], pe_nt_image_headers32
mov dword [eax + 8], edx
ret
mov word [eax], 0
push edx
push eax
call fcn.0040123c
or eax, eax
jne 0x403718
ret

Function at 0x4051d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405209
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040324c
jmp 0x405212
mov eax, ebx
mov edx, esi
call fcn.00403200
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4069b0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4069f8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040694c
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4069ff
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x406c00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406c8e
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c4b
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.0040324c
jmp 0x406c78
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c5f
lea eax, [ebp - 4]
call fcn.0040316c
jmp 0x406c6e
lea edx, [ebp - 4]
call fcn.00406ac4
test ebx, ebx
je 0x406c6e
dec ebx
jmp 0x406c50
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00403200
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c95
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x406c9c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404da4
add esp, 0x104
pop ebx
ret
Function at 0x41a140
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x41a187
cmp ebx, 0x20
je 0x41a187
cmp ebx, 0xffffffe0
je 0x41a187
jne 0x41a190
add eax, 1
cmp esi, eax
je 0x41a19d
jne 0x41a16c
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x41a1a1
jne 0x41a168
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x41a1b5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x41a1fa
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x41a200
add eax, 4
pop esi
dec esi
push esi
jne 0x41a1e2
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8
Function at 0x43d08c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
test esi, esi
jne 0x43d0b1
xor eax, eax
jmp 0x43d0b6
mov eax, dword [esi + 4]
add eax, eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x4753c0
call fcn.00473bd8
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x43d0ec
push ebx
call fcn.00473bd2
add esp, 4
pop eax
mov dword [ebp - 4], eax
test esi, esi
je 0x43d0f9
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x43d14e
lea edx, [esi + 8]
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x42413938
mov dword [ebp - 8], 0x46454443
test edx, edx
je 0x43d14e
test eax, eax
je 0x43d14e
lea esi, [edx + ecx]
cmp edx, esi
jae 0x43d14e
nop
movzx ecx, byte [edx]
shr ecx, 4
inc edx
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax], cl
movzx ecx, byte [edx - 1]
and ecx, 0xf
lea eax, [eax + 2]
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax - 1], cl
cmp edx, esi
jb 0x43d12a
pop esi
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x474d80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x517b40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.0050bee7
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.0047ad90
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x474dd4
jmp dword [ecx*4 + 0x474f3c]
mov al, byte [esi]
test al, al
je 0x474e02
cmp al, 0x20
je 0x474dee
cmp al, 0xa1
jne 0x474e02
cmp byte [esi + 1], al
jne 0x474e02
test al, 0x80
je 0x474dfa
mov al, byte [esi + 1]
inc esi
test al, al
je 0x474e02
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x474de1
test ecx, ecx
je case.default.0x474dd4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x474dd4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x474e48
cmp dl, 0xa1
jne 0x474e3c
cmp byte [eax + 1], 0xa1
jne 0x474e3c
test ecx, ecx
jne 0x474e34
mov edi, eax
mov ecx, 1
inc eax
jmp 0x474e5c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x474e76
jmp 0x474e5c
cmp dl, 0x20
jne 0x474e5a
test ecx, ecx
jne 0x474e53
mov edi, eax
mov ecx, 1
jmp 0x474e5c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x474e1c
cmp ecx, 1
jne case.default.0x474dd4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x474dd4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x474dd4
mov al, byte [esi]
test al, al
je 0x474ece
test al, 0x80
mov byte [esp + 0x3c], al
je 0x474eb4
mov cl, byte [esi + 1]
test cl, cl
je 0x474ece
cmp al, 0xa1
jne 0x474ea4
cmp cl, al
je 0x474eb1
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.0047b060
inc esi
jmp 0x474ec6
cmp al, 0x20
je 0x474ec6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0047b0a0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x474e8d
push 0
lea ecx, [esp + 0x14]
call fcn.0047b0a0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00484830
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x474f01
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0xf1c198
call fcn.0047af90
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0050be79
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x476660
Capabilities:
Get disk size

Disassembly:
sub esp, 0x1c
push esi
push edi
mov edi, 0x10ba118
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00476620
add esp, 8
mov byte [esp + 8], al
or esi, 0xffffffff
push str.GetDiskFreeSpaceExA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47670a
lea edx, [esp + 0xc]
lea ecx, [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x10]
push edx
push ecx
call eax
test eax, eax
je 0x47676b
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4766ec
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
jmp 0x4766f4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, 0xa
call fcn.004f3280
mov edx, dword [esp + 0x28]
pop edi
pop esi
mov dword [edx], eax
add esp, 0x1c
ret
lea eax, [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x47675f
mov eax, dword [esp + 0x34]
test eax, eax
mov eax, dword [esp + 0x30]
je 0x47673d
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
push 0x400
imul edx, dword [esp + 0x20]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword [ecx], eax
add esp, 0x1c
ret
mov edx, dword [esp + 0x28]
pop edi
mov dword [edx], esi
pop esi
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], esi
pop esi
add esp, 0x1c
ret
Function at 0x477890
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x517c98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x10d25a0]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push esi
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
mov dword [esp + 0x30], 0
call fcn.00477360
add esp, 0x14
dec esi
neg esi
sbb esi, esi
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
add esi, 3
lea edx, [esp + 0x30]
lea ecx, [esi + esi*2]
push edx
push 0x20006
push 0
lea esi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x477932
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4779eb
mov edx, dword [esi + 8]
push edx
call fcn.004833f0
add esp, 4
test eax, eax
mov eax, dword [esi + 8]
je 0x477982
cmp eax, 0x80000301
jne 0x477950
mov eax, dword [esi]
jmp 0x47795d
push 0
push esi
push 0x7d1
call fcn.00488c80
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4779e0
jmp 0x4779da
cmp eax, 0x80000004
jne 0x4779b1
mov esi, dword [esi]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x30]
not ecx
push ecx
mov ecx, dword [esp + 0x30]
push esi
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4779e0
jmp 0x4779da
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x4779e0
mov esi, dword [esi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
add esi, 8
push eax
push esi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4779e0
mov dword [ebx], 1
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0050be79
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47edf0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x51803b
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.0050bbee
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x47ee72
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00509add
mov eax, dword [eax]
push 0x10bdbe8
push eax
call fcn.004f26c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0050be79
test bl, bl
je 0x47ee72
push 0x10bdbe8
lea ecx, [esp + 0xc]
call fcn.0050c209
push 0x10bdbf4
lea ecx, [esp + 0xc]
call fcn.0050c209
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 0x47eeae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0050be79
jmp 0x47ef79
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 0x47ef32
lea edx, [esp + 0x7c]
push 0x10bdbf0
push edx
call fcn.004f26c4
add esp, 8
test eax, eax
je 0x47ef32
lea eax, [esp + 0x7c]
push 0x10bdbec
push eax
call fcn.004f26c4
add esp, 8
test eax, eax
je 0x47ef32
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 0x47eec2
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.0050be79
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 0x47f770
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 0x47f7d2
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 0x47f7e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x5180bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x10d25a0]
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 0x47f918
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x47f846
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0050be79
xor eax, eax
jmp 0x47f98f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0050bfb6
push esi
lea ecx, [esp + 0xc]
call fcn.0050c245
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 0x47f96d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0047f770
test eax, eax
jne 0x47f96d
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 SysReAllocString
mov ecx, edi
call fcn.0047f770
test eax, eax
jne 0x47f96d
lea eax, [esp + 0x14]
push 0x10bdc04
push eax
call fcn.004f3d93
mov esi, eax
add esp, 8
test esi, esi
jne 0x47f94c
lea ecx, [esp + 0x14]
push 0x10bdc00
push ecx
call fcn.004f3b30
mov esi, eax
add esp, 8
test esi, esi
jne 0x47f94c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x47f94f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0050bf66
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x47f85e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0050be79
xor eax, eax
jmp 0x47f98f
mov byte [esi], 0
push 0x10bdbfc
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.0050be79
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 0x490850
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 0x4908be
cmp si, 0x69
ja 0x4908be
add esi, 0xffd0
cmp si, 0x11
je 0x49088e
push 0x11
call edi
test ax, ax
jge 0x49088e
or esi, 0x2000
cmp si, 0x10
je 0x4908a3
push 0x10
call edi
test ax, ax
jge 0x4908a3
or esi, 0x4000
cmp si, 0x12
je 0x4908b8
push 0x12
call edi
test ax, ax
jge 0x4908b8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4908cb
mov esi, 0xbd
jmp 0x49087f
cmp si, 0x6e
jne 0x4908d8
mov esi, 0xbe
jmp 0x49087f
cmp si, 0x6f
jne 0x490879
mov esi, 0xbf
jmp 0x49087f

Function at 0x491e00
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x518d31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebp
mov ebp, dword [esp + 0x160]
push esi
push edi
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.0050b0db
mov esi, dword [esp + 0x16c]
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.0050af2f
mov eax, dword [esp + 0x170]
lea ecx, [esp + 0xc]
push eax
call fcn.0050bee7
lea ecx, [esp + 0xc]
push 0x10be6d0
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x16c], 0
call fcn.0050c0c2
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0050be79
test edi, edi
je 0x491f4e
mov edx, dword [0x10d25a0]
mov dword [esp + 0x10], edx
cmp edi, 0xffffffff
mov byte [esp + 0x160], 1
je 0x491f3d
cmp byte [esp + 0x44], 0x2e
je 0x491f22
lea eax, [esp + 0xc]
push 0x10be6cc
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0050c0c2
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 2
call fcn.0050bf66
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], 1
call fcn.0050be79
lea edx, [esp + 0x44]
lea ecx, [esp + 0x10]
push edx
call fcn.0050c209
test byte [esp + 0x18], 0x10
mov eax, dword [esi + 8]
je 0x491f08
push 1
jmp 0x491f0a
push 0
push eax
mov ecx, esi
call fcn.0050b3cd
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, ebp
call fcn.0050b250
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x491eae
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x10]
mov byte [esp + 0x160], 0
call fcn.0050be79
lea ecx, [esp + 0xc]
mov dword [esp + 0x160], 0xffffffff
call fcn.0050be79
mov ecx, dword [esp + 0x158]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x158
ret