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

Disassembly:
push 0xffffffffffffffff
push 0x6513c3
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.00642017
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.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.00647790
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00648d2b
test eax, eax
je 0x5f7f8c
mov ecx, dword [esp + 0x3c]
call fcn.006477bd
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 0x5f7f50
push edi
mov ecx, esi
call fcn.00644d7e
mov ecx, esi
call fcn.005f80f0
cmp dword [esp + 0x38], 1
jne 0x5f7f85
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.00644ee8
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 0x5fa9c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x5fa9f3
push esi
call fcn.005fdab0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x5fa9ec
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 0x5faa79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5faa62
mov eax, dword [esi + 8]
test eax, eax
je 0x5faa17
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 0x5faa5e
cmp eax, 2
je 0x5faa62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5faa0a
cmp eax, 3
je 0x5faa3d
cmp eax, 1
jne 0x5faa0a
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 0x5faa0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x5faa0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.005faaa0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x5faa88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.005faaa0
add esp, 4
pop esi
ret

Function at 0x605d70
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x605dd6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x605dd6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x605db7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x606160
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x606198
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x606e10
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x606e59
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x6072d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6518c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00606e80
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00606f00
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00606f00
lea ecx, [esi + 0xc]
call fcn.0064097e
lea ecx, [esi + 0x10]
call fcn.0064097e
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00608490
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00608490
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00608490
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.006409f3
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.006409f3
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x609540
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x6095e3
test eax, eax
jbe 0x6095e3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x6095e3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x60958e
xor esi, esi
jmp 0x609594
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x6095bf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.005b9560
add esi, eax
push esi
mov ebx, esi
call fcn.005b9560
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x6095a0
pop ebp
test edi, edi
pop edi
jne 0x6095e3
test ebx, ebx
je 0x6095e3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00630340
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x609725
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x60983d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x60983d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00642469
mov esi, eax
test esi, esi
je 0x60983d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x60983d
mov ecx, esi
call fcn.00609690
cmp edi, eax
jge 0x60983d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x6097c3
mov dword [esp + 0x34], 1
jmp 0x60981e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x60983d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00608bf0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x611810
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x77f698
push 0x631464
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.0062f900
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x6119c0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x611a01
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x611a6e
cmp dword [esp + 0x1c], 2
jne 0x611a6e
cmp dword [esp + 0x10], 5
jne 0x611a6e
cmp dword [esp + 0x14], 1
jne 0x611a6e
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x611a58
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x611a49
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x611a51
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x611a6e
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret
Function at 0x612600
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2820
call fcn.00630220
mov eax, dword [esp + 0x2824]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x20]
push str..PhysicalDrive_d
push ecx
call fcn.0063127d
add esp, 0xc
lea edx, [esp + 0x1c]
push 0
push 0
push 3
push 0
push 3
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x6127ad
xor eax, eax
mov ecx, 0x9c4
mov dword [esp + 0x10], eax
lea edi, [esp + 0x11c]
mov dword [esp + 0x14], eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x2710
push edx
lea eax, [esp + 0x20]
push 0xc
push eax
push 0x2d1400
push esi
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x6127ad
mov ecx, dword [esp + 0x283c]
mov edx, dword [esp + 0x128]
push ecx
push 0
lea eax, [esp + 0x124]
push edx
push eax
call fcn.006127c0
mov ecx, dword [esp + 0x2848]
mov edx, dword [esp + 0x13c]
push ecx
push 0
lea eax, [esp + 0x134]
push edx
push eax
call fcn.006127c0
mov ecx, dword [esp + 0x2860]
mov edx, dword [esp + 0x150]
push ecx
push 0
lea eax, [esp + 0x144]
push edx
push eax
call fcn.006127c0
mov ecx, dword [esp + 0x2864]
mov edx, dword [esp + 0x164]
push ecx
push 1
lea eax, [esp + 0x154]
push edx
push eax
call fcn.006127c0
mov ecx, dword [esp + 0x2884]
add esp, 0x40
xor eax, eax
lea edi, [esp + 0x11c]
mov dword [ecx], 1
mov ecx, 0x9c4
lea edx, [esp + 0xc]
push eax
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x124]
push 0x2710
push eax
push 0
push 0
push 0x700a0
push esi
call ebx
test eax, eax
je 0x6127ad
mov edi, dword [esp + 0x124]
mov edx, dword [esp + 0x2848]
mov eax, dword [esp + 0x284c]
xor ecx, ecx
cmp edi, 0xc
push esi
setne cl
inc ecx
mov dword [edx], ecx
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2820
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2820
ret

Function at 0x642e0d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x642e45
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.00640e9a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00640e72
jmp 0x642e51
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x644504
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 0x644546
call fcn.0064a4e8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x644546
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x64453d
xor eax, eax
jmp 0x64454e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00644554
pop edi
pop esi
pop ebx
ret 4

Function at 0x64aa18
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 0x64aa46
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x64aa64
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0064a97e
jmp 0x64aa64
mov eax, dword [esi + 0x14]
test eax, eax
je 0x64aa64
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0064a97e
test edi, edi
mov eax, edi
jne 0x64aa4e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
push str.ntdll.dll
call esi
push str.kernel32.dll
mov edi, eax
call esi
mov ebx, eax
test ebx, ebx
je 0x401128
test edi, edi
je 0x401128
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetContextThread
push edi
call esi
push str.NtAllocateVirtualMemory
push edi
mov dword [0x403374], eax
call esi
push str.NtTerminateProcess
push edi
mov dword [0x403380], eax
call esi
push str.NtWriteVirtualMemory
push edi
mov dword [0x40338c], eax
call esi
push str.NtGetContextThread
push edi
mov dword [0x403384], eax
call esi
push str.RtlMoveMemory
push edi
mov dword [0x403370], eax
call esi
push str.NtReadVirtualMemory
push edi
mov dword [0x403368], eax
call esi
push str.RtlZeroMemory
push edi
mov dword [0x403378], eax
call esi
push str.NtUnmapViewOfSection
push edi
mov dword [0x40336c], eax
call esi
push str.NtResumeThread
push edi
mov dword [0x40337c], eax
call esi
push str.LockResource
push ebx
mov dword [0x403388], eax
call esi
push str.GetCommandLineW
push ebx
mov dword [0x403358], eax
call esi
push 0x40216c
push ebx
mov dword [0x403344], eax
call esi
push str.CreateProcessInternalW
push ebx
mov dword [0x40334c], eax
call esi
push str.lstrlenW
push ebx
mov dword [0x403364], eax
call esi
push str.SizeofResource
push ebx
mov dword [0x403348], eax
call esi
push str.GetModuleFileNameW
push ebx
mov dword [0x403354], eax
call esi
push str.LoadResource
push ebx
mov dword [0x403360], eax
call esi
push str.FreeResource
push ebx
mov dword [0x403350], eax
call esi
mov dword [0x40335c], eax
pop edi
pop esi
pop ebx
ret
Function at 0x401130
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dx, word [0x4021f8]
mov ecx, dword [0x4021f4]
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0xc]
mov word [ebp - 8], dx
mov dword [ebp - 0xc], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401166
push ebx
push esi
sub eax, edx
push edi
mov edi, eax
xor eax, eax
jmp 0x401180
mov byte [ebp + eax - 0x10c], al
inc eax
cmp eax, 0x100
jb 0x401180
xor ecx, ecx
xor esi, esi
xor edx, edx
mov eax, ecx
div edi
movzx ebx, byte [ebp + ecx - 0x10c]
inc ecx
movzx eax, byte [ebp + edx - 0xc]
add eax, ebx
add esi, eax
and esi, 0xff
mov dl, byte [ebp + esi - 0x10c]
mov byte [ebp + ecx - 0x10d], dl
mov byte [ebp + esi - 0x10c], bl
cmp ecx, 0x100
jb 0x401193
mov edx, dword [ebp + 0xc]
xor eax, eax
xor edi, edi
xor esi, esi
test edx, edx
je 0x401250
jmp 0x4011e0
inc esi
and esi, 0xff
movzx ecx, byte [ebp + esi - 0x10c]
add edi, ecx
and edi, 0xff
movzx ebx, byte [ebp + edi - 0x10c]
mov byte [ebp + esi - 0x10c], bl
mov byte [ebp + edi - 0x10c], cl
movzx ebx, byte [ebp + esi - 0x10c]
add ebx, ecx
and ebx, 0x800000ff
jns 0x401227
dec ebx
or ebx, 0xffffff00
inc ebx
movzx ebx, byte [ebp + ebx - 0x10c]
mov ecx, dword [ebp - 0x110]
xor byte [ecx + eax], bl
inc eax
cmp eax, edx
jb 0x4011e0
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004017a3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x110]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004017a3
mov esp, ebp
pop ebp
ret
Function at 0x401570
Capabilities:
Check if file exists
Get common file path
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str._svchost.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x104
lea ecx, [ebp - 0x310]
push ecx
push 0
mov byte [ebp - 0x105], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401656
push 0
lea edx, [ebp - 0x310]
push edx
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x401656
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0x20
jne 0x401656
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x401656
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test eax, eax
je 0x401656
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jle 0x401656
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
je 0x401656
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004017a3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
call fcn.004017a3
mov esp, ebp
pop ebp
ret
Function at 0x401670
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00401940
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00401570
cmp al, 1
jne 0x4016a0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004017a3
mov esp, ebp
pop ebp
ret
push esi
push edi
push str.CsrGetProcessId
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
call esi
test eax, eax
je 0x401797
call esi
cmp eax, 0x3e8
jae 0x401797
call fcn.00401000
call dword [0x403344]
mov esi, eax
push esi
call dword [0x403348]
xor edx, edx
xor edi, edi
cmp word [esi], 0x22
jne 0x401708
lea ecx, [edx + 1]
cmp eax, ecx
jbe 0x401708
cmp word [esi + ecx*2], 0x22
je 0x401705
inc ecx
cmp ecx, eax
jb 0x4016f7
jmp 0x401708
lea edx, [ecx + 1]
mov ecx, edx
cmp edx, eax
jae 0x401720
mov edi, edi
cmp word [esi + ecx*2], 0x20
je 0x40171e
inc ecx
cmp ecx, eax
jb 0x401710
jmp 0x401720
mov edi, ecx
lea eax, [eax + eax + 2]
push eax
lea ecx, [esi + edi*2]
push ecx
lea edx, [ebp - 0x1004]
push edx
call dword [0x403368]
push 0x4021e4
push 0x309
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push 0
call dword [0x403350]
push edi
push 0
mov esi, eax
call dword [0x403354]
push esi
mov edi, eax
call dword [0x403358]
push esi
call dword [0x40335c]
push edi
push esi
call fcn.00401130
add esp, 8
lea ecx, [ebp - 0x1004]
mov esi, eax
call fcn.00401270
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004017a3
mov esp, ebp
pop ebp
ret
push 0xffff0000
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4017a3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4017ad
repz ret
jmp fcn.004017b2
Function at 0x401442
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push esi
mov esi, 0x407a74
push edi
push esi
call dword [sym.imp.MSVCRT.dll_time]
mov edi, dword [sym.imp.MSVCRT.dll_localtime]
push esi
call edi
push eax
call fcn.0040107b
add esp, 0xc
test eax, eax
jne 0x40151a
push esi
call edi
pop ecx
mov esi, eax
push 9
mov eax, 0x407a78
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
push 0x11
mov dword [0x407fd8], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
xor esi, esi
cmp dword [ebp + 8], esi
rep stosd dword es:[edi], eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x48], 0x4060d0
je 0x4014b0
push str._auto__scheduled
jmp 0x4014b5
push str._auto
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
lea eax, [ebp - 0x10]
pop ecx
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0xd4]
mov esi, 0x407a9c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40150f
push esi
mov esi, 0x407e9c
push str.Started_UpdateChecker_process_Successfully:_s_n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
call fcn.00402051
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40151a
push str.Failed_to_start_UpdateChecker_Process_n
call fcn.00402051
pop ecx
pop edi
pop esi
leave
ret
Function at 0x402051
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
lea eax, [ebp - 4]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_time]
pop ecx
lea eax, [ebp - 4]
push dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
push eax
call dword [sym.imp.MSVCRT.dll_asctime]
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x808]
push str._s::__s_n
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x408]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x408]
push str.jusched.log
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor esi, esi
lea eax, [ebp - 0x408]
push esi
push 0x80
push 4
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402114
push edi
push 2
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push esi
push eax
lea edi, [ebp - 0x808]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp - 0x808]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret