joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10056340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [edx + 0x14]
mov ebx, ecx
mov ecx, edi
call fcn.10048b30
mov eax, dword [edi + 0x14]
mov esi, dword [edi + 0x10]
test eax, eax
jl 0x10056412
jg 0x10056412
test esi, esi
je 0x10056412
test eax, eax
jg 0x10056412
jl 0x10056387
cmp esi, 0x7fffffff
ja 0x10056412
xor eax, eax
mov dword [ebp - 8], ebx
mov word [ebp - 0x20], ax
mov dword [ebp - 0x10], eax
movsx eax, byte [edi + 0x44]
mov edx, dword [edi + 0x18]
mov eax, dword [edi + eax*4 + 0x78]
mov ecx, dword [eax + 0x3c]
movzx eax, word [edi + 0x20]
sub ecx, edx
cmp eax, ecx
cmovae eax, ecx
cmp esi, eax
ja 0x100563c1
mov eax, 0x1010
mov dword [ebp - 0x18], edx
mov word [ebp - 0x20], ax
mov dword [ebp - 0x1c], esi
jmp 0x100563de
lea eax, [ebp - 0x28]
xor edx, edx
push eax
push 1
push esi
mov ecx, edi
call fcn.10050f90
add esp, 0xc
test eax, eax
jne 0x1005643e
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
push 0
push dword [ebp + 8]
mov ecx, esi
call fcn.10055700
mov ecx, dword [ebp + 0xc]
add esp, 8
test dword [ebp - 0x20], 0x2460
mov dword [ecx], eax
jne 0x10056401
cmp dword [ebp - 0x10], 0
je 0x10056409
lea ecx, [ebp - 0x28]
call fcn.100505c0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push 0x100f3b28
push 0x11ad7
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
mov dword [eax], 0
call fcn.10035bd0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10060f30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
push 0
push 0x14
mov dword [ebx], 0
call fcn.10033440
mov esi, eax
add esp, 8
test esi, esi
jne 0x10060f60
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x100fc7ec], 0
mov edi, dword [ebp + 8]
je 0x10060faa
mov eax, dword [0x100fc8f0]
test eax, eax
je 0x10060f83
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x10060faa
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x10035da0
push 0
push 0
mov dword [esi + 0xc], edi
call fcn.100c3e33
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x10060fb7
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x10060fd0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi + 4], eax
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x10], eax
pop edi
mov dword [ebx], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1006f8d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], edx
xor eax, eax
mov edx, ecx
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], ecx
cmp dword [edx + 0x14], eax
jle 0x1006f96b
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, eax
xor ebx, 1
cmp eax, 2
cmovge ebx, eax
test edi, edi
je 0x1006f976
mov eax, dword [edx + 0x10]
mov ecx, ebx
add ecx, ecx
mov esi, edi
mov edx, dword [eax + ecx*8]
mov al, byte [edi]
movzx ecx, al
movzx edi, byte [ecx + 0x100eac28]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x100eac28]
sub edi, ecx
jne 0x1006f954
sub edx, esi
mov dword [ebp - 0x10], edx
nop dword [eax]
test al, al
je 0x1006f96f
movzx ecx, byte [edx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x100eac28]
mov al, byte [esi]
movzx ecx, al
movzx edi, byte [ecx + 0x100eac28]
sub edi, edx
mov edx, dword [ebp - 0x10]
je 0x1006f930
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [edx + 0x14]
jl 0x1006f8f0
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x1006f954
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
add ebx, ebx
push eax
mov eax, dword [edx + 0x10]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax + ebx*8 + 0xc]
add ecx, 8
call fcn.10037c70
add esp, 4
test eax, eax
je 0x1006f9a1
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x1006f966
jmp 0x1006f957
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x1006f957

Function at 0x1006fc60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
mov dword [ebp - 0xc], edx
push edi
xor ecx, ecx
xor edi, edi
mov dword [ebp - 4], ecx
mov edx, dword [eax + 0x14]
mov dword [ebp - 0x10], edx
test edx, edx
jle 0x1006fd36
mov edx, dword [eax + 0x10]
push ebx
mov dword [ebp - 0x14], edx
push esi
nop dword [eax]
mov eax, edi
xor eax, 1
cmp edi, 2
cmovge eax, edi
shl eax, 4
mov ecx, dword [eax + edx + 0xc]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1006fd03
mov ebx, dword [eax + edx]
mov esi, ecx
mov al, byte [ecx]
movzx ecx, byte [ebx]
movzx edx, byte [ecx + 0x100eac28]
movzx ecx, al
movzx ecx, byte [ecx + 0x100eac28]
sub ecx, edx
jne 0x1006fcf1
sub ebx, esi
nop dword [eax]
test al, al
je 0x1006fcff
movzx ecx, byte [ebx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x100eac28]
mov al, byte [esi]
movzx ecx, al
movzx ecx, byte [ecx + 0x100eac28]
sub ecx, edx
je 0x1006fcd0
mov ecx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp - 0x10]
jge 0x1006fd26
mov edx, dword [ebp - 0x14]
jmp 0x1006fc90
test ecx, ecx
jne 0x1006fcf1
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
add ecx, 0x18
push eax
call fcn.10037c70
add esp, 4
test eax, eax
je 0x1006fd2f
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x1006fcf4
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x1006fcf4
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100a85d0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x100fb074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.RtlGetVersion
push str.ntdll.dll
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x118
mov esi, eax
mov dword [ebp - 0x124], 0
xorps xmm0, xmm0
lea eax, [ebp - 0x11c]
push 0
push eax
movups xmmword [ebp - 0x144], xmm0
movups xmmword [ebp - 0x134], xmm0
call fcn.100b7060
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
test esi, esi
je 0x100a864c
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
jns 0x100a866d
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x100a866d
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b47d2
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [ebp - 0x110]
xor eax, eax
cmp ecx, 2
jne 0x100a8776
mov ecx, dword [ebp - 0x11c]
cmp ecx, 0xa
jne 0x100a86b1
cmp dword [ebp - 0x118], eax
jne 0x100a87a8
cmp byte [ebp - 6], 1
setne al
add eax, 0x11
jmp 0x100a87a8
cmp ecx, 6
jne 0x100a8716
mov ecx, dword [ebp - 0x118]
cmp ecx, 3
jne 0x100a86d2
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 0xf
jmp 0x100a87a8
cmp ecx, 2
jne 0x100a86e8
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 0xd
jmp 0x100a87a8
cmp ecx, 1
jne 0x100a86fd
xor eax, eax
cmp byte [ebp - 6], cl
setne al
add eax, 0xb
jmp 0x100a87a8
test ecx, ecx
jne 0x100a87a8
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 9
jmp 0x100a87a8
cmp ecx, 5
jne 0x100a876a
mov ecx, dword [ebp - 0x118]
cmp ecx, 2
jne 0x100a8757
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x100a8739
mov eax, 8
jmp 0x100a87a8
cmp byte [ebp - 6], 1
jne 0x100a8750
cmp word [ebp - 0x144], 9
jne 0x100a8750
mov eax, 6
jmp 0x100a87a8
mov eax, 7
jmp 0x100a87a8
cmp ecx, 1
jne 0x100a8761
lea eax, [ecx + 5]
jmp 0x100a87a8
test ecx, ecx
jne 0x100a87a8
lea eax, [ecx + 5]
jmp 0x100a87a8
cmp ecx, 4
ja 0x100a87a8
mov eax, 4
jmp 0x100a87a8
cmp ecx, 1
jne 0x100a87a8
cmp dword [ebp - 0x11c], 4
jne 0x100a87a8
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x100a8793
lea eax, [ecx + 1]
jmp 0x100a87a8
cmp ecx, 0xa
jne 0x100a879d
lea eax, [ecx - 8]
jmp 0x100a87a8
cmp ecx, 0x5a
mov edx, 3
cmove eax, edx
test edi, edi
je 0x100a87ae
mov dword [edi], eax
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.100b47d2
mov esp, ebp
pop ebp
ret
Function at 0x100aece0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [edx*4 + 0x100fe7e0], eax
inc edx
cmp edx, 0x100
jb 0x100aece2
push esi
mov eax, 0x100fe7e4
mov esi, 0x1c0
mov edx, dword [eax - 4]
lea eax, [eax + 0x10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x100fe7e0]
mov dword [eax + 0x3ec], edx
mov edx, dword [eax - 0x10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x100fe7e0]
mov dword [eax + 0x3f0], edx
mov edx, dword [eax - 0xc]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x100fe7e0]
mov dword [eax + 0x3f4], edx
mov edx, dword [eax - 8]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x100fe7e0]
mov dword [eax + 0x3f8], edx
sub esi, 1
jne 0x100aed87
mov dword [0x100fe7cc], 0x100affe0
mov dword [0x100fe7c4], 0x100affe0
mov dword [0x100fe7c8], 0x100b0080
call fcn.100afdf0
mov ecx, dword [0x100fe7c4]
test eax, eax
mov edx, 0x100b0080
cmove ecx, edx
mov dword [0x100fe7c4], ecx
pop esi
ret

Function at 0x100aef60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
je 0x100aefb3
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
push 0
mov ecx, 0x400000
mov dword [ebp + 0x10], 0
lea eax, [ebp + 0x10]
cmp esi, ecx
push eax
mov eax, esi
cmova eax, ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x100aefba
test ecx, ecx
je 0x100aefb3
test esi, esi
jne 0x100aef78
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x100af060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
je 0x100af0b3
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
push 0
mov ecx, 0x400000
mov dword [ebp + 0x10], 0
lea eax, [ebp + 0x10]
cmp esi, ecx
push eax
mov eax, esi
cmova eax, ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x100af0ba
test ecx, ecx
je 0x100af0b3
test esi, esi
jne 0x100af078
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x100b04b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x100b04d0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
mov ecx, dword [ebp + 8]
push ebx
lea ebx, [eax - 4]
add ebx, ecx
mov dword [ebp - 4], ebx
lea eax, [edi + ecx]
cmp eax, ebx
jae 0x100b04f9
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x100b04f6
inc eax
cmp eax, ebx
jb 0x100b04e7
mov ecx, dword [ebp + 8]
mov edx, eax
sub edx, edi
mov edi, eax
sub edx, ecx
sub edi, ecx
cmp eax, ebx
jae 0x100b05fd
cmp edx, 2
jbe 0x100b0582
xor esi, esi
movzx edx, byte [eax + 4]
lea ecx, [edx + 1]
test cl, 0xfe
jne 0x100b05e9
movzx ecx, byte [eax + 3]
mov ebx, dword [ebp + 0x10]
shl edx, 8
add ebx, edi
or edx, ecx
movzx ecx, byte [eax + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
add edx, ebx
sub ecx, ebx
cmp dword [ebp + 0x18], 0
cmove edx, ecx
mov dword [ebp + 0xc], edx
mov ebx, edx
test esi, esi
je 0x100b05b9
and esi, 6
shl esi, 2
mov ecx, esi
shr edx, cl
inc edx
test dl, 0xfe
jne 0x100b05b7
mov ebx, 0x100
shl ebx, cl
mov ecx, dword [ebp + 0x10]
dec ebx
xor ebx, dword [ebp + 0xc]
add ecx, edi
cmp dword [ebp + 0x18], 0
je 0x100b05b5
add ebx, ecx
jmp 0x100b05b7
mov ecx, edx
shr esi, cl
test esi, esi
je 0x100b0512
cmp esi, 4
ja 0x100b05a7
cmp esi, 3
je 0x100b05a7
mov ecx, esi
shr ecx, 1
movzx ecx, byte [ecx + eax + 1]
inc ecx
test cl, 0xfe
jne 0x100b0512
mov ecx, dword [ebp + 8]
or esi, 8
shr esi, 1
inc edi
jmp 0x100b04e0
sub ebx, ecx
xor esi, esi
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, ebx
shr ebx, 0x18
and bl, 1
shr ecx, 0x10
neg bl
mov byte [eax + 3], cl
mov ecx, dword [ebp + 8]
mov byte [eax + 4], bl
mov eax, 5
mov ebx, dword [ebp - 4]
add edi, eax
jmp 0x100b04e0
mov ecx, dword [ebp + 8]
or esi, 8
mov eax, 1
shr esi, 1
add edi, eax
jmp 0x100b04e0
mov eax, dword [ebp + 0x14]
mov ecx, edx
shr esi, cl
xor ecx, ecx
cmp edx, 2
pop ebx
cmovbe ecx, esi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100cb4b1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100cb330

Function at 0x100d05be
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d027e
Function at 0x100db000
Capabilities:
Authenticate hmac
Encode data using xor
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x40
mov dword [ebp - 4], edi
lea eax, [edi + 0x2e0]
nop dword [eax]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor cl, 0x36
lea eax, [eax + 1]
mov byte [eax - 0x41], cl
movzx ecx, byte [edx - 1]
xor cl, 0x5c
mov byte [eax - 1], cl
sub esi, 1
jne 0x100db020
mov dword [edi + 0x88], 0x6a09e667
lea edx, [edi + 0x2a0]
mov dword [edi + 0x8c], 0xbb67ae85
mov ecx, edi
mov dword [edi + 0x90], 0x3c6ef372
mov dword [edi + 0x94], 0xa54ff53a
mov dword [edi + 0x98], 0x510e527f
mov dword [edi + 0x9c], 0x9b05688c
mov dword [edi + 0xa0], 0x1f83d9ab
mov dword [edi + 0xa4], 0x5be0cd19
push 0x40
mov dword [edi + 4], esi
mov dword [edi], esi
call fcn.100dbd00
lea ebx, [edi + 0xa8]
add esp, 4
mov dword [ebx + 0x88], 0x6a09e667
lea edx, [edi + 0x2e0]
mov dword [ebx + 0x8c], 0xbb67ae85
mov ecx, ebx
mov dword [ebx + 0x90], 0x3c6ef372
mov dword [ebx + 0x94], 0xa54ff53a
mov dword [ebx + 0x98], 0x510e527f
mov dword [ebx + 0x9c], 0x9b05688c
mov dword [ebx + 0xa0], 0x1f83d9ab
mov dword [ebx + 0xa4], 0x5be0cd19
push 0x40
mov dword [ebx + 4], esi
mov dword [ebx], esi
call fcn.100dbd00
mov eax, dword [ebp - 4]
add esp, 4
add edi, 0x150
mov ecx, 0x2a
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, ebx
lea edi, [eax + 0x1f8]
mov ecx, 0x2a
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100db160
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0x80
push 0x100
mov ebx, edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], 0x400
call fcn.100bd8fa
add esp, 4
mov esi, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
jne 0x100db203
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100db203
cmp dword [ebp - 8], 0x400
jbe 0x100db1d0
push esi
call fcn.100bd905
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
cmp eax, 0x80
jbe 0x100db1e8
add eax, eax
push eax
push esi
call fcn.100bfe60
add esp, 8
mov esi, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0x10]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
push esi
call fcn.100bd905
add esp, 4
xor eax, eax
test edi, edi
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100db220
Capabilities:
Get common file path
Get disk information
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x100fb074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0x10
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
mov esi, edx
mov edi, ecx
push eax
mov dword [ebp - 0x434], esi
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x100db36b
push ecx
lea edx, [ebp - 0x428]
lea ecx, [ebp - 0x24]
call fcn.100db160
add esp, 4
test eax, eax
je 0x100db36b
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidIdentifierAuthority]
mov edx, eax
mov cl, byte [edx]
test cl, cl
jne 0x100db2d9
cmp byte [edx + 1], cl
jne 0x100db2d9
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
push ecx
push 1
push str.S__d__lu
push 0x400
push edi
call fcn.100db140
add esp, 0x14
jmp 0x100db306
movzx eax, byte [edx + 5]
push eax
movzx eax, byte [edx + 4]
push eax
movzx eax, byte [edx + 3]
push eax
movzx eax, byte [edx + 2]
push eax
movzx eax, byte [edx + 1]
push eax
movzx eax, cl
push eax
push 1
push str.S__d_0x_02hx_02hx_02hx_02hx_02hx_02hx
push edi
call fcn.100db140
add esp, 0x24
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
xor ebx, ebx
movzx eax, byte [eax]
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x100db36b
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100db327
push ebx
lea eax, [ebp - 0x428]
sub esi, ecx
push eax
sar esi, 1
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
push dword [eax]
lea eax, [edi + esi*2]
push str.__lu
push 0x400
push eax
call fcn.100db140
inc ebx
add esp, 0x10
cmp ebx, dword [ebp - 0x42c]
jl 0x100db322
mov esi, dword [ebp - 0x434]
push 0x104
lea eax, [ebp - 0x238]
mov dword [ebp - 0x42c], 0
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100db3dd
lea eax, [ebp - 0x238]
push 0x100ed21c
push eax
call fcn.100bfe6b
add esp, 8
test eax, eax
je 0x100db3af
xor ecx, ecx
mov word [eax + 2], cx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x42c]
push eax
push 0
push 0
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x100db3dd
mov eax, dword [ebp - 0x42c]
mov dword [esi], eax
jmp 0x100db3e3
mov dword [esi], 0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b47d2
mov esp, ebp
pop ebp
ret
Function at 0x100db400
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x92c
mov eax, dword [0x100fb074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
lea edx, [ebp - 0x92c]
push edi
lea ecx, [ebp - 0x8c0]
call fcn.100db220
test eax, eax
jne 0x100db43e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100b47d2
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x8c0]
mov dword [ebp - 0x914], 0
mov dword [ebp - 0x910], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x8cc], 0
mov dword [ebp - 0x928], 0x67452301
mov dword [ebp - 0x924], 0xefcdab89
mov dword [ebp - 0x920], 0x98badcfe
mov dword [ebp - 0x91c], 0x10325476
mov dword [ebp - 0x918], 0xc3d2e1f0
mov dword [ebp - 0x8c8], 0
mov dword [ebp - 0x8c4], 0
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100db4b0
sub ecx, edx
lea edx, [ebp - 0x8c0]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea ecx, [ebp - 0x928]
call fcn.1000a190
add esp, 4
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x928]
call fcn.1000a0a0
xor esi, esi
lea edi, [ebp - 0xc0]
nop dword [eax]
movzx eax, byte [ebp + esi - 0x40]
push eax
push str._02X
push edi
call fcn.100038c0
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x14
jl 0x100db4f0
mov ecx, dword [ebp - 0x92c]
mov eax, dword [ebp - 0x30]
movups xmm0, xmmword [ebp - 0x40]
mov dword [ebp - 0x10], eax
mov eax, ecx
sar eax, 0x18
mov byte [ebp - 0xc], al
mov eax, ecx
sar eax, 0x10
mov byte [ebp - 0xb], al
mov eax, ecx
sar eax, 8
mov byte [ebp - 0xa], al
xor al, al
movups xmmword [ebp - 0x20], xmm0
mov byte [ebp - 9], cl
xor edx, edx
movzx ecx, byte [ebp + edx - 0x20]
movzx eax, al
xor ecx, eax
movzx eax, byte [ebp + edx - 0x1f]
movzx ecx, byte [ecx + 0x100e8e98]
xor ecx, eax
movzx eax, byte [ebp + edx - 0x1e]
movzx ecx, byte [ecx + 0x100e8e98]
xor ecx, eax
movzx eax, byte [ebp + edx - 0x1d]
movzx ecx, byte [ecx + 0x100e8e98]
xor ecx, eax
movzx eax, byte [ebp + edx - 0x1c]
movzx ecx, byte [ecx + 0x100e8e98]
xor ecx, eax
movzx eax, byte [ebp + edx - 0x1b]
add edx, 6
movzx ecx, byte [ecx + 0x100e8e98]
xor ecx, eax
mov al, byte [ecx + 0x100e8e98]
cmp edx, 0x18
jl 0x100db540
xor al, 0x55
xor esi, esi
mov byte [ebp - 8], al
movzx eax, byte [ebp + esi - 0x20]
push eax
push str._02X
push ebx
call fcn.100038c0
inc esi
add esp, 0xc
add ebx, 2
cmp esi, 0x19
jb 0x100db5a5
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b47d2
mov esp, ebp
pop ebp
ret