joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b2c1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0xc]
push edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40b331
lea eax, [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp + 8]
push 0
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x40b328
cmp dword [ebp + 8], 1
jne 0x40b328
lea eax, [ebp - 4]
mov edi, 0x420aa8
push eax
lea eax, [ebp + 8]
push edi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x40b328
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40b333
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x40b824
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
push ebx
push esi
push edi
mov edi, dword [0x420cbc]
test edi, edi
je 0x40b8cb
lea eax, [ebp - 0x460]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x7c
push edi
call fcn.00414320
pop ecx
pop ecx
mov ebx, eax
test ebx, ebx
je 0x40b8cb
mov esi, ebx
lea eax, [ebp - 0x35c]
sub esi, edi
push esi
push edi
push eax
call fcn.00413eb0
and byte [ebp + esi - 0x35c], 0
lea eax, [ebp - 0x35c]
push 0x3b
push eax
call fcn.00414320
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40b8c7
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00413bb0
and byte [esi], 0
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00403db5
lea edi, [ebx + 1]
push 0x7c
push edi
call fcn.00414320
add esp, 0x18
jmp 0x40b85a
xor eax, eax
jmp 0x40b8ce
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bec4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0x14]
call fcn.00413dd0
mov esi, eax
pop ecx
lea eax, [ebp - 4]
inc esi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40bf0b
push esi
push dword [ebp + 0x14]
push 1
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40bf0d
xor eax, eax
pop esi
leave
ret

Function at 0x40bf10
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x40bf6c
push dword [ebp + 0xc]
call fcn.00413dd0
test eax, eax
pop ecx
je 0x40bf6c
push dword [ebp + 0x10]
call fcn.00413dd0
test eax, eax
pop ecx
je 0x40bf6c
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bf6c
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
xor eax, eax
leave
ret
Function at 0x40bf70
Capabilities:
Create process on windows
Resume thread
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x648
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x8000080
push 2
push ebx
push ebx
mov esi, str.icremov.bat
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c0ab
lea eax, [ebp - 0x15c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x260]
push 0x5c
push eax
call fcn.00413b80
mov byte [eax], bl
lea eax, [ebp - 0x260]
push esi
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x648]
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_ndel___s__r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x20
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x648]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x648]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push 0x44
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00413e50
add esp, 0xc
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], bx
push 0x44
pop eax
push ecx
lea ecx, [ebp - 0x58]
push ecx
push 0x41d30c
push ebx
push eax
push ebx
push ebx
push ebx
push esi
push ebx
mov dword [ebp - 0x58], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40c0ab
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push dword [ebp - 0xc]
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push dword [ebp - 0x10]
call edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebp - 0xc]
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c107
Capabilities:
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
xor ebx, ebx
cmp byte [0x422380], bl
push esi
push edi
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x24], 8
mov dword [ebp - 0x10], ebx
je 0x40c2a8
cmp dword [0x420d14], ebx
je 0x40c2a8
mov esi, 0x41d3f0
push esi
push 0x422380
call fcn.004148c6
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x18], eax
je 0x40c2a8
push esi
push ebx
call fcn.004148c6
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
je 0x40c2a8
push esi
push ebx
call fcn.004148c6
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
je 0x40c2a8
lea eax, [ebp - 4]
push eax
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40c1be
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40c29f
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x128]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push dword [ebp - 0x18]
lea eax, [ebp - 0x128]
push eax
call fcn.00403d6d
lea eax, [ebp - 0x128]
push eax
call fcn.00404bad
add esp, 0xc
test eax, eax
ja 0x40c2a8
push dword [0x420d14]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 6]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
mov cx, word [ebp - 8]
lea eax, [esi + 0x120a0]
push 0x180
push 0x8321
mov word [eax], cx
mov cx, word [ebp - 6]
mov word [eax + 2], cx
lea eax, [ebp - 0x128]
push eax
call fcn.004133bd
add esp, 0xc
cmp eax, 0xffffffff
je 0x40c2a8
push eax
call fcn.00413a30
pop ecx
lea eax, [ebp - 0x128]
push 2
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c2a8
push dword [0x420d18]
push esi
push edi
call dword [sym.imp.KERNEL32.dll__lwrite]
push edi
call dword [sym.imp.KERNEL32.dll__lclose]
cmp dword [ebp - 0x10], ebx
je 0x40c2a8
lea eax, [ebp - 0x20]
push 8
push eax
push 3
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c2ad
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push esi
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40c30f
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x14]
push esi
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40c30f
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
leave
ret
Function at 0x40c36d
Capabilities:
Create process on windows
Get common file path
Persist via run registry key
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
xor ebx, ebx
cmp dword [0x420cf0], ebx
push esi
push edi
je 0x40c499
lea eax, [ebp - 0x104]
push eax
call fcn.0040b8d3
test eax, eax
pop ecx
je 0x40c5e3
lea eax, [ebp - 0x310]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x41c]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x41c]
push 0x5c
push eax
call fcn.00413b80
pop ecx
cmp eax, ebx
pop ecx
je 0x40c3d7
inc eax
jmp 0x40c3dd
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.00403d6d
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x41c]
push eax
call fcn.00403a23
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
add esp, 0x10
lea eax, [ebp - 0x310]
push esi
push eax
lea eax, [ebp - 0x310]
push eax
call edi
lea eax, [ebp - 0x310]
push str.__s
push eax
call fcn.00413bc0
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push esi
push eax
lea eax, [ebp - 0x104]
push eax
call edi
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.00413bc0
lea eax, [ebp - 0x310]
push eax
push 0x41d4ac
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call fcn.0040bec4
add esp, 0x18
cmp dword [0x420cec], ebx
je 0x40c5e3
cmp dword [0x42225c], 3
jne 0x40c48b
call fcn.0040c2ad
jmp 0x40c558
push ebx
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x40c558
cmp dword [0x420d08], ebx
je 0x40c4b0
push ebx
push ebx
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x4235dc], ebx
je 0x40c4d5
cmp byte [0x4234cc], bl
je 0x40c4d5
push 1
push ebx
push ebx
push 0x4234cc
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.0040b768
mov esi, eax
cmp esi, ebx
je 0x40c5b7
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x104
push esi
push esi
call edi
push esi
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.00404fef
add esp, 0xc
push esi
call fcn.0040c312
test eax, eax
je 0x40c52b
lea eax, [ebp - 0x104]
push eax
push dword [0x422d00]
push ebx
push ebx
push esi
call fcn.00403a53
add esp, 0x14
jmp 0x40c5b0
lea eax, [ebp - 0x318]
push eax
push esi
call fcn.0040b337
pop ecx
test eax, eax
pop ecx
jne 0x40c5b0
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
ja 0x40c55f
xor eax, eax
jmp 0x40c5e6
lea eax, [ebp - 0x318]
push 0x212
push eax
lea eax, [ebp - 0x318]
push eax
call edi
lea eax, [ebp - 0x318]
push 0x41d5f8
push eax
call fcn.00413bc0
lea eax, [ebp - 0x318]
push esi
push eax
call fcn.00413bc0
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x318]
push dword [0x422d00]
push ebx
push ebx
push eax
call fcn.00403a53
add esp, 0x24
push esi
call fcn.00413354
pop ecx
mov esi, 0x423820
push esi
call fcn.0040398e
test eax, eax
jne 0x40c5de
cmp dword [0x423244], ebx
je 0x40c5de
cmp dword [0x423248], 3
jne 0x40c5de
push esi
call fcn.0041a2dd
pop ecx
call fcn.0040b720
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e56c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x40e5b3
cmp edx, 0x10
jl 0x40e59f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x40e58c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x40e5b3
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x40e5ab
and edx, 3
cmp edx, 3
jne 0x40e5c7
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x40e5cc
cmp edx, 2
jne 0x40e5d8
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x40e5dd
cmp edx, 1
jne 0x40e5e3
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x417e95
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41ff28
cmp edx, dword [eax]
je 0x417eb7
add eax, 8
inc ecx
cmp eax, 0x41ffb8
jl 0x417ea8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41ff28]
jne 0x417fe5
mov eax, dword [0x421f48]
cmp eax, 1
je 0x417fbf
test eax, eax
jne 0x417ee8
cmp dword [0x41dbe0], 1
je 0x417fbf
cmp edx, 0xfc
je 0x417fe5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x417f1f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413bb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00413dd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x417f62
lea eax, [ebp - 0x1a4]
push eax
call fcn.00413dd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41b848
push edi
call fcn.00413ca0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413bb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413bc0
lea eax, [ebp - 0xa0]
push 0x41b828
push eax
call fcn.00413bc0
push dword [esi + 0x41ff2c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00413bc0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041938d
add esp, 0x2c
pop edi
jmp 0x417fe5
lea eax, [ebp + 8]
lea esi, [esi + 0x41ff2c]
push 0
push eax
push dword [esi]
call fcn.00413dd0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41b7f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b6ceb
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.004aac4e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41b872
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004a83c0
mov eax, dword [eax]
push 0x69b278
push eax
call fcn.00488154
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004aaed9
test bl, bl
je 0x41b872
push 0x69b278
lea ecx, [esp + 0xc]
call fcn.004ab269
push 0x69edf4
lea ecx, [esp + 0xc]
call fcn.004ab269
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 0x41b8ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004aaed9
jmp 0x41b979
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 0x41b932
lea edx, [esp + 0x7c]
push 0x69edf0
push edx
call fcn.00488154
add esp, 8
test eax, eax
je 0x41b932
lea eax, [esp + 0x7c]
push 0x69edec
push eax
call fcn.00488154
add esp, 8
test eax, eax
je 0x41b932
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 0x41b8c2
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.004aaed9
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 0x41c170
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b6d6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x6a76d4]
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 0x41c2a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41c1d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004aaed9
xor eax, eax
jmp 0x41c31f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004ab016
push esi
lea ecx, [esp + 0xc]
call fcn.004ab2a5
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x69ee2c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41c2fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x69ee24
push bind
call fcn.0046c400
test eax, eax
jne 0x41c2fd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x69ee10
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push bind
mov ecx, edi
call fcn.0046c400
test eax, eax
jne 0x41c2fd
lea eax, [esp + 0x14]
push 0x69ee08
push eax
call fcn.004891a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41c2dc
lea ecx, [esp + 0x14]
push 0x69ee04
push ecx
call fcn.00489120
mov esi, eax
add esp, 8
test esi, esi
jne 0x41c2dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41c2df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004aafc6
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41c1ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004aaed9
xor eax, eax
jmp 0x41c31f
mov byte [esi], 0
push 0x69ee00
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.004aaed9
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 0x430d30
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 0x430d9e
cmp si, 0x69
ja 0x430d9e
add esi, 0xffd0
cmp si, 0x11
je 0x430d6e
push 0x11
call edi
test ax, ax
jge 0x430d6e
or esi, 0x2000
cmp si, 0x10
je 0x430d83
push 0x10
call edi
test ax, ax
jge 0x430d83
or esi, 0x4000
cmp si, 0x12
je 0x430d98
push 0x12
call edi
test ax, ax
jge 0x430d98
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x430dab
mov esi, 0xbd
jmp 0x430d5f
cmp si, 0x6e
jne 0x430db8
mov esi, 0xbe
jmp 0x430d5f
cmp si, 0x6f
jne 0x430d59
mov esi, 0xbf
jmp 0x430d5f

Function at 0x4325f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6b8c80]
xor edx, edx
cmp eax, edx
jne 0x432616
xor eax, eax
mov byte [eax + 0x6b8b80], al
inc eax
cmp eax, 0x100
jl 0x4325fe
mov dword [0x6b8c80], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6b8b80
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4326a7
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 0x43267a
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 0x432648
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x432720
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 0x432773
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 0x43275a
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 0x4391b0
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 0x439348
cmp ebp, ebx
jle 0x439348
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 0x43920e
dec eax
or eax, 0xfffffff8
inc eax
je 0x439215
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x439224
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x43922b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.004aac1a
add esp, 4
cmp eax, ebx
je 0x43924c
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.004aac1a
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 0x43933e
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 0x439325
mov al, byte [edx]
cmp al, 0xc0
jbe 0x439311
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x439306
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 0x439314
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x439314
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x4392b0
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 0x4392a1
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

Function at 0x43b300
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
call fcn.004ac4c4
lea eax, [esp + 4]
mov dword [esi], method.CWnd.virtual_0
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
mov dword [esi + 0x44], 0x4d12
inc eax
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], eax
mov eax, esi
pop esi
add esp, 0x190
ret