joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50d20b
Capabilities:
Resume thread

Disassembly:
mov eax, 0x6b72ec
call fcn.00651da4
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 0x50d276
lea eax, [ebp - 0x18]
push eax
push dword [edi + 4]
call fcn.0050c34c
test al, al
je 0x50d276
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x50d273
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 0x50d24e
dec dword [edi + 0x14]
lea ecx, [ebp - 0x18]
call fcn.005f4b53
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x51107a
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.00477021
mov eax, dword [esi + 4]
mov ecx, esi
mov edi, dword [ebp + 8]
push edi
mov dword [esi + 0x18], eax
call fcn.004755a6
test eax, eax
je 0x5110c1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_bind_to_UPnP_port:__d
push 1
call fcn.00510987
add esp, 0xc
xor al, al
jmp 0x51114e
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 0x5110f3
call edi
push eax
push str.UPnP:_Could_not_setup_socket_to_send_multicast_packets:__d
push 1
call fcn.00510987
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 0x51111f
call edi
push eax
push str.UPnP:_Could_not_set_unicast_TTL:__d
push 1
call fcn.00510987
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 0x51114c
call edi
push eax
push str.UPnP:_Could_not_set_multicast_TTL:__d
push 1
call fcn.00510987
add esp, 0xc
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x511156
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 0x511190
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_create_socket:__d
push 1
call fcn.00510987
add esp, 0xc
xor al, al
jmp 0x511298
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 0x511189
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 0x5111df
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_setsockopt:__d
push esi
call fcn.00510987
jmp 0x511224
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 0x511229
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x6f4864
push esi
call fcn.005107d9
add esp, 0xc
jmp 0x511284
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 0x511288
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_join_multicast_group:__d
push 1
call fcn.00510987
add esp, 0xc
mov byte [0x7cebb7], 1
or dword [0x7cebb8], 0xffffffff
mov dword [0x7cebbc], esi
xor al, al
jmp 0x511297
push str.UPnP:_Joined_multicast_group
push esi
call fcn.005107d9
pop ecx
pop ecx
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5119c0
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 0x511cab
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.00511c1f
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 0x511d15
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.00477021
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 0x511d50
xor al, al
jmp 0x511d74
push 0x14e7
call fcn.00511c60
push eax
lea ecx, [ebp - 0x18]
call fcn.004c86e3
push eax
mov ecx, esi
call fcn.004755a6
mov ecx, esi
call fcn.00476794
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x51ecd5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x18]
jmp 0x51ecf1
mov ecx, dword [esi]
push 0xffffffffffffffff
mov ecx, dword [ecx + 0xd8]
call fcn.00505107
add esi, 4
cmp esi, dword [edi + 0x1c]
jne 0x51ecdf
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.0051c619
mov eax, dword [esi]
push 1
mov dword [esi + 4], eax
push dword [edi + 0x3c]
call fcn.0045c46f
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.005061b2
pop edi
pop esi
pop ecx
ret

Function at 0x52806f
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 0x528086
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.00461427
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.00476cab
lea ecx, [ebp - 0x194]
pop edi
lea edx, [ecx + 1]
pop esi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5280e0
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 0x528297
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.00477021
cmp dword [edi + 4], 0xffffffff
jne 0x5282cb
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 0x5283ee
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 0x5282c4
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.004c86e3
push eax
mov ecx, edi
call fcn.004755a6
test eax, eax
jne 0x5283e0
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 0x5283e0
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 0x5283e0
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 0x5283e0
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 0x5283e0
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 0x5283e4
xor al, al
jmp 0x5283ed
mov ecx, edi
call fcn.00476794
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
Function at 0x52cfc2
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x6b8ecb
call fcn.00651da4
sub esp, 0x30
push ebx
push esi
mov ebx, ecx
mov byte [ebp - 0xd], 1
push edi
mov dword [ebp - 0x24], ebx
call fcn.00475363
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
and dword [ebp - 4], 0
mov esi, 0x7d0198
push edi
push eax
mov ecx, esi
call fcn.004b8736
mov eax, dword [eax]
cmp eax, dword [0x7d0198]
jne 0x52d02f
push str.session_has_expired
lea ecx, [ebp - 0x3c]
call fcn.0040f49f
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.0052d13b
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.0040facf
jmp 0x52d11c
push edi
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0052994f
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, 0x7d0198
push eax
mov ecx, esi
call fcn.0052994f
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.0052994f
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 0x52d0cd
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.0052d9ec
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor edx, edx
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], edx
jmp 0x52d0d3
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
shl dword [esi + 0x94], 1
cmp dword [esi + 0x94], 0x800000
jne 0x52d0ef
mov dword [esi + 0x94], 1
mov ecx, eax
mov eax, edx
sub ecx, dword [ebp - 0x18]
sbb eax, 0
test eax, eax
jg 0x52d113
jl 0x52d104
cmp ecx, 0x64
jae 0x52d113
mov ecx, dword [esi + 0x94]
cmp ecx, dword [ebp - 0x1c]
jne 0x52d087
mov ecx, dword [ebp - 0x24]
push edi
call fcn.0052d1db
mov dword [ebp - 4], 3
call fcn.004753a4
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 0x52edaa
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x6b925f
call fcn.00651da4
sub esp, 0x4c
push dword [ebp + 8]
call fcn.0052eb30
cmp dword [0x7c6e70], 0
jne 0x52edd0
push dword [ebp + 8]
call fcn.0052ea56
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
mov ecx, 0x7d0198
push eax
call fcn.0052994f
mov esi, dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edi, eax
mov dword [ebp - 0x18], edi
jmp 0x52ef43
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor ecx, ecx
sub eax, edi
sbb ecx, ecx
test ecx, ecx
jg 0x52ef4d
jl 0x52ee15
cmp eax, 0x64
jae 0x52ef4d
push 0
lea ecx, [esi + 0x4c]
call fcn.004733af
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x58]
push 0x6df2e4
push eax
call fcn.00461fef
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 str.btapp
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040f49f
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x28]
call fcn.0046e2e5
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040facf
push 0x6d1eb4
lea ecx, [ebp - 0x40]
call fcn.0040f49f
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x28]
call fcn.0046e2e5
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040facf
push 0x6f7108
lea ecx, [ebp - 0x40]
call fcn.0040f49f
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x28]
call fcn.0046e2e5
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040facf
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.004b904e
lea eax, [esi + 0x30]
push eax
lea ecx, [ebp - 0x10]
call fcn.00528e96
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call fcn.0052e15d
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 6
test eax, eax
je 0x52ef0a
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.0052ff16
sub dword [esi + 0x5c], 1
jne 0x52ef25
and dword [esi + 0x58], 0
jmp 0x52ef28
inc dword [esi + 0x58]
lea ecx, [ebp - 0x28]
call fcn.0046db9e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
push 0
push 1
call fcn.0040facf
mov edi, dword [ebp - 0x18]
cmp dword [esi + 0x5c], 0
jne 0x52edf6
cmp dword [esi + 0x64], 0
jbe 0x52ef66
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 0x538039
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.0055fd37
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 0x5380c8
ja 0x5380aa
test edx, edx
je 0x5380c8
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 0x5380b1
ja 0x5380c8
cmp ecx, edx
jb 0x5380b1
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 0x5380e3
cmp ecx, 0x20
jb 0x5380cf
push 0
pop ebp
add edx, 0x20
lea eax, [esp + 0x118]
adc edi, ebp
push edi
push edx
push esi
push eax
call fcn.0055fd37
lea eax, [esp + 0x118]
push eax
lea eax, [esp + 0x19c]
push eax
call fcn.005601f8
lea eax, [esp + 0x198]
push eax
lea eax, [esp + 0x29c]
push eax
call fcn.00560a4b
lea eax, [esp + 0x298]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.005609dd
mov ecx, ebp
mov edx, ebp
mov al, byte [esp + ecx + 0x58]
mov byte [ecx + ebx], al
add ecx, 1
adc edx, ebp
jne 0x53814e
cmp ecx, 0x20
jb 0x53813b
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.00538343
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.005601f8
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x21c]
push eax
call fcn.005601b7
lea eax, [esp + 0x218]
push eax
lea eax, [esp + 0x9c]
push eax
push eax
call fcn.0056022c
lea eax, [esp + 0x198]
push eax
lea eax, [esp + 0x9c]
push eax
push eax
call fcn.00560169
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.005602b2
mov ecx, ebp
mov edx, ebp
mov al, byte [esp + ecx + 0x78]
mov byte [esi + ecx], al
add ecx, 1
adc edx, ebp
jne 0x5381ec
cmp ecx, 0x20
jb 0x5381d9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x488
ret 0x18

Function at 0x53a795
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor edx, edx
push edi
mov edi, dword [esp + 0xc]
cmp esi, 4
jb 0x53a7bd
mov ecx, esi
shr ecx, 2
mov eax, dword [edi]
sub esi, 4
xor edx, eax
add edi, 4
rol edx, 0xd
sub ecx, 1
jne 0x53a7ab
test esi, esi
je 0x53a7cf
movzx ecx, byte [edi]
xor edx, ecx
inc edi
rol edx, 8
sub esi, 1
jne 0x53a7c1
pop edi
mov eax, edx
pop esi
ret 8
Function at 0x540f26
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [0x7d03c4]
or edx, 0xffffffff
test esi, esi
jne 0x540f55
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 8]
cmp eax, 4
jb 0x540f94
shr eax, 2
mov ecx, dword [esi]
lea esi, [esi + 4]
crc32 edx, ecx
sub eax, 1
jne 0x540f44
jmp 0x540f94
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x540f94
push ebx
mov ebx, dword [esp + 0xc]
test bl, 7
je 0x540f7b
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 0x540f62
test ecx, ecx
je 0x540f93
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 0x540f7f
pop ebx
not edx
mov eax, edx
pop esi
ret 8

Function at 0x5416f1
Capabilities:
Create directory

Disassembly:
mov eax, 0x6ba3a6
call fcn.00651da4
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [esi], 0x6f1198
mov dword [ebp - 4], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0x14]
push dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [esi + 0x10], eax
call fcn.0042812e
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 2
jb 0x541747
mov edi, dword [edi]
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov ecx, esi
call fcn.00541a81
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x542181
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x44
mov eax, 0x6ba41a
call fcn.00651da4
sub esp, 0x44
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x18], edi
jne 0x5421a5
push 3
pop edi
jmp 0x542326
push ebx
lea ebx, [esi + 0x60]
push ebx
call fcn.0045d460
test al, al
jne 0x5421bb
push 2
pop edi
jmp 0x542325
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
test al, al
jne 0x5421ce
xor edi, edi
inc edi
jmp 0x542325
xor eax, eax
mov dword [ebp + 0x44], 7
mov dword [ebp + 0x40], edi
mov word [ebp + 0x30], ax
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
mov dword [ebp - 4], edi
call dword [eax + 0xc]
mov byte [ebp - 4], 1
cmp dword [esi + 0x48], edi
jne 0x5421fb
cmp dword [ebp + 0x18], 0
je 0x54225e
mov edi, 0x6d2e88
push edi
call fcn.004287c6
pop ecx
push eax
push edi
lea ecx, [ebp + 0x30]
call fcn.004286de
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp + 0x30]
call fcn.00428537
push edi
call fcn.004287c6
pop ecx
push eax
push edi
lea ecx, [ebp + 0x30]
call fcn.004285c7
mov edi, 0x6d1c94
push edi
call fcn.004287c6
pop ecx
push eax
push edi
lea ecx, [ebp + 0x30]
call fcn.004285c7
cmp dword [ebp + 0x18], 0
lea eax, [esi + 0x38]
je 0x542251
lea eax, [ebp + 8]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp + 0x30]
call fcn.00428537
xor eax, eax
lea edi, [ebp + 0x20]
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x50]
pop edi
push edi
push 0
push eax
call fcn.0066c620
lea eax, [esi + 0x20]
mov dword [ebp - 0x50], edi
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x542287
mov eax, dword [eax]
cmp dword [ebp + 0x44], 8
mov ecx, dword [ebp + 0x30]
jae 0x542293
lea ecx, [ebp + 0x30]
cmp dword [ebx + 0x14], 8
jb 0x54229b
mov ebx, dword [ebx]
lea edx, [ebp + 0x20]
xor edi, edi
push edx
lea edx, [ebp - 0x50]
push edx
push eax
push edi
push dword [esi + 0x54]
push edi
push edi
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x5422bd
push 5
jmp 0x5422ce
push dword [ebp + 0x24]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp + 0x20], 0xffffffff
jne 0x5422d1
push 4
pop edi
jmp 0x54230d
mov ecx, esi
call fcn.005424a8
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x78], eax
mov eax, dword [ebp + 0x28]
mov dword [esi + 0x90], eax
lea eax, [ebp]
push eax
call fcn.00542339
mov ecx, eax
mov eax, dword [ecx]
mov dword [esi + 0xb0], eax
mov eax, dword [ecx + 4]
mov dword [esi + 0xb4], eax
mov dword [esi + 0x94], 1
push 0
push 1
lea ecx, [ebp + 8]
call fcn.004284eb
push 0
push 1
lea ecx, [ebp + 0x30]
call fcn.004284eb
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
lea esp, [ebp + 0x48]
pop ebp
ret