joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51d930
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
xor edx, edx
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], 0
mov esi, dword [ecx + 4]
mov ebx, dword [ecx + 8]
dec esi
mov dword [ebp + 8], edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test ebx, ebx
jle 0x51d9aa
mov ecx, dword [ecx]
mov dword [ebp - 0xc], ecx
push edi
push dword [ecx]
xor eax, esi
lea ebx, [eax - 1]
not eax
shr ebx, 0x1f
shr eax, 0x1f
and ebx, eax
neg ebx
mov edi, ebx
or edi, dword [ebp - 4]
call fcn.0051d290
mov ecx, dword [ebp - 0xc]
mov edx, edi
not edx
mov dword [ebp - 4], edi
and edx, 0x20
and eax, ebx
add edx, dword [ebp + 8]
add ecx, 4
add edx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 8]
add esp, 4
inc eax
mov dword [ebp + 8], edx
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x10]
jl 0x51d960
pop edi
not esi
lea eax, [esi - 1]
not esi
shr eax, 0x1f
shr esi, 0x1f
and eax, esi
dec eax
pop esi
and eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5267c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, str.RANDFILE
push 0
push 0
push ebx
mov dword [ebp - 8], 1
call edi
mov esi, eax
test esi, esi
jne 0x526829
push eax
push eax
mov ebx, str.HOME
mov dword [ebp - 8], eax
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x526829
push eax
push eax
mov ebx, str.USERPROFILE
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x526829
push eax
push eax
mov ebx, str.SYSTEMROOT
push ebx
call edi
mov esi, eax
test esi, esi
je 0x526951
lea eax, [esi + esi]
call fcn.0060b200
mov eax, esp
push esi
push eax
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp eax, esi
jae 0x526951
mov ebx, dword [ebp - 0xc]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x526951
call fcn.0060b200
mov esi, esp
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x526951
test esi, esi
je 0x526951
cmp byte [esi], 0
je 0x526951
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5268a3
sub ecx, edx
cmp dword [ebp - 8], 0
je 0x5268e8
lea eax, [ecx + 1]
cmp eax, dword [ebp + 0xc]
jae 0x526951
mov ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x5268c5
mov eax, ebx
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6f7
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 6]
cmp eax, dword [ebp + 0xc]
jae 0x526951
mov ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x5268f7
lea edi, [ebx - 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x526907
mov ax, word [0x696624]
lea edx, [ebx - 1]
mov word [edi], ax
nop dword [eax]
mov al, byte [edx + 1]
lea edx, [edx + 1]
test al, al
jne 0x526920
mov ecx, dword [str..rnd]
mov eax, ebx
mov dword [edx], ecx
mov cl, byte [0x62f740]
mov byte [edx + 4], cl
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6f7
mov esp, ebp
pop ebp
ret
xor eax, eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6f7
mov esp, ebp
pop ebp
ret
Function at 0x526970
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x538], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x53c], edi
test esi, esi
jne 0x5269ad
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6f7
mov esp, ebp
pop ebp
ret
push ebx
push 0x693620
push edi
call fcn.00552d50
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x5269da
push 0x62
push str.....crypto_rand_randfile.c
push 0x79
push 0x6f
push 0x24
call fcn.005288a0
push edi
jmp 0x526b1f
lea eax, [ebp - 0x534]
push eax
push ebx
call fcn.005f21ab
add esp, 4
push eax
call fcn.005fbc05
add esp, 8
test eax, eax
jns 0x526a33
push 0x69
push str.....crypto_rand_randfile.c
push 0x71
push 0x6f
push 0x24
call fcn.005288a0
push edi
push str.Filename
push 2
call fcn.00528180
push ebx
call fcn.005e4ecd
add esp, 0x24
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6f7
mov esp, ebp
pop ebp
ret
test esi, esi
jns 0x526a4d
test dword [ebp - 0x52e], 0x8000
mov esi, 0x100
cmovne esi, dword [ebp - 0x520]
push 0
push ebx
call fcn.005fc44a
add esp, 8
test esi, esi
jle 0x526a6c
cmp esi, 0x500
mov eax, 0x400
cmovle eax, esi
jmp 0x526a71
mov eax, 0x500
push ebx
push eax
lea eax, [ebp - 0x504]
push 1
push eax
call fcn.005edda7
push ebx
mov edi, eax
call fcn.005e4e2c
add esp, 0x14
test eax, eax
je 0x526aa9
call fcn.005f071c
cmp dword [eax], 4
jne 0x526aa9
push ebx
call fcn.005fc39a
add esp, 4
test edi, edi
je 0x526a58
jmp 0x526aad
test edi, edi
je 0x526ae1
movd xmm0, edi
lea eax, [ebp - 0x504]
cvtdq2pd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
push edi
push eax
call fcn.00525c80
add dword [ebp - 0x538], edi
add esp, 0x10
test esi, esi
jle 0x526a6c
sub esi, edi
test esi, esi
jg 0x526a5c
lea eax, [ebp - 0x504]
push 0x500
push eax
call fcn.00537800
push ebx
call fcn.005e4ecd
add esp, 0xc
call fcn.00525e30
test eax, eax
jne 0x526b42
push 0xa6
push str.....crypto_rand_randfile.c
push 0x76
push 0x6f
push 0x24
call fcn.005288a0
push dword [ebp - 0x53c]
push str.Filename
push 2
call fcn.00528180
add esp, 0x20
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6f7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x538]
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.0049a6f7
mov esp, ebp
pop ebp
ret
Function at 0x52e510
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.005e1780
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov eax, 1
mov dword [esi + 8], 0x3070dd17
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
pop esi
pop ebp
ret

Function at 0x52e860
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.005e1780
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov eax, 1
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
pop esi
pop ebp
ret
Function at 0x52fa80
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x5c
push 0
push esi
call fcn.005e1780
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov eax, 1
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
pop ebp
ret
Function at 0x530dd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edi, dword [ebp + 8]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + 0x20]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.0051a760
add esp, 8
test esi, esi
jg 0x530e1a
push esi
call fcn.00531120
add esp, 4
test eax, eax
je 0x530e1a
push 0xa
push edi
call fcn.0051ae20
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x531df0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor edx, edx
test esi, esi
je 0x531e40
mov al, byte [esi]
test al, al
je 0x531e40
push edi
mov edi, 0x100
nop dword [eax]
movsx eax, al
lea esi, [esi + 1]
or eax, edi
add edi, 0x100
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol edx, cl
xor edx, eax
mov al, byte [esi]
test al, al
jne 0x531e10
mov eax, edx
shr eax, 0x10
pop edi
xor eax, edx
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x5320b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
je 0x53210a
mov al, byte [edi]
test al, al
je 0x53210a
push ebx
mov ebx, 0x100
nop word [eax + eax]
movsx eax, al
push eax
call fcn.00553080
or eax, ebx
lea edi, [edi + 1]
mov ecx, eax
add esp, 4
shr ecx, 2
add ebx, 0x100
xor ecx, eax
imul eax, eax
and ecx, 0xf
rol esi, cl
xor esi, eax
mov al, byte [edi]
test al, al
jne 0x5320d0
mov eax, esi
pop ebx
shr eax, 0x10
pop edi
xor eax, esi
pop esi
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
cmp dword [eax], 5
je 0x5393bd
push eax
push esi
call fcn.00539a80
add esp, 8
test eax, eax
jle 0x539403
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push esi
mov edi, eax
call fcn.0051a760
add esp, 8
test edi, edi
jg 0x539400
push edi
call fcn.00531120
add esp, 4
test eax, eax
je 0x539400
push 0xa
push esi
call fcn.0051ae20
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x540060
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
call fcn.0055b0e0
mov esi, eax
push esi
call fcn.0052fa80
add esp, 8
test eax, eax
jne 0x54007e
pop esi
pop ebp
ret
lea eax, [esi + 0x5c]
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp fcn.005d3c40

Function at 0x5465d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, dword [eax + 0x60]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [edx + 0x70]
mov dword [ebp - 4], edx
mov dword [ebp + 8], ecx
test esi, esi
je 0x546638
test edi, edi
je 0x546618
nop dword [eax]
cmp esi, 0x40
jae 0x546618
mov al, byte [esi + edx + 0x30]
inc esi
xor al, byte [ebx]
inc ebx
mov byte [ecx], al
inc ecx
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x546600
mov dword [edx + 0x70], esi
test edi, edi
je 0x5466e7
cmp esi, 0x40
jne 0x546638
mov dword [edx + 0x70], 0
add dword [edx + 0x20], 1
jne 0x546638
inc dword [edx + 0x24]
mov eax, edi
lea esi, [edx + 0x20]
and eax, 0x3f
mov dword [ebp - 0x10], esi
sub edi, eax
mov dword [ebp - 8], eax
mov eax, dword [esi]
cmp edi, 0x40
jb 0x54669d
nop
mov esi, edi
shr esi, 6
add eax, esi
mov dword [ebp - 0xc], eax
cmp eax, esi
jae 0x546667
sub esi, eax
mov dword [ebp - 0xc], 0
lea eax, [edx + 0x20]
shl esi, 6
push eax
push edx
push esi
push ebx
push ecx
call fcn.00587cb0
mov ecx, dword [ebp + 8]
sub edi, esi
mov eax, dword [ebp - 0xc]
add ecx, esi
mov edx, dword [ebp - 4]
add ebx, esi
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov dword [ebp + 8], ecx
mov dword [esi], eax
test eax, eax
jne 0x546698
inc dword [edx + 0x24]
cmp edi, 0x40
jae 0x546650
cmp dword [ebp - 8], 0
je 0x5466e7
push 0x40
lea edi, [edx + 0x30]
push 0
push edi
call fcn.005e1780
push esi
mov esi, dword [ebp - 4]
push esi
push 0x40
push edi
push edi
call fcn.00587cb0
mov eax, dword [ebp - 8]
add esp, 0x20
xor edi, edi
test eax, eax
je 0x5466e4
mov edx, dword [ebp + 8]
sub ebx, edx
nop
lea ecx, [edi + edx]
mov al, byte [ebx + ecx]
xor al, byte [esi + edi + 0x30]
inc edi
mov byte [ecx], al
mov eax, dword [ebp - 8]
cmp edi, eax
jb 0x5466d0
mov dword [esi + 0x70], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x547f40
Capabilities:
Encode data using xor

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6ba00c]
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 0x548149
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x548149
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.0040176a
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.005e854d
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [ebp - 0x20c]
push 0
push ecx
test eax, eax
mov ecx, 0x200
cmovs eax, ecx
push eax
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x548291
mov ebx, dword [ebp + 8]
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x548151
sub ecx, edx
lea esi, [ecx + 1]
lea eax, [esi + esi]
call fcn.0060b200
mov edi, esp
test edi, edi
jne 0x548175
mov edi, str.no_stack_
jmp 0x5481ff
push esi
push edi
push esi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x5481a1
xor ecx, ecx
test esi, esi
je 0x5481a1
nop dword [eax]
mov eax, dword [ebp + 8]
movsx ax, byte [ecx + eax]
mov word [edi + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x548190
xor edx, edx
test esi, esi
je 0x5481ff
lea ebx, [edx + 0x53]
nop word [eax + eax]
cmp word [edi + edx*2], 0x25
jne case.0x5481d2.43
lea ecx, [edx + 1]
lea ecx, [edi + ecx*2]
nop dword [eax]
movzx eax, word [ecx]
add eax, 0xffffffd6
cmp eax, 0x49
ja case.0x5481d2.43
movzx eax, byte [eax + 0x5482c0]
jmp dword [eax*4 + 0x5482a8]
inc edx
add ecx, 2
jmp 0x5481c0
mov word [ecx], bx
jmp case.0x5481d2.43
mov eax, 0x73
jmp 0x5481f7
mov eax, 0x43
jmp 0x5481f7
mov eax, 0x63
mov word [ecx], ax
inc edx
cmp edx, esi
jb 0x5481b0
lea eax, [ebp + 0xc]
push eax
push 0
push edi
lea eax, [ebp - 0x208]
push 0xff
push eax
call fcn.0040176a
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.005e8595
add esp, 0x1c
xor eax, eax
mov word [ebp - 0xa], ax
call fcn.00547fa0
test eax, eax
jle 0x54827b
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x548291
push 0
lea eax, [ebp - 0x208]
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x20c]
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 0x548291
push 0x10
push str.OpenSSL:_FATAL
lea eax, [ebp - 0x208]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6f7
mov esp, ebp
pop ebp
ret
Function at 0x54f900
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov eax, esi
sub eax, ebx
je 0x54f943
sub eax, 2
je 0x54f943
sub eax, 0x15
je 0x54f943
push 0x297
push str.....crypto_bio_b_addr.c
push 0x83
push 0x8f
push 0x20
call fcn.005288a0
add esp, 0x14
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00552f20
cmp eax, 1
jne 0x54f93b
mov eax, dword [ebp + 0x18]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
push edi
xor edi, edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], esi
movups xmmword [ebp - 0x10], xmm0
test esi, esi
jne 0x54f979
or eax, 0x400
mov dword [ebp - 0x20], eax
cmp dword [ebp + 0x10], 1
jne 0x54f985
or eax, 1
mov dword [ebp - 0x20], eax
push dword [ebp + 0x20]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
je 0x54f9d5
nop
cmp esi, 8
je 0x54fa1a
mov eax, dword [ebp - 0x20]
test eax, 0x400
je 0x54f9e3
push dword [ebp + 0x20]
and eax, 0xfffffbff
mov edi, esi
or eax, 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
test esi, esi
jne 0x54f9a0
mov ebx, 1
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2da
push str.....crypto_bio_b_addr.c
push 2
push 0x8f
push 0x20
call fcn.005288a0
test edi, edi
cmovne esi, edi
push esi
call fcn.0054fe20
push eax
push 1
call fcn.00528180
add esp, 0x20
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x2cb
push str.....crypto_bio_b_addr.c
push 0x41
push 0x8f
push 0x20
call fcn.005288a0
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54fc10
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x6ba00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
call fcn.00552f20
cmp eax, 1
jne 0x54fd03
push 0x401
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.005e1780
mov eax, dword [ebp + 0xc]
add esp, 0xc
neg eax
mov byte [ebp - 0x24], 0
xorps xmm0, xmm0
mov dword [ebp - 0xb], 0
sbb eax, eax
movq qword [ebp - 0x13], xmm0
and eax, 0xa
mov word [ebp - 7], 0
push eax
push 0x20
lea eax, [ebp - 0x24]
mov byte [ebp - 5], 0
push eax
push 0x401
lea eax, [ebp - 0x428]
push eax
push ebx
movups xmmword [ebp - 0x23], xmm0
call fcn.0054f8b0
add esp, 4
push eax
push ebx
call fcn.004b03b0
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x54fd16
push 0xdb
push str.....crypto_bio_b_addr.c
push 2
push 0x86
push 0x20
call fcn.005288a0
add esp, 0x14
push 0
push 0x400
push 0x6c8fa0
push 0x400
push dword [ebp - 0x42c]
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0x6c8fa0
push 1
call fcn.00528180
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6f7
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x24], 0
jne 0x54fd46
push ebx
call fcn.0054f860
add esp, 4
movzx eax, ax
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
push 0x693640
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0051b7f0
add esp, 0x10
test edi, edi
je 0x54fd65
push 0xed
lea eax, [ebp - 0x428]
push str.....crypto_bio_b_addr.c
push eax
call fcn.005304d0
add esp, 0xc
mov dword [edi], eax
test esi, esi
je 0x54fd81
push 0xef
lea eax, [ebp - 0x24]
push str.....crypto_bio_b_addr.c
push eax
call fcn.005304d0
add esp, 0xc
mov dword [esi], eax
test edi, edi
je 0x54fd8a
cmp dword [edi], 0
je 0x54fd93
test esi, esi
je 0x54fdfd
cmp dword [esi], 0
jne 0x54fdfd
test edi, edi
je 0x54fdb1
push 0xfe
push str.....crypto_bio_b_addr.c
push dword [edi]
call fcn.00519f90
add esp, 0xc
mov dword [edi], 0
test esi, esi
je 0x54fdcf
push 0x102
push str.....crypto_bio_b_addr.c
push dword [esi]
call fcn.00519f90
add esp, 0xc
mov dword [esi], 0
push 0x105
push str.....crypto_bio_b_addr.c
push 0x41
push 0x86
push 0x20
call fcn.005288a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a6f7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a6f7
mov esp, ebp
pop ebp
ret
Function at 0x551900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00551a50

Function at 0x551910
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x30
mov eax, 1
pop ebp
ret
Function at 0x552270
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0xf3bcc908
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x40
mov eax, 1
pop ebp
ret
Function at 0x552fa0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x552fd8
push 0xc3
push 0x64e450
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.005288a0
add esp, 0x14
mov eax, esi
pop esi
pop ebp
ret

Function at 0x555ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x84], 0xffffffff
jne 0x555ee5
xor eax, eax
pop edi
pop ebp
ret
push ebx
push esi
push dword [edi]
call fcn.005330d0
mov ecx, dword [ebp + 0x10]
add esp, 4
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov dword [ecx], esi
test ebx, ebx
je 0x555f99
mov ecx, dword [edi + 0x84]
cmp ecx, esi
jne 0x555f36
test esi, esi
jle 0x555f77
mov edx, ebx
lea ecx, [edi + 4]
mov ebx, esi
nop dword [eax + eax]
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x555f20
jmp 0x555f74
sub eax, ecx
mov byte [ecx + edi + 0x64], 0x80
cmp eax, 1
jle 0x555f54
dec eax
push eax
lea eax, [edi + 0x65]
add eax, ecx
push 0
push eax
call fcn.005e1780
add esp, 0xc
test esi, esi
jle 0x555f77
mov edx, ebx
lea ecx, [edi + 0x24]
mov ebx, esi
nop
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x555f60
mov ebx, dword [ebp + 0xc]
push esi
push ebx
push ebx
push dword [edi]
call fcn.00533680
add esp, 0x10
test eax, eax
jne 0x555f99
push esi
push ebx
call fcn.00537800
add esp, 8
xor eax, eax
pop esi
pop ebx
pop edi
pop ebp
ret
pop esi
pop ebx
mov eax, 1
pop edi
pop ebp
ret