joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5c08
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff90
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, esp
call fcn.00495d60
mov edx, ebx
mov eax, esp
mov ecx, edi
call fcn.00495d8c
lea edx, [esp + 0x60]
mov eax, esp
call fcn.00496498
mov ecx, 8
lea eax, [esp + 0x60]
mov edx, esi
movzx ebx, byte [eax]
xor bl, byte [eax + 8]
mov byte [edx], bl
inc edx
inc eax
dec ecx
jne 0x4c5c3c
add esp, 0x70
pop edi
pop esi
pop ebx
ret

Function at 0x4c5c50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff98
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, esp
call fcn.00497b18
mov eax, esp
mov ecx, edi
mov edx, ebx
call fcn.004984b4
mov edx, esp
lea eax, [esp + 0x58]
call fcn.00497c14
mov ecx, 8
lea eax, [esp + 0x58]
mov edx, esi
movzx ebx, byte [eax]
xor bl, byte [eax + 8]
mov byte [edx], bl
inc edx
inc eax
dec ecx
jne 0x4c5c84
add esp, 0x68
pop edi
pop esi
pop ebx
ret

Function at 0x4c5cb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c5d47
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00497908
mov eax, dword [ebp - 4]
test eax, eax
je 0x4c5ceb
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x14
jne 0x4c5d31
xor eax, eax
mov edx, esi
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + eax]
mov ebx, dword [ebp - 4]
movzx ebx, byte [ebx + eax + 8]
xor cl, bl
mov byte [edx], cl
inc eax
inc edx
cmp eax, 8
jne 0x4c5cf4
xor eax, eax
mov edx, esi
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + eax + 0x10]
xor byte [edx], cl
inc eax
inc edx
cmp eax, 4
jne 0x4c5d12
mov edx, esi
mov eax, esi
mov ecx, 2
call fcn.004c5c98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5d4e
lea eax, [ebp - 4]
call fcn.004064cc
ret

Function at 0x4c66b8
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
push ecx
mov ebx, 0x50ab80
test edx, edx
jne 0x4c66cb
xor eax, eax
jmp 0x4c67e0
mov dword [esp], 1
cmp byte [esp], 0
je 0x4c66e8
push ecx
push edx
push eax
call fcn.004c67e4
add esp, 0xc
jmp 0x4c67e0
push ecx
push edx
push eax
call fcn.004c6ae8
add esp, 0xc
jmp 0x4c67e0
pop edx
pop esi
pop ebx
ret
Function at 0x4c83ec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0x74]
sub eax, dword [ebx + 0x6c]
mov dword [ebp - 8], eax
jmp 0x4c8427
mov edx, dword [ebx + 0x2c]
sub edx, 0x106
add edx, esi
cmp edx, dword [ebx + 0x6c]
ja 0x4c84a8
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov edi, esi
add edx, edi
push edx
push eax
call fcn.004c62cc
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], edi
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
cmp esi, dword [ebp - 4]
ja 0x4c8475
mov cx, word [ebp - 4]
sub cx, si
jmp 0x4c8477
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4c845e
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
cmp esi, dword [ebp - 4]
ja 0x4c849d
mov cx, word [ebp - 4]
sub cx, si
jmp 0x4c849f
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4c8486
add dword [ebp - 8], esi
mov edi, dword [ebx]
cmp dword [edi + 4], 0
je 0x4c850a
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebx + 0x38]
add edx, dword [ebx + 0x6c]
add edx, dword [ebx + 0x74]
push edx
push edi
call fcn.004c80b8
add esp, 0xc
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x4c84f5
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x6c]
movzx eax, byte [ecx + eax]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x4c850a
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4c83fb
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4d01d4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 8], ebx
test dl, dl
je 0x4d01ed
add esp, 0xfffffff0
call fcn.004058d4
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4d0406
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.00498f90
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x44]
xor eax, eax
mov dword [ebx + 0xe8], eax
mov dword [ebx + 0xec], eax
xor eax, eax
mov dword [ebx + 0xf0], eax
mov dword [ebx + 0xf4], eax
mov byte [ebx + 0x94], 0x49
lea eax, [ebx + 0x5c]
mov edx, 0x4d0434
call fcn.00406520
xor eax, eax
mov dword [ebx + 0x68], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x10220], 5
mov byte [ebx + 0x10228], 1
mov byte [ebx + 0x10229], 0
lea eax, [ebx + 0x10224]
mov edx, 0x4d0440
call fcn.00406520
lea eax, [ebx + 0xa0]
mov edx, 0x4d0434
call fcn.00406520
mov byte [ebx + 0xb8], 1
mov word [ebx + 0x96], 0x10
mov byte [ebx + 0x99], 0
lea eax, [ebx + 0x9c]
call fcn.004064cc
lea eax, [ebx + 0x10254]
call fcn.004064cc
movzx eax, byte [0x4d0450]
mov byte [ebx + 0xe0], al
lea eax, [ebx + 0x74]
mov edx, 0x4d045c
call fcn.00406520
xor eax, eax
mov dword [ebx + 0x10230], eax
lea eax, [ebx + 0x10234]
mov edx, dword [0x50ecd0]
call fcn.00406520
mov ecx, ebx
mov dl, 1
mov eax, dword [0x49c028]
call fcn.004a46f0
mov esi, eax
mov dword [ebx + 0xa8], esi
mov dword [esi + 0x54c], ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0xa0]
mov dword [esi + 0x548], eax
mov dword [esi + 0x564], ebx
mov dword [esi + 0x560], 0x4d8448
mov dword [esi + 0x554], ebx
mov dword [esi + 0x550], 0x4d93e4
mov dword [esi + 0x57c], ebx
mov dword [esi + 0x578], 0x4d812c
mov ecx, ebx
mov dl, 1
mov eax, dword [0x49c028]
call fcn.004a46f0
mov dword [ebx + 0xac], eax
mov byte [ebx + 0x101ff], 0
lea eax, [ebx + 0x1027c]
mov edx, 0x400
call fcn.00406bfc
mov esi, dword [ebx + 0x1027c]
test esi, esi
je 0x4d0376
sub esi, 4
mov esi, dword [esi]
mov eax, dword [ebx + 0x1027c]
call fcn.0040696c
push eax
dec esi
push esi
call sub.kernel32.dll_GetTempPathA
lea edx, [ebx + 0x1027c]
xchg edx, eax
call fcn.00406bfc
lea edx, [ebp - 8]
mov eax, dword [ebx + 0x1027c]
call fcn.0040fcb8
mov edx, dword [ebp - 8]
lea eax, [ebx + 0x1027c]
call fcn.00406520
mov dword [ebx + 0x10280], 0x2710
mov dword [ebx + 0x10284], 0x3e8
mov eax, dword [ebx + 0xac]
mov edx, dword [0x50f8a4]
mov dword [edx], eax
call sub.kernel32.dll_GetACP_1
mov dword [ebx + 0x64], eax
xor eax, eax
mov dword [ebx + 0x60], eax
lea eax, [ebx + 0x1025c]
mov edx, 0x4d046c
call fcn.00406520
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d040d
lea eax, [ebp - 8]
call fcn.004064cc
ret
Function at 0x4d0744
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d099d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10229], 1
jne 0x4d0957
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10264], 0
jbe 0x4d0957
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10264], 1
jne 0x4d08e6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10268]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4d07b9
cmp eax, 0
jbe 0x4d08e6
jmp 0x4d07bf
jle 0x4d08e6
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10268], 0
je 0x4d08e6
mov eax, dword [ebp - 4]
cmp dword [eax + 0x140], 0
je 0x4d08e6
xor eax, eax
push ebp
push 0x4d08b3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x10264], 0
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10268]
call fcn.00420578
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x140]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push 0x4d0704
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x140]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10268]
mov ecx, dword [ebp - 4]
call fcn.004ce63c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x140]
mov edx, dword [eax]
call dword [edx]
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push 0x4d09b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10268]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
lea eax, [ebp - 0x18]
call fcn.004bdda4
push dword [ebp - 0x18]
push 0x4d09dc
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
call fcn.004bdda4
push dword [ebp - 0x1c]
push 0x4d09fc
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00406870
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x8c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d08e6
mov eax, dword [ebp - 4]
mov byte [eax + 0x10264], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10268]
test eax, eax
je 0x4d0904
mov dl, 1
mov ecx, dword [eax]
call dword [ecx - 4]
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10268], edx
xor eax, eax
push ebp
push 0x4d094d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10278]
call fcn.0040b57c
test al, al
je 0x4d0943
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10278]
call fcn.0040696c
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d0957
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x140]
test eax, eax
je 0x4d0982
mov edx, dword [ebp - 4]
cmp byte [edx + 0x101ff], 0
jne 0x4d0982
mov dl, 1
mov ecx, dword [eax]
call dword [ecx - 4]
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x140], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d09a4
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.004064f0
ret
Function at 0x4d997c
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x4d9a16
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_M]
mov byte [ebp + edi], dl
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_M]
push edx
pop edx
mov byte [ebp + edi + 1], dl
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_M]
push edx
pop edx
mov byte [ebp + edi + 2], dl
movzx edx, byte [esi + ebx + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_M]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x4d999b
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x4d9a2c
dec edx
je 0x4d9a61
jmp 0x4d9ab2
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_M]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_M]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x4d9ab2
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_M]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_M]
mov byte [ebp + edi + 1], al
movzx eax, byte [esi + ebx + 1]
and al, 0xf
movzx eax, al
add eax, eax
add eax, eax
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_M]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4d9b24
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x4d9b43
add edx, 3
sar edx, 2
test edx, edx
jle 0x4d9c51
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x4d9b78
je 0x4d9bbb
sub ecx, 0x2b
je 0x4d9bb1
sub ecx, 4
je 0x4d9bb6
dec ecx
sub ecx, 0xa
jb 0x4d9ba3
jmp 0x4d9bbe
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x4d9b8a
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x4d9b95
jmp 0x4d9bbe
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x4d9bbe
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x4d9bbe
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x4d9bbe
mov byte [eax], 0x3e
jmp 0x4d9bbe
mov byte [eax], 0x3f
jmp 0x4d9bbe
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x4d9b5b
movzx eax, byte [esp + 4]
add eax, eax
add eax, eax
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x4d9c0f
cmp byte [esp + 7], 0xff
jne 0x4d9c0f
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x4d9c46
cmp dl, 0xff
je 0x4d9c46
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x4d9b52
add esp, 0x10
pop ebp
pop edi
pop esi
ret

Function at 0x4da540
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x4da561
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
movzx ebx, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x4da54e
pop edi
pop esi
pop ebx
ret
Function at 0x4db408
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
xor ebp, ebp
mov ebx, 0x515294
mov eax, ebp
shr eax, 1
and eax, 0xff
mov dword [esp], eax
mov esi, ebp
and esi, 1
mov eax, ebp
and eax, 0x200
shr eax, 8
or esi, eax
mov edx, dword [esi*4 + 0x50ed14]
mov eax, dword [esi*4 + 0x50ed54]
xor eax, dword [esp]
call fcn.004db3ac
mov edi, eax
shl edi, 0x18
mov eax, edi
call fcn.004db3e8
mov dword [ebx], eax
mov edx, dword [esi*4 + 0x50ed24]
mov eax, dword [esi*4 + 0x50ed64]
xor eax, dword [esp]
call fcn.004db3ac
mov edi, eax
shl edi, 0x10
mov eax, edi
call fcn.004db3e8
mov dword [ebx + 0x1000], eax
mov edx, dword [esi*4 + 0x50ed34]
mov eax, dword [esi*4 + 0x50ed74]
xor eax, dword [esp]
call fcn.004db3ac
mov edi, eax
shl edi, 8
mov eax, edi
call fcn.004db3e8
mov dword [ebx + 0x2000], eax
mov edx, dword [esi*4 + 0x50ed44]
mov eax, dword [esi*4 + 0x50ed84]
xor eax, dword [esp]
call fcn.004db3ac
mov edi, eax
mov eax, edi
call fcn.004db3e8
mov dword [ebx + 0x3000], eax
inc ebp
add ebx, 4
cmp ebp, 0x400
jne 0x4db414
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4db56c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*4 + 0x4c]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov dword [eax + edx*4], ecx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jne 0x4db5a6
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, 3
xor edx, edx
div ecx
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + edx*4]
xor edx, edx
mov eax, dword [ebp - 0x18]
add eax, edx
and eax, 3
mov ebx, dword [ebp - 8]
lea eax, [ebx + eax*2]
movzx ebx, word [eax]
and bx, 1
movzx ebx, bx
mov esi, dword [ecx]
add esi, esi
or esi, ebx
mov dword [ecx], esi
movzx esi, word [eax]
shr esi, 1
xor bx, 1
shl ebx, 0xf
or si, bx
mov word [eax], si
inc edx
cmp edx, 4
jne 0x4db5d3
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xf
jne 0x4db5bf
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 8
jne 0x4db582
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4dc754
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x4ee9f4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4ee9fd
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
test dl, dl
je 0x4eea16
add esp, 0xfffffff0
call fcn.004058d4
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4eebe3
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, ecx
mov dword [ebx + 0x40], esi
push 0
mov eax, esi
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xc]
call fcn.0040b0e4
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x4eec14
call fcn.004067f4
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x47cff4]
call fcn.0047db2c
mov edi, eax
mov dword [ebx + 0x44], edi
mov eax, edi
call fcn.00434adc
push 1
mov eax, dword [ebx + 0x40]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x14]
call fcn.0040b0e4
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 0x4eec38
call fcn.004067f4
mov eax, dword [ebp - 0x10]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x47cff4]
call fcn.0047db2c
mov esi, eax
mov dword [ebx + 0x48], esi
mov eax, esi
call fcn.00434ad0
push 1
mov eax, dword [ebx + 0x40]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x1c]
call fcn.0040b0e4
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 0x4eec60
call fcn.004067f4
mov eax, dword [ebp - 0x18]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x47cff4]
call fcn.0047db2c
mov esi, eax
mov dword [ebx + 0x50], esi
mov eax, esi
call fcn.00434ad0
push 0
mov eax, dword [ebx + 0x40]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.0040b0e4
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x4eec84
call fcn.004067f4
mov eax, dword [ebp - 0x20]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x47cff4]
call fcn.0047db2c
mov esi, eax
mov dword [ebx + 0x4c], esi
mov eax, esi
call fcn.00434adc
mov eax, dword [ebx + 0x40]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2c]
call fcn.0040b0e4
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 0x4eeca8
call fcn.004067f4
mov eax, dword [ebp - 0x28]
call fcn.0040696c
push eax
push 0
push 6
call sub.kernel32.dll_OpenFileMappingA_1
mov esi, eax
mov dword [ebx + 0x58], esi
test esi, esi
jne 0x4eeba0
mov eax, dword [ebx + 0x40]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x34]
call fcn.0040b0e4
mov eax, dword [ebp - 0x34]
push eax
mov edx, 0x4eeca8
lea eax, [ebp - 0x30]
pop ecx
call fcn.004067f4
mov eax, dword [ebp - 0x30]
call fcn.0040696c
push eax
push 0x99dc0d
push 0
push 4
push 0xffffffffffffffff
call fcn.0047d720
mov dword [ebx + 0x58], eax
push 0
push 0
push 0
push 6
mov eax, dword [ebx + 0x58]
push eax
call sub.kernel32.dll_MapViewOfFile_1
mov esi, eax
mov dword [ebx + 0x54], esi
xor eax, eax
mov dword [esi + 4], eax
movzx ecx, byte [ebp + 8]
xor edx, edx
mov eax, ebx
call fcn.004247dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eebea
lea eax, [ebp - 0x34]
mov edx, 0xc
call fcn.004064f0
ret
Function at 0x4f0424
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4f056f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCurrentThreadId_2
push eax
call sub.user32.dll_GetThreadDesktop
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push pe_nt_image_headers32
lea eax, [ebp - 0x10c]
push eax
push 2
push esi
call sub.user32.dll_GetUserObjectInformationA
test eax, eax
jne 0x4f04c2
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x110]
call fcn.0040e730
mov ecx, dword [ebp - 0x110]
lea eax, [ebp - 4]
mov edx, 0x4f058c
call fcn.004067f4
mov eax, dword [ebp - 4]
call fcn.0040696c
push eax
call sub.kernel32.dll_OutputDebugStringA
jmp 0x4f0544
push esi
call sub.user32.dll_SetThreadDesktop
test eax, eax
jne 0x4f04ff
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 0x114]
call fcn.0040e730
mov ecx, dword [ebp - 0x114]
lea eax, [ebp - 8]
mov edx, 0x4f05a4
call fcn.004067f4
mov eax, dword [ebp - 8]
call fcn.0040696c
push eax
call sub.kernel32.dll_OutputDebugStringA
jmp 0x4f0544
lea eax, [ebp - 0x11c]
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.0040674c
mov ecx, dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
mov edx, 0x4f05bc
call fcn.004067f4
mov eax, dword [ebp - 0x118]
call fcn.0040696c
push eax
call sub.kernel32.dll_OutputDebugStringA
push edi
call sub.user32.dll_CloseDesktop
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f0576
lea eax, [ebp - 0x11c]
mov edx, 4
call fcn.004064f0
lea eax, [ebp - 8]
mov edx, 2
call fcn.004064f0
ret

Function at 0x4f06e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov eax, dword [ebp + 8]
call fcn.0040695c
xor eax, eax
push ebp
push 0x4f0798
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
cmp dword [ebp + 8], 0
je 0x4f0722
push 0xf01ff
push 0
push 1
mov eax, dword [ebp + 8]
call fcn.0040696c
push eax
call sub.user32.dll_OpenDesktopA
mov ebx, eax
jmp 0x4f0732
push 0xf01ff
push 0
push 1
call sub.user32.dll_OpenInputDesktop
mov ebx, eax
test ebx, ebx
jne 0x4f0763
call sub.kernel32.dll_GetLastError_2
lea edx, [ebp - 8]
call fcn.0040e730
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x4f07b4
call fcn.004067f4
mov eax, dword [ebp - 4]
call fcn.0040696c
push eax
call sub.kernel32.dll_OutputDebugStringA
jmp 0x4f0775
push ebx
call fcn.004f0424
test al, al
je 0x4f076f
mov esi, ebx
push ebx
call sub.user32.dll_CloseDesktop
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f079f
lea eax, [ebp - 8]
mov edx, 2
call fcn.004064f0
lea eax, [ebp + 8]
call fcn.004064cc
ret