joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47dc50
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x47dc6a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x4efb70
push esi
call fcn.00436710
add esp, 8
test eax, eax
je 0x47dcb2
test ebp, ebp
je 0x47dca3
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_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x47dcd8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x47dcd8
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_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x47dd8f
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47dcf5
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [0x59ed44]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x47dd85
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x47dd85
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47dd27
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47dd40
sub ecx, edx
sub ecx, esi
add ecx, ebx
lea ecx, [ecx]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x47dd50
test ebp, ebp
je 0x47dd7c
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x59ed48]
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_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x59ed48]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x47dec0
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub esp, 0x190
test byte [esp + 0x194], 2
je 0x47df03
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x47def7
mov eax, dword [esp]
cmp al, 2
jne 0x47def1
shr eax, 8
cmp al, 2
je 0x47df03
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret
call fcn.0049b930
test eax, eax
jne 0x47e0fd
push esi
push edi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x47df30
mov dword [0x5a38ec], esi
jmp 0x47e060
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LoadLibraryExA
push edi
call ebp
push 0x4efb70
push str.iphlpapi.dll
mov ebx, eax
call fcn.00436710
add esp, 8
test eax, eax
je 0x47df80
test ebx, ebx
je 0x47df6e
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x47e043
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x47e043
test ebx, ebx
je 0x47dfa5
push str.AddDllDirectory
push edi
call ebp
test eax, eax
je 0x47dfa5
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x47e043
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ebp, eax
test ebp, ebp
je 0x47e03d
lea ecx, [ebp + 0xd]
push ecx
call dword [0x59ed44]
mov edi, eax
add esp, 4
test edi, edi
je 0x47e033
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x47e033
mov ecx, edi
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47dfe0
sub ecx, edx
mov eax, 0x5c
mov word [ecx + edi], ax
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47dff7
sub ecx, edx
mov edx, str.iphlpapi.dll
sub ecx, edx
add ecx, edi
lea esp, [esp]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x47e010
test ebx, ebx
je 0x47e02a
push 8
push 0
push edi
call ebx
jmp 0x47e031
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x59ed48]
add esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5a38ec], esi
test esi, esi
je 0x47e05e
push str.if_nametoindex
push esi
call ebp
test eax, eax
je 0x47e05e
mov dword [0x5a38e8], eax
pop ebp
pop ebx
push 0x9c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0043afb0
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
mov dword [esp + 8], 0x9c
mov dword [esp + 0xc], 6
mov dword [esp + 0x10], 0
push 3
push 2
push 0
push 0
mov dword [esp + 0x28], 2
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push 1
push 8
push edx
push eax
call esi
push edx
push eax
push 0x33
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
pop edi
pop esi
test eax, eax
je 0x47e0f4
push 0x5a3f40
mov byte [0x5a3f3c], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
add esp, 0x190
ret
mov byte [0x5a3f3c], 0
xor eax, eax
add esp, 0x190
ret
Function at 0x487f00
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, 0x30
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x14], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x487f32
pop edi
or eax, eax
pop esi
add esp, 0x30
ret
push ebx
mov eax, 2
mov dword [esp + 0x1c], 0
push 0x7f000001
mov dword [esp + 0x24], 0
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [esp + 0x4c]
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 0x4880c5
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4880c5
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 0x4880c5
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x4880c5
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x4880c5
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4880c5
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x4880c5
push ebx
push 0x4f1420
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.004899f0
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x488032
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 0x4880c5
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 0x4880c5
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x488083
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x488088
add ecx, 4
add edx, 4
sub esi, 4
jae 0x488072
cmp esi, 0xfffffffc
je 0x4880b5
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4880c5
cmp esi, 0xfffffffd
je 0x4880b5
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4880c5
cmp esi, 0xfffffffe
je 0x4880b5
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4880c5
cmp esi, 0xffffffff
je 0x4880b5
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x4880c5
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x30
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
pop ebx
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x30
ret
Function at 0x48b880
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [eax], ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x48ba34
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x48ba1d
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x48b8cf
lea ebp, [eax + 0xe]
jmp 0x48b8db
cmp eax, 0x17
jne 0x48b98a
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x48b98a
mov eax, dword [edi + 0x10]
test eax, eax
je 0x48b98a
cmp eax, ebp
jb 0x48b98a
push 0x20
call dword [0x59ed44]
mov esi, eax
add esp, 4
test esi, esi
je 0x48ba12
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebp
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x59ed44]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x48ba01
push ebp
push dword [edi + 0x18]
push eax
call fcn.0043d170
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x48b975
push eax
call dword [0x59ed50]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x48b9e7
test ebx, ebx
jne 0x48b97b
mov ebx, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x48b986
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x48b8c2
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x48b9a8
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x48ba19
test ebx, ebx
je 0x48b9d5
push dword [ebx + 0x18]
call dword [0x59ed48]
push dword [ebx + 0x14]
call dword [0x59ed48]
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x59ed48]
add esp, 0xc
mov ebx, esi
test esi, esi
jne 0x48b9b0
mov eax, dword [esp + 0x2c]
xor ebx, ebx
pop edi
pop esi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebp, 8
call dword [0x59ed48]
push esi
call dword [0x59ed48]
add esp, 8
jmp 0x48b999
push esi
mov ebp, 8
call dword [0x59ed48]
add esp, 4
jmp 0x48b999
mov ebp, 8
jmp 0x48b999
test ebx, ebx
jne 0x48ba29
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x2c]
pop edi
pop esi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x48c050
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1000
call fcn.004bee30
push dword [esp + 0x1004]
call fcn.004cc4a4
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x48c09c
push 0x1000
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x48c09c
lea eax, [esp]
push eax
call dword [0x59ed50]
add esp, 4
add esp, 0x1000
ret
xor eax, eax
add esp, 0x1000
ret
Function at 0x4921d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x84
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x98]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push eax
mov ebp, dword [edi + 0x1c4]
or esi, 0xffffffff
mov ebx, dword [edi]
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x492224
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push ebp
push edi
call fcn.0047bf60
add esp, 8
cmp esi, 0xffffffff
jne 0x492251
push str.Error_accept__ing_server_connect
push ebx
call fcn.0047b560
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.0047b620
push 1
push esi
mov byte [edi + 0x2b0], 0
mov dword [edi + 0x1c4], esi
call fcn.004880f0
add esp, 0x10
mov byte [edi + 0x1d1], 1
cmp dword [ebx + 0x610], 0
je 0x4922c7
push 1
push ebx
call fcn.00469c50
mov eax, dword [ebx + 0x610]
push 1
push esi
push dword [ebx + 0x614]
call eax
push 0
push ebx
mov esi, eax
call fcn.00469c50
add esp, 0x1c
test esi, esi
je 0x4922c7
push edi
call fcn.00492750
add esp, 4
mov eax, 0x2a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x84
ret
Function at 0x4a6860
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x59ed44]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4a688b
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x4a68da
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x4a68e2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4a6953
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
lea esp, [esp]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4a6910
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x4a6985
jmp 0x4a6960
mov eax, dword [edi]
push 1
push str.6Error_allocating_space_for_remote_banner
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x4f7e57
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x4a6960
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x4a69e0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x59e414]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push esi
mov dword [esi + 0x170], 0
call fcn.004b6ab0
add esp, 8
test eax, eax
jne 0x4a6b93
mov edx, dword [ebp - 0x218]
mov eax, dword [esi + 0x164]
imul ecx, edx, 0x3e8
test eax, eax
push ebx
push edi
mov edi, 0x3e8
mov dword [ebp - 0x21c], eax
mov eax, dword [esi + 0x64]
cmove ecx, edi
test eax, eax
jle 0x4a6aa8
test edx, edx
je 0x4a6a4c
cmp ecx, eax
jle 0x4a6aa8
push 0
call fcn.004cb6e6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
push eax
call fcn.004cc664
fmul qword [0x4f15b0]
add esp, 0x14
mov ecx, dword [esi + 0x64]
fstp qword [ebp - 0x214]
cvttsd2si eax, qword [ebp - 0x214]
cmp eax, ecx
jle 0x4a6a9f
push str.API_timeout_expired
push 0xfffffffffffffff7
push esi
call fcn.004b7010
add esp, 0xc
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042acb5
mov esp, ebp
pop ebp
ret
sub ecx, eax
mov ebx, 1
jmp 0x4a6aaf
xor ebx, ebx
test ecx, ecx
setg bl
mov eax, 0x10624dd3
xor edi, edi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x214], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 0x210], eax
test cl, 1
je 0x4a6b05
mov eax, dword [esi + 0x15c]
lea edx, [ebp - 0x108]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], 1
jmp 0x4a6b07
xor edx, edx
test cl, 2
je 0x4a6b28
mov eax, dword [esi + 0x15c]
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], 1
xor ecx, ecx
lea eax, [ebp - 0x214]
test ebx, ebx
cmove eax, ecx
push eax
mov eax, dword [esi + 0x15c]
push ecx
push edi
push edx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x4a6b6c
push str.Timed_out_waiting_on_socket
push 0xfffffffffffffff7
push esi
call fcn.004b7010
add esp, 0xc
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042acb5
mov esp, ebp
pop ebp
ret
jns 0x4a6b8f
push str.Error_waiting_on_socket
push 0xfffffffffffffff7
push esi
call fcn.004b7010
add esp, 0xc
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042acb5
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042acb5
mov esp, ebp
pop ebp
ret
Function at 0x4af780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ecx, dword [edi]
cmp ecx, ebx
jae 0x4af7eb
mov esi, dword [ebp + 8]
lea eax, [esi + 0x34]
nop dword [eax + eax]
cmp dword [esi + 0x4c], 0
mov edx, dword [esi + 0x48]
jne 0x4af7c2
push eax
lea eax, [ebp + 0x14]
push eax
mov eax, ebx
sub eax, ecx
push eax
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4af7d0
push 0
lea ecx, [ebp + 0x14]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, eax
mov eax, dword [ebp + 0x14]
add dword [edi], eax
test ecx, ecx
je 0x4af7f8
mov dword [esi + 0x4c], 0
lea eax, [esi + 0x34]
mov ecx, dword [edi]
cmp ecx, ebx
jb 0x4af7a0
mov dword [edi], 0
mov eax, ecx
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x4c], 0
jne 0x4af813
cmp eax, 0x3e5
je 0x4af81a
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
cmp eax, 0x3e4
jne 0x4af80b
pop edi
mov dword [esi + 0x4c], 1
mov eax, 0xffffffdb
pop esi
pop ebx
pop ebp
ret

Function at 0x4af830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov ecx, dword [edi]
cmp ecx, ebx
jae 0x4af89b
mov esi, dword [ebp + 8]
lea eax, [esi + 0x34]
nop dword [eax + eax]
cmp dword [esi + 0x4c], 0
mov edx, dword [esi + 0x48]
jne 0x4af872
push eax
lea eax, [ebp + 0x14]
push eax
mov eax, ebx
sub eax, ecx
push eax
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4af880
push 0
lea ecx, [ebp + 0x14]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, eax
mov eax, dword [ebp + 0x14]
add dword [edi], eax
test ecx, ecx
je 0x4af8a8
mov dword [esi + 0x4c], 0
lea eax, [esi + 0x34]
mov ecx, dword [edi]
cmp ecx, ebx
jb 0x4af850
mov dword [edi], 0
mov eax, ecx
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x4c], 0
jne 0x4af8c3
cmp eax, 0x3e5
je 0x4af8ca
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
cmp eax, 0x3e4
jne 0x4af8bb
pop edi
mov dword [esi + 0x4c], 1
mov eax, 0xffffffdb
pop esi
pop ebx
pop ebp
ret
Function at 0x4b4760
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x4b4940
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4b4940
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4b4940
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4b4940
mov ecx, dword [ecx + 4]
mov esi, dword [eax + 4]
add ecx, 0x18
add esi, ecx
mov dword [ebp - 8], 0x18
push esi
call fcn.004bf44f
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
test edi, edi
je 0x4b4940
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [edi], 0x31415352
mov ecx, dword [eax + 4]
shl ecx, 3
mov dword [edi + 4], ecx
mov ecx, dword [edx + 4]
mov dword [edi + 8], ecx
mov eax, dword [eax + 4]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
push dword [edx + 4]
mov eax, dword [ebp - 8]
push dword [edx]
add eax, edi
push eax
call fcn.0043d170
mov eax, dword [ebp + 0x14]
push dword [eax + 4]
push dword [eax]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
add eax, edi
add eax, dword [ebp - 8]
push eax
call fcn.0043d170
add esp, 0x18
mov dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push 0
push esi
push edi
push eax
push str.RSAPUBLICBLOB
push 0
push dword [0x5a3f8c]
call sub.bcrypt.dll_BCryptImportKeyPair
mov edi, eax
test edi, edi
js 0x4b4913
push 1
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0
push dword [ebx + 4]
push dword [ebx]
push dword [ebp - 0xc]
call sub.bcrypt.dll_BCryptEncrypt
mov edi, eax
test edi, edi
js 0x4b490b
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004b4950
add esp, 8
test eax, eax
jne 0x4b4906
mov ecx, dword [ebp - 4]
cmp dword [ebx + 4], ecx
cmova ecx, dword [ebx + 4]
push ecx
mov dword [ebp - 4], ecx
call fcn.004bf44f
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4b4906
push dword [ebx + 4]
push dword [ebx]
push dword [ebp - 4]
push edi
call fcn.004b6a70
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
add esp, 0x10
push 1
push eax
push dword [ebx + 4]
push dword [ebx]
push 0
push 0
push 0
push dword [ebp - 4]
push edi
push dword [ebp - 0xc]
call sub.bcrypt.dll_BCryptEncrypt
mov ecx, dword [ebp - 4]
mov edi, eax
mov edx, dword [ebp - 0x10]
test ecx, ecx
je 0x4b48eb
mov eax, edx
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4b48e0
push edx
call fcn.004bf434
add esp, 4
test edi, edi
js 0x4b490b
push dword [ebp - 8]
push ebx
call fcn.004b4950
add esp, 8
jmp 0x4b490b
mov edi, 0xc0000017
push dword [ebp - 0xc]
call sub.bcrypt.dll_BCryptDestroyKey
mov ecx, dword [ebp - 0x14]
test esi, esi
je 0x4b492b
mov eax, ecx
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub esi, 1
jne 0x4b4920
push ecx
call fcn.004bf434
add esp, 4
sar edi, 0x1f
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b4ac0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
test eax, eax
je 0x4b4ad7
mov ecx, dword [esi + 0xc]
jmp 0x4b4ada
mov ecx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 8], ecx
jne 0x4b4b05
test eax, eax
jne 0x4b4b05
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [esi + 0x14]
push dword [esi + 8]
push 0
push dword [ebp + 0x24]
push ecx
push dword [esi]
call sub.bcrypt.dll_BCryptDecrypt
jmp 0x4b4b22
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [esi + 0x14]
push dword [esi + 8]
push 0
push dword [ebp + 0x24]
push ecx
push dword [esi]
call sub.bcrypt.dll_BCryptEncrypt
mov edi, eax
test edi, edi
js 0x4b4bf6
push ebx
push dword [ebp - 4]
call fcn.004bf44f
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4b4bf0
cmp dword [ebp + 0x1c], 0
jne 0x4b4b6f
cmp dword [ebp + 0x18], 0
jne 0x4b4b6f
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [esi + 0x14]
push dword [esi + 8]
push 0
push dword [ebp + 0x24]
push dword [ebp - 8]
push dword [esi]
call sub.bcrypt.dll_BCryptDecrypt
jmp 0x4b4b8e
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [esi + 0x14]
push dword [esi + 8]
push 0
push dword [ebp + 0x24]
push dword [ebp - 8]
push dword [esi]
call sub.bcrypt.dll_BCryptEncrypt
mov edi, eax
test edi, edi
js 0x4b4bb6
cmp dword [ebp + 0x18], 0
mov eax, dword [ebp + 0x20]
je 0x4b4be0
push dword [ebp + 0x24]
push ebx
push eax
push eax
call fcn.004b7670
push dword [esi + 0x1c]
push dword [esi + 0xc]
call fcn.004b6bf0
add esp, 0x18
mov esi, dword [ebp - 4]
test esi, esi
je 0x4b4bcb
mov eax, ebx
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub esi, 1
jne 0x4b4bc0
push ebx
call fcn.004bf434
add esp, 4
sar edi, 0x1f
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 4]
push esi
push ebx
push eax
call fcn.0043d170
add esp, 0xc
jmp 0x4b4bb9
mov edi, 0xc0000017
pop ebx
sar edi, 0x1f
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret