joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ccd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [0x54b07c]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
mov eax, edx
mov ebp, ecx
push esi
push edi
mov ecx, eax
mov dword [esp + 0x10], eax
call fcn.00402680
mov esi, eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x14]
mov edi, dword [esi*4 + 0x531eb8]
mov ebx, dword [edi*4 + 0x5321f0]
mov ecx, dword [ebx*4 + 0x532250]
call ecx
mov eax, dword [0x54dd84]
add esp, 8
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebx
mov dword [eax], ebp
mov eax, dword [0x54dd84]
add eax, 4
mov dword [0x54dd84], eax
mov dword [eax], ecx
mov edx, dword [0x54dd84]
mov eax, dword [esp + 0x18]
add edx, 4
mov dword [0x54dd84], edx
cmp eax, 0x17
ja case.default.0x48cd58
jmp dword [eax*4 + 0x48cef8]
mov dword [edx], 0
jmp 0x48ce90
movzx eax, byte [esp + 0x20]
mov eax, dword [eax*8 + 0x25816c0]
jmp 0x48ce8e
movzx eax, byte [esp + 0x20]
mov eax, dword [eax*8 + 0x25816c0]
mov dword [edx], eax
mov ecx, dword [0x54dd84]
movzx eax, byte [esp + 0x21]
add ecx, 4
mov dword [0x54dd84], ecx
mov eax, dword [eax*8 + 0x25816c0]
mov dword [ecx], eax
jmp 0x48cea3
movzx eax, byte [esp + 0x20]
movsx ecx, word [esp + 0x22]
add ecx, dword [eax*8 + 0x25816c0]
mov dword [edx], ecx
mov ecx, dword [0x54dd84]
movzx eax, byte [esp + 0x21]
add ecx, 4
mov dword [0x54dd84], ecx
mov eax, dword [eax*8 + 0x25816c0]
mov dword [ecx], eax
jmp 0x48cea3
movzx eax, byte [esp + 0x20]
movsx ecx, word [esp + 0x22]
add ecx, dword [eax*8 + 0x25816c0]
mov dword [edx], ecx
jmp 0x48ce90
movzx eax, byte [esp + 0x20]
movsx ecx, word [esp + 0x22]
add ecx, dword [eax*8 + 0x25816c0]
mov dword [edx], ecx
movzx eax, byte [esp + 0x21]
mov ecx, dword [0x54dd84]
add ecx, 4
mov dword [0x54dd84], ecx
mov eax, dword [eax*4 + 0x2581500]
mov eax, dword [eax]
mov dword [ecx], eax
jmp 0x48cea3
movzx eax, byte [esp + 0x22]
mov eax, dword [eax*8 + 0x25816c0]
jmp 0x48ce8e
movzx eax, byte [esp + 0x21]
mov eax, dword [eax*8 + 0x25816c0]
jmp 0x48ce8e
movzx eax, byte [esp + 0x21]
jmp 0x48ce85
movzx eax, byte [esp + 0x21]
mov eax, dword [eax*4 + 0x2581500]
mov eax, dword [eax]
mov dword [edx], eax
movzx eax, byte [esp + 0x20]
mov ecx, dword [0x54dd84]
add ecx, 4
mov dword [0x54dd84], ecx
mov eax, dword [eax*4 + 0x2581500]
mov eax, dword [eax]
mov dword [ecx], eax
jmp 0x48cea3
movzx eax, byte [esp + 0x20]
mov eax, dword [eax*4 + 0x2581500]
mov eax, dword [eax]
mov dword [edx], eax
mov eax, dword [0x54dd84]
add eax, 4
mov dword [0x54dd84], eax
mov dword [eax], 0
mov edx, dword [0x54dd84]
add edx, 4
mov dword [0x54dd84], edx
cmp edx, 0x2691f18
jb 0x48cee3
push 0
lea eax, [esp + 0x14]
sub edx, 0x2682118
push eax
push edx
push 0x2682118
push dword [0x2692118]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x54dd84], 0x2682118
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049dba8
add esp, 0x1c
ret
Function at 0x48d760
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fafa3
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x54b07c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov byte [edi], 0
xor eax, eax
mov dword [edi + 4], 1
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], 7
mov word [edi + 8], ax
mov dword [ebp - 4], eax
lea esi, [edi + 0x38]
mov dword [edi + 0x20], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [ebp - 0x14], esi
mov dword [esi], eax
push 0x10
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.0049dbb6
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 2
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
push 0x10
call fcn.0048e870
mov byte [ebp - 4], 3
lea esi, [edi + 0x58]
mov dword [ebp - 0x14], esi
mov dword [esi], 0
push 0x24
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0049dbb6
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 5
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
push 0x10
call fcn.0048e870
mov byte [ebp - 4], 6
lea esi, [edi + 0x78]
mov dword [ebp - 0x14], esi
mov dword [esi], 0
push 0x24
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.0049dbb6
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 8
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
push 0x10
call fcn.0048e870
mov byte [ebp - 4], 9
lea esi, [edi + 0x98]
mov dword [ebp - 0x14], esi
push 8
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.0049dbb6
add esp, 4
mov dword [eax + 4], 0
mov dword [esi], eax
mov dword [eax], esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x48ede0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9745
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x54b07c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, edx
cmp dword [edx + 0x14], 0x10
jb 0x48ee17
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x48ee35
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x48ee23
push esi
push edx
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0043e230
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x48ee66
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x71c71c7
je 0x48ef69
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0x24
mov dword [ebp - 0x18], 0
call fcn.0049dbb6
add esp, 4
mov edi, eax
mov dword [ebp - 0x18], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.00401d10
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 1
mov eax, dword [ebx]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 8]
fld dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
fild dword [ebp + 0xc]
jns 0x48eecb
fadd dword [0x541ce4]
fstp dword [ebp + 0xc]
fld dword [ebp + 0xc]
mov eax, dword [ebx + 0x1c]
fild dword [ebx + 0x1c]
test eax, eax
jns 0x48eee1
fadd dword [0x541ce4]
fstp dword [ebp + 0xc]
fdiv dword [ebp + 0xc]
fcompp
fnstsw ax
test ah, 0x41
jne 0x48ef0b
mov ecx, ebx
call fcn.0048f570
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0043e230
mov edx, dword [eax]
jmp 0x48ef0e
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [eax], edi
mov dword [edx + 4], edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x18]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x48ef36
mov dword [ecx + eax*8], edi
jmp 0x48ef48
cmp esi, edx
jne 0x48ef3f
mov dword [ecx + eax*8], edi
jmp 0x48ef4c
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x48ef4c
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.0049bd48
int3
Function at 0x48ef80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9745
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x54b07c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov esi, edx
cmp dword [edx + 0x14], 0x10
jb 0x48efb7
mov esi, dword [edx]
xor ecx, ecx
mov edi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x48efd5
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x48efc3
push edi
push edx
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
call fcn.0043e230
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x48f006
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x71c71c7
je 0x48f149
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0x24
mov dword [ebp - 0x18], 0
call fcn.0049dbb6
mov ecx, dword [ebp + 0xc]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x18], esi
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov eax, dword [ecx]
mov dword [esi + 8], eax
mov eax, dword [ecx + 4]
mov dword [esi + 0xc], eax
mov eax, dword [ecx + 8]
mov dword [esi + 0x10], eax
mov eax, dword [ecx + 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ecx + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ecx + 0x14]
mov dword [esi + 0x1c], eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov dword [esi + 0x20], 0
mov dword [ebp - 4], 1
mov eax, dword [ebx]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 8]
fld dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
fild dword [ebp + 0xc]
jns 0x48f0ab
fadd dword [0x541ce4]
fstp dword [ebp + 0xc]
fld dword [ebp + 0xc]
mov eax, dword [ebx + 0x1c]
fild dword [ebx + 0x1c]
test eax, eax
jns 0x48f0c1
fadd dword [0x541ce4]
fstp dword [ebp + 0xc]
fdiv dword [ebp + 0xc]
fcompp
fnstsw ax
test ah, 0x41
jne 0x48f0eb
mov ecx, ebx
call fcn.0048f570
push edi
lea eax, [esi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0043e230
mov edx, dword [eax]
jmp 0x48f0ee
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x18]
and eax, edi
mov edi, dword [ecx + eax*8]
cmp edi, dword [ebx + 4]
jne 0x48f116
mov dword [ecx + eax*8], esi
jmp 0x48f128
cmp edi, edx
jne 0x48f11f
mov dword [ecx + eax*8], esi
jmp 0x48f12c
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x48f12c
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.0049bd48
int3
Function at 0x49bdd2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0049bdae
pop esi
leave
ret 8

Function at 0x49e8ea
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49e929
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49e929
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49e929
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x49e929
cmp dword [ecx + 0x74], 0xe
jbe 0x49e929
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4a42f0
Capabilities:
Check http status code

Disassembly:
sub esp, 0xd8
mov eax, dword [0x54b07c]
xor eax, esp
mov dword [esp + 0xd4], eax
push ebx
mov ebx, dword [esp + 0xe4]
lea eax, [esp + 4]
push ebp
push esi
mov esi, dword [esp + 0xe8]
push edi
push eax
push esi
call fcn.004a3410
mov edx, eax
add esp, 8
test edx, edx
je 0x4a4343
mov ecx, dword [esp + 0x10]
sub edx, esi
mov dword [ebx], ecx
mov al, 3
mov ecx, dword [esp + 0x14]
mov dword [ebx + 4], ecx
mov byte [ebx + 8], al
lea eax, [edx + 1]
jmp 0x4a4362
push 0x51e050
push esi
call fcn.004db420
add esp, 8
test eax, eax
je 0x4a437b
movzx edi, byte [eax]
or edi, 0x20
cmp edi, 0x6e
jne 0x4a437d
xor eax, eax
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049dba8
add esp, 0xd8
ret
xor edi, edi
push edi
lea eax, [esp + 0x14]
push eax
push esi
call fcn.004a33a0
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x4a440c
push 0x2e
push esi
call fcn.004c9ae0
mov edx, esi
mov ebp, eax
add esp, 8
lea eax, [edx + 1]
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4a43a4
sub edx, eax
cmp edx, 0xc8
ja 0x4a4360
test ebp, ebp
je 0x4a4360
lea edx, [esp + 0x18]
mov ecx, esi
sub edx, esi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4a43c1
call fcn.004cfc31
sub ebp, esi
push edi
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + ebp + 0x1c], al
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004a33a0
mov edx, eax
add esp, 0xc
test edx, edx
je 0x4a4360
mov eax, esi
lea ecx, [esp + 0x18]
sub eax, ecx
add edx, eax
test edx, edx
je 0x4a4360
movsd xmm0, qword [esp + 0x10]
sub edx, esi
mov al, 0x13
movsd qword [ebx], xmm0
mov byte [ebx + 8], al
lea eax, [edx + 1]
jmp 0x4a4362
Function at 0x4a44d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x10
push esi
push edi
call fcn.004cfc31
mov ecx, dword [esp + 0x1c]
xor edi, edi
xor esi, esi
xorps xmm1, xmm1
mov eax, dword [eax]
movsx eax, byte [eax]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [eax], ecx
mov al, byte [ecx]
mov byte [esp + 0x1f], al
movzx eax, al
test byte [eax + 0x5205f1], 8
je 0x4a4524
mov al, byte [ecx + 1]
inc ecx
mov byte [esp + 0x1f], al
movzx eax, al
test byte [eax + 0x5205f1], 8
jne 0x4a4510
mov al, byte [esp + 0x1f]
lea edx, [ecx + 1]
cmp al, 0x2d
jne 0x4a4539
mov dword [esp + 0xc], 1
jmp 0x4a4542
cmp al, 0x2b
mov dword [esp + 0xc], esi
cmovne edx, ecx
cmp byte [edx], 0x30
jne 0x4a4686
mov al, byte [edx + 1]
cmp al, 0x78
je 0x4a455a
cmp al, 0x58
jne 0x4a4686
movsd xmm2, qword [0x51e0c0]
add edx, 2
mov al, byte [edx]
movsx ecx, al
mov byte [esp + 0x1f], al
cmp ecx, dword [esp + 8]
jne 0x4a4586
cmp dword [esp + 0x14], 0
jne 0x4a45db
mov dword [esp + 0x14], 1
inc edx
jmp 0x4a4565
movzx eax, al
test byte [eax + 0x5205f1], 0x10
je 0x4a45db
test edi, edi
jne 0x4a45a3
cmp byte [esp + 0x1f], 0x30
jne 0x4a45a3
inc dword [esp + 0x10]
jmp 0x4a45d0
inc edi
cmp edi, 0x1e
jg 0x4a45cf
test byte [ecx + 0x5205f1], 2
je 0x4a45b7
add ecx, 0xffffffd0
jmp 0x4a45bd
or ecx, 0x20
sub ecx, 0x57
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x4a45d0
inc esi
cmp dword [esp + 0x14], 0
je 0x4a45d8
dec esi
inc edx
jmp 0x4a4565
mov eax, dword [esp + 0x10]
add eax, edi
je 0x4a4686
mov edi, dword [esp + 0x20]
shl esi, 2
mov dword [edi], edx
mov al, byte [edx]
cmp al, 0x70
je 0x4a45fa
cmp al, 0x50
jne 0x4a4661
mov al, byte [edx + 1]
xor ecx, ecx
mov byte [esp + 0x1f], al
cmp al, 0x2d
jne 0x4a460c
lea eax, [ecx + 2]
jmp 0x4a4617
xor eax, eax
cmp byte [esp + 0x1f], 0x2b
sete al
inc eax
add edx, eax
mov al, byte [edx]
mov byte [esp + 0x23], al
movzx eax, al
test byte [eax + 0x5205f1], 2
je 0x4a4686
nop dword [eax + eax]
movsx eax, byte [esp + 0x23]
lea ecx, [ecx + ecx*4]
inc edx
lea ecx, [ecx - 0x18]
lea ecx, [eax + ecx*2]
mov al, byte [edx]
mov byte [esp + 0x23], al
movzx eax, al
test byte [eax + 0x5205f1], 2
jne 0x4a4630
mov eax, ecx
mov dword [edi], edx
neg eax
cmp byte [esp + 0x1f], 0x2d
cmovne eax, ecx
add esi, eax
cmp dword [esp + 0xc], 0
je 0x4a466f
xorps xmm1, xmmword [0x51e0d0]
push esi
sub esp, 8
movsd qword [esp], xmm1
call fcn.004db228
add esp, 0xc
pop edi
pop esi
add esp, 0x10
ret
fldz
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4a96a0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov al, byte [eax + 0x4c]
push edi
mov edi, dword [esp + 0x18]
mov byte [esp + 0x14], al
mov esi, dword [edi]
cmp esi, ebp
je 0x4a9804
push ebx
mov ebx, dword [esp + 0x14]
nop word [eax + eax]
mov cl, byte [esi + 5]
test cl, 0x18
je 0x4a97d5
mov eax, dword [esi]
mov dword [edi], eax
movzx eax, byte [esi + 4]
add eax, 0xfffffffc
cmp eax, 0x22
ja case.0x4a96f7.11
movzx eax, byte [eax + 0x4a9834]
jmp dword [eax*4 + 0x4a980c]
push esi
push ebx
call fcn.004a7110
add esp, 8
jmp case.0x4a96f7.11
lea eax, [esi + 0x10]
cmp dword [esi + 8], eax
je 0x4a971e
push esi
call fcn.004a73e0
add esp, 4
push 0x20
push esi
push ebx
call fcn.004b2030
add esp, 0xc
jmp case.0x4a96f7.11
movzx eax, byte [esi + 6]
lea eax, [eax*4 + 0x10]
push eax
push esi
push ebx
call fcn.004b2030
add esp, 0xc
jmp case.0x4a96f7.11
movzx eax, byte [esi + 6]
inc eax
shl eax, 4
push eax
push esi
push ebx
call fcn.004b2030
add esp, 0xc
jmp case.0x4a96f7.11
push esi
push ebx
call fcn.004aac00
add esp, 8
jmp case.0x4a96f7.11
push esi
push ebx
call fcn.004a2a70
add esp, 8
jmp case.0x4a96f7.11
movzx eax, word [esi + 6]
test ax, ax
jne 0x4a978d
mov ecx, 0x10
jmp 0x4a9795
mov ecx, eax
shl ecx, 4
add ecx, 0x18
mov eax, dword [esi + 8]
add eax, ecx
push eax
push esi
push ebx
call fcn.004b2030
add esp, 0xc
jmp case.0x4a96f7.11
push esi
push ebx
call fcn.004aa790
movzx eax, byte [esi + 7]
add eax, 0x11
push eax
push esi
push ebx
call fcn.004b2030
add esp, 0x14
jmp case.0x4a96f7.11
mov eax, dword [esi + 0xc]
add eax, 0x11
push eax
push esi
push ebx
call fcn.004b2030
add esp, 0xc
jmp case.0x4a96f7.11
test cl, 7
jne 0x4a97e1
and cl, 0xc7
and al, 0x18
or cl, al
movzx eax, cl
mov edi, esi
and eax, 7
and cl, 0xf8
or cl, byte [eax + 0x51e3d0]
mov byte [esi + 5], cl
mov esi, dword [edi]
mov al, byte [esp + 0x18]
cmp esi, ebp
jne 0x4a96d0
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4aa1b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
mov edx, ebx
push ebp
push esi
mov esi, dword [eax + 0x10]
push edi
mov dword [esp + 0x10], esi
mov ebp, dword [esi + 0x48]
xor ebp, ebx
cmp ebx, 1
jb 0x4aa1f1
mov edi, dword [esp + 0x20]
movzx ecx, byte [edi + edx - 1]
mov eax, ebp
shl eax, 5
dec edx
add ecx, eax
mov eax, ebp
shr eax, 2
add ecx, eax
xor ebp, ecx
cmp edx, 1
jae 0x4aa1d6
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
lea ecx, [edx - 1]
and ecx, ebp
mov edi, dword [eax + ecx*4]
lea eax, [eax + ecx*4]
mov dword [esp + 0x14], eax
test edi, edi
je 0x4aa277
nop word [eax + eax]
movzx eax, byte [edi + 7]
cmp ebx, eax
jne 0x4aa269
mov ecx, dword [esp + 0x20]
lea edx, [edi + 0x10]
mov esi, ebx
sub esi, 4
jb 0x4aa237
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4aa23c
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4aa226
cmp esi, 0xfffffffc
je 0x4aa2a7
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4aa269
cmp esi, 0xfffffffd
je 0x4aa2a7
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4aa269
cmp esi, 0xfffffffe
je 0x4aa2a7
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4aa269
cmp esi, 0xffffffff
je 0x4aa2a7
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x4aa2a7
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x4aa210
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
cmp eax, edx
jl 0x4aa349
mov edi, dword [esp + 0x1c]
cmp eax, 0x7fffffff
jne 0x4aa2c7
push 1
push edi
call fcn.004a8500
add esp, 8
cmp dword [esi + 0x1c], 0x7fffffff
je 0x4aa396
jmp 0x4aa2c7
mov ecx, dword [esp + 0x10]
mov al, byte [edi + 5]
mov cl, byte [ecx + 0x4c]
xor cl, 0x18
test al, cl
je 0x4aa2bd
xor al, 0x18
mov byte [edi + 5], al
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov esi, dword [esi + 0x20]
cmp esi, 0x1fffffff
jg 0x4aa333
mov ebx, dword [edi + 0x10]
add esi, esi
mov edi, dword [ebx + 0x20]
cmp esi, edi
jge 0x4aa2eb
push esi
push edi
push dword [ebx + 0x18]
call fcn.004aa850
add esp, 0xc
lea eax, [esi*4]
push eax
lea eax, [edi*4]
push eax
push dword [ebx + 0x18]
mov eax, dword [esp + 0x28]
push eax
call fcn.004b2140
add esp, 0x10
test eax, eax
jne 0x4aa31a
cmp esi, edi
jge 0x4aa32f
push edi
push esi
push dword [ebx + 0x18]
jmp 0x4aa327
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x20], esi
cmp esi, edi
jle 0x4aa32f
push esi
push edi
push eax
call fcn.004aa850
add esp, 0xc
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec ecx
and ecx, ebp
lea eax, [eax + ecx*4]
mov dword [esp + 0x14], eax
jmp 0x4aa34d
mov edi, dword [esp + 0x10]
lea eax, [ebx + 0x11]
push eax
push 4
push dword [esp + 0x24]
call fcn.004a85e0
mov esi, eax
push ebx
push dword [esp + 0x30]
lea ecx, [esi + 0x10]
mov dword [esi + 8], ebp
mov byte [esi + 6], 0
push ecx
mov byte [esi + ebx + 0x10], 0
call fcn.004c77d0
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov byte [esi + 7], bl
mov eax, dword [ecx]
mov dword [esi + 0xc], eax
mov eax, esi
mov dword [ecx], esi
inc dword [edi + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 4
push edi
call fcn.004a6a40
int3
Function at 0x4aa490
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
xor eax, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
cmp esi, edi
jb 0x4aa4cc
push ebx
mov ebx, dword [esp + 0x10]
nop dword [eax]
movzx edx, byte [ebx + esi - 1]
mov ecx, eax
shl ecx, 5
sub esi, edi
add edx, ecx
mov ecx, eax
shr ecx, 2
add edx, ecx
xor eax, edx
cmp esi, edi
jae 0x4aa4b0
pop ebx
pop edi
pop esi
ret