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

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x4a3bd5
cmp dword [ebp + 4], 0xffffffff
jne 0x4a3bd5
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x71b524
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x4a3b9d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x4a3b9d
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.004a2920
add esp, 0x10
test eax, eax
jne 0x4a3bc0
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.004a2e60
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x4a4030
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x4a40f8
mov al, byte [ecx]
test al, al
je 0x4a40f8
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x4a405b
cmp al, 0x5c
jne 0x4a405d
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4a4053
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x4a4094
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.004bb3a9
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.004a4030
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x4acd40
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4acda6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4acda6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4acd87
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4ad130
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4ad168
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4add90
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4addd9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4ae250
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dc0a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004ade00
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004ade80
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004ade80
lea ecx, [esi + 0xc]
call fcn.004cab3c
lea ecx, [esi + 0x10]
call fcn.004cab3c
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004af410
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004af410
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004af410
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004cabb1
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004cabb1
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4bad00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4bad20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004bd21c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4bad43
test byte [esp + 8], 2
je 0x4bad43
call fcn.004bd28f
mov dword [eax], 0xd
call fcn.004bd298
mov dword [eax], 5
jmp 0x4bad1c
xor eax, eax
ret

Function at 0x4ccfcb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4cd003
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004cb058
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004cb030
jmp 0x4cd00f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ce6be
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ce700
call fcn.004d466d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ce700
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ce6f7
xor eax, eax
jmp 0x4ce708
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ce70e
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d4b9d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d4bcb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d4be9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d4b03
jmp 0x4d4be9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d4be9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d4b03
test edi, edi
mov eax, edi
jne 0x4d4bd3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4e8540
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4e8548
push ecx
push ebx
push esi
xor edx, edx
push ebp
push 0x4e8728
push dword fs:[edx]
mov dword fs:[edx], esp
call fcn.004e7c90
lea edx, [ebp - 0x14]
mov eax, dword [0x4f3738]
mov eax, dword [eax]
call fcn.004b456c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00413b80
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x18]
mov eax, dword [0x4f9334]
call fcn.00413b80
mov edx, dword [ebp - 0x18]
pop eax
call fcn.00406e70
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00413f48
lea edx, [ebp - 8]
mov eax, dword [0x4f9334]
call fcn.00413e54
lea eax, [ebp - 0xc]
mov edx, dword [0x4f9338]
call fcn.00406ab0
call fcn.004045b8
mov esi, eax
test esi, esi
jle 0x4e865c
mov ebx, 1
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404618
mov edx, dword [ebp - 0x1c]
mov eax, 0x4e8744
call fcn.004074b4
test eax, eax
jg 0x4e8609
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00404618
mov edx, dword [ebp - 0x20]
mov eax, 0x4e8754
call fcn.004074b4
test eax, eax
jle 0x4e8632
push dword [ebp - 0xc]
push 0x4e8764
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00404618
push dword [ebp - 0x24]
push 0x4e8778
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00407014
jmp 0x4e8654
push dword [ebp - 0xc]
push 0x4e8744
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.00404618
push dword [ebp - 0x28]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407014
inc ebx
dec esi
jne 0x4e85d3
mov eax, dword [ebp - 4]
call fcn.00414050
push 0
mov ecx, 0x4e8788
mov edx, 0x4e879c
mov eax, dword [0x4f934c]
mov ebx, dword [eax]
call dword [ebx + 0x14]
test al, al
je 0x4e86c2
push 0
mov eax, dword [ebp - 4]
call fcn.00406ae8
push eax
push 0x4e87b8
push dword [ebp - 8]
push 0x4e87d0
push dword [ebp - 0xc]
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00407014
mov eax, dword [ebp - 0x2c]
call fcn.00406ae8
push eax
push 0x4e87d8
push 0x4e87e0
push 0
call sub.shell32.dll_ShellExecuteW
jmp 0x4e86fd
push 1
push dword [ebp - 4]
push dword [ebp - 8]
push 0x4e8744
push dword [ebp - 0xc]
lea eax, [ebp - 0x34]
mov edx, 4
call fcn.00407014
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov ecx, 0
call fcn.00406ca0
mov eax, dword [ebp - 0x30]
call fcn.004065cc
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e872f
lea eax, [ebp - 0x34]
call fcn.00406a4c
lea eax, [ebp - 0x30]
call fcn.00406154
lea eax, [ebp - 0x2c]
mov edx, 0xb
call fcn.00406a54
ret
Function at 0x415c0b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4228b4]
jne 0x415c15
repz ret
jmp fcn.00418d2a

Function at 0x416008
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004135ce
and dword [ebp - 4], 0
cmp dword [0x423e3c], 0
mov ebx, eax
jne 0x4160b9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41616a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41616a
push eax
call fcn.0041355c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e3c], eax
call esi
push eax
call fcn.0041355c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e40], eax
call esi
push eax
call fcn.0041355c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e44], eax
call esi
push eax
call fcn.0041355c
pop ecx
mov dword [0x423e4c], eax
test eax, eax
je 0x4160b9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041355c
pop ecx
mov dword [0x423e48], eax
mov eax, dword [0x423e48]
cmp eax, ebx
je 0x416111
cmp dword [0x423e4c], ebx
je 0x416111
push eax
call fcn.004135d7
push dword [0x423e4c]
mov esi, eax
call fcn.004135d7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x416111
test edi, edi
je 0x416111
call esi
test eax, eax
je 0x416108
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416108
test byte [ebp - 0xc], 1
jne 0x416111
or dword [ebp + 0x10], 0x200000
jmp 0x41614a
mov eax, dword [0x423e40]
cmp eax, ebx
je 0x41614a
push eax
call fcn.004135d7
pop ecx
test eax, eax
je 0x41614a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41614a
mov eax, dword [0x423e44]
cmp eax, ebx
je 0x41614a
push eax
call fcn.004135d7
pop ecx
test eax, eax
je 0x41614a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e3c]
call fcn.004135d7
pop ecx
test eax, eax
je 0x41616a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41616c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5d8acf
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5d87dc
add edi, ecx
and ecx, ecx
sub ecx, 0xd34e5091
call fcn.005d8b23
sub edi, 0xb54c2521
or ecx, ecx
xor dword [ebx], eax
mov edi, 0x90b06245
add edi, 0x1d8c0fef
add ebx, 2
add edi, 0x553ae8f7
cmp ebx, edx
jl fcn.005d8acf
add edi, 1
add edi, ecx
add edi, 0xaf06bf1d
ret
Function at 0x4022a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push edx
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x4022d9
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x4022c7
mov al, 1
jmp 0x402321
cmp dword [ebx + 0x54], ecx
jne 0x4022d0
mov al, 2
jmp 0x402321
cmp dword [ebx + 0x7c], ecx
jmp 0x402321
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x4022ee
mov al, 4
jmp 0x402321
cmp ecx, 5
jne 0x40230e
cmp ebx, 0
jne 0x4022fc
mov al, 5
jmp 0x402321
cmp ebx, 1
jne 0x402305
mov al, 6
jmp 0x402321
cmp ebx, 2
jne 0x40230e
mov al, 7
jmp 0x402321
cmp ecx, 6
jne 0x402321
cmp ebx, 0
jne 0x40231a
mov al, 8
cmp ebx, 1
jne 0x402321
mov al, 9
pop ebx
pop edx
leave
ret
Function at 0x41752a
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push edx
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x417563
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x417551
mov al, 1
jmp 0x4175ab
cmp dword [ebx + 0x54], ecx
jne 0x41755a
mov al, 2
jmp 0x4175ab
cmp dword [ebx + 0x7c], ecx
jmp 0x4175ab
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x417578
mov al, 4
jmp 0x4175ab
cmp ecx, 5
jne 0x417598
cmp ebx, 0
jne 0x417586
mov al, 5
jmp 0x4175ab
cmp ebx, 1
jne 0x41758f
mov al, 6
jmp 0x4175ab
cmp ebx, 2
jne 0x417598
mov al, 7
jmp 0x4175ab
cmp ecx, 6
jne 0x4175ab
cmp ebx, 0
jne 0x4175a4
mov al, 8
cmp ebx, 1
jne 0x4175ab
mov al, 9
pop ebx
pop edx
leave
ret
Function at 0x42b220
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a284b
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.00496dec
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x42b2a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00494add
mov eax, dword [eax]
push 0x51f234
push eax
call fcn.004876f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00497077
test bl, bl
je 0x42b2a2
push 0x51f234
lea ecx, [esp + 0xc]
call fcn.00497407
push 0x522dc8
lea ecx, [esp + 0xc]
call fcn.00497407
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 0x42b2de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00497077
jmp 0x42b3a9
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 0x42b362
lea edx, [esp + 0x7c]
push 0x522dc4
push edx
call fcn.004876f4
add esp, 8
test eax, eax
je 0x42b362
lea eax, [esp + 0x7c]
push 0x522dc0
push eax
call fcn.004876f4
add esp, 8
test eax, eax
je 0x42b362
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 0x42b2f2
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.00497077
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 0x42bba0
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 0x42bc02
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 0x42bc10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a28cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x530d38]
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 0x42bd48
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x42bc76
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00497077
xor eax, eax
jmp 0x42bdbf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004971b4
push esi
lea ecx, [esp + 0xc]
call fcn.00497443
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x522e00
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x42bd9d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push bind
call fcn.0042bba0
test eax, eax
jne 0x42bd9d
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 bind
mov ecx, edi
call fcn.0042bba0
test eax, eax
jne 0x42bd9d
lea eax, [esp + 0x14]
push 0x522ddc
push eax
call fcn.00488730
mov esi, eax
add esp, 8
test esi, esi
jne 0x42bd7c
lea ecx, [esp + 0x14]
push 0x522dd8
push ecx
call fcn.004886b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x42bd7c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x42bd7f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00497164
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x42bc8e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00497077
xor eax, eax
jmp 0x42bdbf
mov byte [esi], 0
push 0x522dd4
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.00497077
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 0x43f4b0
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 0x43f51e
cmp si, 0x69
ja 0x43f51e
add esi, 0xffd0
cmp si, 0x11
je 0x43f4ee
push 0x11
call edi
test ax, ax
jge 0x43f4ee
or esi, 0x2000
cmp si, 0x10
je 0x43f503
push 0x10
call edi
test ax, ax
jge 0x43f503
or esi, 0x4000
cmp si, 0x12
je 0x43f518
push 0x12
call edi
test ax, ax
jge 0x43f518
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x43f52b
mov esi, 0xbd
jmp 0x43f4df
cmp si, 0x6e
jne 0x43f538
mov esi, 0xbe
jmp 0x43f4df
cmp si, 0x6f
jne 0x43f4d9
mov esi, 0xbf
jmp 0x43f4df

Function at 0x440ca0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x541558]
xor edx, edx
cmp eax, edx
jne 0x440cc6
xor eax, eax
mov byte [eax + 0x541458], al
inc eax
cmp eax, 0x100
jl 0x440cae
mov dword [0x541558], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x541458
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x440d57
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 0x440d2a
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 0x440cf8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x440dd0
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 0x440e23
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 0x440e0a
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