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

Disassembly:
sub esp, 0x20c
mov eax, dword [0x8606e0]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push esi
mov esi, dword [esp + 0x218]
push edi
cmp dword [esi + 0x2f8], 3
jne 0x4e3c2a
cmp byte [esi + 0x516], 0
jne 0x4e3c2a
cmp byte [esi + 0x529], 0
jne 0x4e3c2a
mov edi, dword [esp + 0x220]
lea eax, [esp + 0xc]
mov ebx, dword [esi]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x10], 0x80
push eax
push edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4e3aa1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push esi
call fcn.004d2570
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004e2270
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004ccd8f
add esp, 0x20c
ret
push 0x80
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push 0
push eax
call fcn.0062ff20
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4e3b15
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push esi
call fcn.004d2570
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004e2270
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004ccd8f
add esp, 0x20c
ret
lea eax, [esi + 0x3a0]
push eax
lea edi, [esi + 0x372]
push edi
push dword [esp + 0x14]
lea eax, [esp + 0xa0]
push eax
call fcn.004e2c20
add esp, 0x10
test al, al
jne 0x4e3b86
call fcn.00633019
mov esi, eax
call fcn.00633019
mov edi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push dword [esi]
call fcn.004d2570
push eax
push dword [edi]
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004e2270
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004ccd8f
add esp, 0x20c
ret
movups xmm0, xmmword [edi]
mov eax, dword [edi + 0x28]
movups xmmword [esi + 0x2c4], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x2d4], xmm0
movq xmm0, qword [edi + 0x20]
movq qword [esi + 0x2e4], xmm0
mov dword [esi + 0x2ec], eax
mov ax, word [edi + 0x2c]
mov word [esi + 0x2f0], ax
lea eax, [esi + 0x3d4]
push eax
lea eax, [esi + 0x3a4]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
call fcn.004e2c20
add esp, 0x10
test al, al
jne 0x4e3c2a
call fcn.00633019
mov esi, eax
call fcn.00633019
mov edi, eax
lea eax, [esp + 0x114]
push 0x100
push eax
push dword [esi]
call fcn.004d2570
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.004e2270
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004ccd8f
add esp, 0x20c
ret
push esi
call fcn.004e3630
mov ecx, dword [esp + 0x218]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ccd8f
add esp, 0x20c
ret
Function at 0x4e4aa0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x4e4aba
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x788800
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x788810
push esi
call fcn.0064c5e0
add esp, 8
test eax, eax
je 0x4e4b02
test ebp, ebp
je 0x4e4af3
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4e4b28
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e4b28
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4e4bf7
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e4b45
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x860704]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4e4bed
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4e4bed
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e4b86
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e4ba1
sub ecx, edx
sar ecx, 1
lea ecx, [ebx + ecx*2]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x4e4bb5
test ebp, ebp
je 0x4e4be4
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x860708]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x860708]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x4ea420
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x568], 2
jne 0x4ea436
mov dword [esp + 4], eax
jmp fcn.004ea3d0
mov al, 1
ret

Function at 0x4eae10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
cmp byte [eax + 0x52d], 0
je 0x4eae26
mov dword [esp + 4], eax
jmp fcn.0050e880
mov dword [esp + 4], eax
jmp fcn.004d82c0
Function at 0x4efdf0
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
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x8606e0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x48]
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x18], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x4effd5
xorps xmm0, xmm0
mov eax, 2
movups xmmword [esp + 0x14], xmm0
push 0x7f000001
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4effc3
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4effc3
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4effc3
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x4effc3
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x4effc3
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4effc3
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x4effc3
push ebx
push 0x8234f0
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.004e5e60
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4eff21
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x4effc3
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x4effc3
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x4eff76
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4eff7b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4eff65
cmp esi, 0xfffffffc
je 0x4effa8
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4effc3
cmp esi, 0xfffffffd
je 0x4effa8
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4effc3
cmp esi, 0xfffffffe
je 0x4effa8
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4effc3
cmp esi, 0xffffffff
je 0x4effa8
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4effc3
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004ccd8f
add esp, 0x34
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ccd8f
add esp, 0x34
ret
Function at 0x4f4b20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1cc
mov eax, dword [0x8606e0]
xor eax, esp
mov dword [esp + 0x1c8], eax
cmp byte [0x877b48], 0
push ebx
mov ebx, dword [esp + 0x1d4]
mov dword [esp + 0x18], ebx
jne 0x4f4b59
call fcn.00523720
test eax, eax
je 0x4f4b71
mov byte [0x877b48], 1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.004ccd8f
add esp, 0x1cc
ret
mov eax, dword [ebx + 0xa00]
test eax, eax
je 0x4f4b92
push 0x400
push eax
call fcn.00524230
add esp, 8
call fcn.00523720
test eax, eax
jne 0x4f4b59
push ebp
push esi
push edi
nop word [eax + eax]
mov esi, 2
mov dword [esp + 0x18], 4
lea eax, [esp + 0x98]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
nop dword [eax]
lea eax, [esp + 0x48]
push eax
call fcn.004e9bf0
push 0
push 1
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x44], xmm0
movups xmmword [esp + 0x34], xmm0
call fcn.004f1880
movups xmm1, xmmword [esp + 0x44]
add esp, 0xc
lea ecx, [esi - 1]
movaps xmm0, xmm1
psrldq xmm0, 4
movd eax, xmm0
push eax
movd eax, xmm1
push eax
push 0
push ecx
call fcn.004cd930
imul esi, dword [esp + 0x30]
mov ebx, eax
lea eax, [esp + 0x58]
mov ebp, edx
push eax
mov dword [esp + 0x20], esi
call fcn.004e9bf0
mov eax, dword [eax + 8]
cdq
mov esi, eax
mov edi, edx
lea eax, [esp + 0x6c]
push eax
call fcn.004e9bf0
mov edx, dword [esp + 0x18]
add esp, 8
inc edx
mov dword [esp + 0x20], edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, esi
push 0
push edx
adc eax, edi
push eax
push ecx
call fcn.004cd930
shld edx, eax, 8
shl eax, 8
xor ebp, edx
xor ebx, eax
mov dword [esp + 0x2c], ebp
lea eax, [esp + 0x78]
mov dword [esp + 0x28], ebx
push eax
call fcn.004e9bf0
lea esi, [eax + 8]
lea eax, [esp + 0x8c]
push eax
call fcn.004e9bf0
add esp, 8
mov ecx, dword [eax]
add ecx, dword [esi]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
add eax, 2
imul ecx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], esi
shl ecx, 0x10
xor eax, ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
movups xmm0, xmmword [esp + 0x28]
movups xmmword [eax], xmm0
add eax, 0x10
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], eax
jne 0x4f4bc0
movsd xmm0, qword [0x78c8c0]
lea eax, [esp + 0x98]
sub esp, 8
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.00523550
add esp, 0x10
call fcn.00523720
test eax, eax
je 0x4f4ba0
lea eax, [esp + 0xd8]
mov byte [esp + 0xd8], 0
push 0x100
push eax
call fcn.00524070
add esp, 8
cmp byte [esp + 0xd8], 0
pop edi
pop esi
pop ebp
je 0x4f4d39
lea eax, [esp + 0xcc]
push 0x400
push eax
call fcn.00524230
add esp, 8
call fcn.00523720
test eax, eax
jne 0x4f4b59
push str.libcurl_is_now_using_a_weak_random_seed__n
push dword [esp + 0x1c]
call fcn.004e2350
add esp, 8
call fcn.00523720
mov ecx, dword [esp + 0x1cc]
neg eax
pop ebx
sbb eax, eax
xor ecx, esp
and eax, 0xffffffdd
add eax, 0x23
call fcn.004ccd8f
add esp, 0x1cc
ret
Function at 0x4f9890
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x86070c]
mov edi, eax
add esp, 8
test edi, edi
je 0x4f9867
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x4f987f
cmp esi, ebx
je 0x4f987f
cmp esi, 0x8000
ja 0x4f987f
cmp esi, ebx
jb 0x4f9878
push esi
push edi
call dword [0x86070c]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4f9830
push ebp
call dword [0x860708]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x860708]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
jmp 0x4f9810

Function at 0x4fc4a0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x420]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4fc4ec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004e2270
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.004fbda0
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4fc630
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x1c], 0x1f
mov eax, dword [esp + 0x18]
push ebx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebx, dword [eax + 0x138]
jne 0x4fc789
push ebp
push edi
lea ebp, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], ebp
cmp ebp, edi
jae 0x4fc669
mov byte [ebp], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4fc674
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4fc67f
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
mov word [esp + 0x14], ax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [edi]
mov word [esp + 0x1c], ax
cmp ecx, edi
jae 0x4fc6b2
mov al, byte [esp + 0x14]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x4fc6c0
mov al, byte [esp + 0x15]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x4fc6ce
mov al, byte [esp + 0x1c]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x4fc6dc
mov al, byte [esp + 0x1d]
mov byte [ecx], al
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4fc6e7
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4fc6f2
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1eb4], eax
sub eax, ebp
sub eax, 2
mov dword [edi], ebp
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.004fbeb0
mov edi, dword [esp + 0x38]
add esp, 0x10
push 0
push 3
push ebp
push dword [edi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x4fc748
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004e2270
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push edi
call fcn.004fc510
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [edi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4fc786
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004e2270
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x52ed40
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x20
call fcn.004cda10
push ebx
push esi
mov esi, dword [esp + 0x38]
xor ebx, ebx
mov eax, esi
sub eax, ebx
je 0x52ed88
sub eax, 2
je 0x52ed88
sub eax, 0x15
je 0x52ed88
push 0x293
push str.crypto_bio_b_addr.c
push 0x83
push 0x8f
push 0x20
call fcn.00526950
add esp, 0x14
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
call fcn.0052eb10
cmp eax, 1
jne 0x52ed80
mov eax, dword [esp + 0x3c]
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
push ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
push edi
xor edi, edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], esi
movups xmmword [esp + 0x20], xmm0
test esi, esi
jne 0x52edc8
or eax, 0x400
mov dword [esp + 0x10], eax
cmp dword [esp + 0x3c], 1
jne 0x52edd6
or eax, 1
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x4c]
lea eax, [esp + 0x10]
push ebp
push eax
push dword [esp + 0x40]
push dword [esp + 0x40]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x52ee2c
cmp esi, 8
je 0x52ee73
mov eax, dword [esp + 0x10]
test eax, 0x400
je 0x52ee3b
and eax, 0xfffffbff
mov edi, esi
or eax, 4
push ebp
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x40]
push dword [esp + 0x40]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
jne 0x52edf4
mov ebx, 1
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
push 0x2d6
push str.crypto_bio_b_addr.c
push 2
push 0x8f
push 0x20
call fcn.00526950
test edi, edi
cmovne esi, edi
push esi
call fcn.0052f2d0
push eax
push 1
call fcn.00526140
add esp, 0x20
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret
push 0x2c7
push str.crypto_bio_b_addr.c
push 0x41
push 0x8f
push 0x20
call fcn.00526950
add esp, 0x14
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
add esp, 0x20
ret

Function at 0x535cb0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor dl, dl
test esi, esi
je 0x535cd7
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 0x535cc6
pop edi
movzx eax, dl
pop esi
ret
Function at 0x619ae4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x64f2c8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0064f147

Function at 0x65767b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0065733b

Function at 0x663278
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
shr eax, 0x10
xor eax, dword [ebp + 8]
imul ecx, eax, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
pop ebp
ret

Function at 0x6632a0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push esi
shr edx, 2
xor esi, esi
test edx, edx
je 0x6632db
push edi
mov edi, dword [ebp + 8]
imul eax, dword [edi + esi*4], 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor eax, ecx
rol eax, 0xd
imul ecx, eax, 5
sub ecx, 0x19ab949c
inc esi
cmp esi, edx
jb 0x6632b7
pop edi
xor ecx, dword [ebp + 0xc]
push ecx
call fcn.00663278
pop ecx
pop esi
pop ebp
ret

Function at 0x67ad71
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jle 0x67ade5
cmp dword [ebp + 0x14], 0
je 0x67ad93
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0067ae69
jmp 0x67ade5
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
sub eax, edi
mov dword [ebp + 0x14], eax
movzx esi, byte [eax + edi + 3]
mov ecx, dword [edi]
inc esi
mov edx, ecx
mov eax, ecx
and edx, 0xff00ff
shr eax, 8
imul edx, esi
and eax, 0xffff00ff
imul eax, esi
shr ecx, 8
shr edx, 8
xor edx, eax
mov eax, 0xff00ff
and ecx, eax
and edx, eax
mov eax, dword [ebp + 0x14]
imul ecx, esi
xor edx, ecx
mov dword [edi], edx
lea edi, [edi + 4]
sub ebx, 1
jne 0x67ada0
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x67adea
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jle 0x67ae64
cmp dword [ebp + 0x14], 0
je 0x67ae0c
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0067ae69
jmp 0x67ae64
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
sub eax, ebx
push esi
mov dword [ebp + 0x14], eax
movzx eax, byte [eax + ebx + 3]
mov esi, 0x100
mov ecx, dword [ebx]
sub esi, eax
mov edx, ecx
mov eax, ecx
and edx, 0xff00ff
shr eax, 8
imul edx, esi
and eax, 0xffff00ff
imul eax, esi
shr ecx, 8
shr edx, 8
xor edx, eax
mov eax, 0xff00ff
and ecx, eax
and edx, eax
mov eax, dword [ebp + 0x14]
imul ecx, esi
xor edx, ecx
mov dword [ebx], edx
lea ebx, [ebx + 4]
sub edi, 1
jne 0x67ae19
pop esi
pop ebx
pop edi
pop ebp
ret 0x10
Function at 0x67d059
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x8606e0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.0067d0bb
push 1
call fcn.0063370b
push eax
call fcn.0063336f
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x808]
push 0x800
push eax
call fcn.0067d0d9
add esp, 0x20
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ccd8f
mov esp, ebp
pop ebp
ret
Function at 0x694385
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push 0x14
push esi
lea eax, [edi + 4]
push eax
call fcn.0062f5d0
add esp, 0xc
xor edx, edx
push 5
pop ecx
add edx, dword [esi]
lea esi, [esi + 4]
imul edx, edx, 0x401
mov eax, edx
shr eax, 6
xor edx, eax
sub ecx, 1
jne 0x6943a3
imul ecx, edx, 9
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
mov dword [edi], eax
pop edi
pop esi
pop ebp
ret 4

Function at 0x696440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x84]
mov dword [ebp - 8], ecx
mov ecx, dword [edi + 0x8c]
mov ebx, dword [eax + 0x5c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ebx
call fcn.00672d2b
mov esi, dword [ebp + 8]
xor esi, dword [ebp + 0xc]
and esi, 1
mov dword [ebp - 4], eax
shl esi, 8
cmp byte [edi + 0x88], 2
je 0x69655e
movd xmm0, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
cvtdq2ps xmm0, xmm0
push eax
push ecx
push ecx
lea ebx, [edi + 0x5c]
addss xmm0, dword [0x762abc]
movss dword [esp + 4], xmm0
movd xmm0, dword [ebp + 8]
cvtdq2ps xmm0, xmm0
addss xmm0, dword [0x762abc]
movss dword [esp], xmm0
push ebx
call dword [ebp - 8]
movss xmm0, dword [ebp - 0x18]
add esp, 0x10
cmp byte [edi + 0x88], 1
movss xmm1, dword [0x7ff31c]
mulss xmm0, xmm1
cvttss2si eax, xmm0
mov dword [ebp - 8], eax
jne 0x696503
movd xmm0, dword [ebp + 0xc]
lea eax, [ebp + 8]
push 0
cvtdq2ps xmm0, xmm0
push eax
push ecx
mov ecx, ebx
movss dword [esp], xmm0
call fcn.00660883
mov edi, dword [ebp + 8]
jmp 0x69650f
movss xmm0, dword [ebx]
mulss xmm0, xmm1
cvttss2si edi, xmm0
mov eax, edi
mov ecx, 0x6967f4
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x10
jge 0x696527
mov ecx, 0x696830
jmp 0x696543
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x58], 0
jne 0x696537
mov ecx, 0x6965fd
jmp 0x696543
cmp dword [eax + 0x58], 2
mov edx, 0x6967b3
cmove ecx, edx
push dword [ebp + 0x14]
push esi
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp - 8]
push edi
push dword [ebp - 0x10]
call ecx
add esp, 0x1c
jmp 0x6965f4
movd xmm0, dword [ebp + 8]
lea ecx, [edi + 0x5c]
movd xmm1, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp - 4]
cvtdq2ps xmm0, xmm0
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0xc], eax
cvtdq2ps xmm1, xmm1
movss dword [ebp + 8], xmm0
movss dword [ebp - 0x10], xmm1
lea eax, [ebp - 0x18]
push eax
push ecx
push ecx
movss dword [esp + 4], xmm1
movss dword [esp], xmm0
push ecx
call dword [ebp - 8]
movss xmm0, dword [ebp - 0x18]
mulss xmm0, dword [0x7ff31c]
cvttss2si eax, xmm0
push eax
call ebx
mov ecx, dword [ebp + 0xc]
add esp, 0x14
movss xmm0, dword [ebp + 8]
addss xmm0, dword [0x76db84]
movss xmm1, dword [ebp - 0x10]
shr eax, 8
add eax, esi
xor esi, 0x100
movss dword [ebp + 8], xmm0
mov ax, word [edi + eax*2]
mov word [ecx], ax
add ecx, 2
sub dword [ebp + 0x14], 1
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 0xc]
jne 0x69658d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10