joyce8/EMBER2024-capa huggingface dataset:
Function at 0x507cac
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.0046d9de
mov eax, dword [esi + 4]
mov ecx, esi
mov edi, dword [ebp + 8]
push edi
mov dword [esi + 0x18], eax
call fcn.0046bf1b
test eax, eax
je 0x507cf3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_bind_to_UPnP_port:__d
push 1
call fcn.0050757a
add esp, 0xc
xor al, al
jmp 0x507d80
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 0x507d25
call edi
push eax
push str.UPnP:_Could_not_setup_socket_to_send_multicast_packets:__d
push 1
call fcn.0050757a
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 0x507d51
call edi
push eax
push str.UPnP:_Could_not_set_unicast_TTL:__d
push 1
call fcn.0050757a
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 0x507d7e
call edi
push eax
push str.UPnP:_Could_not_set_multicast_TTL:__d
push 1
call fcn.0050757a
add esp, 0xc
mov al, 1
pop edi
pop esi
leave
ret 4
Function at 0x507d86
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 0x507dc0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_create_socket:__d
push 1
call fcn.0050757a
add esp, 0xc
xor al, al
jmp 0x507ec8
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 0x507db9
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 0x507e0f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_setsockopt:__d
push esi
call fcn.0050757a
jmp 0x507e54
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 0x507e59
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x6ee34c
push esi
call fcn.005073df
add esp, 0xc
jmp 0x507eb4
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 0x507eb8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_join_multicast_group:__d
push 1
call fcn.0050757a
add esp, 0xc
mov byte [0x7c2f4f], 1
or dword [0x7c2f50], 0xffffffff
mov dword [0x7c2f54], esi
xor al, al
jmp 0x507ec7
push str.UPnP:_Joined_multicast_group
push esi
call fcn.005073df
pop ecx
pop ecx
mov al, 1
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 2
pop edi
push dword [ebp + 8]
xor ebx, ebx
mov word [ebp - 0x14], di
mov eax, 0xe714
mov word [ebp - 4], bx
mov esi, ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
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 ebx
push edi
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_sendto]
pop edi
test eax, eax
pop esi
setg al
pop ebx
leave
ret 4
Function at 0x5088ec
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
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.00508860
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
push 2
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]
test eax, eax
pop esi
setg al
leave
ret 0x10

Function at 0x50894f
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.0046d9de
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 0x50898a
xor al, al
jmp 0x5089ae
push 0x14e7
call fcn.005088a1
push eax
lea ecx, [ebp - 0x18]
call fcn.004bfece
push eax
mov ecx, esi
call fcn.0046bf1b
mov ecx, esi
call fcn.0046d15e
mov al, 1
pop esi
leave
ret
Function at 0x51bcd6
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 0x51bced
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.00456bfe
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.0046d685
lea ecx, [ebp - 0x194]
pop edi
lea edx, [ecx + 1]
pop esi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51bd47
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]
test eax, eax
pop ebx
setg al
leave
ret 8

Function at 0x51bf14
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.0046d9de
cmp dword [edi + 4], 0xffffffff
jne 0x51bf48
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 0x51c063
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0xc]
push ebp
push 4
push eax
push 4
push 0xffff
push dword [edi + 4]
mov dword [esp + 0x24], 1
call esi
test eax, eax
jne 0x51c060
mov ebx, dword [esp + 0x34]
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.004bfece
push eax
mov ecx, edi
call fcn.0046bf1b
test eax, eax
jne 0x51c060
push dword [ebx + 0xc]
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 0x51c060
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 0x51c060
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 0x51c060
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 0x51c060
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
jne 0x51c060
mov ecx, edi
call fcn.0046d15e
mov al, 1
jmp 0x51c062
xor al, al
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4
Function at 0x520be8
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x6b50ec
call fcn.00664608
sub esp, 0x3c
push ebx
push esi
mov ebx, ecx
mov byte [ebp - 0xd], 1
push edi
mov dword [ebp - 0x20], ebx
call fcn.0046bca7
mov edi, dword [ebp + 8]
mov esi, 0x7c4530
and dword [ebp - 4], 0
mov ecx, esi
push edi
call fcn.0045878b
cmp eax, dword [0x7c4530]
jne 0x520c96
xor eax, eax
mov dword [ebp - 0x34], 0xf
push str.session_has_expired
mov byte [ebp + 8], al
lea ecx, [ebp - 0x48]
push dword [ebp + 8]
mov dword [ebp - 0x48], eax
push 0x13
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x48], al
call fcn.0041039b
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.00520d8c
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x520d6f
mov ecx, dword [ebp - 0x48]
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x14], ecx
cmp eax, 0x1000
jb 0x520c88
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004279ae
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
jmp 0x520d6f
push edi
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.0051d140
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
and dword [esi + 0x2c], 0
mov dword [esi + 0x28], eax
lea eax, [ebp - 0x28]
push edi
mov esi, 0x7c4530
push eax
mov ecx, esi
call fcn.0051d140
mov ebx, dword [eax]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x14], eax
mov ecx, esi
mov dword [ebp + 8], eax
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.0051d140
mov esi, dword [eax]
mov eax, dword [esi + 0x98]
mov ecx, eax
mov dword [ebp - 0x18], eax
mov eax, ecx
cdq
and eax, dword [ebx + 0x90]
and edx, dword [ebx + 0x94]
or eax, edx
je 0x520d30
not ecx
and ecx, dword [ebx + 0x90]
mov eax, ecx
cdq
mov dword [ebx + 0x90], eax
mov dword [ebx + 0x94], edx
push dword [esi + 0x98]
push edi
call fcn.00521ad6
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [esi + 0x98]
mov dword [ebp + 8], eax
jmp 0x520d33
mov eax, dword [ebp + 8]
add ecx, ecx
mov dword [esi + 0x98], ecx
cmp ecx, 0x800000
jne 0x520d4c
xor ecx, ecx
inc ecx
mov dword [esi + 0x98], ecx
mov edx, eax
sub edx, dword [ebp - 0x14]
push 0
pop eax
sbb eax, eax
test eax, eax
jg 0x520d66
jl 0x520d61
cmp edx, 0x64
jae 0x520d66
cmp ecx, dword [ebp - 0x18]
jne 0x520ce9
mov ecx, dword [ebp - 0x20]
push edi
call fcn.00520e2e
mov dword [ebp - 4], 3
call fcn.0046bce8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x52c351
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.00553ab8
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 ebp, edx
mov esi, dword [esp + 0x49c]
add ebp, 0x40
mov byte [esp + 0x37], al
mov ecx, edi
mov eax, dword [esp + 0x4a0]
adc ecx, 0
mov dword [esp + 0x14], ecx
xor ebx, ebx
mov dword [esp + 0x10], ebp
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [eax], ebp
test edi, edi
jb 0x52c3e4
ja 0x52c3c2
test edx, edx
je 0x52c3e4
mov ebp, dword [esp + 0x4a4]
mov al, byte [ecx + ebp]
mov byte [ecx + esi + 0x40], al
add ecx, 1
adc ebx, 0
cmp ebx, edi
jb 0x52c3c9
ja 0x52c3e0
cmp ecx, edx
jb 0x52c3c9
mov ebp, dword [esp + 0x10]
xor ecx, ecx
xor ebx, ebx
mov al, byte [esp + ecx + 0x38]
mov byte [ecx + esi + 0x20], al
add ecx, 1
adc ebx, 0
jne 0x52c3fd
cmp ecx, 0x20
jb 0x52c3e8
push 0
pop ebx
add edx, 0x20
lea eax, [esi + 0x20]
adc edi, ebx
push edi
push edx
push eax
lea eax, [esp + 0x124]
push eax
call fcn.00553ab8
lea eax, [esp + 0x118]
push eax
lea eax, [esp + 0x19c]
push eax
call fcn.00553f5a
lea eax, [esp + 0x198]
push eax
lea eax, [esp + 0x29c]
push eax
call fcn.005547a8
lea eax, [esp + 0x298]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0055473c
mov ecx, ebx
mov edx, ebx
mov al, byte [esp + ecx + 0x58]
mov byte [ecx + esi], al
add ecx, 1
adc edx, ebx
jne 0x52c46b
cmp ecx, 0x20
jb 0x52c458
push dword [esp + 0x14]
mov eax, dword [esp + 0x4b4]
push ebp
push esi
add eax, 0x20
push eax
push esi
lea eax, [esp + 0x16c]
push eax
call fcn.0052c64e
lea eax, [esp + 0x158]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.00553f5a
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x21c]
push eax
call fcn.00553f1b
lea eax, [esp + 0x218]
push eax
lea eax, [esp + 0x9c]
push eax
push eax
call fcn.00553f8c
lea eax, [esp + 0x198]
push eax
lea eax, [esp + 0x9c]
push eax
push eax
call fcn.00553ecd
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.00554012
mov ecx, ebx
mov edx, ebx
mov al, byte [esp + ecx + 0x78]
mov byte [ecx + esi + 0x20], al
add ecx, 1
adc edx, ebx
jne 0x52c507
cmp ecx, 0x20
jb 0x52c4f3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x488
ret 0x18

Function at 0x53542a
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [0x7c472c]
or edx, 0xffffffff
test esi, esi
jne 0x535459
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 8]
cmp eax, 4
jb 0x535498
shr eax, 2
mov ecx, dword [esi]
lea esi, [esi + 4]
crc32 edx, ecx
sub eax, 1
jne 0x535448
jmp 0x535498
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x535498
push ebx
mov ebx, dword [esp + 0xc]
test bl, 7
je 0x535483
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 0x535466
test ecx, ecx
je 0x535497
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 0x535483
pop ebx
not edx
mov eax, edx
pop esi
ret 8
Function at 0x535af2
Capabilities:
Create directory

Disassembly:
mov eax, 0x6b6649
call fcn.00664608
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
xor ebx, ebx
mov dword [esi], 0x6eac54
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 dword [esi + 0x10], eax
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [edi], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
call fcn.00427a37
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 2
jb 0x535b50
mov edi, dword [edi]
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov ecx, esi
call fcn.00535e99
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x5365ee
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x48
mov eax, 0x6b66c0
call fcn.00664608
sub esp, 0x44
push ebx
mov ebx, ecx
push esi
xor esi, esi
cmp dword [ebx + 0x1c], esi
jne 0x536612
push 3
pop esi
jmp 0x5367bb
push edi
lea edi, [ebx + 0x64]
push edi
call fcn.004526fa
test al, al
jne 0x536628
push 2
pop esi
jmp 0x5367ba
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
test al, al
jne 0x53663b
xor esi, esi
inc esi
jmp 0x5367ba
xor eax, eax
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x44], 7
mov word [ebp + 0x30], ax
mov eax, dword [ebx]
lea ecx, [ebp]
push ecx
mov ecx, ebx
mov dword [ebp - 4], esi
call dword [eax + 0xc]
mov byte [ebp - 4], 1
cmp dword [ebx + 0x4c], esi
jne 0x53666b
cmp dword [ebp + 0x10], 0
je 0x5366ca
push 0x6ceed8
lea ecx, [ebp + 0x30]
call fcn.00427ba3
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x536682
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp + 0x30]
push eax
call fcn.00427b45
push 0x6ceed8
lea ecx, [ebp + 0x30]
call fcn.00437714
push 0x6cdce8
lea ecx, [ebp + 0x30]
call fcn.00437714
cmp dword [ebp + 0x10], 0
lea eax, [ebx + 0x3c]
je 0x5366b4
lea eax, [ebp]
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x5366be
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp + 0x30]
call fcn.00427b45
xor eax, eax
lea edi, [ebp + 0x18]
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 esi
push eax
call fcn.006678b0
lea ecx, [ebx + 0x24]
mov dword [ebp - 0x50], edi
add esp, 0xc
cmp dword [ecx + 0x14], 8
jb 0x5366f2
mov ecx, dword [ecx]
cmp dword [ebp + 0x44], 8
lea edx, [ebp + 0x30]
jb 0x5366fe
mov edx, dword [ebp + 0x30]
lea eax, [ebx + 0x64]
cmp dword [eax + 0x14], 8
jb 0x536709
mov eax, dword [eax]
lea edi, [ebp + 0x18]
push edi
lea edi, [ebp - 0x50]
push edi
push ecx
push esi
push dword [ebx + 0x58]
push esi
push esi
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
jne 0x536729
push 5
jmp 0x53673a
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp + 0x18], 0xffffffff
jne 0x53673d
push 4
pop esi
jmp 0x536777
mov ecx, ebx
call fcn.0053694c
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x7c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x94], eax
lea eax, [ebp + 0x28]
push eax
call fcn.005367ce
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebx + 0xb8], ecx
mov dword [ebx + 0xbc], eax
mov dword [ebx + 0x98], 1
lea ecx, [ebp]
call fcn.00427afc
mov eax, dword [ebp + 0x44]
cmp eax, 8
jb 0x5367ba
mov ecx, dword [ebp + 0x30]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x48], eax
mov dword [ebp + 0x2c], ecx
cmp eax, 0x1000
jb 0x5367b1
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp + 0x2c]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x4c
leave
ret
Function at 0x536ffb
Capabilities:
Terminate process

Disassembly:
mov eax, 0x6a73a6
call fcn.00664608
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
inc esi
lea ebx, [edi + 0x9c]
push ebx
call fcn.0045d7af
mov eax, dword [edi + 0x98]
cmp eax, esi
je 0x537036
cmp eax, 2
je 0x537036
cmp eax, 6
jne 0x53705c
mov ecx, edi
call fcn.00536964
jmp 0x53705c
push esi
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
test eax, eax
je 0x53704f
push 3
pop esi
mov dword [edi + 0x98], esi
jmp 0x53705c
push 4
pop esi
mov dword [edi + 0x98], 5
and dword [ebp - 4], 0
push ebx
call fcn.0045d8ec
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x538220
Capabilities:
Create thread

Disassembly:
mov eax, 0x6b67cf
call fcn.00664608
push ecx
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
je 0x538242
mov eax, 0x6f3fac
mov dword [esi + 4], eax
jmp 0x538245
mov eax, dword [esi + 4]
mov dword [esi], method.std::_Facet_base.virtual_4
xor edi, edi
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], 0x6f3f74
mov dword [esi + 8], 0x6ce08c
mov dword [esi + 0xc], edi
mov eax, dword [esi + 4]
mov dword [esi], 0x6f3f8c
mov dword [esi + 8], 0x6f3f94
mov dword [ebp - 4], edi
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], 0x6f3fa0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x94]
mov dword [ecx + esi], eax
lea ecx, [esi + 0x28]
call fcn.0055504a
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 1
call fcn.0055504a
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
push 0x6f3fb4
lea eax, [esi + 0x10]
mov byte [ebp - 4], 4
push eax
mov dword [esi + 0x8c], edi
call fcn.0045d875
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov dword [esi + 0x68], eax
lea eax, [esi + 0x88]
push eax
push edi
push esi
push 0x53864a
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x6c], eax
mov eax, esi
mov byte [esi + 0x90], 1
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x538312
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 4], esi
or dword [esi + 8], 0xffffffff
mov dword [esi + 0x14], eax
mov al, byte [ebp + 0xc]
mov byte [esi + 0x18], al
lea eax, [esi + 0x10]
push eax
push ecx
push esi
push 0x538b64
push ecx
push ecx
mov dword [esi + 4], ecx
mov dword [esi], 0x6f3f80
mov byte [esi + 0xc], cl
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 8], eax
mov eax, esi
pop esi
leave
ret 8
Function at 0x548702
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x6b7705
call fcn.00664608
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
and dword [ebp - 4], 0
and dword [edi + 4], 0
mov dword [edi + 8], 0x6df188
mov esi, dword [ebp + 8]
lea ecx, [edi + 0xc]
push 0xffffffffffffffff
mov dword [edi], 0x6f5cf4
mov dword [edi + 8], 0x6f5d00
push dword [esi + 0xd8]
mov byte [ebp - 4], 2
call fcn.004f986f
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
or dword [edi + 0x28], 0xffffffff
or dword [edi + 0x2c], 0xffffffff
and dword [edi + 0x30], 0
mov dword [edi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x38], eax
lea eax, [ebp + 0xb]
mov dword [edi + 0x24], ecx
lea ecx, [edi + 0x3c]
push eax
mov dword [ebp + 8], ecx
lea eax, [ebp + 0x18]
fldz
push eax
fstp dword [ebp + 0x18]
mov byte [ebp - 4], 3
mov dword [edi + 0x34], esi
call fcn.00480df4
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 4
push eax
lea ecx, [edi + 0x60]
call fcn.0047a8b2
lea ecx, [ebp + 0x20]
call fcn.00443d95
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x40