joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3294b40
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x4c
mov eax, dword [0x3415a34]
xor eax, esp
mov dword [esp + 0x48], eax
movzx eax, word [esp + 0x54]
push esi
mov esi, dword [esp + 0x54]
push edi
test esi, esi
jne 0x3294bf3
test ax, ax
jne 0x3294bf3
push esi
push 0x84000001
push 2
mov dword [esp + 0x14], 1
call fcn.0327aee0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
jne 0x3294bac
push 0x33bef68
push eax
call fcn.0328a550
add esp, 8
or edi, edi
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0338ca36
add esp, 0x4c
ret
push 4
lea eax, [esp + 0xc]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x3294be0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov esi, eax
call fcn.03278ba0
add esp, 4
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or edi, 0xffffffff
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0338ca36
add esp, 0x4c
ret
push ebx
push eax
push 0x33b27ec
xorps xmm0, xmm0
mov dword [esp + 0x14], 0
lea eax, [esp + 0x3c]
movlpd qword [esp + 0x28], xmm0
push 0x20
push eax
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 0x40], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], 0x401
call fcn.03278e00
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x4c]
push eax
push esi
call fcn.03279990
add esp, 0x20
test eax, eax
je 0x3294cab
cmp eax, 0xfffffc71
jne 0x3294c82
push 0x33bf7a8
call fcn.0328a3d0
add esp, 4
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0338ca36
add esp, 0x4c
ret
push eax
call fcn.03279c40
push eax
push str.getaddrinfo:__s
call fcn.0328a6b0
add esp, 0xc
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0338ca36
add esp, 0x4c
ret
mov ebx, dword [esp + 0xc]
test ebx, ebx
jne 0x3294cc8
pop ebx
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0338ca36
add esp, 0x4c
ret
push 0
push 0x84000001
push dword [ebx + 4]
mov dword [esp + 0x1c], 1
call fcn.0327aee0
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
jne 0x3294cf9
push 0x33bef68
push eax
call fcn.0328a550
add esp, 8
jmp 0x3294d50
push 4
lea eax, [esp + 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x3294d38
cmp dword [esp + 0x64], 0
je 0x3294d26
push edi
call fcn.03278b50
add esp, 4
test eax, eax
js 0x3294d38
push dword [ebx + 0x10]
push dword [ebx + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x3294d53
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov esi, eax
call fcn.03278ba0
add esp, 4
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or edi, 0xffffffff
push ebx
call fcn.03279c00
mov ecx, dword [esp + 0x58]
add esp, 4
mov eax, edi
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.0338ca36
add esp, 0x4c
ret
Function at 0x3299e40
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0x24
mov eax, dword [0x3415a34]
xor eax, esp
mov dword [esp + 0x20], eax
cmp dword [0x34175a4], 0
jne 0x3299e81
xor eax, eax
nop dword [eax]
mov byte [eax + 0x34175aa], al
inc eax
cmp eax, 0x100
jl 0x3299e60
mov word [0x34175a8], 0
mov dword [0x34175a4], 1
push 2
push 0x20
lea eax, [esp + 8]
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
jne 0x3299f24
push esi
lea eax, [esp + 4]
push 0x20
push eax
call fcn.03299ce0
lea eax, [esp + 0xc]
push 0x20
push eax
call fcn.0327b020
add esp, 0x10
mov esi, 0xc00
nop word [eax + eax]
mov cl, byte [0x34175a8]
inc cl
movzx eax, cl
mov byte [0x34175a8], cl
movzx ecx, cl
mov dl, byte [eax + 0x34175aa]
mov al, byte [0x34175a9]
add al, dl
mov byte [0x34175a9], al
movzx eax, al
movzx eax, byte [eax + 0x34175aa]
mov byte [ecx + 0x34175aa], al
movzx eax, byte [0x34175a9]
mov byte [eax + 0x34175aa], dl
sub esi, 1
jne 0x3299ec0
mov dword [0x34176b0], 0x186a00
xor eax, eax
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0338ca36
add esp, 0x24
ret
mov ecx, dword [esp + 0x20]
or eax, 0xffffffff
xor ecx, esp
call fcn.0338ca36
add esp, 0x24
ret
Function at 0x32a0f50
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call fcn.0329d080
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0
push 1
mov dword [esp + 0x18], 0
movzx ecx, byte [esi + 0x51]
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov eax, dword [esi + 0x4c]
test byte [eax + 0x20], 1
je 0x32a1047
cmp edi, 0xffffffff
jne 0x32a0f96
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x32a1032
push 4
add eax, 0x24
push eax
push 0x700b
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esi + 0x4c]
test byte [eax + 0x14], 1
jne 0x32a0fbf
push edi
call fcn.03278b10
add esp, 4
mov eax, dword [esi + 0x4c]
push 1
push edi
push dword [eax + 0x2c]
call fcn.0329d320
add esp, 0xc
test eax, eax
jns 0x32a0fe4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
movzx eax, byte [esi + 0x50]
lea ebx, [esi + 0x18]
push ebx
shr eax, 1
lea ecx, [esp + 0x14]
push ecx
push eax
push eax
push 0
lea eax, [esi + 0x58]
mov dword [esi + 0x30], edi
push eax
mov eax, dword [esi + 0x4c]
push edi
push dword [eax + 0x24]
mov eax, dword [ebp]
call eax
test eax, eax
je 0x32a1025
push 1
push 0
push 1
push ebx
call fcn.032a0bc0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x32a1047
mov dword [esi + 0x34], eax
lea eax, [esi + 0x38]
push eax
mov eax, dword [esi + 0x4c]
push dword [eax + 0x28]
call fcn.0327e9d0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x32a12c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x94
mov eax, dword [0x3415a34]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xa0]
push edi
mov edi, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
test edi, edi
je 0x32a147b
test byte [edi + 0x1c], 0x10
je 0x32a147b
mov eax, dword [edi + 0x18]
mov dword [esp + 4], 0
test eax, eax
je 0x32a1313
push eax
push 0
call fcn.0329a5d0
add esp, 8
push ebp
or ebp, 0xffffffff
test byte [edi + 0x1c], 4
jne 0x32a1450
or ebp, ebp
test byte [edi + 0x4c], 1
jne 0x32a1450
push esi
push 0x80
lea eax, [edi + 0x58]
mov dword [edi + 0x50], 0
push 0
push eax
mov dword [edi + 0x54], 0
call fcn.0338e220
mov esi, dword [esp + 0xb4]
or ebp, 0xffffffff
push 0x10
push esi
push edi
call fcn.03290340
add esp, 0x18
cmp eax, ebp
je 0x32a144f
push ebx
push 0
push edi
call fcn.0328fd80
push 1
lea eax, [esp + 0x20]
push eax
push 0x10
lea eax, [esp + 0x34]
push eax
push esi
push edi
call fcn.03290590
mov ebx, eax
add esp, 0x20
xor edx, edx
or ebp, ebp
test ebx, ebx
jle 0x32a13b6
lea ecx, [edi + 0x58]
or ebp, 0xffffffff
nop dword [eax + eax]
mov eax, dword [esp + edx*8 + 0x20]
lea ecx, [ecx + 8]
mov dword [ecx - 4], eax
mov eax, dword [esp + edx*8 + 0x24]
inc edx
mov dword [ecx - 8], eax
cmp edx, ebx
jl 0x32a13a0
mov eax, dword [esp + 0x14]
mov dword [edi + 0x54], ebx
mov esi, dword [eax]
mov dword [edi + 0x50], esi
test esi, esi
je 0x32a13d7
push 0x10
push esi
call fcn.03290250
mov esi, dword [esi]
add esp, 8
test esi, esi
jne 0x32a13c6
push edi
call fcn.03290200
add esp, 4
lea eax, [esp + 0x10]
push 0
push dword [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
push ebx
lea eax, [edi + 0x58]
push eax
push dword [edi + 0x48]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x32a1448
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x32a1448
mov eax, dword [edi + 0x50]
xor ebx, ebx
cmp dword [edi + 0x54], ebx
jle 0x32a1435
nop dword [eax]
mov esi, dword [eax]
push 0x10
push eax
call fcn.03290260
inc ebx
add esp, 8
mov eax, esi
cmp ebx, dword [edi + 0x54]
jl 0x32a1420
push 0
push edi
call fcn.0328fdc0
push edi
call fcn.0328d430
add esp, 0xc
jmp 0x32a144e
or dword [edi + 0x4c], 1
xor ebp, ebp
pop ebx
pop esi
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x32a1462
push ecx
push 0
call fcn.0329a5e0
add esp, 8
mov eax, ebp
pop ebp
pop edi
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.0338ca36
add esp, 0x94
ret
mov ecx, dword [esp + 0x94]
or eax, 0xffffffff
pop edi
xor ecx, esp
mov dword [esp], 0
call fcn.0338ca36
add esp, 0x94
ret
Function at 0x32a14a0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
test ebp, ebp
je 0x32a14eb
test byte [ebp + 0x1c], 0x10
je 0x32a14eb
mov ebx, ebp
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x32a14c8
push eax
push 0
call fcn.0329a5d0
add esp, 8
test byte [ebp + 0x1c], 2
push edi
jne 0x32a15fb
test byte [ebx + 0x4c], 2
jne 0x32a15fb
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x32a14fb
xor ebx, ebx
jmp 0x32a15fe
xor ebx, ebx
test ebp, ebp
jne 0x32a14b6
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x20]
test edi, edi
js 0x32a1507
cmp edi, eax
jbe 0x32a1509
mov edi, eax
push 1
push ebp
call fcn.0328fd80
push 0x80
lea eax, [ebx + 0x58]
mov dword [ebx + 0x50], 0
push 0
push eax
mov dword [ebx + 0x54], 0
call fcn.0338e220
mov esi, dword [ebp]
lea ecx, [ebx + 0x58]
add esp, 0x14
mov dword [ebx + 0x50], esi
xor edx, edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
test esi, esi
je 0x32a1590
mov eax, dword [esi + 0x18]
add eax, dword [esi + 8]
push 0x20
push esi
mov dword [ecx + 4], eax
call fcn.03290250
mov edx, dword [esp + 0x24]
add esp, 8
mov eax, dword [esi + 0xc]
inc edx
mov dword [esp + 0x1c], edx
cmp edi, eax
jbe 0x32a1586
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
add ecx, 8
sub edi, dword [esi + 0xc]
mov esi, dword [esi]
mov dword [esp + 0x10], ecx
cmp edx, 0x10
jl 0x32a1545
jmp 0x32a1590
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
mov dword [eax], edi
push ebp
mov dword [ebx + 0x54], edx
call fcn.03290200
add esp, 4
lea eax, [esp + 0x14]
push 0
push dword [esp + 0x28]
push 0
push eax
push dword [esp + 0x2c]
lea eax, [ebx + 0x58]
push eax
push dword [ebx + 0x48]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x32a161a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x32a161a
mov eax, dword [ebx + 0x50]
xor edi, edi
cmp dword [ebx + 0x54], edi
jle 0x32a15ea
mov esi, dword [eax]
push 0x20
push eax
call fcn.03290260
inc edi
add esp, 8
mov eax, esi
cmp edi, dword [ebx + 0x54]
jl 0x32a15d5
push 1
push ebp
call fcn.0328fdc0
push ebp
call fcn.0328d430
add esp, 0xc
or ebx, 0xffffffff
mov ecx, dword [ebp + 0x18]
pop edi
test ecx, ecx
je 0x32a1611
push ecx
push 0
call fcn.0329a5e0
add esp, 8
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret
or dword [ebx + 0x4c], 2
xor ebx, ebx
jmp 0x32a15fe

Function at 0x32e1e70
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
test ebp, ebp
je 0x32e1ee0
mov al, byte [ebp]
test al, al
je 0x32e1ee0
push ebx
mov ecx, 0x100
push edi
lea ebx, [ebx]
movsx ebx, al
xor edx, edx
or ebx, ecx
mov eax, esi
add ecx, 0x100
mov edi, ebx
shr edi, 2
mov dword [esp + 0x14], ecx
xor edi, ebx
and edi, 0xf
mov ecx, 0x20
sub ecx, edi
call fcn.0338d650
mov ecx, edi
imul ebx, ebx
shl esi, cl
lea ebp, [ebp + 1]
mov ecx, dword [esp + 0x14]
or eax, esi
xor eax, ebx
mov esi, eax
mov al, byte [ebp]
test al, al
jne 0x32e1e90
mov eax, esi
pop edi
shr eax, 0x10
pop ebx
xor eax, esi
pop esi
pop ebp
ret
pop esi
xor eax, eax
pop ebp
ret
Function at 0x32e2150
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
test ebp, ebp
je 0x32e21cb
mov al, byte [ebp]
test al, al
je 0x32e21cb
push ebx
push edi
mov edi, 0x100
mov dword [esp + 0x14], edi
mov edi, edi
movsx eax, al
push eax
call fcn.03307e90
mov ebx, eax
add esp, 4
or ebx, edi
mov ecx, 0x20
mov edi, ebx
mov eax, esi
shr edi, 2
xor edx, edx
xor edi, ebx
and edi, 0xf
sub ecx, edi
call fcn.0338d650
mov ecx, edi
imul ebx, ebx
mov edi, dword [esp + 0x14]
lea ebp, [ebp + 1]
shl esi, cl
add edi, 0x100
or eax, esi
mov dword [esp + 0x14], edi
xor eax, ebx
mov esi, eax
mov al, byte [ebp]
test al, al
jne 0x32e2170
mov eax, esi
pop edi
shr eax, 0x10
pop ebx
xor eax, esi
pop esi
pop ebp
ret
pop esi
xor eax, eax
pop ebp
ret

Function at 0x32ecbb0
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.03318030
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.0338e5f0
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x32ecc56
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.032e05c0
push 0x33c0bb0
push esi
push 0x33dba10
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.032dffe0
add esp, 0x2c
call fcn.0339cb6e
cmp dword [eax], 2
je 0x32ecc3b
call fcn.0339cb6e
cmp dword [eax], 6
je 0x32ecc3b
push edi
push edi
push 2
push 0x6d
push 0x20
call fcn.032e05c0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push 0
push 0x80
push 0x6d
push 0x20
call fcn.032e05c0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x33db9d0
call fcn.032df330
mov esi, eax
add esp, 4
test esi, esi
jne 0x32ecc78
push edi
call fcn.0339d055
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x8000
push esi
call fcn.032ded70
push edi
push ebx
push 0x6a
push esi
call fcn.032deda0
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x32f7a80
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x32f7aa7
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
sub edi, eax
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or dl, cl
sub esi, 1
jne 0x32f7a96
pop edi
movzx eax, dl
pop esi
ret
Function at 0x32f7c10
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x208
call fcn.0338cac0
mov eax, dword [0x3415a34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x32f7c9d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x32f7c9d
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.03242a10
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0339575f
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [ebp - 0x208]
push 0
push ecx
test eax, eax
mov ecx, 0x200
cmovs eax, ecx
push eax
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x32f7de5
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x32f7ca5
sub ecx, edx
lea edi, [ecx + 1]
lea eax, [edi + edi]
call fcn.0338d670
mov esi, esp
test esi, esi
jne 0x32f7cc9
mov esi, str.no_stack_
jmp 0x32f7d53
push edi
push esi
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x32f7cf2
xor ecx, ecx
test edi, edi
je 0x32f7cf2
mov eax, dword [ebp + 8]
movsx ax, byte [ecx + eax]
mov word [esi + ecx*2], ax
inc ecx
cmp ecx, edi
jb 0x32f7ce1
xor ecx, ecx
test edi, edi
je 0x32f7d53
lea ebx, [ecx + 0x53]
jmp 0x32f7d00
cmp word [esi + ecx*2], 0x25
jne case.0x32f7d22.43
lea edx, [ecx + 1]
lea edx, [esi + edx*2]
lea ecx, [ecx]
movzx eax, word [edx]
add eax, 0xffffffd6
cmp eax, 0x49
ja case.0x32f7d22.43
movzx eax, byte [eax + 0x32f7e14]
jmp dword [eax*4 + 0x32f7dfc]
inc ecx
add edx, 2
jmp 0x32f7d10
mov word [esi + ecx*2 + 2], bx
jmp case.0x32f7d22.43
mov eax, 0x73
jmp 0x32f7d49
mov eax, 0x43
jmp 0x32f7d49
mov eax, 0x63
mov word [esi + ecx*2 + 2], ax
inc ecx
cmp ecx, edi
jb 0x32f7d00
lea eax, [ebp + 0xc]
push eax
push 0
push esi
lea eax, [ebp - 0x204]
push 0xff
push eax
call fcn.03242a10
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.033957e1
add esp, 0x1c
xor eax, eax
mov word [ebp - 6], ax
call fcn.032f7af0
test eax, eax
jle 0x32f7dcf
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x32f7de5
push 0
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x208]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x32f7de5
push 0x10
push str.OpenSSL:_FATAL
lea eax, [ebp - 0x204]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0338ca36
mov esp, ebp
pop ebp
ret
Function at 0x32fc590
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.0338cac0
mov ecx, dword [esp + 0xc]
xor edx, edx
push ebx
push ebp
push esi
mov esi, dword [ecx + 4]
xor ebp, ebp
mov eax, dword [ecx + 8]
dec esi
xor ebx, ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
test eax, eax
jle 0x32fc60c
mov ecx, dword [ecx]
mov dword [esp + 0xc], ecx
push edi
push dword [ecx]
mov eax, ebx
xor eax, esi
lea edi, [eax - 1]
not eax
shr edi, 0x1f
shr eax, 0x1f
and edi, eax
neg edi
call fcn.032fbe40
mov ecx, ebp
mov edx, edi
not edx
not ecx
and edx, ecx
and eax, edi
mov ecx, dword [esp + 0x14]
and edx, 0x20
add edx, dword [esp + 0x20]
inc ebx
add edx, eax
add ecx, 4
add esp, 4
mov dword [esp + 0x1c], edx
or ebp, edi
mov dword [esp + 0x10], ecx
cmp ebx, dword [esp + 0x14]
jl 0x32fc5c1
pop edi
not esi
lea eax, [esi - 1]
not esi
shr eax, 0x1f
shr esi, 0x1f
and eax, esi
pop esi
dec eax
pop ebp
and eax, edx
pop ebx
add esp, 8
ret
Function at 0x3308870
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
xor ecx, ecx
xor dl, dl
test edi, edi
je 0x33088da
mov eax, dword [esp + 0x14]
test eax, eax
je 0x33088da
movzx esi, byte [edi]
cmp dword [esp + 0x18], ecx
jne 0x330889f
cmp esi, 0x7f
jbe 0x33088d5
mov ecx, 1
lea ebp, [ecx + eax]
jmp 0x33088e1
or dl, 0xff
cmp esi, 0x80
jbe 0x33088b4
mov ecx, 1
lea ebp, [ecx + eax]
jmp 0x33088e1
jne 0x33088d5
xor edx, edx
lea esi, [edx + 1]
cmp eax, esi
jbe 0x33088cb
nop
movzx ecx, byte [esi + edi]
inc esi
or edx, ecx
cmp esi, eax
jb 0x33088c0
neg edx
sbb dl, dl
movzx ecx, dl
and ecx, 1
lea ebp, [ecx + eax]
jmp 0x33088e1
mov ebp, 1
xor eax, eax
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x330892d
mov esi, dword [esi]
test esi, esi
je 0x330892d
mov byte [esi], dl
push ebx
movzx edx, dl
lea ebx, [esi + ecx]
mov dword [esp + 0x14], edx
lea esi, [edi + eax]
and edx, 1
add ebx, eax
test eax, eax
je 0x3308926
mov edi, dword [esp + 0x14]
sub ebx, esi
mov edi, edi
movzx ecx, byte [esi - 1]
lea esi, [esi - 1]
xor ecx, edi
add edx, ecx
mov byte [ebx + esi], dl
shr edx, 8
sub eax, 1
jne 0x3308910
mov eax, dword [esp + 0x20]
pop ebx
add dword [eax], ebp
pop edi
pop esi
mov eax, ebp
pop ebp
ret

Function at 0x33089c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
push ebx
movzx ebx, byte [esp + 0x14]
push esi
mov esi, dword [esp + 0xc]
mov eax, ebx
push edi
mov edi, dword [esp + 0x14]
and eax, 1
add esi, edx
add edi, edx
test edx, edx
je 0x33089f9
movzx ecx, byte [edi - 1]
lea edi, [edi - 1]
xor ecx, ebx
lea esi, [esi - 1]
add eax, ecx
mov byte [esi], al
shr eax, 8
sub edx, 1
jne 0x33089e1
pop edi
pop esi
pop ebx
ret
Function at 0x339e14e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x3418a10]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x339e18e
cmp byte [ebx], 0xa
jne 0x339e18e
or byte [eax + edi + 0x28], 4
jmp 0x339e193
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x339e291
mov al, byte [edx]
cmp al, 0x1a
je 0x339e273
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x339e1c2
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x339e1e7
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x339e1f1
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x339e1a4
jmp 0x339e291
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x339e26e
cmp dword [ebp - 0xc], 0
je 0x339e26e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x3418a10]
test byte [eax + edi + 0x28], 0x48
je 0x339e248
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x339e233
mov byte [esi], dl
jmp 0x339e244
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x3418a10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x339e291
cmp byte [ebp - 1], 0xa
jne 0x339e257
cmp esi, ebx
jne 0x339e257
mov byte [esi], 0xa
jmp 0x339e290
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0339ca73
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x339e291
mov byte [esi], 0xd
jmp 0x339e290
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x3418a10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x339e28d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x339e291
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x339e29a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x3418a10]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x339e2dd
cmp word [esi], dx
jne 0x339e2dd
or byte [edi + eax + 0x28], 4
jmp 0x339e2e2
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x339e41b
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x339e3fb
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x339e324
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x339e35a
cmp eax, edx
jae 0x339e366
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x339e2fc
jmp 0x339e41b
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x339e3f7
cmp dword [ebp - 0x14], 0
je 0x339e3f7
mov eax, dword [ebx*4 + 0x3418a10]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x339e3cf
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x339e415
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x3418a10]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x3418a10]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x3418a10]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x339e418
pop ebx
cmp word [ebp - 4], bx
jne 0x339e3e0
cmp esi, dword [ebp + 0xc]
jne 0x339e3e0
mov word [esi], bx
jmp 0x339e418
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0339ca73
add esp, 0x10
cmp word [ebp - 4], bx
je 0x339e41b
push 0xd
jmp 0x339e414
mov ecx, dword [ebx*4 + 0x3418a10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x339e412
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x339e41b
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret