joyce8/EMBER2024-capa huggingface dataset:
Function at 0x510d03
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5b31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x1c], 0x10
push edi
lea ecx, [ebp - 0x1c]
or edi, 0xffffffff
push ecx
mov eax, dword [esi + 0x134]
lea ecx, [ebp - 0x14]
mov ebx, dword [esi]
push ecx
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x510d5a
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
mov edx, dword [ebp - 0x18]
mov ecx, esi
call fcn.0050004b
cmp edi, 0xffffffff
jne 0x510d7b
push str.Error_accept__ing_server_connect
push ebx
call fcn.00500d35
pop ecx
pop ecx
push 0x1e
pop eax
jmp 0x510ddf
push str.Connection_accepted_from_server_n
push ebx
call fcn.00500cc1
pop ecx
pop ecx
lea eax, [ebp - 0x18]
mov dword [esi + 0x134], edi
push eax
push 0x8004667e
push edi
mov dword [ebp - 0x18], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xor ecx, ecx
inc ecx
mov dword [esi + 0x13c], ecx
mov eax, dword [ebx + 0x16c]
test eax, eax
je 0x510ddd
push ecx
push edi
push dword [ebx + 0x170]
call eax
add esp, 0xc
test eax, eax
je 0x510ddd
mov edx, edi
mov ecx, esi
call fcn.0050004b
or dword [esi + 0x134], 0xffffffff
push 0x2a
jmp 0x510d78
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054e63c
mov esp, ebp
pop ebp
ret
Function at 0x5128b0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], 0x64
mov eax, ebx
cdq
idiv dword [ebp - 4]
push esi
push edi
mov edi, ecx
xor esi, esi
mov ecx, dword [edi]
cmp eax, 2
je 0x5128e4
push str.Couldnt_set_desired_mode
push ecx
call fcn.00500d35
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x512939
cmp ebx, 0xc8
je 0x5128fb
push ebx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.00500cc1
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x51290c
mov ecx, edi
call fcn.00511b6d
jmp 0x512935
cmp eax, 0x14
jne 0x51291a
mov ecx, edi
call fcn.00511bb3
jmp 0x512935
cmp eax, 0x15
jne 0x512923
push 0xd
jmp 0x51292a
cmp eax, 0x16
jne 0x512937
push 0xe
xor edx, edx
mov ecx, edi
inc edx
call fcn.00511f7e
pop ecx
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x514d1b
Capabilities:
Parse pe header

Disassembly:
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x514d26
jmp dword [eax*4 + 0x514d7f]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, cl
ret

Function at 0x514e97
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x5b31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x198]
mov esi, ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x514ed1
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.00500d35
add esp, 0xc
jmp 0x514ef9
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x514eec
shr eax, 8
test al, al
jne 0x514eec
xor eax, eax
jmp 0x514efc
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.00500d35
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0054e63c
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
mov esi, ecx
mov byte [ebp - 2], al
push 3
lea eax, [ebp - 4]
mov byte [ebp - 4], 0xff
push eax
push dword [esi + 0x130]
mov edi, dword [esi]
mov ebx, edx
mov byte [ebp - 3], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x51513a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00500d35
add esp, 0xc
push dword [ebp + 8]
mov ecx, dword [esi]
mov edx, str.SENT
push ebx
call fcn.0051500a
pop ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5158d9
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x914
mov eax, dword [0x5b31c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, ecx
push esi
mov dword [ebp - 0x90c], eax
push edi
mov esi, dword [eax]
mov ecx, esi
mov dword [ebp - 0x910], esi
mov ebx, dword [esi + 0x8684]
mov eax, dword [ebx + 0x1eb4]
sub eax, dword [ebx + 0x1eb0]
add eax, 2
push eax
lea eax, [ebx + 0x1cb0]
push eax
push 0x3c
pop edx
call fcn.005153d6
mov eax, dword [ebx + 0x1eb0]
pop ecx
pop ecx
movzx ecx, byte [eax]
inc eax
mov dword [ebx + 0x1eb0], eax
cmp ecx, 0x18
je 0x515a4c
cmp ecx, 0x23
je 0x515a28
cmp ecx, 0x27
jne 0x515ade
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x908]
push 0x800
push eax
call fcn.0050af08
mov ebx, dword [ebx + 0x1cac]
add esp, 0x1c
push 4
pop edi
test ebx, ebx
je 0x5159fb
mov ecx, dword [ebx]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51598b
sub ecx, edx
lea esi, [edi + 1]
add esi, ecx
cmp esi, 0x7fa
jae 0x5159ee
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x108]
push eax
push str._127_____127s
push dword [ebx]
call dword [sym.imp.MSVCR120.dll_sscanf]
lea eax, [ebp - 0x88]
push eax
push 1
lea eax, [ebp - 0x108]
push eax
push 0
mov eax, 0x800
sub eax, edi
push str._c_s_c_s
push eax
lea eax, [ebp - 0x908]
add eax, edi
push eax
call fcn.0050af08
add esp, 0x2c
mov edi, esi
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x515986
mov esi, dword [ebp - 0x910]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, edi
push 0x58ca54
push eax
lea eax, [ebp - 0x908]
add eax, edi
push eax
call fcn.0050af08
add esp, 0x14
add edi, 2
jmp 0x515a92
add ebx, 0x1c28
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x515a33
push 0xf0
mov eax, 0xff
push eax
push ebx
push 0
push 0x23
jmp 0x515a6e
add ebx, 0x1c08
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x515a57
push 0xf0
mov eax, 0xff
push eax
push ebx
push 0
push 0x18
push 0xfa
push eax
push str._c_c_c_c_s_c_c
sub ecx, edx
lea eax, [ebp - 0x908]
push 0x800
push eax
lea edi, [ecx + 6]
call fcn.0050af08
add esp, 0x28
push 0
push edi
lea eax, [ebp - 0x908]
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x515ac7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00500d35
add esp, 0xc
lea eax, [edi - 2]
mov ecx, esi
push eax
lea eax, [ebp - 0x906]
push eax
push 0x3e
pop edx
call fcn.005153d6
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054e63c
mov esp, ebp
pop ebp
ret
Function at 0x515aef
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
mov dword [ebp - 0xc], eax
push ebx
push esi
mov eax, dword [eax]
mov dword [ebp - 8], eax
push edi
mov ebx, dword [eax + 0x8684]
cmp edx, 0x1f
jne 0x515c3b
lea eax, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], eax
cmp eax, edi
jae 0x515b28
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x515b33
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x515b3e
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [ebp - 4], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [ebp - 4]
movzx edx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x515b6e
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x515b78
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x515b82
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x515b8c
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x515b97
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x515ba2
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
lea esi, [ebx + 0x1cb0]
mov dword [ebx + 0x1eb4], eax
sub eax, esi
sub eax, 2
mov dword [edi], esi
mov edi, dword [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
pop edx
call fcn.005153d6
pop ecx
pop ecx
push 0
push 3
push esi
mov esi, dword [ebp - 0xc]
push dword [esi + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x515bfb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00500d35
add esp, 0xc
push 4
lea edx, [ebx + 0x1cb3]
mov ecx, esi
call fcn.00515fc2
pop ecx
push 0
push 2
lea eax, [ebx + 0x1cb7]
push eax
push dword [esi + 0x130]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x515c3b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.00500d35
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x518ab9
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
and dword [ebp - 0xc], edi
and dword [eax], edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], edi
push edx
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x518c1e
push esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], esi
test esi, esi
je 0x518c0a
push ebx
cmp dword [esi + 4], 2
jne 0x518baa
cmp dword [esi + 0x18], 0
je 0x518baa
cmp dword [esi + 0x10], 0
jbe 0x518baa
cmp dword [esi + 0x10], 0x10
jb 0x518baa
push 0x20
call dword [0x5b6c40]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x518bfe
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
and dword [ebx + 0x18], 0
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push 0x10
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 0x10
call dword [0x5b6c40]
mov dword [ebx + 0x18], eax
pop ecx
test eax, eax
je 0x518bf2
mov esi, dword [esi + 0x18]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x10]
cmp dword [esi + 0x14], 0
je 0x518b92
push dword [esi + 0x14]
call dword [0x5b6c44]
mov dword [ebx + 0x14], eax
pop ecx
test eax, eax
je 0x518bdb
mov edi, dword [ebp - 4]
test edi, edi
mov eax, dword [ebp - 0xc]
cmove edi, ebx
mov dword [ebp - 4], edi
test eax, eax
je 0x518ba7
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov esi, dword [esi + 0x1c]
mov dword [ebp - 0x10], esi
test esi, esi
jne 0x518af7
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 8], 0
pop ebx
je 0x518bcb
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x518c03
mov ecx, dword [ebp - 4]
call fcn.00518a7d
xor edi, edi
jmp 0x518c16
push 8
pop esi
push dword [ebx + 0x18]
call dword [0x5b6c48]
push ebx
call dword [0x5b6c48]
pop ecx
pop ecx
jmp 0x518bbb
push 8
pop esi
push ebx
call dword [0x5b6c48]
jmp 0x518bef
push 8
pop esi
jmp 0x518bbb
mov edi, dword [ebp - 4]
test edi, edi
jne 0x518c16
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x519edf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, edx
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x519f08
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x519efb
xor eax, eax
jmp 0x519f5c
push dword [eax + 8]
push dword [ebp + 8]
push 1
push edi
call ecx
jmp 0x519f39
cmp dword [esi + 8], 0
jne 0x519f2a
push 0x58e158
push dword [eax + 8]
call dword [sym.imp.MSVCR120.dll_fopen]
mov dword [esi + 8], eax
pop ecx
pop ecx
test eax, eax
jne 0x519f2a
or eax, 0xffffffff
jmp 0x519f5c
push dword [esi + 8]
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.MSVCR120.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x519f5a
cmp dword [esi + 8], eax
je 0x519f54
push dword [esi + 8]
call dword [sym.imp.MSVCR120.dll_fclose]
and dword [esi + 8], edi
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x51a302
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000000
push 1
xor edi, edi
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x51a333
lea eax, [esi + 4]
push eax
push edi
push edi
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop edi
pop esi
pop ebp
ret

Function at 0x51ae4a
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, dword [ecx + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1a8]
test esi, esi
jne 0x51ae5f
mov esi, dword [ecx + 0x28]
push dword [ecx + 0x24]
push dword [ecx + 0x20]
call fcn.00508db9
push edx
push eax
call fcn.00508dcf
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x51aea9
push dword [ebx + 0x124]
push dword [ebx + 0x120]
call fcn.00508db9
push edx
push eax
call fcn.00508dcf
mov ecx, dword [edi + 0x19c]
add esp, 0x10
sub ecx, eax
cmp esi, ecx
cmovl ecx, esi
mov esi, ecx
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x51c123
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0x2c
mov dword [ebp - 8], edx
call dword [0x5b6c40]
mov esi, eax
pop ecx
test esi, esi
je 0x51c21b
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [esi + 0xc]
push edi
push 0x40
pop edi
mov dword [esi], fcn.0051a302
lea eax, [ecx + 8]
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
cmp ebx, edi
jbe 0x51c18e
push ecx
call dword [0x57c060]
push ebx
push dword [ebp - 8]
push dword [esi + 4]
call dword [0x57c064]
mov eax, dword [esi + 8]
push dword [esi + 4]
add eax, 8
push eax
mov dword [ebp - 8], eax
call dword [0x57c068]
add esp, 0x18
push 0x10
pop ebx
mov dword [ebp + 8], ebx
push dword [esi + 4]
call dword [0x57c060]
push dword [esi + 8]
call dword [0x57c060]
pop ecx
xor eax, eax
pop ecx
test ebx, ebx
je 0x51c1ef
mov edi, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov al, byte [edi]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
call dword [0x57c064]
mov al, byte [edi]
xor al, 0x5c
inc edi
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
call dword [0x57c064]
add esp, 0x18
dec ebx
jne 0x51c1b1
push 0x40
pop edi
cmp dword [ebp + 8], edi
jae 0x51c217
mov eax, dword [ebp - 0x10]
sub edi, eax
push 1
push 0x5733d7
push dword [esi + 4]
call dword [0x57c064]
push 1
push 0x573d1e
push dword [esi + 8]
call dword [0x57c064]
add esp, 0x18
dec edi
jne 0x51c1f1
pop edi
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x51ecfd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x5b31c8]
xor eax, esp
mov dword [esp + 0x5c], eax
cmp dword [ebp + 0x10], 0
mov edx, ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
movlpd qword [esp + 8], xmm0
jl 0x51ed9a
jg 0x51ed37
cmp dword [ebp + 0xc], 0
jbe 0x51ed9a
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub ecx, esi
sbb eax, edi
mov dword [esp + 0x1c], eax
js 0x51ed5e
jg 0x51ed59
cmp ecx, 0x10000
jb 0x51ed5e
mov ecx, 0x10000
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x1c]
push ecx
add eax, esi
push eax
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x51edb9
cmp dword [esp + 8], 0
je 0x51eda2
add esi, dword [esp + 8]
mov edx, dword [esp + 0x10]
adc edi, 0
cmp edi, dword [ebp + 0x10]
jl 0x51ed3f
jg 0x51eda2
cmp esi, dword [ebp + 0xc]
jb 0x51ed3f
jmp 0x51eda2
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x64]
mov edx, edi
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0054e63c
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x24]
call fcn.0051e966
push 0x5ade60
lea eax, [esp + 0x24]
push eax
call sub.MSVCR120.dll__CxxThrowException
int3
Function at 0x51edd9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x5b31c8]
xor eax, esp
mov dword [esp + 0x5c], eax
cmp dword [ebp + 0x10], 0
mov edx, ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
movlpd qword [esp + 8], xmm0
jl 0x51ee76
jg 0x51ee13
cmp dword [ebp + 0xc], 0
jbe 0x51ee76
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
sub ecx, esi
sbb eax, edi
mov dword [esp + 0x1c], eax
js 0x51ee3a
jg 0x51ee35
cmp ecx, 0x10000
jb 0x51ee3a
mov ecx, 0x10000
push 0
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x1c]
push ecx
add eax, esi
push eax
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x51ee95
cmp dword [esp + 8], 0
je 0x51ee7e
add esi, dword [esp + 8]
mov edx, dword [esp + 0x10]
adc edi, 0
cmp edi, dword [ebp + 0x10]
jl 0x51ee1b
jg 0x51ee7e
cmp esi, dword [ebp + 0xc]
jb 0x51ee1b
jmp 0x51ee7e
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x64]
mov edx, edi
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0054e63c
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x24]
call fcn.0051e966
push 0x5ade60
lea eax, [esp + 0x24]
push eax
call sub.MSVCR120.dll__CxxThrowException
int3

Function at 0x51fe7b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
or edx, 0xffffffff
push edi
mov edi, ecx
test esi, esi
jle 0x51fe9e
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x5b6c60]
inc edi
dec esi
jne 0x51fe88
pop edi
mov eax, edx
pop esi
ret

Function at 0x51ff51
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
call fcn.0051fe7b
xor edi, edi
mov edx, eax
test ebx, ebx
jle 0x51ff7c
lea ecx, [edi + edx]
and ecx, 0x3ff
mov al, byte [ecx + 0x5b6c60]
xor byte [esi], al
inc esi
inc edi
cmp edi, ebx
jl 0x51ff65
pop edi
pop esi
mov eax, edx
pop ebx
ret

Function at 0x51ff82
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, ecx
test edx, edx
jle 0x51ffa9
lea eax, [edi + ebx]
and eax, 0x3ff
mov al, byte [eax + 0x5b6c60]
xor byte [esi], al
inc esi
inc edi
cmp edi, edx
jl 0x51ff93
call fcn.0051fe7b
sub eax, ebx
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
pop ebp
ret
Function at 0x51ffba
Capabilities:
Create pipe
Create process on windows
Create reverse shell
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
lea eax, [ebp - 0x1c]
xor esi, esi
mov dword [ebp - 0x1c], 0xc
push esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esi
push eax
mov ebx, ecx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
call edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 1
push dword [ebp - 4]
call esi
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call edi
xor edi, edi
push edi
push 1
push dword [ebp - 8]
call esi
push 0x40
lea eax, [ebp - 0x74]
push edi
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [ebp - 0xc]
add esp, 0xc
or dword [ebp - 0x4c], 0x100
xorps xmm0, xmm0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0x44
push eax
push edi
push edi
push 0x8000000
push 1
push edi
push edi
push dword [ebp + 0xc]
movdqu xmmword [ebp - 0x2c], xmm0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x520096
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
call esi
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x28]
call esi
mov al, 1
jmp 0x520098
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5207c8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x5207d5
mov eax, dword [esi]
jmp 0x5207d7
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5207ed
shr eax, 4
not eax
and eax, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x520811
cmp eax, 3
je 0x520811
cmp eax, 0x7b
je 0x520811
mov ecx, esi
call fcn.00520752
test al, al
je 0x520811
mov al, 1
pop esi
ret
xor al, al
pop esi
ret