joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9bad20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x9bad58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x9bad60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x9bad94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x9bad94
push eax
push esi
call fcn.009bd20b
add esp, 8
pop esi
ret 0x10

Function at 0x9bada0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x9bae22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x9bae15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x9d3320
push ecx
mov dword [esp + 0x1c], 4
call fcn.009bcdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x9badda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x9bae30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x9baec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x9baeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x9d3320
push ecx
mov dword [esp + 0x1c], 4
call fcn.009bcdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x9baeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x9bae6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x9bb000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x9bb131
push esi
call fcn.009be145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.009ad080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x9bb131
push 0
push ebp
call fcn.009ad3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.009ad260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x9bb08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.009ad2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x9bb121
push 0x9d3918
push edi
call fcn.009bc3f0
push eax
push ebx
push esi
call fcn.009baf60
push 0x9d38f8
push edi
call fcn.009bc3f0
push eax
push ebx
push esi
call fcn.009baf60
push 0x9d38d8
push edi
call fcn.009bc3f0
push eax
push ebx
push esi
call fcn.009baf60
push 0x9d38c0
push edi
call fcn.009bc3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.009baf60
push 0x9d38a0
push edi
call fcn.009bc3f0
push eax
push ebx
push esi
call fcn.009baf60
push 0x9d3888
push edi
call fcn.009bc3f0
push eax
push ebx
push esi
call fcn.009baf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x9bc1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.009bc140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.009bc140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.009bc140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.009bc140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x9bcbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x9bcc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x9ce87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x9bcc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x9bcc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x10003920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10003939
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10003974
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10003970
lea ebx, [ebx]
cmp esi, eax
jae 0x10003974
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10003960
cmp esi, eax
jb 0x1000397a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x100042c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x10049b4c]
test eax, eax
jne 0x100042d0
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x100398c0
push eax
call fcn.10003ac0
add esp, 8
call eax
xor eax, eax
ret

Function at 0x100044a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.1000921c
Function at 0x10009c19
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x10009c61
call fcn.10011793
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x10009c61
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x10009ca4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x10009c8d
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x10009c8d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x10009ca1
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1000fba9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x1000fbf0
call fcn.10011793
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1000fbf0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x1000fc0c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1000f723
mov esi, eax
test edi, edi
je 0x1000fc0a
test ebx, ebx
je 0x1000fc0a
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100103a4
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x10037078
call fcn.100236ba
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x100103c9
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x1001040f
lea ecx, [ebp - 0x10]
call fcn.10005bc0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000fc13
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.100011c0
mov eax, esi
call fcn.10023792
ret 8
Function at 0x10022808
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100486bc]
jne 0x10022812
repz ret
jmp fcn.10029c7f

Function at 0x10031e2f
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.1002abb3
and dword [ebp - 4], 0
cmp dword [0x1004c420], 0
mov ebx, eax
jne 0x10031ee0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10031f91
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1003df00
push edi
call esi
test eax, eax
je 0x10031f91
push eax
call fcn.1002ab41
mov dword [esp], 0x1003def0
push edi
mov dword [0x1004c420], eax
call esi
push eax
call fcn.1002ab41
mov dword [esp], 0x1003dedc
push edi
mov dword [0x1004c424], eax
call esi
push eax
call fcn.1002ab41
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1004c428], eax
call esi
push eax
call fcn.1002ab41
pop ecx
mov dword [0x1004c430], eax
test eax, eax
je 0x10031ee0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1002ab41
pop ecx
mov dword [0x1004c42c], eax
mov eax, dword [0x1004c42c]
cmp eax, ebx
je 0x10031f38
cmp dword [0x1004c430], ebx
je 0x10031f38
push eax
call fcn.1002abbc
push dword [0x1004c430]
mov esi, eax
call fcn.1002abbc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10031f38
test edi, edi
je 0x10031f38
call esi
test eax, eax
je 0x10031f2f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10031f2f
test byte [ebp - 0xc], 1
jne 0x10031f38
or dword [ebp + 0x10], 0x200000
jmp 0x10031f71
mov eax, dword [0x1004c424]
cmp eax, ebx
je 0x10031f71
push eax
call fcn.1002abbc
pop ecx
test eax, eax
je 0x10031f71
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10031f71
mov eax, dword [0x1004c428]
cmp eax, ebx
je 0x10031f71
push eax
call fcn.1002abbc
pop ecx
test eax, eax
je 0x10031f71
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1004c420]
call fcn.1002abbc
pop ecx
test eax, eax
je 0x10031f91
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10031f93
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40107a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.00401bcb
test al, al
je 0x4010d2
push esi
push edi
push 6
mov esi, 0x40505c
pop ecx
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
push str.KERNEL32.DLL
movsb byte es:[edi], byte [esi]
call fcn.00402eed
mov esi, eax
xor eax, eax
xor byte [ebp + eax - 0x1c], 0x4f
inc eax
cmp eax, 0x16
jl 0x4010a7
lea eax, [ebp - 0x1c]
push eax
push esi
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x4010c6
push 1
push 0
call eax
push esi
call fcn.00402ea8
pop edi
xor eax, eax
pop esi
leave
ret
xor eax, eax
leave
ret

Function at 0x4010d6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push 0xd
mov esi, 0x405078
pop ecx
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
mov dword [ebp - 8], 2
xor eax, eax
xor byte [ebp + eax - 0x40], 0x4f
inc eax
cmp eax, 0x36
jl 0x4010f9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
lea eax, [ebp - 0x40]
push esi
push eax
push 0x80000002
call fcn.00402cdc
test eax, eax
jne 0x40114d
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
push 1
push esi
push dword [0x405334]
push dword [ebp - 4]
call fcn.00402d21
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x4013d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x964
push ebx
push esi
push edi
mov esi, str._s_system32sA
lea edi, [ebp - 0x10]
lea eax, [ebp - 0x164]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x78
push eax
movsd dword es:[edi], dword [esi]
call fcn.00402ed6
lea eax, [ebp - 0x164]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
inc byte [ebp - 0x10]
sub dword [ebp - 4], 0x410001
push 0x405110
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x564]
push eax
call esi
lea eax, [ebp - 0x164]
push str.vckbpa.dat
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x964]
push eax
call esi
mov ebx, 0x405d98
lea eax, [ebp - 0x564]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 0x28
mov edi, 0x405998
test eax, eax
je 0x401552
lea eax, [ebp - 0x564]
push 0x80
push eax
call sub.KERNEL32.dll_SetFileAttributesA
lea eax, [ebp - 0x564]
push 0
push eax
push ebx
call fcn.00402e7a
test eax, eax
je 0x401552
lea eax, [ebp - 0x964]
push eax
call fcn.00401b9e
pop ecx
lea eax, [ebp - 0x564]
mov ecx, dword [0x4068e4]
push eax
call fcn.00402905
push 1
push 0xff
push 0x406298
call fcn.00401afe
pop ecx
pop ecx
mov ecx, dword [0x4068e4]
push eax
push 0x405100
call fcn.00402980
push 1
push 0x21
push 0x4067dc
call fcn.00401b6a
pop ecx
pop ecx
mov ecx, dword [0x4068e4]
push eax
push str.TIME
call fcn.00402980
call fcn.00401bcb
test al, al
je 0x401502
mov ecx, dword [0x4068e4]
lea eax, [ebp - 0x964]
push eax
call fcn.00402853
mov ecx, dword [0x4068e4]
lea eax, [ebp - 0x564]
push eax
call fcn.00402853
lea eax, [ebp - 0x564]
push ebx
push eax
push str._s__d___s_
push edi
call esi
xor ebx, ebx
push 0x44
lea eax, [ebp - 0x64]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 0x38], 0x101
push eax
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push edi
push ebx
call fcn.00402e63
lea eax, [ebp - 0x564]
push eax
push str._s__v
push edi
call esi
movzx eax, byte [ebp + 8]
push eax
push dword [0x405330]
push dword [0x40532c]
push dword [0x405334]
push edi
call fcn.00401203
add esp, 0x20
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402222
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push edi
push 0x4050dc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x40229f
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [ebp + 0xc]
sub eax, 0x60
push edi
push 0
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push dword [esi]
mov dword [ebp + 8], eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x40229c
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LockResource]
add eax, 0x60
push eax
push edi
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi]
add esp, 0xc
dec eax
je 0x402299
mov cl, byte [eax + edi - 1]
xor byte [eax + edi], cl
jmp 0x40228d
xor byte [edi], 0x7c
mov eax, edi
pop esi
pop edi
pop ebp
ret

Function at 0x4022a2
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x405254
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x4022f3
push esi
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
push dword [ebp + 8]
push 0x4068e0
call fcn.00402c6e
add esp, 0x1c
push 1
pop eax
pop esi
pop ebp
ret

Function at 0x4023a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
xor ebx, ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x402451
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402408
lea eax, [ebp - 0x104]
push str.services.exe
push eax
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
je 0x402402
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
jmp 0x4023da
mov edi, dword [ebp - 0x120]
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40244b
cmp dword [ebp - 0x110], edi
je 0x402436
lea eax, [ebp - 0x104]
push str.avp.exe
push eax
call sub.KERNEL32.dll_lstrcmpiA
test eax, eax
je 0x402445
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
jmp 0x402415
mov ebx, dword [ebp - 0x120]
push esi
call sub.KERNEL32.dll_CloseHandle
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x402663
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0x6069645f
mov dword [ebp - 0xc], 0x7e585360
mov dword [ebp - 8], 0x625b756d
mov dword [ebp - 4], 0xc0c0c68
xor eax, eax
xor byte [ebp + eax - 0x10], 0xc
inc eax
cmp eax, 0x10
jl 0x402687
lea eax, [ebp - 0x10]
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x4026b6
movzx ecx, byte [ebp + 8]
push 0
push ecx
push 0xb
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x402737
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
cmp dword [esp + 0xc], edx
jle 0x40275a
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
mov bl, dl
inc bl
xor bl, byte [ecx]
mov byte [eax], bl
inc eax
inc ecx
inc edx
cmp edx, dword [esp + 0x10]
jl 0x402748
pop ebx
ret 0xc

Function at 0x40275d
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
mov edi, dword [sym.imp.MSVCRT.dll__lseek]
xor ebx, ebx
push 2
push ebx
push esi
call edi
mov ebp, dword [sym.imp.MSVCRT.dll__tell]
push esi
call ebp
add esp, 0x10
cmp eax, 0x2000
jle 0x402799
cmp eax, 0x100000
jge 0x402799
add eax, 0xffffe000
push ebx
push eax
jmp 0x40279b
push ebx
push ebx
push esi
call edi
add esp, 0xc
push esi
call dword [sym.imp.MSVCRT.dll__eof]
test eax, eax
pop ecx
jne 0x402842
mov ebx, 0x4068e8
push esi
call ebp
and byte [esp + 0x54], 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x54]
push 1
push eax
push esi
call dword [sym.imp.MSVCRT.dll__read]
movsx eax, byte [0x4068e8]
movzx ecx, byte [esp + 0x60]
add esp, 0x10
cmp ecx, eax
jne 0x402832
push esi
call ebp
push 0
mov dword [esp + 0x1c], eax
push dword [esp + 0x18]
push esi
call edi
push 0x32
lea eax, [esp + 0x2c]
push 0
push eax
call sub.MSVCRT.dll_memset
push ebx
call sub.MSVCRT.dll_strlen
push eax
lea eax, [esp + 0x3c]
push eax
push esi
call dword [sym.imp.MSVCRT.dll__read]
lea eax, [esp + 0x44]
push ebx
push eax
call sub.MSVCRT.dll_strcmp
add esp, 0x34
test eax, eax
je 0x40284e
push 0
push dword [esp + 0x18]
push esi
call edi
add esp, 0xc
push esi
call dword [sym.imp.MSVCRT.dll__eof]
test eax, eax
pop ecx
je 0x4027b6
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4
push 1
pop eax
jmp 0x402844
Function at 0x402853
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x4a8
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x4a8
push eax
push ebx
call fcn.00402737
mov ebp, dword [esp + 0x4bc]
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [sym.imp.MSVCRT.dll__open]
push 0x8002
push ebp
call edi
mov esi, eax
pop ecx
cmp esi, 0xffffffff
pop ecx
jne 0x4028ae
push 0x8102
push ebp
call edi
mov esi, eax
pop ecx
cmp esi, 0xffffffff
pop ecx
jne 0x4028ae
xor eax, eax
jmp 0x4028f8
push esi
mov ecx, ebx
call fcn.0040275d
mov edi, dword [sym.imp.MSVCRT.dll__write]
test eax, eax
jne 0x4028d3
mov ebx, 0x4068e8
push ebx
call sub.MSVCRT.dll_strlen
push eax
push ebx
push esi
call edi
add esp, 0x10
lea eax, [esp + 0x10]
push 0x4a8
push eax
push esi
call edi
push esi
call dword [sym.imp.MSVCRT.dll__close]
push ebp
push 0x4068e0
call fcn.00402c6e
add esp, 0x18
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4a8
ret 4

Function at 0x402905
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
push ebx
push esi
mov esi, 0x4a8
push edi
mov edi, ecx
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
push 0
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__open]
mov ebx, eax
add esp, 0x14
cmp ebx, 0xffffffff
jne 0x40293a
xor eax, eax
jmp 0x402979
push ebx
mov ecx, edi
call fcn.0040275d
test eax, eax
jne 0x40294a
xor esi, esi
jmp 0x40296f
lea eax, [ebp - 0x4a8]
push esi
push eax
push ebx
call dword [sym.imp.MSVCRT.dll__read]
add esp, 0xc
lea eax, [ebp - 0x4a8]
mov ecx, edi
push esi
push edi
push eax
call fcn.00402737
push 1
pop esi
push ebx
call dword [sym.imp.MSVCRT.dll__close]
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402c6e
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 6
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov eax, 0x3859e000
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
mov ecx, 0x1bf5b62
push eax
push esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret