joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49d8d0
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d385b
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.004b26d0
mov eax, dword [0x5d4748]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.004c2e66
push 0x5c
lea ecx, [esp + 8]
call fcn.004c30e0
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.004c30b9
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x49d976
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.004c2cdd
xor eax, eax
jmp 0x49d9f3
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x49d9d1
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x49d9c3
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x49d99d
jmp 0x49d9d1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.004c2cdd
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8

Function at 0x4a3540
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4d3ecb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
lea eax, [esp + 0x14]
push esi
xor esi, esi
push eax
push 0x104
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jae 0x4a3620
lea ecx, [esp + 0x18]
lea edx, [esp + 0x18]
push ecx
push esi
push 0x5d28f4
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp eax, esi
je 0x4a3620
lea eax, [esp + 0x18]
push 0x1001
push eax
lea ecx, [esp + 0xc]
call fcn.004c3396
mov dword [esp + 0x128], esi
mov esi, dword [esp + 0x134]
push str.lt_
push 0x5d28e8
mov ecx, esi
call fcn.004c029a
push str.gt_
push 0x5d28dc
mov ecx, esi
call fcn.004c029a
mov esi, dword [esi]
lea ecx, [esp + 4]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004c364a
lea ecx, [esp + 4]
call fcn.004c370e
mov esi, dword [esp + 0x130]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.004c2d4b
lea ecx, [esp + 4]
mov dword [esp + 0x128], 0xffffffff
call fcn.004c3436
jmp 0x4a3633
mov esi, dword [esp + 0x130]
push 0x5f51cc
mov ecx, esi
call fcn.004c2d4b
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x4c519a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c51d2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c3184
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c315c
jmp 0x4c51de
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c6891
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c68d3
call fcn.004cc5b6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c68d3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c68ca
xor eax, eax
jmp 0x4c68db
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c68e1
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ccae6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ccb14
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ccb32
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004cca4c
jmp 0x4ccb32
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ccb32
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004cca4c
test edi, edi
mov eax, edi
jne 0x4ccb1c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401945
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401984
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401984
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401984
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401984
cmp dword [ecx + 0x74], 0xe
jbe 0x401984
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x408a08
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417618
push 0x417610
push str.FlsAlloc
push 0x1f
call fcn.004088c7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408a3c
push dword [ebp + 8]
mov ecx, esi
call dword [0x41611c]
call esi
jmp 0x408a42
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408a86
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417628
push 0x417620
push str.FlsGetValue
push 0x21
call fcn.004088c7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408abd
push dword [ebp + 8]
mov ecx, esi
call dword [0x41611c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408ac5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x417630
push 0x417628
push str.FlsSetValue
push 0x22
call fcn.004088c7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408aff
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41611c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40c24e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40c2eb
push ebx
push esi
call fcn.0040c217
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040c1ab
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40c298
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c2ea
push edi
push eax
call fcn.00409a0b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40c2b8
call fcn.0040875a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c2e9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040c1ab
add esp, 0x20
test eax, eax
jne 0x40c2d7
push edi
call fcn.0040875a
jmp 0x40c2df
push ebx
call fcn.0040875a
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4122d5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00412251
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x412444
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x412444
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4123f9
jg 0x412331
test eax, eax
je 0x4123ef
push 1
push 0x1000
call fcn.004086fd
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x412354
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4123e6
push 0x8000
push ebx
call fcn.004075db
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x41237d
jg 0x412378
cmp ecx, 0x1000
jb 0x41237d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0040f26a
add esp, 0x10
cmp eax, 0xffffffff
je 0x4123c2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x412378
jl 0x4123a9
test ecx, ecx
jne 0x41236a
push dword [ebp - 0xc]
push ebx
call fcn.004075db
push esi
call fcn.0040875a
add esp, 0xc
xor ebx, ebx
jmp 0x412452
cmp byte [edi + 0x24], 0
je 0x4123d9
cmp dword [edi + 0x20], 5
jne 0x4123d9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4123e4
mov ebx, dword [edi + 0x18]
jmp 0x4123e6
xor ebx, ebx
push esi
call fcn.0040875a
pop ecx
jmp 0x412452
test ecx, ecx
jg 0x4123bb
jl 0x4123f9
test eax, eax
jae 0x4123bb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00412ebb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x412419
cmp byte [edi + 0x1c], 0
je 0x4123bb
jmp 0x41244a
push ebx
call fcn.0040cb2e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4123bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x412452
cmp byte [edi + 0x1c], 0
je 0x41244f
mov ebx, dword [edi + 0x18]
jmp 0x412452
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00412ebb
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41246c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x41df70]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4124ac
cmp byte [ebx], 0xa
jne 0x4124ac
or byte [edi + eax + 0x28], 4
jmp 0x4124b1
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4125b0
mov dl, byte [eax]
cmp dl, 0x1a
je 0x412593
inc eax
cmp dl, 0xd
je 0x4124dd
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x412503
cmp eax, ecx
jae 0x412511
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4124c5
jmp 0x4125b0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41258e
cmp dword [ebp - 0x10], 0
je 0x41258e
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x41df70]
test byte [eax + edi + 0x28], 0x48
je 0x412568
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x412553
mov byte [esi], dl
jmp 0x412564
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x41df70]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4125b0
cmp byte [ebp - 1], 0xa
jne 0x412577
cmp esi, ebx
jne 0x412577
mov byte [esi], 0xa
jmp 0x4125af
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00412ebb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4125b0
mov byte [esi], 0xd
jmp 0x4125af
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x41df70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4125ad
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4125b0
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4125b9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x41df70]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4125ff
cmp word [ebx], dx
jne 0x4125ff
or byte [eax + edi + 0x28], 4
jmp 0x412604
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x412767
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x412747
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x412645
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41267b
cmp eax, edx
jae 0x412689
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x412620
jmp 0x412767
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412742
cmp dword [ebp - 0x18], 0
je 0x412742
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x41df70]
test byte [eax + edi + 0x28], 0x48
je 0x412718
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4126dc
mov word [esi], cx
jmp 0x412713
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x41df70]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x41df70]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x41df70]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x412767
pop eax
cmp word [ebp - 4], ax
jne 0x412728
cmp esi, ebx
jne 0x412728
mov word [esi], ax
jmp 0x412764
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00412ebb
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x412767
push 0xd
pop eax
jmp 0x412723
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x41df70]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x412761
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x412767
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4156a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4156cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4156cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x2a81bccd
Capabilities:
Encode data using base64

Disassembly:
push 0x10
mov eax, 0x2a8ce50c
call fcn.2a801426
xor esi, esi
mov dword [ebp - 0x18], esi
mov edi, dword [ebp + 8]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], esi
mov byte [edi], 0
xor eax, eax
inc eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
test byte [0x2a91fae8], al
jne 0x2a81bd2a
or dword [0x2a91fae8], eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xb]
push eax
push 0x2a8d3d90
mov ecx, 0x2a91fac8
call fcn.2a836981
push 0x2a8d2ef5
call fcn.2a836981
pop ecx
mov byte [ebp - 4], 0
cmp dword [ebp + 0x10], esi
je 0x2a81be69
mov eax, dword [ebp + 0xc]
dec dword [ebp + 0x10]
mov al, byte [eax]
mov byte [ebp + esi - 0x10], al
mov bl, byte [ebp - 0xf]
inc esi
inc dword [ebp + 0xc]
cmp esi, 3
jne 0x2a81bdb4
mov al, byte [ebp - 0x10]
shr al, 2
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x10]
and al, 3
shl al, 4
mov cl, bl
shr cl, 4
add al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0x13], al
mov al, bl
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0xe]
and al, 0x3f
mov byte [ebp - 0x11], al
xor esi, esi
cmp dword [0x2a91fadc], 0x10
mov eax, dword [0x2a91fac8]
jae 0x2a81bd95
mov eax, 0x2a91fac8
movzx ecx, byte [ebp + esi - 0x14]
mov al, byte [ecx + eax]
mov byte [ebp - 0x1c], al
push dword [ebp - 0x1c]
mov ecx, edi
push 1
call fcn.2a836981
inc esi
cmp esi, 4
jl 0x2a81bd82
xor esi, esi
cmp dword [ebp + 0x10], 0
jne 0x2a81bd33
test esi, esi
je 0x2a81be69
cmp esi, 3
jge 0x2a81bde3
push 3
pop ecx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x10]
push 0
push eax
call sub.MSVCR100.dll_memset
mov bl, byte [ebp - 0xf]
add esp, 0xc
mov al, byte [ebp - 0x10]
mov cl, al
shr cl, 2
mov byte [ebp - 0x14], cl
and al, 3
mov cl, bl
shl al, 4
shr cl, 4
add al, cl
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0xe]
and bl, 0xf
mov cl, al
shl bl, 2
shr cl, 6
add bl, cl
mov byte [ebp - 0x12], bl
and al, 0x3f
lea ebx, [esi + 1]
xor edi, edi
mov byte [ebp - 0x11], al
test ebx, ebx
jle 0x2a81be4e
cmp dword [0x2a91fadc], 0x10
mov eax, dword [0x2a91fac8]
jae 0x2a81be31
mov eax, 0x2a91fac8
movzx ecx, byte [ebp + edi - 0x14]
mov al, byte [ecx + eax]
mov ecx, dword [ebp + 8]
mov byte [ebp + 0x10], al
push dword [ebp + 0x10]
push 1
call fcn.2a836981
inc edi
cmp edi, ebx
jl 0x2a81be1e
push 3
pop edi
cmp esi, edi
jge 0x2a81be66
sub edi, esi
mov ecx, dword [ebp + 8]
push 0x3d
push 1
call fcn.2a836981
dec edi
jne 0x2a81be57
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.2a801635
ret
Function at 0x2a823dad
Capabilities:
Encode data using base64

Disassembly:
push 8
mov eax, 0x2a8cf87b
call fcn.2a801426
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [eax + 0x14], 0x10
jb 0x2a823dce
mov edx, dword [eax]
mov dword [ebp - 0x10], edx
jmp 0x2a823dd1
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 8]
mov ebx, dword [eax + 0x10]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ecx
mov byte [edi], cl
push ecx
mov eax, ebx
shl eax, 2
push 3
mov dword [ebp - 4], ecx
pop ecx
cdq
idiv ecx
mov dword [ebp - 0x14], 1
add eax, ecx
push eax
mov ecx, edi
call fcn.2a836981
cmp dword [edi + 0x14], 0x10
jb 0x2a823e0d
mov esi, dword [edi]
jmp 0x2a823e0f
mov esi, edi
xor eax, eax
test ebx, ebx
jle 0x2a823eb1
mov edx, dword [ebp - 0x10]
movzx ecx, byte [eax + edx]
shr ecx, 2
mov cl, byte [ecx + 0x2a8d3d90]
mov byte [esi], cl
mov cl, byte [eax + edx]
and cl, 3
shl cl, 4
inc eax
cmp eax, ebx
jge 0x2a823e44
mov dl, byte [eax + edx]
shr dl, 4
or cl, dl
mov edx, dword [ebp - 0x10]
movzx ecx, cl
mov cl, byte [ecx + 0x2a8d3d90]
mov byte [esi + 1], cl
cmp eax, ebx
jge 0x2a823e86
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 0x10
jb 0x2a823e5f
mov ecx, dword [ecx]
mov cl, byte [ecx + eax]
and cl, 0xf
shl cl, 2
inc eax
cmp eax, ebx
jge 0x2a823e78
mov dl, byte [eax + edx]
shr dl, 6
or cl, dl
mov edx, dword [ebp - 0x10]
movzx ecx, cl
mov cl, byte [ecx + 0x2a8d3d90]
mov byte [esi + 2], cl
jmp 0x2a823e8a
mov byte [esi + 2], 0x3d
add esi, 3
cmp eax, ebx
jge 0x2a823ea4
mov cl, byte [eax + edx]
and cl, 0x3f
movzx ecx, cl
mov cl, byte [ecx + 0x2a8d3d90]
mov byte [esi], cl
jmp 0x2a823ea7
mov byte [esi], 0x3d
inc esi
inc eax
cmp eax, ebx
jl 0x2a823e19
cmp dword [edi + 0x14], 0x10
jb 0x2a823ebb
mov eax, dword [edi]
jmp 0x2a823ebd
mov eax, edi
push 0
sub esi, eax
push esi
mov ecx, edi
call fcn.2a836981
mov eax, edi
call fcn.2a801635
ret

Function at 0x2a827011
Capabilities:
Get hostname

Disassembly:
push 0x45c
mov eax, 0x2a8cfea0
call fcn.2a85a9c0
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x3ff
lea eax, [ebp - 0x40f]
push ebx
mov dword [ebp - 0x464], ebx
push eax
mov byte [ebp - 0x410], bl
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x400
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x2a8270ae
push 0x8f
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x468], ebx
mov dword [ebp - 0x464], ebx
call fcn.2a836981
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x468]
mov dword [ebp - 4], ebx
call fcn.2a81bf9d
push eax
lea ecx, [ebp - 0x43c]
mov byte [ebp - 4], 1
call fcn.2a81bb58
push 0x2a90d9a8
lea eax, [ebp - 0x43c]
push eax
call sub.MSVCR100.dll__CxxThrowException
lea eax, [ebp - 0x45d]
push eax
lea eax, [ebp - 0x410]
push eax
mov ecx, esi
call fcn.2a836981
mov eax, esi
call fcn.2a85aa2f
ret
Function at 0x2a82c0a7
Capabilities:
Connect socket
Resolve dns

Disassembly:
push 0xc0
mov eax, 0x2a8d0c81
call fcn.2a85a9c0
movzx eax, word [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, ecx
cmp dword [ebx + 0x10004], 0xffffffff
mov dword [ebp - 0xc4], eax
je 0x2a82c0d3
call fcn.2a82c03c
push 0x10
xor edi, edi
lea eax, [ebp - 0x20]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 2
pop eax
push dword [ebp - 0xc4]
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi + 0x14], 0x10
mov word [ebp - 0x1e], ax
jb 0x2a82c105
mov eax, dword [esi]
jmp 0x2a82c107
mov eax, esi
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x2a82c192
cmp dword [esi + 0x14], 0x10
jb 0x2a82c11e
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, edi
jne 0x2a82c17c
push 0x8c
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xbc], edi
call fcn.2a836981
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], edi
call fcn.2a81bf9d
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x4c]
call fcn.2a81bb58
mov dword [ebp - 0x4c], vtable.Exceptions::SocketException.0
push 0x2a91016c
lea eax, [ebp - 0x4c]
push eax
call sub.MSVCR100.dll__CxxThrowException
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push edi
push 1
push 2
pop esi
push esi
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 0x10004], eax
cmp eax, 0xffffffff
jne 0x2a82c1e4
push 0x8d
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xbc], edi
call fcn.2a836981
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], esi
call fcn.2a81bf9d
mov byte [ebp - 4], 3
jmp 0x2a82c15e
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x2a82c2a0
mov ecx, ebx
call fcn.2a82c03c
push 0x8e
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xcc], edi
mov dword [ebp - 0xc8], edi
call fcn.2a836981
movzx eax, word [ebp - 0xc4]
push eax
lea ecx, [ebp - 0xc0]
mov dword [ebp - 4], 4
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xbc], edi
call fcn.2a836981
lea eax, [ebp - 0xc0]
push eax
push str._port_
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 5
call fcn.2a836981
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 4
call fcn.2a80afb1
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xcc]
call fcn.2a81bf9d
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.2a81bb58
mov dword [ebp - 0x78], vtable.Exceptions::SocketException.0
push 0x2a91016c
lea eax, [ebp - 0x78]
jmp 0x2a82c176
call fcn.2a85aa2f
ret 8