joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x450067
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x45006a
mov esi, dword [ebp + 8]
test esi, esi
je 0x45021d
call fcn.00452550
test eax, eax
je 0x450115
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 0x14]
push 0
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x450211
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x4500b9
cmp eax, 2
je 0x4500b9
cmp eax, 6
je 0x4500b9
cmp eax, 7
jne 0x450211
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
call fcn.0045795c
mov edx, dword [ebp + 0xc]
mov ebx, eax
xor eax, eax
mov edi, ebx
lea ecx, [edx + 2]
add esp, 4
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x4501fc
mov ecx, dword [ebp + 0x18]
call fcn.00441160
cmp esi, dword [ebp + 8]
je 0x4501e6
jmp 0x4501df
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x450121
mov dword [ebp + 0x10], eax
jmp 0x450156
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.00411580
mov edx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x10], edi
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x450211
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x450190
cmp eax, 2
je 0x450190
cmp eax, 6
je 0x450190
cmp eax, 7
jne 0x450211
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call fcn.0045795c
mov ecx, dword [ebp + 0xc]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x4501fc
mov ecx, dword [ebp + 0x18]
call fcn.00441230
cmp esi, dword [ebp + 8]
je 0x4501e6
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00457985
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.00457985
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x474d8c
call fcn.00441160
cmp esi, dword [ebp + 8]
je 0x45021d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x450c60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x471b48
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x450cb6
lea ecx, [ebp + 0x14]
mov ebx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp + 0xc]
or ecx, 0x20006
push edx
push 0
push ecx
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x450cbb
mov esi, dword [ebp + 8]
mov ebx, esi
test esi, esi
je 0x450daa
call fcn.00452550
test eax, eax
je 0x450d0a
mov edi, dword [ebp + 0x18]
push edi
call fcn.00410abb
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0x10]
push edx
push edi
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x450d9f
cmp esi, ebx
je 0x450d00
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x450dac
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x450d15
xor edi, edi
jmp 0x450d4a
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.00411580
mov ecx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push edx
call fcn.0043aee0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x450d90
cmp esi, ebx
je 0x450d7a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0043b6f0
mov eax, 1
jmp 0x450dac
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.0043b6f0
cmp esi, ebx
je 0x450daa
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451a20
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x451b9d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x451b7c
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x451a76
mov eax, 0x104
mov dword [esp + 0x1c], eax
lea edx, [eax + eax + 2]
push edx
call fcn.0045795c
mov esi, eax
add esp, 4
test esi, esi
je 0x451b9d
mov eax, dword [esp + 0x1c]
mov edi, esi
lea ecx, [eax + eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x451b94
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x451b94
mov edi, dword [esp + 0x20]
test edi, edi
je 0x451b94
push ebp
push edi
call fcn.00451a20
add esp, 8
test eax, eax
je 0x451b89
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x48c414]
test eax, eax
je 0x451b25
test ebp, ebp
je 0x451b25
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x451b94
jmp 0x451b31
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x451b94
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x451b73
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + edx + 2]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x451b94
mov eax, dword [esp + 0x14]
jmp 0x451ace
push esi
call fcn.00457985
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x451b94
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00457985
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x4592d0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x459308
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045c791
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045c768
jmp 0x459314
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45b0d5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45b117
call fcn.00467fe9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x45b117
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45b10e
xor eax, eax
jmp 0x45b11f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045b125
pop edi
pop esi
pop ebx
ret 4
Function at 0x50127701
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
imul eax, eax, 8
add eax, dword [ebp - 0x20]
add eax, 0x78
mov eax, dword [eax]
add eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x20]
add eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x24]
add eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x18]
cmp eax, edx
jb 0x5012776e
jmp 0x501277c0
mov eax, 1
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
jmp 0x50127752
mov eax, dword [ebp - 0xc]
imul eax, eax, 4
add eax, dword [ebp - 0x18]
mov eax, dword [eax]
add eax, dword [ebp + 8]
mov dword [ebp - 8], eax
add esp, 0xfffffff8
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
mov eax, dword [ebp - 8]
mov dword [esp + 4], eax
call fcn.50127698
mov dword [ebp - 4], eax
add esp, 8
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
cmp eax, edx
jne 0x50127761
mov eax, dword [ebp - 0xc]
imul eax, eax, 2
add eax, dword [ebp - 0x10]
movzx eax, word [eax]
movzx eax, ax
imul eax, eax, 4
invalid
inc ebp

Function at 0x5012c63c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
mov ebx, eax
push 0xe
call sub.user32.dll_GetClipboardData
mov edi, eax
test edi, edi
jne 0x5012c65e
mov eax, dword [sym.vcl120.bpl__Consts__SUnknownClipboardFormat]
call fcn.50128bbc
mov eax, ebx
call sym.vcl120.bpl__Graphics_TMetafile_NewImage_qqrv
mov esi, dword [ebx + 0x28]
push 0
push edi
call sub.gdi32.dll_CopyEnhMetaFileW
mov dword [esi + 8], eax
lea eax, [ebp - 0x64]
push eax
push 0x64
mov eax, dword [esi + 8]
push eax
call sub.gdi32.dll_GetEnhMetaFileHeader
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x4c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x48]
mov dword [esi + 0x10], eax
mov word [esi + 0x18], 0
mov byte [ebx + 0x2c], 1
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x28]
test eax, eax
setne al
mov byte [ebx + 0x22], al
mov edx, ebx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x65a85a80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], 0x65a8d13d
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], str.assuan_init_pipe_server
mov dword [esp + 8], str._s___s_p_:_enter_n
mov dword [esp + 4], 2
mov dword [esp], edi
call dbg._assuan_debug
test esi, esi
je 0x65a85af8
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x65a8d13d
mov dword [esp + 0xc], str.assuan_init_pipe_server
mov dword [esp + 8], str._s___s_p_:_check:_fd_0_0x_x__fd_1_0x_x_n
mov dword [esp + 4], 2
mov dword [esp], edi
call dbg._assuan_debug
mov dword [esp], edi
call dbg._assuan_register_std_commands
mov ebx, eax
test eax, eax
je 0x65a85b74
mov esi, 0x65a8d13c
test edi, edi
je 0x65a85b1b
mov eax, dword [edi]
mov dword [esp], eax
call sym._gpg_strsource
mov esi, eax
mov dword [esp], ebx
call sym._gpg_strerror
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x65a8d13d
mov dword [esp + 0xc], str.assuan_init_pipe_server
mov dword [esp + 8], 0x65a8d197
mov dword [esp + 4], 2
mov dword [esp], edi
call dbg._assuan_debug
mov eax, 0xf
test edi, edi
je 0x65a85b62
mov eax, dword [edi]
shl eax, 0x18
movzx ebx, bx
and eax, 0x7f000000
or ebx, eax
jmp 0x65a85c48
mov eax, dword [esi]
mov esi, dword [esi + 4]
mov dword [edi + 0x184], 1
mov dword [edi + 0x164], dbg._assuan_server_release
mov dword [edi + 0x168], dbg._assuan_simple_read
mov dword [edi + 0x16c], dbg._assuan_simple_write
mov dword [edi + 0x170], 0
mov dword [edi + 0x174], 0
mov dword [edi + 0xd94], 1
mov dword [esp], str._assuan_pipe_connect_pid
mov dword [ebp - 0x1c], eax
call sym._getenv
test eax, eax
jne 0x65a85bd7
or eax, 0xffffffff
jmp 0x65a85bf3
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._strtoul
test eax, eax
je 0x65a85bd2
mov dword [edi + 0xd98], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0xeb0], 0
mov dword [edi + 0xeb4], 0x65a82ed4
mov dword [edi + 0x1ac], eax
mov dword [edi + 0x998], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x65a8d13d
mov dword [esp + 0xc], str.assuan_init_pipe_server
mov dword [esp + 8], 0x65a8d1cc
mov dword [esp + 4], 2
mov dword [esp], edi
call dbg._assuan_debug
add esp, 0x3c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0x10
mov dword [esp + 0xc], 0
lea edx, [eax + 0xe28]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov eax, dword [eax + 0x998]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_sendto]
sub esp, 0x18
test eax, eax
jns 0x65a86944
mov dword [ebp - 0xc], eax
call sym._uds_writer.part.0
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x65a86946
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1ac]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_recvfrom]
sub esp, 0x18
test eax, eax
jns 0x65a86996
mov dword [ebp - 0xc], eax
call sym._uds_writer.part.0
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x65a86ad0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x65a86b14
mov eax, dword [ebx + 0x178]
test eax, eax
je 0x65a86af4
mov dword [esp], eax
call sym._fflush
cmp dword [0x65a8e020], 0
mov dword [ebx + 0x178], esi
jne 0x65a86b14
mov dword [0x65a8e020], esi
add esp, 0x10
pop ebx
pop esi
pop ebp
jmp dbg._assuan_init_log_envvars
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x65a8709a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x6c], ecx
mov dword [ebx], 0
mov dword [esp + 4], 0x65a8d568
mov dword [esp], eax
call sym._fopen
test eax, eax
je 0x65a871d6
lea esi, [ebp - 0x4a]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x31
mov dword [esp + 4], 1
mov dword [esp], esi
mov dword [ebp - 0x70], eax
call sym._fread
mov edx, dword [ebp - 0x70]
mov ebx, eax
mov dword [esp], edx
call sym._fclose
test ebx, ebx
jne 0x65a8710b
mov dword [esp], 2
jmp 0x65a871ad
mov dword [esp + 8], 0xa
mov dword [esp + 4], str.__socket__
mov dword [esp], esi
mov byte [ebp + ebx - 0x4a], 0
call sym._strncmp
test eax, eax
mov dword [ebp - 0x70], eax
jne 0x65a87193
lea eax, [ebp - 0x50]
lea esi, [ebp - 0x5c]
mov dword [esp + 4], str._u_s__08x__08x__08x__08x
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x54]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x58]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x60]
mov dword [esp + 8], eax
lea eax, [ebp - 0x40]
mov dword [esp + 0xc], esi
mov dword [esp], eax
call sym._sscanf
cmp eax, 5
jne 0x65a871a6
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x70]
lea ecx, [eax - 1]
cmp ecx, 0xfffe
ja 0x65a871a6
mov word [edi], ax
mov eax, dword [ebp + 8]
mov ecx, 4
mov edi, dword [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
mov dword [eax], 1
jmp 0x65a871d9
mov dword [esp], esi
call sym._atoi
lea edx, [eax - 1]
cmp edx, 0xfffe
jbe 0x65a871b4
mov dword [esp], 0x16
call sym._gpg_err_set_errno
jmp 0x65a871d6
mov word [edi], ax
cmp byte [esi], 0xa
je 0x65a871c2
inc esi
dec ebx
jne 0x65a871b7
jmp 0x65a871a6
cmp ebx, 0x11
jne 0x65a871a6
mov edi, dword [ebp - 0x6c]
inc esi
mov ecx, 4
xor edx, edx
rep movsd dword es:[edi], dword [esi]
jmp 0x65a871d9
or edx, 0xffffffff
add esp, 0x8c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x65a88062
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
sub esp, 0x1a4
cmp dword [0x65a8e104], 0
jne 0x65a880b0
mov dword [esp], 0x65a8e0a0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edx
mov dword [esp], 0x65a8e104
call dbg.assuan_new
mov ebx, eax
test eax, eax
jne 0x65a880b0
lea eax, [ebp - 0x198]
mov dword [esp], 0x202
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push eax
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x65a883c0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x24]
push ebx
sub esp, 0x5c
mov dword [ebp - 0x20], 0
mov ebx, dword [ebp + 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x1c], 0
mov dword [esp + 0xc], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
sub esp, 0x10
test eax, eax
jne 0x65a8844f
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dbg._assuan_w32_strerror
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x65a8d5f0
mov dword [esp + 0xc], str.__assuan_pipe
mov dword [esp + 8], str._s___s_p_:_call:_CreatePipe_failed:__s_n
mov dword [esp + 4], 5
mov dword [esp], ebx
call dbg._assuan_debug
jmp 0x65a884fe
mov ecx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x3c], ecx
call ecx
cmp dword [ebp + 0x10], 0
mov ecx, dword [ebp - 0x3c]
mov esi, eax
jne 0x65a8846a
mov edi, dword [ebp - 0x30]
jmp 0x65a8846d
mov edi, dword [ebp - 0x2c]
call ecx
lea ecx, [ebp - 0x28]
mov dword [esp + 8], esi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x1c
test eax, eax
jne 0x65a8850f
mov dword [esp], ebx
mov dword [esp + 4], 0xffffffff
call dbg._assuan_w32_strerror
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp], ebx
mov dword [esp + 0x10], 0x65a8d5f0
mov dword [esp + 0xc], str.__assuan_pipe
mov dword [esp + 8], str._s___s_p_:_call:_DuplicateHandle_failed:__s_n
mov dword [esp + 4], 5
call dbg._assuan_debug
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x2c]
push ecx
mov dword [esp], eax
call esi
push ebx
mov dword [esp], 5
call sym._gpg_err_set_errno
or eax, 0xffffffff
jmp 0x65a88545
cmp dword [ebp + 0x10], 0
jne 0x65a88526
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x28]
push edx
mov dword [ebp - 0x30], eax
jmp 0x65a88535
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call esi
push eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0x2c]
mov dword [edx + 4], eax
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x65a885b5
Capabilities:
Get socket status
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x13c
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov eax, ebx
call dbg.is_socket
test eax, eax
je 0x65a88662
mov esi, 4
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_recv]
sub esp, 0x10
cmp eax, 0xffffffff
jne 0x65a886f8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x65a886ae
dec esi
je 0x65a886d7
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x11c], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.WS2_32.dll_select]
sub esp, 0x14
jmp 0x65a885db
lea eax, [ebp - 0x11c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x11c], 0
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x65a886a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x65a886ae
mov eax, dword [ebp - 0x11c]
cmp eax, 0xffffffff
jne 0x65a886f8
jmp 0x65a886e9
cmp eax, 0x2736
je 0x65a886ce
jg 0x65a886c5
cmp eax, 0x6d
je 0x65a886e0
cmp eax, 0x2733
jne 0x65a886e9
jmp 0x65a886d7
cmp eax, 0x2746
je 0x65a886e0
jmp 0x65a886e9
mov dword [esp], 9
jmp 0x65a886f0
mov dword [esp], 0xb
jmp 0x65a886f0
mov dword [esp], 0x20
jmp 0x65a886f0
mov dword [esp], 5
call sym._gpg_err_set_errno
or eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x65a88700
Capabilities:
Get socket status
Send data
Send data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x13c
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov eax, ebx
call dbg.is_socket
test eax, eax
je 0x65a887ad
mov esi, 4
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_send]
sub esp, 0x10
cmp eax, 0xffffffff
jne 0x65a88837
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x65a887ef
dec esi
je 0x65a88816
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x11c], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.WS2_32.dll_select]
sub esp, 0x14
jmp 0x65a88726
lea eax, [ebp - 0x11c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x65a887e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x65a887ef
mov eax, dword [ebp - 0x11c]
cmp eax, 0xffffffff
jne 0x65a88837
jmp 0x65a88828
cmp eax, 0xe8
je 0x65a8881f
jg 0x65a887ff
cmp eax, 0x6d
je 0x65a8881f
jmp 0x65a88828
cmp eax, 0x2733
je 0x65a88816
cmp eax, 0x2736
jne 0x65a88828
mov dword [esp], 9
jmp 0x65a8882f
mov dword [esp], 0xb
jmp 0x65a8882f
mov dword [esp], 0x20
jmp 0x65a8882f
mov dword [esp], 5
call sym._gpg_err_set_errno
or eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret