joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ceb4
Capabilities:
Check if file exists
Delete file
Get file size
Move file
Set file attributes

Disassembly:
mov eax, 0x416c94
call fcn.00413044
sub esp, 0x30
push esi
call fcn.0040caa0
mov esi, eax
cmp esi, 0xffffffff
je 0x40d030
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
add eax, dword [ebp + 8]
cmp eax, dword [0x4182ec]
jbe 0x40d030
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [0x4182f0]
lea ecx, [ebp - 0x3c]
push 0x4181c8
call fcn.004121ff
and dword [ebp - 4], 0
mov esi, 0x402c68
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x3c]
call fcn.00412463
lea eax, [ebx + 0x30]
movzx eax, al
lea ecx, [ebp - 0x3c]
push eax
call fcn.00412526
push 0x10
pop edi
cmp dword [ebp - 0x28], edi
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40cf6e
cmp dword [ebp - 0x28], edi
lea eax, [ebp - 0x3c]
push 0x80
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x28], edi
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x4181c8
lea ecx, [ebp - 0x24]
call fcn.004121ff
mov esi, 0x402c6c
mov byte [ebp - 4], 1
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00412463
jmp 0x40cffc
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
dec eax
push eax
call fcn.00412507
lea ecx, [ebx + 0x30]
mov byte [eax], cl
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], edi
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40cff0
cmp dword [ebp - 0x10], edi
lea eax, [ebp - 0x24]
push 0x80
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0x28], edi
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x24]
cmovae ecx, dword [ebp - 0x3c]
cmp dword [ebp - 0x10], edi
push ecx
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004122b8
sub ebx, 1
jne 0x40cf97
cmp dword [ebp - 0x10], edi
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
push 0x4181c8
call dword [sym.imp.KERNEL32.dll_MoveFileA]
call fcn.0040caa0
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.004123cd
lea ecx, [ebp - 0x3c]
call fcn.004123cd
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40d070
Capabilities:
Create directory
Query environment variable

Disassembly:
mov eax, 0x416cad
call fcn.00413044
sub esp, 0x18
push ebx
push esi
mov ebx, 0x104
mov esi, 0x4181c8
push ebx
push esi
push 0x402b98
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x40d160
cmp eax, ebx
jae 0x40d160
push edi
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00412232
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ebx
mov eax, 0x402ba4
test edi, edi
mov esi, 0x402bb8
cmove esi, eax
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00412463
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
push 0x4182dc
cmovae eax, dword [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
test eax, eax
je 0x40d110
cmp eax, 0xb7
jne 0x40d153
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
call fcn.0040d170
test al, al
je 0x40d153
inc edi
cmp edi, 2
jl 0x40d0b8
mov esi, 0x402bc0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00412463
cmp dword [ebp - 0x14], 0x104
jae 0x40d153
cmp dword [ebp - 0x10], 0x10
lea eax, [ebp - 0x24]
push dword [ebp - 0x14]
cmovae eax, dword [ebp - 0x24]
push eax
push 0x4181c8
call fcn.00411b50
add esp, 0xc
mov bl, 1
lea ecx, [ebp - 0x24]
call fcn.004123cd
mov al, bl
pop edi
jmp 0x40d162
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40d1aa
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x416cc6
call fcn.00413044
sub esp, 0x24
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push ebx
mov ebx, dword [0x4182f4]
push esi
mov esi, dword [0x4182ec]
push edi
mov edi, dword [0x4182f0]
push eax
push 0x402c94
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
xor ecx, ecx
lea eax, [ebp - 0x18]
push eax
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push eax
push ecx
push 0x402bcc
push dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d23b
cmp dword [ebp - 0x14], 4
jne 0x40d23b
lea eax, [ebp - 0x18]
push eax
push 0x4182f0
lea eax, [ebp - 0x14]
push eax
push 0
push 0x402bcc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d23b
mov eax, dword [0x4182f0]
cmp eax, 9
jbe 0x40d268
jmp 0x40d240
mov eax, dword [0x4182f0]
cmp eax, 9
jbe 0x40d24f
mov dword [0x4182f0], 9
push 4
push 0x4182f0
push 4
push 0
push 0x402bcc
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0x402bd8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d2ad
cmp dword [ebp - 0x14], 4
jne 0x40d2ad
lea eax, [ebp - 0x18]
push eax
push 0x4182ec
lea eax, [ebp - 0x14]
push eax
push 0
push 0x402bd8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40d2c6
push 4
push 0x4182ec
push 4
push 0
push 0x402bd8
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0x402be0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d30b
cmp dword [ebp - 0x14], 4
jne 0x40d30b
lea eax, [ebp - 0x18]
push eax
push 0x4182f4
lea eax, [ebp - 0x14]
push eax
push 0
push 0x402be0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40d324
push 4
push 0x4182f4
push 4
push 0
push 0x402be0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x402cc0
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [0x4182e8], eax
test eax, eax
je 0x40d3aa
cmp byte [ebp + 8], 0
jne 0x40d397
cmp dword [0x4182f4], ebx
jne 0x40d366
cmp dword [0x4182f0], edi
jne 0x40d366
cmp dword [0x4182ec], esi
je 0x40d397
push 0x402cdc
lea ecx, [ebp - 0x30]
call fcn.004121ff
xor ebx, ebx
lea eax, [ebp - 0x30]
push ebx
push ebx
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.0040cb6c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004123cd
push ebx
call fcn.0040ce01
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
push 0x402cc0
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x4182e8], eax
test eax, eax
jne 0x40d391
xor al, al
jmp 0x40d399
Function at 0x40dd08
Capabilities:
Hash data via bcrypt

Disassembly:
mov eax, 0x416d1d
call fcn.00413044
sub esp, 0x18
xor ecx, ecx
xor eax, eax
push esi
push edi
inc ecx
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov esi, dword [ebp + 8]
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], 0xf
mov byte [esi], dl
mov eax, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], eax
cmp dword [eax], edx
je 0x40de46
mov edi, dword [ebp + 0x10]
lea eax, [edi + 0x10]
mov dword [ebp - 0x20], eax
cmp dword [eax], edx
je 0x40de46
push ebx
push 8
push edx
push 0x402d74
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edx
push eax
mov dword [ebp - 0x10], edx
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
test eax, eax
jne 0x40de27
cmp dword [edi + 0x14], 0x10
jb 0x40dd8b
mov edi, dword [edi]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push ecx
push dword [eax]
lea eax, [ebp - 0x10]
push edi
push ecx
push ecx
push eax
push dword [ebp - 0x14]
call sub.bcrypt.dll_BCryptCreateHash
mov dword [ebx], eax
test eax, eax
jne 0x40de27
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0x10
jb 0x40ddb3
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
push 0
push dword [ecx]
push eax
push dword [ebp - 0x10]
call sub.bcrypt.dll_BCryptHashData
mov dword [ebx], eax
test eax, eax
jne 0x40de27
and dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0x18]
push eax
push 4
push eax
push 0x402da0
push dword [ebp - 0x14]
call sub.bcrypt.dll_BCryptGetProperty
mov dword [ebx], eax
test eax, eax
jne 0x40de27
mov eax, dword [ebp - 0x18]
mov ecx, esi
cmp eax, dword [esi + 0x10]
ja 0x40de02
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 0x10
jb 0x40ddfc
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x40de0d
sub eax, dword [esi + 0x10]
push 0
push eax
call fcn.00412407
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40de17
mov eax, dword [esi]
push 0
push dword [esi + 0x10]
push eax
push dword [ebp - 0x10]
call sub.bcrypt.dll_BCryptFinishHash
mov dword [ebx], eax
cmp dword [ebp - 0x10], 0
pop ebx
je 0x40de36
push dword [ebp - 0x10]
call sub.bcrypt.dll_BCryptDestroyHash
cmp dword [ebp - 0x14], 0
je 0x40de46
push 0
push dword [ebp - 0x14]
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x40f777
Capabilities:
Create process on windows
Create process suspended
Create thread
Resume thread
Terminate process

Disassembly:
push 0x178
push 0x417548
call fcn.00409e13
xor esi, esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x1c], esi
mov edi, esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], esi
mov eax, dword [0x418074]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x34], esi
push 0x44
push esi
lea eax, [ebp - 0x84]
push eax
call fcn.0040c3b7
push 0x10
push esi
lea eax, [ebp - 0x30]
push eax
call fcn.0040c3b7
add esp, 0x18
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x38], ebx
test ebx, ebx
je 0x40f943
push 0x44
push esi
lea eax, [ebp - 0x84]
push eax
call fcn.0040c8cd
mov dword [ebp - 0x84], 0x44
xor eax, eax
mov word [ebp - 0x54], ax
mov dword [ebp - 0x58], 0x181
mov dword [ebp - 0x44], ebx
cmp dword [ebp - 0x20], eax
je 0x40f82f
push dword [ebp + 0xc]
push 0x104
lea eax, [ebp - 0x188]
push eax
push dword [ebp + 8]
call fcn.0040f9a6
test eax, eax
jne 0x40f83d
push 1
lea eax, [ebp - 0x188]
push eax
call fcn.00406d1b
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x84]
push eax
push esi
push esi
push 4
push 1
push esi
push esi
lea eax, [ebp - 0x188]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x40f88f
test eax, eax
je 0x40f8b8
push esi
lea eax, [ebp - 0x188]
push eax
call fcn.00406d1b
push esi
push dword [ebp - 0x30]
lea eax, [ebp - 0x188]
push eax
call fcn.0040709e
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
test eax, eax
je 0x40f943
test ecx, ecx
je 0x40f90a
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
mov eax, dword [0x418074]
push dword [eax + 0x78]
push dword [ebp - 0x30]
call fcn.00406f4b
cmp dword [ebp - 0x1c], 0
jne 0x40f913
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40f8d0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x40f8de
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x41806c], 0
je 0x40f943
cmp dword [ebp - 0x34], 0
jne 0x40f943
mov dword [ebp - 0x34], 1
mov ecx, dword [0x418074]
xor eax, eax
cmp dword [ecx + 0x7c], esi
sete al
mov dword [ecx + 0x7c], eax
jmp 0x40f7e6
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [0x41806c], 0
jne 0x40f938
lea eax, [ebp - 0x40]
push eax
push esi
push dword [ebp - 0x30]
push fcn.00409880
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov dword [ebp - 0x3c], edi
jmp 0x40f943
push dword [ebp - 0x30]
call fcn.00409880
mov dword [ebp - 0x30], esi
or dword [ebp - 4], 0xffffffff
call fcn.0040f968
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40f9a6
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [0x41806c], edi
jne 0x40f9e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp dword [ebp + 0x14], edi
mov ecx, 0x403be8
mov eax, 0x403bdc
cmove eax, ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
inc eax
jmp 0x40fa6f
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push 0x403b68
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test edi, edi
je 0x40fa01
mov byte [esi + 0x29], 0
lea eax, [ebp - 4]
push eax
push esi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40fa5b
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40fa46
push 0x403bac
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
je 0x40fa5b
cmp dword [ebp - 8], 0
je 0x40fa66
test edi, edi
jne 0x40fa6b
mov edi, 0x403bcc
jmp 0x40f9ed
xor eax, eax
inc eax
jmp 0x40fa6d
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret 0x10
Function at 0x40fcfd
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov ax, word [ebp + 8]
push esi
push edi
push 0x17
pop edx
movzx ecx, ax
xor edi, edi
push 2
mov dword [ebp - 0xc], ecx
mov esi, edi
pop ecx
cmp ax, cx
je 0x40fd2a
cmp ax, dx
je 0x40fd2a
xor eax, eax
jmp 0x40fe6a
movzx eax, ax
push ebx
mov ebx, edi
mov dword [ebp - 4], eax
test esi, esi
je 0x40fd49
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
mov dword [ebp - 8], edi
push ecx
push edi
push edi
push edi
push eax
call dword [sym.imp.iphlpapi.dll_GetAdaptersAddresses]
cmp eax, 0x6f
jne 0x40fe67
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40fe67
lea eax, [ebp - 8]
push eax
push esi
push edi
push 0x2e
push dword [ebp - 4]
call dword [sym.imp.iphlpapi.dll_GetAdaptersAddresses]
cmp eax, 0x6f
jne 0x40fda2
mov eax, dword [ebp - 4]
inc ebx
cmp ebx, 4
jb 0x40fd33
jmp 0x40fe67
test eax, eax
jne 0x40fe67
push dword [esi + 0x34]
lea eax, [esi + 0x2c]
push eax
push 0x41848c
call fcn.0040c8b4
push 8
pop edx
test edi, edi
jne 0x40fe67
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x40fe5c
push 2
pop ecx
cmp word [ebp - 0xc], cx
lea eax, [ebp - 0x4c]
push 0x40
push eax
push 4
pop eax
cmovne eax, edx
add eax, dword [ebx + 0xc]
push eax
push dword [ebp - 4]
call sub.WS2_32.dll_inet_ntop
mov ax, word [ebp + 8]
push 0x17
pop ecx
cmp ax, cx
jne 0x40fe17
mov eax, dword [ebx + 0xc]
push 0x10
push 0x4184bf
add eax, 8
push eax
call fcn.00409595
test eax, eax
je 0x40fe45
mov ax, word [ebp + 8]
push 2
pop ecx
cmp ax, cx
jne 0x40fe39
mov eax, dword [ebx + 0xc]
push 4
push 0x4184cb
add eax, 4
push eax
call fcn.00409595
test eax, eax
je 0x40fe45
push 2
pop ecx
mov ebx, dword [ebx + 8]
push 8
pop edx
test ebx, ebx
je 0x40fe5c
jmp 0x40fdd4
push dword [esi + 0x34]
lea eax, [esi + 0x2c]
xor edi, edi
push eax
push 0x41848c
inc edi
call fcn.0040c8b4
push 8
pop edx
mov esi, dword [esi + 8]
test esi, esi
jne 0x40fdbe
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x4115aa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x41806c]
push ebx
xor ebx, ebx
test al, 1
jne 0x4115bf
cmp eax, 0xffffffff
jne 0x4115c9
mov eax, dword [0x418014]
mov eax, dword [eax + 0x1c]
mov byte [eax], bl
lea eax, [ebp - 4]
push eax
push ebx
push 0x1f
call fcn.00409821
mov byte [eax + 2], bl
cmp dword [0x418040], ebx
je 0x41165d
push ebx
push ebx
push 0x12
push dword [0x41808c]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0x7530
push dword [0x418040]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x418040]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 4]
mov dword [0x418040], ebx
push eax
push ebx
push 0x1e
call fcn.00409821
mov ecx, dword [0x418074]
mov al, byte [eax]
cmp dword [ecx + 0x88], ebx
je 0x411641
mov eax, dword [0x418140]
mov al, byte [eax + 8]
and al, 1
neg al
sbb al, al
and al, 9
add al, 0xfb
cmp byte [0x418090], bl
je 0x411663
test al, 4
je 0x411663
mov eax, dword [0x418014]
mov byte [eax + 4], 1
xor eax, eax
jmp 0x4117b1
mov ecx, dword [0x418074]
push esi
cmp byte [0x418091], bl
jne 0x4117ad
mov esi, 0x41801c
push dword [0x418148]
push esi
cmp dword [ecx + 0x88], ebx
je 0x41169a
call fcn.00406fdf
mov eax, dword [0x418074]
mov dword [eax + 0x98], 1
jmp 0x41169f
call fcn.004095fd
mov eax, 0x4180a8
push eax
push 0x50
mov dword [0x418088], eax
call fcn.004095ce
mov eax, dword [0x418088]
add eax, 0x1c
push eax
push 0x51
call fcn.004095ce
mov eax, dword [0x418088]
add eax, 0x2a
push eax
push 0x52
call fcn.004095ce
mov ecx, dword [0x418084]
test ecx, ecx
jne 0x411717
mov edx, dword [0x418074]
cmp dword [edx + 0xac], ebx
je 0x411717
mov eax, dword [0x418148]
cmp byte [eax], 1
jne 0x4116fb
cmp byte [section..data], bl
jne 0x411726
or dword [0x418084], 0xffffffff
mov al, bl
mov dword [edx + 0xac], ebx
mov ecx, dword [0x418084]
mov byte [section..data], al
jmp 0x41171c
mov al, byte [section..data]
test al, al
jne 0x411726
mov byte [0x418090], bl
cmp byte [0x418090], bl
jne 0x41176f
inc ecx
mov dword [0x418084], ecx
cmp ecx, dword [ebp + 8]
jae 0x4117ad
mov eax, dword [0x418148]
mov byte [eax], bl
mov eax, dword [0x418074]
push dword [0x418148]
push esi
cmp dword [eax + 0x88], ebx
je 0x41175c
call fcn.00406fdf
jmp 0x411761
call fcn.004095fd
mov byte [section..data], 1
mov byte [0x418090], 1
mov eax, dword [0x418014]
mov dword [0x418080], esi
mov byte [eax + 4], 2
lea eax, [ebp - 4]
push eax
push ebx
push 0x1f
call fcn.00409821
push 0x41808c
push ebx
push 0x4059c0
push 0x4093d0
push ebx
push ebx
mov byte [eax + 2], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x418040], eax
jmp 0x4117b0
or eax, 0xffffffff
pop esi
pop ebx
leave
ret 4
Function at 0x411851
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
push 2
push eax
rep stosd dword es:[edi], eax
push eax
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
test eax, eax
je 0x411961
push 0xf01ff
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x41192f
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov esi, eax
test esi, esi
je 0x411928
cmp dword [ebp - 0x1c], 1
je 0x4118c7
cmp dword [ebp - 0x1c], 2
je 0x4118c7
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov esi, eax
test esi, esi
je 0x411928
push dword [ebp + 8]
push 0x4044e0
push 0
call fcn.0040c9e5
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x411928
xor esi, esi
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x41190d
cmp dword [ebp - 0x1c], 1
je 0x41190d
cmp dword [ebp - 0x1c], 2
je 0x41190d
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x28
jl 0x4118e1
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push dword [ebp + 8]
mov esi, eax
push 0x4044f8
push 0
call fcn.0040c9e5
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x411961
cmp dword [ebp + 0xc], 0
jne 0x411961
cmp dword [ebp + 0x10], 0
je 0x411961
push 1
call fcn.0040bbb1
push dword [ebp + 8]
push 0x404514
push 0
call fcn.0040c9e5
add esp, 0xc
pop edi
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x41197c
Capabilities:
Resume thread

Disassembly:
push 0x6c4
push 0x4175c8
call fcn.00409e13
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x20], eax
mov esi, 0x32e
push esi
push ebx
lea eax, [ebp - 0x3a4]
push eax
call fcn.0040c8cd
lea eax, [esi - 4]
mov word [ebp - 0x39c], ax
push esi
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x6d4]
push eax
call fcn.0040c8b4
lea eax, [ebp - 0x39c]
push eax
lea eax, [ebp - 0x6cc]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0040c8e4
mov eax, dword [0x418074]
cmp dword [eax + 0x88], ebx
je 0x411a3b
mov edi, 0x604
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x28], eax
lea ecx, [esi + 8]
lea edx, [edi - 4]
mov word [ecx], dx
add eax, 8
mov word [eax], dx
push ecx
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.0040c8e4
mov dword [ebp - 0x40], 0x40c792
mov dword [ebp - 0x3c], 0x40c82e
mov dword [ebp - 0x38], 0x4089d0
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], esi
mov dword [esi], 0x237
mov dword [esi + 4], 6
mov eax, dword [0x418074]
cmp dword [eax + 0x88], ebx
je 0x411a7d
mov dword [esi], 0xd77
mov dword [esi + 4], 1
mov edi, 0x406a60
mov ecx, 0x406960
mov eax, dword [esi + 0x6c]
sub eax, 3
je 0x411a96
sub eax, 1
jne 0x411a98
mov edi, ebx
mov ecx, ebx
lea ebx, [esi + 0x1bc8]
push 2
push ecx
push ebx
push esi
call fcn.00407377
test eax, eax
je 0x411b0b
push 1
push edi
lea eax, [esi + 0x78]
push eax
push esi
call fcn.00407377
test eax, eax
je 0x411b0b
xor esi, esi
mov dword [ebp - 4], esi
push esi
push ebx
call fcn.00406395
cmp dword [ebp - 0x1c], esi
je 0x411af1
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x20]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411b07
lea eax, [ebp - 0x74]
push eax
call fcn.00408618
test eax, eax
jne 0x411af1
jmp 0x411b07
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0
je 0x411b1a
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x74]
push eax
call fcn.0040c96f
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x411b31
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x411b3f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x411bd6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
xor bl, bl
test edx, edx
je 0x411bfa
push esi
mov esi, dword [ebp + 0xc]
sub esi, ecx
mov al, byte [esi + ecx]
xor al, byte [ecx]
or bl, al
inc ecx
sub edx, 1
jne 0x411bec
pop esi
movzx eax, bl
dec eax
sar eax, 8
and eax, 1
pop ebx
pop ebp
ret 0xc
Function at 0x416a60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416a8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416a8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret