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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x5c0796
add esp, 0xfffffff0
call fcn.00409de8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004c3208
mov eax, dword [0x65cb10]
mov dword [eax + 4], ebx
mov dword [eax], 0x5c0c50
mov eax, dword [0x65cb20]
mov dword [eax + 4], ebx
mov dword [eax], 0x5c0c5c
mov eax, ebx
call fcn.005c0c68
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x48b4b4]
call fcn.00409730
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x48b4b4]
call fcn.00409730
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x48b4b4]
call fcn.00409730
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x48b4b4]
call fcn.00409730
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x48b4b4]
call fcn.00409730
mov dword [ebx + 0x84], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x50], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x68]
push eax
mov eax, 0x5bb138
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4ef43c]
call fcn.004f5964
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4ef43c]
call fcn.004f5964
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4ef43c]
call fcn.004f5964
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4ef43c]
call fcn.004f5964
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x4ef43c]
call fcn.004f5964
mov dword [ebx + 0x98], eax
mov eax, ebx
call fcn.005c1244
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5c1074
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5c1074
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5c1074
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5c1074
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5c1074
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5c0916
call fcn.00409e40
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5c0e14
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 0x5c0fbf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5c0fa0
mov dl, 1
mov eax, dword [0x48ee70]
call fcn.004b2830
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.0040b5cc
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5c0f8f
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.00535b20
test al, al
je 0x5c0f82
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, 0x5c0fd0
lea eax, [ebp - 0x394]
call fcn.0042681c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x5c0f82
xor eax, eax
push ebp
push 0x5c0f7b
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 0x5c1040
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x5c0f64
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040c2d0
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x5c0f64
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040c2d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c0f82
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5c0e85
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.004b2754
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5c0fc6
lea eax, [ebp - 0x3a0]
call fcn.0040b5cc
ret

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

Disassembly:
push ecx
mov eax, dword [0x664138]
cmp byte [eax + 0xc5], 0
jne 0x5c1c3e
cmp dword [0x66415c], 0
jne 0x5c1bfe
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, dword [0x654f78]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x66415c], eax
cmp dword [0x664158], 0
jne 0x5c1c19
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x664158], eax
cmp dword [0x664160], 0
jne 0x5c1c3e
push esp
push 0
push 0
mov eax, dword [0x654f74]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x664160], eax
pop edx
ret
Function at 0x5c2060
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5c2077
add esp, 0xfffffff0
call fcn.00409de8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004c3208
mov eax, dword [0x65c97c]
cmp byte [eax], 0
jne 0x5c20a4
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x65cd7c]
cmp word [eax + 2], 0
jne 0x5c20be
mov eax, dword [0x65cd7c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005c4454
mov eax, dword [0x65cef0]
cmp word [eax + 2], 0
jne 0x5c20d8
mov eax, dword [0x65cef0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005c4658
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x4ef43c]
call fcn.004f5964
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5c4bd0
mov dl, 1
mov eax, dword [0x48b4b4]
call fcn.00409730
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x48b4b4]
call fcn.00409730
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x4f41d8]
call fcn.004ffbbc
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x5c22c8
mov eax, dword [0x65cbdc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.005000d8
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5c4eb8
mov dl, 1
mov eax, dword [0x48b4b4]
call fcn.00409730
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x65cbdc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0042661c
test eax, eax
je 0x5c21f2
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00426474
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00426600
test eax, eax
je 0x5c220a
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 + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040c2d0
push ebx
push 0x5c3e30
call fcn.005b7330
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x65c97c]
cmp byte [eax], 0
jne 0x5c225b
mov eax, ebx
call fcn.005c24ac
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.005c50f0
mov eax, ebx
call fcn.005c5d90
mov byte [ebx + 0x196], 0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5c22bf
call fcn.00409e40
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5c27f0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x5c2892
cmp dword [ebx + 0xac], 0
jne 0x5c288c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5c272c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5c288c
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 0x5c2852
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5c288c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.004adcc4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5c2861
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
mov eax, dword [0x664138]
cmp dword [eax + 0x188], 0
je 0x5c2cc6
test bl, bl
jne 0x5c2c11
cmp dword [esi + 0xb4], 0
jne 0x5c2c06
mov eax, esi
call fcn.005c5be0
push eax
push 0x5c2a40
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5c2bd7
mov eax, dword [0x664138]
cmp byte [eax + 0xeb], 0
je 0x5c2bd7
mov eax, dword [esi + 0xf0]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x5c2bb8
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5c2bd7
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5c2bc0
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5c2c06
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004adcc4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5c2be6
inc dword [esi + 0xb4]
jmp 0x5c2cc6
cmp dword [esi + 0xb4], 0
jle 0x5c2cc6
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5c2cc6
cmp dword [esi + 0x58], 0
je 0x5c2c7b
mov eax, dword [0x664138]
cmp byte [eax + 0xeb], 0
je 0x5c2c7b
mov eax, dword [esi + 0xf0]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x5c2c5c
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5c2c7b
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5c2c64
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5c2caa
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004adcc4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5c2c8a
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5b416c]
call fcn.0040dca4
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x5c3964
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5c39c1
cmp byte [ebx + 0xeb], 0
jne 0x5c39c1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040b754
mov eax, dword [esi]
test eax, eax
je 0x5c39ae
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5c39ce
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040b9ac
jmp 0x5c39ce
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040b9ac
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5c5304
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5c5375
mov eax, esi
call fcn.0052f63c
test al, al
je 0x5c5375
mov eax, dword [ebx + 0x98]
call fcn.0052f268
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5c5375
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x134]
test al, al
je 0x5c5366
push 0
mov eax, dword [ebx + 0x98]
call fcn.0052f268
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.00525ca4
jmp 0x5c5375
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.005c5110
pop esi
pop ebx
ret
Function at 0x5c9cd8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x5c9d56
mov eax, dword [ebx + 8]
call fcn.0052f268
mov ecx, eax
mov dl, 1
mov eax, dword [0x53b860]
call fcn.00529364
mov dword [ebx + 0x8c], eax
mov esi, dword [ebx + 0x8c]
xor edx, edx
mov eax, esi
call fcn.0054051c
mov dword [esi + 0x2cc], ebx
mov dword [esi + 0x2c8], 0x5c95a8
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.0052f268
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.0052f268
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5c9dd0
mov eax, dword [ebx + 8]
call fcn.0052f268
mov ecx, eax
mov dl, 1
mov eax, dword [0x53b860]
call fcn.00529364
mov dword [ebx + 0x9c], eax
mov esi, dword [ebx + 0x9c]
mov dl, 1
mov eax, esi
call fcn.0054051c
mov dword [esi + 0x2cc], ebx
mov dword [esi + 0x2c8], 0x5c95f4
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0052f268
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0052f268
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x5c9e3e
mov eax, dword [ebx + 8]
call fcn.0052f268
mov ecx, eax
mov dl, 1
mov eax, dword [0x53c2fc]
call fcn.00529364
mov dword [ebx + 0x94], eax
mov eax, dword [ebx + 0x94]
mov byte [eax + 0x2a0], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.0052f268
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.0052f268
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x5d5c70
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040b6b0
xor eax, eax
push ebp
push 0x5d5dad
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x5d5d80
xor edx, edx
push ebp
push 0x5d5d79
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x5d5cbd
sub eax, 4
mov eax, dword [eax]
add eax, eax
add eax, 2
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x5d5d4e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x5d5d3d
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x5d5d00
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.0040c214
mov ecx, ebx
add ecx, ecx
add ecx, 2
mov edx, esi
call fcn.00407158
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 0xd
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d5d44
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x65ca28]
mov dl, 1
mov eax, dword [0x41de5c]
call fcn.0042b514
call fcn.0040ac48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d5db4
lea eax, [ebp - 4]
call fcn.0040b5cc
ret

Function at 0x5fea74
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x6645d0], 0
jne 0x5fea8b
call fcn.005fea30
mov eax, edi
dec eax
test eax, eax
jl 0x5feab3
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6641d0]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x5fea95
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x601adc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x601b0d
dec al
je 0x601b48
dec al
je 0x601b8c
dec al
je 0x601bfe
jmp 0x601c99
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x601c99
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 0x601b1d
jmp 0x601c99
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x601c99
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]
movzx ecx, al
mov ecx, dword [ebx + ecx*4 + 0x40]
add dl, byte [ecx + esi]
and dl, 0xff
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x601b58
jmp 0x601c99
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x601c99
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, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
jbe 0x601bbf
xor edx, edx
mov dword [esp + 4], edx
jmp 0x601bd4
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]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov ebp, dword [ebx + edx*4 + 0x40]
movzx edx, byte [ebp + esi]
add eax, dword [esp + 4]
sar eax, 1
jns 0x601bec
adc eax, 0
add dl, al
and dl, 0xff
mov byte [ebp + esi], dl
inc esi
dec edi
jne 0x601b9c
jmp 0x601c99
xor eax, eax
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 8], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x601c99
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, dword [ebx + 0x24]
mov ecx, esi
dec ecx
cmp edx, ecx
ja 0x601c65
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]
mov dword [esp + 4], 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 + 8], 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 + 8]
push eax
movzx eax, byte [esp + 8]
pop edx
call fcn.005feabc
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [esp]
and al, 0xff
mov byte [edx + esi], al
inc esi
dec edi
jne 0x601c1a
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x6077f8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, edx
push esp
push 0x104
call sub.kernel32.dll_GetTempPathW
mov edx, ebx
mov eax, esp
call fcn.00426704
add esp, 0x20c
pop ebx
ret
Function at 0x6080f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040b6b0
xor eax, eax
push ebp
push 0x6081cb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00407f04
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 0
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040c214
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x6081b2
push ebx
mov eax, dword [ebp - 0x58]
push eax
call sub.user32.dll_WaitForInputIdle
push ebx
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
push ebx
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_WaitForSingleObject
push ebx
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_WaitForSingleObject
push ebx
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_WaitForSingleObject
push ebx
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x6081b5
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6081d2
lea eax, [ebp - 4]
call fcn.0040b5cc
ret
Function at 0x6081dc
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x174], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040b6b0
xor eax, eax
push ebp
push 0x60839b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040b5cc
mov dword [ebp - 0x60], 0xc
mov dword [ebp - 0x58], 0xffffffff
xor eax, eax
mov dword [ebp - 0x5c], eax
push 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_CreatePipe
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00407f04
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00407f04
mov dword [ebp - 0x28], 0x101
mov word [ebp - 0x24], 0
mov dword [ebp - 0x54], 0x44
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x8000000
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040c214
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x60836e
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
push 0
lea eax, [ebp - 0x10]
push eax
push 0xff
lea eax, [ebp - 0x170]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb ebx, ebx
inc ebx
cmp dword [ebp - 0x10], 0
jbe 0x60830c
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x170], 0
lea eax, [ebp - 0x174]
lea edx, [ebp - 0x170]
mov ecx, pe_nt_image_headers32
call fcn.0040c2b8
mov edx, dword [ebp - 0x174]
mov eax, esi
call fcn.0040c428
test bl, bl
je 0x608316
cmp dword [ebp - 0x10], 0
jne 0x6082b7
push 0xffffffffffffffff
mov eax, dword [ebp - 0x70]
push eax
call sub.user32.dll_WaitForInputIdle
push 0xffffffffffffffff
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_WaitForSingleObject
push 0xffffffffffffffff
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_WaitForSingleObject
push 0xffffffffffffffff
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_WaitForSingleObject
push 0xffffffffffffffff
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_WaitForSingleObject
push 0xffffffffffffffff
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x608371
or ebx, 0xffffffff
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6083a2
lea eax, [ebp - 0x174]
call fcn.0040b5cc
lea eax, [ebp - 4]
call fcn.0040b5cc
ret