joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10046985
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 + 0x1006f398]
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 0x100469c5
cmp byte [ebx], 0xa
jne 0x100469c5
or byte [edi + eax + 0x28], 4
jmp 0x100469ca
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 0x10046ac9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10046aac
inc eax
cmp dl, 0xd
je 0x100469f6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10046a1c
cmp eax, ecx
jae 0x10046a2a
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 0x100469de
jmp 0x10046ac9
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 0x10046aa7
cmp dword [ebp - 0x10], 0
je 0x10046aa7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1006f398]
test byte [eax + edi + 0x28], 0x48
je 0x10046a81
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10046a6c
mov byte [esi], dl
jmp 0x10046a7d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1006f398]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10046ac9
cmp byte [ebp - 1], 0xa
jne 0x10046a90
cmp esi, ebx
jne 0x10046a90
mov byte [esi], 0xa
jmp 0x10046ac8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1004750b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10046ac9
mov byte [esi], 0xd
jmp 0x10046ac8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1006f398]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10046ac6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10046ac9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10046ad2
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 + 0x1006f398]
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 0x10046b18
cmp word [ebx], dx
jne 0x10046b18
or byte [eax + edi + 0x28], 4
jmp 0x10046b1d
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 0x10046c80
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 0x10046c60
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10046b5e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10046b94
cmp eax, edx
jae 0x10046ba2
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 0x10046b39
jmp 0x10046c80
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 0x10046c5b
cmp dword [ebp - 0x18], 0
je 0x10046c5b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1006f398]
test byte [eax + edi + 0x28], 0x48
je 0x10046c31
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 0x10046bf5
mov word [esi], cx
jmp 0x10046c2c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1006f398]
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 + 0x1006f398]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1006f398]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10046c80
pop eax
cmp word [ebp - 4], ax
jne 0x10046c41
cmp esi, ebx
jne 0x10046c41
mov word [esi], ax
jmp 0x10046c7d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1004750b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10046c80
push 0xd
pop eax
jmp 0x10046c3c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1006f398]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10046c7a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10046c80
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 0x1004b5b3
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 0x1004b650
push ebx
push esi
call fcn.1004b57c
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.1004a39d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004b5fd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004b64f
push edi
push eax
call fcn.100415ac
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1004b61d
call fcn.10041572
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004b64e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1004a39d
add esp, 0x20
test eax, eax
jne 0x1004b63c
push edi
call fcn.10041572
jmp 0x1004b644
push ebx
call fcn.10041572
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 0x1004f2e4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10042979
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1004f353
cmp esi, dword [ebp - 4]
je 0x1004f34e
cmp dword [ebp + 0xc], 0
je 0x1004f34e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1004f32b
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1004ee36
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1004f355
xor eax, eax
inc eax
jmp 0x1004f355
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1004f3ba
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1006d080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10042979
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10042979
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1004f431
cmp word [ecx], dx
je 0x1004f431
mov eax, dword [0x1005d2f4]
push edi
dec eax
push eax
push 0x1005d1e0
call fcn.1004f359
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1004f4a4
cmp word [eax], dx
je 0x1004f4a4
mov eax, dword [edi]
test eax, eax
je 0x1004f455
cmp word [eax], dx
je 0x1004f455
lea eax, [ebp - 0x10]
push eax
call fcn.1004ed3c
jmp 0x1004f45e
lea eax, [ebp - 0x10]
push eax
call fcn.1004edd7
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1004f4ce
mov eax, dword [0x1005d1dc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1005ced0
call fcn.1004f359
add esp, 0xc
test al, al
je 0x1004f4ce
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1004f499
cmp word [eax], di
je 0x1004f499
lea eax, [ebp - 0x10]
push eax
call fcn.1004ed3c
pop ecx
jmp 0x1004f4d0
lea eax, [ebp - 0x10]
push eax
call fcn.1004edd7
jmp 0x1004f496
mov eax, dword [edi]
test eax, eax
je 0x1004f4bb
cmp word [eax], dx
je 0x1004f4bb
lea eax, [ebp - 0x10]
push eax
call fcn.1004ecf1
pop ecx
jmp 0x1004f4ce
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1004f599
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1004f1de
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1004f599
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1004f599
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1004f599
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1004f526
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10046084
test ebx, ebx
je 0x1004f594
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10046084
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1004f599
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1004f599
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100398ee
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1004f59b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100321a8
leave
ret
Function at 0x10052866
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.100527e2
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100529d5
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100529d5
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1005298a
jg 0x100528c2
test eax, eax
je 0x10052980
push 1
push 0x1000
call fcn.10045a0d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100528e5
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10052977
push 0x8000
push ebx
call fcn.10052713
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1005290e
jg 0x10052909
cmp ecx, 0x1000
jb 0x1005290e
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100452ad
add esp, 0x10
cmp eax, 0xffffffff
je 0x10052953
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 0x10052909
jl 0x1005293a
test ecx, ecx
jne 0x100528fb
push dword [ebp - 0xc]
push ebx
call fcn.10052713
push esi
call fcn.10041572
add esp, 0xc
xor ebx, ebx
jmp 0x100529e3
cmp byte [edi + 0x24], 0
je 0x1005296a
cmp dword [edi + 0x20], 5
jne 0x1005296a
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10052975
mov ebx, dword [edi + 0x18]
jmp 0x10052977
xor ebx, ebx
push esi
call fcn.10041572
pop ecx
jmp 0x100529e3
test ecx, ecx
jg 0x1005294c
jl 0x1005298a
test eax, eax
jae 0x1005294c
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004750b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100529aa
cmp byte [edi + 0x1c], 0
je 0x1005294c
jmp 0x100529db
push ebx
call fcn.1004f974
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1005294c
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 0x100529e3
cmp byte [edi + 0x1c], 0
je 0x100529e0
mov ebx, dword [edi + 0x18]
jmp 0x100529e3
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1004750b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100533e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1005340d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005340d
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.2a837aea
push 0x2a8d2ef5
call fcn.2a837aea
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.2a837aea
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.2a837aea
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.2a837aea
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.2a837aea
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.2a837aea
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.2a837aea
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.2a837aea
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.2a837aea
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.2a837aea
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.2a837aea
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.2a837aea
lea eax, [ebp - 0xc0]
push eax
push str._port_
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 5
call fcn.2a837aea
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
Function at 0x2a837aea
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x2a837af9
pop dword [ebp - 0x2c]
mov eax, 0x2a837af9
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x108f940
add dword [ebp - 0x3c], 0x4d494c0b
mov dword [ebp - 0x38], 0x524ea0eb
sub dword [ebp - 0x38], 0x201b54a6
mov dword [ebp - 0x34], 0x2af082ea
sub dword [ebp - 0x34], 0xdea43ebc
mov dword [ebp - 0x30], 0x464d50bf
sub dword [ebp - 0x30], 0x464d50bf
lea eax, [ebp - 0x3c]
push eax
mov eax, 0xf8217c4a
add eax, 0x326bb516
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xfadf8ca9
add dword [ebp - 0x3c], 0x7992dcad
mov dword [ebp - 0x38], 0x3d27c838
sub dword [ebp - 0x38], 0xfbbb66c3
mov dword [ebp - 0x34], 0xf8b89b75
add dword [ebp - 0x34], 0x6ab6d0f7
mov dword [ebp - 0x30], 0xab73f3e4
add dword [ebp - 0x30], 0x548c0c1c
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xa1567fca
add eax, 0x8936b18e
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x485df
push 0
call eax
mov ecx, 0x7d9e1dd2
sub ecx, 0x7d9dd06e
xor esi, esi
add esi, eax
mov edi, 0xa3fd848c
sub edi, 0x79694e8c
add edi, dword [ebp - 0x2c]
mov edx, 0xc86f21c9
add edx, 0xd3c5d015
sub dword [ebp - 0x20], 0x594d1b78
mov ebx, dword [edi]
mov dword [ebp - 0x1c], 0x395822c3
xor ebx, edx
xor dword [ebp - 0x14], edx
mov dword [esi], ebx
add dword [ebp - 0x28], 0x7a1c9b56
add esi, 0x5c3919c2
add esi, 0xa3c6e642
add edi, 0x57de6cb0
add edi, 0xa8219354
loop 0x2a837c18
add eax, 0xe8f1e2d4
sub eax, 0xe8f0ba71
xor ebx, ebx
add ebx, eax
add eax, 0xa9da34a0
add eax, 0x5625cb65
mov ecx, 0x2a800000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret