joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a830
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push edi
lea edi, [ebx + 0x7c]
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x40a869
xor ecx, ecx
cmp eax, 0x14
setl cl
test ecx, ecx
je 0x40a869
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x40a878
mov ecx, ebx
call fcn.0040a670
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
add dword [esi + 0x2024], ecx
mov ecx, dword [esi + 0x2024]
mov ebx, eax
mov eax, dword [esi + 0x20]
imul ebx, ebx, 0x70
add ebx, 0x4fab90
cmp ecx, eax
jl 0x40a95a
mov eax, dword [esi + 0x12028]
test eax, eax
jg 0x40a8ba
push edi
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edi, [esi + 0x24]
cmp eax, 0x2000
jle 0x40a928
lea eax, [esi + 0x2028]
push 0x2000
push eax
push edi
call fcn.0040ea30
mov eax, dword [esi + 0x12028]
sub eax, 0x2000
push eax
lea ecx, [esi + 0x4028]
mov dword [esi + 0x18], edi
push ecx
lea eax, [esi + 0x2028]
lea edi, [esi + 0x14]
push eax
mov dword [edi], 0x2000
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0x2000
mov dword [esi + 0x2024], 0
call fcn.0040d1f0
add esp, 0x18
add dword [esi + 0x12028], 0xffffe000
jmp 0x40a96f
push eax
lea edx, [esi + 0x2028]
push edx
push edi
call fcn.0040ea30
mov eax, dword [esi + 0x12028]
mov dword [esi + 0x18], edi
lea edi, [esi + 0x14]
add esp, 0xc
mov dword [edi], eax
mov dword [esi + 0x20], eax
xor eax, eax
mov dword [esi + 0x2024], eax
mov dword [esi + 0x12028], eax
jmp 0x40a968
lea edx, [ecx + esi + 0x24]
lea edi, [esi + 0x14]
sub eax, ecx
mov dword [esi + 0x18], edx
mov dword [edi], eax
mov dword [esi + 0x1c], 1
mov ecx, dword [ebx + 0x1c]
push 0
push esi
push 0
lea eax, [ebp - 8]
push eax
push 1
push edi
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x40a9bb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x40a9bb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
call fcn.0040a670
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40ae80
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
mov dword [esi], vtable.CSocketManagerUdp.0
test eax, eax
je 0x40aead
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40aec3
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
test byte [ebp + 8], 1
je 0x40aed2
push esi
call fcn.0040cf96
add esp, 4
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x40aee0
Capabilities:
Create udp socket
Resolve dns
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 2
push 2
mov esi, eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x42e894], eax
cmp eax, 0xffffffff
jne 0x40af5c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketUDP__WSASocket___failed_with_error:__d
push 1
call fcn.0040b1b0
mov eax, dword [0x42e8a8]
add esp, 0xc
test eax, eax
je 0x40af3a
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x42e8a8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x42e8a8], 0
mov eax, dword [0x42e894]
cmp eax, 0xffffffff
je 0x40af55
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x42e894], 0xffffffff
xor al, al
pop esi
pop ebp
ret 4
mov ecx, 2
push esi
mov word [0x42e898], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [ebp + 8]
push edx
mov dword [0x42e89c], eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [0x42e89c], 0xffffffff
mov word [0x42e89a], ax
jne 0x40afd7
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40afbf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketUDP__gethostbyname___failed_with_error:__d
push 1
call fcn.0040b1b0
add esp, 0xc
mov esi, 0x42e890
call fcn.0040b000
xor al, al
pop esi
pop ebp
ret 4
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
push 0x42e89c
call fcn.0040ea30
add esp, 0xc
push 0x1000
push 0
push 0x42f8b0
call fcn.0040eda0
add esp, 0xc
mov dword [0x4308b0], 0
mov al, 1
pop esi
pop ebp
ret 4

Function at 0x40b000
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40b021
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40b037
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
ret

Function at 0x40b040
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42e894], 0xffffffff
push esi
mov esi, eax
je 0x40b08a
mov eax, dword [0x4308b0]
lea ecx, [eax + esi]
push esi
cmp ecx, 0x1000
jle 0x40b091
push str._SocketUDP__Max_msg_size__Size:__d_
push 1
call fcn.0040b1b0
push 0x1000
push 0
push 0x42f8b0
call fcn.0040eda0
add esp, 0x18
mov dword [0x4308b0], 0
xor al, al
pop esi
pop ebp
ret 4
mov edx, dword [ebp + 8]
push edx
lea eax, [eax + 0x42f8b0]
push eax
call fcn.0040ea30
mov eax, dword [0x4308b0]
mov ecx, dword [0x42e894]
add esp, 0xc
push 0x10
push 0x42e898
push 0
add eax, esi
push eax
push 0x42f8b0
push ecx
mov dword [0x4308b0], eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x40b0ed
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x40b110
call esi
push eax
push str._SocketUDP__sendto___failed_with_error:__d
jmp 0x40b065
mov ecx, dword [0x4308b0]
sub ecx, eax
push ecx
lea edx, [eax + 0x42f8b0]
push edx
push 0x42f8b0
mov dword [0x4308b0], ecx
call fcn.0040d1f0
add esp, 0xc
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x40b120
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x42a5f0]
xor eax, ebp
mov dword [ebp - 4], eax
jmp 0x40b145
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0040eda0
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edx
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.0040d82b
add esp, 0x1c
push 0x10
push str.Error
lea ecx, [ebp - 0x104]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40b19c
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40cf87
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a5f0]
jne 0x40cf91
repz ret
jmp fcn.00412181

Function at 0x41dd8b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a5f0]
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.00414da0
and dword [ebp - 0x14], 0
cmp dword [0x431a80], 0
mov dword [ebp - 0x18], eax
jne 0x41de3e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41dee6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41dee6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x431a80], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x431a84], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x431a88], eax
call edi
push eax
call esi
mov dword [0x431a90], eax
test eax, eax
je 0x41de3e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x431a8c], eax
mov eax, dword [0x431a8c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41de97
cmp dword [0x431a90], ecx
je 0x41de97
push eax
call esi
push dword [0x431a90]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41de97
test ebx, ebx
je 0x41de97
call edi
test eax, eax
je 0x41de8e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41de8e
test byte [ebp - 8], 1
jne 0x41de97
or dword [ebp + 0x10], 0x200000
jmp 0x41deca
mov eax, dword [0x431a84]
cmp eax, dword [ebp - 0x18]
je 0x41deca
push eax
call esi
test eax, eax
je 0x41deca
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41deca
mov eax, dword [0x431a88]
cmp eax, dword [ebp - 0x18]
je 0x41deca
push eax
call esi
test eax, eax
je 0x41deca
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x431a80]
call esi
test eax, eax
je 0x41dee6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41dee8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cf87
leave
ret
Function at 0x10058970
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1011b2b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1010fe08
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.1005eae0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x100589c4
jmp dword [ecx*4 + 0x10058b2c]
mov al, byte [esi]
test al, al
je 0x100589f2
cmp al, 0x20
je 0x100589de
cmp al, 0xa1
jne 0x100589f2
cmp byte [esi + 1], al
jne 0x100589f2
test al, 0x80
je 0x100589ea
mov al, byte [esi + 1]
inc esi
test al, al
je 0x100589f2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100589d1
test ecx, ecx
je case.default.0x100589c4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x100589c4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x10058a38
cmp dl, 0xa1
jne 0x10058a2c
cmp byte [eax + 1], 0xa1
jne 0x10058a2c
test ecx, ecx
jne 0x10058a24
mov edi, eax
mov ecx, 1
inc eax
jmp 0x10058a4c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10058a66
jmp 0x10058a4c
cmp dl, 0x20
jne 0x10058a4a
test ecx, ecx
jne 0x10058a43
mov edi, eax
mov ecx, 1
jmp 0x10058a4c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x10058a0c
cmp ecx, 1
jne case.default.0x100589c4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x100589c4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x100589c4
mov al, byte [esi]
test al, al
je 0x10058abe
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10058aa4
mov cl, byte [esi + 1]
test cl, cl
je 0x10058abe
cmp al, 0xa1
jne 0x10058a94
cmp cl, al
je 0x10058aa1
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.1005edb0
inc esi
jmp 0x10058ab6
cmp al, 0x20
je 0x10058ab6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1005edf0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10058a7d
push 0
lea ecx, [esp + 0x14]
call fcn.1005edf0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10073750
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x10058af1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x102d0460
call fcn.1005ece0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1010fd9a
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1005abd0
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x1011b438
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x10300c00]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push esi
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
mov dword [esp + 0x30], 0
call fcn.1005a6a0
add esp, 0x14
dec esi
neg esi
sbb esi, esi
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
add esi, 3
lea edx, [esp + 0x30]
lea ecx, [esi + esi*2]
push edx
push 0x20006
push 0
lea esi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1005ac72
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1005ad2b
mov edx, dword [esi + 8]
push edx
call fcn.10072380
add esp, 4
test eax, eax
mov eax, dword [esi + 8]
je 0x1005acc2
cmp eax, 0x80000301
jne 0x1005ac90
mov eax, dword [esi]
jmp 0x1005ac9d
push 0
push esi
push 0x7d1
call fcn.10077ba0
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1005ad20
jmp 0x1005ad1a
cmp eax, 0x80000004
jne 0x1005acf1
mov esi, dword [esi]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x30]
not ecx
push ecx
mov ecx, dword [esp + 0x30]
push esi
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1005ad20
jmp 0x1005ad1a
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x1005ad20
mov esi, dword [esi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
add esi, 8
push eax
push esi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1005ad20
mov dword [ebx], 1
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1010fd9a
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10068ed0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1011c06b
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.1010fb0f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10068f52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1010cc3a
mov eax, dword [eax]
push 0x102eed48
push eax
call fcn.100fe904
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1010fd9a
test bl, bl
je 0x10068f52
push 0x102eed48
lea ecx, [esp + 0xc]
call fcn.1011012a
push 0x102eed54
lea ecx, [esp + 0xc]
call fcn.1011012a
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 0x10068f8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1010fd9a
jmp 0x10069059
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 0x10069012
lea edx, [esp + 0x7c]
push 0x102eed50
push edx
call fcn.100fe904
add esp, 8
test eax, eax
je 0x10069012
lea eax, [esp + 0x7c]
push 0x102eed4c
push eax
call fcn.100fe904
add esp, 8
test eax, eax
je 0x10069012
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 0x10068fa2
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.1010fd9a
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 0x10069860
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 0x100698c2
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 0x100698d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x1011c0eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x10300c00]
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 0x10069a08
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x10069936
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1010fd9a
xor eax, eax
jmp 0x10069a7f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.1010fed7
push esi
lea ecx, [esp + 0xc]
call fcn.10110166
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x102eed88
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x10069a5d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.10069860
test eax, eax
jne 0x10069a5d
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.10069860
test eax, eax
jne 0x10069a5d
lea eax, [esp + 0x14]
push 0x102eed64
push eax
call fcn.100ffa50
mov esi, eax
add esp, 8
test esi, esi
jne 0x10069a3c
lea ecx, [esp + 0x14]
push 0x102eed60
push ecx
call fcn.100ff9d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10069a3c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x10069a3f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.1010fe87
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1006994e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1010fd9a
xor eax, eax
jmp 0x10069a7f
mov byte [esi], 0
push 0x102eed5c
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.1010fd9a
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 0x1007f830
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 0x1007f89e
cmp si, 0x69
ja 0x1007f89e
add esi, 0xffd0
cmp si, 0x11
je 0x1007f86e
push 0x11
call edi
test ax, ax
jge 0x1007f86e
or esi, 0x2000
cmp si, 0x10
je 0x1007f883
push 0x10
call edi
test ax, ax
jge 0x1007f883
or esi, 0x4000
cmp si, 0x12
je 0x1007f898
push 0x12
call edi
test ax, ax
jge 0x1007f898
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x1007f8ab
mov esi, 0xbd
jmp 0x1007f85f
cmp si, 0x6e
jne 0x1007f8b8
mov esi, 0xbe
jmp 0x1007f85f
cmp si, 0x6f
jne 0x1007f859
mov esi, 0xbf
jmp 0x1007f85f

Function at 0x10081230
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x10311700]
xor edx, edx
cmp eax, edx
jne 0x10081256
xor eax, eax
mov byte [eax + 0x10311600], al
inc eax
cmp eax, 0x100
jl 0x1008123e
mov dword [0x10311700], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x10311600
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x100812e7
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 0x100812ba
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 0x10081288
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10081360
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 0x100813b3
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 0x1008139a
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