joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aa28
Capabilities:
Terminate process

Disassembly:
push 8
push 0x40e620
call fcn.00408a0c
push 8
call fcn.00407e4c
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x418c14], esi
jne 0x40aa5c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x418c10], esi
mov al, byte [ebp + 0x10]
mov byte [0x418c0c], al
cmp dword [ebp + 0xc], edi
jne 0x40aaa6
cmp dword [0x419174], edi
je 0x40aa96
mov eax, dword [0x419170]
sub eax, 4
mov dword [0x419170], eax
cmp eax, dword [0x419174]
jb 0x40aa96
mov eax, dword [eax]
cmp eax, edi
je 0x40aa77
call eax
jmp 0x40aa77
push 0x411028
mov eax, 0x411020
call fcn.0040a9a6
pop ecx
push 0x411030
mov eax, 0x41102c
call fcn.0040a9a6
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40aad7
cmp dword [ebp + 0x10], edi
jne 0x40aae5
mov dword [0x418c14], esi
push dword [ebp + 8]
call fcn.0040a964
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40aae4
push 8
call fcn.00407d97
pop ecx
ret
call fcn.00408a47
ret

Function at 0x40ab2b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4186b0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x418580]
je 0x40ab60
inc eax
cmp eax, 0x13
jb 0x40ab51
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x418580]
jne 0x40ac86
mov eax, dword [0x418a50]
cmp eax, 1
je 0x40ac5e
cmp eax, edx
jne 0x40ab90
cmp dword [0x417e94], 1
je 0x40ac5e
cmp ecx, 0xfc
je 0x40ac86
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40abc6
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00407170
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00407270
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40abfa
mov eax, edi
push eax
call fcn.00407270
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40ea18
push edi
call fcn.004075a0
add esp, 0x10
push edi
call fcn.00407270
push dword [esi + 0x418584]
mov ebx, eax
call fcn.00407270
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00407300
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00407170
push edi
push ebx
call fcn.00407180
push 0x40e9f8
push ebx
call fcn.00407180
push dword [esi + 0x418584]
push ebx
call fcn.00407180
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040cf67
add esp, 0x2c
jmp 0x40ac86
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x418584]
push dword [esi]
call fcn.00407270
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040c009
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40b7ed
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40b81b
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40b822
cmp ebx, dword [eax + 4]
jae 0x40b822
xor eax, eax
jmp 0x40ba12
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40b833
xor eax, eax
inc eax
jmp 0x40ba11
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40b849
cmp ecx, edx
jae 0x40b98e
cmp dword [eax + 4], 0
je 0x40b852
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40b83a
cmp dword [ebp + 8], 0
je 0x40b874
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40b98e
cmp eax, esi
jae 0x40b98e
mov eax, dword [0x418d30]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40b899
cmp dword [esi*4 + 0x418d38], edi
je 0x40b992
inc esi
cmp esi, eax
jl 0x40b887
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ba0e
cmp dword [ebp - 8], 0x1000000
jne 0x40ba0e
test byte [ebp - 0xc], 0xcc
je 0x40b917
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40ba0e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40ba0e
cmp word [eax + 0x18], 0x10b
jne 0x40ba0e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40ba0e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40b917
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40b917
test byte [ecx + 0x27], 0x80
jne 0x40b98e
push 1
push 0x418d78
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40b82b
mov ecx, dword [0x418d30]
test ecx, ecx
mov edx, ecx
jle 0x40b94b
lea eax, [ecx*4 + 0x418d34]
cmp dword [eax], edi
je 0x40b94b
dec edx
sub eax, 4
test edx, edx
jg 0x40b93f
test edx, edx
jne 0x40b97c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40b958
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40b970
lea eax, [edx*4 + 0x418d38]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40b95e
cmp ecx, 0x10
jge 0x40b97c
inc ecx
mov dword [0x418d30], ecx
push 0
push 0x418d78
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40b82b
xor eax, eax
jmp 0x40ba11
test esi, esi
jle 0x40b82b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x418d78
call ebx
test eax, eax
jne 0x40b82b
cmp dword [esi*4 + 0x418d38], edi
je 0x40b9e8
mov eax, dword [0x418d30]
lea esi, [eax - 1]
test esi, esi
jl 0x40b9d6
cmp dword [esi*4 + 0x418d38], edi
je 0x40b9d2
dec esi
jns 0x40b9c6
test esi, esi
jge 0x40b9e6
cmp eax, 0x10
jge 0x40b9e1
inc eax
mov dword [0x418d30], eax
lea esi, [eax - 1]
jmp 0x40b9e8
je 0x40ba00
xor ecx, ecx
test esi, esi
jl 0x40ba00
lea eax, [ecx*4 + 0x418d38]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40b9ee
push 0
push 0x418d78
call ebx
jmp 0x40b82b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cf67
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x418dfc], ebx
push esi
push edi
jne 0x40cfe7
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40d022
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x418dfc], eax
je 0x40d022
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x418e00], eax
call esi
cmp dword [0x418bd4], 2
mov dword [0x418e04], eax
jne 0x40cfe7
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x418e0c], eax
je 0x40cfe7
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x418e08], eax
mov eax, dword [0x418e08]
test eax, eax
je 0x40d02c
call eax
test eax, eax
je 0x40d013
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x418e0c]
test eax, eax
je 0x40d013
test byte [ebp - 8], 1
jne 0x40d02c
cmp dword [0x418be0], 4
jb 0x40d026
or byte [ebp + 0x12], 0x20
jmp 0x40d04b
xor eax, eax
jmp 0x40d05b
or byte [ebp + 0x12], 4
jmp 0x40d04b
mov eax, dword [0x418e00]
test eax, eax
je 0x40d04b
call eax
mov ebx, eax
test ebx, ebx
je 0x40d04b
mov eax, dword [0x418e04]
test eax, eax
je 0x40d04b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x418dfc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d252
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00407300
mov eax, dword [0x4186b0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00409a09
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x40d385
push 2
push esi
push dword [ebp + 8]
call fcn.00409a09
add esp, 0xc
cmp eax, ebx
je 0x40d385
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40d325
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00406ca0
push 0x8000
push dword [ebp + 8]
call fcn.0040dd2f
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x40d2db
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004090a8
add esp, 0xc
cmp eax, 0xffffffff
je 0x40d2fb
sub edi, eax
test edi, edi
jg 0x40d2d3
jmp 0x40d313
call fcn.00409492
cmp dword [eax], 5
jne 0x40d310
call fcn.00409489
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0040dd2f
pop ecx
pop ecx
jmp 0x40d36d
jge 0x40d36d
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409a09
push dword [ebp + 8]
call fcn.0040bb11
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x40d36d
call fcn.00409489
mov dword [eax], 0xd
call fcn.00409492
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00409a09
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40d387
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040c009
leave
ret
Function at 0x40d59f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00407300
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d63a
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x418bd4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40d63a
cmp eax, 1
je 0x40d65b
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d63a
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40d607
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40d636
xor eax, eax
inc eax
jmp 0x40d67a
cmp edi, eax
jae 0x40d63e
xor eax, eax
jmp 0x40d67a
cmp eax, esi
jae 0x40d645
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x418bd4]
jmp 0x40d65e
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop 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.004055c4
pop edx
call fcn.00404960
call fcn.004055c8
push 0
call fcn.0040687c
pop ecx
push 0x40f034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40f093], eax
push 0
jmp fcn.0040a650

Function at 0x401430
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x44f37c]
mov edx, dword [0x44f384]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x44f380]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x44f388]
mov dword [0x453614], 1
mov dword [ebp - 0x18], edx
push 0x208
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401574
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 4]
push 0
push eax
lea edx, [ebp - 0x14]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4014df
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401576
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.00405a70
add esp, 0xc
test eax, eax
je 0x4014f9
xor eax, eax
jmp 0x401576
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 4]
push edx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401522
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401576
push 4
push 0x1000
mov edx, dword [esi]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x44f378], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 4]
push 0
push edx
mov eax, dword [0x44f378]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40156d
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401576
mov eax, 1
jmp 0x401576
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4031dc
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 0x403210
mov edx, dword [eax + 8]
test edx, edx
jne 0x4031ff
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x40320c
add edx, esi
cmp ebx, edx
jb 0x40321d
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x4031f5
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x403258
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 0x403272
xor eax, eax
jmp 0x4033f2
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x403286
xor eax, eax
jmp 0x4033f2
cmp word [ebx + 0x14], 0xe0
jne 0x403296
cmp word [ebx + 0x18], 0x10b
je 0x40329d
xor eax, eax
jmp 0x4033f2
mov dword [0x453418], 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.004031dc
add esp, 8
test eax, eax
jne 0x4032c8
xor eax, eax
jmp 0x4033f2
mov edx, dword [0x453418]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00403224
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x4032fa
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x4033f2
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 0x4033c4
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x4033b6
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x4033b1
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 0x4033a8
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x40339d
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 0x40339d
test cl, cl
je 0x403392
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x40339d
add eax, 2
add edx, 2
test cl, cl
jne 0x403376
jne 0x40339d
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x4033f2
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 0x40335c
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403334
jmp 0x4033f0
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x4033e8
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x4033e4
cmp dword [eax], 0
je 0x4033e4
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x4033f2
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x4033cb
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403504
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 0x403521
xor eax, eax
jmp 0x40355e
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 0x403548
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
xor eax, eax
jmp 0x40355e
cmp dword [esp + 4], 4
jne 0x40355c
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, 1
jmp 0x40355e
xor eax, eax
add esp, 0x1c
pop ebx
ret

Function at 0x4035c0
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 0x4035d9
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4035e0
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 0x403600
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, 0x44f960
rep movsd dword es:[edi], dword [esi]
pop esi
push ebx
call fcn.00403598
pop ecx
test eax, eax
je 0x40363c
push ebx
call fcn.004035e0
pop ecx
mov dword [ebp - 0x2cc], 0x94
lea eax, [ebp - 0x2cc]
push eax
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [ebp - 0x2bc], 1
jne 0x40367a
push ebx
call fcn.00403474
pop ecx
test eax, eax
jne 0x403671
push ebx
call fcn.004034ac
pop ecx
test eax, eax
je 0x403697
push ebx
call fcn.004035e0
pop ecx
jmp 0x403697
push ebx
call fcn.004035c0
pop ecx
test eax, eax
jne 0x403690
push ebx
call fcn.00403564
pop ecx
test eax, eax
je 0x403697
push ebx
call fcn.004035e0
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 0x403703
jmp 0x4036f2
push str.explorer.exe
lea edx, [ebp - 0x214]
push edx
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x4036e4
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 4], ecx
cmp edi, dword [ebp - 0x230]
jne 0x4036f2
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x238]
push eax
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x4036c6
cmp esi, dword [ebp - 4]
je 0x403728
cmp dword [ebp - 4], 0
je 0x403728
push esi
push 1
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
push 0
push eax
call sub.KERNEL32.DLL_TerminateProcess
jmp 0x403806
xor edx, edx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0xc], edx
push 0x105
push ecx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x44fb05
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 0x403806
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 0x4037e2
xor esi, esi
lea ebx, [ebp - 0x12cc]
jmp 0x4037d8
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 0x4037d4
lea ecx, [ebp - 0x13d0]
push ecx
lea eax, [ebp - 0x110]
push eax
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x4037d4
mov dword [ebp - 0xc], 1
jmp 0x4037e2
inc esi
add ebx, 4
mov edx, dword [ebp - 8]
shr edx, 2
cmp esi, edx
jb 0x40379b
push edi
call sub.KERNEL32.DLL_CloseHandle
cmp dword [ebp - 0xc], 0
jne 0x403806
mov ecx, dword [ebp - 4]
push ecx
push 1
push 0x1f0fff
dec dword [edi]
pop ds
add al, ch
cwde
mov dl, 0
add byte [edx], ch
Function at 0x403860
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 0x403871
jne 0x403871
jmp fcn.004037f5
cmp esi, 8
jb 0x4038af
xor ebx, ebx
jmp 0x4038a6
mov eax, dword [ebp + 0x10]
mov edx, ebx
add edx, edi
push eax
push edx
call fcn.004038b4
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 0x40387a
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4038b4
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.004018dc
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403967
mov eax, fcn.00401580
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403967
mov eax, fcn.00403b10
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403967
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 0x403967
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 0x40392f
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