joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5dd414
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 0x5dd5bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5dd5a0
mov dl, 1
mov eax, dword [0x48e104]
call fcn.004b1680
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00409c60
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5dd58f
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.00540a18
test al, al
je 0x5dd582
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, 0x5dd5d0
lea eax, [ebp - 0x394]
call fcn.004248f8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5dd582
xor eax, eax
push ebp
push 0x5dd57b
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 0x5dd640
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x5dd564
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a83c
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 0x5dd564
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a83c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5dd582
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5dd485
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.004b15a4
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 0x5dd5c6
lea eax, [ebp - 0x3a0]
call fcn.00409c60
ret

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

Disassembly:
push ecx
mov eax, dword [0x6710d0]
cmp byte [eax + 0xc5], 0
jne 0x5de1ea
cmp dword [0x6710f4], 0
jne 0x5de1aa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x669308]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x6710f4], eax
cmp dword [0x6710f0], 0
jne 0x5de1c5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x6710f0], eax
cmp dword [0x6710f8], 0
jne 0x5de1ea
push esp
push 0
push 0
mov eax, dword [0x669304]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x6710f8], eax
pop edx
ret
Function at 0x5de60c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5de623
add esp, 0xfffffff0
call fcn.004084f8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004c1f40
mov eax, dword [0x6699d8]
cmp byte [eax], 0
jne 0x5de650
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x669e9c]
cmp word [eax + 2], 0
jne 0x5de66a
mov eax, dword [0x669e9c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005e08e4
mov eax, dword [0x66a04c]
cmp word [eax + 2], 0
jne 0x5de684
mov eax, dword [0x66a04c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005e0ae8
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x500a44]
call fcn.00506ba8
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5e1060
mov dl, 1
mov eax, dword [0x48a784]
call fcn.00407e40
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x48a784]
call fcn.00407e40
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 [0x50546c]
call fcn.005102c8
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x5de86c
mov eax, dword [0x669cb0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00510760
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5e1348
mov dl, 1
mov eax, dword [0x48a784]
call fcn.00407e40
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x669cb0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.004246f8
test eax, eax
je 0x5de79e
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00424550
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004246dc
test eax, eax
je 0x5de7b6
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040a83c
push ebx
push 0x5e02c0
call fcn.005d3a70
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x6699d8]
cmp byte [eax], 0
jne 0x5de807
mov eax, ebx
call fcn.005dea54
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.005e1580
mov eax, ebx
call fcn.005e21e0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5de864
call fcn.00408550
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5ded98
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x5dee3a
cmp dword [ebx + 0xac], 0
jne 0x5dee34
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5decd4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5dee34
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 0x5dedfa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5dee34
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.004acc40
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5dee09
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x5df078
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 [0x6710d0]
cmp dword [eax + 0x188], 0
je 0x5df1f2
test bl, bl
jne 0x5df13d
cmp dword [esi + 0xb4], 0
jne 0x5df132
mov eax, esi
call fcn.005e2030
push eax
push 0x5def6c
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5df103
mov eax, dword [0x6710d0]
cmp byte [eax + 0xeb], 0
je 0x5df103
mov eax, dword [esi + 0xf0]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x5df0e4
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5df103
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 0x5df0ec
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5df132
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004acc40
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5df112
inc dword [esi + 0xb4]
jmp 0x5df1f2
cmp dword [esi + 0xb4], 0
jle 0x5df1f2
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5df1f2
cmp dword [esi + 0x58], 0
je 0x5df1a7
mov eax, dword [0x6710d0]
cmp byte [eax + 0xeb], 0
je 0x5df1a7
mov eax, dword [esi + 0xf0]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x5df188
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5df1a7
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 0x5df190
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5df1d6
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004acc40
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5df1b6
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5d02e4]
call fcn.0040bfec
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x5dfe4c
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 0x5dfea9
cmp byte [ebx + 0xeb], 0
jne 0x5dfea9
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.00409de8
mov eax, dword [esi]
test eax, eax
je 0x5dfe96
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5dfeb6
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a040
jmp 0x5dfeb6
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.0040a040
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5e1768
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5e17d9
mov eax, esi
call fcn.0053a528
test al, al
je 0x5e17d9
mov eax, dword [ebx + 0x98]
call fcn.0053a154
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5e17d9
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x128]
test al, al
je 0x5e17ca
push 0
mov eax, dword [ebx + 0x98]
call fcn.0053a154
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.00530c84
jmp 0x5e17d9
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.005e15a0
pop esi
pop ebx
ret
Function at 0x5e85d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x5e864a
mov eax, dword [ebx + 8]
call fcn.0053a154
mov ecx, eax
mov dl, 1
mov eax, dword [0x5483d8]
call fcn.00534330
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.0054e318
mov dword [esi + 0x2c4], ebx
mov dword [esi + 0x2c0], 0x5e7ea0
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.0053a154
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.0053a154
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5e86c0
mov eax, dword [ebx + 8]
call fcn.0053a154
mov ecx, eax
mov dl, 1
mov eax, dword [0x5483d8]
call fcn.00534330
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.0054e318
mov dword [esi + 0x2c4], ebx
mov dword [esi + 0x2c0], 0x5e7eec
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.0053a154
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.0053a154
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x5e872c
mov eax, dword [ebx + 8]
call fcn.0053a154
mov ecx, eax
mov dl, 1
mov eax, dword [0x548e68]
call fcn.00534330
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x298], 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.0053a154
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.0053a154
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x5f398c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x67150c], 0
jne 0x5f39a3
call fcn.005f3948
mov eax, edi
dec eax
test eax, eax
jl 0x5f39cb
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x67110c]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x5f39ad
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x5f66bc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
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 + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x5f6758.0
jmp dword [ecx*4 + 0x5f66f1]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5f6723
sub dl, 8
je 0x5f6732
jmp case.0x5f6758.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5f6388
jmp case.0x5f6758.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5f63dc
jmp case.0x5f6758.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x5f6758.0
movzx ecx, byte [ecx + 0x5f675f]
jmp dword [ecx*4 + 0x5f6770]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5f647c
jmp case.0x5f6758.0
cmp dl, 3
jne 0x5f679d
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5f64d4
jmp case.0x5f6758.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5f6490
jmp case.0x5f6758.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5f6518
jmp case.0x5f6758.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5f67c8
sub dl, 8
je 0x5f67d4
jmp case.0x5f6758.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5f6544
jmp case.0x5f6758.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5f65a8
jmp case.0x5f6758.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5f67f3
sub dl, 8
je 0x5f67ff
jmp case.0x5f6758.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5f6658
jmp case.0x5f6758.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x5f6680
mov ecx, dword [eax + 0x468]
mov edx, dword [ebx + 0x1c]
dec edx
imul ecx, edx
mov esi, ecx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
add ecx, dword [eax + 0x44c]
mov dword [ebp - 0x10], ecx
mov esi, edx
test esi, esi
jb 0x5f68a1
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.005f58e0
test eax, eax
je 0x5f68a1
mov eax, ebx
call fcn.005f68ac
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 + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x5f683a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5f68ac
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 0x5f68dd
dec al
je 0x5f6918
dec al
je 0x5f695c
dec al
je 0x5f69ce
jmp 0x5f6a69
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x5f6a69
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 0x5f68ed
jmp 0x5f6a69
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5f6a69
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 0x5f6928
jmp 0x5f6a69
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x5f6a69
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 0x5f698f
xor edx, edx
mov dword [esp + 4], edx
jmp 0x5f69a4
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 0x5f69bc
adc eax, 0
add dl, al
and dl, 0xff
mov byte [ebp + esi], dl
inc esi
dec edi
jne 0x5f696c
jmp 0x5f6a69
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 0x5f6a69
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 0x5f6a35
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.005f39d4
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 0x5f69ea
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x6245d4
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409d44
mov eax, dword [ebp - 8]
call fcn.00409d44
xor eax, eax
push ebp
push 0x624664
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [ebp - 4]
push 0x62467c
push 0x62467c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040aa74
mov dword [ebp - 0x26], 2
mov eax, dword [ebp - 0xc]
call fcn.0040a780
mov dword [ebp - 0x22], eax
mov eax, dword [ebp - 8]
call fcn.0040a780
mov dword [ebp - 0x1e], eax
mov word [ebp - 0x1a], 0x14
lea eax, [ebp - 0x2a]
push eax
call sub.shell32.dll_SHFileOperationW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x62466b
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00409cc0
ret

Function at 0x624680
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409d44
mov eax, dword [ebp - 8]
call fcn.00409d44
xor eax, eax
push ebp
push 0x6246f6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], 4
mov eax, dword [ebp - 4]
call fcn.0040a780
mov dword [ebp - 0x1e], eax
mov eax, dword [ebp - 8]
call fcn.0040a780
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], 0xd4
lea eax, [ebp - 0x26]
push eax
call sub.shell32.dll_SHFileOperationW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6246fd
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409cc0
ret

Function at 0x624704
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409d44
xor eax, eax
push ebp
push 0x6247fa
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00423f50
test al, al
je 0x6247dc
cmp byte [ebp - 5], 0
je 0x624756
lea eax, [ebp - 4]
mov edx, 0x624818
call fcn.0040a994
jmp 0x62479c
mov esi, dword [ebp - 4]
mov ebx, esi
test ebx, ebx
je 0x624764
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 4]
movzx edx, word [edx + ebx*2 - 2]
call fcn.0040a7a8
mov eax, dword [ebp - 0x28]
mov edx, 0x624834
call fcn.0040ab24
jne 0x62479c
mov eax, esi
test eax, eax
je 0x62478e
sub eax, 4
mov eax, dword [eax]
lea edx, [ebp - 4]
mov ecx, 1
xchg edx, eax
call fcn.0040aba4
lea eax, [ebp - 0x23]
xor ecx, ecx
mov edx, 0x1e
call fcn.00407848
mov dword [ebp - 0x1f], 3
mov eax, dword [ebp - 4]
call fcn.0040a780
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x13], 0x50
lea eax, [ebp - 0x23]
push eax
call sub.shell32.dll_SHFileOperationW
test eax, eax
jne 0x6247d6
cmp dword [ebp - 0x11], 0
je 0x6247da
xor ebx, ebx
jmp 0x6247dc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x624801
lea eax, [ebp - 0x28]
call fcn.00409c60
lea eax, [ebp - 4]
call fcn.00409c60
ret
Function at 0x624db4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409d44
xor eax, eax
push ebp
push 0x624ed1
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x624ea4
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a780
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
mov eax, ebx
call fcn.00406e88
mov esi, eax
push esi
push ebx
push 0
push edi
call sub.version.dll_GetFileVersionInfoW
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x624ee0
push esi
call sub.version.dll_VerQueryValueW
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 8]
shr edx, 0x10
mov word [ebp - 0x16], dx
movzx edx, word [eax + 8]
and dx, 0xffff
mov word [ebp - 0x18], dx
mov edx, dword [eax + 0xc]
shr edx, 0x10
mov word [ebp - 0x1a], dx
movzx edi, word [eax + 0xc]
and di, 0xffff
mov edx, ebx
mov eax, esi
call fcn.00406ea4
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0x16]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
movzx eax, word [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
movzx eax, word [ebp - 0x1a]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
movzx eax, di
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x3c]
mov ecx, 3
mov eax, 0x624ef0
call fcn.004249c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x624ebb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x624ed8
lea eax, [ebp - 4]
call fcn.00409c60
ret

Function at 0x6274f0
Capabilities:
Query service status

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov edi, edx
mov esi, 1
push 1
push 0
push eax
call sub.advapi32.dll_OpenSCManagerW
mov ebx, eax
test ebx, ebx
jbe 0x627537
push 4
push edi
push ebx
call sub.advapi32.dll_OpenServiceW
mov edi, eax
test edi, edi
jbe 0x627531
push esp
push edi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x62752b
mov esi, dword [esp + 4]
push edi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
mov eax, esi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret

Function at 0x62b400
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x62b452
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x10
mov eax, 0x10
call fcn.0042480c
mov ebx, eax
lea eax, [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_GetComputerNameW
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.0040a7e8
mov eax, ebx
call fcn.0042484c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x62b464
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret