joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ef9
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x41bbdd
call fcn.0040e5aa
and dword [ebp - 4], 0
mov eax, dword [ebp + 0x2c]
lea esi, [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.00405b40
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp + 0x2c]
push ecx
mov ebx, 0xf003f
push ebx
push 0
push eax
mov edi, 0x80000001
push edi
mov dword [ebp - 0x14], eax
call esi
test eax, eax
jne 0x401f4b
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push dword [ebp + 0x28]
push dword [ebp + 0x2c]
jmp 0x401f7e
lea eax, [ebp + 0x2c]
push eax
push ebx
push 0
push 0x420180
push edi
call esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push dword [ebp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x401f91
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push dword [ebp + 0x28]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x401f91
push dword [ebp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp + 8]
call fcn.00405270
call fcn.0040e649
ret

Function at 0x4026e4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4254a4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push ebx
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call fcn.00410f60
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], 0x7d0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ebx, [ebp - 0x20c]
call fcn.004050b0
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bfa7
leave
ret

Function at 0x402759
Capabilities:
Get common file path
Get session user name

Disassembly:
push 0x320
mov eax, 0x41bbad
call fcn.0040e613
and dword [ebp - 0x324], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x31c], ax
lea eax, [ebp - 0x31a]
mov esi, ecx
push eax
mov dword [ebp - 0x32c], esi
call fcn.00410f60
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x31c]
push eax
mov dword [ebp - 0x328], 0x7d0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, esi
call fcn.00404f40
and dword [ebp - 4], 0
mov al, byte [ebp - 0x114]
mov byte [ebp - 0x320], al
lea eax, [ebp - 0x320]
push eax
mov dword [ebp - 0x324], 1
mov byte [ebp - 0x31f], 0
call fcn.004052c0
mov eax, esi
call fcn.0040e65d
ret

Function at 0x402a41
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x41c315
call fcn.0040e5aa
sub esp, 0x20
lea ebx, [ebp + 8]
mov esi, esp
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], esp
call fcn.00405150
call fcn.004060e0
add esp, 0x20
lea esi, [ebp + 0x28]
call fcn.00405aa0
mov esi, ebx
mov edi, eax
call fcn.00405aa0
push edi
mov ecx, eax
call fcn.0040665e
pop ecx
call fcn.00405b40
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00405270
lea esi, [ebp + 0x28]
call fcn.00405270
call fcn.0040e649
ret
Function at 0x4041d2
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x41bddb
call fcn.0040e613
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x4042b3
cmp byte [edi + 0x49], bl
je 0x4042b3
mov eax, dword [edi]
push 0xffffffffffffffff
mov ecx, edi
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x404207
xor al, al
jmp 0x4042b5
lea esi, [ebp - 0x2c]
call fcn.00403e2a
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x404255
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x40425a
dec eax
je 0x40425e
dec eax
dec eax
je 0x4042af
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403fa2
mov al, bl
jmp 0x4042b5
mov edx, dword [ebp - 0x2c]
jmp 0x404220
mov byte [edi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40426a
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x404290
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40427d
lea eax, [ebp - 0x2c]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040cf7e
add esp, 0x10
cmp esi, eax
jne 0x404243
cmp byte [edi + 0x49], 0
je 0x4042af
test esi, esi
jne 0x404212
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.00403eb2
jmp 0x404212
mov bl, 1
jmp 0x404245
mov al, 1
call fcn.0040e65d
ret
Function at 0x405db0
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4254a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
push esi
call fcn.00405d00
add esp, 4
cmp al, 1
jne 0x405deb
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bfa7
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x210]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405df5
lea eax, [ebp - 0x210]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405e08
sub eax, edx
mov cl, byte [ebp + eax - 0x211]
lea eax, [ebp + eax - 0x211]
cmp cl, 0x5c
je 0x405e29
cmp cl, 0x2f
jne 0x405e2c
mov byte [eax], 0
lea eax, [ebp - 0x210]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405e35
sub eax, edx
mov esi, eax
push 0x100
lea eax, [ebp - 0x108]
push 0
push eax
mov dword [ebp - 0x218], esi
call fcn.00410f60
add esp, 0xc
xor ebx, ebx
test esi, esi
jle 0x405f38
mov byte [ebp - 0x213], bl
mov al, byte [ebp + ebx - 0x210]
cmp al, 0x5c
je 0x405e9f
mov byte [ebp - 0x214], al
lea eax, [ebp - 0x214]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405e85
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405e95
jmp 0x405eeb
push 0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405ec4
push 0x80
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x214]
mov byte [ebp - 0x214], 0x5c
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405ed3
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405ee3
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x218]
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
cmp ebx, eax
jne 0x405f2b
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405f2b
push 0x80
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
inc ebx
cmp ebx, dword [ebp - 0x218]
jl 0x405e6c
lea edx, [ebp - 0x108]
push edx
call fcn.00405d00
xor ecx, ecx
add esp, 4
test al, al
setne cl
pop edi
pop esi
pop ebx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bfa7
mov esp, ebp
pop ebp
ret
Function at 0x406c02
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x406c4a
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x406c1b
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x406c4f
test ecx, ecx
je 0x406c4a
test edi, edi
jne 0x406c10
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x406c4c

Function at 0x408b16
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x408b1e
mov dword [ecx*4 + 0x84e3c0], eax
inc ecx
cmp ecx, 0x100
jb 0x408b19
mov edx, 0x800
jmp 0x408b6b
mov eax, dword [ecx*4 + 0x84dfc0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x84e3c0]
inc ecx
mov dword [ecx*4 + 0x84e3bc], eax
cmp ecx, edx
jb 0x408b4a
mov dword [0x84d1d8], 0x40943e
call fcn.004095a0
test eax, eax
jne 0x408b8c
mov dword [0x84d1d8], 0x4094da
pop esi
ret
Function at 0x4099a9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x4099c0
leave
ret
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x4099df
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4099e4
inc edi
cmp edi, dword [ebp - 8]
jb 0x4099d6
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x409ad3
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x409a66
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x409a10
cmp cl, 0xff
jne 0x409a95
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
lea ebx, [esi - 5]
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x409aa6
movzx esi, byte [edx + 0x421b64]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
mov cl, bl
test cl, cl
je 0x409a56
cmp cl, 0xff
jne 0x409aa3
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x409a2e
dec ecx
shl edx, cl
and edx, 7
je 0x4099fd
movzx ecx, byte [edx + 0x421b64]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x421b5c], 0
mov cl, byte [ebx + 4]
je 0x409a92
test cl, cl
je 0x409a92
cmp cl, 0xff
jne 0x4099fd
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4099d1
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x4099d1
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0xc]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x40bfa7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4254a4]
jne 0x40bfb1
repz ret
jmp fcn.00410d3b

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40cace
call fcn.004111c9
mov dword [eax], esi
call fcn.004111b6
push 0x16
pop esi
mov dword [eax], esi
call fcn.00411164
mov eax, esi
jmp 0x40cb23
test dword [ebp + 0xc], 0xfffffff9
jne 0x40cab4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40cafb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004111dc
pop ecx
call fcn.004111b6
mov eax, dword [eax]
jmp 0x40cb23
test al, 0x10
jne 0x40cb21
test al, 1
je 0x40cb21
test byte [ebp + 0xc], 2
je 0x40cb21
call fcn.004111c9
mov dword [eax], 5
call fcn.004111b6
mov dword [eax], 0xd
jmp 0x40caf2
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41a08a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4254a4]
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.00413862
and dword [ebp - 0x14], 0
cmp dword [0x44c9c8], 0
mov dword [ebp - 0x18], eax
jne 0x41a13d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41a1e5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42004c
push ebx
call edi
test eax, eax
je 0x41a1e5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44c9c8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44c9cc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44c9d0], eax
call edi
push eax
call esi
mov dword [0x44c9d8], eax
test eax, eax
je 0x41a13d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44c9d4], eax
mov eax, dword [0x44c9d4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41a196
cmp dword [0x44c9d8], ecx
je 0x41a196
push eax
call esi
push dword [0x44c9d8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41a196
test ebx, ebx
je 0x41a196
call edi
test eax, eax
je 0x41a18d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41a18d
test byte [ebp - 8], 1
jne 0x41a196
or dword [ebp + 0x10], 0x200000
jmp 0x41a1c9
mov eax, dword [0x44c9cc]
cmp eax, dword [ebp - 0x18]
je 0x41a1c9
push eax
call esi
test eax, eax
je 0x41a1c9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41a1c9
mov eax, dword [0x44c9d0]
cmp eax, dword [ebp - 0x18]
je 0x41a1c9
push eax
call esi
test eax, eax
je 0x41a1c9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44c9c8]
call esi
test eax, eax
je 0x41a1e5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41a1e7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bfa7
leave
ret
Function at 0x413810
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4972db
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.0048ade4
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x413892
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00487de7
mov eax, dword [eax]
push 0x4e4210
push eax
call fcn.00479d94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048b06f
test bl, bl
je 0x413892
push 0x4e4210
lea ecx, [esp + 0xc]
call fcn.0048b3ff
push 0x4e7db8
lea ecx, [esp + 0xc]
call fcn.0048b3ff
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 0x4138ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048b06f
jmp 0x413999
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 0x413952
lea edx, [esp + 0x7c]
push 0x4e7db4
push edx
call fcn.00479d94
add esp, 8
test eax, eax
je 0x413952
lea eax, [esp + 0x7c]
push 0x4e7db0
push eax
call fcn.00479d94
add esp, 8
test eax, eax
je 0x413952
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 0x4138e2
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.0048b06f
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 0x414bf0
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 0x414c52
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 0x414c60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49743b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4ef1cc]
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 0x414d98
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x414cc6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048b06f
xor eax, eax
jmp 0x414e0f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0048b1ac
push esi
lea ecx, [esp + 0xc]
call fcn.0048b43b
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4e7df0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x414ded
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00414bf0
test eax, eax
jne 0x414ded
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.00414bf0
test eax, eax
jne 0x414ded
lea eax, [esp + 0x14]
push 0x4e7dcc
push eax
call fcn.0047add0
mov esi, eax
add esp, 8
test esi, esi
jne 0x414dcc
lea ecx, [esp + 0x14]
push 0x4e7dc8
push ecx
call fcn.0047ad50
mov esi, eax
add esp, 8
test esi, esi
jne 0x414dcc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x414dcf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0048b15c
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x414cde
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048b06f
xor eax, eax
jmp 0x414e0f
mov byte [esi], 0
push 0x4e7dc4
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.0048b06f
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 0x429980
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 0x4299ee
cmp si, 0x69
ja 0x4299ee
add esi, 0xffd0
cmp si, 0x11
je 0x4299be
push 0x11
call edi
test ax, ax
jge 0x4299be
or esi, 0x2000
cmp si, 0x10
je 0x4299d3
push 0x10
call edi
test ax, ax
jge 0x4299d3
or esi, 0x4000
cmp si, 0x12
je 0x4299e8
push 0x12
call edi
test ax, ax
jge 0x4299e8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4299fb
mov esi, 0xbd
jmp 0x4299af
cmp si, 0x6e
jne 0x429a08
mov esi, 0xbe
jmp 0x4299af
cmp si, 0x6f
jne 0x4299a9
mov esi, 0xbf
jmp 0x4299af

Function at 0x42b130
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4ff9c0]
xor edx, edx
cmp eax, edx
jne 0x42b156
xor eax, eax
mov byte [eax + 0x4ff8c0], al
inc eax
cmp eax, 0x100
jl 0x42b13e
mov dword [0x4ff9c0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4ff8c0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42b1e7
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 0x42b1ba
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 0x42b188
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42b260
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 0x42b2b3
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 0x42b29a
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 0x431cf0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x431e88
cmp ebp, ebx
jle 0x431e88
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x431d4e
dec eax
or eax, 0xfffffff8
inc eax
je 0x431d55
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x431d64
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x431d6b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0048adb0
add esp, 4
cmp eax, ebx
je 0x431d8c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0048adb0
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x431e7e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x431e65
mov al, byte [edx]
cmp al, 0xc0
jbe 0x431e51
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x431e46
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x431e54
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x431e54
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x431df0
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x431de1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret