joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461c84
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x4077bc]
call fcn.004054d0
xor eax, eax
push ebp
push 0x461e25
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x474c20], 0
jne 0x461cdf
mov ecx, dword [0x4751b4]
mov dl, 1
mov eax, dword [0x407da8]
call fcn.0040c9e8
call fcn.004044d4
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403594
mov eax, ebx
call fcn.004053a0
mov dword [ebp - 0x24], eax
mov esi, 0x461e34
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406468
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.004053b0
test eax, eax
jle 0x461dc8
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x461db4
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404cfc
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x461d5a
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00404d14
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x461d70
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00404d14
mov eax, dword [ebp - 0x54]
call fcn.00404f1c
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404cfc
mov eax, dword [ebp - 0x58]
call fcn.00404f1c
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x461db6
xor eax, eax
test al, al
je 0x461dc1
mov ebx, 0x15
jmp 0x461dcd
mov ebx, 0x10
jmp 0x461dcd
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x474c20]
call fcn.00461b04
mov eax, dword [ebp - 4]
call fcn.00461b04
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406480
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461e2c
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404ab0
lea eax, [ebp - 0xc]
mov edx, dword [0x4077bc]
call fcn.004055a0
ret
Function at 0x46e5e8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f0c
mov eax, dword [ebp - 8]
call fcn.00404f0c
xor eax, eax
push ebp
push 0x46e785
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
push 0x64
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x46e5c8]
call fcn.00405d84
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.user32.dll_GetKeyboardLayoutList
cmp eax, 1
jl 0x46e74c
mov edx, dword [ebp - 0x10]
push edx
push eax
call sub.user32.dll_GetKeyboardLayoutList
mov esi, eax
dec esi
test esi, esi
jl 0x46e74c
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ebx*4]
push eax
call sub.imm32.dll_ImmIsIME
test al, al
je 0x46e744
lea eax, [ebp - 0x119]
xor ecx, ecx
mov edx, 0x104
call fcn.00403594
push 0x104
lea eax, [ebp - 0x119]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ebx*4]
push eax
call sub.imm32.dll_ImmGetIMEFileNameA
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x119]
mov ecx, 0x105
call fcn.00404cfc
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 0xc]
call fcn.00408a3c
mov eax, dword [ebp - 0x120]
push eax
lea edx, [ebp - 0x124]
mov eax, dword [ebp - 4]
call fcn.00408a3c
mov edx, dword [ebp - 0x124]
pop eax
call fcn.00404eb4
jne 0x46e701
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x14], eax
jmp 0x46e74c
push 0x104
lea eax, [ebp - 0x119]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ebx*4]
push eax
call sub.imm32.dll_ImmGetDescriptionA
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x119]
mov ecx, 0x105
call fcn.00404cfc
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404eb4
jne 0x46e744
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x14], eax
jmp 0x46e74c
inc ebx
dec esi
jne 0x46e674
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e78c
lea eax, [ebp - 0x124]
mov edx, 2
call fcn.00404ab0
lea eax, [ebp - 0x10]
mov edx, dword [0x46e5c8]
call fcn.00405d90
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ab0
ret
Function at 0x46e798
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
xor ecx, ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f0c
mov eax, dword [ebp - 8]
call fcn.00404f0c
xor eax, eax
push ebp
push 0x46e97a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x115]
xor ecx, ecx
mov edx, 0x104
call fcn.00403594
lea eax, [ebp - 0x21a]
xor ecx, ecx
mov edx, 0x104
call fcn.00403594
push 0x104
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
jne 0x46e82a
mov dword [0x475178], 0x271b
jmp 0x46e94f
cmp byte [ebp + eax - 0x21b], 0x5c
je 0x46e83d
mov byte [ebp + eax - 0x21a], 0x5c
inc eax
push 0x46e988
lea eax, [ebp + eax - 0x21a]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x21a]
mov ecx, 0x105
call fcn.00404cfc
lea eax, [ebp - 0x21a]
push eax
call sub.shlwapi.dll_PathFileExistsA
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x46e8de
lea eax, [ebp - 0x220]
lea edx, [ebp - 0x21a]
mov ecx, 0x105
call fcn.00404cfc
mov eax, dword [ebp - 0x220]
call fcn.00404f1c
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x46e8b3
mov dword [0x475178], 0x271c
lea eax, [ebp - 0x21a]
push eax
call sub.shlwapi.dll_PathFileExistsA
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x46e8de
mov eax, dword [ebp - 0xc]
call fcn.00404f1c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpyA
push 0
lea eax, [ebp - 0x21a]
push eax
lea edx, [ebp - 0x228]
xor eax, eax
call fcn.004032ac
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x224]
call fcn.00409664
lea eax, [ebp - 0x224]
mov edx, dword [ebp - 4]
call fcn.00404d58
mov eax, dword [ebp - 0x224]
call fcn.00404f1c
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x46e938
mov dword [0x475178], 0x271d
mov eax, dword [ebp - 8]
call fcn.00404f1c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.imm32.dll_ImmInstallIMEA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e981
lea eax, [ebp - 0x228]
mov edx, 3
call fcn.00404ab0
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404ab0
ret
Function at 0x46eb24
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x26
push 0
push 0
dec ecx
jne 0x46eb2c
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x46ed8a
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x46ed47
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x10c]
xor eax, eax
call fcn.004032ac
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.00409664
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 4]
mov ecx, 0x46eda4
call fcn.00404da4
xor eax, eax
push ebp
push 0x46eba3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0046ea1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46ebad
lea eax, [ebp - 0x104]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x110]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404cfc
lea eax, [ebp - 0x110]
mov edx, 0x46edb4
call fcn.00404d58
mov ecx, dword [ebp - 0x110]
mov dl, 1
mov eax, dword [0x421f08]
call fcn.00421fc0
mov ebx, eax
lea edx, [ebp - 0x118]
xor eax, eax
call fcn.004032ac
mov eax, dword [ebp - 0x118]
lea edx, [ebp - 0x114]
call fcn.00409664
lea eax, [ebp - 0x114]
mov edx, 0x46edcc
call fcn.00404d58
mov eax, dword [ebp - 0x114]
push eax
mov ecx, 0x46eddc
mov edx, 0x46edec
mov eax, ebx
mov esi, dword [eax]
call dword [esi + 4]
mov eax, ebx
call fcn.00403c60
push 0x258
call sub.kernel32.dll_Sleep_1
mov edx, 0x46edfc
mov eax, 0x46ee18
call fcn.0046e798
mov dword [0x47be78], eax
cmp dword [0x47be78], 0
jne 0x46ec82
mov edx, 0x46edfc
mov eax, 0x46eda4
call fcn.0046e5e8
mov dword [0x47be78], eax
jmp 0x46ece3
lea edx, [ebp - 0x124]
xor eax, eax
call fcn.004032ac
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x120]
call fcn.00409664
push dword [ebp - 0x120]
push 0x46eda4
push 0x46ee28
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.00404e20
mov ebx, dword [ebp - 0x11c]
mov dword [ebp - 0x128], ebx
mov eax, dword [ebp - 0x128]
call fcn.00404f1c
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
cmp dword [0x47be78], 0
jne 0x46ed38
push 0x1030
push 0x46ee2c
lea edx, [ebp - 0x130]
mov eax, dword [0x475178]
call fcn.00409088
mov ecx, dword [ebp - 0x130]
lea eax, [ebp - 0x12c]
mov edx, 0x46ee40
call fcn.00404da4
mov eax, dword [ebp - 0x12c]
call fcn.00404f1c
push eax
mov eax, dword [0x47be70]
call fcn.004483a8
push eax
call sub.user32.dll_MessageBoxA_1
mov ebx, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46ed54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ed91
lea eax, [ebp - 0x130]
mov edx, 2
call fcn.00404ab0
lea eax, [ebp - 0x124]
mov edx, 8
call fcn.00404ab0
lea eax, [ebp - 4]
call fcn.00404a8c
ret
Function at 0x46ee80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x46ef87
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x46ef98
call sub.user32.dll_FindWindowA
mov ebx, eax
xor esi, esi
mov eax, edi
call fcn.00404a8c
jmp 0x46ef4d
inc esi
push 0xff
lea eax, [ebp - 0x104]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 4]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404cfc
lea edx, [ebp - 0x10c]
mov eax, dword [0x4754a0]
mov eax, dword [eax]
call fcn.00409088
mov edx, dword [ebp - 0x10c]
lea ecx, [ebp - 0x108]
mov eax, 0x46efa8
call fcn.0046156c
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp - 4]
call fcn.00405068
test eax, eax
jle 0x46ef35
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404ae0
jmp 0x46ef61
push 0
push 0x46ef98
push ebx
push 0
call sub.user32.dll_FindWindowExA
mov ebx, eax
push 0xa
call sub.kernel32.dll_Sleep_1
test ebx, ebx
ja 0x46eec9
cmp esi, 0x5dc
jg 0x46eec9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ef8e
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.00404ab0
lea eax, [ebp - 4]
call fcn.00404a8c
ret
Function at 0x40a098
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.0040354c
mov eax, dword [ebp - 0x18]
call fcn.0040354c
mov eax, dword [ebp - 0x1c]
call fcn.0040354c
xor eax, eax
push ebp
push 0x40a19c
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov eax, dword [ebp - 0x14]
call fcn.0040355c
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040355c
mov edx, eax
mov eax, dword [0x40c650]
pop ecx
call fcn.0040a020
pop ecx
test al, al
je 0x40a181
mov eax, dword [ebp - 0x1c]
call fcn.0040496c
test al, al
je 0x40a112
mov eax, dword [ebp - 0x1c]
call fcn.0040355c
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
push ebp
push 0x40a166
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x1c]
call fcn.0040355c
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40a170
mov eax, dword [ebp - 0x10]
call fcn.00404564
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a1a3
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00403140
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x40d230
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4758db
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.00469d53
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40d2b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004679b0
mov eax, dword [eax]
push 0x4a5210
push eax
call fcn.004594e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00469fde
test bl, bl
je 0x40d2b2
push 0x4a5210
lea ecx, [esp + 0xc]
call fcn.0046a36e
push 0x4a8d8c
lea ecx, [esp + 0xc]
call fcn.0046a36e
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 0x40d2ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00469fde
jmp 0x40d3b9
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 0x40d372
lea edx, [esp + 0x7c]
push 0x4a8d88
push edx
call fcn.004594e4
add esp, 8
test eax, eax
je 0x40d372
lea eax, [esp + 0x7c]
push 0x4a8d84
push eax
call fcn.004594e4
add esp, 8
test eax, eax
je 0x40d372
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 0x40d302
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.00469fde
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 0x40dbb0
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 0x40dc12
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 0x40dc20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47595b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b12b4]
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 0x40dd58
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40dc86
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00469fde
xor eax, eax
jmp 0x40ddcf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046a11b
push esi
lea ecx, [esp + 0xc]
call fcn.0046a3aa
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4a8dc4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40ddad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040dbb0
test eax, eax
jne 0x40ddad
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.0040dbb0
test eax, eax
jne 0x40ddad
lea eax, [esp + 0x14]
push 0x4a8da0
push eax
call fcn.0045a520
mov esi, eax
add esp, 8
test esi, esi
jne 0x40dd8c
lea ecx, [esp + 0x14]
push 0x4a8d9c
push ecx
call fcn.0045a4a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40dd8c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40dd8f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046a0cb
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40dc9e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00469fde
xor eax, eax
jmp 0x40ddcf
mov byte [esi], 0
push 0x4a8d98
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.00469fde
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 0x421b00
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 0x421b6e
cmp si, 0x69
ja 0x421b6e
add esi, 0xffd0
cmp si, 0x11
je 0x421b3e
push 0x11
call edi
test ax, ax
jge 0x421b3e
or esi, 0x2000
cmp si, 0x10
je 0x421b53
push 0x10
call edi
test ax, ax
jge 0x421b53
or esi, 0x4000
cmp si, 0x12
je 0x421b68
push 0x12
call edi
test ax, ax
jge 0x421b68
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x421b7b
mov esi, 0xbd
jmp 0x421b2f
cmp si, 0x6e
jne 0x421b88
mov esi, 0xbe
jmp 0x421b2f
cmp si, 0x6f
jne 0x421b29
mov esi, 0xbf
jmp 0x421b2f

Function at 0x4232b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4c1a70]
xor edx, edx
cmp eax, edx
jne 0x4232d6
xor eax, eax
mov byte [eax + 0x4c1970], al
inc eax
cmp eax, 0x100
jl 0x4232be
mov dword [0x4c1a70], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4c1970
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x423367
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 0x42333a
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 0x423308
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4233e0
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 0x423433
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 0x42341a
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