joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404d93
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Create two anonymous pipes
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreatePipe]
push esi
mov esi, ecx
push edi
lea edx, [ebp - 0x28]
lea eax, [esi + 8]
push 0x6400
lea ecx, [esi + 4]
push edx
xor edi, edi
push eax
push ecx
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ecx
call ebx
lea edx, [ebp - 0x28]
lea ecx, [esi + 0x18]
push 0x6400
lea eax, [esi + 0x10]
push edx
push ecx
push eax
call ebx
push 0x44
lea eax, [ebp - 0x7c]
pop ebx
push ebx
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 4]
push 0x208
push edi
mov dword [ebp - 0x7c], ebx
mov eax, dword [eax]
mov dword [ebp - 0x50], 0x101
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x284]
mov word [ebp - 0x4c], di
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x284]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x18]
mov word [ebp - 0x18], 0x5c
push eax
lea eax, [ebp - 0x284]
push eax
mov word [ebp - 0x16], 0x63
mov word [ebp - 0x14], 0x6d
mov word [ebp - 0x12], 0x64
mov word [ebp - 0x10], 0x2e
mov word [ebp - 0xe], 0x65
mov word [ebp - 0xc], 0x78
mov word [ebp - 0xa], 0x65
mov word [ebp - 8], di
call sub.MSVCRT.dll_wcscat
pop ecx
lea eax, [ebp - 0x38]
pop ecx
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push edi
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404f18
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x38]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], eax
call ebx
push dword [ebp - 0x34]
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push edi
lea eax, [esi + 0x14]
push edi
push eax
call ebx
push eax
push dword [esi + 0x10]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x404f18
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], edi
push 2
push edi
add esi, 0xc
push edi
push esi
call ebx
mov esi, dword [ebp - 0x1c]
push eax
push dword [esi]
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x404f18
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [esi], edi
push dword [eax]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404f1d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push edi
cmp dword [eax + 4], ebx
mov edi, ecx
je 0x404f8d
lea ecx, [ebp - 0xc]
push esi
add eax, 8
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0xc], ebx
call fcn.0040517c
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp - 4]
mov dword [ebp - 8], ebx
call sub.MSVCRT.dll_strlen
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push dword [ebp - 4]
push dword [edi + 0xc]
call esi
test eax, eax
je 0x404f83
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp + 0xa]
push 2
push eax
push dword [edi + 0xc]
mov byte [ebp + 0xa], 0xd
mov byte [ebp + 0xb], 0xa
call esi
push dword [ebp - 4]
call fcn.00405932
pop ecx
pop esi
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
call fcn.00404fa0
pop edi
pop ebx
leave
ret 0xc

Function at 0x404fa0
Capabilities:
Check for time delay via gettickcount
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13818
call fcn.004059d0
push ebx
push esi
push edi
xor ebx, ebx
push 0xd000
lea eax, [ebp - 0x13810]
push ebx
mov dword [ebp - 8], ecx
push eax
mov dword [ebp - 0x13818], 1
mov dword [ebp - 0x13814], ebx
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
mov byte [ebp - 2], bl
mov byte [ebp - 1], bl
call edi
mov esi, 0x6800
mov dword [ebp - 0x10], eax
push esi
lea eax, [ebp - 0x6810]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0xc]
push ebx
push eax
lea eax, [ebp - 0x6810]
push esi
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 0xc], 0x6400
ja 0x40503a
call edi
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x405040
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405001
mov byte [ebp - 1], 1
jmp 0x405044
mov byte [ebp - 2], 1
cmp dword [ebp - 0xc], ebx
jbe 0x4050fa
push esi
lea eax, [ebp - 0x6810]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc]
push ebx
push eax
push esi
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x6810]
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4050fa
cmp dword [ebp - 0xc], ebx
jbe 0x4050fa
lea eax, [ebp - 8]
mov ecx, esi
push eax
lea eax, [ebp - 0x6810]
push eax
mov dword [ebp - 8], ebx
call fcn.00405128
mov edi, eax
lea eax, [ebp - 0x13810]
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [ebp - 8]
cmp byte [ebp - 1], bl
pop ecx
mov dword [ebp - 0x13814], eax
pop ecx
je 0x4050bc
mov dword [ebp - 0x13818], ebx
jmp 0x4050cb
cmp byte [ebp - 2], bl
je 0x4050cb
mov dword [ebp - 0x13818], 1
mov esi, dword [ebp + 0xc]
mov eax, 0xd008
push eax
mov dword [esi], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push dword [esi]
lea ecx, [ebp - 0x13818]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
push edi
call fcn.00405932
add esp, 0x14
jmp 0x4050ff
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405106
Capabilities:
Terminate process

Disassembly:
push esi
push dword [ecx + 0x1c]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x40522f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 0
call sub.MSVCRT.dll_time
pop ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp - 4]
mov edi, eax
call sub.MSVCRT.dll_srand
call sub.MSVCRT.dll_rand
mov esi, 0xffff
cdq
mov ecx, esi
idiv ecx
mov ebx, edx
lea eax, [ebx + edi]
push eax
call sub.MSVCRT.dll_srand
call sub.MSVCRT.dll_rand
cdq
idiv esi
and byte [ebp - 0xc], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], 0x25
mov byte [ebp - 0x1b], 0x30
mov byte [ebp - 0x1a], 0x34
mov byte [ebp - 0x19], 0x58
mov byte [ebp - 0x18], 0x25
mov byte [ebp - 0x17], 0x30
mov byte [ebp - 0x16], 0x38
mov byte [ebp - 0x15], 0x58
mov byte [ebp - 0x14], 0x25
mov byte [ebp - 0x13], 0x30
mov byte [ebp - 0x12], 0x38
mov byte [ebp - 0x11], 0x58
mov byte [ebp - 0x10], 0x25
mov byte [ebp - 0xf], 0x30
mov byte [ebp - 0xe], 0x34
mov byte [ebp - 0xd], 0x58
push edx
push edi
push dword [ebp - 4]
mov dword [ebp - 8], edx
push ebx
push eax
lea eax, [ebp - 0x38]
push eax
call sub.MSVCRT.dll_sprintf
lea eax, [ebp - 0x38]
add esp, 0x20
xor ecx, ecx
mov dword [ebp - 4], eax
mov eax, ecx
push 4
cdq
pop esi
idiv esi
cmp edx, 3
jne 0x405319
movsx eax, byte [ecx + 0x408205]
movsx edx, byte [ecx + 0x408206]
add eax, edx
push 0x10
movsx edx, byte [ecx + 0x408207]
add eax, edx
pop esi
cdq
idiv esi
cmp edx, 9
lea eax, [edx + 0x37]
jg 0x405311
lea eax, [edx + 0x30]
mov byte [ecx + 0x408208], al
jmp 0x405327
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
mov al, byte [eax]
mov byte [ecx + 0x408208], al
inc ecx
cmp ecx, 0x20
jl 0x4052da
mov eax, edi
and eax, 3
dec eax
je 0x4053d2
dec eax
je 0x405385
dec eax
mov byte [0x408228], 0x2e
je 0x405367
mov byte [0x408229], 0x68
mov byte [0x40822a], 0x74
mov byte [0x40822b], 0x6d
mov byte [0x40822c], 0x6c
jmp 0x4053f5
mov byte [0x408229], 0x73
mov byte [0x40822a], 0x68
mov byte [0x40822b], 0x74
mov byte [0x40822c], 0x6d
jmp 0x4053f5
push 0xa
mov eax, ebx
xor edx, edx
pop ecx
div ecx
mov eax, dword [ebp - 8]
push 0x1a
mov byte [0x408228], 0x2e
add dl, 0x30
mov byte [0x408229], dl
xor edx, edx
div ecx
mov eax, edi
add dl, 0x30
mov byte [0x40822a], dl
xor edx, edx
div ecx
mov eax, dword [ebp - 8]
pop ecx
add dl, 0x30
mov byte [0x40822b], dl
xor edx, edx
div ecx
add dl, 0x41
mov byte [0x40822c], dl
jmp 0x4053f5
mov byte [0x408228], 0x2e
mov byte [0x408229], 0x61
mov byte [0x40822a], 0x73
mov byte [0x40822b], 0x70
mov byte [0x40822c], 0x78
and byte [0x40822d], 0
pop edi
pop esi
mov eax, 0x408208
pop ebx
leave
ret
Function at 0x4054b5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x405c48
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
push 0x4680000
push ebx
mov esi, ecx
push ebx
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
mov byte [ebp - 0x20], 0x50
mov byte [ebp - 0x1f], 0x4f
mov byte [ebp - 0x1e], 0x53
mov byte [ebp - 0x1d], 0x54
mov byte [ebp - 0x1c], bl
call fcn.0040522f
push eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 8]
call dword [esi + 0x120]
lea ecx, [ebp - 0x14]
push 4
push ecx
push 2
push eax
mov dword [esi + 0xc], eax
mov dword [ebp - 0x14], 0x1d4c0
call dword [esi + 0x138]
cmp eax, ebx
je 0x405548
lea eax, [ebp - 0x14]
push 4
push eax
push 5
push dword [esi + 0xc]
call dword [esi + 0x138]
cmp eax, ebx
je 0x405548
lea eax, [ebp - 0x14]
push 4
push eax
push 6
push dword [esi + 0xc]
call dword [esi + 0x138]
cmp eax, ebx
jne 0x405560
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x4055d8
push dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x38]
mov byte [ebp - 0x38], 0x43
push dword [ebp + 8]
mov byte [ebp - 0x37], 0x61
mov byte [ebp - 0x36], 0x63
mov byte [ebp - 0x35], 0x68
push 0xffffffffffffffff
push eax
push dword [esi + 0xc]
mov byte [ebp - 0x34], 0x65
mov byte [ebp - 0x33], 0x2d
mov byte [ebp - 0x32], 0x43
mov byte [ebp - 0x31], 0x6f
mov byte [ebp - 0x30], 0x6e
mov byte [ebp - 0x2f], 0x74
mov byte [ebp - 0x2e], 0x72
mov byte [ebp - 0x2d], 0x6f
mov byte [ebp - 0x2c], 0x6c
mov byte [ebp - 0x2b], 0x3a
mov byte [ebp - 0x2a], 0x20
mov byte [ebp - 0x29], 0x6e
mov byte [ebp - 0x28], 0x6f
mov byte [ebp - 0x27], 0x2d
mov byte [ebp - 0x26], 0x63
mov byte [ebp - 0x25], 0x61
mov byte [ebp - 0x24], 0x63
mov byte [ebp - 0x23], 0x68
mov byte [ebp - 0x22], 0x65
mov byte [ebp - 0x21], bl
call dword [esi + 0x124]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8

Function at 0x40586b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov eax, dword [esi]
push eax
mov dword [ebp + 0x14], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
lea eax, [ebp + 0x14]
mov dword [esp], 0x408230
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004046f1
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x14]
add esp, 0x14
xor edi, edi
test eax, eax
mov dword [esi], eax
jbe 0x4058be
mov eax, dword [ebp + 0x10]
mov ecx, ebx
sub ecx, eax
mov dl, byte [ecx + eax]
xor dl, 0x42
inc edi
mov byte [eax], dl
inc eax
cmp edi, dword [esi]
jb 0x4058b0
push ebx
call fcn.00405932
mov eax, dword [ebp + 0xc]
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4058cf
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test edi, edi
pop ecx
mov esi, eax
jbe 0x4058fa
mov eax, dword [esp + 0xc]
push ebx
mov ecx, esi
sub eax, esi
mov edx, edi
mov bl, byte [eax + ecx]
xor bl, 0x42
mov byte [ecx], bl
inc ecx
dec edx
jne 0x4058ed
pop ebx
push 0x408230
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push edi
push esi
call fcn.00404ac0
push esi
mov edi, eax
call fcn.00405932
add esp, 0x18
mov eax, edi
pop edi
pop esi
ret 0x10
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.00405704
pop edx
call fcn.00404aa0
call fcn.00405708
push 0
call fcn.004069f4
pop ecx
push 0x40f034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40f093], eax
push 0
jmp fcn.0040a7c8

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x44f170]
mov edx, dword [0x44f178]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x44f174]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x44f17c]
mov dword [0x453464], 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.00405bbc
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 [0x44f16c], 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 [0x44f16c]
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 0x401580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
mov ax, word [0x44f180]
lea edx, [ebp - 0x210]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov word [ebp - 6], ax
push 0x208
push edx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x2e
lea ecx, [ebp - 0x210]
push ecx
call fcn.00405bb5
add esp, 8
mov byte [eax], 0
push str._useid_
lea eax, [ebp - 0x210]
push eax
call fcn.00405aa8
add esp, 8
push esi
lea edx, [ebp - 0x210]
push edx
call fcn.00405aa8
add esp, 8
push str..txt
lea ecx, [ebp - 0x210]
push ecx
call fcn.00405aa8
add esp, 8
lea eax, [ebp - 0x210]
push 0
push 0
push 2
push 0
push 3
push 0x40000000
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40168d
push 0
lea eax, [ebp - 4]
push eax
push 0x44f277
call sub.KERNEL32.DLL_lstrlenA
push eax
push 0x44f26e
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call sub.KERNEL32.DLL_lstrlenA
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
lea ecx, [ebp - 4]
push 0
push ecx
lea eax, [ebp - 6]
push 2
push eax
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_lstrlenA
push eax
mov eax, dword [ebp + 8]
push eax
push ebx
call sub.KERNEL32.DLL_WriteFile
lea edx, [ebp - 4]
push 0
push edx
lea ecx, [ebp - 6]
Function at 0x403510
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 0x40352a
xor eax, eax
jmp 0x4036aa
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x40353e
xor eax, eax
jmp 0x4036aa
cmp word [ebx + 0x14], 0xe0
jne 0x40354e
cmp word [ebx + 0x18], 0x10b
je 0x403555
xor eax, eax
jmp 0x4036aa
mov dword [0x453264], 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.00403494
add esp, 8
test eax, eax
jne 0x403580
xor eax, eax
jmp 0x4036aa
mov edx, dword [0x453264]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004034dc
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x4035b2
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x4036aa
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 0x40367c
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x40366e
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x403669
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 0x403660
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x403655
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 0x403655
test cl, cl
je 0x40364a
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x403655
add eax, 2
add edx, 2
test cl, cl
jne 0x40362e
jne 0x403655
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x4036aa
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 0x403614
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x4035ec
jmp 0x4036a8
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x4036a0
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x40369c
cmp dword [eax], 0
je 0x40369c
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x4036aa
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403683
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4037bc
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 0x4037d9
xor eax, eax
jmp 0x403816
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 0x403800
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
xor eax, eax
jmp 0x403816
cmp dword [esp + 4], 4
jne 0x403814
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
mov eax, 1
jmp 0x403816
xor eax, eax
add esp, 0x1c
pop ebx
ret

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

Function at 0x403898
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 0x4039f4
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.004019fc
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x403aa7
mov eax, fcn.00401694
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x403aa7
mov eax, fcn.00403c50
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x403aa7
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 0x403aa7
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 0x403a6f
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