joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c920
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x5c4954]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push esi
mov esi, dword [esp + 0x118]
xor ebx, ebx
push 0x103
lea eax, [esp + 0x11]
push ebx
push eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x18], bl
call fcn.0052b710
add esp, 0xc
call fcn.004a3530
test al, al
je 0x49c988
lea ecx, [esp + 0xc]
push ecx
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push str.Temp
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
jmp 0x49c998
lea eax, [esp + 0xc]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0xc]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x49c9b0
sub eax, edx
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00402c6c
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0052b498
add esp, 0x10c
ret

Function at 0x4a1680
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x4a16ce
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4a16ce
cmp byte [0x5ca800], 0
jne 0x4a16a0
call fcn.004a15e0
mov eax, dword [esp + 0x14]
xor ecx, ecx
test esi, esi
jbe 0x4a16c9
push ebx
jmp 0x4a16b0
movzx edx, byte [ecx + edi]
movzx ebx, al
xor edx, ebx
shr eax, 8
xor eax, dword [edx*4 + 0x5ca808]
inc ecx
cmp ecx, esi
jb 0x4a16b0
pop ebx
pop edi
not eax
pop esi
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
ret
Function at 0x4a1720
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.0052ccb0
push 0xffffffffffffffff
push 0x564900
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5c4954]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x100c]
cmp dword [esi + 0x18], 0x10
mov eax, dword [ebp + 0x1010]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
lea edi, [esi + 4]
jb 0x4a1783
mov eax, dword [edi]
jmp 0x4a1785
mov eax, edi
lea ecx, [ebp - 0x48]
push ecx
push eax
call fcn.00532585
add esp, 8
test eax, eax
jne 0x4a182c
mov ebx, dword [ebp - 0x34]
push 0xfff
push eax
lea edx, [ebp + 1]
push edx
mov byte [ebp], al
call fcn.0052b710
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x4a17ba
mov edi, dword [edi]
push 0x574154
push edi
call fcn.0052c823
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4a182c
xor edi, edi
mov esi, ebx
test esi, esi
jle 0x4a1817
cmp esi, 0x1000
jbe 0x4a17e4
mov esi, 0x1000
push eax
push 1
lea eax, [ebp]
push esi
push eax
call fcn.0052e8f4
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
lea edx, [ebp]
push esi
push edx
call fcn.004a1680
not eax
mov dword [ebp - 0x14], eax
add edi, esi
mov eax, ebx
add esp, 0xc
sub eax, edi
mov esi, eax
mov eax, dword [ebp - 0x18]
jmp 0x4a17d3
mov ecx, dword [ebp - 0x14]
not ecx
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x4a182c
push eax
call fcn.0052c539
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0052b498
add ebp, 0x1004
mov esp, ebp
pop ebp
ret

Function at 0x4a1930
Capabilities:
Check mutex on windows
Create or open mutex on windows

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4a1949
cmp eax, 0xffffffff
je 0x4a1949
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, dword [esp + 0x2c]
mov dword [esi + 0x1c], 0
test edi, edi
je 0x4a1972
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a1960
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.00402c6c
cmp byte [esp + 0x30], 0
jne 0x4a1980
push edi
push 1
push 0
jmp 0x4a19be
push 1
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push edi
lea edx, [esp + 0x18]
push 1
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0xc
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
cmp eax, 0xb7
je 0x4a19f2
cmp dword [esi + 0x1c], 0
je 0x4a19f2
mov eax, 1
mov byte [esi + 0x20], al
xor eax, eax
cmp dword [esi + 0x1c], eax
pop esi
setne al
add esp, 0x20
ret 8
xor eax, eax
cmp dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
setne al
pop esi
add esp, 0x20
ret 8
Function at 0x4a2150
Capabilities:
Encode data using base64

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
test esi, esi
je 0x4a2283
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4a2283
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4a2283
push ebp
mov ebp, dword [esp + 0x14]
lea edx, [ebp + 2]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
lea eax, [edx*4 + 1]
cmp dword [edi], eax
jae 0x4a219b
pop ebp
pop edi
mov eax, 2
pop esi
ret
mov edi, dword [0x5c1788]
mov eax, 0xaaaaaaab
mul ebp
shr edx, 1
lea eax, [edx + edx*2]
xor edx, edx
push ebx
test eax, eax
jbe 0x4a2228
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx + edx*2]
mov dword [esp + 0x14], eax
jmp 0x4a21d0
movzx eax, byte [esi]
shr eax, 2
movzx eax, byte [eax + edi]
mov byte [ecx], al
movzx eax, byte [esi]
movzx ebx, byte [esi + 1]
and eax, 3
shl eax, 4
add eax, edi
shr ebx, 4
movzx eax, byte [ebx + eax]
mov byte [ecx + 1], al
movzx ebx, byte [esi + 2]
movzx eax, byte [esi + 1]
inc ecx
and eax, 0xf
shr ebx, 6
add ebx, edi
movzx eax, byte [ebx + eax*4]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
movzx eax, byte [eax + edi]
inc ecx
mov byte [ecx], al
inc ecx
add esi, 3
sub edx, 1
jne 0x4a21d0
mov edx, dword [esp + 0x14]
cmp edx, ebp
jae 0x4a226f
movzx eax, byte [esi]
inc edx
cmp edx, ebp
jae 0x4a223a
movzx esi, byte [esi + 1]
jmp 0x4a223c
xor esi, esi
mov ebx, eax
shr ebx, 2
mov bl, byte [ebx + edi]
mov byte [ecx], bl
and eax, 3
shl eax, 4
mov ebx, esi
shr ebx, 4
add eax, edi
mov al, byte [ebx + eax]
inc ecx
mov byte [ecx], al
inc ecx
cmp edx, ebp
jae 0x4a2266
and esi, 0xf
mov al, byte [edi + esi*4]
jmp 0x4a2268
mov al, 0x3d
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [esp + 0x20]
pop ebx
mov byte [ecx], 0
sub ecx, dword [esp + 0x18]
pop ebp
pop edi
mov dword [edx], ecx
xor eax, eax
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
Function at 0x4a2580
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x564a69
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c4954]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
xor edx, edx
mov dword [esp + 0x14], edx
mov dword [ebx + 0x18], 0xf
mov dword [ebx + 0x14], edx
mov dword [esp + 0x18], ebx
mov byte [ebx + 4], dl
mov eax, ebp
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], 1
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, dx
jne 0x4a25d7
sub eax, esi
sar eax, 1
lea edi, [eax + 1]
push edi
call fcn.0052b867
mov esi, eax
add esp, 4
test esi, esi
je 0x4a264b
push edi
push 0
push esi
call fcn.0052b710
mov eax, ebp
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a2610
sub eax, edx
sar eax, 1
inc eax
push eax
push ebp
push esi
call fcn.00531f76
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a2630
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.00402c6c
push esi
call fcn.0052b78a
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4a3220
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5c4954]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
xor bl, bl
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x11], bl
mov dword [ebp - 4], esi
call fcn.004a3530
test al, al
je 0x4a32c3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x18]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, esi
je 0x4a32c5
lea edx, [ebp - 0x20]
push edx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
cmp eax, esi
je 0x4a32c5
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push esi
push esi
push 0x10
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jne 0x4a32c5
mov bl, 1
mov dword [ebp - 4], 0xffffffff
jmp 0x4a32de
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4a32f1
cmp eax, 0xffffffff
je 0x4a32f1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a3310
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x564bf0
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x5c4954]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [0x5cae14]
xor edi, edi
cmp eax, edi
jne 0x4a343f
push 0x9c
lea eax, [ebp - 0xb0]
push edi
push eax
mov dword [ebp - 4], edi
call fcn.0052b710
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [ebp - 0xb0]
push ecx
mov dword [ebp - 0xb0], 0x9c
call esi
cmp eax, edi
jne 0x4a33a9
lea edx, [ebp - 0xb0]
push edx
mov dword [ebp - 0xb0], 0x94
call esi
cmp eax, edi
jne 0x4a33a9
mov dword [0x5cae14], edi
xor eax, eax
jmp 0x4a343f
mov ecx, dword [ebp - 0xa0]
sub ecx, 1
movzx eax, word [ebp - 0xa4]
je 0x4a347a
sub ecx, 1
jne 0x4a343a
mov eax, dword [ebp - 0xac]
cmp eax, 4
jbe 0x4a345b
cmp eax, 7
jne 0x4a33e4
mov dword [0x5cae14], 0x1000
jmp 0x4a343a
cmp eax, 6
mov eax, dword [ebp - 0xa8]
jne 0x4a3415
cmp eax, edi
jne 0x4a33ff
mov dword [0x5cae14], 0x800
jmp 0x4a343a
cmp eax, 1
je 0x4a33d8
cmp eax, 2
jne 0x4a343a
mov dword [0x5cae14], 0x2000
jmp 0x4a343a
cmp eax, 1
jae 0x4a3426
mov dword [0x5cae14], 0x100
jmp 0x4a343a
dec eax
neg eax
sbb eax, eax
and eax, 0x200
add eax, 0x200
mov dword [0x5cae14], eax
mov eax, dword [0x5cae14]
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.0052b498
mov esp, ebp
pop ebp
ret
jne 0x4a3469
mov dword [0x5cae14], 0x80
jmp 0x4a343a
sub eax, 3
neg eax
sbb eax, eax
and eax, 0x3f80
add eax, 0x40
jmp 0x4a3435
cmp dword [ebp - 0xac], 4
jne 0x4a343a
mov ecx, dword [ebp - 0xa8]
cmp ecx, edi
je 0x4a34d1
cmp ecx, 0xa
je 0x4a34a7
sub ecx, 0x5a
neg ecx
sbb ecx, ecx
and ecx, 0x1f
add ecx, 0x20
mov dword [0x5cae14], ecx
jmp 0x4a343a
cmp eax, 0x7ce
je 0x4a34c2
sub eax, 0x8ae
neg eax
sbb eax, eax
and eax, 0x2f
add eax, 0x10
jmp 0x4a3435
mov dword [0x5cae14], 8
jmp 0x4a343a
sub eax, 0x3b6
je 0x4a3511
sub eax, 1
je 0x4a3502
sub eax, 0xa0
je 0x4a34f3
mov dword [0x5cae14], 0x3f
jmp 0x4a343a
mov dword [0x5cae14], 4
jmp 0x4a343a
mov dword [0x5cae14], 2
jmp 0x4a343a
mov dword [0x5cae14], 1
jmp 0x4a343a
Function at 0x4a6820
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x110
mov eax, dword [0x5c4954]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x120]
lea eax, [esp + 0xc]
push edi
xor ebx, ebx
push eax
mov dword [esp + 0x24], ebx
call fcn.00427b00
push eax
call fcn.00427229
lea ecx, [esp + 0x20]
push ecx
mov edi, eax
call fcn.0052d12b
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004278ed
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00427b64
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004276e1
push 0xc7
lea ecx, [esp + 0x7d]
push ebx
push ecx
mov byte [esp + 0x84], bl
call fcn.0052b710
lea edx, [esp + 0x50]
push edi
push edx
call fcn.00427bdd
lea eax, [esp + 0x60]
push edi
push eax
call fcn.00427bdd
add esp, 0x40
lea ecx, [esp + 0x10]
push edi
push ecx
call fcn.00427bdd
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
add esp, 8
push ebx
push 0xf4240
push edi
push ebp
call fcn.0052e340
push ebx
push 0x3c
push edx
push eax
call fcn.0052e280
push eax
push ebx
push 0x3938700
push edi
push ebp
call fcn.0052e340
push ebx
push 0x3c
push edx
push eax
call fcn.0052e280
push eax
push ebx
push 0xd693a400
push edi
push ebp
call fcn.0052e340
movzx edx, word [esp + 0x28]
push eax
movzx eax, word [esp + 0x38]
movzx ecx, word [esp + 0x1e]
push edx
push eax
push ecx
push str._02i__02i__04i__02i:_02i:_02i
lea edx, [esp + 0x70]
push 0xc8
push edx
call fcn.0052c88d
lea eax, [esp + 0x78]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
add esp, 0x24
mov byte [esi + 4], bl
lea edx, [eax + 1]
jmp 0x4a6950
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4a6950
sub eax, edx
push eax
lea eax, [esp + 0x58]
push eax
mov ecx, esi
call fcn.00402c6c
mov ecx, dword [esp + 0x11c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052b498
add esp, 0x110
ret
Function at 0x4a7ca0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5653f0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x5c4954]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
sub esp, 8
mov eax, esp
mov dword [esp + 0x10], esp
push eax
mov dword [esp + 0x28], 0
call fcn.004a83c0
mov ecx, dword [esp + 0x30]
add esp, 4
call fcn.004a7bc0
lea ecx, [esp + 0xc]
push ecx
call fcn.004a84d0
mov edx, dword [eax]
push ecx
mov ecx, esp
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov byte [esp + 0x24], 1
mov dword [esp + 0x10], esp
mov dword [ecx + 4], eax
test eax, eax
je 0x4a7d17
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov ecx, dword [esp + 0x2c]
call fcn.004a7bc0
mov esi, dword [esp + 0x10]
mov byte [esp + 0x1c], 0
test esi, esi
je 0x4a7d57
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4a7d57
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4a7d57
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
sub esp, 8
mov eax, esp
mov dword [esp + 0x10], esp
push eax
call fcn.004a8e80
mov ecx, dword [esp + 0x30]
add esp, 4
call fcn.004a7bc0
sub esp, 8
mov ecx, esp
mov dword [esp + 0x10], esp
push ecx
call fcn.004a8f90
mov ecx, dword [esp + 0x30]
add esp, 4
call fcn.004a7bc0
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
test esi, esi
je 0x4a7dc7
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4a7dc7
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4a7dc7
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov al, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x18
ret

Function at 0x4af900
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test ecx, ecx
jle 0x4af92d
push esi
push edi
jmp 0x4af910
movzx esi, byte [edx]
movzx esi, byte [esi + 0x57f160]
lea edi, [eax*8]
xor esi, edi
dec ecx
xor eax, esi
inc edx
test ecx, ecx
jg 0x4af910
pop edi
pop esi
ret
Function at 0x4b5480
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor edi, edi
mov eax, ebp
test ebp, ebp
jne 0x4b5497
xor ebx, ebx
jmp 0x4b54af
cmp byte [ebp], 0
je 0x4b54a6
lea ecx, [ecx]
inc eax
cmp byte [eax], 0
jne 0x4b54a0
sub eax, ebp
and eax, 0x3fffffff
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 4]
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
test eax, eax
jle 0x4b556e
jmp 0x4b54d4
mov esi, dword [esp + 0x10]
cmp esi, 2
jge 0x4b54dc
xor esi, 1
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4b54fc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov edx, esi
shl edx, 4
mov edx, dword [edx + eax]
call fcn.004aef60
test eax, eax
jne 0x4b555b
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
shl esi, 4
mov ecx, dword [esi + edx + 0xc]
add ecx, 4
cmp dword [ecx + 0xc], 0
je 0x4b5545
xor eax, eax
mov edi, ebx
mov edx, ebp
test ebx, ebx
jle 0x4b553f
lea ecx, [ecx]
movzx esi, byte [edx]
movzx esi, byte [esi + 0x57f160]
lea ebp, [eax*8]
xor esi, ebp
dec edi
xor eax, esi
inc edx
test edi, edi
jg 0x4b5520
mov ebp, dword [esp + 0x20]
xor edx, edx
div dword [ecx]
jmp 0x4b5547
xor edx, edx
push ebp
call fcn.004af990
add esp, 4
test eax, eax
je 0x4b5578
mov edi, dword [eax + 8]
test edi, edi
jne 0x4b556e
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jl 0x4b54d0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor edi, edi
jmp 0x4b555b

Function at 0x4b5580
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov eax, edi
test edi, edi
jne 0x4b5596
xor ebx, ebx
jmp 0x4b55af
cmp byte [edi], 0
je 0x4b55a6
jmp 0x4b55a0
inc eax
cmp byte [eax], 0
jne 0x4b55a0
sub eax, edi
and eax, 0x3fffffff
mov ebx, eax
mov edx, dword [ecx + 4]
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], edx
test edx, edx
jle 0x4b566c
mov ecx, dword [ecx + 8]
push esi
mov dword [esp + 0x14], ecx
jmp 0x4b55d4
mov eax, dword [esp + 0x10]
cmp eax, 2
jge 0x4b55dc
xor eax, 1
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
shl eax, 4
mov esi, dword [eax + edx + 0xc]
add eax, edx
test ecx, ecx
je 0x4b55fc
mov edx, dword [eax]
call fcn.004aef60
test eax, eax
jne 0x4b564b
cmp dword [esi + 0x20], 0
lea ecx, [esi + 0x14]
je 0x4b5635
xor eax, eax
mov esi, ebx
mov edx, edi
test ebx, ebx
jle 0x4b562f
nop
movzx edi, byte [edx]
movzx edi, byte [edi + 0x57f160]
lea ebp, [eax*8]
xor edi, ebp
dec esi
xor eax, edi
inc edx
test esi, esi
jg 0x4b5610
mov edi, dword [esp + 0x20]
xor edx, edx
div dword [ecx]
jmp 0x4b5637
xor edx, edx
push edi
call fcn.004af990
add esp, 4
test eax, eax
je 0x4b5668
mov ebp, dword [eax + 8]
test ebp, ebp
jne 0x4b565e
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jl 0x4b55d0
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
xor ebp, ebp
jmp 0x4b564b
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4b9b10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
lea eax, [esi*8]
cmp eax, 0x400
jbe 0x4b9b2b
mov esi, 0x80
cmp esi, dword [edi]
jne 0x4b9b36
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [0x5cb294]
test eax, eax
je 0x4b9b41
call eax
lea ecx, [esi*8]
push ebp
push ecx
call fcn.004b91d0
mov ebp, eax
mov eax, dword [0x5cb298]
add esp, 4
mov dword [esp + 8], ebp
test eax, eax
je 0x4b9b63
call eax
test ebp, ebp
jne 0x4b9b6f
pop ebp
xor eax, eax
pop esi
add esp, 8
ret
mov edx, dword [edi + 0xc]
push ebx
push edx
call fcn.004aebf0
push ebp
mov dword [edi + 0xc], ebp
call dword [0x5c1cbc]
mov ebx, eax
shr ebx, 3
lea eax, [ebx*8]
push eax
push 0
push ebp
mov dword [esp + 0x2c], ebx
mov dword [edi], ebx
call fcn.0052b710
mov ecx, dword [edi + 8]
add esp, 0x14
mov dword [edi + 8], 0
test ecx, ecx
je 0x4b9c4f
mov edx, dword [ecx + 0x10]
mov esi, dword [ecx + 0xc]
xor eax, eax
test edx, edx
jle 0x4b9be3
nop
movzx ebx, byte [esi]
movzx ebx, byte [ebx + 0x57f160]
lea ebp, [eax*8]
xor ebx, ebp
dec edx
xor eax, ebx
inc esi
test edx, edx
jg 0x4b9bc0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0xc]
mov edx, dword [ecx]
mov dword [esp + 0x10], edx
xor edx, edx
div ebx
lea eax, [ebp + edx*8]
test eax, eax
je 0x4b9c2a
mov esi, dword [eax]
test esi, esi
je 0x4b9c00
mov edx, dword [eax + 4]
jmp 0x4b9c02
xor edx, edx
inc esi
mov dword [eax], esi
mov dword [eax + 4], ecx
test edx, edx
je 0x4b9c2a
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x4b9c22
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x4b9c43
mov dword [edi + 8], ecx
mov dword [edx + 4], ecx
jmp 0x4b9c43
mov edx, dword [edi + 8]
mov dword [ecx], edx
mov eax, dword [edi + 8]
test eax, eax
je 0x4b9c39
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x4b9bb3
pop ebx
pop ebp
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x4c0cd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x318
mov eax, dword [0x5c4954]
xor eax, esp
mov dword [esp + 0x314], eax
mov eax, dword [0x5cb2b4]
push ebx
push esi
test eax, eax
je 0x4c0d0c
push eax
push 0x577cb4
lea eax, [esp + 0x14]
push eax
push 0xe6
call fcn.004c0c00
add esp, 0x10
jmp 0x4c0db1
call fcn.004afa70
test eax, eax
je 0x4c0d56
lea ecx, [esp + 0x114]
push ecx
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [esp + 0x114]
call fcn.004afb30
mov esi, eax
test esi, esi
jne 0x4c0d93
pop esi
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x314]
xor ecx, esp
call fcn.0052b498
add esp, 0x318
ret
lea eax, [esp + 0x114]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x114]
push ecx
call fcn.004afb90
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4c0d3a
call fcn.004afb30
push ebx
mov esi, eax
call fcn.0052b78a
add esp, 4
test esi, esi
je 0x4c0d3a
push esi
push 0x577cb4
lea edx, [esp + 0x14]
push edx
push 0xe6
call fcn.004c0c00
push esi
call fcn.0052b78a
add esp, 0x14
cmp byte [esp + 0xc], 0
lea eax, [esp + 0xc]
je 0x4c0dc6
lea esp, [esp]
inc eax
cmp byte [eax], 0
jne 0x4c0dc0
lea ecx, [esp + 0xc]
sub eax, ecx
and eax, 0x3fffffff
jbe 0x4c0ddf
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x4c0ddf
sub eax, 1
jne 0x4c0dd4
lea edx, [esp + 0xc]
push edx
mov byte [esp + eax + 0x10], 0
mov eax, dword [esp + 0x328]
push 0x582618
add eax, 0xffffffe2
push edi
push eax
call fcn.004c0c00
add esp, 0x10
mov eax, edi
test edi, edi
je 0x4c0e1d
cmp byte [edi], 0
je 0x4c0e16
lea ecx, [ecx]
inc eax
cmp byte [eax], 0
jne 0x4c0e10
sub eax, edi
and eax, 0x3fffffff
cmp dword [0x5c1c9c], 0
push ebp
mov esi, eax
mov ebx, 0x14
lea ebp, [edi + eax]
jne 0x4c0e3b
mov dword [esp + 0xc], 0
jmp 0x4c0e60
push 5
call dword [0x5c1cd8]
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x4c0e60
mov ecx, eax
push ecx
call dword [0x5c1ce0]
add esp, 4
lea ebx, [ebx]
dec ebx
call fcn.004b9910
mov byte [ebp], al
inc ebp
test ebx, ebx
jne 0x4c0e60
mov eax, dword [esp + 0xc]
pop ebp
test eax, eax
je 0x4c0e81
push eax
call dword [0x5c1ce8]
add esp, 4
mov ecx, 0x14
jmp 0x4c0e90
movzx eax, byte [edi + esi]
xor edx, edx
mov ebx, 0x3e
div ebx
inc esi
sub ecx, 1
mov dl, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 1], dl
jne 0x4c0e90
mov byte [edi + esi], cl
mov ecx, dword [esp + 0x31c]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0052b498
add esp, 0x318
ret