joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a8d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x6c]
mov edi, dword [esp + 0x70]
movzx eax, byte [edx]
and eax, 0xffffffdf
cmp al, 0x55
je 0x4a8e27
mov eax, dword [esp + 0x74]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
mov dword [esp + 4], ebx
xor ebx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0x60a880
mov dword [esp + 8], edx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
mov dword [esp], eax
call dbg.libunistring_mem_iconveha
test eax, eax
js 0x4a8e1d
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4a8f15
mov ebx, dword [esp + 0x78]
mov edx, dword [esp + 0x3c]
mov dword [ebx], edx
mov ebx, eax
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, byte [edx + 1]
and eax, 0xffffffdf
cmp al, 0x54
jne 0x4a8dad
movzx eax, byte [edx + 2]
and eax, 0xffffffdf
cmp al, 0x46
jne 0x4a8dad
cmp byte [edx + 3], 0x2d
jne 0x4a8dad
cmp byte [edx + 4], 0x38
jne 0x4a8dad
cmp byte [edx + 5], 0
jne 0x4a8dad
mov eax, dword [esp + 0x68]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dbg.u8_check
test eax, eax
jne 0x4a8f70
test edi, edi
je 0x4a8f88
test ebx, ebx
je 0x4a8fa7
xor esi, esi
mov ebp, esi
nop
mov eax, ebx
sub eax, ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
add eax, ebp
mov dword [esp], eax
call dbg.u8_mblen
test eax, eax
jle 0x4a8fb5
cmp eax, 1
mov dword [edi + ebp*4], ebp
lea esi, [ebp + 1]
je 0x4a8f40
lea ecx, [eax + ebp]
mov edx, esi
add edx, 1
cmp ecx, edx
mov dword [edi + edx*4 - 4], 0xffffffff
jne 0x4a8ec2
lea ebp, [eax + esi - 1]
cmp ebx, ebp
ja 0x4a8e90
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4a8f44
mov eax, dword [esp + 0x78]
cmp ebx, dword [eax]
ja 0x4a8f44
mov eax, dword [esp + 0x68]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [esp + 0x78]
mov dword [eax], ebx
mov ebx, dword [esp + 0x74]
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 1
call dbg.libunistring_rpl_malloc
test eax, eax
mov dword [esp + 0x38], eax
jne 0x4a8e11
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0xc
jmp 0x4a8e1d
mov ebp, esi
jmp 0x4a8ed5
mov eax, ebx
mov dword [esp], eax
call dbg.libunistring_rpl_malloc
test eax, eax
mov dword [esp + 0x74], eax
jne 0x4a8ee9
call dword [sym.imp.msvcrt.dll__errno]
xor ebx, ebx
mov dword [eax], 0xc
jmp 0x4a8e1d
call dword [sym.imp.msvcrt.dll__errno]
xor ebx, ebx
mov dword [eax], 0x2a
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x74]
test ecx, ecx
je 0x4a8f9c
mov eax, dword [esp + 0x78]
cmp ebx, dword [eax]
jbe 0x4a8ee9
test ebx, ebx
jne 0x4a8f44
mov eax, 1
jmp 0x4a8f46
mov edx, dword [esp + 0x74]
test edx, edx
jne 0x4a8ee9
jmp 0x4a8fa0
call sym._abort
nop
nop
nop
nop
nop
nop
Function at 0x4b7c2d
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jns 0x4b7c6a
call sym._wsa2errno
neg eax
jmp 0x4b7c6d
mov eax, dword [ebp - 0xc]
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_send]
call eax
sub esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jns 0x4b7cac
call sym._wsa2errno
neg eax
jmp 0x4b7caf
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x4cc0b3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x10], 1
je 0x4cc0eb
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], str.Unsupported_type_of_known_host_information_store
mov dword [esp + 4], 0xffffffdf
mov dword [esp], eax
call sym.__libssh2_error
jmp 0x4cc208
mov dword [esp + 4], 0x624978
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4cc129
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], str.Failed_to_open_file
mov dword [esp + 4], 0xfffffff0
mov dword [esp], eax
call sym.__libssh2_error
jmp 0x4cc208
mov eax, dword [ebp + 8]
add eax, 4
mov dword [esp], eax
call sym.__libssh2_list_first
mov dword [ebp - 0xc], eax
jmp 0x4cc1ed
mov dword [ebp - 0x81c], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x81c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x800
lea eax, [ebp - 0x818]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._knownhost_writeline
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4cc1f9
mov eax, dword [ebp - 0x81c]
mov edx, dword [ebp - 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
lea eax, [ebp - 0x818]
mov dword [esp], eax
call sym._fwrite
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x81c]
cmp dword [ebp - 0x18], eax
je 0x4cc1df
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 8], str.Write_failed
mov dword [esp + 4], 0xfffffff0
mov dword [esp], eax
call sym.__libssh2_error
mov dword [ebp - 0x10], eax
nop
jmp 0x4cc1fa
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym.__libssh2_list_next
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4cc13f
jmp 0x4cc1fa
nop
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x4d01e4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10c8
call fcn.005ac030
sub esp, eax
mov dword [ebp - 0x1078], 0x6379784f
mov dword [ebp - 0x1074], 0x6d6f7268
mov dword [ebp - 0x1070], 0x63697461
mov dword [ebp - 0x106c], 0x776f6c42
mov dword [ebp - 0x1068], 0x68736966
mov dword [ebp - 0x1064], 0x74617753
mov dword [ebp - 0x1060], 0x616e7944
mov dword [ebp - 0x105c], 0x6574696d
mov dword [ebp - 0x10], 0x40
lea eax, [ebp - 0x1058]
mov dword [esp], eax
call sym._Blowfish_initstate
mov eax, dword [ebp - 0x10]
movzx edx, ax
mov eax, dword [ebp - 0x10]
movzx eax, ax
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1058]
mov dword [esp], eax
call sym._Blowfish_expandstate
mov dword [ebp - 0xc], 0
jmp 0x4d02d3
mov eax, dword [ebp - 0x10]
movzx eax, ax
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1058]
mov dword [esp], eax
call sym._Blowfish_expand0state
mov eax, dword [ebp - 0x10]
movzx eax, ax
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1058]
mov dword [esp], eax
call sym._Blowfish_expand0state
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x3f
jle 0x4d0291
mov word [ebp - 0x109a], 0
mov dword [ebp - 0xc], 0
jmp 0x4d031b
lea eax, [ebp - 0x109a]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x20
lea eax, [ebp - 0x1078]
mov dword [esp], eax
call sym._Blowfish_stream2word
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x1098], edx
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 7
jle 0x4d02eb
mov dword [ebp - 0xc], 0
jmp 0x4d034e
mov dword [esp + 8], 4
lea eax, [ebp - 0x1098]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1058]
mov dword [esp], eax
call sym._blf_enc
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0x3f
jle 0x4d032a
mov dword [ebp - 0xc], 0
jmp 0x4d03d1
mov eax, dword [ebp - 0xc]
shl eax, 2
lea edx, [eax + 3]
mov eax, dword [ebp + 0x10]
add edx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x1098]
shr eax, 0x18
mov byte [edx], al
mov eax, dword [ebp - 0xc]
shl eax, 2
lea edx, [eax + 2]
mov eax, dword [ebp + 0x10]
add edx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x1098]
shr eax, 0x10
mov byte [edx], al
mov eax, dword [ebp - 0xc]
shl eax, 2
lea edx, [eax + 1]
mov eax, dword [ebp + 0x10]
add edx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x1098]
shr eax, 8
mov byte [edx], al
mov eax, dword [ebp - 0xc]
shl eax, 2
mov edx, eax
mov eax, dword [ebp + 0x10]
add edx, eax
mov eax, dword [ebp - 0xc]
mov eax, dword [ebp + eax*4 - 0x1098]
mov byte [edx], al
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 7
jle 0x4d035d
mov dword [esp + 4], 0x20
lea eax, [ebp - 0x1078]
mov dword [esp], eax
call sym.__libssh2_explicit_zero
mov dword [esp + 4], 0x20
lea eax, [ebp - 0x1098]
mov dword [esp], eax
call sym.__libssh2_explicit_zero
mov dword [esp + 4], 0x1048
lea eax, [ebp - 0x1058]
mov dword [esp], eax
call sym.__libssh2_explicit_zero
nop
leave
ret
Function at 0x4d1f60
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov eax, dword [ebp + 8]
mov edx, eax
mov ebx, 0x6255a0
mov eax, 0x412
mov edi, edx
mov esi, ebx
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
nop
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4d1ffd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x30
mov eax, dword [ebp + 0x10]
mov word [ebp - 0x28], ax
mov word [ebp - 0xe], 0
mov word [ebp - 6], 0
jmp 0x4d2066
movzx eax, word [ebp - 0x28]
lea edx, [ebp - 0xe]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._Blowfish_stream2word
mov dword [ebp - 0xc], eax
movzx ecx, word [ebp - 6]
movzx edx, word [ebp - 6]
mov eax, dword [ebp + 8]
add edx, 0x400
mov eax, dword [eax + edx*4]
xor eax, dword [ebp - 0xc]
mov edx, eax
mov eax, dword [ebp + 8]
add ecx, 0x400
mov dword [eax + ecx*4], edx
movzx eax, word [ebp - 6]
add eax, 1
mov word [ebp - 6], ax
cmp word [ebp - 6], 0x11
jbe 0x4d2019
mov word [ebp - 0xe], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov word [ebp - 6], 0
jmp 0x4d20d0
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._Blowfish_encipher
movzx ecx, word [ebp - 6]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add ecx, 0x400
mov dword [eax + ecx*4], edx
movzx eax, word [ebp - 6]
lea ecx, [eax + 1]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
add ecx, 0x400
mov dword [eax + ecx*4], edx
add word [ebp - 6], 2
cmp word [ebp - 6], 0x11
jbe 0x4d2089
mov word [ebp - 6], 0
jmp 0x4d2147
mov word [ebp - 8], 0
jmp 0x4d2134
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._Blowfish_encipher
movzx ebx, word [ebp - 6]
movzx ecx, word [ebp - 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
shl ebx, 8
add ecx, ebx
mov dword [eax + ecx*4], edx
movzx ecx, word [ebp - 6]
movzx eax, word [ebp - 8]
lea ebx, [eax + 1]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
shl ecx, 8
add ecx, ebx
mov dword [eax + ecx*4], edx
add word [ebp - 8], 2
cmp word [ebp - 8], 0xff
jbe 0x4d20e7
movzx eax, word [ebp - 6]
add eax, 1
mov word [ebp - 6], ax
cmp word [ebp - 6], 3
jbe 0x4d20df
nop
add esp, 0x30
pop ebx
pop ebp
ret
Function at 0x4d2694
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x1c
mov dword [ebp - 8], 0
jmp 0x4d27f1
mov dword [ebp - 0xc], 0
jmp 0x4d26d6
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
add eax, edx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
add edx, ecx
movzx ebx, byte [edx]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
add edx, ecx
movzx edx, byte [edx]
xor edx, ebx
mov byte [eax], dl
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 7
jbe 0x4d26b0
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x18
mov edx, eax
mov eax, dword [ebp + 0x10]
add eax, 1
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x10
or edx, eax
mov eax, dword [ebp + 0x10]
add eax, 2
movzx eax, byte [eax]
movzx eax, al
shl eax, 8
or edx, eax
mov eax, dword [ebp + 0x10]
add eax, 3
movzx eax, byte [eax]
movzx eax, al
or eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
add eax, 4
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x18
mov edx, eax
mov eax, dword [ebp + 0x10]
add eax, 5
movzx eax, byte [eax]
movzx eax, al
shl eax, 0x10
or edx, eax
mov eax, dword [ebp + 0x10]
add eax, 6
movzx eax, byte [eax]
movzx eax, al
shl eax, 8
or edx, eax
mov eax, dword [ebp + 0x10]
add eax, 7
movzx eax, byte [eax]
movzx eax, al
or eax, edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov dword [esp + 8], eax
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._Blowfish_encipher
mov eax, dword [ebp - 0x10]
shr eax, 0x18
mov edx, eax
mov eax, dword [ebp + 0x10]
mov byte [eax], dl
mov eax, dword [ebp + 0x10]
add eax, 1
mov edx, dword [ebp - 0x10]
shr edx, 0x10
mov byte [eax], dl
mov eax, dword [ebp + 0x10]
add eax, 2
mov edx, dword [ebp - 0x10]
shr edx, 8
mov byte [eax], dl
mov eax, dword [ebp + 0x10]
add eax, 3
mov edx, dword [ebp - 0x10]
mov byte [eax], dl
mov eax, dword [ebp + 0x10]
add eax, 4
mov edx, dword [ebp - 0x14]
shr edx, 0x18
mov byte [eax], dl
mov eax, dword [ebp + 0x10]
add eax, 5
mov edx, dword [ebp - 0x14]
shr edx, 0x10
mov byte [eax], dl
mov eax, dword [ebp + 0x10]
add eax, 6
mov edx, dword [ebp - 0x14]
shr edx, 8
mov byte [eax], dl
mov eax, dword [ebp + 0x10]
add eax, 7
mov edx, dword [ebp - 0x14]
mov byte [eax], dl
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
add dword [ebp + 0x10], 8
add dword [ebp - 8], 8
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x14]
jb 0x4d26a7
nop
add esp, 0x1c
pop ebx
pop ebp
ret

Function at 0x4d4320
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
call dbg._gcry_global_is_operational
test eax, eax
jne 0x4d4340
pop ebx
pop esi
pop edi
ret
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
pop ebx
pop esi
pop edi
jmp sym.__gcry_md_write
Function at 0x4d4d60
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x24
mov eax, dword [0x743384]
mov ebx, dword [esp + 0x30]
test eax, eax
je 0x4d4db0
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov edx, dword [0x743380]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp], edx
call eax
cmp ebx, 0x28
je 0x4d4ed8
cmp ebx, 0x32
je 0x4d4ed8
add esp, 0x24
pop ebx
pop esi
ret
cmp ebx, 0x1e
mov esi, dword [dbg.__acrt_iob_func]
je 0x4d4dfb
jle 0x4d4e52
cmp ebx, 0x32
je 0x4d4e21
cmp ebx, 0x64
je 0x4d4ea4
cmp ebx, 0x28
je 0x4d4e70
mov dword [esp], 2
mov esi, dword [dbg.__acrt_iob_func]
call esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x62677e
mov dword [esp], eax
call sym._fprintf
mov dword [esp], 2
call esi
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call sym._vfprintf
jmp 0x4d4d91
mov dword [esp], 2
mov esi, dword [dbg.__acrt_iob_func]
call esi
mov dword [esp + 8], 0xd
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x62676a
call sym._fwrite
jmp 0x4d4dfb
cmp ebx, 0xa
mov esi, dword [dbg.__acrt_iob_func]
je 0x4d4dfb
cmp ebx, 0x14
je 0x4d4dfb
test ebx, ebx
jne 0x4d4dd8
jmp 0x4d4dfb
mov dword [esp], 2
mov esi, dword [dbg.__acrt_iob_func]
call esi
mov dword [esp + 8], 7
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x626762
call sym._fwrite
jmp 0x4d4dfb
mov dword [esp], 2
mov esi, dword [dbg.__acrt_iob_func]
call esi
mov dword [esp + 8], 5
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x626778
call sym._fwrite
jmp 0x4d4dfb
mov dword [esp + 0x10], str.internal_error__fatal_or_bug_
mov dword [esp + 0xc], 1
mov dword [esp + 8], str._gcry_logv
mov dword [esp + 4], 0x8c
mov dword [esp], str.misc.c
call sym.__gcry_fips_signal_error
call dbg._gcry_secmem_term
call sym._abort
nop
Function at 0x4dd650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
mov eax, dword [ebx + 0x34]
cmp eax, 9
je 0x4dd700
jle 0x4dd6b0
cmp eax, 0xa
je 0x4dd693
cmp eax, 0xb
jne 0x4dd6d0
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
jmp dbg._gcry_cipher_ocb_set_nonce
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
jmp sym.__gcry_cipher_poly1305_setiv
cmp eax, 8
jne 0x4dd6d0
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
jmp dbg._gcry_cipher_ccm_set_nonce
mov ebp, dword [ebx + 0xc]
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x4dd720
add ebx, 0x200
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], ebx
call eax
add esp, 0x3c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
jmp dbg._gcry_cipher_gcm_setiv
mov eax, dword [ebp + 0x14]
lea edx, [ebx + 0x40]
mov dword [esp + 4], 0
mov dword [esp], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 8], eax
call sym._memset
test edi, edi
je 0x4dd7bc
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x2c]
cmp esi, eax
je 0x4dd797
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], str.WARNING:_cipher_setiv:_ivlen_u_blklen_u_n
call dbg._gcry_log_info
mov dword [esp + 0x10], str.IV_length_does_not_match_blocklength
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.cipher_setiv
mov dword [esp + 4], 0x2ea
mov dword [esp], str.cipher.c
call sym.__gcry_fips_signal_error
mov eax, dword [ebx + 0xc]
mov edx, dword [esp + 0x2c]
mov eax, dword [eax + 0x14]
cmp esi, eax
mov dword [esp + 4], edi
mov dword [esp], edx
cmova esi, eax
mov dword [esp + 8], esi
call sym._memcpy
or byte [ebx + 0x3c], 2
mov dword [ebx + 0x70], 0
jmp 0x4dd6ed
and byte [ebx + 0x3c], 0xfd
jmp 0x4dd7b0
Function at 0x4e13c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
test ebp, ebp
je 0x4e141f
nop
lea esi, [esi]
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x18]
mov edx, ebx
mov dword [esp], 1
add ebx, 8
add esi, 8
call dbg.tripledes_ecb_crypt
mov eax, dword [edi]
xor eax, dword [esp + 0x18]
mov edx, dword [ebx - 8]
mov dword [esi - 8], eax
mov eax, dword [edi + 4]
xor eax, dword [esp + 0x1c]
mov dword [edi], edx
mov edx, dword [ebx - 4]
mov dword [esi - 4], eax
sub ebp, 1
mov dword [edi + 4], edx
jne 0x4e13e0
mov dword [esp], 0x20
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dbg.__gcry_burn_stack
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4e14e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
test ebp, ebp
je 0x4e1539
nop
lea esi, [esi]
mov eax, dword [esp + 0x30]
mov edx, ebx
mov dword [esp], 0
mov ecx, ebx
add edi, 8
add esi, 8
call dbg.tripledes_ecb_crypt
mov eax, dword [esi - 8]
mov edx, dword [ebx]
xor edx, eax
mov dword [edi - 8], edx
mov dword [ebx], eax
mov edx, dword [ebx + 4]
mov eax, dword [esi - 4]
xor edx, eax
mov dword [edi - 4], edx
sub ebp, 1
mov dword [ebx + 4], eax
jne 0x4e1500
mov dword [esp], 0x20
call dbg.__gcry_burn_stack
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4e62e0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [esp + 0x70]
mov dword [eax], 0
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 0xc]
mov eax, 0x3f
add edx, 7
shr edx, 3
cmp edx, 0x20
je 0x4e6310
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x20
mov dword [esp], 2
call dbg._gcry_calloc_secure
mov edi, eax
xor eax, eax
test edi, edi
je 0x4e6429
mov dword [esp + eax + 0x30], 0
add eax, 4
cmp eax, 0x20
jb 0x4e6330
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call sym.__gcry_mpi_get_buffer
test eax, eax
mov ebp, eax
je 0x4e6421
mov eax, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], 0
cmp eax, 0x1f
ja 0x4e638c
mov edx, 0x20
sub edx, eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x10], 2
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov dword [esp], 0xa
mov dword [esp + 0x38], edx
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x44], 0
call dbg._gcry_md_hash_buffers
mov dword [esp], ebp
mov esi, eax
call dbg._gcry_free
test esi, esi
jne 0x4e6412
lea eax, [edi + 0x1f]
lea ebp, [edi + 0xf]
mov edx, edi
nop
movzx ecx, byte [edx]
movzx ebx, byte [eax]
sub eax, 1
add edx, 1
mov byte [edx - 1], bl
mov byte [eax + 1], cl
cmp eax, ebp
jne 0x4e63e0
movzx eax, byte [edi]
and byte [edi + 0x1f], 0xf8
and eax, 0x3f
or eax, 0x40
mov byte [edi], al
mov eax, dword [esp + 0x70]
mov dword [eax], edi
xor eax, eax
jmp 0x4e6308
mov dword [esp], edi
call dbg._gcry_free
mov eax, esi
jmp 0x4e6308
mov dword [esp], edi
call dbg._gcry_free
call dbg.gpg_err_code_from_syserror
jmp 0x4e6308
Function at 0x4ec050
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov ebp, edx
push esi
push ebx
mov esi, eax
mov edi, ecx
sub esp, 0x2c
mov eax, dword [eax]
mov edx, dword [eax + 8]
test edx, edx
je 0x4ec075
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x4ec0d3
test edi, edi
jne 0x4ec0fd
mov ebx, dword [eax + 0x10]
lea eax, [esi + 0xc]
mov dword [esp + 0x1c], eax
test ebx, ebx
jne 0x4ec09c
jmp 0x4ec0c4
mov eax, dword [ebx]
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp], edx
call dword [eax + 0x20]
mov ebx, dword [ebx + 4]
test ebx, ebx
je 0x4ec0c4
mov eax, dword [esi + 4]
lea edx, [ebx + 0x10]
test eax, eax
je 0x4ec085
mov ecx, dword [ebx]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], edx
mov dword [esp + 0x18], edx
mov dword [esp + 4], eax
call dword [ecx + 0x20]
mov edx, dword [esp + 0x18]
jmp 0x4ec085
mov dword [esi + 4], 0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esi + 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._fwrite
cmp eax, 1
jne 0x4ec124
test edi, edi
mov eax, dword [esi]
je 0x4ec075
mov eax, dword [eax + 8]
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], ebp
mov dword [esp + 0xc], eax
call sym._fwrite
cmp eax, 1
jne 0x4ec140
mov eax, dword [esi]
jmp 0x4ec075
mov dword [esp + 8], str.md_write
mov dword [esp + 4], 0x262
mov dword [esp], str.md.c
call dbg._gcry_bug
mov dword [esp + 8], str.md_write
mov dword [esp + 4], 0x264
mov dword [esp], str.md.c
call dbg._gcry_bug
lea esi, [esi]

Function at 0x4ecd50
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp dbg.md_write