joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d130
Capabilities:
Check http status code

Disassembly:
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebx
mov ebx, dword [edi]
mov eax, edx
push ebp
mov ebp, dword [esp + 0xc]
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
je 0x43d166
push str.Couldnt_set_desired_mode
push ebx
call fcn.00427df0
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x43d17d
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.00427d60
add esp, 0xc
cmp ebp, 0x13
jne 0x43d18f
mov eax, edi
call fcn.0043ccf0
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x43d1a3
push edi
call fcn.0043cd40
add esp, 4
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x43d1b5
mov eax, edi
call fcn.0043ce60
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x43d1c3
mov eax, edi
call fcn.0043ce70
mov esi, eax
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x443f50
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
cmp ebx, 0xffffffff
jne 0x443f94
cmp ebp, ebx
jne 0x443f94
mov eax, dword [esp + 0x334]
push eax
call fcn.00443f20
add esp, 4
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x443faf
mov esi, edi
call fcn.0042ca40
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
cmp ebx, 0xffffffff
je 0x443fe3
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
mov dword [esp + 0x228], eax
cmp ebp, 0xffffffff
je 0x444027
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
test ecx, ecx
jbe 0x444010
cmp dword [esp + eax*4 + 0x24], ebp
je 0x444010
inc eax
cmp eax, ecx
jb 0x444005
cmp eax, ecx
jne 0x444021
cmp ecx, 0x40
jae 0x444021
mov dword [esp + eax*4 + 0x24], ebp
inc dword [esp + 0x20]
cmp ebp, edx
jbe 0x444027
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea ecx, [esp + 0x18]
lea ebp, [edx + 1]
dec ebx
and ebx, ecx
xor eax, eax
cmp edi, eax
jle 0x444069
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov edx, esi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x1c], edx
jmp 0x444073
jne 0x444073
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x230]
push ecx
lea edx, [esp + 0x130]
push edx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x4440dd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4440a6
cmp eax, 0x2714
jne 0x4440e1
test edi, edi
jle 0x444038
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0042ca40
push edx
push eax
call fcn.0042ca70
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x444038
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x4440ef
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x4440fe
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x444135
lea edx, [esp + 0x124]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x444123
mov esi, 1
lea eax, [esp + 0x20]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x444135
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x444168
lea ecx, [esp + 0x228]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x444156
or esi, 2
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x444168
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x444ff0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x564020]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x445056
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x445056
lea edx, [esp]
push edx
call dword [0x564044]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00419fc4
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00419fc4
add esp, 0x108
ret
jmp 0x444ff0

Function at 0x445070
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x564020]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x445056
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x445056
lea edx, [esp]
push edx
call dword [0x564044]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00419fc4
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00419fc4
add esp, 0x108
ret
jmp 0x444ff0

Function at 0x447450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.0050c6d0
mov eax, dword [0x564020]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x447497
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00419fc4
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call sub.MSVCR90.dll__stat64i32
add esp, 8
test eax, eax
jl 0x447480
mov eax, 8
call fcn.0050c6d0
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.004472c0
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x447480
push 0x55d274
push esi
call sub.MSVCR90.dll_fopen
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x447571
jmp 0x4474f4
mov eax, dword [esp + 0x40]
test ebx, ebx
jle 0x447502
cmp ebx, 0x400
mov esi, ebx
jl 0x447507
mov esi, 0x400
push eax
push esi
lea edx, [esp + 0x80]
push 1
push edx
call sub.MSVCR90.dll_fread
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x447555
fild dword [esp + 0x44]
mov eax, 8
call fcn.0050c6d0
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.004472c0
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x4474f0
sub ebx, esi
test ebx, ebx
jg 0x4474f0
mov ecx, dword [esp + 0x40]
push ecx
call sub.MSVCR90.dll_fclose
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.00428f80
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00419fc4
mov esp, ebp
pop ebp
ret
Function at 0x447590
Capabilities:
Query environment variable

Disassembly:
push esi
push edi
xor esi, esi
call fcn.00495490
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x4475e6
push str.RANDFILE
call sub.MSVCR90.dll_getenv
mov esi, eax
add esp, 4
test esi, esi
je 0x4475e6
cmp byte [esi], 0
je 0x4475e6
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4475c0
sub eax, edx
inc eax
cmp eax, edi
jae 0x4475e6
push edi
push esi
mov esi, dword [esp + 0x14]
push esi
call fcn.0046e4b0
add esp, 0xc
cmp eax, edi
jb 0x447656
pop edi
xor eax, eax
pop esi
ret
call fcn.00495490
test eax, eax
jne 0x4475fe
push str.HOME
call sub.MSVCR90.dll_getenv
add esp, 4
mov esi, eax
test esi, esi
jne 0x447609
mov esi, 0x518258
jmp 0x44760e
cmp byte [esi], 0
je 0x44764f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x447613
sub eax, edx
add eax, 6
cmp eax, edi
jae 0x44764f
push edi
push esi
mov esi, dword [esp + 0x14]
push esi
call fcn.0046e4b0
push edi
push 0x510ab8
push esi
call fcn.0046e4f0
push edi
push str..rnd
push esi
call fcn.0046e4f0
add esp, 0x24
pop edi
mov eax, esi
pop esi
ret
mov esi, dword [esp + 0xc]
mov byte [esi], 0
pop edi
mov eax, esi
pop esi
ret
Function at 0x461b90
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x461bc3
push 0x2e
push esi
call dword [sym.imp.MSVCR90.dll_strchr]
add esp, 8
test eax, eax
je 0x461bc1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x463470
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x80c
mov eax, dword [0x564020]
xor eax, esp
mov dword [esp + 0x808], eax
mov eax, dword [esp + 0x814]
push ebp
mov ebp, dword [esp + 0x814]
push edi
xor edi, edi
cmp dword [esp + 0x820], 1
je 0x4634ca
mov eax, dword [ebp]
push str.Unsupported_type_of_known_host_information_store
push 0xffffffffffffffdf
push eax
call fcn.0049eaa0
add esp, 0xc
pop edi
pop ebp
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00419fc4
add esp, 0x80c
ret
push 0x511670
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [esp + 8], eax
test eax, eax
jne 0x46350b
mov ecx, dword [ebp]
push str.Failed_to_open_file
push 0xfffffffffffffff0
push ecx
call fcn.0049eaa0
add esp, 0xc
pop edi
pop ebp
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00419fc4
add esp, 0x80c
ret
lea edx, [ebp + 4]
push esi
push edx
call fcn.0047e830
mov esi, eax
add esp, 4
test esi, esi
je 0x463586
push ebx
nop
push 1
lea eax, [esp + 0x18]
push eax
push 0x800
lea ecx, [esp + 0x24]
push ecx
push esi
push ebp
call fcn.00463190
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x463585
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push edx
push ebx
lea eax, [esp + 0x20]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp eax, ebx
jne 0x463570
push esi
call fcn.0047e8b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x463520
jmp 0x463585
mov ecx, dword [ebp]
push str.Write_failed
push 0xfffffffffffffff0
push ecx
call fcn.0049eaa0
add esp, 0xc
mov edi, eax
pop ebx
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
mov ecx, dword [esp + 0x818]
add esp, 4
pop esi
mov eax, edi
pop edi
pop ebp
xor ecx, esp
call fcn.00419fc4
add esp, 0x80c
ret

Function at 0x463f20
Capabilities:
Set socket configuration

Disassembly:
push ecx
lea ecx, [esp]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0xc], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop ecx
ret
Function at 0x464990
Capabilities:
Get socket status

Disassembly:
sub esp, 0x218
push ebx
push edi
mov edi, dword [esp + 0x224]
lea eax, [esp + 8]
push eax
xor ebx, ebx
push edi
mov dword [edi + 0x12c], ebx
call fcn.004a44c0
add esp, 8
cmp eax, ebx
jl 0x464ae3
mov edx, dword [esp + 8]
mov ecx, edx
push edi
imul ecx, ecx, 0x3e8
call fcn.00464980
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x4649e4
call fcn.004a20b0
mov ecx, 0x3e8
mov eax, dword [edi + 0x54]
cmp eax, ebx
push esi
jle 0x464a35
cmp edx, ebx
je 0x4649f4
cmp edx, eax
jle 0x464a35
push ebx
call dword [sym.imp.MSVCR90.dll__time64]
mov ecx, dword [esp + 0x234]
push edx
mov edx, dword [esp + 0x234]
push eax
push ecx
push edx
call dword [sym.imp.MSVCR90.dll__difftime64]
fmul qword [0x5139a0]
add esp, 0x14
call fcn.0050c9e0
mov ecx, dword [edi + 0x54]
cmp eax, ecx
jg 0x464acb
sub ecx, eax
mov esi, 1
jmp 0x464a3e
xor eax, eax
cmp ecx, ebx
setg al
mov esi, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
imul eax, eax, 0x3e8
sub ecx, eax
mov al, byte [esp + 0x10]
imul ecx, ecx, 0x3e8
push ebp
xor ebp, ebp
mov dword [esp + 0x1c], ecx
test al, 1
je 0x464a86
mov ecx, dword [edi + 0x118]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], 1
lea ebx, [esp + 0x20]
test al, 2
je 0x464aa9
mov edx, dword [edi + 0x118]
mov dword [esp + 0x128], edx
mov dword [esp + 0x124], 1
lea ebp, [esp + 0x124]
mov ecx, dword [edi + 0x118]
neg esi
sbb esi, esi
lea eax, [esp + 0x18]
and esi, eax
push esi
push 0
push ebp
push ebx
inc ecx
push ecx
call dword [sym.imp.WS2_32.dll_select]
pop ebp
test eax, eax
jg 0x464ae0
mov eax, 0xfffffff7
pop esi
mov dword [edi + 0x12c], eax
pop edi
pop ebx
add esp, 0x218
ret
xor eax, eax
pop esi
pop edi
pop ebx
add esp, 0x218
ret
Function at 0x46e940
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.0050c6d0
mov eax, dword [0x564020]
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 0x46e9c7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x46e9c7
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call sub.MSVCR90.dll__vsnprintf
add esp, 0x10
test eax, eax
jge 0x46e99d
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.00419fc4
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 sub.MSVCR90.dll__vsnprintf
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x46ea55
call fcn.0046e800
test eax, eax
jle 0x46ea55
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.00419fc4
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.00419fc4
add esp, 0x108
ret

Function at 0x46eab0
Capabilities:
Encode data using xor

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

Function at 0x46eec0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x46ef07
mov al, byte [edx]
test al, al
je 0x46ef07
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]
inc edx
xor esi, ecx
test al, al
jne 0x46eed7
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x49ef80
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.0050c6d0
mov eax, dword [0x564020]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
xor eax, eax
push edi
mov dword [esp + 0x14], ecx
test ebp, ebp
je 0x49efcf
mov eax, 1
mov dword [esi], ebp
jmp 0x49efd1
mov ebp, dword [esi]
test ecx, ecx
je 0x49f0b4
push ebp
call fcn.0047e8a0
mov ebx, eax
add esp, 4
cmp ebx, 0x80
jle 0x49f000
push str.j____int_sizeof_ctx__key_
push 0x6e
push str..cryptohmachmac.c
call fcn.0046ea80
add esp, 0xc
mov edi, dword [esp + 0xa8]
cmp ebx, edi
jge 0x49f057
mov ecx, dword [esp + 0x10]
push ecx
lea ebx, [esi + 4]
push ebp
push ebx
call fcn.0047ba10
add esp, 0xc
test eax, eax
je 0x49f156
mov edx, dword [esp + 0x14]
push edi
push edx
push ebx
call fcn.0047bbc0
add esp, 0xc
test eax, eax
je 0x49f156
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.0047bbd0
add esp, 0xc
test eax, eax
je 0x49f156
jmp 0x49f091
cmp edi, 0x80
jbe 0x49f073
push str.len___0__len____int_sizeof_ctx__key_
push 0x78
push str..cryptohmachmac.c
call fcn.0046ea80
add esp, 0xc
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esi + 0x50]
push edx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0xb4]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], eax
mov edi, dword [edi]
cmp edi, 0x80
je 0x49f0bc
mov ecx, 0x80
sub ecx, edi
push ecx
lea edx, [edi + esi + 0x50]
push 0
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
jmp 0x49f0bc
test eax, eax
je 0x49f142
xor eax, eax
mov edi, edi
mov cl, byte [esi + eax + 0x50]
xor cl, 0x36
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x49f0c0
mov edi, dword [esp + 0x10]
push edi
lea ebx, [esi + 0x1c]
push ebp
push ebx
call fcn.0047ba10
add esp, 0xc
test eax, eax
je 0x49f156
push ebp
call fcn.0047e8a0
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.0047bbc0
add esp, 0x10
test eax, eax
je 0x49f156
xor eax, eax
mov cl, byte [esi + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x49f104
push edi
lea ebx, [esi + 0x34]
push ebp
push ebx
call fcn.0047ba10
add esp, 0xc
test eax, eax
je 0x49f156
push ebp
call fcn.0047e8a0
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.0047bbc0
add esp, 0x10
test eax, eax
je 0x49f156
lea eax, [esi + 0x1c]
push eax
add esi, 4
push esi
call fcn.0047bd60
add esp, 8
test eax, eax
jne 0x49f15a
xor eax, eax
jmp 0x49f15f
mov eax, 1
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00419fc4
add esp, 0x8c
ret
Function at 0x4bb350
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 0x4bb433
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x4bb3ce
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x4bb420
shl edx, 0x10
cmp edi, 2
jne 0x4bb3df
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x4bb40d
lea edx, [edi + 0x3c]
jmp 0x4bb41a
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x4bb370
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x4dac90
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call sub.MSVCR90.dll_memset
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 0x4e53a7
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.0050c6d0
mov eax, dword [0x564020]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
test eax, eax
jbe 0x4e5514
push ebx
dec eax
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
inc eax
mov dword [esp + 0x18], eax
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
inc esi
movzx ecx, byte [esi + 1]
inc esi
movzx edx, byte [esi + 1]
shl eax, 8
or ebx, eax
inc esi
movzx eax, byte [esi + 1]
inc esi
shl ecx, 0x10
or ebx, ecx
movzx ecx, byte [esi + 1]
shl edx, 0x18
inc esi
or ebx, edx
movzx edx, byte [esi + 1]
inc esi
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 1]
inc esi
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
inc esi
mov byte [edi], dl
mov byte [ebp], al
call fcn.004c8eb0
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.004c8fb0
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004c73a0
push ebp
call fcn.004c8eb0
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.004c8fb0
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.004c73a0
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
inc eax
shr edx, 8
add esp, 0x30
mov byte [eax], dl
inc eax
inc eax
mov edx, ebx
shr edx, 0x10
mov byte [eax - 1], dl
mov edx, dword [esp + 0x14]
inc eax
shr ebx, 0x18
mov byte [eax - 1], bl
mov byte [eax], dl
mov ebx, edx
inc eax
inc eax
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
inc eax
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
inc eax
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
inc eax
mov byte [eax], cl
mov edx, ecx
shr edx, 8
inc eax
mov byte [eax], dl
mov edx, ecx
inc eax
shr edx, 0x10
shr ecx, 0x18
sub dword [esp + 0x18], 1
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x4e53c3
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.00419fc4
add esp, 0xa0
ret
Function at 0x4f0820
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4f0839
mov esi, edi
mov edi, eax
jmp 0x4f083b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4f084b
mov eax, ebx
jmp 0x4f0855
push eax
push ebx
call fcn.0045eac0
add esp, 8
test eax, eax
jne 0x4f085d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4f0879
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x4f0864
cmp eax, dword [esi + 4]
jge 0x4f0890
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x4f0880
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x4f08b1
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4f08ae
dec eax
test eax, eax
jg 0x4f08a0
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret