joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2d90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0xc], edx
push 0x4000
mov dword [ebp - 8], esi
call fcn.00531933
mov edx, eax
add esp, 4
mov dword [ebp - 4], edx
test edx, edx
jne 0x4a2dc1
lea eax, [edx + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
xor edi, edi
cmp ebx, 0xffffffff
je 0x4a2de3
cmp edi, ebx
jae 0x4a2e72
mov eax, ebx
mov ecx, 0x4000
sub eax, edi
cmp eax, ecx
cmovb ecx, eax
jmp 0x4a2de8
mov ecx, 0x4000
push esi
push ecx
push 1
push edx
call fcn.00548ab6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a2e49
push dword [ebp - 0xc]
push esi
push 1
push dword [ebp - 4]
call fcn.00548896
add esp, 0x10
cmp eax, esi
jne 0x4a2e1a
mov edx, dword [ebp - 4]
add edi, esi
mov esi, dword [ebp - 8]
jmp 0x4a2dc6
push dword [ebp - 4]
call fcn.0052fd09
add esp, 4
push str._fcopy:_write_error_n
push 2
call fcn.0053aee3
add esp, 4
push eax
call fcn.00458270
add esp, 8
mov eax, 0xa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call fcn.00547da5
add esp, 4
test eax, eax
je 0x4a2e6f
push dword [ebp - 4]
call fcn.0052fd09
add esp, 4
mov eax, 0xb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call fcn.0052fd09
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a33f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x5d60c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
movzx eax, byte [esi]
push eax
call fcn.00540fc0
add esp, 4
test eax, eax
je 0x4a341c
cmp byte [esi + 1], 0x3a
je 0x4a343c
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea esi, [ebp - 0x20c]
push 3
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], esi
push esi
push eax
call fcn.00544f60
add esp, 0xc
mov byte [ebp - 0x20d], 0
lea eax, [ebp - 0x108]
push 0x104
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
push 3
lea eax, [ebp - 0x108]
push 0x5cc20c
push eax
call fcn.0053ad88
add esp, 4
push eax
call fcn.00539a10
add esp, 0xc
pop esi
test eax, eax
je 0x4a34fd
push 4
lea eax, [ebp - 0x108]
push str.VFAT
push eax
call fcn.00539a10
add esp, 0xc
test eax, eax
je 0x4a34fd
push 4
lea eax, [ebp - 0x108]
push str.HPFS
push eax
call fcn.00539a10
add esp, 0xc
test eax, eax
je 0x4a34fd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x4a3710
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
push esi
call fcn.0053bddb
add esp, 8
test eax, eax
jne 0x4a3836
mov ecx, esi
call fcn.004a33f0
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a382d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4a382d
cmp dword [ebp - 4], 0
lea edx, [edi + 0x20]
lea ecx, [ebp - 0x1c]
jne 0x4a37d7
call fcn.004a3510
cmp dword [ebp - 0xc], 0
jne 0x4a37ac
cmp dword [ebp - 8], 0
jne 0x4a37ac
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x4a37b7
lea edx, [edi + 0x18]
lea ecx, [ebp - 0xc]
call fcn.004a3510
cmp dword [ebp - 0x14], 0
jne 0x4a37c3
cmp dword [ebp - 0x10], 0
je 0x4a380d
lea edx, [edi + 0x28]
lea ecx, [ebp - 0x14]
call fcn.004a3510
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004a35f0
cmp dword [ebp - 0xc], 0
jne 0x4a37f6
cmp dword [ebp - 8], 0
jne 0x4a37f6
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
jmp 0x4a3801
lea edx, [edi + 0x18]
lea ecx, [ebp - 0xc]
call fcn.004a35f0
cmp dword [ebp - 0x14], 0
jne 0x4a3822
cmp dword [ebp - 0x10], 0
jne 0x4a3822
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [edi + 0x2c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x28]
lea ecx, [ebp - 0x14]
call fcn.004a35f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a3890
test bl, 0x10
je 0x4a3890
push 0x30
push 0
push edi
call fcn.0052d9b0
add esp, 0xc
mov ecx, 0x210000
call fcn.004a2d00
shl ebx, 7
not ebx
mov dword [edi + 0x20], eax
and ebx, 0x80
mov dword [edi + 0x28], eax
or ebx, 0x4100
mov dword [edi + 0x18], eax
mov dword [edi + 0x24], edx
xor eax, eax
mov dword [edi + 0x2c], edx
mov dword [edi + 0x1c], edx
mov word [edi + 6], bx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a4100
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5e34c8]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
test eax, eax
jne 0x4a413e
push dword [ebp + 0xc]
push esi
push dword [0x604eac]
call fcn.00543773
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x4a421b
test edi, edi
jne 0x4a41f3
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp eax, 1
mov eax, dword [ebp + 0xc]
jne 0x4a418d
shr eax, 1
push eax
lea ebx, [esi + eax]
push ebx
push dword [0x604eac]
call fcn.00543773
mov edi, eax
add esp, 0xc
mov ecx, edi
cmp edi, 0xffffffff
je 0x4a421b
test edi, edi
je 0x4a421b
mov al, byte [ebx]
lea ebx, [ebx + 1]
mov byte [esi], al
inc esi
cmp al, 0xa
jne 0x4a4184
mov word [esi - 1], 0xa0d
inc esi
inc edi
sub ecx, 1
jne 0x4a4170
sub esi, edi
jmp 0x4a41f3
dec eax
mov ebx, esi
push eax
push esi
push dword [0x604eac]
call fcn.00543773
mov edi, eax
add esp, 0xc
mov ecx, edi
cmp edi, 0xffffffff
je 0x4a421b
test edi, edi
je 0x4a421b
mov byte [edi + esi], 0xa
mov al, byte [ebx]
lea ebx, [ebx + 1]
mov edx, esi
mov byte [esi], al
inc esi
cmp al, 0xd
jne 0x4a41c7
cmp byte [ebx], 0xa
jne 0x4a41c7
mov esi, edx
dec edi
mov eax, esi
sub ecx, 1
jne 0x4a41b1
test edi, edi
jne 0x4a41ea
push 1
push esi
push dword [0x604eac]
call fcn.00543773
add esp, 0xc
mov edi, 1
jmp 0x4a41f3
sub esi, edi
cmp byte [eax - 1], 0x1a
jne 0x4a41f3
dec edi
mov ecx, dword [0x604ea4]
mov edx, esi
push edi
call fcn.0049cd80
mov dword [0x604ea4], eax
add esp, 4
mov eax, dword [0x6052b4]
add eax, edi
mov dword [0x6052b4], eax
cmp eax, edi
jb 0x4a4221
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
mov edx, str.file_exceeds_Zips_4GB_uncompressed_size_limit
mov ecx, 6
call fcn.0049f270
int3
Function at 0x4a4840
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x5e34d4], 1
push ebx
push esi
push edi
mov esi, ecx
jne 0x4a4920
mov dword [0x5e34d4], 2
test esi, esi
je 0x4a487e
mov al, byte [esi]
cmp al, 0x80
jae 0x4a487e
cmp byte [esi + 1], 0x3a
jne 0x4a487e
movzx eax, al
movzx ebx, byte [eax + 0x64fda0]
jmp 0x4a4880
xor ebx, ebx
mov ecx, 0x210000
mov dword [0x6052bc], 0x28
mov dword [0x6052c0], 0x210000
call fcn.004a2d00
push 0
push 0
mov dword [0x6052c8], eax
xor ecx, ecx
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x5c3a78
push eax
lea eax, [ebp - 0xc]
mov dword [0x6052cc], edx
push eax
push 0
push 0xd
test ebx, ebx
mov byte [ebp - 4], bl
lea eax, [ebp - 4]
push 0x604e90
cmove eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4a48f8
push 0
mov ecx, 0x604e90
mov dword [0x5e34ac], 0x604e90
call fcn.004a2720
add esp, 4
jmp 0x4a4902
mov dword [0x5e34ac], 0
test esi, esi
je 0x4a4917
cmp byte [esi], 0x80
jae 0x4a4920
cmp byte [esi + 1], 0x3a
jne 0x4a4920
cmp byte [esi + 2], 0
jne 0x4a4920
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x5c49d8
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a4947
test dl, dl
je 0x4a4943
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a4947
add eax, 2
add ecx, 2
test dl, dl
jne 0x4a4927
xor eax, eax
jmp 0x4a494c
sbb eax, eax
or eax, 1
mov ecx, esi
test eax, eax
jne 0x4a4962
push eax
call fcn.004a2720
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a4965
sub ecx, edx
lea eax, [ecx + 2]
push eax
call fcn.00531933
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4a498a
lea eax, [ebx + 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
sub ecx, esi
nop
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4a4990
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x4a49c5
cmp al, 0x5c
jne 0x4a49ac
mov byte [esi], 0x2f
call fcn.005450a9
push eax
push esi
call fcn.00544f29
add esi, eax
add esp, 8
mov al, byte [esi]
test al, al
jne 0x4a49a5
mov al, byte [ebx]
mov esi, ebx
test al, al
je 0x4a49eb
nop dword [eax + eax]
cmp al, 0x3a
je 0x4a4a0a
call fcn.005450a9
push eax
push esi
call fcn.00544f29
add esi, eax
add esp, 8
mov al, byte [esi]
test al, al
jne 0x4a49d0
mov edi, ebx
mov edx, edi
mov ecx, ebx
call fcn.004a44b0
push ebx
mov esi, eax
call fcn.0052fd09
mov eax, esi
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esi + 1]
lea edi, [esi + 1]
mov esi, edi
test al, al
je 0x4a4a31
cmp al, 0x3a
je 0x4a4a44
call fcn.005450a9
push eax
push esi
call fcn.00544f29
add esi, eax
add esp, 8
mov al, byte [esi]
test al, al
jne 0x4a4a16
cmp edi, ebx
jbe 0x4a49ed
cmp byte [edi], 0
jne 0x4a49ed
mov eax, 0x2e
mov word [edi], ax
jmp 0x4a49ed
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a8420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [0x6052d8]
xor edx, edx
push esi
mov esi, dword [0x61fc04]
xor ecx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
mov dword [0x64fc64], 2
push edi
test ebx, ebx
je 0x4a85f7
mov edi, dword [0x6052d4]
cmp ebx, 3
jb 0x4a849b
movzx eax, byte [esi + 0x62fc42]
shl edi, 5
xor edi, eax
mov eax, esi
and edi, 0x7fff
and eax, 0x7fff
mov dword [0x6052d4], edi
movzx ecx, word [edi*2 + 0x61fc20]
mov edx, ecx
mov word [eax*2 + 0x63fc60], cx
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov word [edi*2 + 0x61fc20], si
test edx, edx
je 0x4a84ca
mov eax, esi
sub eax, edx
cmp eax, 0x7efa
ja 0x4a84ca
mov eax, dword [0x61fc0c]
mov ecx, edx
cmp eax, ebx
cmova eax, ebx
mov dword [0x61fc0c], eax
call fcn.004a8160
mov ecx, eax
cmp ecx, ebx
cmova ecx, ebx
mov dword [ebp - 4], ecx
cmp ecx, 3
jb 0x4a856f
lea edx, [ecx - 3]
mov ecx, esi
sub ecx, dword [0x62fc20]
call fcn.004a9af0
mov edx, dword [ebp - 4]
mov ecx, eax
sub ebx, edx
mov dword [ebp - 0xc], ecx
mov dword [0x6052d8], ebx
cmp edx, dword [0x6052c4]
ja 0x4a8549
cmp ebx, 3
jb 0x4a8549
dec edx
movzx eax, byte [esi + 0x62fc43]
inc esi
shl edi, 5
xor edi, eax
mov eax, esi
and edi, 0x7fff
and eax, 0x7fff
movzx ecx, word [edi*2 + 0x61fc20]
mov dword [ebp - 8], ecx
mov word [eax*2 + 0x63fc60], cx
mov word [edi*2 + 0x61fc20], si
sub edx, 1
jne 0x4a8501
mov ecx, dword [ebp - 0xc]
mov dword [0x6052d4], edi
mov dword [ebp - 4], edx
jmp 0x4a8586
add esi, edx
mov dword [ebp - 4], 0
mov edx, esi
movzx edi, byte [edx + 0x62fc40]
movzx eax, byte [edx + 0x62fc41]
shl edi, 5
xor edi, eax
mov dword [0x6052d4], edi
jmp 0x4a8589
movzx edx, byte [esi + 0x62fc40]
xor ecx, ecx
call fcn.004a9af0
dec ebx
mov ecx, eax
mov dword [0x6052d8], ebx
inc esi
mov edx, esi
mov dword [0x61fc04], esi
test ecx, ecx
je 0x4a85ca
mov eax, dword [0x64fc60]
test eax, eax
js 0x4a85a4
lea ecx, [eax + 0x62fc40]
jmp 0x4a85a6
xor ecx, ecx
push 0
sub edx, eax
call fcn.004a9780
mov esi, dword [0x61fc04]
add esp, 4
mov ebx, dword [0x6052d8]
mov edi, dword [0x6052d4]
mov dword [0x64fc60], esi
cmp ebx, 0x106
jae 0x4a85e9
call fcn.004a82b0
mov ebx, dword [0x6052d8]
mov edi, dword [0x6052d4]
mov esi, dword [0x61fc04]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
test ebx, ebx
jne 0x4a8457
mov eax, dword [0x64fc60]
test eax, eax
js 0x4a8608
lea ecx, [eax + 0x62fc40]
jmp 0x4a860a
xor ecx, ecx
sub esi, eax
push 1
mov edx, esi
call fcn.004a9780
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a88d0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, 0x12345678
mov esi, 0x23456789
mov dword [0x6052e4], eax
mov edx, 0x34567890
mov dword [0x6052e8], esi
mov dword [0x6052ec], edx
mov cl, byte [edi]
test cl, cl
je 0x4a8946
push ebx
mov ebx, dword [0x650334]
movsx ecx, cl
lea edi, [edi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ebx + ecx*4]
movzx ecx, al
add ecx, esi
imul esi, ecx, 0x8088405
inc esi
mov ecx, esi
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ebx + ecx*4]
mov cl, byte [edi]
test cl, cl
jne 0x4a8901
mov dword [0x6052e4], eax
mov dword [0x6052ec], edx
mov dword [0x6052e8], esi
pop ebx
pop edi
pop esi
ret
Function at 0x4a8be0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x5e34f8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
je 0x4a8c98
mov dword [ebp - 8], eax
mov edx, ecx
mov dword [ebp - 4], edx
test eax, eax
je 0x4a8c98
mov eax, dword [0x6052e4]
push ebx
mov ebx, dword [0x6052e8]
push esi
push edi
mov edi, dword [0x6052ec]
nop dword [eax]
mov dl, byte [edx]
mov esi, edi
and esi, 0xfffd
movsx ecx, dl
xor ecx, eax
or esi, 2
movzx ecx, cl
mov dword [ebp - 0xc], esi
mov esi, dword [0x650334]
shr eax, 8
xor eax, dword [esi + ecx*4]
movzx ecx, al
add ecx, ebx
imul ebx, ecx, 0x8088405
inc ebx
mov ecx, ebx
shr ecx, 0x18
xor ecx, edi
shr edi, 8
movzx ecx, cl
xor edi, dword [esi + ecx*4]
mov ecx, dword [ebp - 0xc]
xor ecx, 1
imul ecx, dword [ebp - 0xc]
shr ecx, 8
xor cl, dl
mov edx, dword [ebp - 4]
mov byte [edx], cl
inc edx
sub dword [ebp - 8], 1
mov dword [ebp - 4], edx
jne 0x4a8c20
mov ecx, dword [ebp - 0x10]
mov dword [0x6052ec], edi
pop edi
pop esi
mov dword [0x6052e4], eax
mov eax, dword [ebp + 8]
mov dword [0x6052e8], ebx
pop ebx
push dword [ebp + 0xc]
push eax
push 1
push ecx
call fcn.00548896
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x4aa0e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5d60c4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5e3588], 0
push esi
push edi
je 0x4aa110
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
jne 0x4aa132
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
mov esi, edi
mov ecx, 0x5e3508
xchg dword [ecx], esi
test esi, esi
je 0x4aa16f
mov eax, esi
xchg dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x5e3588]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b789
mov esp, ebp
pop ebp
ret
push 0x6524a0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x124
push 0
push 0x61fae0
call fcn.0052d9b0
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4aa265
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeBackupPrivilege
push 0
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4aa20b
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4aa20b
call esi
test eax, eax
jne 0x4aa20b
mov dword [0x5e3504], 1
push dword [ebp - 0x18]
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4aa26a
cmp dword [0x5e3504], 0
jne 0x4aa1fb
lea eax, [ebp - 0x10]
push eax
push str.SeSecurityPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4aa1fb
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4aa1fb
call esi
mov ecx, dword [0x5e3684]
test eax, eax
push dword [ebp - 0x18]
mov esi, 1
cmove ecx, esi
mov dword [0x5e3684], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4aa26a
mov esi, 1
push edi
mov dword [0x5e3588], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0052b789
mov esp, ebp
pop ebp
ret
Function at 0x4aa860
Capabilities:
Get thread local storage value

Disassembly:
push esi
mov esi, ecx
push edi
push dword [0x61f288]
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esi + 4], eax
test eax, eax
jne 0x4aa905
push 0x5e4538
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5e44ac]
test eax, eax
je 0x4aa8b4
mov dword [esi], eax
mov eax, dword [eax + 0x54]
mov edi, dword [esi]
push 0x5e4538
mov dword [0x5e44ac], eax
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
pop edi
pop esi
ret
push 0x58
call fcn.0052b79c
mov edi, eax
add esp, 4
lea ecx, [edi + 4]
mov dword [edi], vtable.omni_thread.0
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
sub esp, 0xc
mov ecx, edi
call fcn.004aad30
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi], vtable._internal_omni_thread_dummy.0
mov dword [edi + 0x54], 0
push 0x5e4538
mov dword [esi], edi
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
ret

Function at 0x4aae60
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1c], 0
jne 0x4aaecf
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x4aac60
push 0
push 0
call fcn.0053a902
mov ecx, dword [ebp - 8]
add esp, 0x18
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
test eax, eax
je 0x4aaedd
push dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x4aaef9
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x4aaf15
push edi
mov dword [esi + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x5d2f08
lea eax, [ebp - 1]
push eax
call fcn.0052e096
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.004aa800
push 0x5d2f20
mov eax, ecx
push eax
call fcn.0052e096
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.004aa800
push 0x5d2f20
mov eax, ecx
push eax
call fcn.0052e096
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xc]
call fcn.004aa800
push 0x5d2f20
mov eax, ecx
push eax
call fcn.0052e096
int3
Function at 0x4aaf40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
cmp eax, 1
je 0x4aaf5e
cmp eax, 2
jne 0x4aafa4
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [0x61f288]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, eax
je 0x4aafb9
cmp dword [esi + 0x34], 0
jne 0x4aafc7
push 0xffffffffffffffff
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4aafd5
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4aaf96
mov eax, dword [esi + 0x40]
mov dword [ecx], eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop edi
pop esi
pop ebp
ret 4
mov ecx, edi
call fcn.004aa820
push 0x5d2f08
lea eax, [ebp + 0xb]
push eax
call fcn.0052e096
push 0x5d2f08
lea eax, [ebp + 0xb]
push eax
call fcn.0052e096
push 0x5d2f08
lea eax, [ebp + 0xb]
push eax
call fcn.0052e096
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.004aa800
push 0x5d2f20
mov eax, ecx
push eax
call fcn.0052e096
int3

Function at 0x4ab070
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
push dword [0x61f288]
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x4ab0be
push esi
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov dword [edi + 0x1c], 2
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [edi + 0x34], 0
pop esi
je 0x4ab0bb
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax]
push 0
call fcn.0053a985
add esp, 4
pop edi
pop ebx
ret
mov dword [edi + 0x40], ebx
push 0
call fcn.0053a985
add esp, 4
pop edi
pop ebx
ret
Function at 0x4d5230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4d53b5
cmp dword [esi + 0x20], 0
je 0x4d53b5
cmp dword [esi + 0x24], 0
je 0x4d53b5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4d53b5
cmp dword [eax], esi
jne 0x4d53b5
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x4d5295
cmp eax, 0x39
je 0x4d5295
cmp eax, 0x45
je 0x4d5295
cmp eax, 0x49
je 0x4d5295
cmp eax, 0x5b
je 0x4d5295
cmp eax, 0x67
je 0x4d5295
cmp eax, 0x71
je 0x4d5295
cmp eax, 0x29a
jne 0x4d53b5
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x4d52ce
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x4d52f0
call fcn.004d15d0
jmp 0x4d52f5
call fcn.004d5f40
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.004d71c0
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.0052d9b0
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x5a3e3a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x5a3e38]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x5a3e3c]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x5a3e3e]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret