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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov ecx, edi
mov ebx, edi
mov dword [ebp - 4], ecx
mov dword [esi + 0x6af80], 2
jmp 0x5327be
cmp dword [esi + 0x6af90], 3
jb 0x532626
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x532663
mov eax, dword [esi + 0x6af84]
sub eax, ecx
cmp eax, 0x7efa
ja 0x532663
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x53264d
mov dword [esi + 0x6afa0], eax
push ecx
push esi
call fcn.00533186
pop ecx
pop ecx
mov ecx, dword [esi + 0x6af90]
mov ebx, eax
cmp ebx, ecx
cmova ebx, ecx
cmp ebx, 3
jb 0x532749
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.005320fb
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [ebp + 8], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x532700
cmp dword [esi + 0x6af90], 3
jb 0x532700
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [esi + edx + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub ebx, 1
jne 0x5326a1
mov eax, dword [ebp + 8]
jmp 0x532768
add dword [esi + 0x6af84], ebx
mov ebx, edi
mov eax, dword [esi + 0x6af84]
push str.Call_UPDATE_HASH___MIN_MATCH_3_more_times
push 1
push esi
movzx ecx, byte [eax + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
call fcn.00530efc
mov eax, dword [ebp + 8]
add esp, 0xc
jmp 0x53276e
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push edi
push esi
call fcn.005320fb
add esp, 0xc
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x5327a8
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x532786
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x532788
mov edx, edi
mov eax, dword [esi + 0x6af84]
push edi
sub eax, ecx
push eax
push edx
push esi
call fcn.005329d9
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x5327bb
push esi
call fcn.0053288f
pop ecx
mov ecx, dword [ebp - 4]
cmp dword [esi + 0x6af90], edi
jne 0x5325cb
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x5327dc
lea edi, [esi + 0x1af70]
add edi, ecx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push eax
push edi
push esi
call fcn.005329d9
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x533051
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 7
pop ecx
lea eax, [ebx - 1]
cmp ecx, eax
push str.bad_pack_level
sbb al, al
inc al
push eax
push esi
call fcn.00530efc
xor edi, edi
add esp, 0xc
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x53309c
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
mov dword [esi + 0x6af6c], edi
push edi
push eax
call fcn.005f3980
movzx eax, word [ebx*8 + 0x6ab4f2]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x6ab4f0]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x6ab4f4]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x6ab4f6]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x5330ff
mov eax, dword [ebp + 0x10]
or word [eax], 4
jmp 0x53310a
cmp ebx, 8
jl 0x53310a
mov eax, dword [ebp + 0x10]
or word [eax], cx
push 0x10000
lea ebx, [esi + 0x1af70]
mov dword [esi + 0x6af84], edi
push ebx
push esi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x533171
cmp eax, 0xffffffff
je 0x533171
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x53314c
push esi
call fcn.0053288f
pop ecx
mov dword [esi + 0x6af7c], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af7c], ecx
cmp edi, 2
jb 0x533154
jmp 0x533181
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x533f86
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x533fdc
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp eax, esi
jae 0x534019
sub esi, eax
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
add eax, ecx
push esi
push eax
push dword [ebp + 8]
call fcn.005f2e80
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
push dword [ebp + 8]
push dword [edi + 0x78]
call fcn.00531dad
add esp, 0x18
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x53401b
cmp dword [edi + 0x7c], 0
je 0x534012
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x534019
mov esi, dword [ebp - 4]
add dword [edi + 0x74], esi
push esi
push dword [ebp + 8]
push dword [edi + 0x78]
call fcn.00531dad
add esp, 0xc
jmp 0x533fd5
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x5344c9
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x6ab558]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x6ab558]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x534512
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x2d], 0
je 0x53458b
cmp dword [esi + 0x3c], 0
je 0x534544
cmp dword [esi + 0x40], edi
jae 0x53453e
push dword [esi + 0x3c]
call fcn.005b4857
and dword [esi + 0x3c], 0
pop ecx
cmp dword [esi + 0x3c], 0
jne 0x534554
lea eax, [edi + edi]
push eax
call fcn.005b485c
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push dword [esi + 0x3c]
call fcn.005f2e80
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x534588
lea ecx, [esi + 0x30]
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
push ecx
call fcn.005345e5
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
lea ecx, [esi + 0x30]
cmp ebx, edi
jb 0x53456a
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x5345ba
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x5345a6
mov dword [esi + 0x14], 0x30000
jmp 0x5345dc
push edi
add ecx, edx
push ebx
push ecx
call fcn.005f2e80
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x5345de
mov eax, dword [esi + 4]
test eax, eax
je 0x5345d5
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x5345de
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x535bdf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x535bed
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x535bfd
xor al, al
jmp 0x535c04
shr al, 4
not al
and al, 1
pop ebp
ret 4

Function at 0x539bf2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jl 0x539c01
pop ebp
jmp fcn.00539c1a
push str.in_Json::Value::operator___int_index_:_index_cannot_be_negative
push 0x29a
call fcn.00626a10
pop ecx
pop ecx
push 0x7b
call fcn.00610e3c
int3

Function at 0x53a57b
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
movsx eax, byte [esi + 8]
sub eax, 0
je 0x53a5f0
sub eax, 1
je 0x53a5e9
sub eax, 1
je 0x53a5d9
sub eax, 1
je 0x53a5a3
dec eax
sub eax, 1
jne 0x53a5f0
cmp byte [esi], al
setne al
jmp 0x53a5f2
mov edx, SysReAllocStringLen
xor ecx, ecx
call fcn.005b5310
movsd xmm1, qword [esi]
comisd xmm1, xmm0
jb 0x53a5f6
mov edx, SysReAllocString
or ecx, 0xffffffff
call fcn.005b5310
movsd xmm1, qword [esi]
comisd xmm0, xmm1
jb 0x53a5f6
movaps xmm0, xmm1
pop esi
jmp fcn.005b51bf
call fcn.0053b1f9
test al, al
jne 0x53a5e9
push str.LargestUInt_out_of_Int64_range
jmp 0x53a5fb
mov eax, dword [esi]
mov edx, dword [esi + 4]
pop esi
ret
xor eax, eax
xor edx, edx
pop esi
ret
push str.double_out_of_Int64_range
push 0x29a
call fcn.00626a10
pop ecx
pop ecx
push 0x7b
call fcn.00610e3c
int3

Function at 0x53a69f
Capabilities:
Terminate process

Disassembly:
jmp 0x53a73a
push esi
mov esi, ecx
movsx eax, byte [esi + 8]
sub eax, 0
je 0x53a7a1
sub eax, 1
je 0x53a78a
sub eax, 1
je 0x53a79a
sub eax, 1
je 0x53a762
dec eax
sub eax, 1
jne 0x53a7a1
cmp byte [esi], al
setne al
jmp 0x53a7a3
movsd xmm0, qword [esi]
comisd xmm0, xmmword [0x6ac4e8]
jb 0x53a7a7
or ecx, 0xffffffff
mov edx, ecx
call fcn.005b52d0
comisd xmm0, xmmword [esi]
jb 0x53a7a7
movsd xmm0, qword [esi]
pop esi
jmp fcn.005b51b0
call fcn.0053b378
test al, al
jne 0x53a79a
push str.LargestInt_out_of_UInt64_range
jmp 0x53a7ac
mov eax, dword [esi]
mov edx, dword [esi + 4]
pop esi
ret
xor eax, eax
xor edx, edx
pop esi
ret
push str.double_out_of_UInt64_range
push 0x29a
call fcn.00626a10
pop ecx
pop ecx
push 0x7b
call fcn.00610e3c
int3

Function at 0x53a7c0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
movsx eax, byte [esi + 8]
sub eax, 0
je 0x53a82e
sub eax, 1
je 0x53a81a
sub eax, 1
je 0x53a80a
sub eax, 1
je 0x53a7e8
dec eax
sub eax, 1
jne 0x53a82e
cmp byte [esi], al
pop esi
setne al
ret
movsd xmm0, qword [esi]
comisd xmm0, xmmword [0x6ac4e8]
jb 0x53a832
movsd xmm1, qword [0x6ac500]
comisd xmm1, xmm0
jb 0x53a832
pop esi
jmp 0x5b51a1
call fcn.0053b3d3
test al, al
jne 0x53a82a
push str.LargestUInt_out_of_UInt_range
jmp 0x53a837
call fcn.0053b3d3
test al, al
jne 0x53a82a
push str.LargestInt_out_of_UInt_range
jmp 0x53a837
mov eax, dword [esi]
pop esi
ret
xor eax, eax
pop esi
ret
push str.double_out_of_UInt_range
push 0x29a
call fcn.00626a10
pop ecx
pop ecx
push 0x7b
call fcn.00610e3c
int3
mov ecx, 1
movsd xmm5, qword [0x6c0128]
jmp fcn.005b51cc
Function at 0x53a9fe
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 0xffffffff
jne 0x53aa16
push dword [ebp + 8]
call fcn.005ff200
pop ecx
mov esi, eax
mov eax, SysReAllocString
cmp esi, 0x7fffffff
cmovae esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.00611950
mov edi, eax
pop ecx
test edi, edi
je 0x53aa4b
push esi
push dword [ebp + 8]
push edi
call fcn.005f2e80
add esp, 0xc
mov byte [edi + esi], 0
mov eax, edi
pop edi
pop esi
pop ebp
ret
push str.in_Json::Value::duplicateStringValue__:_Failed_to_allocate_string_value_buffer
push 0x29a
call fcn.00626a10
pop ecx
pop ecx
push 0x7b
call fcn.00610e3c
int3

Function at 0x53db00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x72232c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x20], eax
jne 0x53db8f
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jle 0x53dbed
sub eax, esi
mov dword [ebp - 0x18], eax
lea eax, [ecx - 1]
shr eax, 4
inc eax
push 0x10
mov dword [ebp - 0x1c], eax
pop edi
push edi
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.005f2e80
push esi
push ebx
push 0
push dword [ebp - 0x24]
call fcn.0053dcb8
mov ecx, dword [ebp - 0x18]
add esp, 0x1c
mov edx, edi
mov al, byte [ecx + esi]
xor byte [esi], al
inc esi
sub edx, 1
jne 0x53db67
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call fcn.005f2e80
sub dword [ebp - 0x18], edi
add esp, 0xc
add ebx, edi
sub dword [ebp - 0x1c], 1
jne 0x53db48
jmp 0x53dbed
mov edx, dword [ebp + 0x10]
test edx, edx
jle 0x53dbed
mov ecx, esi
sub ebx, eax
sub ecx, eax
dec edx
shr edx, 4
inc edx
mov dword [ebp - 0x18], ecx
push 0x10
mov dword [ebp - 0x1c], edx
pop edi
mov edx, dword [ebp - 0x18]
mov ecx, eax
mov dword [ebp - 0x28], edi
mov al, byte [ebx + ecx]
xor al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
sub edi, 1
jne 0x53dbb2
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x24]
call fcn.0053dcb8
push 0x10
pop edi
push edi
push esi
push dword [ebp - 0x20]
call fcn.005f2e80
add dword [ebp - 0x18], edi
add esp, 0x1c
mov eax, dword [ebp - 0x20]
add ebx, edi
add esi, edi
sub dword [ebp - 0x1c], 1
jne 0x53dbaa
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b4733
mov esp, ebp
pop ebp
ret
Function at 0x53e64e
Capabilities:
Encode data using xor
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x72232c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
xor esi, esi
inc ebx
push edi
mov dword [ebp - 0x808], ebx
mov edx, ebx
mov edi, 0x100
mov eax, edx
mov dword [ebp + esi*4 - 0x804], edx
and al, 0x80
mov dword [ebp + edx*4 - 0x404], esi
movzx ecx, al
lea eax, [edx + edx]
neg ecx
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
xor ecx, edx
inc esi
movzx edx, cl
cmp esi, edi
jl 0x53e676
mov esi, ebx
mov edx, 0x739618
mov eax, esi
mov dword [edx], esi
and al, 0x80
movzx ecx, al
lea eax, [esi + esi]
neg ecx
sbb ecx, ecx
add edx, 4
and ecx, 0x1b
xor ecx, eax
movzx esi, cl
cmp edx, 0x739640
jl 0x53e6a8
mov byte [0x737418], 0x63
mov byte [0x73857b], 0
mov ecx, dword [ebp + ebx*4 - 0x404]
lea eax, [ebp - 0x408]
shl ecx, 2
sub eax, ecx
mov ebx, dword [eax]
mov ecx, ebx
sar ecx, 7
lea eax, [ebx + ebx]
or ecx, eax
movzx eax, cl
xor ebx, eax
mov ecx, eax
shr ecx, 7
add eax, eax
or ecx, eax
movzx eax, cl
xor ebx, eax
mov ecx, eax
shr ecx, 7
add eax, eax
or ecx, eax
movzx edx, cl
mov ecx, edx
shr ecx, 7
lea eax, [edx + edx]
or ecx, eax
xor ecx, 0x63
movzx eax, cl
xor eax, edx
xor ebx, eax
mov eax, dword [ebp - 0x808]
mov byte [eax + 0x737418], bl
mov byte [ebx + 0x738518], al
mov ebx, eax
inc ebx
mov dword [ebp - 0x808], ebx
cmp ebx, edi
jl 0x53e6d9
xor esi, esi
mov edi, 0xff
movzx edx, byte [esi + 0x737418]
mov eax, edx
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx eax, cl
mov ecx, eax
xor ecx, edx
shl ecx, 8
xor ecx, edx
shl ecx, 8
xor ecx, edx
shl ecx, 8
xor ecx, eax
mov dword [esi*4 + 0x737518], ecx
rol ecx, 8
mov dword [esi*4 + 0x737918], ecx
rol ecx, 8
mov dword [esi*4 + 0x737d18], ecx
rol ecx, 8
mov dword [esi*4 + 0x738118], ecx
movzx ecx, byte [esi + 0x738518]
test ecx, ecx
je 0x53e7cf
mov eax, dword [ebp + ecx*4 - 0x404]
add eax, dword [ebp - 0x3cc]
cdq
idiv edi
mov eax, dword [ebp + edx*4 - 0x804]
mov dword [ebp - 0x808], eax
jmp 0x53e7d6
and dword [ebp - 0x808], 0
test ecx, ecx
je 0x53e7f3
mov eax, dword [ebp + ecx*4 - 0x404]
add eax, dword [ebp - 0x3e0]
cdq
idiv edi
mov ebx, dword [ebp + edx*4 - 0x804]
jmp 0x53e7f5
xor ebx, ebx
test ecx, ecx
je 0x53e812
mov eax, dword [ebp + ecx*4 - 0x404]
add eax, dword [ebp - 0x3d0]
cdq
idiv edi
mov edi, dword [ebp + edx*4 - 0x804]
jmp 0x53e814
xor edi, edi
test ecx, ecx
je 0x53e836
mov eax, dword [ebp + ecx*4 - 0x404]
mov ecx, 0xff
add eax, dword [ebp - 0x3d8]
cdq
idiv ecx
mov eax, dword [ebp + edx*4 - 0x804]
jmp 0x53e838
xor eax, eax
shl eax, 8
xor eax, edi
mov edi, 0xff
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, dword [ebp - 0x808]
mov dword [esi*4 + 0x738618], eax
rol eax, 8
mov dword [esi*4 + 0x738a18], eax
rol eax, 8
mov dword [esi*4 + 0x738e18], eax
rol eax, 8
mov dword [esi*4 + 0x739218], eax
inc esi
cmp esi, 0x100
jl 0x53e750
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b4733
mov esp, ebp
pop ebp
ret
Function at 0x53e893
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x72232c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
sub eax, 0x80
je 0x53e8db
sub eax, 0x40
je 0x53e8d3
sub eax, 0x40
je 0x53e8cb
mov eax, 0xfffff800
jmp 0x53e9d1
mov dword [edi], 0xe
jmp 0x53e8e1
mov dword [edi], 0xc
jmp 0x53e8e1
mov dword [edi], 0xa
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x11c]
push ecx
lea esi, [edi + 8]
push eax
mov dword [edi + 4], esi
call fcn.0053e9e0
add esp, 0xc
test eax, eax
jne 0x53e9d0
mov edx, dword [ebp - 0x11c]
shl edx, 4
add edx, dword [ebp - 0x118]
push 4
pop ecx
mov eax, dword [edx]
add edx, ecx
mov dword [esi], eax
add esi, ecx
mov eax, dword [edx]
add edx, ecx
mov dword [esi], eax
add esi, ecx
mov eax, dword [edx]
add edx, ecx
mov dword [esi], eax
add esi, ecx
mov eax, dword [edx]
sub edx, 0x1c
mov dword [esi], eax
add esi, ecx
mov edi, dword [edi]
dec edi
test edi, edi
jle 0x53e99e
push ebx
mov ebx, ecx
movzx eax, byte [edx + 3]
push 4
movzx ecx, byte [eax + 0x737418]
movzx eax, byte [edx + 2]
mov ecx, dword [ecx*4 + 0x739218]
movzx eax, byte [eax + 0x737418]
xor ecx, dword [eax*4 + 0x738e18]
movzx eax, byte [edx + 1]
movzx eax, byte [eax + 0x737418]
xor ecx, dword [eax*4 + 0x738a18]
movzx eax, byte [edx]
movzx eax, byte [eax + 0x737418]
xor ecx, dword [eax*4 + 0x738618]
mov dword [esi], ecx
pop ecx
add esi, ecx
add edx, ecx
sub ebx, 1
jne 0x53e940
dec edi
sub edx, 0x20
test edi, edi
jg 0x53e93e
pop ebx
mov eax, dword [edx]
add edx, ecx
mov dword [esi], eax
add esi, ecx
push 0x118
push 0
mov eax, dword [edx]
mov dword [esi], eax
mov eax, dword [edx + ecx]
mov dword [esi + ecx], eax
mov eax, dword [edx + ecx + 4]
mov dword [esi + ecx + 4], eax
lea eax, [ebp - 0x11c]
push eax
call fcn.005f3980
add esp, 0xc
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.005b4733
mov esp, ebp
pop ebp
ret
Function at 0x54039d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x5403ab
xor al, al
pop ebp
ret
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov byte [edx], al
test edi, edi
jne 0x5403bb
xor al, al
jmp 0x5403df
push esi
mov esi, eax
cmp dword [ebp + 0xc], eax
jle 0x5403d8
movzx ecx, byte [esi + edi]
movzx eax, al
xor ecx, eax
inc esi
mov al, byte [ecx + 0x6ac5d8]
cmp esi, dword [ebp + 0xc]
jl 0x5403c3
xor al, 0x55
mov byte [edx], al
mov al, 1
pop esi
pop edi
pop ebp
ret

Function at 0x5403e2
Capabilities:
Get user security identifier

Disassembly:
push 0x2c
mov eax, 0x6798a2
call fcn.005b47af
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp + 8]
xor eax, eax
and dword [ebp - 0x18], 0
mov edi, 0x80
push eax
push edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.0040a29e
and dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp + 0x10]
push eax
push esi
push ebx
push 0
mov dword [ebp - 0x30], edi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test esi, esi
jne 0x54049e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7a
jne 0x54049c
cmp dword [ebp - 0x30], edi
jbe 0x540460
xor bl, bl
jmp 0x5404a1
cmp dword [ebp - 0x2c], 0x80
jbe 0x540476
push 0
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
call fcn.004264e5
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x38]
push ebx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test esi, esi
setne bl
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00409de7
mov al, bl
call fcn.005b4759
ret

Function at 0x5406e8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x72232c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov ebx, dword [ebp + 8]
push 7
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
pop ecx
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x84], 0x10
stosw word es:[edi], ax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetComputerNameW]
xor edi, edi
test eax, eax
je 0x54076d
push 0x44
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.005403e2
add esp, 0xc
test al, al
je 0x54076d
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00540336
pop ecx
pop ecx
push eax
mov ecx, ebx
call fcn.0040c133
push edi
push 1
lea ecx, [ebp - 0x80]
call fcn.00409de7
push esi
mov dword [esi], edi
call fcn.0054078f
pop ecx
test al, al
jne 0x54077c
mov dword [esi], edi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b4733
mov esp, ebp
pop ebp
ret
Function at 0x5409a1
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x5409c8
push esi
or esi, 0xffffffff
cmp edi, 0xffffffff
cmovb esi, edi
push esi
push ebx
call sub.ADVAPI32.dll_SystemFunction036
add ebx, esi
sub edi, esi
jne 0x5409b1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5409cc
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push 0x30
mov eax, 0x67997c
call fcn.005b47af
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x34]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0xf0000000
push 1
push ebx
push ebx
push eax
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x540a15
mov dword [esi + 0x14], 0xf
mov ecx, esi
push ebx
mov dword [esi + 0x10], ebx
push 0x14
mov byte [esi], bl
call fcn.0040ea58
jmp 0x540ae3
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push 0x8004
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x5409fa
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x540a38
mov edi, dword [edi]
push ebx
push eax
push edi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x5409fa
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x38]
push 4
pop ecx
push ebx
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
push eax
push ecx
push dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
call edi
test eax, eax
je 0x5409fa
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
inc eax
mov dword [ebp - 4], ebx
push eax
call fcn.00485de9
push ebx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
call fcn.0040b36d
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x2c]
push ebx
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 2
push dword [ebp - 0x30]
call edi
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], ebx
test eax, eax
jne 0x540ac7
mov byte [esi], bl
push ebx
push 0x14
call fcn.0040ea58
jmp 0x540ad8
cmp dword [ebp - 0x2c], 0x14
mov byte [esi], bl
jne 0x540abd
lea eax, [ebp - 0x28]
push eax
call fcn.00408c3a
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00409d92
mov eax, esi
call fcn.005b4759
ret

Function at 0x541751
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret