joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f84a
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
sub esp, 0xa0
push ebx
mov ebx, ecx
push ebp
push esi
lea ebp, [ebx + 0x348]
cmp dword [ebp + 0x14], 8
jb 0x42f864
mov ebp, dword [ebp]
mov esi, dword [ebx + 0x24]
push edi
mov edi, dword [ebx + 0x360]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x4c], eax
xorps xmm0, xmm0
lea eax, [ebx + 0x38]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], eax
xor esi, esi
lea eax, [ebx + 0x3c]
mov dword [esp + 0x48], 1
mov dword [esp + 0x58], eax
lea eax, [ebx + 0x40]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x20]
push esi
mov dword [esp + 0x68], eax
lea eax, [esp + 0x14]
push eax
push 0x34
lea eax, [esp + 0x20]
mov dword [esp + 0x74], esi
push eax
push 0x34
lea eax, [esp + 0x5c]
mov dword [esp + 0x80], esi
push eax
push dword [esp + 0xcc]
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
movups xmmword [esp + 0x38], xmm0
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
movups xmmword [esp + 0x50], xmm0
mov dword [esp + 0x60], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
pop edi
test eax, eax
je 0x42f9c2
cmp dword [esp + 0x10], 2
jne 0x42f9c2
cmp dword [esp + 0x14], esi
je 0x42f9c2
cmp dword [esp + 0x30], esi
je 0x42f9c2
cmp dword [esp + 0x34], esi
je 0x42f9c2
cmp dword [esp + 0x38], esi
je 0x42f9c2
push esi
lea eax, [esp + 0x10]
mov dword [esp + 0x80], esi
push eax
push 0x34
lea eax, [esp + 0x84]
mov dword [esp + 0x8c], esi
push eax
push dword [esp + 0xc0]
xorps xmm0, xmm0
mov dword [esp + 0x98], esi
movups xmmword [esp + 0x9c], xmm0
mov dword [esp + 0xbc], esi
movups xmmword [esp + 0xac], xmm0
mov dword [esp + 0x8c], 3
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42f9c2
mov ecx, dword [esp + 0x30]
mov al, 1
mov dword [ebx + 0x28], ecx
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x2c], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + 0x30], ecx
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x34], ecx
jmp 0x42f9c4
xor al, al
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 4
Function at 0x430670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dff0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x47a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x430757
cmp byte [eax + 0x54], 0
je 0x430757
add eax, 0x1c
lea ecx, [ebp - 0x34]
push eax
call fcn.00409480
push 0
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004126f0
add esp, 4
mov byte [ebp - 4], 1
lea edi, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [esi]
cmovae edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
cmp dword [eax + 0x14], 8
jb 0x4306f2
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43073c
push 2
push 0
push 0
push esi
mov dword [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x2c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00406b20
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.004094d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430aa4
mov esp, ebp
pop ebp
ret 4

Function at 0x431c60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44e11e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.00436a80
lea esi, [edi + 4]
mov dword [edi], vtable.Poco::JSON::ParseHandler.0
push 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.00430ab5
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 2
call fcn.0042c4c0
mov al, byte [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov byte [edi + 0x34], al
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x43ad00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44e190
push eax
mov dword fs:[0], esp
sub esp, 0x88
push esi
mov esi, ecx
lea eax, [esi + 0xc]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
mov dword [esi + 8], ecx
test ecx, ecx
je 0x43ad65
mov eax, dword [esi + 0x10]
pop esi
test eax, eax
je 0x43ad55
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x43ad95
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push str.cannot_create_thread
lea ecx, [ebp - 0x24]
call fcn.00406ba0
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.00439f40
push 0x4773c8
lea eax, [ebp - 0x68]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.cannot_set_thread_priority
lea ecx, [ebp - 0x3c]
call fcn.00406ba0
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x94]
call fcn.00439f40
push 0x4773c8
lea eax, [ebp - 0x94]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x563920
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10d000]
push edi
jmp 0x56393a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x563941
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x563930
mov eax, 1
add ebx, ebx
jne 0x563953
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x563964
jne 0x563983
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x563983
dec eax
add ebx, ebx
jne 0x563970
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x563948
add ebx, ebx
jne 0x56397f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5639d5
xor ecx, ecx
sub eax, 3
jb 0x56399b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x563a0a
sar eax, 1
mov ebp, eax
jmp 0x5639a6
add ebx, ebx
jne 0x5639a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x563974
inc ecx
add ebx, ebx
jne 0x5639b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x563974
add ebx, ebx
jne 0x5639c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5639b6
jne 0x5639d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5639b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5639f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5639e6
jmp 0x563936
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5639f4
add edi, ecx
jmp 0x563936
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x563a12
cmp byte [edi], 0x11
jne 0x563a12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x563a17
lea edi, [esi + 0x15c000]
mov eax, dword [edi]
or eax, eax
je 0x563a8f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1ef7c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ef93c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x563a44
mov ecx, edi
jns 0x563a73
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1ef940]
or eax, eax
je 0x563a89
mov dword [ebx], eax
add ebx, 4
jmp 0x563a61
call dword [esi + 0x1ef950]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x563ac0
cmp al, 0xef
ja 0x563ab3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x563a95
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x563aa2
mov ebp, dword [esi + 0x1ef944]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x563af4
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x10016c10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10080c90
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.10075fda
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10019850
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10016c64
jmp dword [ecx*4 + 0x10016dcc]
mov al, byte [esi]
test al, al
je 0x10016c92
cmp al, 0x20
je 0x10016c7e
cmp al, 0xa1
jne 0x10016c92
cmp byte [esi + 1], al
jne 0x10016c92
test al, 0x80
je 0x10016c8a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x10016c92
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10016c71
test ecx, ecx
je case.default.0x10016c64
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10016c64
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x10016cd8
cmp dl, 0xa1
jne 0x10016ccc
cmp byte [eax + 1], 0xa1
jne 0x10016ccc
test ecx, ecx
jne 0x10016cc4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x10016cec
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10016d06
jmp 0x10016cec
cmp dl, 0x20
jne 0x10016cea
test ecx, ecx
jne 0x10016ce3
mov edi, eax
mov ecx, 1
jmp 0x10016cec
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x10016cac
cmp ecx, 1
jne case.default.0x10016c64
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10016c64
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10016c64
mov al, byte [esi]
test al, al
je 0x10016d5e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10016d44
mov cl, byte [esi + 1]
test cl, cl
je 0x10016d5e
cmp al, 0xa1
jne 0x10016d34
cmp cl, al
je 0x10016d41
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10019b20
inc esi
jmp 0x10016d56
cmp al, 0x20
je 0x10016d56
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10019b60
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10016d1d
push 0
lea ecx, [esp + 0x14]
call fcn.10019b60
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10028000
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x10016d91
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x10094fa8
call fcn.10019a50
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.10075f6c
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10017dc0
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x10080d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x100af350]
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.10017890
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 0x10017e62
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 0x10017f1b
mov edx, dword [esi + 8]
push edx
call fcn.10026d80
add esp, 4
test eax, eax
mov eax, dword [esi + 8]
je 0x10017eb2
cmp eax, 0x80000301
jne 0x10017e80
mov eax, dword [esi]
jmp 0x10017e8d
push 0
push esi
push 0x7d1
call fcn.1002c2b0
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 0x10017f10
jmp 0x10017f0a
cmp eax, 0x80000004
jne 0x10017ee1
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 0x10017f10
jmp 0x10017f0a
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x10017f10
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 0x10017f10
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.10075f6c
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x100211f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100814fb
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.10075ce1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10021272
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.10073a60
mov eax, dword [eax]
push 0x100a5234
push eax
call fcn.100666f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.10075f6c
test bl, bl
je 0x10021272
push 0x100a5234
lea ecx, [esp + 0xc]
call fcn.100762fc
push 0x100a8db4
lea ecx, [esp + 0xc]
call fcn.100762fc
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 0x100212ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.10075f6c
jmp 0x10021379
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 0x10021332
lea edx, [esp + 0x7c]
push 0x100a8db0
push edx
call fcn.100666f4
add esp, 8
test eax, eax
je 0x10021332
lea eax, [esp + 0x7c]
push 0x100a8dac
push eax
call fcn.100666f4
add esp, 8
test eax, eax
je 0x10021332
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 0x100212c2
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.10075f6c
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 0x10021b90
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 0x10021bf2
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 0x10021c00
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x1008157b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x100af350]
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 0x10021d38
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x10021c66
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10075f6c
xor eax, eax
jmp 0x10021daf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.100760a9
push esi
lea ecx, [esp + 0xc]
call fcn.10076338
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x10021d8d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.10021b90
test eax, eax
jne 0x10021d8d
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.10021b90
test eax, eax
jne 0x10021d8d
lea eax, [esp + 0x14]
push 0x100a8dc8
push eax
call fcn.10067800
mov esi, eax
add esp, 8
test esi, esi
jne 0x10021d6c
lea ecx, [esp + 0x14]
push 0x100a8dc4
push ecx
call fcn.10067780
mov esi, eax
add esp, 8
test esi, esi
jne 0x10021d6c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x10021d6f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.10076059
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x10021c7e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.10075f6c
xor eax, eax
jmp 0x10021daf
mov byte [esi], 0
push 0x100a8dc0
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.10075f6c
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 0x10033c20
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 0x10033c8e
cmp si, 0x69
ja 0x10033c8e
add esi, 0xffd0
cmp si, 0x11
je 0x10033c5e
push 0x11
call edi
test ax, ax
jge 0x10033c5e
or esi, 0x2000
cmp si, 0x10
je 0x10033c73
push 0x10
call edi
test ax, ax
jge 0x10033c73
or esi, 0x4000
cmp si, 0x12
je 0x10033c88
push 0x12
call edi
test ax, ax
jge 0x10033c88
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x10033c9b
mov esi, 0xbd
jmp 0x10033c4f
cmp si, 0x6e
jne 0x10033ca8
mov esi, 0xbe
jmp 0x10033c4f
cmp si, 0x6f
jne 0x10033c49
mov esi, 0xbf
jmp 0x10033c4f

Function at 0x10035450
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x100bfa98]
xor edx, edx
cmp eax, edx
jne 0x10035476
xor eax, eax
mov byte [eax + 0x100bf998], al
inc eax
cmp eax, 0x100
jl 0x1003545e
mov dword [0x100bfa98], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x100bf998
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x10035507
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 0x100354da
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 0x100354a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10035580
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 0x100355d3
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 0x100355ba
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