joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d09e0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, eax
movzx ecx, ax
shr edi, 0x10
cmp ebx, 1
jne 0x4d0a2a
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
add eax, ecx
cmp eax, 0xfff1
lea edx, [eax - 0xfff1]
cmovb edx, eax
lea eax, [edx + edi]
cmp eax, 0xfff1
lea ecx, [eax - 0xfff1]
pop edi
cmovb ecx, eax
shl ecx, 0x10
or ecx, edx
mov eax, ecx
pop ebx
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x4d0a3a
lea eax, [esi + 1]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp ebx, 0x10
jae 0x4d0a7e
test ebx, ebx
je 0x4d0a52
movzx eax, byte [esi]
lea esi, [esi + 1]
add ecx, eax
add edi, ecx
sub ebx, 1
jne 0x4d0a43
cmp ecx, 0xfff1
lea esi, [ecx - 0xfff1]
mov eax, 0x80078071
cmovb esi, ecx
mul edi
shr edx, 0xf
mov eax, edx
shl eax, 4
sub eax, edx
add eax, edi
shl eax, 0x10
or eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
cmp ebx, 0x15b0
jb 0x4d0b32
mov eax, 0x5e6ea9af
mul ebx
shr edx, 0xb
mov dword [ebp + 8], edx
nop word [eax + eax]
sub ebx, 0x15b0
mov edx, 0x2b6
nop dword [eax + eax]
movzx eax, byte [esi]
add ecx, eax
movzx eax, byte [esi + 1]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 2]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 3]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 4]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 5]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 6]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 7]
add edi, ecx
add esi, 8
add ecx, eax
add edi, ecx
sub edx, 1
jne 0x4d0ab0
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul eax, edx, 0xffff000f
add edi, eax
sub dword [ebp + 8], 1
jne 0x4d0aa0
test ebx, ebx
je 0x4d0bb8
cmp ebx, 8
jb 0x4d0b85
mov edx, ebx
shr edx, 3
movzx eax, byte [esi]
sub ebx, 8
add ecx, eax
movzx eax, byte [esi + 1]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 2]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 3]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 4]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 5]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 6]
add edi, ecx
add ecx, eax
movzx eax, byte [esi + 7]
add edi, ecx
add esi, 8
add ecx, eax
add edi, ecx
sub edx, 1
jne 0x4d0b37
test ebx, ebx
je 0x4d0b94
movzx eax, byte [esi]
lea esi, [esi + 1]
add ecx, eax
add edi, ecx
sub ebx, 1
jne 0x4d0b85
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
shl edi, 0x10
or edi, ecx
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret

Function at 0x4d0bd0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.winvnc.exe_adler32_z
Function at 0x4d3fc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x90c], 0
je 0x4d4001
cmp edx, 0x190
jg case.0x4d3fe7.10
je case.0x4d3fe7.10
lea eax, [edx - 0xa]
cmp eax, 0xc0
ja case.0x4d3fe7.10
movzx eax, byte [eax + 0x4d4084]
jmp dword [eax*4 + 0x4d4078]
mov dword [ecx + 4], 1
lea eax, [edx - 0xa]
jmp 0x4d4015
mov eax, 0xffffffc4
pop ebp
ret
cmp edx, 0x190
jg 0x4d4039
je 0x4d4023
lea eax, [edx - 0xa]
cmp eax, 0xc0
ja case.default.0x4d4068
movzx eax, byte [eax + 0x4d4150]
jmp dword [eax*4 + 0x4d4148]
cmp dword [ebp + 8], 0
je case.0x4d4068.1001
cmp dword [ecx + 0x288], 0
je case.0x4d4068.1001
mov eax, 0xffffffd8
pop ebp
ret
cmp edx, 0x3e8
jg 0x4d4056
je case.0x4d4068.1001
mov eax, edx
sub eax, 0x191
je case.0x4d4068.1001
sub eax, 1
je case.0x4d4068.1001
sub eax, 0x62
jmp 0x4d4030
lea eax, [edx - 0x3e9]
cmp eax, 0xb
ja case.default.0x4d4068
movzx eax, byte [eax + 0x4d4218]
jmp dword [eax*4 + 0x4d4214]
add ecx, 0xc
pop ebp
jmp fcn.004d4230

Function at 0x4d3fee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x90c], 0
je 0x4d4001
cmp edx, 0x190
jg case.0x4d3fe7.10
je case.0x4d3fe7.10
lea eax, [edx - 0xa]
cmp eax, 0xc0
ja case.0x4d3fe7.10
movzx eax, byte [eax + 0x4d4084]
jmp dword [eax*4 + 0x4d4078]
mov dword [ecx + 4], 1
lea eax, [edx - 0xa]
jmp 0x4d4015
mov eax, 0xffffffc4
pop ebp
ret
cmp edx, 0x190
jg 0x4d4039
je 0x4d4023
lea eax, [edx - 0xa]
cmp eax, 0xc0
ja case.default.0x4d4068
movzx eax, byte [eax + 0x4d4150]
jmp dword [eax*4 + 0x4d4148]
cmp dword [ebp + 8], 0
je case.0x4d4068.1001
cmp dword [ecx + 0x288], 0
je case.0x4d4068.1001
mov eax, 0xffffffd8
pop ebp
ret
cmp edx, 0x3e8
jg 0x4d4056
je case.0x4d4068.1001
mov eax, edx
sub eax, 0x191
je case.0x4d4068.1001
sub eax, 1
je case.0x4d4068.1001
sub eax, 0x62
jmp 0x4d4030
lea eax, [edx - 0x3e9]
cmp eax, 0xb
ja case.default.0x4d4068
movzx eax, byte [eax + 0x4d4218]
jmp dword [eax*4 + 0x4d4214]
add ecx, 0xc
pop ebp
jmp fcn.004d4230
Function at 0x53b930
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
push esi
push edi
test ebx, ebx
je 0x53ba90
mov esi, dword [ebp + 8]
push 0x54
test esi, esi
je 0x53b965
push dword [ebp + 0x10]
call esi
push 0x54
mov edi, eax
push 0
push edi
call fcn.0053f2b0
add esp, 0x14
jmp 0x53b971
push 1
call fcn.0054e3d1
add esp, 8
mov edi, eax
test edi, edi
je 0x53ba90
mov dword [edi + 0x24], 1
push 8
test esi, esi
je 0x53b990
push dword [ebp + 0x10]
call esi
add esp, 8
jmp 0x53b998
call fcn.0054cef5
add esp, 4
mov dword [edi + 0x18], eax
lea eax, [edi + 0x30]
push eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea eax, [edi + 0x48]
push eax
call esi
lea eax, [edi + 0x4c]
push eax
call esi
mov eax, dword [ebp + 8]
lea ecx, [ebx + ebx*2]
shl ecx, 2
mov dword [edi + 0x50], 0
push ecx
test eax, eax
je 0x53b9f2
push dword [ebp + 0x10]
call eax
add esp, 8
jmp 0x53b9fa
call fcn.0054cef5
add esp, 4
movq xmm0, qword [ebp + 8]
mov ecx, eax
mov eax, dword [ebp + 0x10]
movq qword [edi], xmm0
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], 0
mov dword [edi + 8], eax
test ecx, ecx
je 0x53ba89
cmp dword [edi + 0x18], 0
je 0x53ba89
mov eax, dword [ebp - 4]
xor ebx, ebx
test eax, eax
je 0x53ba77
xor eax, eax
mov dword [ebp - 8], eax
nop dword [eax]
mov esi, dword [edi + 0xc]
push 0
add esi, eax
push 0
push esi
push 0x53ca80
mov dword [esi + 8], edi
push 0
push 0
mov dword [esi + 4], 0x53b870
call fcn.00556d35
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x53ba65
call fcn.00553fe9
cmp dword [eax], 0
jne 0x53ba86
mov eax, dword [ebp - 8]
inc ebx
add eax, 0xc
mov dword [ebp - 8], eax
cmp ebx, dword [ebp - 4]
jb 0x53ba30
mov eax, dword [ebp - 4]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x10], ebx
mov ecx, edi
call fcn.0053baa0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53bbc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 8], esi
test edi, edi
jne 0x53bbdc
pop edi
lea eax, [ecx + 1]
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp esi, dword [edi + 0x10]
ja 0x53bc03
test esi, esi
jne 0x53bbf9
mov esi, 1
jmp 0x53bcd7
mov dword [edi + 0x14], esi
xor esi, esi
jmp 0x53bcd7
movq xmm0, qword [edi]
lea eax, [esi + esi*2]
movq qword [ebp - 0x14], xmm0
mov ecx, dword [ebp - 0x14]
shl eax, 2
push ebx
push eax
test ecx, ecx
je 0x53bc2a
push dword [edi + 8]
call ecx
mov ebx, eax
add esp, 8
mov dword [ebp - 4], ebx
jmp 0x53bc37
call fcn.0054cef5
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
test ebx, ebx
je 0x53bcf6
mov eax, dword [edi + 0x10]
lea eax, [eax + eax*2]
shl eax, 2
push eax
push dword [edi + 0xc]
push ebx
call fcn.00540f80
movq xmm0, qword [edi]
add esp, 0xc
mov eax, dword [edi + 0xc]
movq qword [ebp - 0x14], xmm0
test eax, eax
je 0x53bc7f
mov ecx, dword [ebp - 0x10]
push eax
test ecx, ecx
je 0x53bc77
push dword [edi + 8]
call ecx
add esp, 8
jmp 0x53bc7f
call fcn.005417da
add esp, 4
mov dword [edi + 0xc], ebx
mov ebx, dword [edi + 0x10]
cmp ebx, esi
jae 0x53bcce
mov ecx, dword [ebp - 4]
lea eax, [ebx + ebx*2]
lea esi, [ecx + eax*4]
push 0
push 0
push esi
push 0x53ca80
push 0
push 0
mov dword [esi + 8], edi
mov dword [esi + 4], 0x53b870
call fcn.00556d35
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x53bcc2
call fcn.00553fe9
cmp dword [eax], 0
jne 0x53bcf3
inc ebx
add esi, 0xc
cmp ebx, dword [ebp - 8]
jb 0x53bc92
mov esi, dword [ebp - 8]
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
xor esi, esi
pop ebx
lea ecx, [edi + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_WakeAllConditionVariable]
lea eax, [edi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x10], ebx
mov esi, 1
jmp 0x53bcd6
Function at 0x53caf0
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
push edi
push dword [0x623cc4]
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi + 4], eax
test eax, eax
jne 0x53cb97
push 0x5e8d54
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5e8cc4]
test eax, eax
je 0x53cb44
mov dword [esi], eax
mov eax, dword [eax + 0x60]
mov edi, dword [esi]
push 0x5e8d54
mov dword [0x5e8cc4], eax
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
ret
push 0x64
call fcn.0053d643
mov edi, eax
add esp, 4
lea ecx, [edi + 4]
mov dword [edi], vtable.omni_thread.0
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 1
sub esp, 8
mov ecx, edi
call fcn.0053d050
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi], vtable._internal_omni_thread_dummy.0
mov dword [edi + 0x60], 0
push 0x5e8d54
mov dword [esi], edi
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
ret

Function at 0x53cdb0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [0x623ce8]
push ebx
mov ebx, ecx
lea eax, [edx + 1]
mov dword [0x623ce8], eax
test edx, edx
jne 0x53ce66
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x623cc4], eax
cmp eax, 0xffffffff
je 0x53ce6d
push esi
push edi
push 0x18
call fcn.0053d643
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x60
mov dword [0x5e8cc0], esi
call fcn.0053d643
push ecx
mov ecx, eax
call fcn.0053d010
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
push 2
push 0
push 0
lea eax, [edi + 0x44]
mov dword [edi + 0x1c], 1
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x53ce89
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
push dword [0x623cc4]
mov dword [edi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x53cea5
push 0
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
test eax, eax
je 0x53cec1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 4]
call fcn.0053caa0
push 0x5d3ec8
mov eax, ecx
push eax
call fcn.0053f06d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 4]
call fcn.0053caa0
push 0x5d3ec8
mov eax, ecx
push eax
call fcn.0053f06d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 4]
call fcn.0053caa0
push 0x5d3ec8
mov eax, ecx
push eax
call fcn.0053f06d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 4]
call fcn.0053caa0
push 0x5d3ec8
mov eax, ecx
push eax
call fcn.0053f06d
int3
Function at 0x53d1c0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1c], 0
jne 0x53d260
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
push esi
push 0x53cf40
push dword [0x5e8cc8]
push 0
call fcn.00556d35
mov ecx, dword [ebp - 8]
mov edx, eax
add esp, 0x18
mov dword [esi + 0x44], edx
mov dword [esi + 0x48], ecx
test edx, edx
je 0x53d26e
mov eax, dword [esi + 0x20]
sub eax, 0
je 0x53d22d
sub eax, 1
je 0x53d229
sub eax, 1
jne 0x53d28a
mov eax, 2
jmp 0x53d232
xor eax, eax
jmp 0x53d232
mov eax, 0xfffffffe
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x53d298
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x53d2b4
push edi
mov dword [esi + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x5d3eb0
lea eax, [ebp - 1]
push eax
call fcn.0053f06d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.0053caa0
push 0x5d3ec8
mov eax, ecx
push eax
call fcn.0053f06d
push 0x5d3eb0
lea eax, [ebp - 1]
push eax
call fcn.0053f06d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.0053caa0
push 0x5d3ec8
mov eax, ecx
push eax
call fcn.0053f06d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.0053caa0
push 0x5d3ec8
mov eax, ecx
push eax
call fcn.0053f06d
int3

Function at 0x53d2e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
cmp eax, 1
je 0x53d2fe
cmp eax, 2
jne 0x53d344
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [0x623cc4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, eax
je 0x53d359
cmp dword [esi + 0x34], 0
jne 0x53d367
push 0xffffffffffffffff
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x53d375
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x53d336
mov eax, dword [esi + 0x4c]
mov dword [ecx], eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop edi
pop esi
pop ebp
ret 4
mov ecx, edi
call fcn.0041f070
push 0x5d3eb0
lea eax, [ebp + 0xb]
push eax
call fcn.0053f06d
push 0x5d3eb0
lea eax, [ebp + 0xb]
push eax
call fcn.0053f06d
push 0x5d3eb0
lea eax, [ebp + 0xb]
push eax
call fcn.0053f06d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.0053caa0
push 0x5d3ec8
mov eax, ecx
push eax
call fcn.0053f06d
int3
Function at 0x53d410
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
push dword [0x623cc4]
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x53d45e
push esi
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [edi + 0x1c], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi + 0x34], 0
pop esi
je 0x53d45b
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push 0
call fcn.00556db8
add esp, 4
pop edi
pop ebx
ret
mov dword [edi + 0x4c], ebx
push 0
call fcn.00556db8
add esp, 4
pop edi
pop ebx
ret

Function at 0x55e7d6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055e329

Function at 0x55f36e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055f1e4
Function at 0x401000
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov dword [ebp - 4], eax
test ebx, ebx
jle 0x4010ee
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [0x4c02f8]
push edi
inc edx
movzx eax, byte [edx - 1]
shr eax, 2
mov al, byte [eax + esi]
mov byte [ecx], al
inc ecx
cmp ebx, 2
jle 0x401078
movsx edi, byte [edx - 1]
movzx eax, byte [edx]
shr eax, 4
and edi, 3
shl edi, 4
or eax, edi
movzx eax, byte [eax + esi]
mov byte [ecx], al
movsx eax, byte [edx]
movzx edi, byte [edx + 1]
and eax, 0xf
add eax, eax
add eax, eax
shr edi, 6
or eax, edi
movzx eax, byte [eax + esi]
mov byte [ecx + 1], al
movsx eax, byte [edx + 1]
and eax, 0x3f
movzx eax, byte [eax + esi]
mov byte [ecx + 2], al
jmp 0x4010cc
mov edi, ebx
dec edi
je 0x4010b8
dec edi
jne 0x4010cf
movsx edi, byte [edx - 1]
movzx eax, byte [edx]
and edi, 3
shr eax, 4
shl edi, 4
or eax, edi
movzx eax, byte [eax + esi]
mov byte [ecx], al
movsx edi, byte [edx]
movzx eax, byte [edx + 1]
and edi, 0xf
add edi, edi
shr eax, 6
add edi, edi
or eax, edi
movzx eax, byte [eax + esi]
mov byte [ecx + 1], al
mov byte [ecx + 2], 0x3d
jmp 0x4010cc
movsx eax, byte [edx - 1]
and eax, 3
add eax, eax
mov al, byte [esi + eax*8]
mov byte [ecx], al
mov word [ecx + 1], 0x3d3d
add ecx, 3
add dword [ebp - 4], 4
sub ebx, 3
add edx, 3
test ebx, ebx
jg 0x401024
mov eax, dword [ebp - 4]
pop edi
pop esi
mov byte [ecx], 0
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ecx], al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov eax, ecx
mov ecx, dword [ebp + 0xc]
push esi
xor ebx, ebx
push edi
cmp ecx, 0x20
jl 0x401599
mov esi, dword [ebp + 8]
mov edx, 1
sub edx, esi
mov dword [ebp + 0xc], edx
mov edx, eax
sub edx, esi
inc edx
mov dword [ebp - 4], edx
mov edx, 2
sub edx, esi
mov dword [ebp - 8], edx
mov edx, eax
sub edx, esi
add edx, 2
mov ecx, eax
mov dword [ebp - 0xc], edx
mov edx, 3
sub ecx, esi
sub edx, esi
sub eax, esi
add eax, 3
mov dword [ebp + 8], ecx
lea edi, [ebx + 1]
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 3
jmp 0x4014c3
mov ecx, dword [ebp + 8]
mov eax, 0x24924925
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
mov dl, al
add dl, dl
add dl, dl
add dl, dl
sub dl, al
mov al, byte [ecx + esi]
sub al, dl
mov ecx, dword [ebp + 0xc]
add ecx, esi
add al, bl
xor byte [esi], al
mov eax, 0x24924925
mul ecx
sub ecx, edx
shr ecx, 1
lea eax, [edx + ecx]
shr eax, 2
mov dl, al
add dl, dl
add dl, dl
add dl, dl
sub dl, al
mov eax, dword [ebp - 4]
mov cl, byte [eax + esi]
sub cl, dl
add cl, bl
inc cl
xor byte [edi + esi], cl
mov ecx, dword [ebp - 8]
add ecx, esi
mov eax, 0x24924925
mul ecx
sub ecx, edx
shr ecx, 1
lea eax, [edx + ecx]
mov edx, dword [ebp - 0xc]
movzx edx, byte [edx + esi]
shr eax, 2
mov cl, al
add cl, cl
add cl, cl
add cl, cl
sub cl, al
mov eax, dword [ebp - 0x10]
sub dl, cl
mov ecx, dword [ebp - 0x14]
add dl, bl
add dl, 2
xor byte [eax + esi], dl
add ecx, esi
mov eax, 0x24924925
mul ecx
sub ecx, edx
shr ecx, 1
lea eax, [edx + ecx]
mov edx, dword [ebp - 0x18]
movzx edx, byte [edx + esi]
shr eax, 2
mov cl, al
add cl, cl
add cl, cl
add cl, cl
sub cl, al
mov eax, dword [ebp - 0x1c]
sub dl, cl
add dl, bl
add dl, 3
xor byte [eax + esi], dl
add ebx, 4
add esi, 4
cmp ebx, 0x20
jl 0x4014c0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
test ecx, ecx
jle 0x4015d2
mov edi, eax
sub edi, dword [ebp + 8]
mov eax, dword [ebp + 8]
lea esi, [ebx + eax]
mov eax, 0x24924925
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
mov dl, al
add dl, dl
add dl, dl
add dl, dl
sub dl, al
mov al, byte [edi + esi]
sub al, dl
add al, bl
xor byte [esi], al
inc ebx
cmp ebx, ecx
jl 0x4015a2
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402390
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x29]
mov dword [ebp - 0xc], edi
jmp 0x4023a3
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x39]
sub ebx, dword [esi + 0x71]
mov eax, dword [esi + 0x69]
mov ecx, dword [esi + 0x29]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x40241d
mov eax, dword [esi + 0x35]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.MSVCR120.dll_memcpy
mov edx, dword [esi + 0x49]
mov eax, dword [esi + 0x41]
sub dword [esi + 0x6d], edi
sub dword [esi + 0x69], edi
add esp, 0xc
sub dword [esi + 0x59], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x4023f1
sub eax, edi
jmp 0x4023f3
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x4023e2
mov ecx, dword [esi + 0x3d]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x402410
sub eax, edi
jmp 0x402412
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x402401
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x4024cf
mov eax, dword [esi + 0x71]
add eax, dword [esi + 0x69]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x35]
mov edx, dword [ebp - 4]
mov ebx, ecx
mov dword [ebp - 8], eax
cmp ebx, edx
jbe 0x402443
mov ebx, edx
test ebx, ebx
je 0x402493
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
mov ecx, dword [edx + 0x18]
cmp ecx, 1
jne 0x402466
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
push eax
push ecx
call fcn.004031c0
jmp 0x402478
cmp ecx, 2
jne 0x402481
mov edx, dword [edi]
mov eax, dword [edi + 0x30]
push ebx
push edx
push eax
call fcn.00405210
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [edi]
push ebx
push ecx
push eax
call sub.MSVCR120.dll_memcpy
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x71], ebx
mov edi, dword [esi + 0x71]
cmp edi, 3
jb 0x4024bb
mov edx, dword [esi + 0x69]
add edx, dword [esi + 0x35]
mov ecx, dword [esi + 0x55]
movzx eax, byte [edx]
mov dword [esi + 0x45], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x51]
mov dword [esi + 0x45], eax
cmp edi, 0x106
jae 0x4024cf
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x4023a0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4055c0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0x4c1e68
push 1
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, 0x4c1e68
pop ebp
ret

Function at 0x4056b0
Capabilities:
Check for time delay via gettickcount
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4c000c]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x248], eax
mov eax, 1
test eax, eax
je 0x405826
mov byte [ebp - 0x232], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0xffffffff
je 0x40578b
mov dword [ebp - 0x230], 0x22c
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x238]
push edx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x40576a
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR120.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40574e
mov byte [ebp - 0x232], 1
jmp 0x40576a
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x23c], eax
jmp 0x405724
mov ecx, dword [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, byte [ebp - 0x232]
test edx, edx
jne 0x405789
mov al, 1
jmp 0x405828
jmp 0x4057af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x48cf38
push 0x7b
push str.....commonCommFunc.cpp
push 2
push 0
push 0x4c2d20
call fcn.0040db60
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x248]
cmp eax, dword [ebp + 0xc]
jbe 0x405819
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x405815
mov ecx, dword [ebp - 0x228]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x244], eax
push 0
mov edx, dword [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
je 0x405806
mov byte [ebp - 0x231], 1
jmp 0x40580d
mov byte [ebp - 0x231], 0
mov al, byte [ebp - 0x231]
jmp 0x405828
xor al, al
jmp 0x405828
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4056cf
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fe23
mov esp, ebp
pop ebp
ret