joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50d5f5
Capabilities:
Clear file content
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x7b94ec], 0
push ebx
push esi
push edi
je 0x50d611
cmp byte [0x7b9089], 0
je 0x50d611
xor bl, bl
jmp 0x50d613
mov bl, 1
cmp byte [ebp + 0x20], 0
mov edi, dword [ebp + 8]
je 0x50d64b
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x50d627
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
test eax, 0x200
je 0x50d66e
push 0
lea eax, [ebp + 8]
mov byte [ebp + 0x23], 0
push eax
push 0
push 0
push 1
lea eax, [ebp + 0x23]
push eax
jmp 0x50d662
cmp byte [0x7b9088], 0
je 0x50d66e
push 0
lea eax, [ebp + 8]
push eax
push 0
push 0
push 0
push 0
push 0x900c4
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
cmp byte [ebp + 0x1c], 0
jne 0x50d6df
mov esi, dword [ebp + 0x10]
add esi, 8
mov byte [0x7b9078], 1
test bl, bl
je 0x50d692
push dword [esi + 4]
push dword [esi]
push edi
call fcn.004619c0
jmp 0x50d6b1
push 0
push dword [esi + 4]
push dword [esi]
push edi
call fcn.004616e8
and eax, edx
cmp eax, 0xffffffff
je 0x50d6e9
push edi
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
je 0x50d6e9
cmp byte [0x7b94ec], 0
je 0x50d6d8
cmp byte [0x7b9089], 0
je 0x50d6d8
cmp byte [0x7b9088], 0
jne 0x50d6d8
push dword [esi + 4]
push dword [esi]
push edi
call dword [0x7b9510]
mov byte [0x7b9078], 0
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
mov byte [0x7b9078], 0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
jmp 0x50d6e2

Function at 0x50ec60
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov eax, 0x6ab904
call fcn.00640244
sub esp, 0x14
push ebx
xor ebx, ebx
mov byte [ebp - 0xd], 1
push edi
mov edi, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
push dword [edi + 4]
call fcn.0050e9e4
test al, al
je 0x50ed1a
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
mov edx, dword [ebp - 0x20]
sub eax, edx
sar eax, 2
push esi
mov esi, ebx
test eax, eax
je 0x50eceb
push dword [edx + esi*4]
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
cmp eax, 0xffffffff
jne 0x50ecd6
mov byte [ebp - 0xd], bl
mov edi, ebx
test esi, esi
jle 0x50ecd6
mov eax, dword [ebp - 0x20]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
inc edi
cmp edi, esi
jl 0x50ecc5
mov ecx, dword [ebp - 0x1c]
inc esi
mov edx, dword [ebp - 0x20]
mov eax, ecx
sub eax, edx
sar eax, 2
cmp esi, eax
jb 0x50ecae
mov edi, dword [ebp - 0x14]
sub ecx, edx
sar ecx, 2
pop esi
test ecx, ecx
je 0x50ed0e
push dword [edx + ebx*4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x1c]
inc ebx
mov edx, dword [ebp - 0x20]
sub eax, edx
sar eax, 2
cmp ebx, eax
jb 0x50ecf5
mov al, byte [ebp - 0xd]
test al, al
je 0x50ed18
inc dword [edi + 0x14]
mov bl, al
lea ecx, [ebp - 0x20]
call fcn.004cb21a
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x50edcc
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x6a881d
call fcn.00640244
sub esp, 0x38
and dword [ebp - 0x14], 0
push ebx
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 0x50eded
push 0
lea eax, [ebp - 0x14]
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 [ebp - 0x14]
je 0x50ee23
mov byte [ebp - 0xd], 1
test eax, eax
jne 0x50ee27
mov byte [ebp - 0xd], 0
add eax, esi
push 0xa
push ebx
mov byte [eax + edi + 0xd0], 0
mov eax, dword [ebp - 0x14]
add dword [edi + 0xc], eax
adc dword [edi + 0x10], 0
call fcn.0065af60
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x50ee5c
push 0xd
push ebx
call fcn.0065af60
pop ecx
pop ecx
mov esi, eax
jmp 0x50ef3f
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040eeff
mov eax, esi
mov dword [ebp - 0x18], 0xf
sub eax, edi
xor ecx, ecx
sub eax, 0xd0
mov dword [ebp - 4], ecx
push eax
push ecx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x2c], cl
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040f41e
push 0
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040f52f
jmp 0x50eea5
cmp al, 0x20
jae 0x50eeab
inc esi
mov al, byte [esi]
test al, al
jne 0x50eea0
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50eeb0
sub ecx, edx
lea eax, [ecx + 1]
push eax
push esi
push ebx
call fcn.00658170
push 0xa
push ebx
call fcn.0065af60
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x50eee3
push 0xd
push ebx
call fcn.0065af60
pop ecx
mov esi, eax
pop ecx
test esi, esi
setne al
lea ecx, [edi + 0xac]
movzx eax, al
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00548729
lea ecx, [edi + 0xac]
call fcn.005487cb
fmul qword [0x6cd220]
call fcn.00640b20
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
test eax, eax
je 0x50ef2f
lea ecx, [edi + 0xac]
call fcn.0054840c
call fcn.00640b20
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.0040f52f
test esi, esi
jne 0x50ee5c
cmp byte [ebp - 0xd], 0
jne 0x50ede8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x50f8a3
Capabilities:
Resume thread

Disassembly:
mov eax, 0x6b6853
call fcn.00640244
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 0x50f90e
lea eax, [ebp - 0x18]
push eax
push dword [edi + 4]
call fcn.0050e9e4
test al, al
je 0x50f90e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x50f90b
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 0x50f8e6
dec dword [edi + 0x14]
lea ecx, [ebp - 0x18]
call fcn.004cb21a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x513530
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.0047a3d5
mov eax, dword [esi + 4]
mov ecx, esi
mov edi, dword [ebp + 8]
push edi
mov dword [esi + 0x18], eax
call fcn.0047895a
test eax, eax
je 0x513577
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_bind_to_UPnP_port:__d
push 1
call fcn.00512e99
add esp, 0xc
xor al, al
jmp 0x513604
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 0x5135a9
call edi
push eax
push str.UPnP:_Could_not_setup_socket_to_send_multicast_packets:__d
push 1
call fcn.00512e99
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 0x5135d5
call edi
push eax
push str.UPnP:_Could_not_set_unicast_TTL:__d
push 1
call fcn.00512e99
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 0x513602
call edi
push eax
push str.UPnP:_Could_not_set_multicast_TTL:__d
push 1
call fcn.00512e99
add esp, 0xc
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x51360c
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 0x513646
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_create_socket:__d
push 1
call fcn.00512e99
add esp, 0xc
xor al, al
jmp 0x51374e
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 0x51363f
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 0x513695
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_setsockopt:__d
push esi
call fcn.00512e99
jmp 0x5136da
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 0x5136df
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x6e4cec
push esi
call fcn.00512ceb
add esp, 0xc
jmp 0x51373a
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 0x51373e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_join_multicast_group:__d
push 1
call fcn.00512e99
add esp, 0xc
mov byte [0x7b9567], 1
or dword [0x7b9568], 0xffffffff
mov dword [0x7b956c], esi
xor al, al
jmp 0x51374d
push str.UPnP:_Joined_multicast_group
push esi
call fcn.00512ceb
pop ecx
pop ecx
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x513e76
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 0x514161
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.005140d5
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 0x5141cb
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.0047a3d5
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 0x514206
xor al, al
jmp 0x51422a
push 0x14e7
call fcn.00514116
push eax
lea ecx, [ebp - 0x18]
call fcn.004cb99d
push eax
mov ecx, esi
call fcn.0047895a
mov ecx, esi
call fcn.00479b48
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5212d1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x18]
jmp 0x5212ed
mov ecx, dword [esi]
push 0xffffffffffffffff
mov ecx, dword [ecx + 0xd8]
call fcn.005076fb
add esi, 4
cmp esi, dword [edi + 0x1c]
jne 0x5212db
push dword [esp + 8]
mov eax, dword [edi + 0x18]
lea esi, [edi + 0x24]
push esi
mov dword [edi + 0x1c], eax
push dword [esi + 4]
push dword [esi]
call fcn.0051ebae
mov eax, dword [esi]
push 1
mov dword [esi + 4], eax
push dword [edi + 0x3c]
call fcn.004600c9
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.005087b7
pop edi
pop esi
pop ecx
ret

Function at 0x52a5f3
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 0x52a60a
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.004648f4
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.0047a05f
lea ecx, [ebp - 0x194]
pop edi
lea edx, [ecx + 1]
pop esi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x52a664
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 0x52a81b
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.0047a3d5
cmp dword [edi + 4], 0xffffffff
jne 0x52a84f
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 0x52a972
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 0x52a848
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.004cb99d
push eax
mov ecx, edi
call fcn.0047895a
test eax, eax
jne 0x52a964
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 0x52a964
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 0x52a964
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 0x52a964
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 0x52a964
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 0x52a968
xor al, al
jmp 0x52a971
mov ecx, edi
call fcn.00479b48
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
Function at 0x52f530
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x6aa487
call fcn.00640244
sub esp, 0x30
push ebx
push esi
mov ebx, ecx
mov byte [ebp - 0xd], 1
push edi
mov dword [ebp - 0x24], ebx
call fcn.00478821
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
and dword [ebp - 4], 0
mov esi, 0x7bab48
push edi
push eax
mov ecx, esi
call fcn.004bb8da
mov eax, dword [eax]
cmp eax, dword [0x7bab48]
jne 0x52f59d
push str.session_has_expired
lea ecx, [ebp - 0x3c]
call fcn.0040eeff
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.0052f6a9
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.0040f52f
jmp 0x52f68a
push edi
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0052bebc
mov esi, dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
and dword [esi + 0x2c], 0
mov dword [esi + 0x28], eax
lea eax, [ebp - 0x20]
push edi
mov esi, 0x7bab48
push eax
mov ecx, esi
call fcn.0052bebc
mov ebx, dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
and dword [ebp - 0x14], 0
mov ecx, esi
mov dword [ebp - 0x18], eax
mov dword [ebp + 8], eax
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.0052bebc
mov esi, dword [ebp - 0x20]
mov ecx, dword [esi + 0x94]
mov dword [ebp - 0x1c], ecx
mov eax, ecx
cdq
and eax, dword [ebx + 0x8c]
and edx, dword [ebx + 0x90]
or eax, edx
je 0x52f63b
not ecx
and ecx, dword [ebx + 0x8c]
mov eax, ecx
cdq
mov dword [ebx + 0x8c], eax
mov dword [ebx + 0x90], edx
push dword [esi + 0x94]
push edi
call fcn.0052ff5a
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor edx, edx
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], edx
jmp 0x52f641
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
shl dword [esi + 0x94], 1
cmp dword [esi + 0x94], 0x800000
jne 0x52f65d
mov dword [esi + 0x94], 1
mov ecx, eax
mov eax, edx
sub ecx, dword [ebp - 0x18]
sbb eax, 0
test eax, eax
jg 0x52f681
jl 0x52f672
cmp ecx, 0x64
jae 0x52f681
mov ecx, dword [esi + 0x94]
cmp ecx, dword [ebp - 0x1c]
jne 0x52f5f5
mov ecx, dword [ebp - 0x24]
push edi
call fcn.0052f749
mov dword [ebp - 4], 3
call fcn.00478862
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x531318
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x6aa81b
call fcn.00640244
sub esp, 0x4c
push dword [ebp + 8]
call fcn.0053109e
cmp dword [0x7b188c], 0
jne 0x53133e
push dword [ebp + 8]
call fcn.00530fc4
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
mov ecx, 0x7bab48
push eax
call fcn.0052bebc
mov esi, dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edi, eax
mov dword [ebp - 0x18], edi
jmp 0x5314b1
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor ecx, ecx
sub eax, edi
sbb ecx, ecx
test ecx, ecx
jg 0x5314bb
jl 0x531383
cmp eax, 0x64
jae 0x5314bb
push 0
lea ecx, [esi + 0x4c]
call fcn.004f038d
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x58]
push 0x6cf5cc
push eax
call fcn.004654bc
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
push 0x6dde28
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040eeff
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x28]
call fcn.00471479
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040f52f
push 0x6c0d8c
lea ecx, [ebp - 0x40]
call fcn.0040eeff
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x28]
call fcn.00471479
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040f52f
push 0x6e7568
lea ecx, [ebp - 0x40]
call fcn.0040eeff
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x28]
call fcn.00471479
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040f52f
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.004bc16d
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x10]
call fcn.0052b394
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call fcn.005306cb
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 6
test eax, eax
je 0x531478
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x14]
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 1
call fcn.00532433
sub dword [esi + 0x5c], 1
jne 0x531493
and dword [esi + 0x58], 0
jmp 0x531496
inc dword [esi + 0x58]
lea ecx, [ebp - 0x28]
call fcn.00470d32
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
push 0
push 1
call fcn.0040f52f
mov edi, dword [ebp - 0x18]
cmp dword [esi + 0x5c], 0
jne 0x531364
cmp dword [esi + 0x64], 0
jbe 0x5314d4
mov eax, dword [esi + 0x90]
or dword [esi + 0x8c], 2
mov dword [esi + 0x90], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x53a135
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.00562320
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 + 0x14], ecx
xor esi, esi
mov dword [esp + 0x10], ebx
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x49c]
test edi, edi
jb 0x53a1c4
ja 0x53a1a6
test edx, edx
je 0x53a1c4
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 0x53a1ad
ja 0x53a1c4
cmp ecx, edx
jb 0x53a1ad
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 0x53a1df
cmp ecx, 0x20
jb 0x53a1cb
push 0
pop ebp
add edx, 0x20
lea eax, [esp + 0x118]
adc edi, ebp
push edi
push edx
push esi
push eax
call fcn.00562320
lea eax, [esp + 0x118]
push eax
lea eax, [esp + 0x19c]
push eax
call fcn.005627e1
lea eax, [esp + 0x198]
push eax
lea eax, [esp + 0x29c]
push eax
call fcn.00563034
lea eax, [esp + 0x298]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.00562fc6
mov ecx, ebp
mov edx, ebp
mov al, byte [esp + ecx + 0x58]
mov byte [ecx + ebx], al
add ecx, 1
adc edx, ebp
jne 0x53a24a
cmp ecx, 0x20
jb 0x53a237
push dword [esp + 0x10]
mov eax, dword [esp + 0x4b4]
push dword [esp + 0x18]
add eax, 0x20
push ebx
push eax
push ebx
lea eax, [esp + 0x16c]
push eax
call fcn.0053a43f
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.005627e1
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x21c]
push eax
call fcn.005627a0
lea eax, [esp + 0x218]
push eax
lea eax, [esp + 0x9c]
push eax
push eax
call fcn.00562815
lea eax, [esp + 0x198]
push eax
lea eax, [esp + 0x9c]
push eax
push eax
call fcn.00562752
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.0056289b
mov ecx, ebp
mov edx, ebp
mov al, byte [esp + ecx + 0x78]
mov byte [esi + ecx], al
add ecx, 1
adc edx, ebp
jne 0x53a2e8
cmp ecx, 0x20
jb 0x53a2d5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x488
ret 0x18

Function at 0x543033
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [0x7bad44]
or edx, 0xffffffff
test esi, esi
jne 0x543062
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 8]
cmp eax, 4
jb 0x5430a1
shr eax, 2
mov ecx, dword [esi]
lea esi, [esi + 4]
crc32 edx, ecx
sub eax, 1
jne 0x543051
jmp 0x5430a1
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x5430a1
push ebx
mov ebx, dword [esp + 0xc]
test bl, 7
je 0x543088
movzx eax, byte [ebx]
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [esi + eax*4]
inc ebx
sub ecx, 1
jne 0x54306f
test ecx, ecx
je 0x5430a0
movzx eax, byte [ebx]
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [esi + eax*4]
inc ebx
sub ecx, 1
jne 0x54308c
pop ebx
not edx
mov eax, edx
pop esi
ret 8