joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5ad4
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4dd52c]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x218], eax
xor eax, eax
mov dword [ebp - 0x21c], ecx
mov word [ebp - 0x20c], ax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x210], eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
lea ebx, [ebx + ebx*2]
shl ebx, 2
push dword [ebx + 0x41474c]
stosw word es:[edi], ax
push dword [ebx + 0x414748]
lea eax, [ebp - 0x20c]
push 0x416ab0
push eax
mov dword [ebp - 0x220], esi
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [esi + 0x19e44]
push eax
lea eax, [esi + 0x19a24]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004805f0
test eax, eax
jne 0x4a5bd0
mov edi, dword [ebp - 0x218]
lea eax, [ebp - 0x21c]
push eax
push edi
push 0
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a5bb6
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x224], 1
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x224], eax
jne 0x4a5cce
mov eax, dword [esi + 0x1979c]
test eax, eax
je 0x4a5bff
push dword [ebp + 0x14]
push dword [ebp - 0x218]
push dword [ebx + 0x41474c]
push dword [ebx + 0x414748]
push 0
push dword [esi + 0x5010]
call eax
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x4a5c43
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp - 0x218]
mov edx, ecx
lea eax, [ebx + 0x414750]
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [eax]
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
mov esi, dword [ebp - 0x220]
pop ecx
mov dword [ebp - 0x214], eax
jne 0x4a5c43
and dword [ebp + 0x14], eax
and word [ebp - 0x20c], 0
push dword [ebx + 0x41474c]
and dword [ebp - 0x210], 0
push dword [ebx + 0x414748]
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push 0x416ab0
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [esi + 0x19e44]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [esi + 0x5010]
call fcn.0048045b
test eax, eax
jne 0x4a5cd9
push dword [ebp + 0x14]
push dword [ebp - 0x218]
push 1
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a5cd9
cmp word [edi], ax
jne 0x4a5cd9
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 0x10
Function at 0x4a5cf3
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4dd52c]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x218], eax
xor eax, eax
mov dword [ebp - 0x21c], ecx
mov word [ebp - 0x20c], ax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x210], eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
lea ebx, [ebx + ebx*2]
shl ebx, 2
push dword [ebx + 0x41474c]
stosw word es:[edi], ax
push dword [ebx + 0x414748]
lea eax, [ebp - 0x20c]
push 0x416ab0
push eax
mov dword [ebp - 0x224], esi
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [esi + 0x1c340]
push eax
lea eax, [esi + 0x1bf30]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004805f0
xor edi, edi
test eax, eax
jne 0x4a5dec
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push edi
push edi
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a5dd4
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x220], 1
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], edi
jne 0x4a5edb
mov eax, dword [esi + 0x1bef0]
cmp eax, edi
je 0x4a5e17
push dword [ebp + 0x14]
push dword [ebp - 0x218]
push dword [ebx + 0x41474c]
push dword [ebx + 0x414748]
push edi
push dword [esi + 4]
call eax
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], edi
jne 0x4a5e55
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp - 0x218]
mov edx, ecx
lea eax, [ebx + 0x414750]
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [eax]
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, dword [ebp - 0x224]
pop ecx
mov dword [ebp - 0x214], eax
xor edi, edi
push dword [ebx + 0x41474c]
mov dword [ebp - 0x210], edi
push dword [ebx + 0x414748]
mov word [ebp - 0x20c], di
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push 0x416ab0
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea eax, [esi + 0x1c340]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [esi + 4]
call fcn.0048045b
test eax, eax
jne 0x4a5eec
push dword [ebp + 0x14]
push dword [ebp - 0x218]
push 1
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a5eec
mov eax, dword [ebp - 0x218]
cmp word [eax], di
jne 0x4a5eec
mov dword [ebp - 0x214], edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 0x10
Function at 0x4a6238
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4dd52c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x218], eax
xor eax, eax
mov ebx, dword [ebp + 8]
mov word [ebp - 0x20c], ax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x224], eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 0x10]
lea edi, [edi + edi*2]
shl edi, 2
push dword [edi + 0x41474c]
lea esi, [esi + esi*2]
push dword [edi + 0x414748]
shl esi, 2
push dword [esi + 0x414748]
lea eax, [ebp - 0x20c]
push 0x416ad0
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
mov eax, dword [ebp + 0x18]
and dword [ebp - 0x210], 0
add eax, eax
add esp, 0x14
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x220], eax
lea eax, [ebx + 0x19e44]
push eax
lea ecx, [ebx + 0x19a24]
mov dword [ebp - 0x230], eax
push ecx
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x228], ecx
call fcn.004805f0
test eax, eax
jne 0x4a6376
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push 0
push 0
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a633d
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x21c], 1
mov dword [ebp - 0x224], eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x21c], eax
je 0x4a6378
mov eax, dword [ebp - 0x224]
shr eax, 1
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 0x14
xor eax, eax
mov ecx, dword [ebx + 0x197a8]
cmp ecx, eax
je 0x4a6361
cmp dword [ebp - 0x218], eax
je 0x4a641b
cmp dword [ebp + 0x18], eax
je 0x4a641b
push dword [ebp + 0x18]
push dword [ebp - 0x218]
push dword [esi + 0x41474c]
push dword [edi + 0x41474c]
push dword [esi + 0x414748]
push eax
push dword [ebx + 0x5010]
call ecx
push dword [ebp - 0x230]
and dword [ebp - 0x210], 0
push dword [ebp - 0x228]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x210]
push eax
call fcn.004806cf
test eax, eax
jne 0x4a6361
push dword [ebp - 0x22c]
push dword [ebp - 0x218]
push 3
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a6361
push eax
push eax
push dword [esi + 0x41474c]
push dword [edi + 0x41474c]
push dword [esi + 0x414748]
push eax
push dword [ebx + 0x5010]
call ecx
jmp 0x4a635b
Function at 0x4a6e0e
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4dd52c]
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov dword [ebp - 4], eax
xor eax, eax
cmp edx, ebx
mov word [ebp - 0x20c], bx
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x218], ebx
stosw word es:[edi], ax
je 0x4a6f5c
push 0x20
pop ecx
push dword [ebp + 0xc]
xor eax, eax
mov edi, edx
push 0x4052b4
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20c]
push 0x40e4e8
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea edi, [esi + 0x19e44]
lea eax, [esi + 0x19a24]
push edi
push eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x220], 0x80
mov dword [ebp - 0x210], ebx
call fcn.004805f0
test eax, eax
jne 0x4a6ef6
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push ebx
push ebx
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a6ee2
mov dword [ebp - 0x218], 1
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], ebx
jne 0x4a6f5c
mov eax, dword [esi + 0x19788]
cmp eax, ebx
je 0x4a6f5c
push dword [ebp - 0x214]
push dword [ebp + 0xc]
push ebx
push dword [esi + 0x5010]
call eax
push edi
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], ebx
call fcn.004806cf
test eax, eax
jne 0x4a6f5c
push 0x80
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push 3
push ebx
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 0xc
Function at 0x4a6f70
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4dd52c]
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
mov dword [ebp - 4], eax
xor eax, eax
cmp edx, ebx
mov word [ebp - 0x20c], bx
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x218], ebx
stosw word es:[edi], ax
je 0x4a70be
push 0x20
pop ecx
push dword [ebp + 0xc]
xor eax, eax
mov edi, edx
push 0x4052b4
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20c]
push 0x40e4e8
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
lea edi, [esi + 0x1c340]
lea eax, [esi + 0x1bf30]
push edi
push eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x220], 0x80
mov dword [ebp - 0x210], ebx
call fcn.004805f0
test eax, eax
jne 0x4a7058
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push ebx
push ebx
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a7044
mov dword [ebp - 0x218], 1
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], ebx
jne 0x4a70be
mov eax, dword [esi + 0x1bedc]
cmp eax, ebx
je 0x4a70be
push dword [ebp - 0x214]
push dword [ebp + 0xc]
push ebx
push dword [esi + 0x1bed4]
call eax
push edi
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x210], ebx
call fcn.004806cf
test eax, eax
jne 0x4a70be
push 0x80
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push 3
push ebx
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 0xc
Function at 0x4a7774
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.004a729f
and dword [ebp + 0x10], 0
mov ebx, eax
shl ebx, 2
test ebx, ebx
mov dword [ebp + 0xc], eax
jle 0x4a77e3
lea edx, [esi + ebx*4 + 8]
lea ecx, [esi + 8]
mov eax, dword [edx - 8]
mov edi, dword [ecx - 8]
add dword [ebp + 0x10], 4
mov dword [ecx - 8], eax
mov eax, dword [edx - 4]
mov dword [edx - 8], edi
mov edi, dword [ecx - 4]
mov dword [ecx - 4], eax
mov eax, dword [edx]
mov dword [edx - 4], edi
mov edi, dword [ecx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [edx], edi
mov edi, dword [ecx + 4]
mov dword [ecx + 4], eax
mov dword [edx + 4], edi
sub ebx, 4
add ecx, 0x10
sub edx, 0x10
cmp dword [ebp + 0x10], ebx
jl 0x4a77a2
mov eax, dword [ebp + 0xc]
cmp eax, 1
jle 0x4a7955
lea ecx, [eax - 1]
mov dword [ebp + 0x10], ecx
mov ecx, 0xff
movzx ebx, byte [esi + 0x11]
mov ebx, dword [ebx*4 + 0x417b18]
add esi, 0x10
mov edx, dword [esi]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + 0x417b18]
and edi, ecx
mov edi, dword [edi*4 + 0x417f18]
and ebx, ecx
xor edi, dword [ebx*4 + 0x418718]
movzx ebx, byte [esi + 2]
mov ebx, dword [ebx*4 + 0x417b18]
and ebx, ecx
xor edi, dword [ebx*4 + 0x418318]
movzx ebx, byte [esi + 5]
and edx, ecx
mov edx, dword [edx*4 + 0x417b18]
and edx, ecx
xor edi, dword [edx*4 + 0x418b18]
mov edx, dword [esi + 4]
mov dword [esi], edi
mov ebx, dword [ebx*4 + 0x417b18]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + 0x417b18]
and edi, ecx
mov edi, dword [edi*4 + 0x417f18]
and ebx, ecx
xor edi, dword [ebx*4 + 0x418718]
movzx ebx, byte [esi + 6]
mov ebx, dword [ebx*4 + 0x417b18]
and ebx, ecx
xor edi, dword [ebx*4 + 0x418318]
movzx ebx, byte [esi + 9]
and edx, ecx
mov edx, dword [edx*4 + 0x417b18]
and edx, ecx
xor edi, dword [edx*4 + 0x418b18]
mov edx, dword [esi + 8]
mov dword [esi + 4], edi
mov ebx, dword [ebx*4 + 0x417b18]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + 0x417b18]
and edi, ecx
mov edi, dword [edi*4 + 0x417f18]
and ebx, ecx
xor edi, dword [ebx*4 + 0x418718]
movzx ebx, byte [esi + 0xa]
mov ebx, dword [ebx*4 + 0x417b18]
and ebx, ecx
xor edi, dword [ebx*4 + 0x418318]
movzx ebx, byte [esi + 0xd]
and edx, ecx
mov edx, dword [edx*4 + 0x417b18]
and edx, ecx
xor edi, dword [edx*4 + 0x418b18]
mov edx, dword [esi + 0xc]
mov dword [esi + 8], edi
mov ebx, dword [ebx*4 + 0x417b18]
mov edi, edx
shr edi, 0x18
mov edi, dword [edi*4 + 0x417b18]
and edi, ecx
mov edi, dword [edi*4 + 0x417f18]
and ebx, ecx
xor edi, dword [ebx*4 + 0x418718]
movzx ebx, byte [esi + 0xe]
mov ebx, dword [ebx*4 + 0x417b18]
and edx, ecx
mov edx, dword [edx*4 + 0x417b18]
and ebx, ecx
xor edi, dword [ebx*4 + 0x418318]
and edx, ecx
xor edi, dword [edx*4 + 0x418b18]
dec dword [ebp + 0x10]
mov dword [esi + 0xc], edi
jne 0x4a77f7
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4a8423
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jbe 0x4a844b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
xor dl, byte [eax]
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x4a843e
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x4a8a64
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4a8a84
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4a8a84
test al, 0x10
jne 0x4a8a84
inc esi
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x4aa34b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor esi, esi
push esi
push esi
push 5
mov ebx, 0x400
push ebx
mov dword [ebp - 8], esi
call edi
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x4aa37b
xor eax, eax
jmp 0x4aa40d
add eax, eax
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
call esi
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
push 0
call esi
cmp dword [ebp - 4], 0
mov esi, eax
je 0x4aa3f0
test esi, esi
je 0x4aa3fb
push dword [ebp - 0xc]
push dword [ebp - 4]
push 5
push ebx
call edi
test eax, eax
jle 0x4aa3f0
lea ecx, [eax + eax]
push ecx
push dword [ebp - 4]
push 0
push eax
push esi
call fcn.004ac438
push esi
call sub.msvcrt.dll_atol
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4aa3ec
cmp eax, 2
je 0x4aa3ec
cmp eax, 0x32
jl 0x4aa3d9
cmp eax, 0x3c
jl 0x4aa3ec
cmp eax, 0x1f4
jl 0x4aa3e7
cmp eax, 0x258
jl 0x4aa3ec
mov dword [ebp - 8], ecx
jmp 0x4aa3f0
and dword [ebp - 8], 0
test esi, esi
je 0x4aa3fb
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 4], 0
je 0x4aa40a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4aa5e4
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4dd52c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004aa417
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4aa64c
push 0
lea eax, [ebp - 0x210]
push eax
push dword [esi]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004a9585
leave
ret 8
Function at 0x4ae9fc
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
xor ebx, ebx
inc ebx
push ebx
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4aea2c
xor eax, eax
jmp 0x4aea8f
push edi
mov edi, dword [ebp + 0x14]
cmp edi, esi
je 0x4aea43
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x4aea83
push esi
push esi
push esi
push 2
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, esi
je 0x4aea74
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
je 0x4aea74
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x4aea76
xor ebx, ebx
cmp edi, esi
je 0x4aea81
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4c0c2a
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
push 0xc8
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, dword [ebp + 8]
test ebx, ebx
mov edi, eax
pop ecx
mov dword [ebp - 0x10], edi
jne 0x4c0c62
test edi, edi
je 0x4c0c58
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, 0xfffff446
jmp 0x4c0e08
test edi, edi
jne 0x4c0c70
mov eax, 0xfffff447
jmp 0x4c0e08
push esi
push 0x15
push edi
call fcn.004cefd7
mov dword [ebp + 8], eax
push 0x15
add eax, 0x64
push eax
call fcn.004cefd7
mov dword [ebp - 8], eax
call fcn.004c7a43
mov esi, eax
test esi, esi
jne 0x4c0ca6
push edi
call dword [sym.imp.msvcrt.dll_free]
mov eax, 0xfffff447
jmp 0x4c0e06
and dword [ebp - 4], 0
mov edi, dword [sym.imp.msvcrt.dll_rand]
call edi
shl eax, 0x10
mov dword [ebp - 0xc], eax
call edi
mov ecx, dword [ebp - 0xc]
xor ecx, eax
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
mov dword [ebp + eax*4 - 0x20], ecx
jl 0x4c0caa
push dword [0x4dfb5c]
push dword [ebx + 0x10]
push dword [ebp - 8]
call fcn.004cf52a
mov edi, dword [ebp + 8]
push dword [edi + 0xc]
lea eax, [ebp - 0x20]
push 0xa0
push eax
call fcn.004bf81a
mov dword [edi + 4], 5
push dword [0x4dfb5c]
push edi
call fcn.004cf060
test eax, eax
jl 0x4c0ce0
push dword [ebp - 8]
push edi
call fcn.004cf060
test eax, eax
jg 0x4c0ce0
xor edx, edx
mov eax, edi
cmp dword [eax + 4], edx
jbe 0x4c0d35
mov edi, dword [eax + 0xc]
mov ecx, dword [eax + 4]
cmp dword [edi + ecx*4 - 4], edx
jne 0x4c0d35
dec ecx
cmp ecx, edx
mov dword [eax + 4], ecx
ja 0x4c0d24
xor eax, eax
push 0x15
mov ecx, 0x83
mov edi, esi
rep stosd dword es:[edi], eax
pop edi
push edi
lea eax, [esi + 0x18]
push eax
mov dword [esi], edx
call fcn.004cefd7
mov dword [esi + 4], eax
push edi
add eax, 0x64
push eax
call fcn.004cefd7
mov dword [esi + 8], eax
push edi
add eax, 0x64
push eax
call fcn.004cefd7
mov dword [esi + 0xc], eax
push edi
add eax, 0x64
push eax
call fcn.004cefd7
mov dword [esi + 0x10], eax
push edi
add eax, 0x64
push eax
call fcn.004cefd7
push dword [ebp + 8]
mov dword [esi + 0x14], eax
push dword [ebx + 0x14]
push esi
push ebx
call fcn.004c8628
test eax, eax
je 0x4c0d9b
mov ebx, eax
jmp 0x4c0df5
push dword [ebp + 8]
push dword [ebx + 0x18]
call fcn.004cef4c
mov eax, dword [ebx + 0x1c]
mov ecx, dword [esi]
mov dword [eax], ecx
push dword [esi + 4]
mov eax, dword [ebx + 0x1c]
push dword [eax + 4]
call fcn.004cef4c
push dword [esi + 8]
mov eax, dword [ebx + 0x1c]
push dword [eax + 8]
call fcn.004cef4c
push dword [esi + 0xc]
mov eax, dword [ebx + 0x1c]
push dword [eax + 0xc]
call fcn.004cef4c
push dword [esi + 0x10]
mov eax, dword [ebx + 0x1c]
push dword [eax + 0x10]
call fcn.004cef4c
push dword [esi + 0x14]
mov eax, dword [ebx + 0x1c]
push dword [eax + 0x14]
call fcn.004cef4c
xor ebx, ebx
push dword [ebp - 0x10]
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push esi
call edi
pop ecx
mov eax, ebx
pop ecx
pop esi
pop edi
pop ebx
leave
ret 4