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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
lea eax, [ebp - 0x9c]
mov byte [ebp - 0x20], 0x2a
push eax
mov byte [ebp - 0x10], 0x67
mov byte [ebp - 0x1f], 0x2f
mov byte [ebp - 0xf], 0x21
mov byte [ebp - 0x1e], 0xed
mov byte [ebp - 0xe], 0x4c
mov byte [ebp - 0x1d], 0x5e
mov byte [ebp - 0xd], 0xa4
mov byte [ebp - 0x1c], 0x49
mov byte [ebp - 0xc], 0x10
mov byte [ebp - 0x1b], 0x26
mov byte [ebp - 0xb], 0x7e
mov byte [ebp - 0x1a], 0x40
mov byte [ebp - 0xa], 0x51
mov byte [ebp - 0x19], 0x19
mov byte [ebp - 9], 0x22
mov byte [ebp - 0x18], 0x40
mov byte [ebp - 8], 0x25
mov byte [ebp - 0x17], 0x40
mov byte [ebp - 7], 0x11
mov byte [ebp - 0x16], 0xe2
mov byte [ebp - 6], 0x2b
mov byte [ebp - 0x15], 0x51
mov byte [ebp - 5], 0x3c
mov byte [ebp - 0x14], 0xaa
mov byte [ebp - 4], 0x46
mov byte [ebp - 0x13], 0xfa
mov byte [ebp - 3], 0x5e
mov byte [ebp - 0x12], 0xdb
mov byte [ebp - 0x11], 0xcb
call fcn.00406319
lea eax, [ebp - 0x20]
push 0x1c
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00406341
lea eax, [ebp - 0x9c]
push eax
push dword [ebp + 8]
call fcn.004063df
and byte [ebp - 0x27], 0
add esp, 0x18
mov byte [ebp - 0x34], 0x47
mov byte [ebp - 0x33], 0x65
mov byte [ebp - 0x32], 0x74
mov byte [ebp - 0x31], 0x53
mov byte [ebp - 0x30], 0x79
mov byte [ebp - 0x2f], 0x73
mov byte [ebp - 0x2e], 0x74
mov byte [ebp - 0x2d], 0x65
mov byte [ebp - 0x2c], 0x6d
mov byte [ebp - 0x2b], 0x54
mov byte [ebp - 0x2a], 0x69
mov byte [ebp - 0x29], 0x6d
mov byte [ebp - 0x28], 0x65
call fcn.0040323a
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x44]
push ecx
call eax
mov cx, word [ebp - 0x44]
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dl, ch
mov byte [eax], cl
mov cx, word [ebp - 0x42]
mov byte [eax + 1], dl
xor edx, edx
mov byte [eax + 2], cl
mov dl, ch
mov byte [eax + 3], dl
leave
ret
Function at 0x426d58
Capabilities:
Terminate process

Disassembly:
jmp 0x426d58
push ebp
sub esp, 0x5c
lea ebp, [esp - 4]
mov eax, dword [0x4776c8]
xor eax, ebp
mov dword [ebp + 0x5c], eax
push 0x134
mov eax, 0x45e788
call fcn.0042942c
push 0xf
pop esi
xor edi, edi
push edi
lea ecx, [ebp + 0x40]
mov dword [ebp + 0x58], esi
call fcn.0040168b
push edi
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp + 0x20], esi
call fcn.0040168b
push edi
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x3c], esi
call fcn.0040168b
fld qword [ebp + 0x70]
push str.programD_NameSm.txt
fstp qword [ebp]
lea eax, [ebp - 0x28]
push 0x477354
push eax
mov byte [ebp - 4], 2
call fcn.00401285
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp + 0x24]
mov byte [ebp - 4], 3
call fcn.00401668
xor ebx, ebx
push edi
inc ebx
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040150a
cmp dword [ebp + 0x3c], 0x10
mov eax, dword [ebp + 0x28]
jae 0x426df2
lea eax, [ebp + 0x28]
push ebx
push 0x40
pop esi
push esi
push ebx
push eax
lea ecx, [ebp - 0x140]
call fcn.00401721
mov eax, dword [ebp - 0x140]
mov eax, dword [eax + 4]
lea eax, [ebp + eax - 0x140]
mov ecx, dword [eax + 8]
and cl, 6
neg cl
mov byte [ebp - 4], 4
sbb ecx, ecx
not ecx
test eax, ecx
je 0x426f7d
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.00401073
pop ecx
pop ecx
lea ecx, [ebp - 0x140]
call fcn.004014dd
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
jae 0x426e55
lea eax, [ebp + 0xc]
push ebx
push esi
push ebx
push eax
lea ecx, [ebp - 0xb4]
call fcn.00401721
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax + 4]
lea eax, [ebp + ecx - 0xb4]
mov edx, dword [eax + 8]
and dl, 6
neg dl
mov byte [ebp - 4], 5
sbb edx, edx
not edx
test eax, edx
je 0x426f65
test byte [ebp + ecx - 0xac], bl
jne 0x426f01
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00401073
cmp dword [ebp + 0x58], 0x10
mov eax, dword [ebp + 0x44]
pop ecx
pop ecx
jae 0x426eb3
lea eax, [ebp + 0x44]
push eax
call fcn.0042a51d
fldz
pop ecx
push eax
sub esp, 0x20
fstp qword [esp + 0x18]
fld qword [0x463370]
fstp qword [esp + 0x10]
fld qword [ebp]
fstp qword [esp + 8]
fld qword [ebp + 0x68]
fstp qword [esp]
call fcn.0040127b
fld qword [ebp]
mov eax, dword [ebp - 0xb4]
fsub qword [0x4634b0]
mov eax, dword [eax + 4]
add esp, 0x24
test byte [ebp + eax - 0xac], bl
fstp qword [ebp]
je 0x426e95
lea ecx, [ebp - 0xb4]
call fcn.004014dd
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 4
call fcn.00401776
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 2
call fcn.00401776
push edi
push ebx
lea ecx, [ebp + 0x24]
call fcn.0040150a
push edi
push ebx
lea ecx, [ebp + 8]
call fcn.0040150a
push edi
push ebx
lea ecx, [ebp + 0x40]
call fcn.0040150a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5c]
xor ecx, ebp
call fcn.00427492
add ebp, 0x60
leave
ret
push esi
push 0x463b84
push 0x4644bc
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.00427406
push esi
push 0x463b84
push 0x46449c
jmp 0x426f70

Function at 0x427492
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4776c8]
jne 0x42749c
repz ret
jmp fcn.0042c10f
Function at 0x4396b5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042a851
xor ebx, ebx
cmp dword [0x47a90c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x43978a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4396f5
xor eax, eax
jmp 0x43984e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4396ee
push eax
call fcn.0042a7ee
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x47a90c], eax
call esi
push eax
call fcn.0042a7ee
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x47a910], eax
call esi
push eax
call fcn.0042a7ee
mov dword [0x47a914], eax
lea eax, [ebp - 8]
push eax
call fcn.00427111
test eax, eax
pop ecx
pop ecx
je 0x439758
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00428a67
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x43978a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042a7ee
cmp eax, ebx
pop ecx
mov dword [0x47a91c], eax
je 0x43978a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042a7ee
pop ecx
mov dword [0x47a918], eax
mov eax, dword [0x47a918]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x439803
cmp dword [0x47a91c], esi
je 0x439803
push eax
call fcn.0042a85a
pop ecx
call eax
cmp eax, ebx
je 0x4397d0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x47a91c]
call fcn.0042a85a
pop ecx
call eax
test eax, eax
je 0x4397d0
test byte [ebp - 0x18], 1
jne 0x439803
lea eax, [ebp - 0xc]
push eax
call fcn.004271c0
test eax, eax
pop ecx
je 0x4397eb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00428a67
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4397fa
or dword [ebp + 0x10], 0x200000
jmp 0x439834
or dword [ebp + 0x10], 0x40000
jmp 0x439834
mov eax, dword [0x47a910]
cmp eax, esi
je 0x439834
push eax
call fcn.0042a85a
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x439834
mov eax, dword [0x47a914]
cmp eax, esi
je 0x439834
push dword [ebp - 4]
push eax
call fcn.0042a85a
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x47a90c]
call fcn.0042a85a
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401299
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [sym.imp.GDI32.dll_GetObjectA]
lea eax, [ebp - 0x20]
push edi
push eax
mov eax, dword [ebp + 8]
push 0x18
push dword [eax + 4]
call esi
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp + 0xc]
push 0x18
push dword [eax + 4]
call esi
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp - 0x18]
movzx ecx, al
imul edi, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
xor ecx, ecx
mov cl, ah
mov ebx, dword [ebp - 0xc]
shr eax, 0x10
movzx eax, al
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp + 0x10]
movzx ecx, cl
push 0x18
mov dword [ebp + 0x14], ecx
push dword [eax + 4]
mov dword [ebp - 8], edi
call esi
test edi, edi
jbe 0x401370
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x3c]
or dword [ebp + 8], 0xffffffff
lea ecx, [ebx + 1]
sub dword [ebp + 8], ebx
lea esi, [eax + 1]
movzx eax, byte [ecx - 1]
movzx edx, byte [edi]
sub eax, dword [ebp + 0xc]
mov ebx, 0xff
imul eax, edx
cdq
idiv ebx
add al, byte [ebp + 0xc]
mov byte [esi - 1], al
movzx eax, byte [ecx]
movzx edx, byte [edi]
sub eax, dword [ebp + 0x14]
add ecx, 3
imul eax, edx
cdq
idiv ebx
add al, byte [ebp + 0x14]
mov byte [esi], al
add esi, 3
movzx eax, byte [ecx - 2]
movzx edx, byte [edi]
sub eax, dword [ebp - 4]
add edi, 3
imul eax, edx
cdq
idiv ebx
add al, byte [ebp - 4]
mov byte [esi - 2], al
mov eax, dword [ebp + 8]
add eax, ecx
cmp eax, dword [ebp - 8]
jb 0x401318
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push 0x18
push 0
push esi
call fcn.004a9230
add esp, 0xc
call fcn.004e78e1
movzx ecx, word [esp + 0xc]
mov eax, dword [eax + 0xc]
push 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
call fcn.004e78e1
mov eax, dword [eax + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x40149b
xor al, al
jmp 0x4014cc
mov cx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov cx, word [eax + 0xc]
and dword [esi], 0
mov word [esi + 0x10], cx
mov ecx, dword [esi + 4]
shl ecx, 2
mov dword [esi + 0xc], ecx
mov ecx, dword [eax]
add ecx, eax
mov al, 1
mov dword [esi + 0x14], ecx
pop edi
pop esi
ret
Function at 0x4035fb
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x4f1c1c
call fcn.004a920c
sub esp, 0x1c
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 0x44], eax
jne 0x40371d
mov ecx, dword [0x530a90]
push ebx
push edi
mov dword [ebp - 0x14], ecx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push eax
push 0x146
push dword [esi + 0x1c]
mov dword [ebp - 4], eax
call ebx
and byte [ebp - 0x28], 0
mov dword [ebp - 0x1c], eax
xor eax, eax
lea edi, [ebp - 0x27]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x28]
push 0xa
push eax
push 0xc
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x10]
push eax
call fcn.004d3839
mov eax, dword [ebp - 0x10]
xor edi, edi
mov byte [ebp - 4], 1
cmp dword [eax - 8], edi
jne 0x40367c
push 0x3b
lea ecx, [ebp - 0x10]
call fcn.004cc0e6
lea ecx, [ebp - 0x10]
call fcn.004cc9d5
push 0x20
lea ecx, [ebp - 0x10]
call fcn.004d3bce
cmp dword [ebp - 0x1c], 0
jle 0x4036f0
push 0
push edi
push 0x150
push dword [esi + 0x1c]
call ebx
test eax, eax
je 0x4036ea
mov eax, dword [0x530a90]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
push edi
mov byte [ebp - 4], 2
call fcn.004e1ff5
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], 0
je 0x4036d2
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x14]
push eax
call fcn.004d3be3
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
call fcn.004d3be3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004d37cb
inc edi
cmp edi, dword [ebp - 0x1c]
jl 0x403694
lea eax, [ebp - 0x14]
lea ecx, [esi + 0x40]
push eax
call fcn.004d3904
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov dword [esi + 0x44], 1
call fcn.004d37cb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004d37cb
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x413b07
Capabilities:
Create process on windows

Disassembly:
call fcn.00413f57
test eax, eax
je 0x413b2b
push 3
push 0x535ff0
push 0
push eax
push 0x5272fc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 1
pop eax
ret
xor eax, eax
ret

Function at 0x4145ad
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x4f24e5
call fcn.004a920c
sub esp, 0x160
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi], edi
jne 0x414622
push 8
call fcn.004d333d
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
cmp ecx, edi
mov dword [ebp - 4], edi
je 0x4145e3
call fcn.004cdaf9
jmp 0x4145e5
xor eax, eax
or dword [ebp - 4], 0xffffffff
cmp eax, edi
mov dword [esi], eax
je 0x414622
cmp dword [ebp + 0xc], edi
mov eax, 0x4010
je 0x4145fa
inc eax
push eax
lea eax, [ebp - 0x16c]
push 0x160
push eax
push 0x80
push str..txt
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esi]
push eax
call fcn.004cdc18
push 1
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x414687
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
cmp dword [ebp + 0x14], 0
mov eax, 0x4010
je 0x41469c
inc eax
cmp dword [ebp + 0x10], 0
je 0x4146a4
or al, 2
push eax
lea eax, [ebp - 0x160]
push 0x160
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x15c]
leave
ret 0x10
Function at 0x428280
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2c10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x118
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov eax, dword [0x4ff2b8]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x120], 0xc
lea ecx, [ebp - 0x114]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [ebp - 0x120]
sub edx, 0xa
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x11c]
add eax, 0x402153
xor eax, 0x424675
add eax, dword [0x4ff2bc]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], 0
jmp 0x428312
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
cmp dword [ebp - 0x118], 0xc
jge 0x428354
mov edx, dword [ebp - 0x118]
movsx eax, byte [ebp + edx - 0x114]
and eax, 0x80000003
jns 0x428335
dec eax
or eax, 0xfffffffc
inc eax
test eax, eax
je 0x428352
mov ecx, dword [ebp - 0x118]
xor ecx, 0xf93789
mov edx, dword [ebp - 0x118]
mov byte [ebp + edx - 0x114], cl
jmp 0x428303
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, 7
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor ecx, dword [eax]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x4ff27c
push 0x2a8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
call fcn.00423340
add esp, 0x14
jmp 0x4283b2
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42b2df
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret

Function at 0x42b471
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004aa590
push ebx
push 1
pop ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42b4de
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push edi
mov edi, 0x1000
lea eax, [ebp - 0x1004]
push edi
push eax
push 0
push dword [ebp - 4]
call esi
test eax, eax
jne 0x42b4dc
test ebx, ebx
je 0x42b4dc
lea eax, [ebp - 0x1004]
push eax
push dword [ebp - 4]
call fcn.0042b471
pop ecx
mov ebx, eax
pop ecx
lea eax, [ebp - 0x1004]
push edi
push eax
push 0
push dword [ebp - 4]
jmp 0x42b4b0
pop edi
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x42b500
test ebx, ebx
je 0x42b500
push 1
pop eax
jmp 0x42b502
xor eax, eax
pop ebx
leave
ret
Function at 0x4363a6
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
add eax, 0xa8
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx]
and eax, dword [edx + 4]
cmp eax, 0xffffffff
jne 0x4363d0
jmp 0x4364ce
mov ecx, dword [ebp - 0x14]
add ecx, 0xb0
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 4], 0
jg 0x43642d
jl 0x4363ef
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
jae 0x43642d
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xb0]
neg edx
mov eax, dword [ecx + 0xb4]
adc eax, 0
neg eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
cdq
mov esi, dword [ecx + 0xa8]
sub esi, eax
mov eax, dword [ecx + 0xac]
sbb eax, edx
add esi, 1
adc eax, 0
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
jmp 0x43644e
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xb0]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xa8]
mov dword [ebp - 0xc], ecx
mov edx, dword [eax + 0xac]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0x14]
call fcn.00439940
test eax, eax
je 0x436464
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x436466
jmp 0x4364ce
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xa0], 2
jne 0x43648b
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.004362ef
mov dword [ebp - 0x20], eax
jmp 0x4364a2
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
call fcn.00435fab
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x4364c8
mov edx, dword [ebp - 0x10]
push edx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x4364c8
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x452a92
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5196
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x452c45
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a9710
add esp, 4
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0x104
jl 0x452ae8
xor al, al
jmp 0x452c47
mov edx, dword [ebp - 0x124]
add edx, 1
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.004aac10
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
call fcn.0046d7f0
add esp, 4
push 0x5c
lea eax, [ebp - 0x110]
push eax
call fcn.004aa0bf
add esp, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x452b6c
mov ecx, dword [ebp - 0x114]
mov byte [ecx], 0
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.00452a92
add esp, 0x14
and eax, 0xff
test eax, eax
jne 0x452b6c
xor al, al
jmp 0x452c47
mov dword [ebp - 0x120], 0xc
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 1
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x452c25
cmp dword [ebp + 0xc], 0
je 0x452c21
cmp dword [ebp + 0x18], 0
je 0x452c12
lea ecx, [ebp - 0x128]
call fcn.00404dc0
mov dword [ebp - 4], 0
push 0xef54
lea ecx, [ebp - 0x128]
call fcn.004d46c7
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x128]
call fcn.00447470
push eax
push 2
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.00471eb2
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 0x18]
call fcn.00471f57
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.004d37cb
jmp 0x452c21
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0046daf6
add esp, 4
xor al, al
jmp 0x452c47
mov edx, dword [ebp + 0x10]
movsx eax, byte [edx]
test eax, eax
jne 0x452c3f
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.004aa670
add esp, 8
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x455161
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5409
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 0
mov edx, dword [ebp - 0x30]
cmp dword [edx + 8], 0
je 0x455286
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
test edx, edx
je 0x4551c3
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x20
jge 0x4551c3
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
jmp 0x4551a1
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [eax]
push ecx
call fcn.004aaac7
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x41
jl 0x455286
cmp dword [ebp - 0x10], 0x5a
jg 0x455286
mov edx, dword [ebp - 0x10]
sub edx, 0x41
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + eax*4 + 0x18], 0xffffffff
jne 0x45526c
push 0x52ec5c
lea edx, [ebp - 0x18]
push edx
call fcn.004aa670
add esp, 8
mov al, byte [ebp - 0x18]
add al, byte [ebp - 0x10]
mov byte [ebp - 0x18], al
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 4
jne 0x45523d
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x30]
mov dword [eax + edx*4 + 0x18], 0
jmp 0x45526c
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
mov dword [edx + ecx*4 + 0x18], 0
push 0
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
lea edx, [ecx + eax*4 + 0x18]
push edx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + ecx*4 + 0x18]
and eax, 0x20000
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x14]
mov byte [ecx], al
mov edx, dword [ebp + 0x14]
xor eax, eax
mov al, byte [edx]
test eax, eax
jne 0x45531f
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x24]
call fcn.004d3839
mov dword [ebp - 4], 0
push str.._efs
lea ecx, [ebp - 0x24]
call fcn.004d3ba7
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x24]
call fcn.00447470
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4552fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004d37cb
mov eax, dword [ebp - 0x28]
jmp 0x455341
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004d37cb
mov eax, dword [ebp - 0x2c]
jmp 0x455341
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 8], 0
jne 0x45532f
mov eax, 0x85670004
jmp 0x455341
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x30]
call dword [edx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10