joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e8e0
Capabilities:
Encrypt data using des

Disassembly:
push 0xffffffffffffffff
push 0x4ad8eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push ebp
mov ebp, dword [esp + 0xbc]
mov eax, dword [str.360cnwjh]
mov ecx, dword [0x4c9eb4]
mov dl, byte [0x4c9eb8]
xor ebx, ebx
mov dword [esp + 0x18], eax
cmp ebp, ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x20], dl
jne 0x46e947
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
add esp, 0xb0
ret
lea eax, [esp + 0x18]
push esi
test eax, eax
push edi
je 0x46e987
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
test dl, dl
je 0x46e987
lea eax, [esp + 0x20]
movsx edx, dl
add edx, ecx
and edx, 0x8000007f
jns 0x46e97d
dec edx
or edx, 0xffffff80
inc edx
mov byte [eax], dl
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x46e96b
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x800
call esi
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x46ea13
lea ecx, [esp + 0x10]
call fcn.0046e810
push 0x800
call esi
add esp, 4
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x46e9ca
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
jmp 0x46ea13
push 0x4b1560
push eax
lea ecx, [esp + 0x18]
call fcn.0046e780
push 0x800
call esi
add esp, 4
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x46ea04
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
add esp, 8
jmp 0x46ea13
push 0x4b15a0
push eax
lea ecx, [esp + 0x18]
call fcn.0046e780
lea eax, [esp + 0x20]
lea ecx, [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.0046dff0
mov edi, dword [esp + 0xc8]
mov dword [esp + 0x1c], ebx
xor esi, esi
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x2c], edx
cmp esi, edi
mov dword [esp + 0x30], edx
jge 0x46ea61
cmp ebx, 8
jge 0x46ea5f
mov eax, dword [esp + 0xc4]
inc ebx
mov cl, byte [esi + eax]
inc esi
mov byte [esp + ebx + 0x2b], cl
cmp esi, edi
jl 0x46ea43
cmp ebx, 8
je 0x46ea65
mov byte [esp + 0x33], bl
lea edx, [esp + 0x2c]
lea eax, [esp + 0x34]
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.0046eac0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov edx, dword [esp + 0x1c]
add ebp, 8
add edx, 8
cmp ebx, 8
mov dword [esp + 0x1c], edx
je 0x46ea33
lea ecx, [esp + 0x10]
call fcn.0046dfa0
mov ecx, dword [esp + 0xb4]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb0
ret
Function at 0x476080
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x476140
test byte [esi + 0x30], 1
je 0x4760b9
mov eax, dword [esi + 0x18]
mov edx, dword [eax + 0x14]
lea ecx, [eax + 0x68]
push ecx
push edx
mov ecx, 0x4d21b8
call fcn.0044e140
mov ecx, dword [esi + 0x14]
call fcn.0048c1a0
mov ecx, dword [esi + 0x18]
call fcn.00493060
test byte [esi + 0x30], 2
je 0x4760c7
mov ecx, dword [esi + 0x10]
call fcn.00495530
mov eax, dword [esi + 0x28]
push 1
push 0
cmp eax, 1
push 0
push 0
jne 0x4760eb
mov eax, dword [esi + 0xc]
push 0
push 7
push eax
mov ecx, 0x4d2128
call fcn.0044a430
jmp 0x476113
mov ecx, dword [esi + 0xc]
push 1
push 7
push ecx
mov ecx, 0x4d2128
call fcn.0044a430
mov eax, dword [esi + 0x94]
test eax, eax
jne 0x47610c
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esi + 0x14]
call fcn.0048bcb0
mov ecx, dword [esi + 0x1c]
call fcn.0048cbd0
mov edx, dword [esi + 0xc]
push edx
push str.__d.__RemoveTask
push 0x4d35d0
call fcn.0045ee70
add esp, 0xc
mov dword [esi + 0x3c], 3
xor eax, eax
pop esi
ret
Function at 0x4791f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 8], ebp
je 0x47934d
cmp dword [esi + 0x28], ebp
jne 0x47934d
mov ecx, dword [esi + 0xc4]
mov eax, 1
cmp ecx, eax
je 0x47934d
cmp dword [esi + 0x78], eax
je 0x47934d
mov ecx, esi
call fcn.0047a540
test eax, eax
je 0x47934d
mov edi, dword [esi + 0x124]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp edi, ebp
je 0x479265
call ebx
mov ecx, eax
mov eax, dword [esi + 0x38]
sub ecx, eax
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
cmp ecx, edx
jb 0x47934d
mov ecx, esi
call fcn.0047abe0
test eax, eax
je 0x4792af
call ebx
mov edx, dword [esi + 0x38]
mov ecx, dword [0x4c8b64]
sub eax, edx
cmp eax, ecx
jb 0x47934d
push ebp
push ebp
push ebp
lea eax, [esp + 0x1c]
push ebp
push eax
lea ecx, [esp + 0x2c]
push ebp
push ecx
mov ecx, dword [esi + 0x18]
push ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], ebp
call fcn.004940e0
cmp dword [esp + 0x10], ebp
ja 0x47934d
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], ebp
call fcn.00495a20
test eax, eax
je 0x47934d
mov eax, dword [esp + 0x14]
xor edi, edi
cmp eax, ebp
jle 0x47934d
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], ebp
call fcn.00495bf0
test eax, eax
je 0x479336
mov eax, dword [esi + 0x10]
mov edx, dword [esp + 0x10]
push edx
mov ecx, dword [eax + 0x5d50]
mov dword [esi + 0x74], ecx
mov eax, dword [eax + 0x5d4c]
mov ecx, dword [esi + 0xc]
push eax
push str.ERR__u__Cid__u_
push str.CIDCONNERR
push ecx
push 0x4d3550
call fcn.00460e80
mov eax, dword [esi + 0x10]
add esp, 0x18
mov ecx, esi
mov edx, dword [eax + 0x5d50]
mov dword [esi + 0x74], edx
mov eax, dword [eax + 0x5d4c]
push eax
call fcn.00479a90
jmp 0x479344
mov ecx, dword [esp + 0x10]
push 2
push ecx
mov ecx, esi
call fcn.0047ac40
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x4792d2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x479360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 8], ebx
je 0x47955e
cmp dword [esi + 0x28], ebx
jne 0x47955e
mov ecx, dword [esi + 0xc4]
mov eax, 1
cmp ecx, eax
je 0x47955e
cmp dword [esi + 0x78], eax
je 0x47955e
mov ecx, esi
call fcn.0047a540
test eax, eax
je 0x47955e
mov edi, dword [esi + 0x124]
mov dword [esp + 0x10], ebx
cmp edi, ebx
je 0x4793f2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, dword [esi + 0x38]
sub ecx, eax
lea eax, [edi + edi*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
cmp ecx, edx
jae 0x4793f2
mov eax, dword [esi + 0xc]
push edi
push eax
push str.__d.__Delay___d
push 0x4d35d0
call fcn.0045ee70
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x10]
call fcn.00495b70
test eax, eax
je 0x47955e
mov eax, dword [esp + 0x10]
xor ebp, ebp
cmp eax, ebx
jle 0x47955e
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.004955f0
mov edi, eax
cmp edi, ebx
je 0x47955e
mov eax, dword [esi + 0x1c]
add eax, 0x38
mov edx, dword [eax]
mov ecx, dword [eax + 4]
or edx, ecx
jne 0x4794b7
push ebx
push ebx
push ebx
push ebx
mov ecx, dword [esi + 0x10]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x3c]
push ebx
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.00495860
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp eax, ebx
ja 0x479476
cmp ecx, ebx
jbe 0x4794b7
push eax
push ecx
mov ecx, dword [esi + 0xc]
push ecx
push str.__d.__SetFileLen__I64d
push 0x4d35d0
call fcn.0045ee00
mov ecx, dword [esi + 0x1c]
add esp, 0x14
cmp dword [ecx + 0xc], ebx
jne 0x4794a5
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.0048d680
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x18]
push edx
call fcn.00494040
mov edx, dword [edi]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, dword [esi + 0x1c]
push edx
call fcn.0048ccf0
test eax, eax
je 0x479506
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x10]
push edx
push eax
push edi
call fcn.00496320
test eax, eax
jne 0x479527
mov eax, dword [esp + 0x10]
inc ebp
cmp ebp, eax
jl 0x479415
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ecx, dword [edi]
mov edx, dword [esi + 0xc]
push ecx
push edx
push str.__d._3d__AllocRange_fail
push 0x4d35d0
call fcn.0045ee70
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x5d50]
mov dword [esi + 0x74], ecx
mov edx, dword [eax + 0x5d4c]
push edx
mov ecx, esi
call fcn.00479a90
mov eax, dword [esi + 0x2c]
mov ecx, dword [edi]
mov edx, dword [esi + 0xc]
push eax
push ecx
push edx
push str.__d._3d__AsyncStartHttp_fail_ErrorCode___d
push 0x4d35d0
call fcn.0045ef50
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x47de00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ae329
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [str.HTTP_]
mov dl, byte [esp + 0x30]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
mov cx, word [0x4ccbb8]
xor eax, eax
push edi
mov word [esp + 0x14], cx
mov dword [esp + 0xc], eax
mov byte [esp + 0x18], dl
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
cmp edi, 9
jae 0x47de6d
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push 5
push eax
push ebx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x47de9c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 8
lea ecx, [esi + 0x10]
lea edx, [esi + 0xc]
push ecx
add esi, 8
push edx
lea eax, [esp + 0x14]
push esi
push eax
push 1
push edi
push ebx
call fcn.0047ded0
mov ecx, dword [esp + 0x44]
add esp, 0x1c
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 8

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

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x47f618
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret 0xc
mov ecx, esi
call fcn.0047f920
test eax, eax
jne 0x47f635
push 0x2736
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret 0xc
mov ecx, esi
call fcn.0047f920
cmp eax, 1
je 0x47f69a
mov ecx, esi
call fcn.0047f920
cmp eax, 2
je 0x47f69a
mov ecx, esi
call fcn.0047f920
cmp eax, 3
je 0x47f69a
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x47f682
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
mov ecx, dword [esi + 4]
push edx
call fcn.0043f0f0
push eax
call dword [sym.imp.WS2_32.dll_send]
pop esi
ret 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push edx
call dword [eax + 0x38]
pop esi
ret 0xc
push 0x2749
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret 0xc
Function at 0x47f6b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x47f6c8
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret 0xc
mov ecx, esi
call fcn.0047f920
test eax, eax
jne 0x47f6e5
push 0x2736
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret 0xc
mov ecx, esi
call fcn.0047f920
cmp eax, 1
je 0x47f74a
mov ecx, esi
call fcn.0047f920
cmp eax, 2
je 0x47f74a
mov ecx, esi
call fcn.0047f920
cmp eax, 3
je 0x47f74a
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x47f732
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
mov ecx, dword [esi + 4]
push edx
call fcn.0043f0f0
push eax
call dword [sym.imp.WS2_32.dll_recv]
pop esi
ret 0xc
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push edx
call dword [eax + 0x34]
pop esi
ret 0xc
push 0x2749
call dword [sym.imp.WS2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
ret 0xc

Function at 0x47f760
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x47f784
mov edx, dword [esp + 0x20]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x20]
push edx
call dword [eax + 0x24]
mov esi, eax
jmp 0x47f808
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x47f7d8
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x47f7cd
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
test eax, eax
je 0x47f7cd
mov edx, dword [eax]
mov dword [esp + 0xc], edx
jmp 0x47f7d8
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [esp + 8]
push 0x10
push ecx
mov ecx, dword [edi + 4]
mov word [esp + 0x12], ax
call fcn.0043f0f0
push eax
call dword [sym.imp.WS2_32.dll_connect]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
jne 0x47f819
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x47f822
push 2
mov ecx, edi
call fcn.0047fb80
mov eax, esi
pop edi
pop esi
add esp, 0x10
ret 8

Function at 0x47f830
Capabilities:
Connect socket

Disassembly:
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x47f84e
mov edx, dword [esp + 0x10]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x10]
push edx
call dword [eax + 0x20]
mov esi, eax
jmp 0x47f871
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, dword [edi + 4]
call fcn.0043f0f0
push eax
call dword [sym.imp.WS2_32.dll_connect]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
jne 0x47f882
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x47f88b
push 2
mov ecx, edi
call fcn.0047fb80
mov eax, esi
pop edi
pop esi
ret 8
Function at 0x47faa0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x47fada
mov edx, dword [esp + 0x18]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push edx
call dword [eax + 0x28]
mov edi, eax
test edi, edi
je 0x47fad3
push 1
mov ecx, esi
call fcn.0047fb80
mov eax, edi
pop edi
pop esi
ret 0x10
mov eax, dword [esp + 0x10]
push 0
push eax
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esi + 4]
push eax
mov dword [ecx + 4], eax
mov ecx, dword [esi + 4]
call fcn.004689c0
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 4]
push edx
call fcn.00469760
test eax, eax
jne 0x47fb11
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x24]
test eax, eax
je 0x47fb46
mov edx, dword [ecx + 8]
push 0x3f
add edx, 0x402
push edx
call fcn.00469870
push eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
test eax, eax
je 0x47fb46
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
call dword [edx + 8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 4]
push 0x10
push eax
call fcn.00468960
test eax, eax
jne 0x47fb61
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
call dword [edx + 8]
mov edi, 1
mov ecx, esi
push edi
call fcn.0047fb80
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x485260
Capabilities:
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
xor eax, eax
mov esi, dword [ecx + 0x4b1dd8]
xor edx, edx
mov dx, word [eax + 0x4b1dd6]
sub eax, 2
shr esi, 8
add edx, esi
mov dword [ecx + 0x515d64], edx
add ecx, 4
cmp eax, 0xfffffe00
jg 0x485265
pop esi
ret

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

Disassembly:
mov al, byte [0x516165]
test al, al
jne 0x4852a5
mov byte [0x516165], 1
call fcn.00485260
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, 0xfffffffe
test esi, esi
jbe 0x4852d7
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4b1dd8]
xor eax, edx
inc ecx
dec esi
jne 0x4852b8
pop ebx
pop esi
ret

Function at 0x4852e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ae77e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004686c0
xor edi, edi
mov dword [esi + 0x2c], 0x4b1b74
mov dword [esp + 0x14], edi
mov al, byte [esp + 0x1c]
mov dword [esi + 0x30], 0x4b1944
mov dword [esi + 0x34], edi
mov byte [esi + 0x68], al
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov cl, byte [esp + 0x1c]
push 0x1c
mov byte [esp + 0x18], 2
mov byte [esi + 0xac], cl
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x20]
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [esi + 0xb0], eax
lea ecx, [esi + 0x44]
mov dword [esi + 0xb4], edi
xor eax, eax
mov dword [esi], 0x4b2224
mov dword [esi + 0x2c], 0x4b21f0
mov dword [esi + 0x30], 0x4b21e0
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edi
mov word [esi + 0x40], di
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x90], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0xa0], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa8], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x58], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x487410
Capabilities:
Get outbound credentials handle via credssp

Disassembly:
sub esp, 0x81c
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x58]
lea ebx, [esi + 0x58]
test eax, eax
jne 0x48742c
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x48743c
push ebx
call dword [sym.imp.Secur32.dll_FreeCredentialsHandle]
mov ecx, ebx
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x28]
mov ecx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test eax, eax
mov dword [esp + 0x14], ecx
je 0x48745e
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x2c]
test eax, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], ecx
je 0x487474
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x48748a
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x50]
test eax, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 1
jne 0x4874a2
mov eax, ecx
lea edi, [esi + 0x60]
lea ecx, [esp + 0xc]
push edi
push ebx
push 0
push 0
push ecx
push 0
push 2
push eax
push 0
call sub.Secur32.dll_AcquireCredentialsHandleA
test eax, eax
je 0x4874cc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x81c
ret
lea ecx, [esi + 0x70]
lea eax, [esi + 0x7c]
lea edx, [esp + 0x28]
mov dword [esi + 0x74], 1
mov dword [ecx], 0
mov dword [esi + 0x78], eax
mov dword [eax], 0x800
mov dword [esi + 0x80], 2
mov dword [esi + 0x84], edx
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x487508
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
lea edx, [esi + 0x88]
push edi
push edx
add esi, 0x68
push ecx
push esi
push 0
push 0
push 0
push 0
push 0x10
push eax
push 0
push ebx
call sub.Secur32.dll_InitializeSecurityContextA
xor ecx, ecx
pop edi
test eax, eax
setge cl
pop esi
mov eax, ecx
pop ebx
add esp, 0x81c
ret
Function at 0x488030
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x150
push ebx
push esi
mov esi, dword [esp + 0x168]
cmp esi, 0x40
jle 0x488087
lea eax, [esp + 0xfc]
push eax
call fcn.004a7580
mov ecx, dword [esp + 0x168]
push esi
lea edx, [esp + 0x104]
push ecx
push edx
call fcn.004a7170
lea eax, [esp + 0x10c]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004a7440
add esp, 0x18
lea ebx, [esp + 8]
mov esi, 0x10
jmp 0x48808e
mov ebx, dword [esp + 0x164]
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xbc]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x78]
push esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, dword [sym.imp.MSVCRT.dll_memmove]
lea edx, [esp + 0xc0]
push ebx
push edx
call edi
push esi
lea eax, [esp + 0x88]
push ebx
push eax
call edi
add esp, 0x18
xor eax, eax
pop edi
mov cl, byte [esp + eax + 0xb8]
mov bl, byte [esp + eax + 0x74]
xor cl, 0x36
xor bl, 0x5c
mov byte [esp + eax + 0xb8], cl
mov byte [esp + eax + 0x74], bl
inc eax
cmp eax, 0x40
jl 0x4880d2
lea ecx, [esp + 0x18]
push ecx
call fcn.004a7580
lea edx, [esp + 0xbc]
push 0x40
lea eax, [esp + 0x20]
push edx
push eax
call fcn.004a7170
mov ecx, dword [esp + 0x170]
mov edx, dword [esp + 0x16c]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.004a7170
mov esi, dword [esp + 0x188]
lea ecx, [esp + 0x34]
push ecx
push esi
call fcn.004a7440
lea edx, [esp + 0x3c]
push edx
call fcn.004a7580
lea eax, [esp + 0x9c]
push 0x40
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.004a7170
push 0x10
lea edx, [esp + 0x50]
push esi
push edx
call fcn.004a7170
add esp, 0x40
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004a7440
add esp, 8
pop esi
pop ebx
add esp, 0x150
ret