joyce8/EMBER2024-capa huggingface dataset:
Function at 0x103dbad
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push 0x103ddc8
push dword [0x1047380]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push 0x100ebd4
push 0x1029a50
push dword [0x1047380]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x103dbe9
call fcn.01036baf
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
push 0x103dd68
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x103dd41
push esi
push edi
push 0x10143b8
call fcn.0103d724
push 0x10168b8
mov dword [ebp - 0xc], eax
call fcn.0103d724
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x4c], ebx
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea ecx, [ebp - 0x1c]
stosd dword es:[edi], eax
call fcn.0103d7a9
push 3
pop esi
push ebx
push 4
push 0x103dd58
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0103d7e4
mov dword [ebp + esi*4 - 0x4c], eax
inc esi
cmp esi, 6
jb 0x103dc3f
lea ecx, [ebp - 0x1c]
call fcn.0103d7a9
xor edi, edi
lea esi, [ebp + edi*4 - 0x4c]
cmp dword [esi], ebx
jne 0x103dc86
push 1
push 0x10
push 0x103dd48
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0103d7e4
mov dword [esi], eax
inc edi
cmp edi, 6
jb 0x103dc67
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], 3
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push ebx
push 0x40000000
lea eax, [ebp - 0x24]
push eax
call fcn.010080a1
push 0x13
xor esi, esi
pop ebx
mov edi, dword [ebp + esi*4 - 0x4c]
test edi, edi
je 0x103dd0d
push 0x26
call dword [sym.imp.SHLWAPI.dll_IsOS]
test eax, eax
je 0x103dcd4
lea eax, [ebx + 0x28]
mov dword [ebp - 0x2c], eax
jmp 0x103dcd7
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x1009b64
push edi
call fcn.0100bb1b
test eax, eax
jl 0x103dd0d
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push 0x12
push 0x100837c
call fcn.0102b7de
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc esi
dec ebx
cmp esi, 6
jb 0x103dcb8
xor esi, esi
push dword [ebp + esi*4 - 0x4c]
call dword [sym.imp.SHELL32.dll_ILFree]
inc esi
cmp esi, 6
jb 0x103dd16
push dword [ebp - 0xc]
mov esi, dword [sym.imp.SHELL32.dll_SHFree]
call esi
push dword [ebp - 8]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x103df4a
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push 1
push 0x1014418
push 0x1016b08
mov esi, ecx
xor ebx, ebx
push SysReAllocString
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.SHLWAPI.dll_SHOpenRegStream2W]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x103e096
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], 9
call dword [sym.imp.SHLWAPI.dll_IStream_Write]
test eax, eax
jl 0x103e072
mov dword [ebp - 8], ebx
add esi, 0x38
push edi
push dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
call fcn.01007ff7
test eax, eax
je 0x103e05a
mov eax, dword [ebp - 8]
movzx eax, byte [eax*8 + 0x1007f98]
push eax
push dword [ebp - 4]
call fcn.0103d28e
test eax, eax
jl 0x103e071
mov eax, dword [esi]
cmp eax, ebx
je 0x103e04a
cmp dword [esi + 8], ebx
je 0x103e04a
cmp dword [eax], ebx
mov dword [ebp - 0xc], ebx
jle 0x103e04a
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov edi, dword [eax + ecx*4]
mov eax, dword [edi]
cmp ebx, eax
je 0x103e020
push 0
push dword [ebp - 4]
mov ebx, eax
call fcn.0103d28e
test eax, eax
jl 0x103e071
push dword [ebx + 4]
push dword [esi + 8]
call fcn.0103d2ab
push eax
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_IStream_WritePidl]
test eax, eax
jl 0x103e071
push 1
push dword [ebp - 4]
call fcn.0103d28e
test eax, eax
jl 0x103e071
push dword [edi + 4]
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_IStream_WritePidl]
test eax, eax
jl 0x103e071
inc dword [ebp - 0xc]
mov eax, dword [esi]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax]
jl 0x103dfe6
push 2
push dword [ebp - 4]
call fcn.0103d28e
test eax, eax
jl 0x103e071
xor ebx, ebx
inc dword [ebp - 8]
add esi, 0x1c
cmp dword [ebp - 8], 6
jb 0x103dfa5
mov dword [ebp - 0x10], 1
pop edi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x10], 0
jne 0x103e096
push 0x1014418
push 0x1016b08
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
pop esi
pop ebx
leave
ret
Function at 0x103f409
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
lea eax, [ebp + 8]
push eax
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
jl 0x103f468
push edi
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 4
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x30], 0x100f8c8
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ILFree]
pop edi
leave
ret 4
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x43eb65ba
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x67795127
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4069db
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40c570]
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.0040421f
and dword [ebp - 0x14], 0
cmp dword [0x423e4c], 0
mov dword [ebp - 0x18], eax
jne 0x406a8e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406b36
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406b36
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x423e4c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x423e50], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x423e54], eax
call edi
push eax
call esi
mov dword [0x423e5c], eax
test eax, eax
je 0x406a8e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x423e58], eax
mov eax, dword [0x423e58]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406ae7
cmp dword [0x423e5c], ecx
je 0x406ae7
push eax
call esi
push dword [0x423e5c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406ae7
test ebx, ebx
je 0x406ae7
call edi
test eax, eax
je 0x406ade
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406ade
test byte [ebp - 8], 1
jne 0x406ae7
or dword [ebp + 0x10], 0x200000
jmp 0x406b1a
mov eax, dword [0x423e50]
cmp eax, dword [ebp - 0x18]
je 0x406b1a
push eax
call esi
test eax, eax
je 0x406b1a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406b1a
mov eax, dword [0x423e54]
cmp eax, dword [ebp - 0x18]
je 0x406b1a
push eax
call esi
test eax, eax
je 0x406b1a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x423e4c]
call esi
test eax, eax
je 0x406b36
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406b38
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405712
leave
ret
Function at 0x40545e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40546d
pop dword [ebp - 0x24]
mov eax, 0x40546d
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x1b0af183
sub dword [ebp - 0x34], 0xccb8ac38
mov dword [ebp - 0x30], 0x2de88886
sub dword [ebp - 0x30], 0xfbb53c41
mov dword [ebp - 0x2c], 0xac194796
add dword [ebp - 0x2c], 0xa032fc98
mov dword [ebp - 0x28], 0xb6e53105
add dword [ebp - 0x28], 0x491acefb
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x47d823b7
sub dword [ebp - 0x34], 0xd365ba61
mov dword [ebp - 0x30], 0x1efdb8ec
add dword [ebp - 0x30], 0x226ea889
mov dword [ebp - 0x2c], 0xff4043c1
add dword [ebp - 0x2c], 0x642f28ab
mov dword [ebp - 0x28], 0x7790c97d
add dword [ebp - 0x28], 0x886f3683
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xd5033fa7
sub eax, 0xd4c10e83
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3f12f
push 0
call eax
mov ecx, 0xd174cd17
sub ecx, 0xd1748026
mov esi, eax
mov edi, 0x434400
add edi, dword [ebp - 0x24]
mov ebx, 0x9a01e776
sub dword [ebp - 0x10], 0x6c86ecf4
mov edx, dword [edi]
sub dword [ebp - 0x1c], ebx
xor edx, ebx
add dword [ebp - 0x20], 0xb9170695
mov dword [esi], edx
add dword [ebp - 0x1c], esi
add esi, 0xc17afbef
add esi, 0x3e850415
add edi, 4
loop 0x405579
add eax, 0x12697
xor ebx, ebx
add ebx, eax
add eax, 0xcbf0b041
add eax, 0x340f4fc4
mov ecx, 0xbc5af8d4
sub ecx, 0xbc1af8d4
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x40b1e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5749c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0x3b8
xor edi, edi
lea eax, [esi + 0x74]
push edi
push eax
call fcn.00500800
push 0x110
lea ecx, [ebp - 0x114]
push edi
push ecx
mov dword [esi + 0x42c], edi
mov dword [esi + 0x430], 1
mov dword [esi + 0x434], 1
mov dword [esi + 0x474], edi
mov dword [esi + 0x478], 1
mov dword [esi + 0x438], edi
mov dword [esi + 0x458], edi
mov dword [esi + 0x470], edi
mov dword [esi + 0x440], edi
mov dword [esi + 0x47c], edi
mov dword [ebp - 0x118], 0x114
call fcn.00500800
add esp, 0x18
lea edx, [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x40b2a9
cmp dword [ebp - 0x114], 5
jb 0x40b2a9
mov eax, 1
pop edi
mov dword [esi + 0x43c], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ffd80
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov dword [esi + 0x43c], edi
pop edi
xor ecx, ebp
pop esi
call fcn.004ffd80
mov esp, ebp
pop ebp
ret

Function at 0x415a72
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x415ab9
call fcn.0040f5dc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x415ab9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x415ad5
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00415572
mov esi, eax
test edi, edi
je 0x415ad3
test ebx, ebx
je 0x415ad3
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x416614
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5749c8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x416659
push 0x52df38
push 4
push eax
call fcn.00500b39
push eax
call fcn.00401050
add esp, 0x10
jmp 0x41666f
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4166ef
push edi
call fcn.0050158f
mov edi, dword [eax]
call fcn.0050158f
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00500898
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0050158f
cmp dword [eax], 0
je 0x4166c3
call fcn.0050158f
push dword [eax]
call fcn.0040c6f6
pop ecx
jmp 0x4166ca
call fcn.0050158f
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x4166ef
cmp dword [ebp - 0x234], esi
jae 0x4166ef
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4166f1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ffd80
leave
ret
Function at 0x401590
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x4015c7
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x4015ba
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x401635
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + 0xacd0c0]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + 0xacd0c0]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + 0xacd0c0]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0xacd0c0]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x401682
cmp ebx, 4
jne 0x401685
cmp edi, 6
jbe 0x401685
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0xacd0c0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0xacd0c0]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0xacd0c0]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0xacd0c0]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x4015d6
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402765
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x402786
lea ecx, [ebp - 0x10]
call fcn.00402748
test eax, eax
je 0x402786
mov eax, dword [ebp - 8]
leave
ret
xor eax, eax
leave
ret
Function at 0x4027b9
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0xb00008]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402802
push str.SetDefaultDllDirectories
push 0xacf368
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402802
push 0xc00
call eax
test eax, eax
jne 0x40289e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40289e
cmp eax, 0x104
ja 0x40289e
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402839
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [0xacf2f8]
push esi
mov esi, 0xacf2f8
test cl, cl
je 0x40289d
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov edx, edi
inc esi
movzx eax, cl
mov cl, byte [esi]
inc esi
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x40285a
push 0x2e
pop eax
push 0x64
mov word [edx], ax
pop eax
mov word [edx + 2], ax
xor eax, eax
push 8
push eax
mov word [edx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [edx + 4], bx
mov word [edx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov cl, byte [esi]
test cl, cl
jne 0x402857
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a96a13
leave
ret
Function at 0x408418
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
push 0x38
pop eax
mov ecx, dword [esi + 8]
and ecx, 0x3f
mov byte [ecx + esi + 0x40], 0x80
inc ecx
cmp ecx, eax
jbe 0x40845f
push 0x40
pop edx
cmp ecx, edx
je 0x40844c
sub edx, ecx
lea eax, [esi + 0x40]
push edx
add eax, ecx
push 0
push eax
call fcn.00a99070
add esp, 0xc
lea edi, [esi + 0x20]
lea edx, [esi + 0x40]
mov ecx, edi
push 1
call dword [esi]
push 0x38
xor ecx, ecx
pop eax
jmp 0x408462
lea edi, [esi + 0x20]
sub eax, ecx
push eax
lea eax, [esi + 0x40]
add eax, ecx
push 0
push eax
call fcn.00a99070
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap ecx
bswap eax
mov dword [esi + 0x7c], ecx
mov ecx, edi
push 1
mov dword [esi + 0x78], eax
call dword [esi]
push 4
pop edx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
lea edi, [edi + 8]
bswap eax
mov dword [ebx], eax
lea ebx, [ebx + 8]
bswap ecx
mov dword [ebx - 4], ecx
sub edx, 1
jne 0x408498
pop edi
mov ecx, esi
pop esi
pop ebx
jmp fcn.00407f6e

Function at 0x40a43e
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xabc60d
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0xb00008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push dword [ebp + 8]
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40a4b1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40a4aa
push dword [ebp + 8]
push edi
push eax
call fcn.00a98af0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40a4aa
mov al, 1
jmp 0x40a4b3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40a4ca
Capabilities:
Open clipboard

Disassembly:
push 0x1c
mov eax, 0xabc647
call fcn.00abb96b
mov esi, edx
and dword [ebp - 4], 0
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
mov byte [ebp - 0xd], al
test al, al
je 0x40a58b
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40a588
mov eax, dword [esi + 4]
mov edx, dword [esi]
lea eax, [eax*2 + 2]
push eax
push 0xd
pop ecx
call fcn.0040a43e
push 0
mov edx, esi
lea ecx, [ebp - 0x1c]
mov bl, al
call fcn.00409ba2
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
inc ecx
push ecx
mov ecx, eax
call fcn.0040a43e
push 1
pop edi
test al, al
movzx ebx, bl
push edi
mov edx, esi
lea ecx, [ebp - 0x28]
cmovne ebx, edi
call fcn.00409ba2
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00409071
push dword [ebp - 0x28]
call fcn.00a96a21
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
inc eax
pop ecx
push eax
push 7
pop ecx
call fcn.0040a43e
push dword [ebp - 0x1c]
test al, al
movzx ebx, bl
cmovne ebx, edi
call fcn.00a96a21
pop ecx
jmp 0x40a591
mov al, byte [ebp - 0xd]
xor bl, bl
test al, al
je 0x40a597
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bl
call fcn.00abb939
ret

Function at 0x40af2c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb02db9], 0
push esi
mov esi, edx
jne 0x40af60
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.00409881
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a96a21
pop ecx
test esi, esi
jmp 0x40af6a
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40af70
mov al, 1
jmp 0x40af72
xor al, al
pop esi
leave
ret

Function at 0x40af75
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb02db9], 0
jne 0x40afa7
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409881
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a96a21
pop ecx
test esi, esi
pop esi
jmp 0x40afb0
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40afb6
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x40b022
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb02db9], 0
jne 0x40b056
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409881
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a96a21
pop ecx
test esi, esi
pop esi
jmp 0x40b061
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b067
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x40b06b
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0xabc769
call fcn.00abb96b
mov edi, ecx
cmp byte [0xb02db9], 0
jne 0x40b0a6
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00409881
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00a96a21
pop ecx
test esi, esi
jmp 0x40b0b2
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b0b8
mov al, 1
jmp 0x40b0fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b0c9
xor al, al
jmp 0x40b0fe
lea ecx, [ebp - 0x50]
call fcn.0040b4fc
lea ecx, [ebp - 0x28]
call fcn.004092bf
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040b834
test al, al
je 0x40b0f3
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00a96a21
pop ecx
mov al, bl
call fcn.00abb939
ret

Function at 0x40b253
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0040b7ef
cmp eax, 0xffffffff
je 0x40b280
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x40b280
and eax, 0xfffffffe
mov ecx, esi
mov edx, eax
call fcn.0040af2c
test al, al
je 0x40b2b9
cmp byte [0xb02db9], 0
jne 0x40b2aa
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.00409881
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a96a21
pop ecx
test esi, esi
jmp 0x40b2b3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40b2b9
mov al, 1
jmp 0x40b2bb
xor al, al
pop esi
leave
ret

Function at 0x40b7ef
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb02db9], 0
jne 0x40b821
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409881
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a96a21
pop ecx
mov eax, esi
pop esi
leave
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
leave
ret