joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403820
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4386a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x450068]
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 dword [ebp - 0x1c], ecx
mov ebx, dword [ebp + 0xc]
mov esi, ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x28], ecx
jb 0x403871
mov esi, dword [ebx]
lea edi, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x403891
nop
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x403880
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax + 0x18]
mov esi, dword [eax + 4]
and edi, edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x24], edi
mov ecx, dword [eax + edi*8]
mov dword [ebp - 0x18], ecx
cmp ecx, esi
je 0x4038b2
mov esi, dword [eax + edi*8 + 4]
mov esi, dword [esi]
mov edx, dword [ebx + 0x10]
cmp esi, ecx
je 0x40394e
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x4038cc
mov eax, dword [esi + 8]
cmp dword [ebx + 0x14], 8
mov edi, ebx
jb 0x4038d6
mov edi, dword [ebx]
mov ecx, dword [ebp - 0x18]
cmp edx, dword [esi + 0x18]
jne 0x4038b5
mov ecx, dword [ebx + 0x10]
mov edx, ecx
test ecx, ecx
je 0x403901
sub edi, eax
nop dword [eax]
mov cx, word [edi + eax]
cmp cx, word [eax]
jne 0x403946
add eax, 2
sub edx, 1
jne 0x4038f0
mov edi, dword [ebp + 0x10]
push edi
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x1c]
dec dword [ecx + 8]
call fcn.00403030
mov eax, dword [ebp - 0x20]
mov dword [eax], esi
mov byte [eax + 4], 0
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.0041aaeb
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x18]
jmp 0x4038b2
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
cmp esi, eax
je 0x40397b
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx + 0xc]
lea ecx, [eax + edx*8]
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x403999
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [eax + edx*8 + 4], edi
jmp 0x4039bc
cmp eax, esi
jne 0x4039a1
mov dword [ecx], edi
jmp 0x4039bc
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x4039bc
mov eax, dword [ebx + 0xc]
lea edx, [eax + edx*8]
mov eax, dword [edx + 4]
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.00403460
mov eax, dword [ebp - 0x20]
mov dword [eax], edi
mov byte [eax + 4], 1
jmp 0x403928
Function at 0x406500
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43898a
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x450068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x447e0c
mov dword [edi + 0x10], 0x447e48
mov dword [edi + 0x68], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
push 0
push 0
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov ebx, dword [eax + 4]
add ebx, edi
mov ecx, ebx
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
call fcn.00404e60
push 8
call fcn.0041ab01
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 3
call fcn.00419ede
mov dword [esi + 4], eax
add esp, 8
lea eax, [edi + 0x18]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
mov dword [ebp - 4], 4
mov ecx, dword [esi + 4]
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 5
push eax
call fcn.00407ea0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx esi, ax
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x406658
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x406658
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov byte [ebp - 4], 2
cmp dword [ebx + 0x38], 0
mov word [ebx + 0x40], si
jne 0x406676
mov eax, dword [ebx + 0xc]
mov ecx, ebx
or eax, 4
push 0
push eax
call fcn.00404e60
lea edx, [edi + 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + edi - 4], eax
mov dword [ebp - 4], 9
mov eax, dword [edi]
push ecx
push dword [ebp + 8]
lea ecx, [edi + 0x18]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x68]
mov dword [edx + edi - 4], eax
call fcn.00407660
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407660
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4389f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x450068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0041ab01
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00419ede
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], 1
mov dword [edi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x10], eax
jb 0x407732
mov ecx, dword [ecx]
mov dword [ebp + 8], ecx
xor ecx, ecx
cmp eax, 0x7fffffff
ja 0x4077ea
test eax, eax
je 0x4077ce
lea ebx, [eax + eax]
cmp ebx, 0x1000
jb 0x407779
lea eax, [ebx + 0x23]
or ecx, 0xffffffff
cmp eax, ebx
cmovbe eax, ecx
push eax
call fcn.0041ab01
add esp, 4
test eax, eax
je 0x4077ef
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x40778c
test ebx, ebx
je 0x40778a
push ebx
call fcn.0041ab01
add esp, 4
mov esi, eax
jmp 0x40778c
xor esi, esi
push ebx
push dword [ebp + 8]
push esi
call fcn.0041c560
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + esi]
mov dword [edi + 0x38], eax
add esp, 0xc
mov eax, dword [edi + 0xc]
mov dword [eax], esi
mov eax, dword [edi + 0x1c]
mov dword [eax], esi
mov eax, dword [edi + 0x2c]
mov dword [eax], ecx
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x38]
sub ecx, esi
sar ecx, 1
mov dword [eax], esi
mov eax, dword [edi + 0x20]
mov dword [eax], esi
mov eax, dword [edi + 0x30]
mov dword [eax], ecx
mov ecx, 1
jmp 0x4077d1
mov dword [edi + 0x38], ecx
mov dword [edi + 0x3c], ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00419a74
call fcn.00422e9e
int3
Function at 0x409b10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [0x450068]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409b6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0x1c], esi
push eax
push 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x60], 0xaac56b
mov dword [esp + 0x64], 0x11d0cd44
mov dword [esp + 0x68], 0xc000c28c
mov dword [esp + 0x6c], 0xee95c24f
mov dword [esp + 0x30], 0x30
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 1
mov dword [esp + 0x4c], 1
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0x1000
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
cmp dword [0x452110], 0
mov dword [esp + 0x10], eax
je 0x409c2c
push ebx
push esi
call fcn.0040a5c0
lea eax, [esp + 0x24]
mov dword [esp + 0x40], 2
push eax
lea eax, [esp + 0x58]
push eax
push 0
call dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret 8
Function at 0x40a030
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x450068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
xorps xmm0, xmm0
push 0xf0000000
push 1
push 0
push 0
push eax
movups xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40a0d0
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40a0d0
push 0
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40a0d0
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40a0d0
movups xmm0, xmmword [ebp - 0x14]
push dword [ebp - 0x18]
movups xmmword [edi], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a300
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x450068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push edi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
push 0xf0000000
push 1
push 0
push 0
push eax
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0x24], 0x14
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40a3ad
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x8004
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40a3ad
push 0
push dword [ebp + 0xc]
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40a3ad
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 2
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40a3ad
movups xmm0, xmmword [ebp - 0x18]
mov eax, dword [ebp - 8]
push dword [ebp - 0x1c]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40a3c0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x450068]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x2c]
push edi
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
push 0xf0000000
push 0x18
push 0
push 0
push eax
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x30], 0x20
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40a46c
lea eax, [ebp - 0x28]
push eax
push 0
push 0
push 0x800c
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40a46c
push 0
push dword [ebp + 0xc]
push edi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40a46c
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
push 2
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40a46c
movups xmm0, xmmword [ebp - 0x24]
push dword [ebp - 0x28]
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [esi + 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a480
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x450068]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x1c], 0
cmp edi, 0xffffffff
je 0x40a4ee
test edi, edi
je 0x40a4ee
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x40a504
push eax
push 0x44848c
call fcn.004116a0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [ecx], ebx
mov dword [ecx + 4], eax
cmp ebx, 0x1e00000
jbe 0x40a53a
push esi
push edi
call fcn.0040a0f0
mov al, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret 0x14
push ebx
call fcn.00423515
mov esi, eax
add esp, 4
test esi, esi
je 0x40a4ee
push 0
lea eax, [esp + 0x20]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40a568
push esi
call fcn.00423302
add esp, 4
jmp 0x40a4ee
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esp + 0x10]
push ebx
push esi
call fcn.0040a030
push dword [esp + 0x14]
push ebx
push esi
call fcn.0040a300
push dword [esp + 0x18]
push ebx
push esi
call fcn.0040a3c0
push esi
call fcn.00423302
mov ecx, dword [esp + 0x30]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40b6c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp dword [edi + 0x1c], 8
lea esi, [edi + 8]
mov ebx, dword [edi + 0x18]
jb 0x40b6e4
mov esi, dword [edi + 8]
xor ecx, ecx
mov edx, 0x811c9dc5
add ebx, ebx
je 0x40b701
nop
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x40b6f0
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
and eax, edx
lea edx, [eax*8]
mov eax, dword [ecx + edx]
add ecx, edx
cmp dword [ecx + 4], edi
jne 0x40b73a
cmp eax, edi
jne 0x40b732
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [edx + ecx + 4], eax
jmp 0x40b742
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x40b742
cmp eax, edi
jne 0x40b742
mov eax, dword [edi]
mov dword [ecx], eax
mov eax, dword [edi + 4]
lea ecx, [edi + 8]
mov esi, dword [edi]
mov dword [eax], esi
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
dec dword [ebx + 8]
call fcn.0040b300
push 0x54
push edi
call fcn.0041aec9
mov eax, dword [ebp - 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40eba0
Capabilities:
Get domain information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x450068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x24], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x20], edx
push eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], esi
push eax
push 0
push esi
push 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 8
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x40ec20
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x40ec20
push 0
push str.LookupAccountSidW_1
call fcn.004116a0
mov eax, 0x104
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
jmp 0x40ec23
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov ebx, 2
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041aed7
mov edi, eax
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041aed7
add esp, 8
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
jne 0x40ed17
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0
call dword [sym.imp.NETAPI32.dll_DsRoleGetPrimaryDomainInformation]
mov esi, eax
test esi, esi
je 0x40ecb8
push 0
push 0x448a20
call fcn.004116a0
push edi
call fcn.0041aafc
push ebx
call fcn.0041aafc
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x40ece9
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push edi
push dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
push dword [ebp - 0x14]
mov esi, eax
call dword [sym.imp.NETAPI32.dll_DsRoleFreeMemory]
test esi, esi
jne 0x40ed17
push 0
push str.LookupAccountSidW_2
call fcn.004116a0
push edi
call fcn.0041aafc
push ebx
call fcn.0041aafc
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
inc eax
mov edx, dword [ebp - 0x1c]
inc ecx
push edi
mov dword [ebp - 0xc], eax
add eax, 2
push 0x447d64
push ecx
push dword [ebp - 0x20]
add eax, ecx
mov dword [ebp - 0x10], ecx
mov dword [edx], eax
call fcn.00413080
push ebx
push 0x447d64
push dword [ebp - 0xc]
push dword [ebp - 0x24]
call fcn.00413080
push edi
call fcn.0041aafc
push ebx
call fcn.0041aafc
mov ecx, dword [ebp - 4]
add esp, 0x28
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret
Function at 0x410490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x450068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x410537
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff4
call edi
cmp eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
je 0x4104e1
push 0xc
push eax
call esi
push str._ERROR_
push 2
call fcn.00422bab
add esp, 4
push eax
call fcn.004040e0
add esp, 8
push 0xfffffffffffffff4
call edi
cmp eax, 0xffffffff
je 0x410507
push 7
push eax
call esi
push str.Failed_to_open_file.
push 0x448f94
push 2
call fcn.00422bab
add esp, 4
push eax
call fcn.004040e0
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret
xor eax, eax
push eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41055a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 2
jae 0x4105aa
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff4
call edi
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp eax, 0xffffffff
je 0x41057a
push 0xc
push eax
call esi
push str._ERROR_
push 2
call fcn.00422bab
add esp, 4
push eax
call fcn.004040e0
add esp, 8
push 0xfffffffffffffff4
call edi
cmp eax, 0xffffffff
je 0x4105a0
push 7
push eax
call esi
push str.Failed_to_read_BOM.
jmp 0x41050c
mov ax, word [ebp - 8]
cmp al, 0xff
jne 0x4105d1
cmp ah, 0xfe
jne 0x410524
mov byte [edi], 1
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret
cmp al, 0xfe
jne 0x410524
cmp ah, 0xff
jne 0x410524
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
mov byte [ebx], 1
xor ecx, ebp
pop ebx
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret