joyce8/EMBER2024-capa huggingface dataset:
Function at 0x63241f50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x63256ab4]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x160], ecx
mov eax, 1
test eax, eax
je 0x63241f74
jmp 0x63241f81
push 0x6324d858
call fcn.63201050
add esp, 4
mov dword [ebp - 0x14c], 1
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x148]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov ecx, dword [ebp - 0x160]
call fcn.632414c0
movzx eax, al
cmp eax, 1
jne 0x632420cd
mov ecx, dword [ebp - 0x64]
push ecx
lea edx, [ebp - 0x148]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0x160]
call fcn.63240d40
mov dword [ebp - 0x154], eax
push 0x40
push 0x1000
mov edx, dword [ebp - 0x154]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], 0
je 0x632420a5
mov eax, dword [ebp - 0x150]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
lea edx, [ebp - 0x148]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x160]
call fcn.63240e30
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x154]
push eax
mov ecx, dword [ebp - 0x150]
push ecx
mov edx, dword [ebp - 0x64]
push edx
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x60]
push edx
mov ecx, dword [ebp - 0x160]
call fcn.63241b40
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
jne 0x632420a3
mov eax, 1
test eax, eax
je 0x63242088
jmp 0x63242095
push str._ERROR__CDynamic_DoEXE_:_Forking_Fail
call fcn.63201050
add esp, 4
mov dword [ebp - 0x14c], 0
jmp 0x63242118
jmp 0x632420cb
mov ecx, 1
test ecx, ecx
je 0x632420b0
jmp 0x632420bd
push str._ERROR__CDynamic_DoEXE_:_Allocation_failed_n
call fcn.63201050
add esp, 4
mov dword [ebp - 0x14c], 0
jmp 0x63242118
jmp 0x632420f3
mov edx, 1
test edx, edx
je 0x632420d8
jmp 0x632420e5
push str._ERROR__CDynamic_DoEXE_:_ReadPEInfdo_Failed_n
call fcn.63201050
add esp, 4
mov dword [ebp - 0x14c], 0
jmp 0x63242118
cmp dword [ebp - 0x64], 0
je 0x63242118
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x15c]
push ecx
call fcn.63202913
add esp, 4
mov dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.6320fb73
mov esp, ebp
pop ebp
ret 0xc
Function at 0x63242130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x63256ab4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], ecx
mov eax, 1
test eax, eax
je 0x63242154
jmp 0x63242161
push str.ExecuteFile_Start
call fcn.63201050
add esp, 4
mov dword [ebp - 0x220], 1
push 0x6324dc88
push 0x6325d257
push 0x6325d157
push 0x6325d154
push 0x6324dc90
lea ecx, [ebp - 0x110]
push ecx
call fcn.6320fabd
add esp, 0x18
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.63211a10
add esp, 8
mov ecx, 1
test ecx, ecx
je 0x632421b4
jmp 0x632421c8
lea edx, [ebp - 0x110]
push edx
push str.ExecuteXgdNonTextSessionFile_szPath_:__s
call fcn.63201050
add esp, 8
mov eax, 1
test eax, eax
je 0x632421d3
jmp 0x632421e7
lea ecx, [ebp - 0x218]
push ecx
push str.ExecuteXgdNonTextSessionFile_szPathWithCmd_:__s
call fcn.63201050
add esp, 8
mov edx, 1
test edx, edx
je 0x632421f2
jmp 0x6324220c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
sub edx, dword [ecx + 0xc]
push edx
push str._DetachTemp__DetachSize___DetachTemp__PaddingSize_:__d
call fcn.63201050
add esp, 8
push 0x6324dd30
lea eax, [ebp - 0x110]
push eax
call fcn.63210797
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x63242231
jmp 0x632422ae
mov ecx, dword [ebp + 8]
add ecx, 4
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 8]
sub ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x224]
call fcn.63241800
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 8]
sub ecx, dword [eax + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.6321198b
add esp, 0x10
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.63210de5
add esp, 4
mov edx, dword [ebp + 8]
add edx, 4
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
sub edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x224]
call fcn.632416b0
call fcn.63201040
mov edx, dword [eax + 0x48]
push edx
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x224]
call fcn.63241f50
cmp eax, 1
je 0x632422f4
mov edx, 1
test edx, edx
je 0x632422dd
jmp 0x632422ea
push str.ExecuteXgdNonTextSessionFile_FALSE
call fcn.63201050
add esp, 4
mov dword [ebp - 0x220], 0x300
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.6320fb73
mov esp, ebp
pop ebp
ret 4
Function at 0x63242310
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x63256ab4]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x128], 0
push 0x103
push 0
lea eax, [ebp - 0x127]
push eax
call fcn.6320feb0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x6325ce48
push 0x6324e2e4
lea edx, [ebp - 0x128]
push edx
call fcn.6320fabd
add esp, 0x10
mov eax, dword [ebp + 0x10]
push eax
movzx ecx, word [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x632423ce
mov dword [ebp - 0x18], 0
jmp 0x63242454
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x632423fb
mov dword [ebp - 0x18], 0
jmp 0x63242454
push 0
push 0
push 2
push 0
push 3
push 0x1f01ff
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x63242426
cmp dword [ebp - 0x14], 0
jne 0x63242431
mov dword [ebp - 0x18], 0
jmp 0x63242454
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x63242454
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.6320fb73
mov esp, ebp
pop ebp
ret 0xc
Function at 0x63244ef0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63246bc2
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x63256ab4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CLauncherDlg.0
mov dword [ebp - 4], 1
mov ecx, 1
test ecx, ecx
je 0x63244f31
jmp 0x63244f3e
push str.CLauncherDlg__
call fcn.63201050
add esp, 4
mov dword [0x6325d9c0], 0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x42ba00
Capabilities:
Set registry value
Terminate process

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareSprout_GamesFeeding_Frenzy
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42ba3d
push 0
push str.Feeding_Frenzy_Screen_Saver
push str.Screen_saver_not_installed_correctly.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.0045c8d5
mov eax, dword [esp]
mov ecx, dword [esp + 0xc]
push 4
lea edx, [esp + 8]
push edx
push 4
push 0
push str.SaverSelect
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret 4

Function at 0x42bd20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x492106
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
push 0x140
mov edi, ecx
call fcn.0045b631
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x42bd62
push 1
mov ecx, eax
call fcn.0043e200
jmp 0x42bd64
xor eax, eax
mov dword [edi + 0x30], eax
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
lea ecx, [edx + eax + 4]
mov eax, dword [ecx]
mov dword [esp + 0x14], 0xffffffff
call dword [eax]
call fcn.004531d0
mov edx, dword [eax]
push 0x49ecc4
mov ecx, eax
call dword [edx + 0x14]
push 0x108
mov esi, eax
call fcn.0045b631
add esp, 4
mov dword [esp + 8], eax
test eax, eax
mov dword [esp + 0x14], 1
je 0x42bdb9
push 1
push esi
mov ecx, eax
call fcn.00452f90
jmp 0x42bdbb
xor eax, eax
mov ecx, dword [edi + 0x30]
mov edx, dword [ecx]
push eax
mov dword [esp + 0x18], 0xffffffff
call dword [edx + 0xdc]
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40649e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x8c
mov eax, 0x533e32
call fcn.004ca35e
push 4
call fcn.00469a97
pop ecx
mov esi, 0x84
push esi
call fcn.00464877
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
push esi
xor ebx, ebx
lea eax, [ebp - 0x94]
push ebx
push eax
call fcn.00502550
lea eax, [ebp - 0x94]
push eax
call fcn.0046487d
add esp, 0x10
mov dword [ebp - 4], ebx
call fcn.00464a3e
sub eax, 1
je 0x4065e2
sub eax, 1
je 0x4065af
sub eax, 1
je 0x406570
sub eax, 1
jne 0x406604
push str.ZIPRES
push str.IDR_ZIPRES
call fcn.00464a29
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x406604
push esi
call fcn.00464a29
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x406564
push esi
call fcn.00464a29
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x406564
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.00469aa4
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x406604
push str.skin_
lea ecx, [ebp - 0x94]
call fcn.0046187b
lea ecx, [ebp - 0x94]
call fcn.00461823
push eax
call fcn.00469a4e
mov dword [esp], 0x53e908
push ecx
mov eax, esp
mov dword [eax], str.IDR_RES
call fcn.00406410
mov ecx, eax
call fcn.0046282f
jmp 0x406604
push str.skin_
lea ecx, [ebp - 0x94]
call fcn.0046187b
lea ecx, [ebp - 0x94]
call fcn.00461823
push eax
call fcn.00469a4e
push ebx
push 1
push str.skin.zip
call fcn.00469b32
add esp, 0x10
jmp 0x406604
push str...AutoUpgrader_skin_
lea ecx, [ebp - 0x94]
call fcn.0046187b
lea ecx, [ebp - 0x94]
call fcn.00461823
push eax
call fcn.00469a4e
pop ecx
lea ecx, [ebp - 0x94]
call fcn.0046170c
call fcn.004ca308
ret

Function at 0x409227
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x587388]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x4092a9
cmp byte [esi + 0x3d], 0
je 0x4092a9
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40927b
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40927f
sub eax, 1
je 0x409283
dec eax
sub eax, 1
je 0x4092a9
xor al, al
jmp 0x4092ab
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4092a0
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00507f83
add esp, 0x10
cmp edi, eax
jne 0x40927b
cmp byte [esi + 0x3d], 0
sete al
jmp 0x4092ab
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ca2e2
leave
ret
Function at 0x40ba8a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x587388]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x40bab0
xor eax, eax
jmp 0x40bb72
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40bad9
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x40bad9
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x40bb72
cmp dword [esi + 0x4c], 0
je 0x40bb70
mov ecx, esi
call fcn.00409bbc
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x40bb05
push dword [esi + 0x4c]
push eax
call fcn.00406a31
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x40bb70
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x40bb70
cmp eax, 1
jle 0x40bb3f
cmp eax, 3
jne 0x40bb70
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x40baf7
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x40bb62
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.00507f83
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x40bb70
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
mov eax, ebx
jne 0x40bb72
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ca2e2
leave
ret 4
Function at 0x40cb1c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x40cb3e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040cbfa
jmp 0x40cbf5
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x40cb5f
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x40cb61
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x40cbe9
jg 0x40cb74
test esi, esi
je 0x40cbe9
test ecx, ecx
jl 0x40cbb6
jg 0x40cb7e
test eax, eax
je 0x40cbb6
cmp ebx, ecx
jg 0x40cb90
jl 0x40cb88
cmp esi, eax
jae 0x40cb90
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00503c30
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x40cbbc
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x40cbe9
jg 0x40cbc6
test esi, esi
je 0x40cbe9
cmp dword [edi + 0x4c], 0
je 0x40cbe9
mov ecx, edi
call fcn.00409bbc
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.0050790e
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
leave
ret 0xc

Function at 0x40ccc9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40cceb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040cd9d
jmp 0x40cd98
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x40cd0c
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40cd0e
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x40cd8c
jg 0x40cd21
test esi, esi
je 0x40cd8c
test ecx, ecx
jl 0x40cd65
jg 0x40cd2b
test eax, eax
je 0x40cd65
cmp edi, ecx
jg 0x40cd3d
jl 0x40cd35
cmp esi, eax
jae 0x40cd3d
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00503c30
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x40cd68
mov edx, dword [ebp + 8]
test edi, edi
jl 0x40cd8c
jg 0x40cd72
test esi, esi
je 0x40cd8c
cmp dword [ebx + 0x4c], 0
je 0x40cd8c
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.00507f83
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40d584
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp fcn.00471fce
Function at 0x410c0e
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x587388]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x410c98
push 0x228
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.00502550
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x410c8d
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x20c]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x410caf
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x410c63
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 8]
call fcn.00409c65
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ca2e2
leave
ret
push dword [ebp - 0x228]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x410c98
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x410c98

Function at 0x410da2
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1458
call fcn.004ca870
mov eax, dword [0x587388]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf
pop ecx
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x44]
mov esi, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_ndel___s__r_nexit
lea eax, [ebp - 0x24c]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x104
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edi, [ebp - 0x24c]
sub edi, 2
xor ecx, ecx
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x410dea
push 9
pop ecx
mov esi, str.uninstallself.bat
lea eax, [ebp - 0x454]
push 0x104
rep movsd dword es:[edi], dword [esi]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x410e9a
lea eax, [ebp - 0x24c]
push eax
push ebx
push ebx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1454]
push eax
call fcn.0041458b
lea ecx, [ebp - 0x1454]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410e5d
push edi
lea eax, [ebp - 0x1458]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x1454]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push edi
push edi
lea eax, [ebp - 0x24c]
push eax
push 0x540128
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ca2e2
leave
ret
Function at 0x41171d
Capabilities:
Create process on windows

Disassembly:
push 0x878
mov eax, 0x5350a5
call fcn.004ca35e
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x86c], eax
xor ebx, ebx
mov dword [ebp - 0x858], 0x44
push 0x40
lea eax, [ebp - 0x854]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.00502550
xor eax, eax
lea edi, [ebp - 0x868]
mov word [ebp - 0x828], ax
stosd dword es:[edi], eax
push 0x800
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x810]
push eax
call fcn.00502550
push ebx
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x884]
push eax
call fcn.0041240f
mov ecx, dword [ebp - 0x86c]
add esp, 0x24
cmp dword [ecx + 0x14], 8
jb 0x41179d
mov ecx, dword [ecx]
cmp dword [ebp - 0x870], 8
lea eax, [ebp - 0x884]
push ecx
cmovae eax, dword [ebp - 0x884]
push eax
lea eax, [ebp - 0x810]
push str.__pipename_ls__silent__auto_start__install_path___ls_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x884]
call fcn.00409c65
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4117dd
mov eax, dword [esi]
lea ecx, [ebp - 0x868]
push ecx
lea ecx, [ebp - 0x858]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x810]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x411855
push 0x5c
mov edi, str.e:workwork_pro_autoupgrader_autoupgradermainwnd.cpp
push edi
call fcn.00502960
pop ecx
pop ecx
test eax, eax
je 0x411823
push 0x5c
push edi
call fcn.00502960
pop ecx
pop ecx
lea edi, [eax + 1]
cmp dword [esi + 0x14], 8
jb 0x41182b
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x810]
push eax
push esi
push str.CreateProcess_failed__command_line_is__ls__ls__error:__u
push 0x85
push edi
push dword [0x58c85c]
call fcn.00419a18
add esp, 0x1c
jmp 0x41189b
push 0xffffffffffffffff
push dword [ebp - 0x868]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x814]
mov dword [ebp - 0x814], ebx
push eax
push dword [ebp - 0x868]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x868]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x864]
call esi
cmp dword [ebp - 0x814], ebx
sete bl
lea ecx, [ebp + 0x10]
call fcn.00409c3f
mov al, bl
call fcn.004ca308
ret

Function at 0x413741
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x587388]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ecx + 0x900]
xor esi, esi
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0040900a
push 1
push esi
push esi
cmp dword [ebp - 0xc], esi
je 0x413780
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
jmp 0x413785
push str.https:__www.qiyou.cn_
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x1c]
call fcn.00409c3f
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ca2e2
leave
ret