joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402300
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415728
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x41e080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00402770
mov dword [edi], eax
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00402770
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, edi
push dword [eax + 4]
call fcn.00402870
mov eax, dword [edi]
lea ecx, [edi + 8]
mov dword [eax + 4], eax
mov eax, dword [edi]
mov dword [eax], eax
mov eax, dword [edi]
mov dword [eax + 8], eax
mov dword [edi + 4], 0
mov eax, dword [edi + 8]
push dword [eax + 4]
call fcn.00402870
mov eax, dword [edi + 8]
mov dword [eax + 4], eax
mov eax, dword [edi + 8]
mov dword [eax], eax
mov eax, dword [edi + 8]
mov dword [eax + 8], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403db0
Capabilities:
Get disk size

Disassembly:
mov ecx, dword [0x41f1a0]
push ebx
push esi
lea esi, [ecx + 1]
mov eax, esi
imul eax, ecx
push edi
cdq
mov edi, 0xa
idiv edi
mov bl, 1
cmp edx, 8
jne 0x403e00
lea eax, [ecx + 2]
imul eax, esi
imul eax, ecx
and eax, 0x80000007
jns 0x403de5
dec eax
or eax, 0xfffffff8
inc eax
cmp eax, 3
jne 0x403dfa
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
pop edi
pop esi
xor al, al
pop ebx
ret
pop edi
pop esi
mov al, bl
pop ebx
ret

Function at 0x404580
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40459b
test al, 0x10
je 0x40459b
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x405830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405891
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x40586d
cmp eax, 2
jne 0x40587f
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x40588d
test eax, eax
je 0x40588a
cmp byte [eax + esi - 1], 0
je 0x40588d
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x405c10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405c25
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405c64
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405c60
lea ebx, [ebx]
cmp esi, edx
jae 0x405c64
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x405c50
cmp esi, edx
jb 0x405c69
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40ff34
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41e080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040d02d
mov dword [ebp - 0x14], eax
cmp dword [0x41fef4], edi
jne 0x410025
push 0x800
push edi
push 0x4189f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40ffb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x410105
push 0x4189f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x410105
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410105
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x41fef4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x41fef8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x41fefc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41ff04], eax
test eax, eax
je 0x410022
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41ff00], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41004a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41003d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41005f
push 4
pop eax
jmp 0x410107
cmp dword [ebp - 0x14], edi
je 0x41005f
push dword [0x41fef4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x410044
mov eax, dword [0x41ff00]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4100bd
cmp dword [0x41ff04], esi
je 0x4100bd
push eax
call ebx
push dword [0x41ff04]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4100bd
test eax, eax
je 0x4100bd
call ecx
test eax, eax
je 0x4100b2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4100b2
test byte [ebp - 8], 1
jne 0x4100bd
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4100ed
mov eax, dword [0x41fef8]
cmp eax, esi
je 0x4100ea
push eax
call ebx
test eax, eax
je 0x4100ea
call eax
mov edi, eax
test edi, edi
je 0x4100ea
mov eax, dword [0x41fefc]
cmp eax, esi
je 0x4100ea
push eax
call ebx
test eax, eax
je 0x4100ea
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x41fef4]
call ebx
test eax, eax
je 0x410105
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x410107
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407e14
leave
ret
Function at 0x5cb8d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x177000]
push edi
jmp 0x5cb8ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5cb8f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5cb8e0
mov eax, 1
add ebx, ebx
jne 0x5cb903
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5cb914
jne 0x5cb933
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5cb933
dec eax
add ebx, ebx
jne 0x5cb920
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5cb8f8
add ebx, ebx
jne 0x5cb92f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5cb985
xor ecx, ecx
sub eax, 3
jb 0x5cb94b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5cb9ba
sar eax, 1
mov ebp, eax
jmp 0x5cb956
add ebx, ebx
jne 0x5cb956
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5cb924
inc ecx
add ebx, ebx
jne 0x5cb964
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5cb924
add ebx, ebx
jne 0x5cb971
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5cb966
jne 0x5cb982
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5cb966
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5cb9a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5cb996
jmp 0x5cb8e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5cb9a4
add edi, ecx
jmp 0x5cb8e6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5cb9c2
cmp byte [edi], 0x11
jne 0x5cb9c2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5cb9c7
lea edi, [esi + 0x1c4000]
mov eax, dword [edi]
or eax, eax
je 0x5cba3f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2c028c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2c0408]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5cb9f4
mov ecx, edi
jns 0x5cba23
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2c040c]
or eax, eax
je 0x5cba39
mov dword [ebx], eax
add ebx, 4
jmp 0x5cba11
call dword [esi + 0x2c041c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5cba70
cmp al, 0xef
ja 0x5cba63
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5cba45
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5cba52
mov ebp, dword [esi + 0x2c0410]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5cbaa4
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x406200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add edi, 8
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
cmp dword [eax + 4], 0x1e
bswap eax
mov eax, dword [0x8b440001]
pop eax
or al, 0x8b
or ecx, dword [eax]
xor ecx, ecx
mov eax, dword [edi + 0x47b8b04]
test esp, edx
mov dword [edi - 8], esp
jbe 0x406240
mov esi, dword [eax + 0x79008e1c]
add esi, 0xc

Function at 0x40a940
Capabilities:
Link function at runtime on windows

Disassembly:
push ebp
sub esp, ebp
mov eax, dword [ebp + 8]
push esi
adc eax, 0x48e4850c
mov dword [eax], 0xe485340c
or ch, dl
test dword [edx - 0x37], 0x7a8b1775
test esp, esi
les ecx, [ecx + 0x15ff5000]
sbb al, al
inc eax
add byte [ebp + 0x750689c0], al
add eax, dword [eax + 0x45cdc35d]
adc byte [edi + 0x16], ch
je 0x40a984
mov ecx, dword [esi]
jnp 0x40a965
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop esi
movnti dword [ebx + 0x199f0c55], ecx
add edx, dword [eax - 1]
adc eax, sym.imp.KERNEL32.dll_GetProcAddress
mov edx, dword [ebp + 0xc]
lahf
sbb dword [ebx], eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]

Function at 0x480428
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
pushal
mov ebx, dword [esp + 0x24]
mov ecx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
add ebx, ecx
mov edi, dword [ebx + 0x20]
add edi, ecx
xor esi, esi
lea edx, [edi + esi*4]
mov edx, dword [edx]
add edx, ecx
xor eax, eax
rol eax, 7
xor al, byte [edx]
inc edx
cmp byte [edx], 0
jne 0x480447
cmp eax, dword [esp + 0x28]
je 0x48045e
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x48043e
lea edx, [edi + esi*4]
mov edx, dword [edx]
add edx, ecx
mov dword [esp + 0x1c], edx
popal
ret 8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x42a4f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40d015
lea edi, [esi - 0xc015]
push edi
or ebp, 0xffffffff
jmp 0x42a512
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42a519
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42a508
mov eax, 1
add ebx, ebx
jne 0x42a52b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42a520
jne 0x42a53c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42a520
xor ecx, ecx
sub eax, 3
jb 0x42a550
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42a5c2
mov ebp, eax
add ebx, ebx
jne 0x42a55b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42a568
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42a58c
inc ecx
add ebx, ebx
jne 0x42a578
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42a56d
jne 0x42a589
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42a56d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42a5ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42a59d
jmp 0x42a50e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42a5ac
add edi, ecx
jmp 0x42a50e
pop esi
mov edi, esi
mov ecx, 0x21
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42a5ca
cmp byte [edi], 1
jne 0x42a5ca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42a5cf
lea edi, [esi + 0x28000]
mov eax, dword [edi]
or eax, eax
je 0x42a63e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2a088]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2a140]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42a5fc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2a148]
or eax, eax
je 0x42a638
mov dword [ebx], eax
add ebx, 4
jmp 0x42a619
call dword [esi + 0x2a144]
mov ebp, dword [esi + 0x2a14c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42a672
sub esp, 0xffffff80
jmp 0x401219
Function at 0x401000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
test ecx, ecx
jle 0x4010a8
sub edx, edi
push ebx
mov dword [ebp - 4], edx
mov dword [ebp + 8], ecx
push esi
lea ebx, [ebx]
mov ecx, dword [eax + 0x104]
inc ecx
and ecx, 0x800000ff
jns 0x401037
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [eax + 0x104], ecx
movzx esi, byte [ecx + eax]
add esi, dword [eax + 0x108]
and esi, 0x800000ff
jns 0x401057
dec esi
or esi, 0xffffff00
inc esi
mov dword [eax + 0x108], esi
mov dl, byte [ecx + eax]
mov bl, byte [esi + eax]
mov byte [ecx + eax], bl
mov byte [esi + eax], dl
mov ecx, dword [eax + 0x108]
movzx edx, byte [ecx + eax]
mov ecx, dword [eax + 0x104]
movzx ecx, byte [ecx + eax]
add edx, ecx
and edx, 0x800000ff
jns 0x40108f
dec edx
or edx, 0xffffff00
inc edx
movzx edx, byte [edx + eax]
mov ecx, dword [ebp - 4]
xor dl, byte [ecx + edi]
inc edi
dec dword [ebp + 8]
mov byte [edi - 1], dl
jne 0x401020
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x4010b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor edi, edi
mov dword [ecx + 0x104], edi
mov dword [ecx + 0x108], edi
mov dword [ecx + 0x100], 4
xor eax, eax
mov byte [eax + ecx], al
inc eax
cmp eax, 0x100
jl 0x4010d2
mov eax, 1
sub eax, ecx
mov dword [ebp - 0xc], eax
mov eax, 2
sub eax, ecx
mov dword [ebp - 0x10], eax
mov eax, 3
sub eax, ecx
mov dword [ebp - 8], edi
mov esi, ecx
mov dword [ebp - 0x14], eax
movzx eax, byte [esi]
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
cdq
idiv dword [ecx + 0x100]
movzx eax, byte [ebp - 1]
movzx edx, byte [edx + ebx]
add edi, edx
add edi, eax
and edi, 0x800000ff
jns 0x40112c
dec edi
or edi, 0xffffff00
inc edi
movzx edx, byte [edi + ecx]
movzx eax, byte [ebp - 1]
mov byte [esi], dl
mov byte [edi + ecx], al
movzx edx, byte [esi + 1]
mov eax, dword [ebp - 0xc]
add eax, esi
mov byte [ebp - 1], dl
cdq
idiv dword [ecx + 0x100]
movzx eax, byte [ebp - 1]
movzx edx, byte [edx + ebx]
add edi, edx
add edi, eax
and edi, 0x800000ff
jns 0x401168
dec edi
or edi, 0xffffff00
inc edi
movzx edx, byte [edi + ecx]
movzx eax, byte [ebp - 1]
mov byte [esi + 1], dl
mov byte [edi + ecx], al
movzx edx, byte [esi + 2]
mov eax, dword [ebp - 0x10]
add eax, esi
mov byte [ebp - 1], dl
cdq
idiv dword [ecx + 0x100]
movzx eax, byte [ebp - 1]
movzx edx, byte [edx + ebx]
add edi, edx
add edi, eax
and edi, 0x800000ff
jns 0x4011a5
dec edi
or edi, 0xffffff00
inc edi
movzx edx, byte [edi + ecx]
movzx eax, byte [ebp - 1]
mov byte [esi + 2], dl
mov byte [edi + ecx], al
movzx edx, byte [esi + 3]
mov eax, dword [ebp - 0x14]
add eax, esi
mov byte [ebp - 1], dl
cdq
idiv dword [ecx + 0x100]
movzx eax, byte [ebp - 1]
movzx edx, byte [edx + ebx]
add edi, edx
add edi, eax
and edi, 0x800000ff
jns 0x4011e2
dec edi
or edi, 0xffffff00
inc edi
movzx edx, byte [edi + ecx]
movzx eax, byte [ebp - 1]
mov byte [esi + 3], dl
mov byte [edi + ecx], al
mov eax, dword [ebp - 8]
add eax, 4
add esi, 4
mov dword [ebp - 8], eax
cmp eax, 0x100
jl 0x401100
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401270
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0xaaaaaaab
mul ecx
push ebx
push esi
mov esi, edx
shr esi, 1
lea eax, [esi + esi*2]
cmp ecx, eax
seta dl
add eax, 2
cmp ecx, eax
movzx ebx, dl
sete byte [ebp - 2]
add ebx, esi
add ebx, ebx
add ebx, ebx
lea eax, [ebx + 3]
push edi
push eax
mov byte [ebp - 1], dl
mov dword [ebp - 0xc], ebx
call fcn.00404ecd
mov edi, eax
add esp, 4
xor eax, eax
test esi, esi
je 0x401338
mov ecx, dword [ebp + 8]
add ecx, 2
lea edx, [edi + 2]
mov dword [ebp - 8], esi
mov eax, esi
lea ebx, [ebx]
movzx esi, byte [ecx - 2]
shr esi, 2
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 2], bl
movzx esi, byte [ecx - 1]
movzx ebx, byte [ecx - 2]
shr esi, 4
shl ebx, 4
or esi, ebx
and esi, 0x3f
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 1], bl
movzx ebx, byte [ecx - 1]
movzx esi, byte [ecx]
add ebx, ebx
shr esi, 6
add ebx, ebx
or esi, ebx
and esi, 0x3f
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx], bl
movzx esi, byte [ecx]
and esi, 0x3f
movzx ebx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + 1], bl
add ecx, 3
add edx, 4
dec dword [ebp - 8]
jne 0x4012d0
mov ebx, dword [ebp - 0xc]
cmp byte [ebp - 1], 0
je 0x4013bf
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
movzx ecx, byte [eax + edx]
lea esi, [eax + edx]
shr ecx, 2
cmp byte [ebp - 2], 0
mov dl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4], dl
movzx edx, byte [esi]
je 0x4013a5
movzx ecx, byte [esi + 1]
shr ecx, 4
shl edx, 4
or ecx, edx
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4 + 1], cl
movzx edx, byte [esi + 1]
and edx, 0xf
movzx ecx, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4 + 2], cl
mov byte [edi + eax*4 + 3], 0x3d
mov byte [edi + ebx], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
and edx, 3
shl edx, 4
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + eax*4 + 1], cl
mov byte [edi + eax*4 + 2], 0x3d
mov byte [edi + eax*4 + 3], 0x3d
mov byte [edi + ebx], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401750
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x408018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp dword [esi + 0x18], 0x10
mov edi, eax
lea eax, [esi + 4]
jb 0x40177a
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
movzx ecx, word [esi]
mov eax, 2
push ecx
mov dword [ebp - 0x10], edx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x14]
push edx
push edi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4017c4
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404eea
mov esp, ebp
pop ebp
ret
push 0x401
mov dword [esi + 0x4c0], edi
lea edi, [esi + 0xb8]
push 0
push edi
call sub.MSVCR100.dll_memset
mov eax, dword [esi + 0x4c0]
add esp, 0xc
push 0
push 0x400
push edi
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4017b3
mov ecx, dword [ebp - 4]
mov byte [esi + eax + 0xb8], 0
xor ecx, ebp
mov al, 1
pop edi
call fcn.00404eea
mov esp, ebp
pop ebp
ret

Function at 0x401870
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
push 0x401
lea esi, [edi + 0xb8]
push 0
push esi
call sub.MSVCR100.dll_memset
mov eax, dword [edi + 0x4c0]
add esp, 0xc
push 0
push 0x400
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
pop esi
cmp eax, 0xffffffff
jne 0x4018a5
xor al, al
ret
mov byte [eax + edi + 0xb8], 0
mov al, 1
ret