joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4052a0
Capabilities:
Create pipe
Create thread
Write file on windows
Write pipe

Disassembly:
sub esp, 8
push esi
mov eax, dword [0x433c24]
test eax, eax
je 0x4052be
mov eax, dword [0x433c24]
cmp eax, 0xffffffff
je 0x4052be
mov al, 1
pop esi
add esp, 8
ret
push 0
push 0x1f4
push 0x80
push 0x80
push 0xff
push 0
push 0xc0001
push 0
push 0x433b20
call fcn.004056e0
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [0x433c24], eax
mov eax, dword [0x433c24]
cmp eax, 0xffffffff
je 0x405396
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0
push 0
push 0x405490
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x433c28], eax
mov eax, dword [0x433c28]
test eax, eax
je 0x405396
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push str..pipe_softdenchi_login
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405396
lea ecx, [esp + 4]
push 0
push ecx
push 0x100
push 0x433b20
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40538f
cmp dword [esp + 4], 0x100
jne 0x40538f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
add esp, 8
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004053b0
xor al, al
pop esi
add esp, 8
ret

Function at 0x4053b0
Capabilities:
Terminate thread
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov eax, dword [0x433c28]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x405430
push esi
push edi
push edi
push 3
push edi
push edi
push 0x40000000
push edi
push 0x433b20
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 0x1f40
mov dword [esp + 0x3c], edi
call fcn.004056e0
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40541d
lea eax, [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0x18]
push 0x10
push ecx
push esi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebx
push 0x3e8
mov edx, dword [0x433c28]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov eax, dword [0x433c24]
cmp eax, edi
je 0x405451
mov eax, dword [0x433c24]
cmp eax, 0xffffffff
je 0x405451
mov eax, dword [0x433c24]
push eax
call ebx
mov dword [0x433c24], edi
mov eax, dword [0x433c28]
cmp eax, edi
je 0x405479
mov eax, dword [0x433c28]
cmp eax, 0xffffffff
je 0x405479
push 0xffffffffffffffff
mov ecx, dword [0x433c28]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x433c28], edi
call fcn.00405570
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x4055e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
mov dword [esp], 0
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405653
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea ecx, [esp]
mov dword [esp], eax
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push edx
mov edx, dword [esp + 0xc]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405648
mov dword [esp], 0
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 8
ret
Function at 0x401180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
cmp dword [edi], 0
je 0x4011a1
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 8]
test eax, eax
je 0x4011b6
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
test esi, esi
je 0x401322
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x401322
mov eax, ecx
cdq
and edx, 0xf
add eax, edx
mov ebx, eax
mov eax, dword [edi + 4]
sar ebx, 4
sub eax, 0
je 0x4012b2
dec eax
je 0x4011f4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test ebx, ebx
lea eax, [edi + 0xc]
jle 0x40124f
mov dword [ebp + 8], ebx
mov ecx, dword [esi]
mov edx, dword [eax]
mov edi, dword [esi + 4]
xor ecx, edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 8]
xor edx, edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
mov edx, dword [esi + 8]
push edi
xor ecx, edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0xc]
lea eax, [ebp - 0x18]
xor edx, ecx
mov ecx, dword [ebp - 4]
push eax
mov dword [ebp - 0xc], edx
call fcn.00401330
mov ecx, dword [ebp + 8]
mov eax, edi
add esi, 0x10
add edi, 0x10
dec ecx
mov dword [ebp + 0x10], edi
mov dword [ebp + 8], ecx
jne 0x4011fe
mov ecx, dword [ebp + 0xc]
inc ebx
mov edi, 0x10
shl ebx, 4
mov edx, ebx
sub edx, ecx
sub edi, edx
mov dword [ebp - 8], edx
test edi, edi
jle 0x40128f
mov edx, eax
lea ecx, [ebp - 0x18]
sub edx, esi
sub ecx, esi
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edi
jmp 0x401279
mov edx, dword [ebp + 8]
mov dl, byte [edx + esi]
xor dl, byte [esi]
inc esi
mov byte [ecx + esi - 1], dl
mov edx, dword [ebp + 0xc]
dec edx
mov dword [ebp + 0xc], edx
jne 0x401276
mov edx, dword [ebp - 8]
mov esi, edi
cmp esi, 0x10
jge 0x401307
mov edi, eax
lea eax, [ebp - 0x18]
sub edi, eax
lea ecx, [edi + esi]
mov al, byte [ebp + ecx - 0x18]
xor al, dl
mov byte [ebp + esi - 0x18], al
inc esi
cmp esi, 0x10
jl 0x40129d
jmp 0x401307
test ebx, ebx
jle 0x4012dd
mov dword [ebp + 8], ebx
mov eax, dword [ebp + 0x10]
mov ecx, edi
push eax
push esi
call fcn.00401330
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
add esi, 0x10
add ecx, 0x10
dec eax
mov dword [ebp + 0x10], ecx
mov dword [ebp + 8], eax
jne 0x4012b9
mov ecx, dword [ebp + 0xc]
inc ebx
lea edx, [ebp - 0x18]
shl ebx, 4
mov edi, ebx
sub edi, ecx
mov ecx, 0x10
sub ecx, edi
push ecx
push esi
push edx
call fcn.00425ab0
lea eax, [ebp - 8]
push edi
sub eax, edi
push edi
push eax
call fcn.00425a50
add esp, 0x18
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 4]
push edx
call fcn.00401330
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402020
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov edx, 1
cmp dword [esi + 0x1c], edx
jbe 0x40212b
push ebx
push edi
lea eax, [esi + 0x32]
xor ebx, ebx
xor ecx, ecx
mov bl, byte [eax - 1]
mov cl, byte [eax + 1]
add eax, 0x10
mov edi, dword [ebx*4 + 0x44f690]
mov ecx, dword [ecx*4 + 0x44fe90]
xor ebx, ebx
xor ecx, edi
mov bl, byte [eax - 0x10]
mov edi, dword [ebx*4 + 0x44fa90]
xor ebx, ebx
mov bl, byte [eax - 0x12]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44f290]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0x12], ecx
mov bl, byte [eax - 0xc]
xor ecx, ecx
mov cl, byte [eax - 0xb]
mov edi, dword [ebx*4 + 0x44fa90]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x44fe90]
mov bl, byte [eax - 0xd]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44f690]
xor ebx, ebx
mov bl, byte [eax - 0xe]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44f290]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xe], ecx
mov bl, byte [eax - 8]
xor ecx, ecx
mov cl, byte [eax - 7]
mov edi, dword [ebx*4 + 0x44fa90]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x44fe90]
mov bl, byte [eax - 9]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44f690]
xor ebx, ebx
mov bl, byte [eax - 0xa]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44f290]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xa], ecx
mov bl, byte [eax - 4]
xor ecx, ecx
mov cl, byte [eax - 3]
mov edi, dword [ebx*4 + 0x44fa90]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x44fe90]
mov bl, byte [eax - 5]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44f690]
xor ebx, ebx
mov bl, byte [eax - 6]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44f290]
xor ecx, edi
inc edx
mov dword [eax - 6], ecx
mov ecx, dword [esi + 0x1c]
cmp edx, ecx
jb 0x402036
pop edi
pop ebx
pop esi
ret
Function at 0x402ee0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0x10
push 0xf0000020
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x402f52
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x8002
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x402f52
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x402f52
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 2
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402f70
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0x10
push 0xf0000020
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x402fdf
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x8003
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x402fdf
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x402fdf
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 2
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov esp, ebp
pop ebp
ret

Function at 0x4039fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.00404540
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x403a6b
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403a5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403a74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x40ad59
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440cc5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
mov dword [ebp - 0xb4], ecx
push 1
push 3
lea ecx, [ebp - 0x98]
call fcn.004049f0
mov dword [ebp - 4], 0
mov dword [ebp - 0x9c], 0
mov eax, dword [ebp + 0x10]
and eax, 0xff
test eax, eax
je 0x40adb5
mov dword [ebp - 0xb8], str.StandardProfile
jmp 0x40adbf
mov dword [ebp - 0xb8], str.DomainProfile
lea ecx, [ebp - 0x98]
test ecx, ecx
je 0x40add7
lea edx, [ebp - 0x90]
mov dword [ebp - 0xbc], edx
jmp 0x40ade1
mov dword [ebp - 0xbc], 0
push str.AuthorizedApplicationsList
mov eax, dword [ebp - 0xb8]
push eax
push str.SYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicy_
mov ecx, dword [ebp - 0xbc]
push ecx
call fcn.004071b0
add esp, 8
push eax
call fcn.004071b0
add esp, 8
push eax
call fcn.004071b0
add esp, 8
lea edx, [ebp - 0x9c]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x98]
call fcn.00404b10
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xc4]
call fcn.00404540
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0xa0], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb0]
call fcn.004044e0
mov edx, dword [ebp - 0xa0]
and edx, 0xff
test edx, edx
je 0x40af14
cmp dword [ebp + 0xc], 0
je 0x40aed9
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40aed7
mov edx, dword [ebp + 0xc]
push edx
call fcn.00426bd0
add esp, 4
push eax
mov eax, dword [ebp + 0xc]
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40af07
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40af07
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.00404300
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b006
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov dword [ebp - 0x444], ecx
mov eax, dword [str.profiles.ini]
mov dword [ebp - 0x114], eax
mov ecx, dword [0x454f50]
mov dword [ebp - 0x110], ecx
mov edx, dword [0x454f54]
mov dword [ebp - 0x10c], edx
mov al, byte [0x454f58]
mov byte [ebp - 0x108], al
mov ecx, dword [str.Firefox]
mov dword [ebp - 0x228], ecx
mov edx, dword [0x454f60]
mov dword [ebp - 0x224], edx
mov eax, dword [str.Mozilla]
mov dword [ebp - 0x11c], eax
mov ecx, dword [0x454f68]
mov dword [ebp - 0x118], ecx
cmp dword [ebp + 8], 0
je 0x40b07e
cmp dword [ebp + 0xc], 0
jne 0x40b085
xor al, al
jmp 0x40b252
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
push 0x104
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.00425a50
add esp, 0xc
push 0
push 0x1a
lea ecx, [ebp - 0x220]
push ecx
push 0
call fcn.00424bf8
add esp, 0x10
test eax, eax
jl 0x40b249
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0x454f6c
lea eax, [ebp - 0x104]
push eax
call fcn.004270d8
add esp, 0x18
mov dword [ebp - 0x330], 0
jmp 0x40b10c
mov ecx, dword [ebp - 0x330]
add ecx, 1
mov dword [ebp - 0x330], ecx
mov edx, 1
test edx, edx
je 0x40b249
mov eax, dword [ebp - 0x330]
push eax
push str.Profile_d
lea ecx, [ebp - 0x32c]
push ecx
call fcn.004270d8
add esp, 0xc
lea edx, [ebp - 0x104]
push edx
push 0xffffffffffffffff
push str.IsRelative
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0xffffffff
jne 0x40b163
jmp 0x40b249
lea ecx, [ebp - 0x104]
push ecx
push 0x104
lea edx, [ebp - 0x434]
push edx
push 0x46c92c
push str.Path
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [ebp - 0x438], eax
cmp dword [ebp - 0x438], 0
ja 0x40b1a1
jmp 0x40b249
lea ecx, [ebp - 0x104]
push ecx
push 0xffffffffffffffff
push str.Default
lea edx, [ebp - 0x32c]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 1
je 0x40b1d4
cmp dword [ebp - 0x330], 0
jne 0x40b244
cmp dword [ebp - 0x440], 1
jne 0x40b220
push 0x2f
lea eax, [ebp - 0x434]
push eax
call fcn.0040bbb0
add esp, 8
mov byte [eax], 0x5c
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x220]
push ecx
push str._s_s_s_s
mov edx, dword [ebp + 8]
push edx
call fcn.004270d8
add esp, 0x18
jmp 0x40b233
lea eax, [ebp - 0x434]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00427600
add esp, 8
mov edx, dword [ebp + 8]
push edx
call fcn.00426bd0
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x40b0fd
xor eax, eax
cmp dword [ebp + 0xc], 0
setne al
mov esp, ebp
pop ebp
ret 8
Function at 0x40b990
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
call fcn.0040ba50
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40ba49
mov ecx, dword [ebp - 0x18]
call fcn.0040b930
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0xc
push ecx
push 0
mov edx, dword [ebp - 0x18]
add edx, 4
push edx
push 0
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
push edx
call fcn.00427090
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
push eax
call fcn.00427090
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x10], edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0xc
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 4
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
sub eax, 1
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 4], al
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40cec4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440e3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x110
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x120], ecx
push 1
mov eax, dword [ebp - 0x120]
add eax, 0x18bc
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040e140
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jl 0x40d065
cmp dword [ebp + 8], 0x14
jge 0x40d065
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x13c
mov edx, dword [ebp - 0x120]
cmp dword [edx + ecx + 0x20], 0
je 0x40cffc
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax + 0x18b4]
cmp ecx, dword [ebp + 8]
jne 0x40cf5f
mov edx, dword [ebp - 0x120]
mov dword [edx + 0x18b4], 0xffffffff
mov eax, dword [ebp + 8]
imul eax, eax, 0x13c
mov ecx, dword [ebp - 0x120]
mov edx, dword [ecx + eax + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 8]
imul eax, eax, 0x13c
mov ecx, dword [ebp - 0x120]
lea edx, [ecx + eax + 0x39]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 8]
imul eax, eax, 0x13c
mov ecx, dword [ebp - 0x120]
mov edx, dword [ecx + eax + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
imul eax, eax, 0x13c
mov ecx, dword [ebp - 0x120]
lea edx, [ecx + eax + 0xc]
push edx
call fcn.004234c1
add esp, 4
mov eax, dword [ebp + 8]
imul eax, eax, 0x13c
mov ecx, dword [ebp - 0x120]
lea edx, [ecx + eax + 0x10]
push edx
call fcn.004234c1
add esp, 4
mov eax, dword [ebp + 8]
imul eax, eax, 0x13c
mov ecx, dword [ebp - 0x120]
mov dword [ecx + eax + 0x20], 0
jmp 0x40d03b
mov dword [ebp - 4], 0
push 0x13c
push 0
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x13c
mov edx, dword [ebp - 0x120]
lea eax, [edx + ecx + 4]
push eax
call fcn.00425a50
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040e180
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40d0ea
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440e4e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x214
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x224], ecx
mov byte [ebp - 0x14], 0
cmp dword [ebp + 8], 0
jl 0x40d2fe
cmp dword [ebp + 8], 0x14
jge 0x40d2fe
push 1
mov eax, dword [ebp - 0x224]
add eax, 0x18bc
push eax
lea ecx, [ebp - 0x20]
call fcn.0040e140
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x13c
mov edx, dword [ebp - 0x224]
mov eax, dword [edx + ecx + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.CModule::StopModule_Stop:__ld__s
call fcn.0042571d
add esp, 0xc
mov edx, dword [ebp + 8]
imul edx, edx, 0x13c
mov eax, dword [ebp - 0x224]
cmp dword [eax + edx + 0x20], 0
je 0x40d1b2
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x13c
mov edx, dword [ebp - 0x224]
cmp dword [edx + ecx + 0x28], 0
je 0x40d1b2
mov eax, dword [ebp + 8]
imul eax, eax, 0x13c
mov ecx, dword [ebp - 0x224]
call dword [ecx + eax + 0x28]
jmp 0x40d1f1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0040e180
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x13c
mov edx, dword [ebp - 0x224]
cmp dword [edx + ecx + 0x20], 0
je 0x40d2fa
mov eax, dword [ebp + 8]
imul eax, eax, 0x13c
mov ecx, dword [ebp - 0x224]
cmp dword [ecx + eax + 4], 0
je 0x40d2eb
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
imul eax, eax, 0x13c
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + eax + 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40d2eb
mov dword [ebp - 4], 3
mov eax, dword [ebp + 8]
imul eax, eax, 0x13c
mov ecx, dword [ebp - 0x224]
mov edx, dword [ecx + eax + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.CModule::StopModule_Terminate:__ld__s
call fcn.0042571d
add esp, 0xc
push 0
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x13c
mov edx, dword [ebp - 0x224]
mov eax, dword [edx + ecx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x40d2e4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x224]
call fcn.0040cec4
mov byte [ebp - 0x14], 1
mov al, byte [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40dd3a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
and eax, 0xff
test eax, eax
je 0x40dd7a
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18d8], 0
je 0x40dd6f
push 0xffffffffffffffff
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x18d8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40dd78
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040dccb
jmp 0x40dda8
mov edx, dword [ebp - 8]
cmp dword [edx + 0x18d8], 0
jne 0x40dda8
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
push fcn.0040dccb
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 8]
mov dword [edx + 0x18d8], eax
mov esp, ebp
pop ebp
ret 4