joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5240
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x30
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x34]
push ebx
push esi
push edi
mov ebx, dword [ecx + 0x24]
mov edi, 0
sub ebx, 6
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
mov eax, edi
je 0x4b527e
mov esi, dword [esp + 0x44]
lea edi, [esp + 0x18]
mov ecx, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
xor edi, edi
xor esi, esi
test ebx, ebx
je 0x4b52bf
cmp edi, dword [ecx + 0x24]
ja 0x4b53ff
cmp esi, ebx
jae 0x4b52b3
cmp eax, 4
jae 0x4b52af
mov ebx, dword [esp + 0xc]
lea edx, [eax + edi*4]
mov ecx, dword [esp + esi*4 + 0x18]
inc eax
inc esi
mov dword [ebx + edx*4 + 0x38], ecx
mov ebx, dword [esp + 0x10]
cmp esi, ebx
jb 0x4b5291
mov ecx, dword [esp + 0xc]
cmp eax, 4
jne 0x4b52bb
inc edi
xor eax, eax
cmp esi, ebx
jb 0x4b5284
cmp edi, dword [ecx + 0x24]
ja 0x4b53ff
mov esi, 0x5982f8
lea ecx, [ecx]
movzx ecx, byte [esp + ebx*4 + 0x15]
mov dl, byte [esp + 0x18]
xor dl, byte [ecx + 0x5950f8]
mov byte [esp + 0x18], dl
mov edx, 1
movzx ecx, byte [esp + ebx*4 + 0x16]
movzx ecx, byte [ecx + 0x5950f8]
xor byte [esp + 0x19], cl
movzx ecx, byte [esp + ebx*4 + 0x17]
movzx ecx, byte [ecx + 0x5950f8]
xor byte [esp + 0x1a], cl
movzx ecx, byte [esp + ebx*4 + 0x14]
movzx ecx, byte [ecx + 0x5950f8]
xor byte [esp + 0x1b], cl
movzx ecx, byte [esi]
inc esi
xor byte [esp + 0x18], cl
mov dword [esp + 0x14], esi
cmp ebx, 8
je 0x4b5340
cmp ebx, edx
jbe 0x4b53a1
lea ecx, [ecx]
mov ecx, dword [esp + edx*4 + 0x14]
xor dword [esp + edx*4 + 0x18], ecx
inc edx
cmp edx, ebx
jb 0x4b5330
jmp 0x4b53a1
mov ecx, dword [esp + edx*4 + 0x14]
xor dword [esp + edx*4 + 0x18], ecx
inc edx
cmp edx, 4
jb 0x4b5340
movzx ecx, byte [esp + 0x24]
mov edx, 5
movzx ecx, byte [ecx + 0x5950f8]
xor byte [esp + 0x28], cl
movzx ecx, byte [esp + 0x25]
movzx ecx, byte [ecx + 0x5950f8]
xor byte [esp + 0x29], cl
movzx ecx, byte [esp + 0x26]
movzx ecx, byte [ecx + 0x5950f8]
xor byte [esp + 0x2a], cl
movzx ecx, byte [esp + 0x27]
movzx ecx, byte [ecx + 0x5950f8]
xor byte [esp + 0x2b], cl
mov ecx, dword [esp + edx*4 + 0x14]
xor dword [esp + edx*4 + 0x18], ecx
inc edx
cmp edx, 8
jb 0x4b5393
xor esi, esi
test ebx, ebx
je 0x4b53ee
mov ecx, dword [esp + 0xc]
jmp 0x4b53b0
cmp edi, dword [ecx + 0x24]
ja 0x4b53ee
cmp esi, ebx
jae 0x4b53e2
lea esp, [esp]
cmp eax, 4
jae 0x4b53de
mov ebx, dword [esp + 0xc]
lea edx, [eax + edi*4]
mov ecx, dword [esp + esi*4 + 0x18]
inc eax
inc esi
mov dword [ebx + edx*4 + 0x38], ecx
mov ebx, dword [esp + 0x10]
cmp esi, ebx
jb 0x4b53c0
mov ecx, dword [esp + 0xc]
cmp eax, 4
jne 0x4b53ea
inc edi
xor eax, eax
cmp esi, ebx
jb 0x4b53b0
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
cmp edi, dword [ecx + 0x24]
jbe 0x4b52d0
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0054a992
add esp, 0x30
ret
Function at 0x4b5420
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [esp + 4]
movdqu xmm2, xmmword [eax]
mov eax, dword [esp + 8]
movdqa xmm1, xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
movdqa xmmword [eax], xmm2
pxor xmm0, xmm2
pslldq xmm1, 4
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm0
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 1
pshufd xmm0, xmm0, 0xff
pxor xmm3, xmm0
movdqa xmm1, xmm3
movdqa xmmword [eax + 0x10], xmm3
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
pxor xmm0, xmm3
movdqa xmm2, xmm1
pxor xmm2, xmm0
pslldq xmm1, 4
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 2
pshufd xmm0, xmm0, 0xff
pxor xmm2, xmm0
movdqa xmm1, xmm2
movdqa xmmword [eax + 0x20], xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
pxor xmm0, xmm2
movdqa xmm3, xmm1
pxor xmm3, xmm0
pslldq xmm1, 4
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 4
pshufd xmm0, xmm0, 0xff
pxor xmm3, xmm0
movdqa xmm1, xmm3
movdqa xmmword [eax + 0x30], xmm3
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
pxor xmm0, xmm3
movdqa xmm2, xmm1
pxor xmm2, xmm0
pslldq xmm1, 4
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 8
pshufd xmm0, xmm0, 0xff
pxor xmm2, xmm0
movdqa xmm1, xmm2
movdqa xmmword [eax + 0x40], xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
pxor xmm0, xmm2
movdqa xmm3, xmm1
pxor xmm3, xmm0
pslldq xmm1, 4
aeskeygenassist xmm0, xmm2, 0x10
pxor xmm3, xmm1
pshufd xmm0, xmm0, 0xff
pxor xmm3, xmm0
movdqa xmm1, xmm3
movdqa xmmword [eax + 0x50], xmm3
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
pxor xmm0, xmm3
movdqa xmm2, xmm1
pxor xmm2, xmm0
pslldq xmm1, 4
aeskeygenassist xmm0, xmm3, 0x20
pxor xmm2, xmm1
pshufd xmm0, xmm0, 0xff
pxor xmm2, xmm0
movdqa xmm1, xmm2
movdqa xmmword [eax + 0x60], xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
pxor xmm0, xmm2
movdqa xmm3, xmm1
pxor xmm3, xmm0
pslldq xmm1, 4
pxor xmm3, xmm1
aeskeygenassist xmm0, xmm2, 0x40
pshufd xmm0, xmm0, 0xff
pxor xmm3, xmm0
movdqa xmm1, xmm3
movdqa xmmword [eax + 0x70], xmm3
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
pxor xmm0, xmm3
movdqa xmm2, xmm1
pxor xmm2, xmm0
pslldq xmm1, 4
pxor xmm2, xmm1
aeskeygenassist xmm0, xmm3, 0x80
pshufd xmm0, xmm0, 0xff
pxor xmm2, xmm0
movdqa xmm1, xmm2
movdqa xmmword [eax + 0x80], xmm2
pslldq xmm1, 4
movdqa xmm0, xmm1
pslldq xmm1, 4
pxor xmm0, xmm2
movdqa xmm3, xmm1
pxor xmm3, xmm0
pslldq xmm1, 4
aeskeygenassist xmm0, xmm2, 0x1b
pxor xmm3, xmm1
pshufd xmm0, xmm0, 0xff
pxor xmm3, xmm0
movdqa xmm2, xmm3
movdqa xmmword [eax + 0x90], xmm3
pslldq xmm2, 4
movdqa xmm0, xmm2
pslldq xmm2, 4
pxor xmm0, xmm3
movdqa xmm1, xmm2
pxor xmm1, xmm0
pslldq xmm2, 4
aeskeygenassist xmm0, xmm3, 0x36
pxor xmm1, xmm2
pshufd xmm0, xmm0, 0xff
pxor xmm1, xmm0
movdqa xmmword [eax + 0xa0], xmm1
ret
Function at 0x4b5690
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
lea eax, [esp + 0x10]
movdqa xmmword [esp], xmm0
push eax
lea eax, [esp + 0x24]
movdqa xmmword [edx], xmm0
push eax
lea eax, [esp + 8]
movdqa xmmword [esp + 0x18], xmm1
aeskeygenassist xmm0, xmm1, 1
push eax
movdqa xmmword [edx + 0x10], xmm1
movdqa xmmword [esp + 0x2c], xmm0
call fcn.004b5be0
movaps xmm0, xmmword [edx + 0x10]
lea eax, [esp + 0x1c]
movdqa xmm1, xmmword [esp + 0xc]
push eax
shufpd xmm0, xmm1, 0
lea eax, [esp + 0x30]
shufpd xmm1, xmmword [esp + 0x20], 1
push eax
movaps xmmword [edx + 0x10], xmm0
lea eax, [esp + 0x14]
aeskeygenassist xmm0, xmmword [esp + 0x24], 2
push eax
movdqa xmmword [edx + 0x20], xmm1
movdqa xmmword [esp + 0x38], xmm0
call fcn.004b5be0
movdqa xmm0, xmmword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
movdqa xmmword [edx + 0x30], xmm0
lea eax, [esp + 0x3c]
movdqa xmm0, xmmword [esp + 0x2c]
push eax
movdqa xmmword [edx + 0x40], xmm0
lea eax, [esp + 0x20]
aeskeygenassist xmm0, xmm0, 4
push eax
movdqa xmmword [esp + 0x44], xmm0
call fcn.004b5be0
movaps xmm0, xmmword [edx + 0x40]
lea eax, [esp + 0x34]
movdqa xmm1, xmmword [esp + 0x24]
push eax
shufpd xmm0, xmm1, 0
lea eax, [esp + 0x48]
shufpd xmm1, xmmword [esp + 0x38], 1
push eax
movaps xmmword [edx + 0x40], xmm0
lea eax, [esp + 0x2c]
aeskeygenassist xmm0, xmmword [esp + 0x3c], 8
push eax
movdqa xmmword [edx + 0x50], xmm1
movdqa xmmword [esp + 0x50], xmm0
call fcn.004b5be0
movdqa xmm0, xmmword [esp + 0x30]
lea eax, [esp + 0x40]
push eax
movdqa xmmword [edx + 0x60], xmm0
lea eax, [esp + 0x54]
movdqa xmm0, xmmword [esp + 0x44]
push eax
movdqa xmmword [edx + 0x70], xmm0
lea eax, [esp + 0x38]
aeskeygenassist xmm0, xmm0, 0x10
push eax
movdqa xmmword [esp + 0x5c], xmm0
call fcn.004b5be0
movaps xmm0, xmmword [edx + 0x70]
movdqa xmm1, xmmword [esp + 0x3c]
shufpd xmm0, xmm1, 0
shufpd xmm1, xmmword [esp + 0x4c], 1
movaps xmmword [edx + 0x70], xmm0
aeskeygenassist xmm0, xmmword [esp + 0x4c], 0x20
movdqa xmmword [edx + 0x80], xmm1
movdqa xmmword [esp + 0x5c], xmm0
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004b5be0
movdqa xmm0, xmmword [esp + 0x48]
lea eax, [esp + 0x58]
add esp, 0x48
movdqa xmmword [edx + 0x90], xmm0
movdqa xmm0, xmmword [esp + 0x10]
movdqa xmmword [edx + 0xa0], xmm0
aeskeygenassist xmm0, xmm0, 0x40
push eax
lea eax, [esp + 0x24]
movdqa xmmword [esp + 0x24], xmm0
push eax
lea eax, [esp + 8]
push eax
call fcn.004b5be0
movaps xmm0, xmmword [edx + 0xa0]
lea eax, [esp + 0x1c]
movdqa xmm1, xmmword [esp + 0xc]
push eax
shufpd xmm0, xmm1, 0
lea eax, [esp + 0x30]
shufpd xmm1, xmmword [esp + 0x20], 1
push eax
movaps xmmword [edx + 0xa0], xmm0
lea eax, [esp + 0x14]
aeskeygenassist xmm0, xmmword [esp + 0x24], 0x80
push eax
movdqa xmmword [edx + 0xb0], xmm1
movdqa xmmword [esp + 0x38], xmm0
call fcn.004b5be0
movdqa xmm0, xmmword [esp + 0x18]
add esp, 0x18
movdqa xmmword [edx + 0xc0], xmm0
mov esp, ebp
pop ebp
ret
Function at 0x4b87d0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
xor eax, eax
mov edx, 0x5a4d
cmp dx, word [ecx]
cmove eax, ecx
mov eax, dword [eax + 0x3c]
add eax, ecx
xor ecx, ecx
cmp dword [eax], 0x4550
cmove ecx, eax
mov eax, dword [esp + 4]
cmp eax, dword [ecx + 0x74]
jbe 0x4b8809
mov ecx, dword [esp + 8]
xor eax, eax
mov edx, dword [eax + 4]
mov dword [ecx], edx
mov eax, dword [eax]
ret 8
add eax, 0xf
mov edx, dword [ecx + eax*8 + 4]
lea eax, [ecx + eax*8]
mov ecx, dword [esp + 8]
mov dword [ecx], edx
mov eax, dword [eax]
ret 8

Function at 0x4b88e0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
xor eax, eax
push ebx
push esi
push edi
mov edi, 0x5a4d
mov ebx, 0x8664
cmp di, word [ecx]
cmove eax, ecx
xor esi, esi
mov eax, dword [eax + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
cmove esi, eax
xor eax, eax
cmp di, word [ecx]
cmove eax, ecx
xor edx, edx
mov eax, dword [eax + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
cmove edx, eax
xor eax, eax
cmp di, word [ecx]
mov edi, 0x108
cmove eax, ecx
mov eax, dword [eax + 0x3c]
add eax, ecx
xor ecx, ecx
cmp dword [eax], 0x4550
cmove ecx, eax
mov eax, 0xf8
cmp bx, word [ecx + 4]
movzx ebx, word [esi + 6]
cmove eax, edi
add eax, edx
xor edx, edx
test ebx, ebx
jle 0x4b8978
mov edi, dword [esp + 0x10]
lea esp, [esp]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4b8970
mov ecx, dword [eax + 0x10]
add ecx, esi
cmp edi, ecx
jb 0x4b897a
inc edx
add eax, 0x28
cmp edx, ebx
jl 0x4b8960
xor eax, eax
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b9870
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x572bd6
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x24]
mov dword [esi], eax
mov dword [esi + 0x1c], 0xf
mov dword [esi + 0x18], 0
mov byte [esi + 8], 0
mov dword [esi + 4], 0x4442f8
mov dword [esp + 0x1c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov edi, dword [esp + 0x28]
mov ecx, eax
mov byte [esp + 0x1c], 1
cmp byte [ecx + 0xc], 0
mov edx, dword [edi + 0xc]
mov ebx, dword [ecx + 4]
jne 0x4b98f5
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov edx, eax
add edx, ebx
mov ecx, edx
lea ebx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b9900
sub ecx, ebx
push ecx
push edx
lea ecx, [esi + 8]
call fcn.00465aa0
mov eax, dword [edi + 4]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 8]
mov dword [esi + 0x24], eax
mov eax, dword [edi]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x2c], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8

Function at 0x4bc560
Capabilities:
Check if file exists
Get file attributes

Disassembly:
add ecx, 4
cmp dword [ecx + 0x14], 0x10
jb 0x4bc56b
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4bc57e
test al, 0x10
je 0x4bc57e
mov al, 1
ret
xor al, al
ret
Function at 0x4bc590
Capabilities:
Check if file exists
Get file attributes

Disassembly:
add ecx, 4
cmp dword [ecx + 0x14], 0x10
jb 0x4bc59b
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4bc5ae
test al, 0x10
jne 0x4bc5ae
mov al, 1
ret
xor al, al
ret
Function at 0x4bca90
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x573166
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x248], eax
push esi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x4bcb6a
lea eax, [esp + 0x148]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [esp + 0x148], 0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jne 0x4bcb0a
xor ecx, ecx
jmp 0x4bcb1d
lea ecx, [esp + 0x148]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bcb14
sub ecx, edx
push ecx
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x30]
call fcn.00465aa0
mov dword [esp + 0x24], 0x445ab0
lea eax, [esp + 0x24]
mov dword [esp + 0x25c], 0
push eax
mov ecx, esi
call fcn.004ba3a0
cmp dword [esp + 0x3c], 0x10
mov dword [esp + 0x24], 0x4442f8
jb 0x4bcc12
push dword [esp + 0x28]
jmp 0x4bcc0a
cmp dword [esi + 0x18], 0x10
lea eax, [esi + 4]
mov dword [esp + 0x40], 0
jb 0x4bcb7d
mov eax, dword [eax]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x48]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
cmp byte [esp + 0x44], 0
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
jne 0x4bcbb3
xor ecx, ecx
jmp 0x4bcbc9
lea ecx, [esp + 0x44]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bcbc0
sub ecx, edx
push ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x14]
call fcn.00465aa0
mov dword [esp + 8], 0x445ab0
lea eax, [esp + 8]
mov dword [esp + 0x25c], 1
push eax
mov ecx, esi
call fcn.004ba3a0
cmp dword [esp + 0x20], 0x10
mov dword [esp + 8], 0x4442f8
jb 0x4bcc12
push dword [esp + 0xc]
call fcn.00549eaf
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0054a992
add esp, 0x258
ret

Function at 0x4bcd40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5731db
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x124], eax
push esi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x24]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [esp + 0x24], 0
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], 0
mov byte [esp + 0xc], 0
jne 0x4bcdaa
xor ecx, ecx
jmp 0x4bcdba
lea ecx, [esp + 0x24]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bcdb1
sub ecx, edx
push ecx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00465aa0
mov dword [esp + 8], 0x445ab0
lea eax, [esp + 8]
mov dword [esp + 0x138], 0
push eax
mov ecx, esi
call fcn.004ba3a0
cmp dword [esp + 0x20], 0x10
mov dword [esp + 8], 0x4442f8
jb 0x4bce03
push dword [esp + 0xc]
call fcn.00549eaf
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0054a992
add esp, 0x134
ret
Function at 0x4c0400
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x57367d
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x59b000]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
push edi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x14c]
mov ecx, esi
mov dword [esp + 0x144], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc], 0
call fcn.004bbb90
cmp dword [esi + 0x18], 0x10
mov dword [esp + 0x144], 0
mov dword [esp + 0xc], 1
mov dword [esi + 0x14], 0
jb 0x4c0483
mov eax, dword [esi + 4]
jmp 0x4c0486
lea eax, [esi + 4]
mov byte [eax], 0
lea eax, [esp + 0x30]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [esp + 0x30], 0
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
jne 0x4c04b9
xor ecx, ecx
jmp 0x4c04c9
lea ecx, [esp + 0x30]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c04c0
sub ecx, edx
push ecx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
call fcn.00465aa0
mov dword [esp + 0x10], 0x4442f8
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x1c]
mov dword [esp + 0x14c], 1
push eax
lea ecx, [esi + 4]
call fcn.004656b0
cmp dword [esp + 0x28], 0x10
mov dword [esp + 0x10], 0x4442f8
jb 0x4c0517
push dword [esp + 0x14]
call fcn.00549eaf
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0054a992
add esp, 0x13c
ret

Function at 0x4c0700
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5736e4
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 8], edi
push dword [esp + 0x1c]
call fcn.0054a7aa
mov dword [edi], 0x445c0c
mov byte [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x2c], 0xf
mov dword [edi + 0x28], 0
mov byte [edi + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [edi + 0x14], 0x4442f8
mov dword [edi + 0x48], 0xf
mov dword [edi + 0x44], 0
mov byte [edi + 0x34], 0
mov dword [edi + 0x30], 0x4442f8
mov dword [edi + 0x64], 0xf
mov dword [edi + 0x60], 0
mov byte [edi + 0x50], 0
mov dword [edi + 0x4c], 0x4442f8
mov dword [edi + 0x80], 0xf
mov dword [edi + 0x7c], 0
mov byte [edi + 0x6c], 0
mov dword [edi + 0x68], 0x4442f8
push dword [esp + 0x1c]
mov ecx, edi
mov byte [esp + 0x18], 4
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
call fcn.004c1570
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret 4
Function at 0x4c09f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5737bc
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
call fcn.0054a7cd
mov dword [edi], 0x445c0c
mov byte [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x2c], 0xf
mov dword [edi + 0x28], 0
mov byte [edi + 0x18], 0
mov dword [esp + 0x34], 0
mov dword [edi + 0x14], 0x4442f8
mov dword [edi + 0x48], 0xf
mov dword [edi + 0x44], 0
mov byte [edi + 0x34], 0
mov dword [edi + 0x30], 0x4442f8
mov dword [edi + 0x64], 0xf
mov dword [edi + 0x60], 0
mov byte [edi + 0x50], 0
mov dword [edi + 0x4c], 0x4442f8
mov dword [edi + 0x80], 0xf
mov dword [edi + 0x7c], 0
mov byte [edi + 0x6c], 0
mov dword [edi + 0x68], 0x4442f8
lea eax, [esp + 0x10]
mov byte [esp + 0x34], 4
push eax
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
call fcn.004c2b60
add esp, 4
push eax
lea ecx, [edi + 0x68]
mov byte [esp + 0x38], 5
call fcn.004ba3a0
cmp dword [esp + 0x28], 0x10
mov dword [esp + 0x10], 0x4442f8
jb 0x4c0aef
push dword [esp + 0x14]
call fcn.00549eaf
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret

Function at 0x4c1570
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5737f6
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [esp + 0x20]
lea ecx, [ebx + 0x14]
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
lea eax, [edi + 0x14]
push eax
call fcn.004ba3a0
lea eax, [edi + 0x30]
push eax
lea ecx, [ebx + 0x30]
call fcn.004ba3a0
lea eax, [edi + 0x4c]
push eax
lea ecx, [ebx + 0x4c]
call fcn.004ba3a0
lea eax, [edi + 0x68]
push eax
lea ecx, [ebx + 0x68]
call fcn.004ba3a0
mov al, byte [edi + 0xc]
mov byte [ebx + 0xc], al
test al, al
je 0x4c169b
push 0x1c
call fcn.00549e5e
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], 0
test esi, esi
je 0x4c1630
mov eax, dword [edi + 0x84]
test eax, eax
je 0x4c1608
add eax, 4
jmp 0x4c160a
xor eax, eax
push 0xffffffffffffffff
lea ecx, [esi + 4]
mov dword [ecx + 0x14], 0xf
push 0
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004658c0
mov dword [esi], 0x4442f8
jmp 0x4c1632
xor esi, esi
push 0x1c
mov dword [esp + 0x1c], 0xffffffff
mov dword [ebx + 0x84], esi
call fcn.00549e5e
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], 1
test esi, esi
je 0x4c1693
mov eax, dword [edi + 0x88]
test eax, eax
je 0x4c166b
add eax, 4
jmp 0x4c166d
xor eax, eax
push 0xffffffffffffffff
lea ecx, [esi + 4]
mov dword [ecx + 0x14], 0xf
push 0
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004658c0
mov dword [esi], 0x4442f8
jmp 0x4c1695
xor esi, esi
mov dword [ebx + 0x88], esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x4c3a60
Capabilities:
Identify system language via api

Disassembly:
mov eax, dword [0x5a1ff8]
test eax, eax
jne 0x4c3ac3
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
cmp ecx, 4
jne 0x4c3ab7
shr eax, 0xa
mov ecx, eax
sub ecx, 3
je 0x4c3a8f
dec ecx
je 0x4c3aa3
dec ecx
jne 0x4c3a94
mov eax, 1
movzx eax, ax
shl eax, 0xa
or eax, 4
mov dword [0x5a1ff8], eax
ret
mov eax, 2
movzx eax, ax
shl eax, 0xa
or eax, 4
mov dword [0x5a1ff8], eax
ret
mov eax, ecx
or eax, 0x800
mov dword [0x5a1ff8], eax
ret

Function at 0x4c3e10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x573b58
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x59b000]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.004c5540
mov ecx, esi
mov dword [esp + 0x14], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
call fcn.004c42f0
test al, al
jne 0x4c3eb2
mov ecx, esi
call fcn.004c4160
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret