joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405710
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x515358
push 0x496320
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x527064]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x405758
mov dword [ebx], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0x1f4
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov eax, 0x200
call fcn.00491390
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x30], esi
test esi, esi
je 0x405796
mov dword [esi], 0xcccc
add esi, 8
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x4057cd
test esi, esi
jne 0x4057db
mov eax, 0xe
jmp 0x405939
lea eax, [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
cmp edi, 0xea
jne 0x4058f4
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
jne 0x405813
push esi
call fcn.004a2e5c
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x28]
lea ecx, [edx + 8]
cmp edx, ecx
sbb eax, eax
test ecx, eax
je 0x40589b
cmp edx, ecx
sbb eax, eax
and eax, ecx
cmp eax, 0x400
ja 0x40586b
cmp edx, ecx
sbb eax, eax
and eax, ecx
call fcn.00491390
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x34], esi
test esi, esi
je 0x40589d
mov dword [esi], 0xcccc
add esi, 8
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x4058d1
cmp edx, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.004a3e8e
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
je 0x40589d
mov dword [esi], 0xdddd
add esi, 8
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x4058d1
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x4058d1
test esi, esi
je 0x4057d1
lea eax, [ebp - 0x28]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x405923
cmp dword [ebp - 0x24], 3
je 0x405905
mov edi, 0xd
jmp 0x405923
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
push esi
call fcn.00404c20
mov edi, eax
test ebx, ebx
je 0x405923
mov eax, dword [ebp - 0x24]
mov dword [ebx], eax
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
jne 0x405937
push esi
call fcn.004a2e5c
add esp, 4
mov eax, edi
lea esp, [ebp - 0x48]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004908ad
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x515380
push 0x496320
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x527064]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x4059b3
mov eax, dword [edi]
mov dword [ebp - 0x20], eax
push edi
mov esi, dword [ebp + 0x10]
push esi
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x24]
test edx, edx
je 0x4059d5
mov dword [edx], ecx
cmp ecx, 1
je 0x4059e3
cmp ecx, 7
jne 0x405b42
test edi, edi
je 0x405b42
cmp dword [edi], 0
je 0x405b42
test eax, eax
je 0x405a03
cmp eax, 0xea
jne 0x405b42
mov eax, dword [ebp - 0x20]
mov ebx, dword [edi]
mov dword [ebp - 0x20], ebx
mov dword [edi], eax
test esi, esi
je 0x405a1d
push eax
push 0
push esi
call fcn.00496490
add esp, 0xc
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
lea ecx, [ebx + 8]
cmp ebx, ecx
sbb eax, eax
test ecx, eax
je 0x405aa8
cmp ebx, ecx
sbb eax, eax
and eax, ecx
cmp eax, 0x400
ja 0x405a75
cmp ebx, ecx
sbb eax, eax
and eax, ecx
call fcn.00491390
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x30], esi
test esi, esi
je 0x405aaa
mov dword [esi], 0xcccc
add esi, 8
mov dword [ebp - 0x30], esi
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x405ae1
cmp ebx, ecx
sbb eax, eax
and eax, ecx
push eax
call fcn.004a3e8e
add esp, 4
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x405a99
mov dword [esi], 0xdddd
add esi, 8
mov dword [ebp - 0x34], esi
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x405ae1
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xfffffffe
jmp 0x405ae1
test esi, esi
jne 0x405aea
lea eax, [esi + 0xe]
jmp 0x405b42
push ebx
push 0
push esi
call fcn.00496490
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp + 8]
mov ebx, dword [ebp - 0x28]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x405b29
push edi
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x24]
mov ecx, ebx
call fcn.004056b0
mov edi, eax
jmp 0x405b2c
mov edi, dword [ebp - 0x28]
add esi, 0xfffffff8
cmp dword [esi], 0xdddd
jne 0x405b40
push esi
call fcn.004a2e5c
add esp, 4
mov eax, edi
lea esp, [ebp - 0x44]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004908ad
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406d50
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x898
mov eax, dword [0x527064]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x898], ebx
push esi
push edi
mov edi, edx
test ebx, ebx
je 0x406fc6
xor eax, eax
cmp ax, word [ebx]
je 0x406fc6
test edi, edi
je 0x406fc6
push 0x208
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00496490
add esp, 0xc
mov dword [ebp - 0x644], 0
xorps xmm0, xmm0
mov dword [ebp - 0x638], 0
lea eax, [ebp - 0x624]
movq qword [ebp - 0x640], xmm0
mov dword [ebp - 0x634], 0
push ebx
push str._s___
push eax
movq qword [ebp - 0x630], xmm0
mov dword [ebp - 0x628], 0
call fcn.004097a0
add esp, 0xc
lea eax, [ebp - 0x894]
push 0x250
push 0
push eax
call fcn.00496490
add esp, 0xc
lea eax, [ebp - 0x894]
push eax
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406fa6
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [eax + eax]
cmp dword [ebp - 0x894], 0x10
jne 0x406f48
xor eax, eax
cmp ax, word [ebp - 0x868]
je 0x406f48
cmp ax, word [ebp - 0x214]
jne 0x406eab
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x868]
push 0x4f8184
push eax
call fcn.00402f40
add esp, 0x18
cmp eax, 4
jne 0x406f48
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.004a2993
jmp 0x406f45
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x868]
push 0x4f8184
push eax
call fcn.00402f40
add esp, 0x18
cmp eax, 4
jne 0x406f48
xor eax, eax
nop dword [eax]
nop word [eax + eax]
mov ecx, dword [ebp + eax*4 - 0x634]
cmp ecx, dword [ebp + eax*4 - 0x644]
jne 0x406f08
inc eax
cmp eax, 4
jl 0x406ef0
jmp 0x406f48
lea ecx, [eax*4]
mov eax, dword [ebp + ecx - 0x634]
cmp eax, dword [ebp + ecx - 0x644]
jbe 0x406f48
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.004a2993
movups xmm0, xmmword [ebp - 0x634]
movups xmmword [ebp - 0x644], xmm0
add esp, 0xc
lea eax, [ebp - 0x894]
push eax
push esi
call ebx
test eax, eax
jne 0x406e30
cmp ax, word [ebp - 0x214]
je 0x406fa6
push dword [ebp - 0x898]
push 0x104
push edi
call fcn.004a2993
add esp, 0xc
push 0x4f8180
push 0x104
push edi
call fcn.004a29f7
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0x104
push edi
call fcn.004a29f7
add esp, 0xc
mov ebx, 1
jmp 0x406fa8
xor ebx, ebx
test esi, esi
je 0x406fb3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004908ad
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004908ad
mov esp, ebp
pop ebp
ret
Function at 0x406fe0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da03b
mov eax, dword fs:[0]
push eax
sub esp, 0x318
mov eax, dword [0x527064]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x208
push 0
push eax
call fcn.00496490
add esp, 0xc
test esi, esi
je 0x407070
cmp word [esi], 0
je 0x407070
push esi
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004a2993
lea ecx, [ebp - 0x21c]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407054
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x21e], 0x5c
je 0x4070c6
jmp 0x4070ad
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x407093
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40718d
lea eax, [ebp - 0x21c]
push 0x5c
push eax
call fcn.004958be
add esp, 8
test eax, eax
je 0x4070c6
xor ecx, ecx
mov word [eax], cx
push 0x4f8180
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004a29f7
add esp, 0xc
push dword [edi]
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004a29f7
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4070f8
mov eax, 2
jmp 0x40718d
add edi, 4
lea eax, [ebp - 0x21c]
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x407114
cmp dword [edi], 0
jne 0x407171
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x320]
call fcn.00408ca0
mov byte [ebp - 4], 1
push dword [eax]
call fcn.0048b4dc
mov esi, eax
lea ecx, [ebp - 0x31c]
mov eax, dword [ebp - 0x320]
add esp, 4
cmp eax, ecx
je 0x407156
push eax
call fcn.004a2e5c
add esp, 4
test esi, esi
jne 0x40718b
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x407088
xor eax, eax
jmp 0x40718d
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004908ad
mov esp, ebp
pop ebp
ret 4
Function at 0x4075c0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x527064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
xor esi, esi
mov word [ebp - 8], 0x500
push 8
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor ebx, ebx
test eax, eax
je 0x4076b3
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ebx
call edi
test eax, eax
jne 0x407631
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4076b2
push dword [ebp - 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4076b2
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push esi
push 2
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x4076b2
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4076b2
xor edi, edi
cmp dword [esi], ebx
jbe 0x4076b2
lea ebx, [esi + 4]
push dword [ebx]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4076a0
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x407685
xor ebx, ebx
jmp 0x4076b2
test byte [esi + edi*8 + 8], 4
mov ebx, 0
mov eax, 1
cmovne ebx, eax
pop edi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4076c1
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test esi, esi
je 0x4076cc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4076da
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004908ad
mov esp, ebp
pop ebp
ret 4
Function at 0x407b60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x527064]
xor eax, ebp
mov dword [ebp - 8], eax
movups xmm0, xmmword [str.CommonFiles_Dir]
mov ax, word [0x4f8640]
push esi
movups xmmword [ebp - 0x4c], xmm0
push edi
movups xmm0, xmmword [0x4f8610]
push 0x410
mov word [ebp - 0xc], ax
mov edi, ecx
movups xmmword [ebp - 0x3c], xmm0
lea eax, [ebp - 0x45c]
movups xmm0, xmmword [str.McAfeePlatform]
push 0
push eax
movups xmmword [ebp - 0x2c], xmm0
movups xmm0, xmmword [0x4f8630]
movups xmmword [ebp - 0x1c], xmm0
call fcn.00496490
add esp, 0xc
mov dword [ebp - 0x460], 0
test edi, edi
je 0x407d42
push 0
lea eax, [ebp - 0x464]
mov dword [ebp - 0x464], 0x410
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x4c]
push eax
push str.SOFTWAREMcAfeePlatform
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00405b70
add esp, 0x1c
test eax, eax
jne 0x407c33
cmp dword [ebp - 0x460], 1
jne 0x407c33
lea ecx, [ebp - 0x45c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407c22
sub ecx, edx
sar ecx, 1
jne 0x407c71
xor eax, eax
mov word [ebp - 0x45c], ax
lea eax, [ebp - 0x45c]
push eax
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x407d28
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x45c]
push 0x208
push eax
call fcn.004a29f7
add esp, 0xc
lea ecx, [ebp - 0x45c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407c80
sub ecx, edx
mov eax, 0x5c
sar ecx, 1
cmp ax, word [ebp + ecx*2 - 0x45e]
je 0x407cbf
push 0x4f8180
lea eax, [ebp - 0x45c]
push 0x208
push eax
call fcn.004a29f7
add esp, 0xc
test eax, eax
jne 0x407d47
mov ecx, 0x22
lea edx, [ebp - 0x45c]
cmp cx, word [ebp - 0x45c]
lea eax, [ebp - 0x45a]
cmovne eax, edx
push eax
push 0x104
push edi
call fcn.004a2993
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x407d16
push 0x104
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
jne 0x407d16
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004908ad
mov esp, ebp
pop ebp
ret
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004908ad
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov eax, 0xe8
mov word [edi], cx
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004908ad
mov esp, ebp
pop ebp
ret
mov eax, 0x57
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004908ad
mov esp, ebp
pop ebp
ret
Function at 0x408400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x527064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.004083d0
cmp dword [eax + 0x14], 8
jb 0x408422
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408436
test al, 0x10
jne 0x408436
mov bl, 1
jmp 0x408438
xor bl, bl
mov ecx, dword [ebp - 8]
cmp ecx, 8
jb 0x40844f
push 2
inc ecx
push ecx
push dword [ebp - 0x1c]
call fcn.00402ff0
add esp, 0xc
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004908ad
mov esp, ebp
pop ebp
ret
Function at 0x408740
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da1b8
mov eax, dword fs:[0]
push eax
sub esp, 0x40c
mov eax, dword [0x527064]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x318], 0
call fcn.004076f0
lea ecx, [ebp - 0x414]
mov dword [ebp - 4], 0
call fcn.00407900
test eax, eax
jne 0x408939
mov ecx, 0x82
lea edi, [ebp - 0x21c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x39c]
test eax, eax
je 0x408939
lea ecx, [ebp - 0x21c]
push ecx
push 0
call eax
add esp, 8
test eax, eax
jne 0x408939
sub esp, 0x18
lea eax, [ebp - 0x21c]
mov ecx, esp
push eax
call fcn.00408dd0
lea ecx, [ebp - 0x2dc]
call fcn.00408090
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x310], esp
push 0x4f8690
call fcn.00408dd0
sub esp, 0x18
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2dc]
push esp
call fcn.00408460
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 1
call fcn.00408120
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 3
call fcn.00408400
test al, al
jne 0x408915
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x314], esp
push 0x4f8690
call fcn.00408dd0
lea eax, [ebp - 0x2ac]
mov byte [ebp - 4], 4
push eax
sub esp, 0x18
mov ecx, esp
push 0x4f86a4
call fcn.00408dd0
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0x2dc]
call fcn.00408210
mov byte [ebp - 4], 5
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00408210
lea ecx, [ebp - 0x30c]
mov byte [ebp - 4], 8
call fcn.004084a0
lea ecx, [ebp - 0x2ac]
call fcn.00408400
test al, al
je 0x408906
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x24c]
call fcn.004083d0
mov edi, eax
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x2ac]
call fcn.004083d0
cmp dword [edi + 0x14], 8
jb 0x4088de
mov edi, dword [edi]
cmp dword [eax + 0x14], 8
jb 0x4088e6
mov eax, dword [eax]
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0x264]
call fcn.00408d60
lea ecx, [ebp - 0x27c]
call fcn.00408d60
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 3
call fcn.004084a0
push esi
lea ecx, [ebp - 0x24c]
call fcn.004083d0
lea ecx, [ebp - 0x24c]
call fcn.004084a0
lea ecx, [ebp - 0x2dc]
call fcn.004084a0
jmp 0x408945
push 0x4f7ee0
mov ecx, esi
call fcn.00408dd0
mov eax, dword [ebp - 0x410]
test eax, eax
je 0x408956
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004908ad
mov esp, ebp
pop ebp
ret 4
Function at 0x423e60
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x527064]
xor eax, esp
mov dword [esp + 0x194], eax
cmp dword [0x52cf78], 0
mov dword [ecx + 0x191a0], 1
jne 0x423ebf
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x423eb5
or eax, 0xffffffff
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004908ad
mov esp, ebp
pop ebp
ret
mov dword [0x52cf78], 1
mov ecx, dword [esp + 0x194]
xor eax, eax
xor ecx, esp
call fcn.004908ad
mov esp, ebp
pop ebp
ret

Function at 0x4245d0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x527064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x324], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x338], eax
mov dword [eax + 0x191a4], 0
mov eax, ebx
push esi
and eax, 1
mov dword [ebp - 0x320], 0
push edi
mov edi, edx
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x330], eax
je 0x424644
lea eax, [ebp - 0x318]
mov dword [ebp - 0x314], edi
mov dword [ebp - 0x31c], eax
mov dword [ebp - 0x318], 1
mov eax, ebx
and eax, 2
mov dword [ebp - 0x334], eax
je 0x42466d
lea eax, [ebp - 0x214]
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x320], eax
mov dword [ebp - 0x214], 1
and ebx, 4
je 0x42468e
lea eax, [ebp - 0x110]
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x110], 1
mov esi, dword [ebp + 0xc]
test esi, esi
js 0x4246a7
mov dword [ebp - 0x32c], esi
mov dword [ebp - 0x328], 0
jmp 0x4246d0
mov eax, 0xbce4217d
imul esi
neg esi
sar edx, 0x12
mov eax, esi
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
mov dword [ebp - 0x32c], ecx
mov ecx, 0xf4240
idiv ecx
mov dword [ebp - 0x328], edx
lea eax, [ebp - 0x32c]
push eax
push dword [ebp - 0x324]
lea eax, [edi + 1]
push dword [ebp - 0x320]
push dword [ebp - 0x31c]
push eax
call dword [sym.imp.WSOCK32.dll_select]
mov esi, eax
test esi, esi
jle 0x424764
mov eax, dword [sym.imp.WSOCK32.dll___WSAFDIsSet]
xor esi, esi
cmp dword [ebp - 0x330], esi
je 0x424720
push dword [ebp - 0x31c]
push edi
call eax
test eax, eax
mov ecx, 1
mov eax, dword [sym.imp.WSOCK32.dll___WSAFDIsSet]
cmovne esi, ecx
cmp dword [ebp - 0x334], 0
je 0x424739
push dword [ebp - 0x320]
push edi
call eax
test eax, eax
je 0x424739
or esi, 2
test ebx, ebx
je 0x424778
push dword [ebp - 0x324]
push edi
call dword [sym.imp.WSOCK32.dll___WSAFDIsSet]
test eax, eax
je 0x424778
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004908ad
mov esp, ebp
pop ebp
ret
jns 0x424778
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x338]
mov dword [ecx + 0x191a4], eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004908ad
mov esp, ebp
pop ebp
ret
Function at 0x42ec30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
test esi, esi
jne 0x42ec6f
lea esi, [ebx + 2]
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*4 + 1]
call fcn.00426890
mov esi, eax
test esi, esi
jne 0x42ec6f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], esi
mov byte [esi], 0
test edi, edi
jne 0x42ec82
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 2
jle 0x42ecf4
lea ecx, [ebx - 3]
mov eax, 0xaaaaaaab
mul ecx
mov ecx, edx
shr ecx, 1
inc ecx
lea eax, [ecx*4]
sub eax, ecx
neg eax
add ebx, eax
mov dword [ebp + 0xc], ebx
mov ebx, ecx
nop dword [eax + eax]
movzx eax, byte [edi]
mov edx, 4
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 2]
shl eax, 8
or eax, ecx
nop word [eax + eax]
mov ecx, eax
dec edx
and ecx, 0x3f
shr eax, 6
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + esi], cl
test edx, edx
jg 0x42ecd0
add esi, 4
add edi, 3
sub ebx, 1
jne 0x42ecb0
mov ebx, dword [ebp + 0xc]
mov byte [esi], 0
test ebx, ebx
jle 0x42ed6d
xor ecx, ecx
xor edx, edx
test ebx, ebx
jle 0x42ed2b
mov dword [ebp + 8], ebx
lea edx, [ebx + 1]
mov dword [ebp - 4], ebx
nop dword [eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
shl ecx, 8
or ecx, eax
sub ebx, 1
jne 0x42ed10
mov ebx, dword [ebp + 0xc]
cmp ebx, 3
jge 0x42ed3d
mov edx, dword [ebp - 4]
mov eax, 3
sub eax, edx
inc edx
add edx, eax
shl ecx, 8
sub eax, 1
jne 0x42ed35
test edx, edx
jle 0x42ed57
mov eax, ecx
dec edx
and eax, 0x3f
shr ecx, 6
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + esi], al
test edx, edx
jg 0x42ed41
mov ecx, 3
cmp ebx, ecx
jge 0x42ed69
mov byte [ecx + esi], 0x3d
dec ecx
cmp ecx, ebx
jg 0x42ed60
mov byte [esi + 4], 0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret