joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409540
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push edi
push esi
push eax
mov esi, ecx
mov dword [esp], 0x1c
mov edi, esp
push edi
push dword [ecx + 0x44]
push dword [ecx + 0x30]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
js 0x4095d6
mov dword [esp], 0x1c
push edi
push dword [esi + 0x40]
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp dword [esi + 0x28], 0x1000000
jne 0x4095c5
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x4095ee
mov ecx, dword [esi + 0x100]
test ecx, ecx
je 0x4095a0
push ecx
push eax
call fcn.0040f760
add esp, 8
mov eax, dword [esi + 0xf8]
push eax
call fcn.0040f710
add esp, 4
cmp eax, 0xfffffffe
je 0x409644
test eax, eax
jne 0x409660
push 1
push esi
call fcn.00408240
add esp, 8
push esi
call fcn.00406a60
add esp, 4
push esi
call fcn.00406590
jmp 0x4095e5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x34], eax
push esi
call fcn.00409390
add esp, 4
add esp, 4
pop esi
pop edi
ret
mov eax, dword [esi + 0xfc]
test eax, eax
jne 0x40961b
mov eax, dword [0x43ae88]
mov eax, dword [eax]
test eax, eax
jne 0x40961b
push 0
call fcn.0040f390
add esp, 4
mov dword [esi + 0xfc], eax
or byte [esi + 0x25], 0x80
test eax, eax
je 0x409676
push dword [esi + 0x30]
push eax
call fcn.0040f5d0
add esp, 8
test eax, eax
je 0x40966c
mov dword [esi + 0xf8], eax
mov ecx, dword [esi + 0x100]
test ecx, ecx
jne 0x409590
jmp 0x4095a0
test byte [esi + 0x38], 1
jne 0x4095e8
push 1
push 0x4096e0
push esi
call fcn.004081b0
add esp, 0xc
add esp, 4
pop esi
pop edi
ret
mov dword [esi + 0x34], 0x413
jmp 0x4095df
mov eax, 0x412
jmp 0x4095dc
mov eax, 0x411
jmp 0x4095dc

Function at 0x409af0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
xor edx, edx
test ecx, ecx
je 0x409b6e
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 1
je 0x409b50
mov ebx, dword [esp + 0x1c]
and ebx, 0xfffffffe
xor edx, edx
nop dword [eax + eax]
mov ebp, dword [eax + 0xc]
add ebp, edx
and ebp, 3
movzx ecx, byte [eax + ebp + 8]
xor cl, byte [edi + edx]
mov byte [esi + edx], cl
mov ecx, dword [eax + 0xc]
add ecx, edx
inc ecx
and ecx, 3
movzx ecx, byte [eax + ecx + 8]
xor cl, byte [edi + edx + 1]
mov byte [esi + edx + 1], cl
add edx, 2
cmp ebx, edx
jne 0x409b20
mov ebx, dword [esp + 0x1c]
test bl, 1
je 0x409b70
mov ecx, dword [eax + 0xc]
add ecx, edx
and ecx, 3
movzx ecx, byte [eax + ecx + 8]
xor cl, byte [edi + edx]
mov byte [esi + edx], cl
jmp 0x409b70
xor ebx, ebx
add bl, byte [eax + 0xc]
and bl, 3
mov byte [eax + 0xc], bl
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x409b80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
movzx ecx, byte [esp + 0x28]
mov eax, dword [esp + 0x20]
xor edx, edx
test eax, eax
je 0x409c01
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
movzx ebx, cl
cmp eax, 8
jae 0x409c0f
mov ebp, edx
test al, 1
je 0x409bc3
mov ecx, ebx
and ecx, 3
mov ebp, dword [esp + 0x24]
movzx ecx, byte [ebp + ecx]
xor cl, byte [esi + edx]
mov byte [edi + edx], cl
mov ebp, edx
or ebp, 1
lea ecx, [eax - 1]
cmp edx, ecx
mov edx, dword [esp + 0x24]
je 0x409bfa
nop
lea ecx, [ebx + ebp]
and ecx, 3
movzx ecx, byte [edx + ecx]
xor cl, byte [esi + ebp]
mov byte [edi + ebp], cl
lea ecx, [ebx + ebp]
inc ecx
and ecx, 3
movzx ecx, byte [edx + ecx]
xor cl, byte [esi + ebp + 1]
mov byte [edi + ebp + 1], cl
add ebp, 2
cmp eax, ebp
jne 0x409bd0
movzx ecx, byte [esp + 0x28]
jmp 0x409c03
xor eax, eax
add al, cl
and al, 3
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
lea edx, [eax - 1]
mov ch, cl
and ch, 3
mov cl, dl
and cl, 3
add cl, ch
test cl, 4
jne 0x409ce9
mov ebp, edx
cmp edx, 3
mov edx, 0
ja 0x409ba4
mov byte [esp], ch
mov ecx, edi
sub ecx, esi
cmp ecx, 0x20
jb 0x409ba4
movzx ecx, byte [esp]
mov edx, dword [esp + 0x24]
add ecx, edx
mov ebp, edi
sub ebp, ecx
cmp ebp, 0x20
mov edx, 0
jb 0x409ba4
xor edx, edx
cmp eax, 0x20
jb 0x409ca6
mov edx, eax
and edx, 0xffffffe0
movups xmm0, xmmword [esi]
movups xmm1, xmmword [esi + 0x10]
mov ecx, ebx
and ecx, 3
mov ebp, dword [esp + 0x24]
movups xmm2, xmmword [ebp + ecx]
xorps xmm2, xmm0
movups xmm0, xmmword [ebp + ecx + 0x10]
xorps xmm0, xmm1
movups xmmword [edi], xmm2
movups xmmword [edi + 0x10], xmm0
cmp edx, eax
je 0x409bfa
test al, 0x18
je 0x409ba4
mov ebp, edx
mov ecx, eax
and ecx, 0xfffffff8
mov dword [esp], ecx
mov ecx, ebx
and ecx, 3
mov edx, dword [esp + 0x24]
nop dword [eax]
movsd xmm0, qword [esi + ebp]
movsd xmm1, qword [edx + ecx]
xorps xmm1, xmm0
movlps qword [edi + ebp], xmm1
add ebp, 8
cmp dword [esp], ebp
jne 0x409cc0
mov edx, dword [esp]
cmp edx, eax
jne 0x409ba4
jmp 0x409bfa
xor edx, edx
jmp 0x409ba4
Function at 0x409f00
Capabilities:
Encode data using base64

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x18], 0
je 0x409fe8
xor edi, edi
mov esi, 0xffffffff
mov ebp, 1
xor ecx, ecx
jmp 0x409f70
movzx eax, byte [ebx - 1]
and eax, 0xf
movzx edx, byte [ebx]
shr edx, 6
movzx eax, byte [edx + eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov edx, dword [esp + 0x1c]
mov byte [edx + ecx], al
movzx eax, byte [ebx]
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [edx + ecx + 1], al
add ecx, 2
inc edi
inc esi
inc ebx
mov eax, dword [esp + 0x18]
add eax, ebp
dec eax
dec ebp
cmp eax, 1
je 0x409fc7
mov eax, edi
mov edx, 0xaaaaaaab
mul edx
shr edx, 1
lea edx, [edx + edx*2]
mov eax, edi
sub eax, edx
cmp eax, 2
je 0x409f30
cmp eax, 1
jne 0x409fb0
movzx eax, byte [ebx - 1]
shl eax, 4
and eax, 0x30
movzx edx, byte [ebx]
shr edx, 4
movzx eax, byte [eax + edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
jmp 0x409fbd
movzx eax, byte [ebx]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov edx, dword [esp + 0x1c]
mov byte [edx + ecx], al
inc ecx
jmp 0x409f60
mov edx, 0xaaaaaaab
mov eax, esi
mul edx
shr edx, 1
lea eax, [edx + edx*2]
sub esi, eax
cmp esi, 1
je 0x40a017
test esi, esi
jne 0x40a037
neg ebp
mov ebx, dword [esp + 0x14]
jmp 0x409fef
xor ecx, ecx
mov ebp, 0xffffffff
movzx eax, byte [ebx + ebp]
shl eax, 4
and eax, 0x30
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov edx, dword [esp + 0x1c]
mov byte [edx + ecx], al
mov byte [edx + ecx + 1], 0x3d
lea eax, [edx + ecx]
add eax, 2
add ecx, 3
jmp 0x40a034
movzx eax, byte [ebx - 1]
and eax, 0xf
movzx eax, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov edx, dword [esp + 0x1c]
mov byte [edx + ecx], al
lea eax, [edx + ecx]
inc eax
add ecx, 2
mov byte [eax], 0x3d
mov eax, ecx
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40f390
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
push 0x4e8
call sub.msvcrt.dll_malloc
add esp, 4
test eax, eax
je 0x40f4fa
mov esi, eax
mov edi, dword [esp + 0x28]
add eax, 0x2e4
mov dword [esp + 0x10], eax
push eax
call fcn.00417c40
add esp, 4
lea ebx, [esi + 0x348]
push ebx
call fcn.0041a040
add esp, 4
lea eax, [esi + 0x4e0]
mov dword [esp + 0xc], eax
push eax
call fcn.0041ab00
add esp, 4
push esi
call fcn.0041adc0
add esp, 4
mov ebp, esi
add ebp, 0x1a4
push ebp
call fcn.0041b240
add esp, 4
test edi, edi
je 0x40f473
mov eax, dword [edi]
test eax, eax
je 0x40f437
cmp byte [eax], 0
je 0x40f437
push eax
push ebx
call fcn.004196f0
add esp, 8
test eax, eax
je 0x40f437
push 2
call dword [0x44101c]
add esp, 4
push eax
push 1
push 0x14
push str.ssl_crt_file_error__n
jmp 0x40f4e9
mov eax, dword [edi + 4]
mov dl, 1
test eax, eax
je 0x40f48a
cmp byte [eax], 0
je 0x40f48a
push 0
push 0
push 0
push eax
push dword [esp + 0x1c]
call fcn.0041c250
add esp, 0x14
test eax, eax
je 0x40f488
push 2
call dword [0x44101c]
add esp, 4
push eax
push 1
push 0x14
push str.ssl_key_file_error__n
jmp 0x40f4e9
mov dword [esp], ebx
mov al, 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0
xor ebx, ebx
jmp 0x40f4ab
xor edx, edx
mov dword [esp + 8], edx
mov dword [esp], ebx
xor eax, eax
cmp word [edi + 0x10], 0
setne al
add eax, eax
mov dword [esp + 4], eax
xor ebx, ebx
cmp word [edi + 0x12], 0
sete bl
push 0
push 0
push esi
push 0x41aff0
push ebp
call fcn.0041b840
add esp, 0x14
push 0
push 0
push ebx
mov edi, dword [esp + 0x1c]
push edi
call fcn.00417c70
add esp, 0x10
test eax, eax
je 0x40f506
push 2
call dword [0x44101c]
add esp, 4
push eax
push 1
push 0x12
push str.ssl_config_error__n
call sub.msvcrt.dll_fwrite
add esp, 0x10
push esi
call fcn.00439774
add esp, 4
xor esi, esi
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [esp + 4]
push edi
call fcn.00417790
add esp, 8
push ebp
push 0x41ba20
push edi
call fcn.004177a0
add esp, 0xc
cmp byte [esp + 8], 0
jne 0x40f4fc
push 0
push dword [esi + 0x4dc]
push edi
call fcn.00417870
add esp, 0xc
push dword [esp + 0xc]
push dword [esp + 4]
push edi
call fcn.004177f0
add esp, 0xc
test eax, eax
je 0x40f4fc
push 2
call dword [0x44101c]
add esp, 4
push eax
push 1
push 0x1b
push str.ssl_key_file_check_failed__n
jmp 0x40f4e9
Function at 0x4111f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x411201
jmp dword [eax*4 + 0x43b600]
cmp dword [0x4412ac], 0
je 0x411310
push 0x4412b0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4412c8]
test edi, edi
je 0x411305
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41124b
mov edi, dword [edi + 8]
test edi, edi
je 0x411305
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x411240
test esi, esi
je 0x411240
mov ecx, dword [edi + 4]
call dword [0x43f064]
push esi
call ecx
add esp, 4
jmp 0x411240
call fcn.0040a410
jmp case.default.0x411201
cmp dword [0x4412ac], 0
je case.default.0x411201
push 0x4412b0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4412c8]
test edi, edi
je 0x4112f8
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4112b7
mov edi, dword [edi + 8]
test edi, edi
je 0x4112f8
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x4112b0
test esi, esi
je 0x4112b0
mov ecx, dword [edi + 4]
call dword [0x43f064]
push esi
call ecx
add esp, 4
jmp 0x4112b0
cmp dword [0x4412ac], 0
jne 0x4112ec
push 0x4412b0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4412ac], 1
jmp case.default.0x411201
push 0x4412b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x411201
push 0x4412b0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4412ac]
cmp eax, 1
jne case.default.0x411201
mov eax, dword [0x4412c8]
test eax, eax
je 0x411342
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call fcn.00439774
add esp, 4
mov eax, esi
test esi, esi
jne 0x411330
mov dword [0x4412c8], 0
mov dword [0x4412ac], 0
push 0x4412b0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x411470
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x43a004]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x4114d6
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x4114d6
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x4114d6
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x4114d6
mov edx, dword [esp + 0xc]
sub edx, dword [0x43a004]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x4114c6
add esi, 0x28
dec ecx
je 0x4114d6
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x4114c0
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x4114c0
mov eax, esi
pop esi
pop edi
ret
Function at 0x41c150
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
push 0x43bba0
push dword [esp + 0x1c]
call sub.msvcrt.dll_fopen
add esp, 8
mov esi, 0xffffc200
test eax, eax
je 0x41c23f
mov edi, eax
push 0
push eax
call sub.msvcrt.dll_setbuf
add esp, 8
push 2
push 0
push edi
call sub.msvcrt.dll_fseek
add esp, 0xc
push edi
call sub.msvcrt.dll_ftell
add esp, 4
cmp eax, 0xffffffff
je 0x41c21a
mov ebx, eax
mov ebp, dword [esp + 0x20]
push 0
push 0
push edi
call sub.msvcrt.dll_fseek
add esp, 0xc
mov dword [ebp], ebx
mov eax, ebx
inc eax
push eax
push 1
call sub.msvcrt.dll_calloc
add esp, 8
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
test eax, eax
je 0x41c225
push edi
push ebx
push 1
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
mov dword [esp], eax
mov ebp, dword [esp + 0x20]
mov ebx, dword [ebp]
push edi
call sub.msvcrt.dll_fclose
add esp, 4
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp]
cmp dword [esp], ebx
jne 0x41c235
mov edi, ebp
mov byte [eax + ecx], 0
push str._____BEGIN
mov eax, dword [esp + 0x20]
push dword [eax]
call sub.msvcrt.dll_strstr
add esp, 8
xor esi, esi
test eax, eax
je 0x41c23f
inc dword [edi]
jmp 0x41c23f
push edi
call sub.msvcrt.dll_fclose
add esp, 4
jmp 0x41c23f
push edi
call sub.msvcrt.dll_fclose
add esp, 4
mov esi, 0xffffc080
jmp 0x41c23f
push ecx
push eax
call fcn.00422be0
add esp, 8
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x424c20
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x424c48
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, ebp
and edx, 3
mov dword [esp], edx
cmp ebp, 4
jae 0x424c4c
xor edi, edi
xor esi, esi
jmp 0x424c9d
xor eax, eax
jmp 0x424cc4
and ebp, 0xfffffffc
xor edi, edi
xor esi, esi
nop word cs:[eax + eax]
movzx edx, byte [ecx + edi]
xor dl, byte [eax + edi]
movzx edx, dl
or edx, esi
movzx ebx, byte [ecx + edi + 1]
xor bl, byte [eax + edi + 1]
movzx esi, bl
movzx ebx, byte [ecx + edi + 2]
xor bl, byte [eax + edi + 2]
movzx ebx, bl
or ebx, esi
or ebx, edx
movzx edx, byte [ecx + edi + 3]
xor dl, byte [eax + edi + 3]
movzx esi, dl
or esi, ebx
add edi, 4
cmp ebp, edi
jne 0x424c60
mov ebx, dword [esp]
test ebx, ebx
je 0x424cc1
add eax, edi
add ecx, edi
xor edi, edi
nop word [eax + eax]
movzx edx, byte [ecx + edi]
xor dl, byte [eax + edi]
movzx edx, dl
or esi, edx
inc edi
cmp ebx, edi
jne 0x424cb0
movzx eax, si
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x426f20
Capabilities:
Encrypt data using openssl ecdsa
Encrypt data using openssl rsa

Disassembly:
xor eax, eax
test ecx, ecx
je 0x426fd4
push ebx
push edi
push esi
mov edx, dword [ecx + 4]
cmp edx, 8
je 0x426f8e
cmp edx, 9
jne 0x426fd1
push 9
mov esi, ecx
push dword [ecx + 8]
push 0x43cf35
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x426fbe
push 9
push dword [esi + 8]
push 0x43cf68
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x426fcc
push 9
push dword [esi + 8]
push 0x43cff5
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
mov eax, 0
jne 0x426fd1
mov eax, 0x43cc10
jmp 0x426fd1
mov esi, dword [ecx + 8]
mov edx, 0xce48862a
mov edi, dword [esi]
xor edi, edx
mov ebx, 0x203043d
xor ebx, dword [esi + 4]
or ebx, edi
je 0x426fc5
mov ecx, dword [ecx + 8]
xor edx, dword [ecx]
mov esi, 0x303043d
xor esi, dword [ecx + 4]
or esi, edx
jne 0x426fd1
mov eax, 0x43cbf8
jmp 0x426fd1
mov eax, 0x43cbb0
jmp 0x426fd1
mov eax, 0x43cbe0
jmp 0x426fd1
mov eax, 0x43cbc8
pop esi
pop edi
pop ebx
ret

Function at 0x427010
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push esi
mov ecx, dword [esp + 8]
mov eax, 0xffffffd2
test ecx, ecx
je 0x42704d
mov edx, dword [ecx + 4]
cmp edx, 5
je 0x42706c
cmp edx, 7
je 0x42704f
cmp edx, 9
jne 0x42704d
push 9
push dword [ecx + 8]
push 0x43d00a
call sub.msvcrt.dll_memcmp
add esp, 0xc
mov ecx, eax
mov eax, 0xffffffd2
test ecx, ecx
je 0x427088
pop esi
ret
mov ecx, dword [ecx + 8]
mov edx, 0xce48862a
xor edx, dword [ecx]
mov esi, 0x1023dce
xor esi, dword [ecx + 3]
or esi, edx
jne 0x42704d
mov eax, 0x43cc54
jmp 0x42708d
mov ecx, dword [ecx + 8]
mov edx, 0x104812b
xor edx, dword [ecx]
movzx ecx, byte [ecx + 4]
xor ecx, 0xc
or ecx, edx
jne 0x42704d
mov eax, 0x43cc68
jmp 0x42708d
mov eax, 0x43cc40
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ecx], eax
xor eax, eax
pop esi
ret
Function at 0x429bc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x410
mov eax, dword [esp + 0x424]
cmp dword [eax + 0x70], 0
mov esi, 0xffffbf80
jne 0x429bb0
mov edi, dword [eax + 4]
lea ecx, [edi - 0x401]
cmp ecx, 0xfffffc0f
jb 0x429bb0
lea ebx, [esp + 0x10]
push ebx
push dword [esp + 0x438]
push dword [esp + 0x434]
push dword [esp + 0x434]
push eax
call fcn.00429230
add esp, 0x14
mov esi, eax
test eax, eax
jne 0x429ba2
movzx eax, byte [esp + 0x10]
mov ecx, eax
neg ecx
or eax, ecx
sar eax, 0x1f
mov dword [esp], eax
movzx ecx, byte [esp + 0x11]
mov eax, 2
xor eax, ecx
lea ecx, [edi - 0xb]
mov dword [esp + 8], ecx
mov ecx, eax
neg ecx
or eax, ecx
sar eax, 0x1f
mov dword [esp + 0xc], eax
xor ebx, ebx
mov edx, 2
xor ebp, ebp
nop dword [eax]
movzx ecx, byte [esp + edx + 0x10]
xor eax, eax
xor eax, ecx
mov ecx, eax
neg ecx
or eax, ecx
sar eax, 0x1f
not eax
or ebx, eax
mov eax, ebx
not eax
mov ecx, eax
and ecx, 1
add ebp, ecx
inc edx
cmp edi, edx
jne 0x429a90
mov ecx, dword [esp + 0x43c]
mov edx, dword [esp + 8]
cmp edx, ecx
cmovb ecx, edx
mov dword [esp + 4], ecx
mov esi, dword [esp + 0xc]
or esi, dword [esp]
or esi, eax
mov eax, ebp
mov ecx, 8
mov ebx, eax
xor ebx, ecx
sub eax, ecx
and ecx, ebx
not ebx
and eax, ebx
or eax, ecx
sar eax, 0x1f
mov edx, eax
or edx, esi
mov ebx, edi
sub ebx, ebp
add ebx, 0xfffffffd
mov ecx, edx
mov esi, dword [esp + 4]
mov eax, esi
and eax, ecx
not ecx
and ecx, ebx
or eax, ecx
mov ecx, eax
mov dword [esp], eax
mov eax, esi
mov ebx, eax
xor ebx, ecx
sub eax, ecx
and ecx, ebx
not ebx
and eax, ebx
or eax, ecx
sar eax, 0x1f
mov ebp, eax
mov ebx, eax
and ebx, 0x4400
mov ecx, edx
mov eax, 0x4100
and eax, ecx
not ecx
and ecx, ebx
or eax, ecx
mov esi, eax
or edx, ebp
lea eax, [esp + 0x1b]
push dword [esp + 8]
push eax
push edx
call fcn.00425080
add esp, 0xc
mov ebx, dword [esp]
mov eax, dword [esp + 4]
mov ecx, ebp
mov ebp, eax
and eax, ecx
not ecx
and ecx, ebx
or eax, ecx
mov ebx, eax
add edi, esp
add edi, 0x10
sub edi, ebp
mov eax, ebp
sub eax, ebx
push eax
push ebp
push edi
call fcn.00424cd0
add esp, 0xc
cmp dword [esp + 0x43c], 0
je 0x429b93
push ebp
push edi
push dword [esp + 0x440]
call sub.msvcrt.dll_memcpy
add esp, 0xc
neg esi
mov eax, dword [esp + 0x430]
mov dword [eax], ebx
lea ebx, [esp + 0x10]
push 0x400
push ebx
call fcn.00422b60
add esp, 8
mov eax, esi
add esp, 0x410
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 4]
cmp dword [eax + 0x70], 0
je 0x4299f0
mov eax, 0xffffbf00
ret
Function at 0x42ef70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [esp], edx
cmp byte [ecx + 0x179], 0
jne 0x42f0a1
mov eax, dword [esp]
movzx edi, byte [eax + 0xf]
mov edx, edi
and edi, 0xf
shl edi, 4
mov esi, dword [ecx + edi + 0x38]
mov eax, dword [ecx + edi + 0x3c]
mov ebp, eax
shld eax, esi, 0x1c
mov ebx, dword [ecx + edi + 0x44]
shld esi, ebx, 0x1c
mov edi, dword [ecx + edi + 0x40]
shld ebx, edi, 0x1c
shr ebp, 4
and edi, 0xf
movzx edi, word [edi + edi + 0x43d760]
shl edi, 0x10
xor edi, ebp
and edx, 0xfffffff0
xor ebx, dword [ecx + edx + 0x40]
xor esi, dword [ecx + edx + 0x44]
xor eax, dword [ecx + edx + 0x38]
xor edi, dword [ecx + edx + 0x3c]
add ecx, 0x38
mov dword [esp + 4], ecx
mov edx, 0xf
nop word cs:[eax + eax]
mov dword [esp + 0x10], edx
mov ecx, dword [esp]
movzx edx, byte [ecx + edx - 1]
mov dword [esp + 0xc], edx
mov ebp, edi
shld ebp, eax, 0x1c
shld eax, esi, 0x1c
shld esi, ebx, 0x1c
and ebx, 0xf
shr edi, 4
movzx ecx, word [ebx + ebx + 0x43d760]
shl ecx, 0x10
xor ecx, edi
mov edi, edx
and edi, 0xf
shl edi, 4
mov edx, dword [esp + 4]
xor ebp, dword [edx + edi]
xor ecx, dword [edx + edi + 4]
xor esi, dword [edx + edi + 8]
xor eax, dword [edx + edi + 0xc]
mov edi, ecx
shld edi, ebp, 0x1c
mov dword [esp + 8], edi
shld ebp, eax, 0x1c
mov ebx, eax
shld ebx, esi, 0x1c
and esi, 0xf
shr ecx, 4
movzx edi, word [esi + esi + 0x43d760]
shl edi, 0x10
xor edi, ecx
mov ecx, dword [esp + 0xc]
and ecx, 0xfffffff0
mov eax, dword [esp + 8]
xor eax, dword [edx + ecx]
xor edi, dword [edx + ecx + 4]
xor ebx, dword [edx + ecx + 8]
mov esi, ebp
xor esi, dword [edx + ecx + 0xc]
mov edx, dword [esp + 0x10]
dec edx
jne 0x42eff0
bswap edi
bswap eax
mov ecx, dword [esp + 0x28]
mov dword [ecx + 4], eax
mov dword [ecx], edi
bswap esi
bswap ebx
mov dword [ecx + 0xc], ebx
mov dword [ecx + 8], esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4380b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
shl ebx, 2
mov eax, edi
sub eax, ebx
jbe 0x4380e4
add edi, ecx
sub edi, ebx
push eax
push 0
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov ecx, edi
jmp 0x43812c
jae 0x43812a
mov esi, ebx
lea edx, [edi*8]
mov ebx, edi
nop word cs:[eax + eax]
mov eax, ebx
and eax, 0xfffffffc
mov eax, dword [ebp + eax]
mov ecx, edx
and cl, 0x18
shr eax, cl
test al, al
jne 0x4381ce
inc ebx
add edx, 8
mov eax, esi
cmp esi, ebx
jne 0x438100
mov ebx, edi
mov ecx, dword [esp + 0x28]
jmp 0x43812c
mov ebx, edi
test ebx, ebx
je 0x4381c4
mov edi, ebp
mov esi, 0
cmp ebx, 1
mov dword [esp], ebx
je 0x4381a0
mov eax, dword [esp]
mov edx, eax
and edx, 0xfffffffe
mov dword [esp + 8], edx
lea ebp, [eax + ecx]
dec ebp
xor edx, edx
xor esi, esi
mov dword [esp + 4], ecx
nop dword [eax + eax]
mov ebx, edi
mov edi, esi
and edi, 0xfffffffc
mov eax, dword [ebx + edi]
mov ecx, edx
and cl, 0x10
shr eax, cl
mov byte [ebp], al
mov eax, dword [ebx + edi]
mov edi, ebx
or cl, 8
shr eax, cl
mov ecx, esi
xor ecx, 0xfffffffe
add ecx, dword [esp]
mov ebx, dword [esp + 4]
mov byte [ebx + ecx], al
mov ecx, dword [esp + 4]
add esi, 2
add edx, 0x10
add ebp, 0xfffffffe
cmp dword [esp + 8], esi
jne 0x438160
mov ebx, dword [esp]
test bl, 1
je 0x4381c4
mov edx, edi
mov eax, esi
and eax, 0xfffffffc
mov edx, dword [edi + eax]
mov eax, ecx
lea ecx, [esi*8]
shr edx, cl
not esi
add ebx, esi
mov byte [eax + ebx], dl
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 0xfffffff8
jmp 0x4381c6
Function at 0x401090
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407238
push 0x405900
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x1c], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x1c]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret