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

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
xor ebx, ebx
push esi
mov esi, 0x100
push edi
mov edi, dword [esp + 0x1c]
or ecx, esi
lea esp, [esp]
add edi, edi
mov edx, esi
and edx, edi
mov eax, ecx
add edx, esi
shr eax, 8
add eax, edx
mov edx, dword [esp + 0x14]
movzx edx, word [edx + eax*2]
mov eax, ecx
shr eax, 7
add ecx, ecx
and eax, 1
shr edx, 4
neg eax
shr eax, 4
and eax, 0x7f
xor edx, eax
add ebx, dword [ebp + edx*4]
mov edx, ecx
xor edx, edi
not edx
and esi, edx
cmp ecx, 0x10000
jb 0x4b0470
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x4b1410
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, 0x400
push edi
mov edi, 0xc
mov dword [esi + 0x2c], 0
lea edx, [esi + 0x1c50]
mov dword [esi + 0x44], 1
mov dword [esi + 0x40], 1
mov dword [esi + 0x3c], 1
mov dword [esi + 0x38], 1
mov eax, dword [esi + 0x78]
mov dword [esi + 0x70], eax
lea eax, [esi + 0x1e18]
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x1c18], 0x4000400
mov dword [esi + 0x1c1c], 0x4000400
mov dword [esi + 0x1c20], 0x4000400
mov dword [esi + 0x1c24], 0x4000400
mov dword [esi + 0x1c28], 0x4000400
mov dword [esi + 0x1c2c], 0x4000400
mov dword [esi + 0x1c30], 0x4000400
mov dword [esi + 0x1c34], 0x4000400
mov edi, edi
mov ecx, 0x10
jmp 0x4b1500
mov word [eax - 0x180], bx
mov word [eax], bx
add eax, 2
dec ecx
jne 0x4b1500
mov word [edx - 0x18], bx
mov word [edx], bx
mov word [edx + 0x18], bx
mov word [edx + 0x30], bx
add edx, 2
dec edi
jne 0x4b14f0
mov eax, 0x4000400
lea edi, [esi + 0x1f98]
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea edi, [esi + 0x2198]
mov ecx, 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x98]
mov eax, 0x300
add ecx, dword [esi + 0x94]
shl eax, cl
test eax, eax
je 0x4b156e
mov edi, dword [esi + 0x50]
mov ecx, eax
shr ecx, 1
mov eax, 0x4000400
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov eax, 0x4000400
lea edi, [esi + 0x2298]
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea edi, [esi + 0x2498]
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
mov ecx, pe_nt_image_headers32
lea edi, [esi + 0x2698]
rep stosd dword es:[edi], eax
lea edi, [esi + 0x2898]
mov ecx, pe_nt_image_headers32
rep stosd dword es:[edi], eax
mov dword [esi + 0x1c], 0
lea eax, [esi + 0xbaa0]
mov dword [esi + 0x18], 0
mov ecx, 0x800
mov dword [eax], 0x40000000
lea eax, [eax + 0x20]
dec ecx
jne 0x4b15c0
mov dword [esi + 0x34], ecx
mov eax, 1
mov ecx, dword [esi + 0x9c]
mov edx, 0x100
shl eax, cl
mov ecx, dword [esi + 0x98]
dec eax
mov dword [esi + 0x4c], eax
mov eax, edx
shl eax, cl
mov ecx, dword [esi + 0x94]
shr edx, cl
sub eax, edx
pop edi
mov dword [esi + 0x48], eax
pop esi
pop ebx
ret
Function at 0x4b1d50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x18]
xor ebx, ebx
push esi
push edi
lea ebx, [ebx]
mov edx, dword [esp + 0x14]
mov edi, ebx
shr edi, 1
mov esi, ebx
shr esi, 2
mov eax, edi
and eax, 1
neg eax
shr eax, 4
movzx ecx, word [edx + esi*2 + 4]
and eax, 0x7f
shr ecx, 4
neg esi
xor ecx, eax
and esi, 0x7f0
movzx eax, word [edx + 2]
xor esi, eax
mov eax, dword [esp + 0x14]
shr esi, 4
mov edx, dword [ebp + ecx*4]
movzx ecx, word [eax + edi*2 + 8]
add edx, dword [ebp + esi*4]
mov eax, ecx
add edx, dword [esp + 0x18]
xor ecx, 0x7f0
mov esi, dword [esp + 0x1c]
shr eax, 4
shr ecx, 4
mov eax, dword [ebp + eax*4]
add eax, edx
mov dword [esi + ebx*4], eax
mov eax, dword [ebp + ecx*4]
add eax, edx
mov dword [esi + ebx*4 + 4], eax
add ebx, 2
cmp ebx, 8
jb 0x4b1d60
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4b3b20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
push esi
mov dword [eax + 0x34], 0
lea esi, [eax + 0x60]
mov word [eax + 0x1e], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x468], 0xffffffff
mov dword [eax + 0x46c], 0xffffffff
mov dword [eax + 0x30], 0x20
mov byte [eax + 0x1d], 1
mov dword [eax + 0x48], 4
mov ecx, edx
lea esi, [esi + 4]
and ecx, 1
mov eax, edx
shr eax, 1
neg ecx
and ecx, 0xedb88320
inc edx
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [esi - 4], eax
cmp edx, 0x100
jb 0x4b3b64
pop esi
ret
Function at 0x4bea10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x18
cmp eax, 5
jae 0x4bea22
xor eax, eax
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov edx, dword [ecx + 0x4d08]
lea ebp, [eax - 4]
push esi
mov esi, dword [ecx + 0x4d0c]
mov ecx, dword [ecx + 0x4d10]
push edi
xor edi, edi
mov dword [esp + 0x34], ecx
add ebp, ebx
mov dword [esp + 0x20], ebp
nop
lea eax, [edi + ebx]
mov dword [esp + 0x10], eax
cmp eax, ebp
jae 0x4bea73
jmp 0x4bea60
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x4bea6f
inc eax
cmp eax, ebp
jb 0x4bea60
mov dword [esp + 0x10], eax
mov edi, eax
sub edi, ebx
cmp eax, ebp
jae 0x4beb94
mov ecx, edi
sub ecx, edx
cmp ecx, 3
jbe 0x4beaab
xor esi, esi
mov dword [esp + 0x14], esi
mov cl, byte [eax + 4]
mov edx, edi
mov dword [esp + 0x24], edx
test cl, cl
je 0x4beae7
cmp cl, 0xff
je 0x4beae7
and esi, 3
add esi, esi
or esi, 1
inc edi
jmp 0x4bea50
dec ecx
shl esi, cl
and esi, 7
mov dword [esp + 0x14], esi
je 0x4bea8e
movzx ecx, byte [esi + 0x526848]
mov edx, eax
sub edx, ecx
cmp byte [esi + 0x526840], 0
mov cl, byte [edx + 4]
je 0x4bead7
test cl, cl
je 0x4bead7
cmp cl, 0xff
jne 0x4bea8e
and esi, 3
mov edx, edi
add esi, esi
or esi, 1
inc edi
jmp 0x4bea50
movzx ebx, cl
movzx ecx, byte [eax + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 2]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [eax + 1]
shl ebx, 8
or ebx, ecx
sub ebx, dword [esp + 0x34]
sub ebx, edi
test esi, esi
je 0x4beb66
movzx ecx, byte [esi + 0x526848]
mov edx, 0x18
mov esi, dword [esp + 0x34]
shl ecx, 3
sub edx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov ebp, ecx
mov eax, edx
mov edx, ebx
mov ecx, eax
shr edx, cl
test dl, dl
je 0x4beb3f
cmp dl, 0xff
jne 0x4beb56
mov ecx, 0x20
mov edx, 1
sub ecx, ebp
shl edx, cl
dec edx
xor ebx, edx
sub ebx, esi
sub ebx, edi
jmp 0x4beb30
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [eax + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [eax + 3], cl
mov ecx, ebx
mov ebx, dword [esp + 0x30]
shr ecx, 8
add edi, 5
mov byte [eax + 2], cl
jmp 0x4bea50
mov eax, dword [esp + 0x2c]
add dword [eax + 0x4d10], edi
mov dword [eax + 0x4d0c], esi
mov dword [eax + 0x4d08], edx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4c37a0
Capabilities:
Terminate process

Disassembly:
push esi
push 0x24
push str.Fatal_Internal_Error_in_libarchive:
push 2
call fcn.004cb6b0
mov edx, dword [esp + 0x18]
add esp, 0xc
mov ecx, edx
lea esi, [ecx + 1]
jmp 0x4c37c0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c37c0
sub ecx, esi
push ecx
push edx
push 2
call fcn.004cb6b0
push 1
push 0x5279e0
push 2
call fcn.004cb6b0
add esp, 0x18
push dword [esp + 8]
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
int3
Function at 0x4c4100
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x30]
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 4], 0
mov edi, dword [ebx + 4]
mov ebp, dword [ebx]
lea eax, [edi + 1]
push eax
push esi
call fcn.004c4f70
add esp, 8
test eax, eax
je 0x4c4152
test edi, edi
je 0x4c4144
mov eax, dword [esi + 4]
add eax, dword [esi]
push edi
push ebp
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
add dword [esi + 4], edi
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov byte [ecx + eax], 0
jmp 0x4c4161
push str.Out_of_memory
push 1
call fcn.004c37a0
add esp, 8
mov dword [esi + 0x10], 0
lea edi, [esi + 0xc]
mov eax, dword [ebx + 0xc]
mov ebp, dword [ebx + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
inc eax
add eax, ebp
push eax
push edi
call fcn.004c4f70
add esp, 8
test eax, eax
je 0x4c41af
test ebp, ebp
je 0x4c41a1
mov eax, dword [edi + 4]
add eax, dword [edi]
push ebp
push dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
add dword [edi + 4], ebp
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov byte [ecx + eax], 0
jmp 0x4c41be
push str.Out_of_memory
push 1
call fcn.004c37a0
add esp, 8
mov dword [esi + 0x1c], 0
add esi, 0x18
mov edi, dword [ebx + 0x1c]
mov ebx, dword [ebx + 0x18]
mov eax, dword [esi + 4]
inc eax
add eax, edi
add eax, eax
push eax
push esi
call fcn.004c4f70
add esp, 8
test eax, eax
je 0x4c4212
test edi, edi
je 0x4c41ff
mov ecx, dword [esi + 4]
lea eax, [edi + edi]
push eax
mov eax, dword [esi]
push ebx
lea eax, [eax + ecx*2]
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
add dword [esi + 4], edi
xor edx, edx
mov ecx, dword [esi + 4]
mov eax, dword [esi]
pop edi
pop esi
pop ebp
mov word [eax + ecx*2], dx
pop ebx
ret
pop edi
pop esi
pop ebp
pop ebx
mov dword [esp + 8], str.Out_of_memory
mov dword [esp + 4], 1
jmp fcn.004c37a0
Function at 0x4cb1e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll__errno]
test eax, 0xffff7fff
jne 0x4cb2c4
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4cb25d
call ebx
cmp eax, 3
jne 0x4cb243
push ebp
call fcn.004cb480
mov esi, eax
add esp, 4
test esi, esi
jne 0x4cb237
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4cb25d
call ebx
push eax
call fcn.004cb120
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x4cb2b8
push 0
push 0x2000001
push 3
push 0
push 0
push 0
test esi, esi
je 0x4cb27d
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4cb284
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp edi, 0xffffffff
jne 0x4cb2a7
call ebx
push eax
call fcn.004cb120
add esp, 4
or eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push edi
call dword [sym.imp.MSVCRT.dll__open_osfhandle]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret
test esi, esi
jne 0x4cb35b
mov eax, dword [esp + 0x18]
push dword [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.MSVCRT.dll__open]
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x4cb3e9
call edi
cmp dword [eax], 0xd
jne 0x4cb331
test dword [esp + 0x18], 0x100
je 0x4cb331
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4cb30d
call ebx
push eax
call fcn.004cb120
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x4cb321
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0x15
or eax, 0xffffffff
pop ebx
ret
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0xd
or eax, 0xffffffff
pop ebx
ret
call edi
cmp dword [eax], 2
jne 0x4cb3e9
push ebp
call fcn.004cb480
mov esi, eax
add esp, 4
test esi, esi
jne 0x4cb35b
call edi
pop edi
pop esi
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
ret
push dword [esp + 0x1c]
mov ebp, dword [esp + 0x1c]
push ebp
push esi
call dword [sym.imp.MSVCRT.dll__wopen]
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
jns 0x4cb3d6
call edi
cmp dword [eax], 0xd
jne 0x4cb3d6
test ebp, 0x100
je 0x4cb3d6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4cb3af
call ebx
push eax
call fcn.004cb120
add esp, 4
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x4cb3ce
call edi
push esi
mov dword [eax], 0x15
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
call edi
mov dword [eax], 0xd
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x4cb3f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x4cb408
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
cmp dword [esp + 0xc], 0
jne 0x4cb412
xor eax, eax
ret
push eax
call dword [sym.imp.MSVCRT.dll__get_osfhandle]
add esp, 4
lea ecx, [esp + 4]
push 0
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4cb47a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x4cb453
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0xb
or eax, 0xffffffff
ret
cmp eax, 0x6d
je 0x4cb40f
cmp eax, 5
jne 0x4cb46d
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.004cb120
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret

Function at 0x4cb6b0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jns 0x4cb6c8
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x14]
push dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll__get_osfhandle]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4cb714
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4cb707
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 9
or eax, 0xffffffff
ret
push eax
call fcn.004cb120
add esp, 4
or eax, 0xffffffff
ret
mov eax, dword [esp + 4]
ret

Function at 0x4d9ce0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [eax + 0x38]
mov bl, byte [eax + 0x34]
test esi, esi
jle 0x4d9d1b
mov edx, dword [eax + 0x260]
push edi
movzx edi, bl
lea ebx, [ebx]
mov ecx, edx
shl edx, 8
shr ecx, 0x18
xor ecx, edi
xor edx, dword [ecx*4 + 0x1364ec8]
mov dword [eax + 0x260], edx
dec esi
jne 0x4d9d00
pop edi
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x58], 1
mov edx, dword [eax + 0x38]
mov ecx, edx
dec ecx
je 0x4d9da2
dec ecx
je 0x4d9d87
dec ecx
je 0x4d9d7b
mov byte [edx + eax + 0x54], 1
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov esi, dword [eax + 0x44]
mov dl, byte [eax + 0x38]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
inc dword [eax + 0x44]
pop esi
pop ebx
ret
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
mov edx, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x24]
pop esi
mov byte [edx + ecx], bl
inc dword [eax + 0x44]
pop ebx
ret
Function at 0x4e98c0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4e98e0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4e98e0
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4e98e0
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4fa48c
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x13e1e98], 0
push ebx
push esi
mov esi, 0x13e1ea0
jne 0x4fa4b8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x13e1eb8], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x13e1e98], 1
push dword [0x13e1eb8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4fa555
push 0x14
push 8
push dword [0x1368404]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x4fa57f
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x13e1e9c]
test eax, eax
je 0x4fa4fa
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x13e1e9c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x4fa584
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x13e1eb8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x1368404]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4fa57f
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x4fabf9
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x1368404]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x13e2338]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x13e233c], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.004fd809
mov dword [esi + 0x58], 0x4fb80c
mov eax, esi
mov dword [esi + 0x5c], 0x4fb858
mov dword [esi + 0x10], fcn.004fb3ad
mov dword [esi + 0x30], 0x4fb29f
mov dword [esi + 0x64], 0x4fb8e2
mov dword [esi + 0x60], 0x4fb89a
mov dword [esi + 0x34], 0x4faf4f
mov dword [esi + 0x24], 0x4faf26
mov dword [esi + 0x28], 0x4faefb
mov dword [esi + 0x2c], 0x4fae4d
mov dword [esi + 0x44], 0x4fb612
pop esi
ret 4
Function at 0x500ad3
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov dword [esp + 4], eax
test edx, edx
je 0x500b89
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg eax
add ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xcc]
mov ebp, edi
imul ecx, ebx
add ecx, dword [esi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x500b69
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, esi
dec edx
jne 0x500b44
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
inc ebx
cmp dword [esi + 0xe8], 0
mov dword [esp + 0x3c], edx
jne 0x500b7e
add edi, dword [esp + 0x14]
jmp 0x500b82
add edi, dword [esp + 0x24]
test edx, edx
jne 0x500b22
pop edi
pop ebp
pop ebx
pop esi
pop ecx
pop ecx
ret 0x24

Function at 0x500e94
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
test ebx, ebx
je 0x500f6e
imul eax, dword [esp + 0x1c], 3
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
neg ecx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
push edi
imul edi, dword [esp + 0x30], 3
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov esi, dword [eax + 0xcc]
imul esi, ebp
mov dword [esp + 0x34], edi
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x28]
test edx, edx
jle 0x500f44
mov ebp, dword [esp + 0x34]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov edi, edx
movzx eax, byte [esi]
movzx ecx, byte [ebp]
imul ecx, dword [esp + 0x40]
imul eax, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [esi], al
inc esi
dec edi
jne 0x500f0c
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x500f5b
add edi, ecx
jmp 0x500f5f
add edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
test ebx, ebx
jne 0x500ee2
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x50158e
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x501643
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x501624
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x5015ff
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x501639
add edx, dword [esp + 0x14]
jmp 0x50163d
add edx, dword [esp + 0x24]
test esi, esi
jne 0x5015dd
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24