joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
sub esp, 0x204
mov eax, dword [0x535df0]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push ebp
push esi
xor ecx, ecx
mov al, 1
push edi
lea esp, [esp]
movzx edx, al
mov byte [esp + edx + 0x10], cl
mov dl, al
and dl, 0x80
mov byte [esp + ecx + 0x110], al
add ecx, 1
neg dl
sbb dl, dl
mov bl, al
add bl, bl
and edx, 0x1b
xor dl, bl
xor al, dl
cmp ecx, 0x100
jl 0x401020
mov al, 1
mov ecx, 0x539820
movzx edx, al
shl edx, 0x18
mov dword [ecx], edx
mov dl, al
and dl, 0x80
add ecx, 4
neg dl
sbb dl, dl
add al, al
and edx, 0x1b
xor al, dl
cmp ecx, 0x539848
jl 0x401054
mov byte [0x538f20], 0x63
mov byte [0x53bcab], 0
xor edx, edx
jmp 0x401090
movzx eax, byte [esp + edx + 0x11]
lea ecx, [esp + 0x20f]
sub ecx, eax
mov cl, byte [ecx]
mov al, cl
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor cl, al
rol al, 1
xor al, cl
xor al, 0x63
mov byte [edx + 0x538f21], al
add edx, 1
movzx eax, al
lea ecx, [edx + 1]
cmp ecx, 0x100
mov byte [eax + 0x53bc48], dl
jl 0x401090
xor ecx, ecx
mov dl, byte [ecx + 0x538f20]
mov al, dl
and al, 0x80
neg al
sbb al, al
mov bl, dl
add bl, bl
movzx edx, dl
and eax, 0x1b
xor al, bl
movzx esi, al
mov eax, esi
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, esi
xor eax, edx
mov dword [ecx*4 + 0x53b848], eax
ror eax, 8
mov dword [ecx*4 + 0x53b448], eax
ror eax, 8
mov dword [ecx*4 + 0x53b048], eax
ror eax, 8
mov dword [ecx*4 + 0x53ac48], eax
mov al, byte [ecx + 0x53bc48]
test al, al
je 0x40118e
movzx edx, al
movzx esi, byte [esp + edx + 0x10]
movzx eax, byte [esp + 0x1b]
add eax, esi
cdq
mov edi, 0xff
idiv edi
movzx eax, byte [esp + 0x1d]
add eax, esi
movzx ebp, byte [esp + edx + 0x110]
cdq
idiv edi
movzx eax, byte [esp + 0x19]
add eax, esi
movzx ebx, byte [esp + edx + 0x110]
cdq
idiv edi
movzx eax, byte [esp + 0x1e]
add eax, esi
mov esi, 0xff
movzx edi, byte [esp + edx + 0x110]
cdq
idiv esi
movzx eax, byte [esp + edx + 0x110]
jmp 0x401196
xor ebp, ebp
xor ebx, ebx
xor edi, edi
xor eax, eax
shl eax, 8
xor eax, edi
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, ebp
mov dword [ecx*4 + 0x53a848], eax
ror eax, 8
mov dword [ecx*4 + 0x53a448], eax
ror eax, 8
mov dword [ecx*4 + 0x539420], eax
ror eax, 8
mov dword [ecx*4 + 0x539020], eax
add ecx, 1
cmp ecx, 0x100
jl 0x4010d3
mov ecx, dword [esp + 0x210]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004dcaae
add esp, 0x204
ret
Function at 0x402b70
Capabilities:
Encode data using base64

Disassembly:
lea ecx, [edi*4]
mov eax, 0x55555556
imul ecx
mov eax, edx
push ebp
mov ebp, dword [esp + 8]
shr eax, 0x1f
lea ecx, [edx + eax + 4]
push esi
push ecx
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
mov esi, eax
jne 0x402ba3
pop esi
or eax, 0xffffffff
pop ebp
ret
xor ecx, ecx
test edi, edi
jle 0x402c37
push ebx
mov edi, edi
movzx edx, byte [ecx + ebp]
add ecx, 1
shl edx, 8
cmp ecx, edi
jge 0x402bc4
movzx ebx, byte [ecx + ebp]
add edx, ebx
add ecx, 1
shl edx, 8
cmp ecx, edi
jge 0x402bd4
movzx ebx, byte [ecx + ebp]
add edx, ebx
mov ebx, edx
sar ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], bl
mov ebx, edx
sar ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], bl
mov ebx, edx
sar ebx, 6
and ebx, 0x3f
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and edx, 0x3f
add ecx, 1
cmp ecx, edi
mov byte [esi + 2], bl
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], dl
jle 0x402c20
mov byte [esi + 3], 0x3d
lea edx, [edi + 1]
cmp ecx, edx
jle 0x402c2b
mov byte [esi + 2], 0x3d
add esi, 4
cmp ecx, edi
jl 0x402bb0
pop ebx
mov ecx, dword [esp + 0x10]
mov byte [esi], 0
mov dword [ecx], eax
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402c43
pop esi
sub eax, edx
pop ebp
ret

Function at 0x402dc0
Capabilities:
Terminate process

Disassembly:
cmp esi, 0xf4240
push ebp
mov ebp, dword [esp + 8]
jb 0x402deb
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x402deb
push esi
push str.fatal_buffer_size_error__size_lu
push 0x10
call fcn.00408640
add esp, 0xc
test ebp, ebp
mov dword [edi], esi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
je 0x402e30
lea eax, [esi + 4]
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x402e17
jmp fcn.00408a80
mov edx, dword [ebp]
mov dword [ecx], edx
lea eax, [ecx + 4]
mov dword [ebp], ecx
test esi, esi
mov dword [edi + 0xc], eax
je 0x402e2c
mov byte [eax], 0
mov eax, edi
pop ebp
ret
push esi
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
jne 0x402e22
jmp fcn.00408a80
Function at 0x402e50
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
push eax
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
mov dword [edi + 0xc], eax
jne 0x402e79
jmp fcn.00408a80
mov edx, dword [esi + 0xc]
test edx, edx
push ebx
je 0x402e8c
mov ecx, dword [esi + 8]
test ecx, ecx
jl 0x402e8c
mov ebx, ecx
jmp 0x402e8e
xor ebx, ebx
test edx, edx
je 0x402e9f
cmp dword [esi + 8], 0
jl 0x402e9f
mov esi, dword [esi + 4]
add esi, edx
jmp 0x402ea1
xor esi, esi
cmp dword [edi + 8], 0
jl 0x402ebc
mov ecx, dword [edi + 4]
push ebx
add ecx, eax
push esi
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
pop ebx
mov eax, edi
pop esi
ret
push ebx
xor ecx, ecx
push esi
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
pop ebx
mov eax, edi
pop esi
ret

Function at 0x403130
Capabilities:
Terminate process

Disassembly:
test edi, edi
push esi
je 0x40316b
lea eax, [ebx + 4]
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
jne 0x40314b
jmp fcn.00408a80
mov ecx, dword [edi]
mov dword [eax], ecx
lea esi, [eax + 4]
mov dword [edi], eax
cmp dword [esp + 8], 0
je 0x403167
push ebx
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, esi
pop esi
ret
push ebx
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
mov esi, eax
test esi, esi
jne 0x403154
jmp fcn.00408a80

Function at 0x403400
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, dword [esp + 8]
test ebp, ebp
je 0x403469
mov eax, ebp
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403410
push esi
sub eax, edx
test ebx, ebx
push edi
lea edi, [eax + 1]
je 0x403454
lea eax, [edi + 4]
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
jne 0x40343a
jmp fcn.00408a80
mov ecx, dword [ebx]
mov dword [eax], ecx
lea esi, [eax + 4]
mov dword [ebx], eax
push edi
push ebp
push esi
call sub.MSVCR80.dll_memcpy
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebp
ret
push edi
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x403443
jmp fcn.00408a80
xor eax, eax
pop ebp
ret
Function at 0x403470
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x28], edi
mov ebx, eax
mov esi, 0x100
je 0x403503
push 0x104
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x4034a1
jmp fcn.00408a80
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
mov dword [ecx], edx
mov edx, dword [esp + 0x28]
lea eax, [ecx + 4]
mov dword [edx], ecx
mov byte [eax], 0
mov dword [esp + 0x14], edi
mov edi, dword [ebx]
mov dword [esp + 0x18], ebp
xor ebp, ebp
add ebx, 4
test edi, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], eax
je 0x403537
mov eax, dword [esp + 0x2c]
and eax, 1
mov dword [esp + 0x28], eax
test ebp, ebp
je 0x4034f0
push 0x510330
lea esi, [esp + 0x14]
call fcn.00402ff0
add esp, 4
cmp dword [esp + 0x28], 0
push edi
lea esi, [esp + 0x14]
je 0x40351a
push 0x5103cc
jmp 0x40351f
push 0x100
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
jne 0x4034b2
jmp fcn.00408a80
push 0x5103a4
call fcn.00402ff0
mov edi, dword [ebx]
add esp, 8
add ebp, 1
add ebx, 4
test edi, edi
jne 0x4034db
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x403550
cmp dword [esp + 0x18], 0
jl 0x403550
mov ecx, dword [esp + 0x14]
add eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret

Function at 0x403c10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebx + 0xc]
sub esp, 0x10
test eax, eax
push esi
push edi
je 0x403c2b
cmp dword [ebx + 8], eax
jge 0x403ce4
push 0x14
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x403c41
jmp fcn.00408a80
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
add dword [ebx + 8], 1
cmp dword [ebx + 4], eax
je 0x403c8d
cmp dword [ebx], eax
jne 0x403c85
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x403c85
push 0x3a7
push str.._buffer.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
mov eax, dword [ebx + 4]
mov dword [eax + 0x10], esi
jmp 0x403cba
cmp dword [ebx], eax
je 0x403cb8
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x403cb8
push 0x3ac
push str.._buffer.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
mov dword [ebx], esi
mov eax, dword [ebp + 8]
push 0
lea edi, [esp + 0xc]
call fcn.00403560
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
add esp, 4
mov dword [ebx + 4], esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4056c0
Capabilities:
Terminate process

Disassembly:
xor eax, eax
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll_malloc]
mov dword [edi], eax
mov dword [edi + 4], eax
cmp dword [esi + 4], eax
push ebp
mov ebp, dword [esp + 0x14]
je 0x40570b
cmp byte [esi], al
jbe 0x40570b
push 0x8c
call ebx
mov edx, eax
add esp, 4
test edx, edx
mov dword [edi], edx
jne 0x4056f3
jmp fcn.00408a80
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
push esi
push eax
push ecx
mov ecx, dword [esp + 0x1c]
mov eax, ebp
call fcn.00405230
add esp, 0xc
cmp dword [esi + 8], 0
je 0x405743
cmp byte [esi + 1], 0
jbe 0x405743
push 0xb8
call ebx
mov ecx, eax
add esp, 4
test ecx, ecx
mov dword [edi + 4], ecx
jne 0x40572f
jmp fcn.00408a80
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 8]
push ebp
push edx
push eax
mov eax, esi
call fcn.00405440
add esp, 0xc
pop ebp
pop ebx
ret
Function at 0x406bd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x535df0]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, edx
mov edi, ecx
push esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0
call fcn.00467670
add esp, 4
cmp eax, 0x40
jle 0x406c33
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x406c33
push 0x4b2
push str..crypto.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
push 0x40
push 0
push ebx
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x24]
push esi
push eax
call fcn.00468520
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.MSVCR80.dll__open]
mov edi, eax
add esp, 0x1c
cmp edi, 0xffffffff
jne 0x406c84
push 0x110
call fcn.00408960
add esp, 4
test eax, eax
je 0x406c84
mov ecx, dword [esp + 0xc]
push ecx
push str.Cannot_open_passphrase_file:__s
push 0x110
call fcn.00408640
add esp, 0xc
push 0x40
lea edx, [esp + 0x2c]
push edx
push edi
call dword [sym.imp.MSVCR80.dll__read]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x406cf6
jmp 0x406ca0
cmp esi, 0xffffffff
jne 0x406ccd
push 0x110
call fcn.00408960
add esp, 4
test eax, eax
je 0x406ccd
mov eax, dword [esp + 0xc]
push eax
push str.Read_error_on_passphrase_file:__s
push 0x110
call fcn.00408640
add esp, 0xc
push esi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00468400
push 0x40
lea eax, [esp + 0x38]
push eax
push edi
add ebx, esi
call dword [sym.imp.MSVCR80.dll__read]
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x406ca0
push edi
call dword [sym.imp.MSVCR80.dll__close]
add esp, 4
cmp ebx, 8
jge 0x406d29
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x406d29
mov ecx, dword [esp + 0xc]
push 8
push ecx
push str.Passphrase_file__s_is_too_small__must_have_at_least__d_characters_
push 0x10
call fcn.00408640
add esp, 0x10
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00468550
lea edx, [esp + 0x24]
push edx
call fcn.00468490
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x20]
add esp, 0x10
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004dcaae
mov esp, ebp
pop ebp
ret
Function at 0x406d60
Capabilities:
Terminate process

Disassembly:
sub esp, 0xb8
mov eax, dword [0x535df0]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xbc]
push ebx
push ebp
push esi
push edi
push 0x804
mov dword [esp + 0x1c], eax
mov edi, 0x800
xor ebx, ebx
xor ebp, ebp
call dword [sym.imp.MSVCR80.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x406da5
jmp fcn.00408a80
lea eax, [esi + 4]
mov dword [esi], ebx
mov byte [eax], bl
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
push 0x84
mov dword [esp + 0x30], eax
mov edi, 0x80
xor ebx, ebx
xor ebp, ebp
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
jne 0x406ddc
jmp fcn.00408a80
mov dword [eax], esi
mov esi, dword [esp + 0x18]
push 0
mov dword [esp + 0x18], eax
add eax, 4
push 0x301
push esi
mov byte [eax], bl
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], eax
call dword [sym.imp.MSVCR80.dll__open]
mov ebp, eax
add esp, 0xc
cmp ebp, 0xffffffff
jne 0x406e37
push 0x110
call fcn.00408960
add esp, 4
test eax, eax
je 0x406e37
push esi
push str.Cannot_open_shared_secret_file__s_for_write
push 0x110
call fcn.00408640
add esp, 0xc
push str._____BEGIN_OpenVPN_Static_key_V1_____
push 0x511128
lea esi, [esp + 0x28]
call fcn.00402ff0
add esp, 8
mov dword [esp + 0x1c], 2
xor eax, eax
lea ecx, [esp + 0x40]
call fcn.00405c20
lea ecx, [esp + 0x14]
push ecx
push 0x51112c
lea edx, [esp + 0x48]
push 0x10
push edx
xor eax, eax
mov ebx, 0x80
call fcn.00403180
mov edi, eax
push edi
push 0x511128
lea esi, [esp + 0x38]
call fcn.00402ff0
mov eax, edi
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406e96
sub eax, edx
push eax
push 0
push edi
call sub.MSVCR80.dll_memset
add esp, 0xc
sub dword [esp + 0x1c], 1
jne 0x406e55
push str._____END_OpenVPN_Static_key_V1_____
push 0x511128
lea esi, [esp + 0x28]
call fcn.00402ff0
push 0x800
push str._n__d_bit_OpenVPN_static_key_n_n
lea esi, [esp + 0x40]
call fcn.00402ff0
mov esi, dword [esp + 0x28]
push ebp
push esi
lea edi, [esp + 0x48]
call fcn.004030b0
push ebp
push esi
lea edi, [esp + 0x40]
call fcn.004030b0
push ebp
call dword [sym.imp.MSVCR80.dll__close]
add esp, 0x24
test eax, eax
je 0x406f26
push 0x110
call fcn.00408960
add esp, 4
test eax, eax
je 0x406f26
push esi
push str.Close_error_on_shared_secret_file__s
push 0x110
call fcn.00408640
add esp, 0xc
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x406f3e
push eax
mov eax, dword [esp + 0x30]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x406f5e
mov edi, dword [sym.imp.MSVCR80.dll_free]
lea esp, [esp]
mov esi, dword [eax]
push eax
call edi
add esp, 4
test esi, esi
mov eax, esi
jne 0x406f50
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x800
call fcn.004dcaae
add esp, 0xb8
ret
Function at 0x407760
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [0x53c148]
push edi
push eax
mov edi, ecx
call dword [sym.imp.MSVCR80.dll_free]
xor ebx, ebx
add esp, 4
cmp edi, ebx
mov dword [0x53c148], ebx
mov dword [0x5424d8], ebx
mov dword [0x53c14c], ebx
je 0x407856
call fcn.00405180
cmp eax, ebx
mov dword [0x5424d8], eax
je 0x40788e
cmp esi, 0x10
jl 0x4077b5
cmp esi, 0x40
jle 0x4077e1
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x4077dc
push 0x683
push str..crypto.c
push str.Assertion_failed_at__s:_d
push 0x10
call fcn.00408640
add esp, 0x10
mov eax, dword [0x5424d8]
push eax
mov dword [0x53c14c], esi
call fcn.00467670
mov esi, eax
add esi, dword [0x53c14c]
add esp, 4
cmp dword [0x5426d0], 7
jb 0x40783e
push 0x46000087
call fcn.00408960
add esp, 4
test eax, eax
je 0x40783e
mov ecx, dword [0x5424d8]
push esi
push ecx
call fcn.00467640
add esp, 4
push eax
call fcn.0046ae00
add esp, 4
push eax
push str.PRNG_init_md_s_size_d
push 0x46000087
call fcn.00408640
add esp, 0x10
push esi
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
cmp eax, ebx
mov dword [0x53c148], eax
jne 0x407863
jmp fcn.00408a80
mov dword [0x5424d8], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push eax
call fcn.004697e0
add esp, 8
test eax, eax
jne 0x40788e
push 0x10
call fcn.00408960
add esp, 4
test eax, eax
je 0x40788e
push str.ERROR:_Random_number_generator_cannot_obtain_entropy_for_PRNG
push 0x10
call fcn.00408640
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408410
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, eax
xor ecx, ecx
xor eax, eax
test edi, edi
push esi
jle 0x40844f
push ebp
mov ebp, 1
sub ebp, ebx
lea edx, [eax + ebx]
lea esi, [edx + ebp]
cmp esi, edi
jge 0x408435
movzx esi, byte [eax + ebx + 1]
jmp 0x408437
xor esi, esi
movzx dx, byte [edx]
shl dx, 8
add dx, si
movzx edx, dx
add eax, 2
add ecx, edx
cmp eax, edi
jl 0x408424
pop ebp
mov eax, dword [esp + 0xc]
add eax, 1
mov esi, 2
jmp 0x408460
movzx ebx, byte [eax]
xor edx, edx
mov dh, byte [eax - 1]
add eax, 2
movzx edx, dx
xor edx, ebx
add ecx, edx
sub esi, 1
jne 0x408460
mov eax, dword [esp + 0x10]
add eax, 1
mov esi, 2
movzx ebx, byte [eax]
xor edx, edx
mov dh, byte [eax - 1]
add eax, 2
movzx edx, dx
xor edx, ebx
add ecx, edx
sub esi, 1
jne 0x408483
movzx eax, di
lea eax, [ecx + eax + 0x11]
mov ecx, eax
shr ecx, 0x10
pop esi
pop ebx
je 0x4084bc
lea ebx, [ebx]
movzx eax, ax
add eax, ecx
mov ecx, eax
shr ecx, 0x10
jne 0x4084b0
not eax
ret
Function at 0x408ed0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, eax
xor ebp, ebp
xor ebx, ebx
test esi, esi
push edi
mov edi, 0x10
je 0x408fa8
push 0x14
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x408f00
jmp fcn.00408a80
mov edx, dword [esi]
lea eax, [ecx + 4]
mov dword [ecx], edx
mov dword [esi], ecx
mov byte [eax], bl
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x24]
cmp ebx, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], eax
jne 0x408f35
push str.IFNWD
lea esi, [esp + 0x14]
call fcn.00402ff0
add esp, 4
test bl, 0x10
je 0x408f4b
push 0x511b6c
lea esi, [esp + 0x14]
call fcn.00402ff0
add esp, 4
test bl, 0x20
je 0x408f61
push 0x511b70
lea esi, [esp + 0x14]
call fcn.00402ff0
add esp, 4
test bl, 0x40
je 0x408f77
push 0x511b74
lea esi, [esp + 0x14]
call fcn.00402ff0
add esp, 4
test bl, bl
jns 0x408f8c
push 0x511b78
lea esi, [esp + 0x14]
call fcn.00402ff0
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x408fc0
cmp dword [esp + 0x18], ebp
jl 0x408fc0
mov ecx, dword [esp + 0x14]
add eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0x10
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
jne 0x408f09
jmp fcn.00408a80
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x40a010
Capabilities:
Set socket configuration

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0xc], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x40a050
push 0x210
call fcn.00408960
add esp, 4
test eax, eax
je 0x40a050
push str.Set_socket_to_non_blocking_mode_failed
push 0x210
call fcn.00408640
add esp, 8
pop ecx
ret

Function at 0x40ada0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x18
push ebp
push esi
mov esi, eax
xor ebp, ebp
test esi, esi
push edi
mov edi, 0x40
je 0x40ae77
push 0x44
call dword [sym.imp.MSVCR80.dll_malloc]
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x40adcd
jmp fcn.00408a80
mov edx, dword [esi]
lea eax, [ecx + 4]
mov dword [ecx], edx
mov dword [esi], ecx
mov byte [eax], 0
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edi
lea edi, [ebx + 0x90c]
mov eax, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ecx
call fcn.00434500
push eax
mov eax, dword [ebx + 0x674]
push ecx
push 2
push eax
mov eax, esi
call fcn.004416b0
mov ecx, dword [ebx + 0x674]
add esp, 0xc
push eax
push 1
push ecx
mov eax, esi
call fcn.004416b0
mov edx, dword [ebx + 0x620]
add esp, 8
push eax
push ecx
push 2
push edx
mov eax, esi
call fcn.0044d350
add esp, 0xc
push eax
mov eax, dword [ebx + 0x620]
push 1
push eax
mov eax, esi
call fcn.0044d350
add esp, 8
push eax
push str.I_O_WAIT__s_s_s_s__s
lea esi, [esp + 0x28]
call fcn.00402ff0
mov eax, dword [esp + 0x34]
add esp, 0x18
test eax, eax
je 0x40ae8f
cmp dword [esp + 0x18], ebp
jl 0x40ae8f
mov ecx, dword [esp + 0x14]
add eax, ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
push 0x40
call dword [sym.imp.MSVCR80.dll_malloc]
add esp, 4
test eax, eax
jne 0x40add6
jmp fcn.00408a80
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x18
ret

Function at 0x40c550
Capabilities:
Check if file exists

Disassembly:
push ecx
mov eax, dword [edi + 0x8a8]
mov ecx, dword [eax + 0x60]
add eax, 0x60
mov dword [edi + 0x8b0], ecx
mov edx, dword [eax + 4]
push ebx
lea ebx, [edi + 0x8b0]
mov dword [ebx + 4], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [edi + 0x620]
push esi
mov dword [ebx + 0xc], edx
lea esi, [eax + 0xb4]
mov eax, dword [eax + 0xb0]
push eax
call fcn.0044df80
add esp, 4
cmp dword [edi + 0x8b8], 0
jge 0x40c5f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
test eax, eax
je 0x40c5f8
cmp dword [0x5426d0], 1
mov edx, dword [edi + 0x57c]
mov dword [edx], 4
mov eax, dword [edi + 0x57c]
mov dword [eax + 8], str.tun_stop
jb 0x40c629
push 1
call fcn.00408960
add esp, 4
test eax, eax
je 0x40c629
push str.TUN_TAP_interface_has_been_stopped__exiting
push 1
call fcn.00408640
add esp, 8
pop esi
pop ebx
pop ecx
ret
mov ecx, dword [edi + 0x8b8]
test ecx, ecx
mov eax, dword [edi + 0x620]
jl 0x40c619
mov edx, dword [0x5426d8]
and edx, 0xf
cmp edx, dword [0x5426d0]
ja 0x40c629
push eax
push str.read_from_TUN_TAP
xor eax, eax
call fcn.00408ce0
add esp, 8
pop esi
pop ebx
pop ecx
ret