joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a830
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x1002e00c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, ecx
mov dword [esp + 8], 0
mov ecx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 4]
or eax, 0x2001f
mov dword [esp + 0xc], ecx
push eax
push ecx
push dword [ebx]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.1000a740
mov esi, eax
test esi, esi
je 0x1000a8b1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x1000a898
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.1000c560
mov esp, ebp
pop ebp
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push dword [esp + 0x2c]
call edi
test eax, eax
jne 0x1000a919
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.1000a830
mov esi, eax
test esi, esi
jne 0x1000a96b
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x2c]
call edi
test eax, eax
je 0x1000a8e0
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1000a932
push eax
call esi
mov dword [esp + 0x10], 0
push dword [esp + 0xc]
mov ecx, ebx
mov dword [esp + 0x18], 0
call fcn.1000a9c0
mov ecx, dword [esp + 0x10]
mov edi, eax
test ecx, ecx
je 0x1000a952
push ecx
call esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.1000c560
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1000a898
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000c560
mov esp, ebp
pop ebp
ret 4
Function at 0x1000b6f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001fce8
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x1002e00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], 0
push 0x404
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.1000e210
add esp, 0xc
mov dword [ebp - 0x424], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
jne 0x1000b7a9
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], eax
test esi, esi
jne 0x1000b7a9
call fcn.10009bd0
mov edi, eax
jmp 0x1000b8c5
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1000b7cc
call fcn.10009bd0
jmp 0x1000b8b8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x1000b7ea
call fcn.10009bd0
jmp 0x1000b8b8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x428], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x1000b80b
mov edi, 0x8007000e
jmp 0x1000b8ba
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x1000b8fe
jb 0x1000b829
cmp eax, 0xffffffff
ja 0x1000b8fe
cmp eax, 0x400
jbe 0x1000b83e
push eax
lea ecx, [ebp - 0x424]
call fcn.10009ba0
jmp 0x1000b864
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x1000b864
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
jne 0x1000b87b
mov edi, 0x8007000e
jmp 0x1000b8ba
push edi
push dword [ebp - 0x424]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1000b89b
call fcn.10009bd0
jmp 0x1000b8b8
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.1000b590
mov edi, eax
test esi, esi
je 0x1000b8c5
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x1000b8de
lea ecx, [ebp - 0x424]
call fcn.10009b80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000c560
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.10003350
int3

Function at 0x10012b86
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10012bc5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10012bc5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10012bc5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10012bc5
cmp dword [ecx + 0x74], 0xe
jbe 0x10012bc5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100162dc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100236f8
push 0x100236f0
push str.FlsAlloc
push 0x1f
call fcn.100161f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016310
push dword [ebp + 8]
mov ecx, esi
call dword [0x100212a4]
call esi
jmp 0x10016316
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001635a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10023708
push 0x10023700
push str.FlsGetValue
push 0x21
call fcn.100161f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016391
push dword [ebp + 8]
mov ecx, esi
call dword [0x100212a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10016399
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10023710
push 0x10023708
push str.FlsSetValue
push 0x22
call fcn.100161f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100163d3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100212a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10017ae6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10017b83
push ebx
push esi
call fcn.10017aaf
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10017a43
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10017b30
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10017b82
push edi
push eax
call fcn.1001509b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10017b50
call fcn.10014fc5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10017b81
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10017a43
add esp, 0x20
test eax, eax
jne 0x10017b6f
push edi
call fcn.10014fc5
jmp 0x10017b77
push ebx
call fcn.10014fc5
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10018764
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test al, 0x50
call fcn.100184ca
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.1001847f
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x100187a8
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.100184ba
pop eax
les eax, [ecx + 0x66]
lea eax, [ebp - 0x40]
push eax
call fcn.100184ca
push eax
push esi
push dword [ebp + 8]
call fcn.1001847f
add esp, 0x10
mov dword [ebp - 0x88], eax
invalid
popfd
cld
invalid
Function at 0x1001ee40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001ee6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001ee6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401343
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ecx
mov eax, dword [0x4958f8]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
lea eax, [esp + 0x18]
push eax
push esi
push esi
push ecx
mov dword [edi], esi
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x4013e1
push esi
push ebp
push esi
push esi
push 1
push esi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x4013d7
push ebx
push dword [ebp]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [edi], ebx
test ebx, ebx
je 0x4013d6
push dword [esp + 0x18]
push dword [esp + 0x14]
push ebx
call fcn.00461aa0
add esp, 0xc
lea eax, [esp + 0x18]
push dword [ebp]
push eax
push ebx
push esi
push 1
push esi
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov esi, eax
test esi, esi
jne 0x4013d6
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], eax
pop ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret

Function at 0x4013e8
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
mov dword [eax], ebp
lea eax, [esp + 0x18]
push eax
push esi
push esi
push ecx
mov dword [esp + 0x1c], edx
mov dword [edi], esi
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x401462
push ebx
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [edi], ebx
test ebx, ebx
je 0x401457
push ebp
push dword [esp + 0x14]
push ebx
call fcn.00461aa0
add esp, 0xc
push dword [esp + 0x20]
push ebx
push esi
push 1
push esi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov esi, eax
test esi, esi
jne 0x401457
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret

Function at 0x4014b6
Capabilities:
Get domain controller name

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x40020010
push esi
push esi
push ecx
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x40152f
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
add ecx, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4014e2
sub ecx, edx
sar ecx, 1
push edi
lea edi, [ecx*2 + 2]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
test ecx, ecx
je 0x401523
mov eax, dword [ebp - 4]
xor esi, esi
push edi
inc esi
mov eax, dword [eax]
add eax, 4
push eax
push ecx
call fcn.00461aa0
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
pop edi
jmp 0x40153c
push eax
push 0x487568
call fcn.004015b8
pop ecx
pop ecx
mov eax, esi
pop esi
leave
ret
Function at 0x40225b
Capabilities:
Encrypt data using rc4 via systemfunction033

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
push 0x10
pop eax
mov edi, ecx
mov dword [esp + 0x18], eax
xor ebp, ebp
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x20], eax
mov ebx, dword [edi + 4]
cmp dword [0x49590c], ebp
je 0x40238c
cmp dword [0x495908], ebp
je 0x40238c
cmp dword [edi], 0x14
jb 0x402385
test ebx, ebx
je 0x402385
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.cryptdll.dll_MD5Init]
push dword [0x495908]
mov esi, dword [sym.imp.cryptdll.dll_MD5Update]
lea eax, [esp + 0x34]
push dword [0x49590c]
push eax
call esi
push 0x10
push ebx
lea eax, [esp + 0x38]
push eax
call esi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.cryptdll.dll_MD5Final]
mov eax, dword [edi]
sub eax, 0x10
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
lea eax, [ebx + 0x10]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction033]
test eax, eax
js 0x40237e
mov esi, dword [edi]
lea eax, [ebx + 0x14]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
push ecx
sub esi, 0x14
mov edx, eax
push esi
call fcn.00401106
add esp, 0xc
test eax, eax
je 0x402377
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx + 0x10]
jne 0x402364
mov ebx, dword [edi + 4]
push esi
call fcn.00401a29
mov dword [edi + 4], eax
test eax, eax
je 0x402397
push esi
push dword [esp + 0x18]
push eax
call fcn.00461aa0
add esp, 0xc
mov dword [edi], esi
inc ebp
test ebx, ebx
je 0x402397
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x402397
push dword [ebx + 0x10]
push eax
push str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___Checksums_dont_match__C:0x_08x___R:0x_08x__n
call fcn.004015b8
add esp, 0xc
jmp 0x402397
push str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___Unable_to_calculate_CRC32_n
jmp 0x402391
push str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___RtlDecryptData2_n
jmp 0x402391
push str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_valid_data_n
jmp 0x402391
push str.ERROR_kull_m_rpc_drsr_ProcessGetNCChangesReply_decrypt___No_Session_Key_n
call fcn.004015b8
pop ecx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x8c
ret
Function at 0x4023a4
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov ebx, ecx
xor edi, edi
test edx, edx
mov eax, 0x495908
push 0x10
cmovne eax, edx
mov edx, dword [ebx]
pop ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x90]
mov dword [esp + 0x28], ecx
lea ecx, [edx + 0x14]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
cmp dword [eax + 4], edi
je 0x4024ec
cmp dword [eax], edi
je 0x4024ec
test edx, edx
je 0x4024e5
cmp dword [ebx + 4], edi
je 0x4024e5
push ecx
call fcn.00401a29
mov dword [esp + 0x10], eax
test eax, eax
je 0x4024f7
push dword [ebx]
lea esi, [eax + 0x14]
mov ebp, eax
push dword [ebx + 4]
push esi
call fcn.00461aa0
add esp, 8
mov eax, ebp
add eax, 0x10
mov edx, esi
mov dword [esp + 0x20], eax
push eax
push dword [ebx]
call fcn.00401106
add esp, 0xc
test eax, eax
je 0x4024d1
push 0x10
push ebp
call dword [sym.imp.cryptdll.dll_CDGenerateRandomBits]
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.cryptdll.dll_MD5Init]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.cryptdll.dll_MD5Update]
push dword [eax]
push dword [eax + 4]
lea eax, [esp + 0x40]
push eax
call esi
push 0x10
push ebp
lea eax, [esp + 0x40]
push eax
call esi
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.cryptdll.dll_MD5Final]
mov esi, dword [esp + 0x18]
add esi, 0x14
lea eax, [esi - 0x10]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_SystemFunction032]
test eax, eax
js 0x4024c0
mov ebp, dword [ebx + 4]
inc edi
mov eax, dword [esp + 0x10]
mov dword [ebx + 4], eax
mov dword [ebx], esi
jmp 0x4024cb
push str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___RtlEncryptData2_n
call fcn.004015b8
pop ecx
test ebp, ebp
je 0x4024f7
jmp 0x4024dc
push str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___Unable_to_calculate_CRC32_n
call fcn.004015b8
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4024f7
push str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___No_valid_data_n
jmp 0x4024f1
push str.ERROR_kull_m_rpc_drsr_CreateGetNCChangesReply_encrypt___No_Session_Key_n
call fcn.004015b8
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
Function at 0x402bd2
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov eax, ecx
xor esi, esi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], eax
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], esi
push ecx
push esi
lea ecx, [ebp - 8]
mov dword [ebp - 4], esi
push ecx
push esi
push eax
push dword [ebp + 0x10]
mov edi, edx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x402c70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x402c70
mov eax, dword [ebp - 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
add eax, eax
push eax
push 0x40
call ebx
mov dword [edi], eax
test eax, eax
je 0x402c6f
mov eax, dword [ebp - 4]
add eax, eax
push eax
push 0x40
call ebx
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
test eax, eax
je 0x402c65
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push dword [edi]
push dword [ebp - 0x10]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test esi, esi
jne 0x402c6f
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebx], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], eax
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x40a4a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [ecx + 8]
mov ebp, edx
push edi
mov edi, dword [esp + 0x10]
xor edx, edx
test edi, edi
jle 0x40a4d2
push ebx
mov ebx, dword [ecx]
mov al, byte [edx + ebp]
xor byte [ebx + esi], al
lea eax, [esi + 1]
xor esi, esi
cmp eax, dword [ecx + 4]
cmovl esi, eax
inc edx
cmp edx, edi
jl 0x40a4bb
pop ebx
add dword [ecx + 0xc], edi
pop edi
mov dword [ecx + 8], esi
pop esi
pop ebp
ret

Function at 0x40d78e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
mov esi, dword [edi + 0x88]
test esi, esi
je 0x40d7be
mov eax, dword [esp + 0x14]
mov dword [eax], esi
mov eax, dword [esi + 0x10]
mov dword [edi + 0x88], eax
mov eax, dword [esi + 8]
and dword [esi + 0x10], 0
and dword [eax], 0
and dword [eax + 4], 0
jmp 0x40d820
movzx eax, word [edi + 0x8c]
cdq
add eax, 0x28
adc edx, 0
push edx
push eax
call fcn.00404aaa
pop ecx
pop ecx
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [ecx], esi
test esi, esi
jne 0x40d809
mov eax, dword [edi + 0x98]
lea ecx, [ebp - 1]
push esi
cdq
push ecx
push edx
push eax
call fcn.00473af0
mov ecx, dword [edi + 0x3c]
push edx
mov edx, dword [esp + 0x14]
push eax
call fcn.00404440
pop ecx
pop ecx
push 7
pop eax
jmp 0x40d82f
lea eax, [esi + 0x28]
mov dword [esi + 0x14], edi
mov dword [esi + 8], eax
push 0x20
pop eax
mov word [esi + 0x1c], ax
xor eax, eax
inc eax
mov word [esi + 0x1e], ax
mov eax, dword [esp + 0x10]
mov dword [esi + 4], eax
mov dword [esi + 0x18], ebp
inc dword [edi + 0x78]
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x41263e
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
movzx eax, word [ecx + 0x12]
and dword [esp], 0
push ebx
push ebp
movzx ebp, byte [ecx + 9]
push esi
movzx esi, word [ecx + 0x18]
push edi
mov edi, dword [ecx + 0x38]
mov dword [esp + 0x14], edx
lea esi, [eax + esi*2]
mov dword [esp + 0x18], ecx
movzx ebx, byte [edi + ebp + 5]
movzx eax, byte [edi + ebp + 6]
shl ebx, 8
or ebx, eax
cmp esi, ebx
jbe 0x412698
test ebx, ebx
jne 0x412687
mov eax, dword [ecx + 0x34]
mov ebx, 0x10000
cmp dword [eax + 0x24], ebx
je 0x412698
mov ecx, 0xfe0c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.0045d81d
cmp byte [edi + ebp + 2], 0
jne 0x4126a6
cmp byte [edi + ebp + 1], 0
je 0x4126df
lea eax, [esi + 2]
cmp eax, ebx
ja 0x4126df
lea eax, [esp + 0x10]
push eax
call fcn.00412557
pop ecx
test eax, eax
je 0x4126cf
mov ecx, dword [esp + 0x20]
sub eax, edi
mov dword [ecx], eax
cmp eax, esi
jg 0x41272e
mov ecx, 0xfe1c
jmp 0x41268c
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x412730
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea eax, [esi + 2]
add eax, edx
cmp eax, ebx
jle 0x412719
mov eax, dword [ecx + 0x14]
sub eax, edx
push 4
lea edx, [eax - 2]
pop eax
cmp edx, eax
cmovg edx, eax
call fcn.004121cc
test eax, eax
jne 0x412730
movzx ecx, byte [edi + ebp + 5]
movzx eax, byte [edi + ebp + 6]
mov edx, dword [esp + 0x14]
shl ecx, 8
or ecx, eax
dec ecx
movzx ebx, cx
inc ebx
sub ebx, edx
mov eax, ebx
mov byte [edi + ebp + 6], bl
sar eax, 8
mov byte [edi + ebp + 5], al
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x42eb5c
Capabilities:
Reference sql statements

Disassembly:
push ecx
push ebx
push esi
push edi
push dword [esp + 0x14]
mov esi, edx
mov ebx, str.sqlite_master
push esi
push ebx
push esi
mov edi, ecx
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push edi
call fcn.004321e7
add esp, 0x18
cmp dword [esp + 0x14], 0
jne 0x42eb95
push esi
push ebx
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push edi
call fcn.004321e7
add esp, 0x10
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x45ded5
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
xor ecx, ecx
call fcn.0045df57
push 0
push 0x45df4a
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push dword [0x495ccc]
push 1
call fcn.00466467
push eax
call fcn.00466bcf
pop ecx
pop ecx
push eax
call fcn.004669e0
pop ecx
pop ecx
push dword [0x495cc4]
push 2
call fcn.00466467
push eax
call fcn.00466bcf
pop ecx
pop ecx
push eax
call fcn.004669e0
pop ecx
pop ecx
push dword [0x495cc8]
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
cmp esi, 0xc000004b
pop esi
push 0
jne 0x45df43
call dword [sym.imp.KERNEL32.dll_ExitThread]
call dword [sym.imp.KERNEL32.dll_ExitProcess]