joyce8/EMBER2024-capa huggingface dataset:
Function at 0x505d17
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x674f52
call fcn.006313fc
sub esp, 0x48
and dword [esp + 4], 0
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ebx, [edi + 0xd0]
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x505d3a
push 0
lea eax, [esp + 0x18]
sub esi, ecx
push eax
mov eax, 0xbb7
sub eax, esi
push eax
lea eax, [ebx + esi]
push eax
push dword [edi + 0xa8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
mov eax, dword [esp + 0x14]
je 0x505d73
mov byte [esp + 0x13], 1
test eax, eax
jne 0x505d78
mov byte [esp + 0x13], 0
add eax, esi
push 0xa
push ebx
mov byte [eax + edi + 0xd0], 0
mov eax, dword [esp + 0x1c]
add dword [edi + 0xc], eax
adc dword [edi + 0x10], 0
call fcn.00637450
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x505db1
push 0xd
push ebx
call fcn.00637450
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x505ed7
lea ebp, [edi + 0xac]
push ebx
lea ecx, [esp + 0x44]
call fcn.00409ba7
mov eax, esi
mov dword [esp + 0x3c], 0xf
sub eax, edi
xor ecx, ecx
sub eax, 0xd0
mov dword [esp + 0x60], ecx
push eax
push ecx
lea eax, [esp + 0x48]
mov dword [esp + 0x40], ecx
mov byte [esp + 0x30], cl
lea ecx, [esp + 0x30]
push eax
call fcn.0040a034
push 0
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x68], 2
call fcn.0040a0e9
jmp 0x505e09
cmp al, 0x20
jae 0x505e0f
inc esi
mov al, byte [esi]
test al, al
jne 0x505e04
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x505e14
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push ebx
call fcn.00630c90
push 0xa
push ebx
call fcn.00637450
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x505e47
push 0xd
push ebx
call fcn.00637450
pop ecx
mov esi, eax
pop ecx
test esi, esi
setne al
mov ecx, ebp
movzx eax, al
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0053bba7
mov ecx, ebp
call fcn.0053bc49
fmul qword [0x698978]
call fcn.00639330
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 8], eax
test eax, eax
je 0x505ebd
push 0
call fcn.004919d8
mov ecx, dword [esp + 0x6c]
sub eax, dword [ecx + 0x14]
mov dword [esp + 0x18], eax
sbb edx, dword [ecx + 0x18]
mov ecx, ebp
mov dword [esp + 0x1c], edx
fild qword [esp + 0x18]
fstp qword [esp + 0x20]
fld qword [esp + 0x20]
fstp qword [esp + 0x20]
call fcn.0053bc49
fdiv qword [0x6969a0]
fdivr qword [esp + 0x20]
call fcn.00639330
mov ecx, dword [esp + 0x6c]
mov dword [ecx + 0x10], eax
or dword [esp + 0x60], 0xffffffff
lea ecx, [esp + 0x28]
push 0
push 1
call fcn.0040a0e9
test esi, esi
jne 0x505db7
cmp byte [esp + 0x13], 0
jne 0x505d35
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x506915
Capabilities:
Resume thread

Disassembly:
mov eax, 0x680434
call fcn.006313fc
sub esp, 0xc
push esi
xor esi, esi
push edi
mov edi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
cmp dword [edi + 0x14], esi
je 0x506980
lea eax, [ebp - 0x18]
push eax
push dword [edi + 4]
call fcn.00505924
test al, al
je 0x506980
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x50697d
push dword [ecx + esi*4]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov eax, dword [ebp - 0x18]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x14]
inc esi
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x506958
dec dword [edi + 0x14]
lea ecx, [ebp - 0x18]
call fcn.0041abd3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x509b89
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 1
push 0
push 2
push 2
mov esi, ecx
call fcn.00476c1d
mov eax, dword [esi + 4]
mov ecx, esi
mov edi, dword [ebp + 8]
push edi
mov dword [esi + 0x18], eax
call fcn.004751a3
test eax, eax
je 0x509bd0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_bind_to_UPnP_port:__d
push 1
call fcn.005094ae
add esp, 0xc
xor al, al
jmp 0x509c5d
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [edi + 0xc]
push 4
push eax
push 9
push 0
push dword [esi + 4]
call ebx
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x509c02
call edi
push eax
push str.UPnP:_Could_not_setup_socket_to_send_multicast_packets:__d
push 1
call fcn.005094ae
add esp, 0xc
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0xff
push eax
push 4
push 0
push dword [esi + 4]
call ebx
test eax, eax
je 0x509c2e
call edi
push eax
push str.UPnP:_Could_not_set_unicast_TTL:__d
push 1
call fcn.005094ae
add esp, 0xc
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0xff
push eax
push 0xa
push 0
push dword [esi + 4]
call ebx
pop ebx
test eax, eax
je 0x509c5b
call edi
push eax
push str.UPnP:_Could_not_set_multicast_TTL:__d
push 1
call fcn.005094ae
add esp, 0xc
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x509c65
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push 0
push 2
pop eax
push eax
push eax
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x509c9f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_create_socket:__d
push 1
call fcn.005094ae
add esp, 0xc
xor al, al
jmp 0x509da7
lea ecx, [ebp - 4]
mov dword [ebp - 4], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x509c98
push esi
push 4
lea eax, [ebp - 8]
xor esi, esi
push eax
push 4
push 0xffff
push dword [ebx]
inc esi
mov dword [ebp - 8], esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x509cee
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_setsockopt:__d
push esi
call fcn.005094ae
jmp 0x509d33
push edi
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
push 0x76c
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_bind]
pop edi
test eax, eax
je 0x509d38
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x6ac524
push esi
call fcn.00509302
add esp, 0xc
jmp 0x509d93
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
push str.239.255.255.250
call esi
push str.0.0.0.0
mov dword [ebp - 0x10], eax
call esi
push 8
mov dword [ebp - 0xc], eax
xor esi, esi
lea eax, [ebp - 0x10]
push eax
push 0xc
push esi
push dword [ebx]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x509d97
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_join_multicast_group:__d
push 1
call fcn.005094ae
add esp, 0xc
mov byte [0x76bddb], 1
or dword [0x76bddc], 0xffffffff
mov dword [0x76bde0], esi
xor al, al
jmp 0x509da6
push str.UPnP:_Joined_multicast_group
push esi
call fcn.00509302
pop ecx
pop ecx
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor eax, eax
mov word [ebp - 4], 0
lea edi, [ebp - 0x14]
mov esi, ecx
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, 0xe714
pop edi
push dword [ebp + 8]
mov word [ebp - 0x14], di
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push edi
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
pop edi
setg al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x50a7ad
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
mov esi, ecx
push dword [ebp + 0x10]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.0050a721
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
push dword [ebp + 8]
mov word [ebp - 0x1c], ax
mov eax, 0xe714
mov word [ebp - 0x1a], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xc
lea eax, [ebp - 0xc]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
pop edi
setg al
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x50a817
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push 1
push 0
push 2
push 2
mov esi, ecx
call fcn.00476c1d
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 1
push eax
push 4
push 0xffff
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x50a852
xor al, al
jmp 0x50a876
push 0x14e7
call fcn.0050a762
push eax
lea ecx, [ebp - 0x18]
call fcn.004c6176
push eax
mov ecx, esi
call fcn.004751a3
mov ecx, esi
call fcn.00476391
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5138db
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x18]
jmp 0x5138f6
mov ecx, dword [esi]
push 0xffffffffffffffff
mov ecx, dword [ecx + 0xd8]
call fcn.004fe678
add esi, 4
cmp esi, dword [edi + 0x1c]
jne 0x5138e4
mov eax, dword [edi + 0x18]
lea esi, [edi + 0x24]
mov dword [edi + 0x1c], eax
mov ecx, esi
push dword [esi + 4]
push dword [esi]
call fcn.0051243e
mov eax, dword [esi]
push 1
mov dword [esi + 4], eax
push dword [edi + 0x3c]
call fcn.0045d916
xor eax, eax
lea ecx, [edi + 0x78]
push eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
call fcn.004ff744
pop edi
pop esi
ret

Function at 0x51c0e4
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x194
cmp dword [eax + 0x14], 0x10
push ebx
mov ebx, ecx
jb 0x51c0fb
mov eax, dword [eax]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
movzx eax, word [esi + 0x10]
push eax
push str.BT_SEARCH__HTTP_1.1_r_nHost:_239.192.152.143:6771_r_nPort:__u_r_nInfohash:__s_r_n_r_n_r_n
lea eax, [ebp - 0x194]
push 0x100
push eax
call fcn.00471605
add esp, 0x14
mov byte [ebp - 0x95], 0
lea edi, [ebp - 0x14]
mov eax, 0x1a73
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 4], ax
lea ecx, [ebp - 0x14]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.004768a7
lea ecx, [ebp - 0x194]
pop edi
lea edx, [ecx + 1]
pop esi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51c155
push dword [ebp + 0xc]
lea eax, [ebp - 0x94]
sub ecx, edx
push eax
push 0
push ecx
lea eax, [ebp - 0x194]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
pop ebx
setg al
mov esp, ebp
pop ebp
ret 8
Function at 0x51c331
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
push 1
xor ebx, ebx
mov edi, ecx
push ebx
push 2
push 2
call fcn.00476c1d
cmp dword [edi + 4], 0xffffffff
jne 0x51c365
mov esi, dword [edi]
push ebx
push 1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, edi
call dword [esi + 0x14]
xor al, al
jmp 0x51c488
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0xffff
push dword [edi + 4]
mov dword [esp + 0x20], 1
call esi
test eax, eax
jne 0x51c35e
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
push dword [ebx + 0xc]
call ebp
push 0x1a73
push eax
lea ecx, [esp + 0x24]
call fcn.004c6176
push eax
mov ecx, edi
call fcn.004751a3
test eax, eax
jne 0x51c47a
push dword [ebx + 0xc]
mov byte [esp + 0x38], al
mov word [esp + 0x39], ax
mov byte [esp + 0x3b], al
call ebp
push eax
call dword [sym.imp.WS2_32.dll_htonl]
push 4
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push 9
push 0
push dword [edi + 4]
call esi
test eax, eax
jne 0x51c47a
and dword [esp + 0x14], eax
and dword [esp + 0x18], eax
push str.239.192.152.143
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebx + 0xc]
mov dword [esp + 0x18], eax
call ebp
push eax
call dword [sym.imp.WS2_32.dll_htonl]
push 8
mov dword [esp + 0x1c], eax
xor ebx, ebx
lea eax, [esp + 0x18]
push eax
push 0xc
push ebx
push dword [edi + 4]
call esi
test eax, eax
jne 0x51c47a
push 4
pop ebp
push ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 0xb
push ebx
push dword [edi + 4]
call esi
test eax, eax
jne 0x51c47a
push ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0xff
push eax
push ebp
push ebx
push dword [edi + 4]
call esi
test eax, eax
jne 0x51c47a
push ebp
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0xff
push eax
push 0xa
push ebx
push dword [edi + 4]
call esi
test eax, eax
je 0x51c47e
xor al, al
jmp 0x51c487
mov ecx, edi
call fcn.00476391
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
Function at 0x521597
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x6765b9
call fcn.006313fc
sub esp, 0x28
push ebx
push ebp
push esi
mov ebp, ecx
mov byte [esp + 0xf], 1
push edi
mov dword [esp + 0x1c], ebp
call fcn.00475044
mov edi, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
mov esi, dword [0x76d3a8]
xor ebx, ebx
push edi
push eax
mov ecx, 0x76d3a8
mov dword [esp + 0x48], ebx
call fcn.0059f584
cmp dword [eax], esi
jne 0x52160c
push str.session_has_expired
lea ecx, [esp + 0x24]
call fcn.00409ba7
lea eax, [esp + 0x20]
mov byte [esp + 0x40], 1
push eax
mov ecx, ebp
call fcn.005216e2
push ebx
push 1
lea ecx, [esp + 0x28]
call fcn.0040a0e9
jmp 0x5216c5
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebp
push edi
mov ecx, 0x76d3a8
mov esi, eax
call fcn.0051e068
push edi
mov dword [eax], esi
mov esi, 0x76d3a8
mov ecx, esi
mov dword [eax + 4], ebx
call fcn.0051e068
mov ebx, eax
call ebp
and dword [esp + 0x4c], 0
mov ecx, esi
push edi
mov dword [esp + 0x18], eax
mov ebp, eax
call fcn.0051e068
mov esi, eax
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x18], ecx
mov eax, ecx
cdq
and eax, dword [ebx + 0x64]
and edx, dword [ebx + 0x68]
or eax, edx
je 0x521687
not ecx
and ecx, dword [ebx + 0x64]
mov eax, ecx
cdq
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x68], edx
push dword [esi + 0x6c]
push edi
call fcn.0052205c
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ebp, eax
xor eax, eax
mov dword [esp + 0x4c], eax
jmp 0x52168b
mov eax, dword [esp + 0x4c]
shl dword [esi + 0x6c], 1
cmp dword [esi + 0x6c], 0x800000
jne 0x52169e
mov dword [esi + 0x6c], 1
mov ecx, ebp
sub ecx, dword [esp + 0x14]
sbb eax, 0
test eax, eax
jg 0x5216bb
jl 0x5216b2
cmp ecx, 0x64
jae 0x5216bb
mov ecx, dword [esi + 0x6c]
cmp ecx, dword [esp + 0x18]
jne 0x521653
mov ecx, dword [esp + 0x1c]
push edi
call fcn.0052177f
or dword [esp + 0x40], 0xffffffff
call fcn.00475085
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x5233e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x676965
call fcn.006313fc
sub esp, 0x48
push dword [ebp + 8]
call fcn.005230f3
cmp dword [0x7641f8], 0
jne 0x523406
push dword [ebp + 8]
call fcn.00523023
push esi
push edi
push dword [ebp + 8]
mov ecx, 0x76d3a8
call fcn.0051e068
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edi, eax
mov dword [ebp - 0x18], edi
jmp 0x52356f
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor ecx, ecx
sub eax, edi
sbb ecx, ecx
test ecx, ecx
jg 0x523579
jl 0x523446
cmp eax, 0x64
jae 0x523579
push 0
lea ecx, [esi + 0x24]
call fcn.004f47a5
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x54]
push 0x6968b8
push eax
call fcn.00472228
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
push 0x6a4b40
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00409ba7
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x24]
call fcn.0046c7b4
push 0
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040a0e9
push str.torrent
lea ecx, [ebp - 0x3c]
call fcn.00409ba7
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x24]
call fcn.0046c7b4
push 0
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040a0e9
push 0x6ae66c
lea ecx, [ebp - 0x3c]
call fcn.00409ba7
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x24]
call fcn.0046c7b4
push 0
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.0040a0e9
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x24]
call fcn.004b75bf
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.0053c041
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.0052279a
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test eax, eax
je 0x52353b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x14]
lea ecx, [esi + 0x38]
call fcn.00524069
dec dword [esi + 0x34]
jne 0x523551
and dword [esi + 0x30], 0
jmp 0x523554
inc dword [esi + 0x30]
lea ecx, [ebp - 0x24]
call fcn.0046c047
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
push 0
push 1
call fcn.0040a0e9
mov edi, dword [ebp - 0x18]
cmp dword [esi + 0x34], 0
jne 0x523427
cmp dword [esi + 0x3c], 0
jbe 0x523589
mov eax, dword [esi + 0x68]
or dword [esi + 0x64], 2
mov dword [esi + 0x68], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x52b9e3
Capabilities:
Encrypt data using curve25519

Disassembly:
sub esp, 0x488
push ebx
push ebp
push esi
push edi
push 0
push 0x20
push dword [esp + 0x4b8]
lea eax, [esp + 0x24]
push eax
call fcn.00554245
mov al, byte [esp + 0x37]
mov edx, dword [esp + 0x4a8]
and al, 0x3f
and byte [esp + 0x18], 0xf8
or al, 0x40
mov edi, dword [esp + 0x4ac]
mov ecx, edx
add ecx, 0x40
mov byte [esp + 0x37], al
mov eax, dword [esp + 0x4a0]
mov ebx, edi
adc ebx, 0
mov dword [esp + 0x10], ecx
xor esi, esi
mov dword [esp + 0x14], ebx
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x49c]
test edi, edi
jb 0x52ba72
ja 0x52ba54
test edx, edx
je 0x52ba72
mov ebp, dword [esp + 0x4a4]
mov al, byte [ecx + ebp]
mov byte [ebx + ecx + 0x40], al
add ecx, 1
adc esi, 0
cmp esi, edi
jb 0x52ba5b
ja 0x52ba72
cmp ecx, edx
jb 0x52ba5b
xor ecx, ecx
lea esi, [ebx + 0x20]
xor ebp, ebp
mov al, byte [esp + ecx + 0x38]
mov byte [esi + ecx], al
add ecx, 1
adc ebp, 0
jne 0x52ba8d
cmp ecx, 0x20
jb 0x52ba79
push 0
pop ebp
add edx, 0x20
lea eax, [esp + 0x118]
adc edi, ebp
push edi
push edx
push esi
push eax
call fcn.00554245
lea eax, [esp + 0x118]
push eax
lea eax, [esp + 0x19c]
push eax
call fcn.00554713
lea eax, [esp + 0x198]
push eax
lea eax, [esp + 0x29c]
push eax
call fcn.00554f5f
lea eax, [esp + 0x298]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.00554ef1
mov ecx, ebp
mov edx, ebp
mov al, byte [esp + ecx + 0x58]
mov byte [ecx + ebx], al
add ecx, 1
adc edx, ebp
jne 0x52baf8
cmp ecx, 0x20
jb 0x52bae5
push dword [esp + 0x14]
mov eax, dword [esp + 0x4b4]
push dword [esp + 0x14]
add eax, 0x20
push ebx
push eax
push ebx
lea eax, [esp + 0x16c]
push eax
call fcn.0052bced
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.00554713
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x21c]
push eax
call fcn.005546d2
lea eax, [esp + 0x218]
push eax
lea eax, [esp + 0x9c]
push eax
push eax
call fcn.00554747
lea eax, [esp + 0x198]
push eax
lea eax, [esp + 0x9c]
push eax
push eax
call fcn.00554686
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.005547cb
mov ecx, ebp
mov edx, ebp
mov al, byte [esp + ecx + 0x78]
mov byte [esi + ecx], al
add ecx, 1
adc edx, ebp
jne 0x52bb96
cmp ecx, 0x20
jb 0x52bb83
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x488
ret 0x18
Function at 0x52d51b
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x6774a6
call fcn.006313fc
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push esi
mov dword [ebp - 0x10], edi
call fcn.0040a0c6
and dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.0040a0c6
lea eax, [esi + 0x30]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x30]
call fcn.0040a0c6
lea eax, [esi + 0x48]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x48]
call fcn.0040a0c6
lea eax, [esi + 0x60]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x60]
call fcn.0040a0c6
lea eax, [esi + 0x78]
mov byte [ebp - 4], 4
push eax
lea ecx, [edi + 0x78]
call fcn.0040a0c6
lea eax, [esi + 0x90]
mov byte [ebp - 4], 5
push eax
lea ecx, [edi + 0x90]
call fcn.0040a0c6
mov eax, dword [esi + 0xa8]
lea ecx, [edi + 0xac]
mov dword [edi + 0xa8], eax
lea eax, [esi + 0xac]
push eax
mov byte [ebp - 4], 6
call fcn.0040a0c6
lea eax, [esi + 0xc4]
mov byte [ebp - 4], 7
push eax
lea ecx, [edi + 0xc4]
call fcn.0040a0c6
lea eax, [esi + 0xdc]
mov byte [ebp - 4], 8
push eax
lea ecx, [edi + 0xdc]
call fcn.0040a0c6
mov eax, dword [esi + 0xf4]
lea ecx, [edi + 0xfc]
mov dword [edi + 0xf4], eax
mov eax, dword [esi + 0xf8]
mov dword [edi + 0xf8], eax
lea eax, [esi + 0xfc]
push eax
mov byte [ebp - 4], 9
call fcn.0040a0c6
lea eax, [esi + 0x114]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [edi + 0x114]
call fcn.0040a0c6
mov byte [ebp - 4], 0xb
lea eax, [esi + 0x12c]
push eax
lea ecx, [edi + 0x12c]
call fcn.0040a0c6
lea eax, [esi + 0x144]
mov byte [ebp - 4], 0xc
push eax
lea ecx, [edi + 0x144]
call fcn.0040a0c6
lea eax, [esi + 0x15c]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [edi + 0x15c]
call fcn.0040a0c6
lea eax, [esi + 0x174]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [edi + 0x174]
call fcn.0040a0c6
mov eax, dword [esi + 0x18c]
lea ecx, [edi + 0x194]
mov dword [edi + 0x18c], eax
mov eax, dword [esi + 0x190]
mov dword [edi + 0x190], eax
lea eax, [esi + 0x194]
push eax
mov byte [ebp - 4], 0xf
call fcn.0040a0c6
lea eax, [esi + 0x1ac]
mov byte [ebp - 4], 0x10
push eax
lea ecx, [edi + 0x1ac]
call fcn.0040a0c6
lea eax, [esi + 0x1c4]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [edi + 0x1c4]
call fcn.0040a0c6
lea eax, [esi + 0x1dc]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [edi + 0x1dc]
call fcn.0040a0c6
lea eax, [esi + 0x1f4]
mov byte [ebp - 4], 0x13
push eax
lea ecx, [edi + 0x1f4]
call fcn.0052d4a0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4