joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f91e8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4f91fa
add esp, 0xfffffff0
call fcn.00404b00
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00480730
mov eax, dword [0x5d83f8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4f95fc
mov eax, dword [0x5d840c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4f9608
mov eax, ebx
call fcn.004f9614
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x472f58]
call fcn.004045ec
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x472f58]
call fcn.004045ec
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x472f58]
call fcn.004045ec
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x472f58]
call fcn.004045ec
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x472f58]
call fcn.004045ec
mov dword [ebx + 0x74], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4f4548
push eax
push 0
push 0
mov eax, dword [0x5d8728]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x487df0]
call fcn.00489bcc
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x487df0]
call fcn.00489bcc
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x487df0]
call fcn.00489bcc
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x487df0]
call fcn.00489bcc
mov dword [ebx + 0x84], eax
mov eax, ebx
call fcn.004f9ba8
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4f9a30
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4f9a30
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4f9a30
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4f9a30
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4f934d
call fcn.00404b58
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4f97d0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f997d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4f995e
mov dl, 1
mov eax, dword [0x47363c]
call fcn.0047938c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
xor edx, edx
call fcn.00406c64
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4f994d
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004e7dcc
test al, al
je 0x4f9940
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4f998c
lea eax, [ebp - 0x394]
call fcn.0040f4b4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4f9940
xor eax, eax
push ebp
push 0x4f9939
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4f99fc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4f9922
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406e64
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4f9922
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406e64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9940
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4f9843
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00479178
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9984
lea eax, [ebp - 0x3a0]
call fcn.00406c54
ret

Function at 0x4fa3bc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x5df358]
cmp byte [eax + 0xa9], 0
jne 0x4fa42e
cmp dword [0x5df370], 0
jne 0x4fa3ee
call sub.KERNEL32.DLL_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x5d5a2c]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5df370], eax
cmp dword [0x5df36c], 0
jne 0x4fa409
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventW
mov dword [0x5df36c], eax
cmp dword [0x5df374], 0
jne 0x4fa42e
push esp
push 0
push 0
mov eax, dword [0x5d5a28]
push eax
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread_1
mov dword [0x5df374], eax
pop edx
ret
Function at 0x4fa644
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4fa65b
add esp, 0xfffffff0
call fcn.00404b00
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00480730
mov eax, dword [0x5d8218]
cmp byte [eax], 0
jne 0x4fa688
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x5d86f8]
cmp word [eax + 2], 0
jne 0x4fa6a2
mov eax, dword [0x5d86f8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004fc600
mov eax, dword [0x5d88a0]
cmp word [eax + 2], 0
jne 0x4fa6bc
mov eax, dword [0x5d88a0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004fc810
mov byte [ebx + 0x31], 0
mov dl, 1
mov eax, dword [0x487df0]
call fcn.00489bcc
mov esi, eax
mov dword [ebx + 0x38], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4fcca4
mov dl, 1
mov eax, dword [0x472f58]
call fcn.004045ec
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x472f58]
call fcn.004045ec
mov dword [ebx + 0xac], eax
xor eax, eax
mov dword [ebx + 0x5c], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x58], 0xff000018
mov dword [ebx + 0x74], 0x1f4
mov byte [ebx + 0x78], 1
xor eax, eax
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x70], 0x9c4
mov byte [ebx + 0x84], 0
mov byte [ebx + 0xa1], 1
mov byte [ebx + 0xb8], 1
mov dl, 1
mov eax, dword [0x4889a4]
call fcn.00491418
mov esi, eax
mov dword [ebx + 0x9c], esi
push 0x4fa898
mov eax, dword [0x5d84ec]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0049181c
mov eax, dword [ebx + 0x9c]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4fcf54
mov dl, 1
mov eax, dword [0x472f58]
call fcn.004045ec
mov dword [ebx + 0x94], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x5d84ec]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0040f294
test eax, eax
je 0x4fa7ca
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0040ef94
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0040f27c
test eax, eax
je 0x4fa7e2
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x88]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406e64
push ebx
push 0x4fbfd0
call fcn.004f0cf0
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xcc], 0
mov eax, dword [0x5d8218]
cmp byte [eax], 0
jne 0x4fa833
mov eax, ebx
call fcn.004faa0c
mov byte [ebx + 0x55], 1
mov byte [ebx + 0x56], 1
mov byte [ebx + 0x57], 1
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xcd], 0
mov byte [ebx + 0xd8], 0
xor eax, eax
mov dword [ebx + 0xd0], eax
mov byte [ebx + 0xcf], 0
xor eax, eax
mov dword [ebx + 0xa4], eax
mov eax, ebx
call fcn.004fd17c
mov eax, ebx
call fcn.004fdd40
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4fa890
call fcn.00404b58
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4face0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4fad82
cmp dword [ebx + 0x90], 0
jne 0x4fad7c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4fac2c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x4fad7c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4fad42
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4fad7c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.00475c8c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4fad51
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4fafa0
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5df358]
cmp dword [eax + 0x170], 0
je 0x4fb105
test bl, bl
jne 0x4fb053
cmp dword [esi + 0x98], 0
jne 0x4fb048
mov eax, esi
call fcn.004fdb90
push eax
push 0x4faeac
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x4fb019
mov eax, dword [0x5df358]
cmp byte [eax + 0xcf], 0
je 0x4fb019
mov eax, dword [esi + 0xd4]
call fcn.00408258
mov edi, eax
cmp edi, 0
jl 0x4fb019
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4fb002
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4fb048
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00475c8c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4fb028
inc dword [esi + 0x98]
jmp 0x4fb105
cmp dword [esi + 0x98], 0
jle 0x4fb105
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x4fb105
cmp dword [esi + 0x40], 0
je 0x4fb0b0
mov eax, dword [0x5df358]
cmp byte [eax + 0xcf], 0
je 0x4fb0b0
mov eax, dword [esi + 0xd4]
call fcn.00408258
mov edi, eax
cmp edi, 0
jl 0x4fb0b0
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4fb099
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4fb0df
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00475c8c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4fb0bf
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x4f06f8]
call fcn.00408418
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4fbcc0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x4fbd2b
cmp byte [ebx + 0xcf], 0
jne 0x4fbd2b
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406da0
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4fbd18
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4fbd38
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00406c64
jmp 0x4fbd38
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00406c64
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4fd350
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x4fd3be
mov eax, esi
call fcn.004e261c
test al, al
je 0x4fd3be
mov eax, dword [ebx + 0x80]
call fcn.004e2270
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4fd3be
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x4fd3b2
push 0
mov eax, dword [ebx + 0x80]
call fcn.004e2270
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.004d98b8
jmp 0x4fd3be
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.004fd19c
pop esi
pop ebx
ret

Function at 0x5044cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 4
xor eax, eax
push ebp
push 0x504536
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
mov eax, edi
call fcn.00406cf0
push eax
mov eax, esi
call fcn.00406cf0
push eax
push ebx
call sub.shlwapi.dll_SHGetValueW
test eax, eax
sete al
mov ebx, eax
test bl, bl
je 0x50452c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x504542
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x507e74
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
dec ecx
test ecx, ecx
jl 0x507ee3
inc ecx
xor ebx, ebx
mov eax, dword [ebp - 0x10]
and eax, 0xff
movzx edx, byte [esi + ebx]
xor eax, edx
mov edx, dword [eax*8 + 0x5df7e8]
mov eax, dword [eax*8 + 0x5df7e4]
push edx
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
shrd eax, edx, 8
shr edx, 8
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
inc ebx
dec ecx
jne 0x507e98
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x507ef4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
dec ecx
test ecx, ecx
jl 0x507f1c
inc ecx
xor ebx, ebx
movzx esi, byte [edx + ebx]
xor esi, eax
and esi, 0xff
mov esi, dword [esi*4 + 0x5df3e4]
shr eax, 8
xor esi, eax
mov eax, esi
inc ebx
dec ecx
jne 0x507efe
pop esi
pop ebx
ret

Function at 0x50b4e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x46d]
movzx ecx, dl
cmp ecx, 6
ja case.0x50b582.0
jmp dword [ecx*4 + 0x50b51b]
movzx edx, byte [eax + 0x46c]
sub dl, 8
je 0x50b54d
sub dl, 8
je 0x50b55c
jmp case.0x50b582.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x50b1b4
jmp case.0x50b582.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x50b208
jmp case.0x50b582.0
movzx ecx, byte [eax + 0x46c]
cmp ecx, 0x10
ja case.0x50b582.0
movzx ecx, byte [ecx + 0x50b589]
jmp dword [ecx*4 + 0x50b59a]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x50b2a8
jmp case.0x50b582.0
cmp dl, 3
jne 0x50b5c7
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x50b300
jmp case.0x50b582.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x50b2bc
jmp case.0x50b582.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x50b344
jmp case.0x50b582.0
movzx edx, byte [eax + 0x46c]
sub dl, 8
je 0x50b5f2
sub dl, 8
je 0x50b5fe
jmp case.0x50b582.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x50b370
jmp case.0x50b582.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x50b3d4
jmp case.0x50b582.0
movzx edx, byte [eax + 0x46c]
sub dl, 8
je 0x50b61d
sub dl, 8
je 0x50b629
jmp case.0x50b582.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x50b484
jmp case.0x50b582.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x50b4ac
mov edx, dword [eax + 0x478]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x454]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x458]
mov dword [ebp - 8], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x10], edx
mov esi, ecx
test esi, esi
jb 0x50b6cb
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0050a628
test eax, eax
je 0x50b6cb
mov eax, ebx
call fcn.0050b6d4
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x478]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x50b664
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x50b6d4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x50b705
dec al
je 0x50b740
dec al
je 0x50b785
dec al
je 0x50b7ee
jmp 0x50b878
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x50b878
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x50b715
jmp 0x50b878
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x50b878
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x50b750
jmp 0x50b878
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x50b878
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x50b7b4
xor ebp, ebp
jmp 0x50b7c4
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x50b7cd
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x50b795
jmp 0x50b878
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x50b878
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x50b847
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00507f20
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x50b802
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x52e8dc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x52e967
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 0x20]
test esi, esi
je 0x52e951
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xdc]
test al, al
je 0x52e951
mov eax, edi
call fcn.0040e650
test al, al
je 0x52e951
push 1
push 0
push 0x52e980
push dword [ebx + 0x28]
push 0x52e980
lea eax, [ebp - 4]
mov edx, 3
call fcn.0040715c
mov eax, dword [ebp - 4]
call fcn.00406cf0
push eax
mov eax, edi
call fcn.00406cf0
push eax
push 0x52e984
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52e96e
lea eax, [ebp - 4]
call fcn.00406c54
ret
Function at 0x53814c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x538155
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x538307
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0053849c
xor eax, eax
push ebp
push 0x5382e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 8
je 0x5381a4
call fcn.004055a8
jmp 0x5382ec
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 8
je 0x538273
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x5381f9
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x5381f9
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.005380a0
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040715c
mov eax, dword [ebp - 0xc]
push eax
mov edi, dword [ebp - 4]
movzx ecx, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x538232
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.005380a0
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040715c
mov eax, dword [ebp - 0x14]
call fcn.00406cf0
push eax
call sub.KERNEL32.DLL_OutputDebugStringW
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x5382cf
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.005380a0
push dword [ebp - 0x20]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
push 0x538324
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.0040715c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.005380c0
jmp 0x5382cf
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x538296
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x538296
push ebx
mov edi, dword [ebp - 4]
movzx ecx, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x5382ac
mov eax, ebx
call fcn.00406cf0
push eax
call sub.KERNEL32.DLL_OutputDebugStringW
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x5382cf
lea eax, [ebp - 0x24]
mov ecx, 0x538324
mov edx, ebx
call fcn.00407078
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.005380c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5382ec
mov eax, dword [ebp - 4]
call fcn.005384a8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53830e
lea eax, [ebp - 0x24]
mov edx, 7
call fcn.00406c5c
ret