joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4256e3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004247b7
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
invalid
invalid

Function at 0x4267cc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
cmp dword [ebp - 0x380], 0xffffffff
je 0x426823
push 0
lea eax, [ebp - 0x6c4]
push eax
push dword [ebp - 0x38c]
push dword [ebp - 0x748]
push dword [ebp - 0x380]
call dword [ebp - 0x730]
push dword [ebp - 0x380]
call dword [ebp - 0x680]
jmp 0x426828
jmp 0x42617b
and dword [ebp - 0x37c], 0
push dword [ebp - 0x3a0]
call dword [ebp - 0x704]
mov dword [ebp - 0x3a4], eax
cmp dword [ebp - 0x3a4], 0
je 0x42686f
lea eax, [ebp - 0x714]
push eax
call fcn.004247e9
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.0042479e
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x42687a
jmp 0x42687f
jmp 0x42617b
cmp dword [ebp - 0x37c], 0
jne 0x426929
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x7ec], eax
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x7e8], eax
and dword [ebp - 0x7e0], 0
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x7e4], eax
push dword [ebp - 0x7e4]
lea eax, [ebp - 0x7ec]
push eax
push dword [ebp - 0x748]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004249b5
add esp, 0x14
mov dword [ebp - 0x7e0], eax
cmp dword [ebp - 0x7e0], 0
je 0x426915
lea eax, [ebp - 0x714]
push eax
call fcn.004247e9
pop ecx
push eax
push dword [ebp - 0x7e0]
call fcn.0042487e
pop ecx
pop ecx
mov dword [ebp - 0x37c], eax
push dword [ebp - 0x7e4]
push 1
push dword [ebp - 0x674]
call dword [ebp - 0x39c]
push dword [ebp + 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 0x540]
push dword [ebp - 0x684]
push dword [ebp - 0x688]
push dword [ebp - 0x3ac]
push dword [ebp - 0x400]
push dword [ebp - 0x54c]
push dword [ebp - 0x678]
lea eax, [ebp - 0x334]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [ebp - 0x37c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42a73f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x445664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00420f20
and dword [ebp - 0x14], 0
cmp dword [0x448108], 0
mov dword [ebp - 0x18], eax
jne 0x42a7f2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42a89a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x42a89a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x448108], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44810c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x448110], eax
call edi
push eax
call esi
mov dword [0x448118], eax
test eax, eax
je 0x42a7f2
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x448114], eax
mov eax, dword [0x448114]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42a84b
cmp dword [0x448118], ecx
je 0x42a84b
push eax
call esi
push dword [0x448118]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42a84b
test ebx, ebx
je 0x42a84b
call edi
test eax, eax
je 0x42a842
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42a842
test byte [ebp - 8], 1
jne 0x42a84b
or dword [ebp + 0x10], 0x200000
jmp 0x42a87e
mov eax, dword [0x44810c]
cmp eax, dword [ebp - 0x18]
je 0x42a87e
push eax
call esi
test eax, eax
je 0x42a87e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42a87e
mov eax, dword [0x448110]
cmp eax, dword [ebp - 0x18]
je 0x42a87e
push eax
call esi
test eax, eax
je 0x42a87e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x448108]
call esi
test eax, eax
je 0x42a89a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42a89c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041900b
leave
ret
Function at 0x401460
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov dword [ebp - 0x40], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x38], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x34], 0
jne 0x4014ba
push 0
push 0
push section..rdata
call fcn.004010e0
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
nop
cmp dword [ebp + 0x10], 0
je 0x4014d0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00402090
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x38]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x3c], 0x12
jge 0x4014fb
cmp dword [ebp - 0x38], 0xb
ja 0x4014fb
mov eax, 0xfffffc19
jmp 0x4015e7
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 0
jne 0x40153d
cmp dword [ebp - 0x38], 0xf
ja 0x40153d
push ds
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401830
cmp eax, 0xac900000
jne 0x40153d
mov eax, 0xfffffc1a
jmp 0x4015e7
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x40], eax
push 0
mov esi, sym.imp.KERNEL32.dll_LocalAlloc
mov esi, dword [esi]
push 0x43
call esi
mov dword [ebp - 8], 0
jmp 0x401574
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
cmp eax, dword [edx + 0x18]
jae 0x4015e4
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x40]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00401650
test eax, eax
jne 0x4015db
cmp dword [ebp - 4], 0
jne 0x4015d9
cmp dword [ebp - 0x38], 0xc
jne 0x4015d9
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.00401830
cmp eax, 0xaa900000
jne 0x4015d9
xor eax, eax
jmp 0x4015e7
jmp 0x4015e4
mov dword [ebp - 0x44], 0
jmp 0x40156b
mov eax, dword [ebp - 0x44]
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a190
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x4af9fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x3f4]
push edx
push 0x20019
push 0
push 0x498ac4
push SysReAllocString
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x400], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocString
mov esi, eax
call edi
test esi, esi
je 0x40a1f7
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d6a1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x3f4]
lea eax, [ebp - 0x3f0]
push eax
push 0x20019
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 0x3f4]
push edx
mov esi, eax
call edi
test esi, esi
jne 0x40a1e5
mov edx, dword [ebp - 0x3f0]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x3ec]
push ecx
push esi
push edx
mov dword [ebp - 0x3f8], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x3f0]
push eax
call edi
test esi, esi
jne 0x40a1e5
mov ecx, dword [ebp - 0x400]
mov edx, dword [ebp - 0x3fc]
push ecx
push edx
lea eax, [ebp - 0x3ec]
push 0x498b1c
push eax
call fcn.004700ad
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0046d6a1
mov esp, ebp
pop ebp
ret
Function at 0x40a290
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2720
call fcn.00484ce0
mov eax, dword [0x4af9fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x270f
mov esi, ecx
lea ecx, [ebp - 0x2713]
push 0
push ecx
mov ebx, edx
mov dword [ebp - 0x2720], eax
mov byte [ebp - 0x2715], 0
mov byte [ebp - 0x2714], 0
call fcn.00476f20
mov eax, esi
add esp, 0xc
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40a2e0
push edi
lea edi, [ebp - 0x2714]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40a2f1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x40a356
lea edi, [ebp - 0x2714]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a312
mov dx, word [0x498f44]
mov eax, ebx
mov word [edi], dx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40a328
lea edi, [ebp - 0x2714]
sub eax, ecx
mov esi, ecx
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40a340
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea eax, [ebp - 0x271c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x2714]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
test eax, eax
jne 0x40a3fb
mov esi, dword [ebp - 0x2720]
test esi, esi
je 0x40a3b5
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a392
sub eax, edx
mov edx, dword [ebp - 0x271c]
inc eax
push eax
push esi
push 1
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40a3d6
mov eax, dword [ebp - 0x271c]
push eax
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d6a1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x271c]
mov bl, byte [ebp - 0x2715]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d6a1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x2715]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d6a1
mov esp, ebp
pop ebp
ret

Function at 0x40a420
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2714
call fcn.00484ce0
mov eax, dword [0x4af9fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x270f
lea eax, [ebp - 0x2713]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x2714], 0
call fcn.00476f20
mov eax, esi
add esp, 0xc
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a460
lea edi, [ebp - 0x2714]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40a470
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x2714]
push ecx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
test eax, eax
sete al
pop edi
xor ecx, ebp
pop esi
call fcn.0046d6a1
mov esp, ebp
pop ebp
ret
Function at 0x415150
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x492098
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
mov eax, dword [0x4af9fc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
cmp word [esi], 0xc
jne 0x415194
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0xc]
jmp 0x4151ab
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dx, word [esi]
mov word [esp + 0xc], dx
lea eax, [esp + 0x14]
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
xor ecx, ecx
cmp eax, ecx
jge 0x415218
mov dword [esp + 0x20], vtable.tcomxException.0
mov dword [esp + 0x28], vtable.tStringBuffer.0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], ecx
mov ebx, dword [str.Internal_Error]
lea esi, [esp + 0x28]
mov dword [esp + 0x24], ecx
call fcn.0040b2e0
mov edx, dword [esp + 0x30]
push edx
mov ecx, 0x4975dc
call fcn.00409220
add esp, 4
push 0x4ab530
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x48], 0xffffffff
call fcn.00476cbe
mov edx, dword [esp + 0x10]
push 0xffff
push ecx
push ecx
mov ecx, dword [esp + 0x18]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
push edi
mov dword [eax + 0xc], edx
call fcn.00412aa0
add esp, 0x20
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
sar eax, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b430
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov edx, dword [ebp + 0xc]
lea eax, [edx + 5]
push esi
cmp eax, 4
ja case.0x41b447.2
jmp dword [eax*4 + 0x41b524]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x5c]
or dword [esi + 0x68], 4
test eax, eax
je 0x41b478
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
jne 0x41b478
mov eax, dword [esi + 0x5c]
push 8
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp + 8]
xor eax, eax
add ecx, 0xffffffbc
cmp edx, 0xfffffffc
sete al
push eax
call fcn.0041bbd0
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x18]
lea eax, [esi + 8]
push eax
call edx
test byte [esi + 0x68], 4
je 0x41b4d8
mov eax, dword [esi + 0x5c]
and dword [esi + 0x68], 0xfffffffb
test eax, eax
je 0x41b4d8
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x41b4d8
mov eax, dword [esi + 0x5c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, str.FAIL
test edx, edx
jle 0x41b505
push 0x30e
push 0x4b12cc
call fcn.0041a980
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
push 0x31a
push str.Unrecognized_Negative_verb_in_DoVerb__.__bad.
call fcn.0041a980
add esp, 8
mov eax, 0x80004001
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x420db0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4af9fc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x420da0
call fcn.00470e57
add esp, 4
call fcn.00420c60
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x420e3e
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x420e04
mov edx, dword [ebp - 0x18]
push edx
jmp 0x420e38
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0044ad30
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d6a1
mov esp, ebp
pop ebp
ret
Function at 0x4210e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, ebx
sub esp, 0x10
lea edx, [eax + 1]
jmp 0x4210f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4210f0
push esi
push edi
sub eax, edx
lea esi, [eax + ebx]
push 0x5c
push ebx
mov dword [ebp - 4], esi
call fcn.00470ee0
xor ecx, ecx
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
test eax, eax
jne 0x421120
mov dword [ebp - 0xc], ebx
jmp 0x421120
cmp byte [esi], 0x5c
jne 0x421136
inc esi
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], esi
mov byte [esi], 0x5f
mov eax, dword [0x499ed0]
mov dword [ecx + esi], eax
mov edx, dword [0x499ed4]
mov dword [ecx + esi + 4], edx
mov al, byte [0x499ed8]
mov byte [ecx + esi + 8], al
test ebx, ebx
je 0x42119f
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jle 0x42119c
lea ecx, [esi + esi + 2]
push ecx
call fcn.0046f41d
add esp, 4
push esi
mov edi, eax
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
mov word [edi + esi*2 - 2], dx
mov esi, dword [ebp - 4]
jmp 0x4211a1
mov esi, dword [ebp - 4]
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
mov dword [ebp - 0x10], eax
call fcn.0046f3e3
add esp, 4
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4211db
mov eax, dword [ebp - 0xc]
push 0x2e
push eax
call fcn.004705c0
add esp, 8
test eax, eax
je 0x4211e3
cmp eax, esi
ja 0x4211e3
mov ecx, dword [ebp - 8]
mov byte [eax], 0x5c
jmp 0x421120
pop edi
mov eax, ebx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x444f40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov eax, 0x4981d8
push esi
sub eax, 0xbc
push edi
mov dword [esp + 0x14], 0xbc
mov dword [esp + 0x1c], eax
jmp 0x444f68
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx]
mov eax, esi
mov dword [esp + 0x10], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x444f78
sub eax, edx
mov edi, eax
shr eax, 5
inc eax
mov ebx, edi
mov dword [esp + 0x18], edi
mov ecx, edi
cmp edi, eax
jb 0x444fb6
movzx edx, byte [esi + ecx - 1]
mov esi, ebx
shl esi, 5
add edx, esi
mov esi, ebx
shr esi, 2
add edx, esi
mov esi, dword [esp + 0x10]
sub ecx, eax
xor ebx, edx
cmp ecx, eax
jae 0x444f93
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
dec ecx
and ecx, ebx
mov edx, dword [edx + ecx*4]
test edx, edx
je 0x445036
jmp 0x444fd0
cmp dword [edx + 0xc], edi
jne 0x445030
test edi, edi
je 0x444fdf
test byte [edx + 7], 0x10
jne 0x445030
mov eax, edi
lea ecx, [edx + 0x10]
cmp edi, 4
jb 0x445004
lea esp, [esp]
mov ebx, dword [esi]
cmp ebx, dword [ecx]
jne 0x445028
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x444ff0
test eax, eax
je 0x445076
mov bl, byte [ecx]
cmp bl, byte [esi]
jne 0x445028
cmp eax, 1
jbe 0x445076
mov bl, byte [ecx + 1]
cmp bl, byte [esi + 1]
jne 0x445028
cmp eax, 2
jbe 0x445076
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x445076
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov edx, dword [edx]
test edx, edx
jne 0x444fd0
mov edx, dword [ebp + 8]
push ebx
push edi
push esi
push edx
call fcn.00446660
add esp, 0x10
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov esi, dword [edx + 0x10]
mov dword [ecx + esi], eax
mov eax, dword [edx + 0x10]
mov eax, dword [ecx + eax]
or byte [eax + 5], 0x20
add ecx, 4
mov dword [esp + 0x14], ecx
cmp ecx, 0x10c
jl 0x444f64
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov al, byte [edx + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx ecx, al
and ecx, 3
not ebx
test bl, cl
je 0x445094
xor al, 3
mov byte [edx + 5], al
mov eax, edx
jmp 0x445045
Function at 0x446730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, edi
shr eax, 5
inc eax
mov edx, edi
mov dword [esp + 0xc], edi
mov ecx, edi
cmp edi, eax
jb 0x446771
mov esi, dword [ebp + 0xc]
movzx esi, byte [esi + ecx - 1]
mov ebx, edx
shl ebx, 5
add esi, ebx
mov ebx, edx
shr ebx, 2
add esi, ebx
sub ecx, eax
xor edx, esi
cmp ecx, eax
jae 0x44674f
mov dword [esp + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x4467e4
cmp dword [eax + 0xc], edi
jne 0x4467de
test edi, edi
je 0x446795
test byte [eax + 7], 0x10
jne 0x4467de
mov esi, dword [ebp + 0xc]
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x4467b6
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x4467da
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x4467a2
test ecx, ecx
je 0x4467fd
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x4467da
cmp ecx, 1
jbe 0x4467fd
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x4467da
cmp ecx, 2
jbe 0x4467fd
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x4467fd
mov edx, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x446786
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push edi
push eax
push ecx
call fcn.00446660
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
mov cl, byte [eax + 5]
movzx edx, byte [edx + 0x14]
movzx ebx, cl
not edx
and ebx, 3
test bl, dl
je 0x4467f6
pop edi
xor cl, 3
pop esi
mov byte [eax + 5], cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
add edx, edx
mov eax, edx
shr eax, 5
push ebx
push esi
inc eax
push edi
mov esi, edx
mov dword [ebp - 4], edx
mov ecx, edx
cmp edx, eax
jb 0x446871
lea ebx, [ebx]
mov edi, dword [ebp + 0xc]
movzx edi, byte [edi + ecx - 1]
mov ebx, esi
shl ebx, 5
add edi, ebx
mov ebx, esi
shr ebx, 2
add edi, ebx
sub ecx, eax
xor esi, edi
cmp ecx, eax
jae 0x446850
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, esi
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x4468e3
cmp dword [eax + 0xc], edx
jne 0x4468dd
test edx, edx
je 0x446895
test byte [eax + 7], 0x10
je 0x4468dd
mov edi, dword [ebp + 0xc]
mov ecx, edx
lea esi, [eax + 0x10]
cmp edx, 4
jb 0x4468b6
mov ebx, dword [edi]
cmp ebx, dword [esi]
jne 0x4468da
sub ecx, 4
add esi, 4
add edi, 4
cmp ecx, 4
jae 0x4468a2
test ecx, ecx
je 0x446900
mov bl, byte [esi]
cmp bl, byte [edi]
jne 0x4468da
cmp ecx, 1
jbe 0x446900
mov bl, byte [esi + 1]
cmp bl, byte [edi + 1]
jne 0x4468da
cmp ecx, 2
jbe 0x446900
mov cl, byte [esi + 2]
cmp cl, byte [edi + 2]
je 0x446900
mov esi, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
jne 0x446886
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edx
push eax
push ecx
call fcn.00446660
add esp, 0x10
mov byte [eax + 7], 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x4468f9
pop edi
xor cl, 3
pop esi
mov byte [eax + 5], cl
pop ebx
mov esp, ebp
pop ebp
ret