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

Disassembly:
push 0x120
mov eax, 0x516ad5
call fcn.004f4c82
mov esi, ecx
mov dword [ebp - 0x128], esi
call fcn.004d32da
push 0x15c
call fcn.00401b63
pop ecx
mov ecx, eax
mov dword [ebp - 0x124], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x4cd8e7
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.004d4bdd
jmp 0x4cd8e9
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.004d32ac
call fcn.00406b31
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x88]
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov byte [ebp + esi - 0x114], 0x5c
inc esi
mov dword [ebp - 0x124], esi
mov byte [ebp + esi - 0x114], bl
mov dword [ebp - 0x120], ebx
cmp edi, ebx
je 0x4cda83
cmp dword [edi + 4], ebx
jle 0x4cda83
lea ecx, [ebp - 0x118]
call fcn.00402869
mov edx, dword [edi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x4cda67
lea ecx, [ebp - 0x11c]
call fcn.00402869
mov eax, dword [ebp - 0x120]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x4cd9b8
push dword [ebp - 0x118]
lea eax, [ebp - 0x11c]
push 0x534188
push eax
call fcn.00402a78
add esp, 0xc
jmp 0x4cd9ea
jge 0x4cd9d8
push dword [ebp - 0x118]
inc eax
push eax
lea eax, [ebp - 0x11c]
push str._d__s
push eax
call fcn.00402a78
add esp, 0x10
jmp 0x4cd9ea
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.004032a9
push 0x15c
call fcn.00401b63
pop ecx
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4cda0e
mov ecx, eax
call fcn.004a64cc
mov esi, eax
jmp 0x4cda10
xor esi, esi
push dword [ebp - 0x11c]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebx + 0xe110]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push ebx
mov ecx, edi
call fcn.00405d86
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x128]
push esi
call fcn.004d32ac
mov ecx, dword [ebp - 0x11c]
inc dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.00401590
mov esi, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x118]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401590
inc ebx
cmp ebx, dword [edi + 4]
jl 0x4cd951
call fcn.004f4d05
ret
Function at 0x4d243d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4d2455
mov edi, dword [esi + 0xc]
jmp 0x4d2495
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4d246e
call fcn.00406f63
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4d2483
call fcn.00406f63
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4d2495
call fcn.00406f63
call fcn.00406b31
cmp dword [eax + 0x3c], 0
je 0x4d24aa
push edi
mov ecx, ebx
call fcn.004d12a0
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d2363
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4d24c8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d24d4
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4d99f4
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x4d9a3e
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4d9a3e
call fcn.004d9280
test eax, eax
je 0x4d9a3e
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.004013a0
xor eax, eax
inc eax
jmp 0x4d9c56
cmp dword [ebx + 4], 0x100
push edi
jne 0x4d9c4d
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4d9b3b
push 0x11
call edi
test ax, ax
jl 0x4d9b3b
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4d9b3b
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x4d9aae
cmp eax, 0x20
jbe 0x4d9b3b
cmp eax, 0x24
jbe 0x4d9aa1
cmp eax, 0x26
je 0x4d9aa1
cmp eax, 0x28
jne 0x4d9b3b
call fcn.004d9280
test eax, eax
je 0x4d9b3b
mov ecx, esi
call fcn.0040e67a
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.004d9280
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x4d9ae3
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.004013a0
jmp 0x4d9c48
call fcn.0040c30d
test eax, eax
je 0x4d9c48
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.0040c397
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4d9b11
xor edi, edi
jmp 0x4d9b14
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.0040c30d
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4d9c48
mov eax, dword [ebx + 8]
sub eax, 9
je 0x4d9c17
sub eax, 0x12
je 0x4d9bef
sub eax, 0xb
je 0x4d9b5d
dec eax
dec eax
jne 0x4d9c4d
push 0x12
call edi
test ax, ax
jl 0x4d9c4d
push 0x11
call edi
test ax, ax
jl 0x4d9c4d
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4d9c4d
call fcn.004d9280
test eax, eax
jne 0x4d9c48
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.004d91fa
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0040af73
test eax, eax
je 0x4d9c48
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.0040af73
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4d9c48
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4d9c03
push 0
call fcn.004d91fa
mov ecx, esi
call fcn.0040ba90
test eax, eax
je 0x4d9c4d
mov ecx, esi
call fcn.0040ba90
jmp 0x4d9c41
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0040af73
test eax, eax
je 0x4d9c4d
push dword [esi + 0x20]
call edi
push eax
call fcn.0040af73
push 0
push esi
mov ecx, eax
call fcn.00404175
mov ecx, eax
call fcn.0040e67a
xor eax, eax
inc eax
jmp 0x4d9c55
push ebx
mov ecx, esi
call fcn.00408e32
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4e6e6b
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x518222
call fcn.004f4c19
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x100
jne 0x4e6f41
mov ebx, dword [esi + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x4e6f41
cmp ebx, 0x43
je 0x4e6ead
cmp ebx, 0x2d
jne 0x4e6f41
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4e6f41
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00402869
movzx ecx, byte [edi + 0xae]
and dword [ebp - 4], 0
push ecx
lea eax, [edi + 0xac]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.00402a78
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add esp, 0x14
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00401590
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.00465724
call fcn.004f4cf1
ret 4

Function at 0x4ef04d
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp byte [ebp + 0xc], 0
jne 0x4ef08d
test edi, edi
jl 0x4ef08d
cmp al, 0x20
je 0x4ef082
cmp word [ebp + 8], 0x71
jne 0x4ef08d
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x4f411d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x55dfe0]
jne 0x4f4127
repz ret
jmp fcn.004fa594
Function at 0x507b0a
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.004fa7e0
and dword [ebp - 4], 0
cmp dword [0x565198], 0
mov ebx, eax
jne 0x507bbb
push 0x51d828
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x507c6c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53fcd8
push edi
call esi
test eax, eax
je 0x507c6c
push eax
call fcn.004fa76e
mov dword [esp], 0x53fcc8
push edi
mov dword [0x565198], eax
call esi
push eax
call fcn.004fa76e
mov dword [esp], 0x53fcb4
push edi
mov dword [0x56519c], eax
call esi
push eax
call fcn.004fa76e
mov dword [esp], 0x53fc98
push edi
mov dword [0x5651a0], eax
call esi
push eax
call fcn.004fa76e
pop ecx
mov dword [0x5651a8], eax
test eax, eax
je 0x507bbb
push 0x53fc80
push edi
call esi
push eax
call fcn.004fa76e
pop ecx
mov dword [0x5651a4], eax
mov eax, dword [0x5651a4]
cmp eax, ebx
je 0x507c13
cmp dword [0x5651a8], ebx
je 0x507c13
push eax
call fcn.004fa7e9
push dword [0x5651a8]
mov esi, eax
call fcn.004fa7e9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x507c13
test edi, edi
je 0x507c13
call esi
test eax, eax
je 0x507c0a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x507c0a
test byte [ebp - 0xc], 1
jne 0x507c13
or dword [ebp + 0x10], 0x200000
jmp 0x507c4c
mov eax, dword [0x56519c]
cmp eax, ebx
je 0x507c4c
push eax
call fcn.004fa7e9
pop ecx
test eax, eax
je 0x507c4c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x507c4c
mov eax, dword [0x5651a0]
cmp eax, ebx
je 0x507c4c
push eax
call fcn.004fa7e9
pop ecx
test eax, eax
je 0x507c4c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x565198]
call fcn.004fa7e9
pop ecx
test eax, eax
je 0x507c6c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x507c6e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416c6c
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.00494c43
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00494c43
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
push 0x10
call fcn.00494c43
add esp, 4
mov dword [ebp - 0x18], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0
mov ebx, 0x497200
call fcn.00494c55
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 3
je 0x416d2c
mov eax, 0
jmp 0x416e98
cmp dword [ebp + 0xc], 0
jne 0x416d58
mov dword [ebp - 0x1c], esp
mov eax, 0x16
call fcn.00494c4f
cmp dword [ebp - 0x1c], esp
je 0x416d55
push 6
call fcn.00494c49
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
jne 0x416d80
mov eax, 0x5640dd
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x416d7a
push ebx
call fcn.00494c3d
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 8]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 0x17
call fcn.00494c4f
cmp dword [ebp - 0x1c], esp
je 0x416dab
push 6
call fcn.00494c49
add esp, 4
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0x54972b
mov eax, 0x18
call fcn.00494c4f
cmp dword [ebp - 0x1c], esp
je 0x416dd7
push 6
call fcn.00494c49
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebx], 2
mov dword [ebp - 0x1c], esp
mov eax, 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push 0x1c
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 0x19
call fcn.00494c4f
cmp dword [ebp - 0x1c], esp
je 0x416e6b
push 6
call fcn.00494c49
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esp
push dword [ebp - 8]
mov eax, 0x1a
call fcn.00494c4f
cmp dword [ebp - 0x1c], esp
je 0x416e90
push 6
call fcn.00494c49
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x416e98
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00494c3d
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00494c3d
add esp, 4
mov ebx, dword [ebp - 0x18]
push ebx
call fcn.00494c3d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a1d50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x539dfb
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.0052c0c7
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4a1dd2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00529630
mov eax, dword [eax]
push 0x69b264
push eax
call fcn.0051b2f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0052c352
test bl, bl
je 0x4a1dd2
push 0x69b264
lea ecx, [esp + 0xc]
call fcn.0052c72e
push 0x69edf0
lea ecx, [esp + 0xc]
call fcn.0052c72e
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 0x4a1e0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0052c352
jmp 0x4a1ed9
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 0x4a1e92
lea edx, [esp + 0x7c]
push 0x69edec
push edx
call fcn.0051b2f4
add esp, 8
test eax, eax
je 0x4a1e92
lea eax, [esp + 0x7c]
push 0x69ede8
push eax
call fcn.0051b2f4
add esp, 8
test eax, eax
je 0x4a1e92
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 0x4a1e22
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.0052c352
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 0x4a26d0
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 0x4a2732
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 0x4a2740
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x539e7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x6b0cd8]
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 0x4a2878
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4a27a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0052c352
xor eax, eax
jmp 0x4a28ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0052c4db
push esi
lea ecx, [esp + 0xc]
call fcn.0052c76a
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x69ee28
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4a28cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004a26d0
test eax, eax
jne 0x4a28cd
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.004a26d0
test eax, eax
jne 0x4a28cd
lea eax, [esp + 0x14]
push 0x69ee04
push eax
call fcn.0051c3d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a28ac
lea ecx, [esp + 0x14]
push 0x69ee00
push ecx
call fcn.0051c350
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a28ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4a28af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0052c48b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4a27be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0052c352
xor eax, eax
jmp 0x4a28ef
mov byte [esi], 0
push 0x69edfc
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.0052c352
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 0x4b6d70
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 0x4b6dde
cmp si, 0x69
ja 0x4b6dde
add esi, 0xffd0
cmp si, 0x11
je 0x4b6dae
push 0x11
call edi
test ax, ax
jge 0x4b6dae
or esi, 0x2000
cmp si, 0x10
je 0x4b6dc3
push 0x10
call edi
test ax, ax
jge 0x4b6dc3
or esi, 0x4000
cmp si, 0x12
je 0x4b6dd8
push 0x12
call edi
test ax, ax
jge 0x4b6dd8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4b6deb
mov esi, 0xbd
jmp 0x4b6d9f
cmp si, 0x6e
jne 0x4b6df8
mov esi, 0xbe
jmp 0x4b6d9f
cmp si, 0x6f
jne 0x4b6d99
mov esi, 0xbf
jmp 0x4b6d9f

Function at 0x4b8510
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6c1c88]
xor edx, edx
cmp eax, edx
jne 0x4b8536
xor eax, eax
mov byte [eax + 0x6c1b88], al
inc eax
cmp eax, 0x100
jl 0x4b851e
mov dword [0x6c1c88], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6c1b88
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4b85c7
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 0x4b859a
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 0x4b8568
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4b8640
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 0x4b8693
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 0x4b867a
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 0x4bbbd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x53b638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x20]
call fcn.00532ed1
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x40], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub eax, esi
sub ecx, edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call fcn.004bbaa0
add esp, 0x14
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.00532f43
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret