joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ea94
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebx + 0x7c]
push edi
call fcn.0041f03b
mov eax, dword [ebx + 0x7c]
xor esi, esi
push esi
push 0x3025
call fcn.0041f0d9
mov eax, dword [ebx + 0x7c]
push esi
push 0x3023
call fcn.0041f0d9
mov eax, dword [ebx + 0x7c]
push esi
push 0x3024
call fcn.0041f0d9
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x401
push dword [ebx + 4]
call edi
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x7f04
push ebx
call fcn.0042ee4c
push ebx
call fcn.0042ebb5
mov dword [ebx + 0x90], esi
push 0
lea esi, [ebx + 0x88]
push dword [esi]
call fcn.0041df92
test eax, eax
jne 0x42eb7f
mov esi, dword [esi]
add esi, 0x48
lea eax, [ebx + 0x84]
mov byte [esi + 0x19], 0
mov byte [esi + 0x18], 0
mov dword [esi + 0x10], eax
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [esi + 0x1c], eax
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push esi
push 0x4282c9
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xae
lea esi, [ebp - 4]
call fcn.00422de0
pop ecx
mov edi, eax
call fcn.0042f22f
mov dword [ebx + 0x9c], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040464c
push 0
push 0x3e8
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x42ebaf
mov eax, dword [ebx + 0x7c]
mov esi, dword [sym.imp.USER32.dll_GetParent]
mov byte [eax + 0x99], 1
push dword [ebx + 4]
call esi
push 2
push eax
call edi
push dword [ebx + 4]
mov edi, eax
call esi
push edi
push 2
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
xor eax, eax
pop esi
leave
ret

Function at 0x42fe2b
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x457090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
push ebx
push edi
mov edi, ecx
jne 0x42fe69
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x210]
push eax
push esi
call fcn.00404535
mov eax, dword [0x459100]
mov ecx, 0x459100
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x214], eax
mov eax, edi
lea edi, [ebp - 0x214]
call fcn.004088e1
lea eax, [ebp - 0x218]
xor ecx, ecx
push eax
inc ecx
mov eax, esi
call fcn.004106dc
mov edi, 0x44a8d0
push edi
push eax
call fcn.0040904e
test eax, eax
mov eax, dword [ebp - 0x218]
setne bl
add eax, 0xfffffff0
call fcn.0040464c
test bl, bl
je 0x42fec7
push edi
push esi
call fcn.00402105
push str.AI_WSP_
push esi
call fcn.00402105
mov edi, dword [ebp - 0x214]
push dword [edi - 0xc]
mov eax, esi
push edi
call fcn.004022eb
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [edi - 0x10]
call fcn.0040464c
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004313fb
leave
ret
Function at 0x430236
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x457090]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
mov edi, edx
push dword [edi]
mov esi, ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43026c
mov ecx, 0x459100
call fcn.00404631
jmp 0x4302f4
mov edi, dword [edi]
push 0x4538f4
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.0043544f
add esp, 0xc
mov ecx, 0x459100
test eax, eax
jne 0x430262
mov eax, dword [0x459100]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5c], eax
jmp 0x4302bb
push dword [ebp - 0x58]
lea eax, [ebp - 0x54]
push 0x64
push eax
call fcn.004354d6
add esp, 0xc
test eax, eax
je 0x4302c8
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00402105
push dword [ebp - 0x58]
call fcn.004354a2
pop ecx
test eax, eax
je 0x430299
push ebx
push dword [ebp - 0x58]
call fcn.0043560e
pop ecx
lea ebx, [ebp - 0x5c]
call fcn.00409074
mov edi, dword [ebp - 0x5c]
add edi, 0xfffffff0
mov eax, edi
call fcn.00409c66
add eax, 0x10
mov dword [esi], eax
mov eax, edi
call fcn.0040464c
pop ebx
mov ecx, dword [ebp + 0x74]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004313fb
add ebp, 0x78
leave
ret

Function at 0x430307
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x459100]
push ebx
push esi
push edi
mov edi, 0x459100
mov ecx, edi
call dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
add eax, 0x10
lea esi, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.0042fe2b
mov ebx, dword [ebp - 8]
cmp dword [ebx - 0xc], 0
jne 0x430351
mov esi, dword [ebp + 8]
mov ecx, edi
call fcn.00404631
lea eax, [ebx - 0x10]
call fcn.0040464c
mov eax, esi
jmp 0x4303ec
lea esi, [ebp - 4]
call fcn.004303f1
mov eax, dword [ebp - 4]
cmp dword [eax - 0xc], 0
jne 0x430379
mov esi, dword [ebp + 8]
mov ecx, edi
call fcn.00404631
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040464c
jmp 0x430342
push str.__o_enumsolutions
lea eax, [ebp - 4]
push eax
call fcn.00402105
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
call fcn.004088e1
push 0x44a8d0
push edi
call fcn.00402105
push str.Solutions.list
push edi
call fcn.00402105
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4303bc
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
mov esi, dword [ebp - 4]
push esi
call fcn.00422631
pop ecx
add ebx, 0xfffffff0
pop ecx
mov eax, ebx
call fcn.00409c66
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
call fcn.0040464c
mov eax, ebx
call fcn.0040464c
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4305f2
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push str.SOFTWAREMicrosoftShared_ToolsWeb_Server_Extensions_
lea eax, [ebp - 4]
call fcn.00404558
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.004022eb
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push 0x20019
xor esi, esi
push esi
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x430653
mov esi, dword [ebp + 8]
mov ecx, 0x459100
call fcn.00404631
lea eax, [edi - 0x10]
call fcn.0040464c
mov eax, esi
jmp 0x43073c
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push str.Location
push dword [ebp - 0x10]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
mov eax, dword [0x459100]
mov ebx, 0x459100
mov ecx, ebx
call dword [eax + 0xc]
mov edi, eax
add edi, 0x10
cmp dword [ebp - 0xc], 0xea
mov dword [ebp + 0xc], edi
jne 0x4306ce
push dword [ebp - 8]
lea esi, [ebp + 0xc]
call fcn.00404492
lea eax, [ebp - 8]
push eax
call fcn.00402073
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.Location
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
or eax, 0xffffffff
call fcn.00409c48
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp dword [ebp - 0xc], esi
jne 0x43071c
cmp dword [edi - 0xc], esi
je 0x43071c
push str.BINSTSADM.EXE
lea eax, [ebp + 0xc]
push eax
call fcn.00402105
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43071c
lea esi, [edi - 0x10]
mov eax, esi
call fcn.00409c66
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.0040464c
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040464c
mov eax, edi
jmp 0x43073b
mov esi, dword [ebp + 8]
mov ecx, ebx
call fcn.00404631
lea eax, [edi - 0x10]
call fcn.0040464c
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040464c
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret

Function at 0x430740
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [eax]
push esi
push edi
sub eax, 0x10
mov esi, ecx
call fcn.00409c66
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.004022eb
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43078a
add edi, 0xfffffff0
mov eax, edi
call fcn.00409c66
add eax, 0x10
mov dword [esi], eax
mov eax, edi
jmp 0x430797
mov ecx, 0x459100
call fcn.00404631
lea eax, [edi - 0x10]
call fcn.0040464c
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x4308e7
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x4308fd
xor al, al
jmp 0x43096a
push ebx
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
lea esi, [eax + eax]
lea eax, [esi + 2]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [edi], ebx
test ebx, ebx
je 0x430932
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
test eax, eax
jne 0x430936
xor al, al
jmp 0x430968
mov ecx, dword [ebp + 8]
push esi
push dword [ecx]
push eax
call fcn.00432640
mov ecx, dword [ebp - 4]
add esp, 0xc
xor eax, eax
push ebx
mov word [esi + ecx], ax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [edi]
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, 1
pop esi
pop ebx
leave
ret 4

Function at 0x4311b4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x45917c], 0
push esi
jne 0x431127
call fcn.0043104d
test eax, eax
je 0x43116a
mov eax, dword [0x45917c]
cmp eax, 1
jne 0x431148
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x43116a
pop esi
ret
push eax
call dword [0x459184]
test eax, eax
jne 0x4311b2
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x43116e
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x45917c]
call dword [0x459184]
mov edi, eax
test edi, edi
je 0x431193
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4311af
mov edi, esi
add esi, 0xff0
push edi
push dword [0x45917c]
call dword [0x459180]
add edi, 0x10
cmp edi, esi
jb 0x43119b
mov eax, edi
pop edi
pop esi
ret
jmp 0x431114

Function at 0x4313fb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x457090]
jne 0x431405
repz ret
jmp fcn.004359ac
Function at 0x43ff2d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00436217
and dword [ebp - 4], 0
cmp dword [0x459c4c], 0
mov ebx, eax
jne 0x43ffde
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44008f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x44008f
push eax
call fcn.004361a5
mov dword [esp], 0x449100
push edi
mov dword [0x459c4c], eax
call esi
push eax
call fcn.004361a5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x459c50], eax
call esi
push eax
call fcn.004361a5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x459c54], eax
call esi
push eax
call fcn.004361a5
pop ecx
mov dword [0x459c5c], eax
test eax, eax
je 0x43ffde
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004361a5
pop ecx
mov dword [0x459c58], eax
mov eax, dword [0x459c58]
cmp eax, ebx
je 0x440036
cmp dword [0x459c5c], ebx
je 0x440036
push eax
call fcn.00436220
push dword [0x459c5c]
mov esi, eax
call fcn.00436220
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x440036
test edi, edi
je 0x440036
call esi
test eax, eax
je 0x44002d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44002d
test byte [ebp - 0xc], 1
jne 0x440036
or dword [ebp + 0x10], 0x200000
jmp 0x44006f
mov eax, dword [0x459c50]
cmp eax, ebx
je 0x44006f
push eax
call fcn.00436220
pop ecx
test eax, eax
je 0x44006f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44006f
mov eax, dword [0x459c54]
cmp eax, ebx
je 0x44006f
push eax
call fcn.00436220
pop ecx
test eax, eax
je 0x44006f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x459c4c]
call fcn.00436220
pop ecx
test eax, eax
je 0x44008f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x440091
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xbd4058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00bd41a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xbd407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbd406a
add dl, dl
jne 0xbd4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbd40dc
xor eax, eax
add dl, dl
jne 0xbd4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbd417d
add dl, dl
jne 0xbd40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbd40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbd40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbd40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xbd40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xbd4075
mov eax, 1
add dl, dl
jne 0xbd40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbd40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbd40e1
sub eax, ebx
mov ebx, 1
jne 0xbd4128
mov ecx, 1
add dl, dl
jne 0xbd410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbd4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbd4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbd4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xbd413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbd414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbd4136
cmp eax, 0x7d00
jae 0xbd416d
cmp eax, 0x500
jb 0xbd4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbd4075
cmp eax, 0x7f
ja 0xbd4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbd4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xbd419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xbd4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401950
Capabilities:
Parse pe header

Disassembly:
movzx eax, byte [esp + 4]
add eax, 0xffffffe0
cmp eax, 0x5e
ja case.default.0x401961
jmp dword [eax*4 + 0x401a88]
mov al, 1
ret
mov al, 2
ret
mov al, 3
ret
mov al, 4
ret
mov al, 5
ret
mov al, 6
ret
mov al, 7
ret
mov al, 8
ret
mov al, 9
ret
mov al, 0xa
ret
mov al, 0xb
ret
mov al, 0xc
ret
mov al, 0xd
ret
mov al, 0xe
ret
mov al, 0xf
ret
mov al, 0x10
ret
mov al, 0x11
ret
mov al, 0x12
ret
mov al, 0x13
ret
mov al, 0x14
ret
mov al, 0x15
ret
mov al, 0x16
ret
mov al, 0x17
ret
mov al, 0x18
ret
mov al, 0x19
ret
mov al, 0x1a
ret
mov al, 0x1b
ret
mov al, 0x1c
ret
mov al, 0x1d
ret
mov al, 0x1e
ret
mov al, 0x1f
ret
mov al, 0x20
ret
mov al, 0x21
ret
mov al, 0x22
ret
mov al, 0x23
ret
mov al, 0x24
ret
mov al, 0x25
ret
mov al, 0x26
ret
mov al, 0x27
ret
mov al, 0x28
ret
mov al, 0x29
ret
mov al, 0x2a
ret
mov al, 0x2b
ret
mov al, 0x2c
ret
mov al, 0x2d
ret
mov al, 0x2e
ret
mov al, 0x2f
ret
mov al, 0x30
ret
mov al, 0x31
ret
mov al, 0x32
ret
mov al, 0x33
ret
mov al, 0x34
ret
mov al, 0x35
ret
mov al, 0x36
ret
mov al, 0x37
ret
mov al, 0x38
ret
mov al, 0x39
ret
mov al, 0x3a
ret
mov al, 0x3b
ret
mov al, 0x3c
ret
mov al, 0x3d
ret
mov al, 0x3e
ret
mov al, 0x3f
ret
mov al, 0x40
ret
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, 0x5b
ret
mov al, 0x5c
ret
mov al, 0x5d
ret
mov al, 0x5e
ret
mov al, 0x5f
ret
xor al, al
ret

Function at 0x401d50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 0x18]
push edx
push eax
push eax
push 0x4000000
push eax
push eax
push eax
mov dword [esp + 0x30], eax
mov word [esp + 0x64], ax
mov eax, dword [esp + 0x7c]
push eax
push 0
mov dword [esp + 0x68], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
setne al
pop edi
add esp, 0x54
ret
Function at 0x401e70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x15c
mov eax, dword [0x4151a8]
mov dword [esp + 0x158], eax
xor eax, eax
mov dword [esp], eax
push edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
push str.G_OWG
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], 0x411b79
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x44], 1
mov word [esp + 0x48], ax
call fcn.00401c10
add esp, 4
push eax
push str.P__
call fcn.00401c10
mov ecx, dword [esp + 0x16c]
add esp, 4
push eax
push ecx
push 0x411b8c
call fcn.00401c10
add esp, 4
push eax
lea edx, [esp + 0x68]
push str._s___s____s___s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0x4008
push 1
push 0
push 0
lea edx, [esp + 0x78]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x15c]
mov eax, 1
pop edi
call fcn.004088de
add esp, 0x15c
ret

Function at 0x401f40
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0xc]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401f60
sub eax, edx
inc eax
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
nop
mov cl, byte [esi]
inc esi
mov byte [eax], cl
inc eax
test cl, cl
jne 0x401f80
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
pop edi
pop esi
jmp dword [sym.imp.USER32.dll_CloseClipboard]

Function at 0x402250
Capabilities:
Modify service
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push edi
push 0xf003f
push 0
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x4022bf
mov eax, dword [esp + 0x2c]
push esi
push 0xf003f
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x4022be
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
call ebp
cmp eax, 1
jne 0x4022be
mov bl, al
pop esi
push edi
call ebp
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1c
ret
Function at 0x4022d0
Capabilities:
Delete file
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x4151a8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call edi
mov ebx, dword [esp + 0x24]
push 0x80
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call ebp
mov esi, eax
test esi, esi
je 0x402349
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push ebx
call ebp
mov ebx, eax
test ebx, ebx
jne 0x40235c
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 8]
call fcn.004088de
add esp, 0xc
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esp + 0x14], eax
call fcn.0040757a
mov ecx, dword [esp + 0x14]
add esp, 4
push 0
mov ebp, eax
lea eax, [esp + 0x18]
push eax
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
mov ecx, dword [esp + 0x20]
push 7
push ecx
call edi
mov edx, dword [esp + 0x24]
push 7
push edx
call edi
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
call fcn.004088de
add esp, 0xc
ret

Function at 0x4023d0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x518
mov eax, dword [0x4151a8]
push esi
mov dword [esp + 0x518], eax
push 0x104
lea eax, [esp + 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push eax
call esi
mov ecx, dword [esp + 0x524]
mov edx, dword [esp + 0x520]
push ecx
push edx
push 0x411bc8
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.004088ec
add esp, 0x14
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esp + eax + 0x108]
mov byte [esp + eax + 0x20c], cl
inc eax
test cl, cl
jne 0x402430
lea ecx, [esp + 0x20c]
push ecx
call dword [0x416080]
push 0x104
lea edx, [esp + 0x314]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x104
lea eax, [esp + 0x418]
push eax
push 0
call esi
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
pop esi
je 0x4024d3
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4024ac
push 0x80
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp]
push edx
lea eax, [esp + 0x108]
push eax
call fcn.004022d0
add esp, 8
mov ecx, dword [esp + 0x514]
call fcn.004088de
add esp, 0x518
ret
mov ecx, dword [esp + 0x514]
xor al, al
call fcn.004088de
add esp, 0x518
ret
Function at 0x4024f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4151a8]
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40261a
mov eax, dword [esp + 4]
cmp eax, 4
jne 0x4025a2
mov eax, dword [esp + 8]
test eax, eax
jne 0x40256a
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x40254b
mov al, al
mov ecx, dword [esp + 0x94]
call fcn.004088de
add esp, 0x98
ret
cmp eax, 2
setne al
dec al
and al, 3
dec al
mov ecx, dword [esp + 0x94]
call fcn.004088de
add esp, 0x98
ret
cmp eax, 0xa
jne 0x402584
mov al, 3
mov ecx, dword [esp + 0x94]
call fcn.004088de
add esp, 0x98
ret
cmp eax, 0x5a
jne 0x40261a
mov al, 4
mov ecx, dword [esp + 0x94]
call fcn.004088de
add esp, 0x98
ret
cmp eax, 5
jne 0x4025f8
mov eax, dword [esp + 8]
test eax, eax
jne 0x4025c4
mov al, 5
mov ecx, dword [esp + 0x94]
call fcn.004088de
add esp, 0x98
ret
cmp eax, 1
jne 0x4025de
mov al, 6
mov ecx, dword [esp + 0x94]
call fcn.004088de
add esp, 0x98
ret
cmp eax, 2
jne 0x40261a
mov al, 7
mov ecx, dword [esp + 0x94]
call fcn.004088de
add esp, 0x98
ret
cmp eax, 6
jne 0x40261a
mov eax, dword [esp + 8]
test eax, eax
jne 0x40261a
mov al, 8
mov ecx, dword [esp + 0x94]
call fcn.004088de
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
or al, 0xff
call fcn.004088de
add esp, 0x98
ret