joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4095f0
Capabilities:
Get local ipv4 addresses
Get socket information
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edi, edx
mov esi, ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x28]
cmp eax, 0x1fff
jle 0x40962b
cmp eax, 0x2000
je 0x409639
cmp eax, 0x100000
je 0x40967f
cmp eax, 0x1000000
jne 0x409691
push ecx
push edi
push dword [esi + 0xf8]
call fcn.0040fb80
jmp 0x40969b
cmp eax, 0x100
je 0x409639
cmp eax, 0x1000
jne 0x409691
mov ebp, dword [esi + 0x30]
mov ebx, dword [esi + 0x44]
push ebx
call fcn.0040fd40
add esp, 4
push eax
push ebx
push 0
push dword [esp + 0x24]
push edi
push ebp
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, dword [esi + 0x40]
cmp word [ecx + 2], 0
jne 0x40968c
mov dword [esp], 0x1c
mov edx, esp
push edx
push ecx
push dword [esi + 0x30]
mov esi, eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, esi
add esp, 4
jmp 0x40969e
push 0
push ecx
push edi
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_send]
add esp, 4
jmp 0x40969e
push ecx
push edi
push dword [esi + 0x30]
call sub.msvcrt.dll__write
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4098f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
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 0x409953
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 0x409993
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x4099ac
mov ecx, dword [esi + 0x100]
test ecx, ecx
je 0x40994b
push ecx
push eax
call fcn.0040fb90
add esp, 8
push esi
call fcn.00409aa0
jmp 0x4099a2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x34], eax
call fcn.00405f60
mov edi, eax
mov ebx, dword [esi + 0x30]
push dword [esi + 0x34]
call fcn.0040fbe0
add esp, 4
push dword [esi + 0x34]
push eax
push ebx
push str.nio_connect
push str._s:_connfd_d_connect_error:__s:_d
push 3
push edi
call fcn.00405460
add esp, 0x1c
push esi
call fcn.004096b0
jmp 0x4099a2
push esi
call fcn.00406be0
add esp, 4
push esi
call fcn.00406700
add esp, 4
add esp, 4
pop esi
pop edi
pop ebx
ret
mov eax, dword [esi + 0xfc]
test eax, eax
jne 0x4099d9
mov eax, dword [0x438eb0]
mov eax, dword [eax]
test eax, eax
jne 0x4099d9
push 0
call fcn.0040f7c0
add esp, 4
mov dword [esi + 0xfc], eax
or byte [esi + 0x25], 0x80
test eax, eax
je 0x409a0c
push dword [esi + 0x30]
push eax
call fcn.0040fa00
add esp, 8
test eax, eax
je 0x409a02
mov dword [esi + 0xf8], eax
mov ecx, dword [esi + 0x100]
test ecx, ecx
jne 0x409941
jmp 0x40994b
mov eax, 0x412
jmp 0x409959
mov eax, 0x411
jmp 0x409959
Function at 0x409ee0
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 0x409f5e
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 1
je 0x409f40
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 0x409f10
mov ebx, dword [esp + 0x1c]
test bl, 1
je 0x409f60
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 0x409f60
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 0x409f70
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 0x409ff1
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
movzx ebx, cl
cmp eax, 8
jae 0x409fff
mov ebp, edx
test al, 1
je 0x409fb3
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 0x409fea
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 0x409fc0
movzx ecx, byte [esp + 0x28]
jmp 0x409ff3
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 0x40a0d9
mov ebp, edx
cmp edx, 3
mov edx, 0
ja 0x409f94
mov byte [esp], ch
mov ecx, edi
sub ecx, esi
cmp ecx, 0x20
jb 0x409f94
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 0x409f94
xor edx, edx
cmp eax, 0x20
jb 0x40a096
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 0x409fea
test al, 0x18
je 0x409f94
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 0x40a0b0
mov edx, dword [esp]
cmp edx, eax
jne 0x409f94
jmp 0x409fea
xor edx, edx
jmp 0x409f94
Function at 0x40a2f0
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 0x40a3d8
xor edi, edi
mov esi, 0xffffffff
mov ebp, 1
xor ecx, ecx
jmp 0x40a360
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 0x40a3b7
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 0x40a320
cmp eax, 1
jne 0x40a3a0
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 0x40a3ad
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 0x40a350
mov edx, 0xaaaaaaab
mov eax, esi
mul edx
shr edx, 1
lea eax, [edx + edx*2]
sub esi, eax
cmp esi, 1
je 0x40a407
test esi, esi
jne 0x40a427
neg ebp
mov ebx, dword [esp + 0x14]
jmp 0x40a3df
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 0x40a424
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 0x40f7c0
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 0x40f92a
mov esi, eax
mov edi, dword [esp + 0x28]
add eax, 0x2e4
mov dword [esp + 0x10], eax
push eax
call fcn.00415b20
add esp, 4
lea ebx, [esi + 0x348]
push ebx
call fcn.00417ec0
add esp, 4
lea eax, [esi + 0x4e0]
mov dword [esp + 0xc], eax
push eax
call fcn.00418980
add esp, 4
push esi
call fcn.00418c40
add esp, 4
mov ebp, esi
add ebp, 0x1a4
push ebp
call fcn.004190c0
add esp, 4
test edi, edi
je 0x40f8a3
mov eax, dword [edi]
test eax, eax
je 0x40f867
cmp byte [eax], 0
je 0x40f867
push eax
push ebx
call fcn.00417570
add esp, 8
test eax, eax
je 0x40f867
push 2
call dword [0x43e020]
add esp, 4
push eax
push 1
push 0x14
push str.ssl_crt_file_error__n
jmp 0x40f919
mov eax, dword [edi + 4]
mov dl, 1
test eax, eax
je 0x40f8ba
cmp byte [eax], 0
je 0x40f8ba
push 0
push 0
push 0
push eax
push dword [esp + 0x1c]
call fcn.0041a0d0
add esp, 0x14
test eax, eax
je 0x40f8b8
push 2
call dword [0x43e020]
add esp, 4
push eax
push 1
push 0x14
push str.ssl_key_file_error__n
jmp 0x40f919
mov dword [esp], ebx
mov al, 1
mov dword [esp + 8], eax
mov dword [esp + 4], 0
xor ebx, ebx
jmp 0x40f8db
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 0x418e70
push ebp
call fcn.004196c0
add esp, 0x14
push 0
push 0
push ebx
mov edi, dword [esp + 0x1c]
push edi
call fcn.00415b50
add esp, 0x10
test eax, eax
je 0x40f936
push 2
call dword [0x43e020]
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.00437442
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.00415670
add esp, 8
push ebp
push 0x4198a0
push edi
call fcn.00415680
add esp, 0xc
cmp byte [esp + 8], 0
jne 0x40f92c
push 0
push dword [esi + 0x4dc]
push edi
call fcn.00415750
add esp, 0xc
push dword [esp + 0xc]
push dword [esp + 4]
push edi
call fcn.004156d0
add esp, 0xc
test eax, eax
je 0x40f92c
push 2
call dword [0x43e020]
add esp, 4
push eax
push 1
push 0x1b
push str.ssl_key_file_check_failed__n
jmp 0x40f919
Function at 0x40fc10
Capabilities:
Convert ip address from string
Initialize winsock library
Resolve dns

Disassembly:
push edi
push esi
sub esp, 0x190
mov esi, dword [esp + 0x1a0]
mov edi, dword [esp + 0x19c]
mov cl, 1
xor eax, eax
lock cmpxchg byte [0x441184], cl
jne 0x40fc42
mov eax, esp
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esi + 4]
push eax
push edi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x40fc64
mov word [esi], 2
xor eax, eax
add esp, 0x190
pop esi
pop edi
ret
lea eax, [esi + 8]
push eax
push edi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x40fc7b
mov word [esi], 0x17
mov dword [esp], 0
mov eax, esp
push eax
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x40fc5b
mov edi, dword [esp]
test edi, edi
je 0x40fc5b
xor eax, eax
cmp dword [edi + 0x18], 0
je 0x40fc5b
cmp dword [edi + 0x10], 0
je 0x40fc5b
mov eax, edi
nop dword [eax + eax]
cmp dword [eax + 4], 2
je 0x40fcbf
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x40fcb0
mov eax, edi
push dword [eax + 0x10]
push dword [eax + 0x18]
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x40fc59
Function at 0x40fe20
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Initialize winsock library
Start tcp server

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x194
cmp dword [esp + 0x1a8], 2
mov eax, 0xffffffff
jne 0x40ffc9
cmp dword [esp + 0x1ac], 1
jne 0x40ffc9
mov cl, 1
xor eax, eax
lock cmpxchg byte [0x441184], cl
lea ebx, [esp + 4]
jne 0x40fe69
push ebx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [esp], 0x10
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov word [esp + 4], 2
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 8], eax
mov word [esp + 6], 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test eax, eax
js 0x40ff38
push 0x10
push ebx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x40ff52
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
js 0x40ff59
mov ebp, esp
push ebp
push ebx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
js 0x40ff60
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
test eax, eax
js 0x40ff71
push dword [esp]
push ebx
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x40ff92
push ebp
push ebx
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
test eax, eax
js 0x40ff9e
mov ebp, dword [esp + 0x1b4]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp], edi
mov dword [ebp + 4], ebx
xor eax, eax
jmp 0x40ffc9
push 0x439585
call sub.msvcrt.dll_perror
add esp, 4
mov eax, 0xffffffff
cmp esi, 0xffffffff
je 0x40ffc9
push esi
jmp 0x40ffbe
mov eax, 0x43958c
jmp 0x40ff65
mov eax, 0x439591
jmp 0x40ff65
mov eax, 0x439598
push eax
call sub.msvcrt.dll_perror
add esp, 4
push esi
jmp 0x40ffbe
push 0x439585
call sub.msvcrt.dll_perror
add esp, 4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
cmp edi, 0xffffffff
je 0x40ffc9
push edi
jmp 0x40ffbe
mov eax, 0x4395a4
mov ebx, 0xffffffff
jmp 0x40ffa3
mov eax, 0x4395ac
push eax
call sub.msvcrt.dll_perror
add esp, 4
mov ebp, dword [sym.imp.WS2_32.dll_closesocket]
push esi
call ebp
push edi
call ebp
cmp ebx, 0xffffffff
je 0x40ffc4
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
add esp, 0x194
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4119b0
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.0x4119c1
jmp dword [eax*4 + 0x439700]
cmp dword [0x43e298], 0
je 0x411ad0
push 0x43e29c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x43e2b4]
test edi, edi
je 0x411ac5
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x411a0b
mov edi, dword [edi + 8]
test edi, edi
je 0x411ac5
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x411a00
test esi, esi
je 0x411a00
mov ecx, dword [edi + 4]
call dword [0x43cfa4]
push esi
call ecx
add esp, 4
jmp 0x411a00
call fcn.0040a800
jmp case.default.0x4119c1
cmp dword [0x43e298], 0
je case.default.0x4119c1
push 0x43e29c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x43e2b4]
test edi, edi
je 0x411ab8
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x411a77
mov edi, dword [edi + 8]
test edi, edi
je 0x411ab8
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x411a70
test esi, esi
je 0x411a70
mov ecx, dword [edi + 4]
call dword [0x43cfa4]
push esi
call ecx
add esp, 4
jmp 0x411a70
cmp dword [0x43e298], 0
jne 0x411aac
push 0x43e29c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x43e298], 1
jmp case.default.0x4119c1
push 0x43e29c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x4119c1
push 0x43e29c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x43e298]
cmp eax, 1
jne case.default.0x4119c1
mov eax, dword [0x43e2b4]
test eax, eax
je 0x411b02
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call fcn.00437442
add esp, 4
mov eax, esi
test esi, esi
jne 0x411af0
mov dword [0x43e2b4], 0
mov dword [0x43e298], 0
push 0x43e29c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

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

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

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
push 0x439ae0
push dword [esp + 0x1c]
call sub.msvcrt.dll_fopen
add esp, 8
mov esi, 0xffffc200
test eax, eax
je 0x41a0bf
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 0x41a09a
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 0x41a0a5
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 0x41a0b5
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 0x41a0bf
inc dword [edi]
jmp 0x41a0bf
push edi
call sub.msvcrt.dll_fclose
add esp, 4
jmp 0x41a0bf
push edi
call sub.msvcrt.dll_fclose
add esp, 4
mov esi, 0xffffc080
jmp 0x41a0bf
push ecx
push eax
call fcn.00420a60
add esp, 8
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x422aa0
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 0x422ac8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, ebp
and edx, 3
mov dword [esp], edx
cmp ebp, 4
jae 0x422acc
xor edi, edi
xor esi, esi
jmp 0x422b1d
xor eax, eax
jmp 0x422b44
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 0x422ae0
mov ebx, dword [esp]
test ebx, ebx
je 0x422b41
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 0x422b30
movzx eax, si
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

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

Disassembly:
xor eax, eax
test ecx, ecx
je 0x424e54
push ebx
push edi
push esi
mov edx, dword [ecx + 4]
cmp edx, 8
je 0x424e0e
cmp edx, 9
jne 0x424e51
push 9
mov esi, ecx
push dword [ecx + 8]
push 0x43ae75
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x424e3e
push 9
push dword [esi + 8]
push 0x43aea8
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x424e4c
push 9
push dword [esi + 8]
push 0x43af35
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
mov eax, 0
jne 0x424e51
mov eax, 0x43ab50
jmp 0x424e51
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 0x424e45
mov ecx, dword [ecx + 8]
xor edx, dword [ecx]
mov esi, 0x303043d
xor esi, dword [ecx + 4]
or esi, edx
jne 0x424e51
mov eax, 0x43ab38
jmp 0x424e51
mov eax, 0x43aaf0
jmp 0x424e51
mov eax, 0x43ab20
jmp 0x424e51
mov eax, 0x43ab08
pop esi
pop edi
pop ebx
ret

Function at 0x424e90
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push esi
mov ecx, dword [esp + 8]
mov eax, 0xffffffd2
test ecx, ecx
je 0x424ecd
mov edx, dword [ecx + 4]
cmp edx, 5
je 0x424eec
cmp edx, 7
je 0x424ecf
cmp edx, 9
jne 0x424ecd
push 9
push dword [ecx + 8]
push 0x43af4a
call sub.msvcrt.dll_memcmp
add esp, 0xc
mov ecx, eax
mov eax, 0xffffffd2
test ecx, ecx
je 0x424f08
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 0x424ecd
mov eax, 0x43ab94
jmp 0x424f0d
mov ecx, dword [ecx + 8]
mov edx, 0x104812b
xor edx, dword [ecx]
movzx ecx, byte [ecx + 4]
xor ecx, 0xc
or ecx, edx
jne 0x424ecd
mov eax, 0x43aba8
jmp 0x424f0d
mov eax, 0x43ab80
mov ecx, dword [esp + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ecx], eax
xor eax, eax
pop esi
ret
Function at 0x427a40
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 0x427a30
mov edi, dword [eax + 4]
lea ecx, [edi - 0x401]
cmp ecx, 0xfffffc0f
jb 0x427a30
lea ebx, [esp + 0x10]
push ebx
push dword [esp + 0x438]
push dword [esp + 0x434]
push dword [esp + 0x434]
push eax
call fcn.004270b0
add esp, 0x14
mov esi, eax
test eax, eax
jne 0x427a22
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 0x427910
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.00422f00
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.00422b50
add esp, 0xc
cmp dword [esp + 0x43c], 0
je 0x427a13
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.004209e0
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 0x427870
mov eax, 0xffffbf00
ret