joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b943b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004a62b0
xor ebx, ebx
cmp dword [0x61a4dc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4b9511
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4b95f1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5a42b0
push edi
call esi
cmp eax, ebx
je 0x4b95f1
push eax
call fcn.004a6242
mov dword [esp], 0x5a42a0
push edi
mov dword [0x61a4dc], eax
call esi
push eax
call fcn.004a6242
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x61a4e0], eax
call esi
push eax
call fcn.004a6242
mov dword [0x61a4e4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004a438e
test eax, eax
pop ecx
pop ecx
je 0x4b94df
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049b359
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4b9511
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004a6242
cmp eax, ebx
pop ecx
mov dword [0x61a4ec], eax
je 0x4b9511
push 0x5a4258
push edi
call esi
push eax
call fcn.004a6242
pop ecx
mov dword [0x61a4e8], eax
mov eax, dword [0x61a4e8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4b9596
cmp dword [0x61a4ec], ecx
je 0x4b9596
push eax
call fcn.004a62b9
push dword [0x61a4ec]
mov esi, eax
call fcn.004a62b9
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4b9596
cmp edi, ebx
je 0x4b9596
call esi
cmp eax, ebx
je 0x4b9563
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b9563
test byte [ebp - 0x18], 1
jne 0x4b9596
lea eax, [ebp - 0x10]
push eax
call fcn.004a43c5
test eax, eax
pop ecx
je 0x4b957e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049b359
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4b958d
or dword [ebp + 0x10], 0x200000
jmp 0x4b95d1
or dword [ebp + 0x10], 0x40000
jmp 0x4b95d1
mov eax, dword [0x61a4e0]
cmp eax, dword [ebp - 8]
je 0x4b95d1
push eax
call fcn.004a62b9
cmp eax, ebx
pop ecx
je 0x4b95d1
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4b95d1
mov eax, dword [0x61a4e4]
cmp eax, dword [ebp - 8]
je 0x4b95d1
push eax
call fcn.004a62b9
cmp eax, ebx
pop ecx
je 0x4b95d1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x61a4dc]
call fcn.004a62b9
cmp eax, ebx
pop ecx
je 0x4b95f1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b95f3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4bd0a1
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x6091e0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4bd0e2
cmp byte [ebp - 0x194], 2
jne 0x4bd0dc
cmp byte [ebp - 0x193], 2
je 0x4bd0e5
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a32b3
leave
ret
Function at 0x4c53a6
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4c53d5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x12c]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4c5787
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4c5761
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x4c5786
push ebx
push esi
call fcn.004d1691
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.004c5681
mov eax, dword [esi]
mov dword [eax + 0x855c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
Function at 0x4c5e36
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x6091e0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x1b8], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
jne 0x4c5f53
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x4c5eb3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004d1691
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004c5681
add esp, 0x18
jmp 0x4c5f5a
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4c5ee6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004d1691
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4c5ea5
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.004c5dfd
test eax, eax
jne 0x4c5f1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004d1691
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x4c5ea6
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.004c5dfd
test eax, eax
jne 0x4c5f50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004d1691
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x4c5f16
mov esi, dword [ebp - 0x78]
push esi
call fcn.004c5dae
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a32b3
add ebp, 0x90
leave
ret

Function at 0x4c5f72
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x4c5fb7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004d1691
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.004c560e
add esp, 0x14
jmp 0x4c5fc4
push str.TCP_NODELAY_set_n
push esi
call fcn.004c560e
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x4c641b
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x520]
cmp eax, 0xffffffff
push esi
je 0x4c6462
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x4c6462
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x4c6448
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
je 0x4c6468
push eax
call fcn.004bd849
pop ecx
test eax, eax
jne 0x4c6479
or eax, 0xffffffff
pop esi
pop ebp
ret
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x4c645e
mov eax, esi
jmp 0x4c6465

Function at 0x4c647d
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4c648a
jmp dword [eax*4 + 0x4c64e5]
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, byte [esp + 4]
ret
Function at 0x4ca747
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
and dword [eax], 0
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov dword [ebp - 8], eax
jne 0x4ca8b9
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x4ca89e
push ebx
push edi
jmp 0x4ca78f
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x4ca832
cmp dword [esi + 0x18], 0
je 0x4ca832
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x4ca832
push 0x10
pop edi
cmp eax, edi
jb 0x4ca832
push 0x20
call dword [0x60a858]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x4ca842
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 ecx, dword [esi + 0xc]
push edi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], eax
call dword [0x60a858]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x4ca84b
mov esi, dword [esi + 0x18]
mov edi, eax
mov eax, dword [ebp - 0xc]
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 eax, dword [eax + 0x14]
test eax, eax
je 0x4ca819
push eax
call dword [0x60a864]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x4ca85b
cmp dword [ebp - 4], 0
jne 0x4ca822
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4ca82c
mov dword [eax + 0x1c], ebx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x4ca78c
jmp 0x4ca874
mov dword [ebp - 8], 8
jmp 0x4ca874
push ebx
mov dword [ebp - 8], 8
call dword [0x60a85c]
jmp 0x4ca873
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x60a85c]
push ebx
call dword [0x60a85c]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x4ca886
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x4ca899
push dword [ebp - 4]
call fcn.004ca70b
pop ecx
mov dword [ebp - 4], esi
jmp 0x4ca8ad
cmp dword [ebp - 4], esi
jne 0x4ca8ad
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x4ce7a3
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x31c
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
xor edx, edx
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], edx
jne 0x4ce7d7
cmp ebx, esi
jne 0x4ce7d7
mov eax, dword [ebp + 0x7c]
call fcn.004ce784
jmp 0x4ce974
cmp dword [ebp + 0x7c], edx
jle 0x4ce7ec
mov edi, dword [ebp + 0x7c]
call fcn.004cfd69
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x64], eax
xor edx, edx
xor eax, eax
or ecx, 0xffffffff
inc eax
cmp esi, ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x1ac], edx
je 0x4ce81c
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov ecx, esi
cmp ebx, 0xffffffff
mov dword [ebp - 0x2b0], edx
je 0x4ce873
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x4ce84f
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x4ce84f
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x4ce83d
cmp eax, dword [ebp - 0xa8]
jne 0x4ce86d
cmp dword [ebp - 0xa8], 0x40
jae 0x4ce86d
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x4ce873
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x4ce87c
xor ebx, ebx
jmp 0x4ce87f
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x4ce89e
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x4ce8a3
jne 0x4ce8a6
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4ce8ff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4ce8d9
cmp eax, 0x2714
jne 0x4ce903
cmp dword [ebp + 0x7c], 0
jle 0x4ce882
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.004cfd69
push edx
push eax
call fcn.004cfd7f
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4ce882
jmp 0x4ce903
test eax, eax
jge 0x4ce908
or eax, 0xffffffff
jmp 0x4ce974
jne 0x4ce90e
xor eax, eax
jmp 0x4ce974
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x4ce940
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4ce92a
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4ce940
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x4ce972
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4ce95c
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4ce972
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4e1e40
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.0049a380
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret
Function at 0x4e61c0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, pe_nt_image_headers32
call fcn.004b3f70
mov eax, dword [0x6091e0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x4e6247
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4e6247
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.004a1edf
add esp, 0x10
test eax, eax
jge 0x4e621d
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a32b3
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.004a1edf
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4e62d5
call fcn.004e6080
test eax, eax
jle 0x4e62d5
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
mov esi, eax
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004a32b3
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004a32b3
add esp, 0x108
ret

Function at 0x4e6330
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
jbe 0x4e6356
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
add eax, 1
or cl, dl
sub edi, 1
jne 0x4e6346
pop esi
movzx eax, cl
pop edi
ret

Function at 0x4f0540
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x4f0589
mov al, byte [edx]
test al, al
je 0x4f0589
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
add edx, 1
xor esi, ecx
test al, al
jne 0x4f0557
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x5171f0
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x5172e0
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
jl 0x517272
movzx eax, byte [esi + 2]
xor edx, edx
mov dh, byte [esi]
add ecx, 1
add ecx, 1
add ecx, 1
mov dl, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x5c80a0]
mov byte [ecx - 3], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x5c80a0]
mov byte [ecx - 2], al
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x5c80a0]
mov byte [ecx - 1], al
and edx, 0x3f
movzx edx, byte [edx + 0x5c80a0]
mov byte [ecx], dl
jmp 0x5172cb
movzx edx, byte [esi]
shl edx, 0x10
cmp edi, 2
jne 0x517284
xor eax, eax
mov ah, byte [esi + 1]
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + 0x5c80a0]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x5c80a0]
add ecx, 1
mov byte [ecx], al
add ecx, 1
cmp edi, 1
jne 0x5172b6
lea edx, [edi + 0x3c]
jmp 0x5172c3
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x5c80a0]
mov byte [ecx], dl
add ecx, 1
mov byte [ecx], 0x3d
sub edi, 3
add ecx, 1
add ebp, 4
add esi, 3
test edi, edi
jg 0x517210
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x532049
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.004b3f70
mov eax, dword [0x6091e0]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
test eax, eax
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
jbe 0x5321dc
push ebx
add eax, 0xffffffff
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
add eax, 1
mov dword [esp + 0x18], eax
movzx ebx, byte [esi]
xor eax, eax
mov ah, byte [esi + 1]
add esi, 1
movzx ecx, byte [esi + 1]
add esi, 1
movzx edx, byte [esi + 1]
or ebx, eax
add esi, 1
movzx eax, byte [esi + 1]
shl ecx, 0x10
add esi, 1
or ebx, ecx
xor ecx, ecx
mov ch, byte [esi + 1]
add esi, 1
shl edx, 0x18
or ebx, edx
movzx edx, byte [esi + 1]
or eax, ecx
add esi, 1
movzx ecx, byte [esi + 1]
add esi, 1
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
add esi, 1
mov byte [edi], dl
mov byte [ebp], al
call fcn.004e09e0
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.004e0b60
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004f9700
push ebp
call fcn.004e09e0
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.004e0b60
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.004f9700
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
add eax, 1
shr edx, 8
add esp, 0x30
mov byte [eax], dl
add eax, 1
add eax, 1
mov edx, ebx
shr edx, 0x10
mov byte [eax - 1], dl
mov edx, dword [esp + 0x14]
add eax, 1
shr ebx, 0x18
mov byte [eax - 1], bl
mov byte [eax], dl
mov ebx, edx
add eax, 1
add eax, 1
shr ebx, 8
mov byte [eax - 1], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax], bl
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov eax, ebp
mov byte [eax], cl
mov byte [eax + 1], dl
add eax, 1
add eax, 1
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
add eax, 1
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
add eax, 1
mov byte [eax], cl
mov edx, ecx
shr edx, 8
add eax, 1
mov byte [eax], dl
mov edx, ecx
add eax, 1
shr edx, 0x10
shr ecx, 0x18
sub dword [esp + 0x18], 1
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x532067
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.004a32b3
add esp, 0xa0
ret
Function at 0x549d40
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x88
call fcn.004b3f70
mov eax, dword [0x6091e0]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
push edi
mov edi, dword [esp + 0x9c]
je 0x549db5
cmp ebx, dword [esi]
je 0x549dac
test edi, edi
je 0x549d92
cmp dword [esp + 0xa0], eax
jge 0x549dac
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004a32b3
add esp, 0x88
ret
mov eax, 1
mov dword [esi], ebx
jmp 0x549dbb
mov ebx, dword [esi]
test ebx, ebx
je 0x549d92
test edi, edi
push ebp
je 0x549e8d
push ebx
call fcn.004e7800
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x549deb
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.004e6300
add esp, 0xc
mov eax, dword [esp + 0xa4]
cmp ebp, eax
jge 0x549e45
mov ecx, dword [esp + 0x10]
push ecx
lea ebp, [esi + 4]
push ebx
push ebp
call fcn.004e6480
add esp, 0xc
test eax, eax
je 0x549f48
mov edx, dword [esp + 0xa4]
push edx
push edi
push ebp
call fcn.004e6630
add esp, 0xc
test eax, eax
je 0x549f48
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebp
call fcn.004e6640
add esp, 0xc
test eax, eax
je 0x549f48
jmp 0x549e6a
cmp eax, 0x80
ja 0x549f48
push eax
lea ecx, [esi + 0x50]
push edi
push ecx
call fcn.0049cbc0
mov edx, dword [esp + 0xb0]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x549e95
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x50]
push 0
push ecx
call fcn.0049a380
add esp, 0xc
jmp 0x549e95
test eax, eax
je 0x549f34
xor eax, eax
jmp 0x549ea0
mov dl, byte [esi + eax + 0x50]
xor dl, 0x36
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x549ea0
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x1c]
push ebx
push ebp
call fcn.004e6480
add esp, 0xc
test eax, eax
je 0x549f48
push ebx
call fcn.004e7800
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004e6630
add esp, 0x10
test eax, eax
je 0x549f48
xor eax, eax
jmp 0x549ef0
mov dl, byte [esi + eax + 0x50]
xor dl, 0x5c
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x549ef0
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x34]
push ebx
push ebp
call fcn.004e6480
add esp, 0xc
test eax, eax
je 0x549f48
push ebx
call fcn.004e7800
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004e6630
add esp, 0x10
test eax, eax
je 0x549f48
lea edx, [esi + 0x1c]
push edx
add esi, 4
push esi
call fcn.004e67d0
add esp, 8
test eax, eax
jne 0x549f4c
xor eax, eax
jmp 0x549f51
mov eax, 1
mov ecx, dword [esp + 0x94]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a32b3
add esp, 0x88
ret