joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442410
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46fda8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046857d
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00441d70
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004684ab
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00464d6f
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00464d6f
push 1
push 0
push 0
mov ecx, esi
call fcn.00464d17
push 1
push 0
push 1
mov ecx, esi
call fcn.00464d17
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004685ef
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x442590
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46fdc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046857d
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00441d70
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004684ab
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x442654
cmp dword [esp + 0x40], 1
jne 0x442652
cmp ecx, eax
jge 0x442654
mov eax, ecx
cmp eax, 0xc8
jge 0x442660
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00442410
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004685ef
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x442e50
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46fe73
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046318c
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00468825
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00469e3b
test eax, eax
je 0x442f6c
mov ecx, dword [esp + 0x3c]
call fcn.00468852
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x442f30
push edi
mov ecx, esi
call fcn.00465ebd
mov ecx, esi
call fcn.00443110
cmp dword [esp + 0x38], 1
jne 0x442f65
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00465ff8
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x445140
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x445173
push esi
call fcn.004482b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44516c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4451f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4451e2
mov eax, dword [esi + 8]
test eax, eax
je 0x445197
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4451de
cmp eax, 2
je 0x4451e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44518a
cmp eax, 3
je 0x4451bd
cmp eax, 1
jne 0x44518a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44518a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44518a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00445220
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x445208
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00445220
add esp, 4
pop esi
ret

Function at 0x463f82
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x463fba
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00462039
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00462011
jmp 0x463fc6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x465677
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4656b9
call fcn.0046b22c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4656b9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4656b0
xor eax, eax
jmp 0x4656c1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004656c7
pop edi
pop esi
pop ebx
ret 4

Function at 0x46b75c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46b78a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46b7a8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046b6c2
jmp 0x46b7a8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46b7a8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046b6c2
test edi, edi
mov eax, edi
jne 0x46b792
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401fa7
Capabilities:
Encode data using xor

Disassembly:
push esi
mov ecx, dword [0x4072c0]
mov esi, dword [esp + 0xc]
mov eax, esi
dec esi
test eax, eax
je 0x401fda
mov edx, dword [esp + 8]
mov al, byte [edx]
inc edx
xor al, cl
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x406ec0]
xor eax, ecx
mov ecx, eax
mov eax, esi
dec esi
test eax, eax
jne 0x401fbd
pop esi
mov dword [0x4072c0], ecx
ret

Function at 0x404057
Capabilities:
Encode data using xor

Disassembly:
push esi
xor eax, eax
push edi
cmp dword [0x4073fe], eax
ja 0x40406d
mov dword [0x4073dc], eax
jmp 0x4040f0
mov esi, 0x800
cmp dword [0x4073fe], esi
ja 0x404080
mov esi, dword [0x4073fe]
push esi
mov eax, dword [0x4073d8]
push eax
push dword [0x406834]
call dword [0x4082cc]
mov dword [0x4073dc], eax
cmp eax, esi
je 0x4040a1
call fcn.00402469
mov eax, dword [0x4073dc]
mov ecx, dword [0x4073d8]
sub dword [0x4073fe], eax
mov dword [0x40740c], ecx
cmp dword [0x406838], 0
je 0x4040e5
mov esi, ecx
lea edi, [eax - 1]
test eax, eax
je 0x4040e5
call 0x4056b9
xor byte [esi], al
movzx eax, byte [esi]
push eax
inc esi
call 0x4056d2
add esp, 4
mov eax, edi
dec edi
test eax, eax
jne 0x4040ca
mov eax, dword [0x4073dc]
dec dword [0x4073dc]
pop edi
pop esi
ret
Function at 0x401630
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
call fcn.00401460
test eax, eax
jne 0x401692
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.wbjju.ime
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x425364
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call sub.IMM32.dll_ImmInstallIMEA
pop edi
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x4016a0
Capabilities:
Copy file
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41caa6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov eax, dword [0x425888]
push esi
mov dword [esp + 8], eax
mov dword [esp + 0x12c], 0
mov dword [esp + 4], eax
mov esi, dword [esp + 0x134]
lea ecx, [esp + 8]
mov byte [esp + 0x12c], 1
lea eax, [esi + 0x24]
push eax
call fcn.00413a2b
add esi, 0x14
lea ecx, [esp + 4]
push esi
call fcn.00413a2b
push 0x425388
lea ecx, [esp + 8]
call fcn.00413bf4
push 0x425388
lea ecx, [esp + 0xc]
call fcn.00413bf4
mov edx, dword [esp + 4]
lea ecx, [esp + 0xc]
push ecx
push edx
call fcn.00413f42
test eax, eax
pop esi
jne 0x40173f
mov eax, dword [esp]
mov ecx, dword [esp + 4]
push 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp]
lea edx, [esp + 8]
push edx
push eax
call fcn.00413f42
test eax, eax
je 0x40176b
mov al, byte [esp + 0x18]
mov edx, dword [esp]
lea ecx, [esp + 8]
and al, 0xfe
push ecx
push edx
mov byte [esp + 0x20], al
call fcn.004140a7
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp]
mov byte [esp + 0x128], 0
call fcn.00413982
lea ecx, [esp + 4]
mov dword [esp + 0x128], 0xffffffff
call fcn.00413982
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
add esp, 0x12c
ret

Function at 0x4017b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x114]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00413f42
mov edi, str.IMEROVASOfT
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, dword [esp + 0x114]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call fcn.00413f42
mov edx, dword [esp + 0x114]
not ebx
and edx, 0x7fff
and ebx, 0xffff
shl edx, 0x10
and ebx, 0x7fffffff
or edx, ebx
push edx
push str.BookID
push str.SOFTWAREROVASOFT
push 0x80000002
call fcn.00403470
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret
Function at 0x401870
Capabilities:
Get common file path

Disassembly:
sub esp, 0x220
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x42528c
push str.SOFTWAREROVASOFT
push 0x80000002
call fcn.00403410
add esp, 0x10
test eax, eax
jne 0x4018f4
lea ecx, [esp + 8]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x10c]
lea eax, [esp + 8]
push edx
push eax
call fcn.00413f42
mov eax, dword [esp + 0x10c]
and esi, 0x7fffffff
and eax, 0x1ff
shl eax, 0x16
xor eax, esi
push eax
push 0x42528c
push str.SOFTWAREROVASOFT
push 0x80000002
mov dword [esp + 0x14], eax
call fcn.00403470
add esp, 0x10
pop esi
add esp, 0x220
ret

Function at 0x401950
Capabilities:
Delete file
Delete registry key
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41cad1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
mov esi, dword [esp + 0x124]
push esi
call fcn.004016a0
add esp, 4
add esi, 0x24
lea eax, [esp + 8]
push 0x425400
push esi
push eax
call fcn.00413b21
mov ecx, dword [esp + 0x128]
mov esi, dword [esi]
mov edx, dword [esp + 8]
push ecx
push esi
push edx
mov dword [esp + 0x128], 0
call fcn.00401d90
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
pop esi
jne 0x4019ef
lea ecx, [esp + 4]
mov dword [esp + 0x118], 0xffffffff
call fcn.00413982
xor eax, eax
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret
call fcn.00401630
call fcn.0041b412
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x1a0]
test ecx, ecx
jne 0x401a14
mov ecx, dword [eax + 0x19c]
test ecx, ecx
jne 0x401aee
push 0x4253f0
lea ecx, [esp + 0xc]
call fcn.004139ac
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersionUninstallWBJJ]
push eax
push str.DisplayName
push ecx
push 0x80000002
mov byte [esp + 0x128], 1
call fcn.00403570
add esp, 0x10
lea ecx, [esp + 8]
mov byte [esp + 0x118], 0
call fcn.00413982
lea edx, [esp + 0xc]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [0x425888]
mov dword [esp], eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x118], 2
push ecx
lea ecx, [esp + 4]
call fcn.00413a7b
push str.IMERovasoftWBJJWbjjUninst.exe
lea ecx, [esp + 4]
call fcn.00413bf4
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionUninstallWBJJ]
lea edx, [esp]
push edx
push str.UninstallString
push eax
push 0x80000002
call fcn.00403570
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersionUninstallWBJJ]
add esp, 0x10
push ecx
lea ecx, [esp + 4]
call fcn.00413a7b
push 0x4253ac
lea ecx, [esp + 4]
call fcn.00413bf4
mov edx, dword [esp]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp]
mov byte [esp + 0x118], 0
call fcn.00413982
call fcn.00401870
call fcn.00401900
call fcn.004017b0
lea ecx, [esp + 4]
mov dword [esp + 0x118], 0xffffffff
call fcn.00413982
mov ecx, dword [esp + 0x110]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x401b30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41caf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
and eax, 0xffff
push 0x425454
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x401b7c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401b9a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401bb8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 8]
lea ecx, [ebp - 0x28]
call fcn.004141d4
mov ecx, dword [ebp + 8]
push 0
push 0x9001
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004142e6
test eax, eax
jne 0x401c03
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00414229
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
mov ebx, 1
call fcn.0041487b
mov edx, dword [ebp - 0x28]
push edi
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call dword [edx + 0x38]
jmp 0x401c45
mov dword [ebp - 4], 0
call fcn.004148b9
lea ecx, [ebp - 0x28]
call fcn.004144e0
lea ecx, [ebp - 0x28]
call fcn.00414501
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00414229
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402390
Capabilities:
Copy file
Create directory
Get common file path

Disassembly:
sub esp, 0x21c
lea eax, [esp]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.IME
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call fcn.00413f42
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4023fc
lea edx, [esp + 0xc]
push 0
push edx
call ebx
mov edi, str.Rovasoft
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call fcn.00413f42
test eax, eax
jne 0x402449
lea edx, [esp + 0x10]
push eax
push edx
call ebx
mov edi, str.WBJJ
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call fcn.00413f42
test eax, eax
pop ebp
jne 0x402496
lea edx, [esp + 0xc]
push eax
push edx
call ebx
mov edi, str.WBSET.EXE
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebx
add esp, 0x21c
ret
Function at 0x402530
Capabilities:
Check os version

Disassembly:
push ebp
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x108]
mov dword [edi], 0x94
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
xor ebp, ebp
push edi
mov word [esi + 0x1b0], ax
mov dword [esi + 0x19c], ebp
mov dword [esi + 0x1a0], ebp
mov dword [esi + 0x1a4], ebp
mov dword [esi + 0x1a8], ebp
mov dword [esi + 0x1ac], ebp
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40263b
mov ecx, dword [esi + 0x118]
xor eax, eax
cmp ecx, 2
sete al
mov edi, eax
mov eax, 1
cmp ecx, eax
mov dword [esi + 0x19c], edi
jne 0x4025b5
mov edx, dword [esi + 0x10c]
cmp edx, 4
ja 0x4025b1
jne 0x4025b5
cmp dword [esi + 0x110], ebp
jbe 0x4025b5
mov edx, eax
jmp 0x4025b7
xor edx, edx
cmp edx, ebp
mov dword [esi + 0x1a4], edx
jne 0x4025d0
push ebx
xor ebx, ebx
cmp ecx, eax
sete bl
mov dword [esi + 0x1a8], ebx
pop ebx
cmp edi, ebp
jne 0x4025f0
cmp edx, ebp
jne 0x402618
cmp dword [esi + 0x1a8], ebp
jne 0x402618
mov dword [esi + 0x104], 0x69
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov ecx, dword [esi + 0x10c]
cmp ecx, 4
jae 0x40260b
mov dword [esi + 0x104], 0x68
pop edi
pop esi
xor eax, eax
pop ebp
ret
cmp ecx, 5
jne 0x402616
mov dword [esi + 0x1a0], eax
ja 0x40263b
mov cx, word [esi + 0x1b0]
cmp cx, 0x804
je 0x40262d
cmp cx, 0x404
jne 0x402633
mov dword [esi + 0x1ac], eax
cmp dword [esi + 0x1ac], ebp
jne 0x402647
mov dword [esi + 0x104], 0x69
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x402650
Capabilities:
Create directory
Get common file path
Persist via run registry key

Disassembly:
sub esp, 0x104
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x19c]
push edi
test eax, eax
mov esi, str.SoftwareMicrosoftWindows_NTCurrentVersion
jne 0x402670
mov esi, str.SoftwareMicrosoftWindowsCurrentVersion
lea eax, [ebx + 0xe4]
push eax
push str.RegisteredOwner
push esi
push 0x80000002
call fcn.004034a0
lea ecx, [ebx + 0xdc]
push ecx
push str.RegisteredOrganization
push esi
push 0x80000002
call fcn.004034a0
lea edx, [ebx + 0xf0]
push edx
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004034a0
lea eax, [ebx + 0xf4]
push eax
push str.Programs
push 0x425164
push 0x80000001
call fcn.004034a0
add esp, 0x40
lea ecx, [ebx + 0xf8]
push ecx
push str.Common_Desktop
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call fcn.004034a0
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea esi, [ebx + 0xfc]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00413a7b
push str.WBJJ_
mov ecx, esi
call fcn.00413bf4
mov ecx, dword [esi]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0x10]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.IMERovasoftWBJJ_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 0xec]
call fcn.00413a7b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x403340
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403363
xor eax, eax
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push esi
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
ret