joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435840
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 0x80
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
mov byte [edi], 0
jle 0x43585a
mov eax, 0x80
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x43586a
cmp ecx, 0x400
jle 0x43586f
mov ecx, 0x400
test eax, eax
jle 0x43588e
mov esi, dword [esp + 0x18]
push ebp
mov edx, edi
sub esi, edi
mov ebp, eax
mov edi, edi
mov bl, byte [esi + edx]
mov byte [edx], bl
add edx, 1
sub ebp, 1
jne 0x435880
pop ebp
cmp eax, 0x80
movzx edx, byte [edi + eax - 1]
jge 0x4358c0
mov esi, edi
sub esi, eax
mov edi, edi
movzx ebx, byte [esi + eax]
add ebx, edx
and ebx, 0xff
movzx edx, byte [ebx + 0x4ba448]
mov byte [eax + edi], dl
add eax, 1
cmp eax, 0x80
jl 0x4358a0
lea edx, [ecx + 7]
neg ecx
sar edx, 3
mov eax, 0x80
and ecx, 7
sub eax, edx
lea esi, [eax + edi]
mov ebx, 0xff
sar ebx, cl
movzx ecx, byte [esi]
and ebx, ecx
test eax, eax
movzx ecx, byte [ebx + 0x4ba448]
mov byte [esi], cl
je 0x43590a
mov edi, edi
movzx ebx, byte [esi + edx - 1]
sub esi, 1
xor ebx, ecx
movzx ecx, byte [ebx + 0x4ba448]
sub eax, 1
test eax, eax
mov byte [esi], cl
jne 0x4358f0
lea ecx, [edi + 0xfc]
lea eax, [edi + 0x7e]
mov esi, 0x40
xor edx, edx
mov dh, byte [eax + 1]
sub ecx, 4
sub eax, 2
mov dl, byte [eax + 2]
and edx, 0xffff
sub esi, 1
mov dword [ecx + 4], edx
jne 0x435918
pop edi
pop esi
pop ebx
ret
Function at 0x437010
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.0047aaf0
mov eax, dword [0x4af040]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x4c]
movzx edx, byte [edi + 1]
mov dword [esp + 0x18], ecx
movzx ecx, byte [edi]
lea eax, [edi + 1]
mov dword [esp + 0x28], eax
add eax, 1
shl edx, 0x10
add eax, 1
shl ecx, 0x18
or ecx, edx
xor edx, edx
mov dh, byte [eax - 1]
add eax, 1
movzx ebx, byte [eax + 1]
add eax, 1
add eax, 1
or ecx, edx
movzx edx, byte [eax - 3]
or ecx, edx
movzx edx, byte [eax - 2]
shl ebx, 0x10
shl edx, 0x18
or edx, ebx
xor ebx, ebx
mov bh, byte [eax]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x2f], cl
mov bl, byte [eax + 1]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x2d], al
or edx, ebx
mov eax, ecx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
cmp dword [esp + 0x44], 0
mov dword [esp + 0x20], edx
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
je 0x4371f5
mov ebx, dword [esp + 0x3c]
sub dword [esp + 0x18], 1
test esi, esi
jne 0x437159
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00436240
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x34], al
mov edx, ecx
shr edx, 0x10
mov eax, ecx
shr eax, 8
mov byte [esp + 0x36], al
mov byte [esp + 0x35], dl
mov edx, dword [esp + 0x28]
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x38], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x39], al
mov eax, edx
shr eax, 8
add esp, 8
add dword [esp + 0x10], 1
mov byte [esp + 0x2f], cl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
xor al, byte [ebx]
add esi, 1
mov byte [ebp], al
add ebp, 1
add ebx, 1
and esi, 7
cmp dword [esp + 0x18], 0
jne 0x4370f3
cmp dword [esp + 0x10], 0
je 0x4371dc
mov eax, ecx
shr eax, 0x18
mov byte [edi], al
mov eax, dword [esp + 0x28]
mov ebx, ecx
shr ebx, 0x10
mov byte [eax], bl
mov ebx, ecx
add eax, 1
shr ebx, 8
mov byte [eax], bl
mov byte [eax + 1], cl
add eax, 1
add eax, 1
mov ecx, edx
shr ecx, 0x18
mov byte [eax], cl
mov ecx, edx
add eax, 1
shr ecx, 0x10
mov byte [eax], cl
add eax, 1
mov ecx, edx
shr ecx, 8
mov byte [eax], cl
mov byte [eax + 1], dl
mov edx, dword [esp + 0x14]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0046f32e
add esp, 0x28
ret
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0046f32e
add esp, 0x28
ret
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
mov ecx, dword [esp + 0x30]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046f32e
add esp, 0x28
ret
Function at 0x43a180
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x28
call fcn.0047aaf0
mov eax, dword [0x4af040]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
xor edx, edx
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x4c]
mov dh, byte [edi + 1]
lea eax, [edi + 1]
mov dword [esp + 0x28], eax
add eax, 1
mov dword [esp + 0x18], ecx
movzx ecx, byte [edi]
or ecx, edx
movzx edx, byte [eax]
add eax, 1
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax]
add eax, 1
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax]
add eax, 1
xor ebx, ebx
mov bh, byte [eax]
add eax, 1
mov ebp, dword [esp + 0x40]
mov byte [esp + 0x2c], cl
mov dword [esp + 0x10], 0
or edx, ebx
xor ebx, ebx
mov bh, byte [eax + 1]
mov bl, byte [eax]
mov eax, ecx
shr eax, 8
mov byte [esp + 0x2d], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x2e], al
shl ebx, 0x10
or edx, ebx
mov ebx, ecx
shr ecx, 0x18
mov byte [esp + 0x2f], cl
mov ecx, edx
mov eax, edx
mov dword [esp + 0x20], edx
mov byte [esp + 0x30], dl
shr ecx, 8
shr eax, 0x10
shr edx, 0x18
cmp dword [esp + 0x44], 0
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
je 0x43a361
sub dword [esp + 0x18], 1
test esi, esi
jne 0x43a2bd
mov ecx, dword [esp + 0x24]
push 1
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.004379f0
mov ebx, dword [esp + 0x28]
mov eax, ebx
shr eax, 8
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov byte [esp + 0x39], al
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x3a], cl
mov byte [esp + 0x3b], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0x3c], al
shr ecx, 8
shr edx, 0x10
shr eax, 0x18
add esp, 0xc
add dword [esp + 0x10], 1
mov byte [esp + 0x2c], bl
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], al
mov cl, byte [esp + esi + 0x2c]
mov eax, dword [esp + 0x3c]
xor cl, byte [eax]
add esi, 1
mov byte [ebp], cl
add eax, 1
add ebp, 1
and esi, 7
cmp dword [esp + 0x18], 0
mov dword [esp + 0x3c], eax
jne 0x43a257
cmp dword [esp + 0x10], 0
je 0x43a348
mov eax, dword [esp + 0x28]
mov byte [edi], bl
mov edx, ebx
shr edx, 8
mov byte [eax], dl
add eax, 1
mov ecx, ebx
shr ecx, 0x10
mov byte [eax], cl
mov ecx, dword [esp + 0x20]
add eax, 1
shr ebx, 0x18
mov byte [eax], bl
mov byte [eax + 1], cl
add eax, 1
add eax, 1
mov edx, ecx
shr edx, 8
mov byte [eax], dl
add eax, 1
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
shr ecx, 0x18
mov byte [eax + 1], cl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0046f32e
add esp, 0x28
ret
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0046f32e
add esp, 0x28
ret
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046f32e
add esp, 0x28
ret
Function at 0x44b240
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.0047aaf0
mov eax, dword [0x4af040]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x38]
add ebp, 0xffffffff
lea edx, [ebp - 0x29]
cmp ebx, edx
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jle 0x44b2a7
push 0x2d
push str..crypto_rsa_rsa_oaep.c
push 0x6e
push 0x79
push 4
call fcn.00412a30
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0046f32e
add esp, 0x28
ret
cmp ebp, 0x29
jge 0x44b2d5
push 0x33
push str..crypto_rsa_rsa_oaep.c
push 0x78
push 0x79
push 4
call fcn.00412a30
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0046f32e
add esp, 0x28
ret
push 0x37
lea eax, [ebp - 0x14]
push str..crypto_rsa_rsa_oaep.c
push eax
mov dword [esp + 0x18], eax
call fcn.00414f70
add esp, 0xc
test eax, eax
mov dword [esp + 0x10], eax
jne 0x44b31d
push 0x3a
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x79
push 4
call fcn.00412a30
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0046f32e
add esp, 0x28
ret
push esi
mov byte [edi], 0
lea esi, [edi + 1]
push 0
add edi, 0x15
call fcn.00419500
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x58]
push 0
push edi
push eax
push ecx
call fcn.0041ee90
mov edx, ebp
sub edx, ebx
sub edx, 0x29
push edx
lea eax, [edi + 0x14]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edx, dword [esp + 0x3c]
mov ecx, edi
sub ecx, ebx
add ebp, ecx
push ebx
mov byte [ebp - 0x15], 1
push edx
add ebp, 0xffffffec
push ebp
call sub.VCRUNTIME140.dll_memcpy
push 0x14
push esi
call fcn.00419380
add esp, 0x38
test eax, eax
jg 0x44b391
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0046f32e
add esp, 0x28
ret
call fcn.00419500
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
push eax
push 0x14
push esi
push ebx
push ebp
call fcn.0044b100
add esp, 0x14
test ebx, ebx
jle 0x44b3c3
mov eax, edi
sub ebp, edi
mov ecx, ebx
mov dl, byte [eax + ebp]
xor byte [eax], dl
add eax, 1
sub ecx, 1
jne 0x44b3b6
call fcn.00419500
push eax
push ebx
push edi
lea eax, [esp + 0x2c]
push 0x14
push eax
call fcn.0044b100
lea ecx, [esp + 0x34]
lea edi, [esp + 0x35]
lea ebp, [esp + 0x36]
lea edx, [esp + 0x37]
sub ecx, esi
sub edi, esi
sub ebp, esi
sub edx, esi
lea ebx, [esp + 0x38]
add esp, 0x14
sub ebx, esi
mov eax, esi
mov dword [esp + 0x10], ebx
mov esi, 4
movzx ebx, byte [ecx + eax]
xor byte [eax], bl
movzx ebx, byte [edi + eax]
xor byte [eax + 1], bl
movzx ebx, byte [eax + ebp]
xor byte [eax + 2], bl
movzx ebx, byte [edx + eax]
xor byte [eax + 3], bl
mov ebx, dword [esp + 0x10]
movzx ebx, byte [ebx + eax]
xor byte [eax + 4], bl
add eax, 5
sub esi, 1
jne 0x44b403
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00415120
mov ecx, dword [esp + 0x38]
add esp, 4
lea eax, [esi + 1]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046f32e
add esp, 0x28
ret
Function at 0x457f00
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x457f19
mov edi, ebx
mov ebx, eax
jmp 0x457f1b
mov edi, eax
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jle 0x457f31
push eax
push esi
call fcn.0041daf0
add esp, 8
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x457f4f
mov edx, dword [edi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [ebx + 4]
jl 0x457f38
cmp eax, dword [edi + 4]
jge 0x457f66
mov edx, dword [edi]
mov edx, dword [edx + eax*4]
mov ecx, dword [esi]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x457f54
mov edi, dword [edi + 4]
test edi, edi
mov dword [esi + 4], edi
jle 0x457f91
mov eax, dword [esi]
lea eax, [eax + edi*4 - 4]
or ecx, 0xffffffff
lea esp, [esp]
mov edx, dword [eax]
sub eax, 4
test edx, edx
jne 0x457f91
add dword [esi + 4], ecx
cmp dword [esi + 4], edx
jg 0x457f80
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x45bf80
Capabilities:
Query environment variable

Disassembly:
mov eax, 0xc
call fcn.0047aaf0
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
jne 0x45bf9a
xor eax, eax
pop ebx
add esp, 0xc
ret
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x45c01c
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x45bfe8
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
call fcn.00413b50
add esp, 8
test eax, eax
jne 0x45c009
push edi
mov edi, 0x4a2718
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
pop edi
jne 0x45bfe8
push ebx
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
jne 0x45c00c
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x14], str.default
mov dword [esp + 0x18], ebx
call fcn.00413b50
add esp, 8
test eax, eax
je 0x45c013
mov eax, dword [eax + 8]
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
push ebx
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x45d871
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x290
mov eax, dword [0x4af040]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push ebp
push esi
push edi
mov ecx, str.MSYDCOM.dat
call fcn.0045d9c1
xor ebp, ebp
test eax, eax
lea ecx, [eax + 1]
lea eax, [esp + 0x10]
cmovns ebp, ecx
push eax
xor ebx, ebx
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x45d8e9
lea eax, [esp + 0x94]
push eax
push dword [esp + 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [esp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea edi, [esp + 0x94]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45d8d7
mov esi, str.Microsoft_
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x45d8f4
mov dword [esp + 0x94], 0x5c3a43
mov al, byte [esp + ebx + 0x94]
mov byte [esp + ebx + 0x198], al
inc ebx
test al, al
jne 0x45d8f4
lea edi, [esp + 0x198]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45d90f
mov esi, str.MSYDCOM.dat
xor eax, eax
push 0xa
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x8c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x8c]
push eax
push ebp
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
lea esi, [esp + 0x94]
add esp, 0xc
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x45d94a
sub esi, ecx
lea ecx, [esp + 0x14]
call fcn.0045d0e0
push esi
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x1c]
call fcn.0045d112
lea eax, [esp + 0x198]
push 0x4a2958
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x45d9a8
push edi
push esi
lea ecx, [esp + 0x90]
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
add esp, 0x14
inc eax
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046f32e
add esp, 0x290
ret
Function at 0x45d9c1
Capabilities:
Get common file path
Read file on windows

Disassembly:
sub esp, 0x284
mov eax, dword [0x4af040]
xor eax, esp
mov dword [esp + 0x280], eax
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x1c
push ebx
mov ebp, ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jne 0x45da27
lea eax, [esp + 0x88]
push eax
push dword [esp + 0x14]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [esp + 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea edi, [esp + 0x88]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45da15
mov esi, str.Microsoft_
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x45da32
mov dword [esp + 0x88], 0x5c3a43
mov ecx, ebx
mov al, byte [esp + ecx + 0x88]
mov byte [esp + ecx + 0x18c], al
inc ecx
test al, al
jne 0x45da34
mov esi, ebp
mov al, byte [ebp]
inc ebp
test al, al
jne 0x45da49
lea edi, [esp + 0x18c]
sub ebp, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45da5b
mov ecx, ebp
lea eax, [esp + 0x18c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
push 0x4a295c
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
jne 0x45daa2
lea eax, [esp + 0x18c]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
inc eax
neg eax
sbb eax, eax
jmp 0x45db20
push 2
push ebx
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push ebp
mov esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
add esp, 0x14
test esi, esi
je 0x45daec
lea eax, [esi + 1]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push ebp
push esi
mov edi, eax
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x14
cmp eax, esi
je 0x45daf7
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
or ebx, 0xffffffff
push ebp
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, ebx
jmp 0x45db21
lea ecx, [esp + 0x14]
call fcn.0045d0e0
push esi
push edi
lea ecx, [esp + 0x1c]
call fcn.0045d112
push edi
mov byte [edi + esi], bl
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
push edi
mov esi, eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, esi
pop ecx
pop ecx
mov ecx, dword [esp + 0x290]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046f32e
add esp, 0x284
ret
Function at 0x45f227
Capabilities:
Encode data using base64

Disassembly:
push 0x18
mov eax, 0x47b2fe
call fcn.0046fc84
mov dword [ebp - 0x1c], ecx
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x20], ebx
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 0xf
mov byte [ecx], bl
mov eax, dword [ebp + 8]
mov edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], 1
test eax, eax
je 0x45f3ba
push 3
pop esi
jmp 0x45f26e
mov edx, dword [ebp - 0x24]
dec eax
mov dword [ebp + 8], eax
mov al, byte [edx]
inc edx
mov byte [ebp + edi - 0x14], al
inc edi
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x24], edx
mov dl, byte [ebp - 0x13]
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp edi, esi
jne 0x45f300
mov esi, dword [ebp - 0x1c]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
and ch, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], ch
cmp dword [0x4c1134], 0xf
mov ecx, 0x4c1120
movzx eax, byte [ebp + edi - 0x18]
cmova ecx, dword [0x4c1120]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.0045f5b7
inc edi
cmp edi, 4
jl 0x45f2c8
mov dl, byte [ebp - 0xd]
mov edi, ebx
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
push 3
pop esi
mov eax, dword [ebp + 8]
test eax, eax
jne 0x45f26b
mov dword [ebp + 8], edi
test edi, edi
je 0x45f3b7
mov eax, edi
cmp edi, esi
jge 0x45f336
cmp eax, esi
jae 0x45f3c2
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x45f31e
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [edi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x24], eax
test eax, eax
jle 0x45f3a2
mov esi, dword [ebp - 0x1c]
mov edi, eax
cmp dword [0x4c1134], 0xf
mov ecx, 0x4c1120
movzx eax, byte [ebp + ebx - 0x18]
cmova ecx, dword [0x4c1120]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.0045f5b7
inc ebx
cmp ebx, edi
jl 0x45f373
mov edi, dword [ebp + 8]
push 3
pop esi
cmp edi, esi
jge 0x45f3b7
sub esi, edi
mov ecx, dword [ebp - 0x1c]
push 0x3d
call fcn.0045f5b7
sub esi, 1
jne 0x45f3a8
mov ecx, dword [ebp - 0x1c]
mov eax, ecx
call fcn.0046fc52
ret
call fcn.0046f481
int3
Function at 0x4633b1
Capabilities:
Get socket status

Disassembly:
sub esp, 0x61c
mov eax, dword [0x4af040]
xor eax, esp
mov dword [esp + 0x618], eax
mov eax, dword [esp + 0x624]
push ebx
push ebp
mov ebp, dword [esp + 0x628]
xor ebx, ebx
and dword [esp + 0x14], ebx
mov eax, dword [eax + 8]
push esi
mov esi, ecx
mov dword [esp + 0x10], ebp
push edi
xor edi, edi
mov dword [esp + 0x18], eax
cmp dword [esi + 0x11c], ebx
je 0x4635eb
and dword [esp + 0x20], 0
mov eax, dword [esi + 0x120]
mov dword [esp + 0x128], eax
mov dword [esp + 0x124], 1
test ebx, ebx
je 0x463425
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x18]
inc eax
push ecx
push 0
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x130]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x4635af
test eax, eax
je 0x46358b
lea eax, [esp + 0x124]
push eax
push dword [esi + 0x120]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x463487
test ebx, ebx
je 0x4633f8
lea eax, [esp + 0x20]
push eax
push dword [esi + 0x120]
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x4633f8
xor ebx, ebx
push 0x400
lea eax, [esp + 0x22c]
push eax
push ebp
call fcn.004011f0
mov ebp, eax
push ebp
push dword [esp + 0x24]
call fcn.004026e0
add esp, 0x14
test eax, eax
jne 0x463525
lea eax, [edi + ebp]
mov dword [esp + 0x10], eax
cmp eax, 0x27ff
jg 0x463544
push ebp
lea eax, [esp + 0x22c]
push eax
mov eax, dword [esi + 0x11c]
add eax, edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
push ebp
call fcn.004011d0
add esp, 0x10
test eax, eax
jne 0x463489
mov eax, dword [esi + 0x11c]
xor ecx, ecx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x20], ecx
mov byte [edi + eax], cl
test edi, edi
jne 0x4635d0
push 0x190
lea ecx, [esp + 0x14]
call fcn.0045f848
push 0x4ac264
mov eax, ecx
jmp 0x463600
cmp eax, 6
je 0x4634ed
mov ebp, dword [esp + 0x14]
cmp eax, 2
je 0x4633f8
cmp eax, 3
jne 0x463569
xor ebx, ebx
inc ebx
jmp 0x4633f8
and dword [esp + 0x124], ebx
lea ecx, [esp + 0x10]
and dword [esp + 0x20], ebx
push 0x198
call fcn.0045f848
push 0x4ac264
mov eax, ecx
jmp 0x463600
and dword [esp + 0x124], ebx
lea ecx, [esp + 0x10]
and dword [esp + 0x20], ebx
push 0x19e
call fcn.0045f848
push 0x4ac264
mov eax, ecx
jmp 0x463600
and dword [esp + 0x124], 0
lea ecx, [esp + 0x10]
and dword [esp + 0x20], 0
push 0x192
call fcn.0045f848
push 0x4ac264
mov eax, ecx
jmp 0x463600
and dword [esp + 0x124], 0
lea ecx, [esp + 0x10]
and dword [esp + 0x20], 0
push 0x6d
call fcn.0045f848
push 0x4ac264
mov eax, ecx
jmp 0x463600
mov ecx, dword [esp + 0x628]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0046f32e
add esp, 0x61c
ret 8
push 0x19a
lea ecx, [esp + 0x18]
call fcn.0045f848
push 0x4ac264
mov eax, ecx
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3