joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403890
Capabilities:
Get disk information
Get storage device properties

Disassembly:
sub esp, 0x470
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x46c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x480]
xor ebx, ebx
push 0xd0
mov dword [esi + 4], ebx
mov dword [esp + 0x18], esi
add esi, 8
push ebx
push esi
call fcn.00403bf0
push 0x400
lea eax, [esp + 0x88]
push ebx
push eax
mov dword [esp + 0x28], ebx
call fcn.00403bf0
add esp, 0x18
lea ecx, [esp + 0x78]
push ecx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea ebp, [esp + 0x78]
cmp word [esp + 0x78], bx
je 0x403a4f
mov dword [esp + 0xc], esi
push edi
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov edi, edi
movzx ecx, word [eax + str.._]
mov word [esp + eax + 0x54], cx
add eax, 2
cmp cx, bx
jne 0x403930
mov eax, ebp
mov edx, ebp
jmp 0x403950
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403950
lea edi, [esp + 0x54]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x403964
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x54]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403987
push ebx
push ebx
push 3
sub eax, edx
push ebx
sar eax, 1
xor edx, edx
push 3
mov word [esp + eax*2 + 0x66], dx
push 0x80000000
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x28
lea edx, [esp + 0x38]
push edx
mov esi, eax
push 0xc
lea eax, [esp + 0x34]
push eax
push 0x2d1400
push esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x50], 0x28
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x403a24
cmp dword [esp + 0x48], 7
jne 0x403a24
mov edx, dword [esp + 0x10]
mov eax, ebp
sub edx, ebp
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x403a00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
add dword [esp + 0x10], 8
mov dword [esp + 0x14], eax
mov dword [ecx + 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403a30
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 + 2], bx
lea ebp, [ebp + eax*2 + 2]
jne 0x403904
pop edi
mov ecx, dword [esp + 0x478]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00403be0
add esp, 0x470
ret
Function at 0x403a70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x290
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x28c], eax
xor eax, eax
push 0x7e
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.00403bf0
xor edx, edx
push 0x1fe
push edx
lea eax, [esp + 0xa2]
push eax
mov word [esp + 0xa4], dx
call fcn.00403bf0
push str.SYSTEMCurrentControlSetServicesUSBSTOREnum
lea ecx, [esp + 0xa8]
push 0x100
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 4
call fcn.00403f73
push str.Count
lea edx, [esp + 0x34]
push 0x40
push edx
call fcn.00403f73
add esp, 0x30
lea eax, [esp + 4]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x98]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403b39
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 4]
push eax
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x28c]
mov eax, dword [esp]
xor ecx, esp
call fcn.00403be0
add esp, 0x290
ret

Function at 0x403be0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x403bea
repz ret
jmp fcn.00404193
Function at 0x409de5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004071bb
and dword [ebp - 4], 0
cmp dword [0x41185c], 0
mov ebx, eax
jne 0x409e96
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA_1]
mov edi, eax
test edi, edi
je 0x409f47
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress_1]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409f47
push eax
call fcn.00407149
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41185c], eax
call esi
push eax
call fcn.00407149
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x411860], eax
call esi
push eax
call fcn.00407149
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x411864], eax
call esi
push eax
call fcn.00407149
pop ecx
mov dword [0x41186c], eax
test eax, eax
je 0x409e96
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407149
pop ecx
mov dword [0x411868], eax
mov eax, dword [0x411868]
cmp eax, ebx
je 0x409eee
cmp dword [0x41186c], ebx
je 0x409eee
push eax
call fcn.004071c4
push dword [0x41186c]
mov esi, eax
call fcn.004071c4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409eee
test edi, edi
je 0x409eee
call esi
test eax, eax
je 0x409ee5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409ee5
test byte [ebp - 0xc], 1
jne 0x409eee
or dword [ebp + 0x10], 0x200000
jmp 0x409f27
mov eax, dword [0x411860]
cmp eax, ebx
je 0x409f27
push eax
call fcn.004071c4
pop ecx
test eax, eax
je 0x409f27
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409f27
mov eax, dword [0x411864]
cmp eax, ebx
je 0x409f27
push eax
call fcn.004071c4
pop ecx
test eax, eax
je 0x409f27
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41185c]
call fcn.004071c4
pop ecx
test eax, eax
je 0x409f47
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409f49
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41c000
Capabilities:
Encode data using xor

Disassembly:
push 0xb100
pop ebx
push 0x41c01e
pop edx
nop
push 0x598
pop edi
push dword [edx + edi]
xor dword [esp], ebx
pop dword [edx + edi]
sub edi, 4
jne 0x41c013
nop
call fcn.0041c1f3
mov cl, 0
add byte [eax], al
mov cl, 0x40
add byte [ecx + 0x80000f0], cl
cmp byte [ecx], al
add al, bl
add dword ds:[eax], eax
add byte [ecx], al
add al, byte [eax]
add dword [ecx + 0x61140000], esi
inc eax
add ah, al
pop esi
inc eax
add dl, dl
pop esi
inc eax
add byte [eax], dl
insd dword es:[edi], dx
add byte [eax], al
ret 0x5e
Function at 0x401730
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x40178f
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x401798
test ecx, ecx
je 0x40178f
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x401750
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4017b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x40180f
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x401818
test ecx, ecx
je 0x40180f
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x4017d0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404360
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x432b20], ecx
inc eax
cmp eax, 0x100
jb 0x404363
cmp eax, 0x800
jae 0x404433
nop
mov edx, dword [eax*4 + 0x432720]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x432b20]
mov dword [eax*4 + 0x432b20], edx
inc eax
cmp eax, 0x800
jb 0x404410
mov dword [0x431a34], 0x404ff0
call fcn.00405180
mov ecx, dword [0x431a34]
test eax, eax
mov edx, 0x405090
cmove ecx, edx
mov dword [0x431a34], ecx
pop ecx
ret
Function at 0x405690
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov eax, dword [eax]
and eax, 7
cmp edx, 5
jae 0x4056b0
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ecx
push esi
mov dword [ebp - 8], edx
lea ecx, [ecx]
lea esi, [edi + ecx]
cmp esi, edx
jae 0x4056d9
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x4056d6
inc esi
cmp esi, edx
jb 0x4056c7
mov ecx, dword [ebp - 4]
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x4057e1
cmp ecx, 3
jbe 0x4056f2
xor eax, eax
jmp 0x405730
dec ecx
shl eax, cl
and eax, 7
je 0x405730
movzx ecx, byte [eax + 0x42b950]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x42b948], 0
mov cl, byte [edx + 4]
je 0x40571a
test cl, cl
je 0x40571a
cmp cl, 0xff
jne 0x40572d
mov edx, dword [ebp - 8]
and eax, 3
mov ecx, dword [ebp - 4]
add eax, eax
mov ebx, edi
or eax, 1
inc edi
jmp 0x4056c0
mov edx, dword [ebp - 8]
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test cl, cl
je 0x405752
cmp cl, 0xff
je 0x405752
mov ecx, dword [ebp - 4]
and eax, 3
add eax, eax
or eax, 1
inc edi
jmp 0x4056c0
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
sub edx, edi
lea ebx, [edx - 5]
test eax, eax
je 0x4057ae
movzx edx, byte [eax + 0x42b950]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x40579a
cmp dl, 0xff
jne 0x4057ae
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0xc]
shl edx, cl
dec edx
xor edx, ebx
jmp 0x405770
mov edx, dword [ebp - 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
shr ecx, 8
add edi, 5
mov byte [esi + 2], cl
mov ecx, dword [ebp - 4]
jmp 0x4056c0
pop esi
pop ebx
cmp ecx, 3
jbe 0x4057f6
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x407eb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x10b8
mov dword [ebp - 8], eax
call fcn.00414731
add esp, 4
test eax, eax
je 0x407f8d
push ebx
push edi
push esi
mov ecx, eax
call fcn.00407e30
mov ebx, eax
test ebx, ebx
je 0x407f8d
mov ecx, ebx
call fcn.00408420
push 0
push 0
push 0x2001f
push 0
push 0
push dword [ebp - 8]
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
movq qword [ebp - 0x14], xmm0
lea ecx, [ebp - 0x14]
push 0x80000002
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call fcn.00407b90
mov eax, dword [ebx + 0x1048]
mov edi, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.Service_Value
push edi
call esi
mov eax, dword [ebx + 0x10b4]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.InstallID
push edi
call esi
test edi, edi
je 0x407f8d
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a55
mov esp, ebp
pop ebp
ret

Function at 0x408190
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2888
call fcn.00414dd0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40826d
lea eax, [ebp - 0x2888]
mov dword [ebp - 0x2888], 0x2880
push eax
lea eax, [ebp - 0x2884]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x40826d
lea eax, [ebp - 0x2884]
nop
cmp byte [eax + 0x194], 0
jne 0x40822d
cmp byte [eax + 0x195], 0
jne 0x40822d
cmp byte [eax + 0x196], 0
jne 0x40822d
cmp byte [eax + 0x197], 0
jne 0x40822d
cmp byte [eax + 0x198], 0
jne 0x40822d
cmp byte [eax + 0x199], 0
jne 0x40822d
mov eax, dword [eax]
test eax, eax
jne 0x4081e0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a55
mov esp, ebp
pop ebp
ret 4
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
push 0x42bd24
push 0x32
push esi
call fcn.00415c2b
add esp, 0x24
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00413a55
mov esp, ebp
pop ebp
ret 4

Function at 0x408350
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
test ebx, ebx
jne 0x40835b
xor eax, eax
pop ebx
ret
push esi
push edi
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x408362
sub edi, ecx
inc edi
push edi
call fcn.00413a9c
push edi
mov esi, eax
push 0
push esi
call fcn.00414430
push ebx
push edi
push esi
call fcn.0041573f
xor eax, eax
add esp, 0x1c
cmp byte [esi], al
je 0x40839a
mov edi, edi
xor byte [esi], 0x20
inc eax
inc esi
cmp byte [esi], 0
jne 0x408390
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x409400
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x409517
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x409517
mov ebx, dword [ebp + 0x10]
cmp ebx, 1
jb 0x409517
push esi
xor eax, eax
xor esi, esi
mov dword [ebp + 8], eax
test ebx, ebx
je 0x40950c
mov dl, byte [esi + ecx]
inc esi
mov cl, dl
and dl, 3
shr cl, 2
movzx ecx, cl
shl dl, 4
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi], cl
cmp esi, ebx
jae 0x4094f5
mov ecx, dword [ebp + 0xc]
mov bl, byte [esi + ecx]
inc esi
mov cl, bl
and bl, 0xf
shr cl, 4
add dl, cl
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 1], cl
cmp esi, dword [ebp + 0x10]
jae 0x4094d2
mov ecx, dword [ebp + 0xc]
shl bl, 2
mov dl, byte [esi + ecx]
inc esi
mov cl, dl
and dl, 0x3f
shr cl, 6
add bl, cl
movzx ecx, bl
mov ebx, dword [ebp + 0x10]
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 2], cl
movzx ecx, dl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 3], cl
add eax, 4
mov ecx, dword [ebp + 8]
add ecx, 3
mov dword [ebp + 8], ecx
cmp ecx, ebx
mov ecx, dword [ebp + 0xc]
jb 0x409437
pop esi
mov byte [eax + edi], 0
pop edi
pop ebx
pop ebp
ret 0xc
shl bl, 2
movzx ecx, bl
pop esi
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 2], cl
mov byte [eax + edi + 3], 0x3d
add eax, 4
mov byte [eax + edi], 0
pop edi
pop ebx
pop ebp
ret 0xc
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 1], cl
mov word [eax + edi + 2], 0x3d3d
add eax, 4
pop esi
mov byte [eax + edi], 0
pop edi
pop ebx
pop ebp
ret 0xc
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0xc

Function at 0x409520
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x40
mov esi, ecx
mov dword [0x431a10], 1
mov byte [0x4319e4], 0
call fcn.00413a9c
add esp, 4
mov dword [0x431a08], eax
test eax, eax
je 0x40957c
mov ecx, esi
mov dword [0x431a0c], eax
mov dword [0x431a20], 0x67452301
mov dword [0x431a24], 0xefcdab89
mov dword [0x431a28], 0x98badcfe
mov dword [0x431a2c], 0x10325476
pop esi
jmp fcn.00409dd0
pop esi
ret
Function at 0x40a7d0
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x218], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00414430
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push 0x42b930
push eax
call esi
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x425410
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0x426494
push 1
push 0
push 0x4264b4
mov dword [ebp - 0x214], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40a90a
mov eax, dword [ebp - 0x210]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x210]
push dword [ebp - 0x218]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x210]
push dword [ebp + 0x10]
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x4264a4
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40a90a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a8f5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
push 2
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x40a91d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x210]
test ecx, ecx
je 0x40a92d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a55
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40a950
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a982
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a55
mov esp, ebp
pop ebp
ret 4
push esi
push edi
xor esi, esi
mov word [ebp - 8], 0x100
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 1
lea eax, [ebp - 0xc]
xor edi, edi
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40aa46
mov eax, dword [ebp - 0x10]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], esi
movdqu xmmword [ebp - 0x40], xmm0
push eax
push 1
mov dword [ebp - 0x40], 0x1f01ff
mov dword [ebp - 0x3c], 2
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x28], 5
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x40aa46
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40aa46
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x40aa46
push edi
push dword [ebp - 0x14]
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x40aa46
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0xc
push eax
push ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40aa54
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
test ecx, ecx
je 0x40aa68
push ecx
call eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0x40aa6f
push esi
call eax
test edi, edi
jne 0x40aa7d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a55
mov esp, ebp
pop ebp
ret 4
Function at 0x40aaa0
Capabilities:
Check if file exists
Create directory
Create shortcut via ishelllink
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x218], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00414430
mov ecx, dword [0x430a24]
add esp, 0xc
call fcn.00412700
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push eax
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test edi, edi
je 0x40ab46
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x42b930
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x425410
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0x426494
push 1
push 0
push 0x4264b4
mov dword [ebp - 0x214], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40ac25
mov eax, dword [ebp - 0x210]
mov esi, dword [ebp - 0x220]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x210]
push dword [ebp - 0x21c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x210]
push dword [ebp + 0x14]
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x4264a4
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40ac25
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ac10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
push 2
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x214]
pop edi
pop esi
test ecx, ecx
je 0x40ac37
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x210]
test ecx, ecx
je 0x40ac47
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413a55
mov esp, ebp
pop ebp
ret 0x14