joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473de0
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [0x4a1d78]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
push edi
xor edi, edi
mov dword [ebp - 0xd4], eax
mov ebx, edi
lea ecx, [ebp - 0xcc]
push ecx
mov ecx, eax
call fcn.00473cce
test eax, eax
je 0x473f1a
push 0x74
lea eax, [ebp - 0x84]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x84], 0x74
lea eax, [ebp - 0x84]
mov dword [ebp - 0xd0], edi
push eax
push edi
push 0x43a
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xca]
mov ecx, dword [ebp - 0x80]
shl eax, 0xa
or ecx, 0x2000000
or eax, dword [ebp - 0xcc]
or ecx, 0x80000000
movzx edi, ax
or ecx, 0x20000000
mov eax, edi
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x6a]
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0xc4]
push eax
push 0x20
pop edx
call fcn.004158fd
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx eax, ax
test ebx, ebx
jne 0x473ec5
cmp ax, di
je 0x473eed
xor ecx, ecx
cmp cx, word [ebp - 0xca]
jne 0x473ec5
xor eax, edi
test eax, 0x3ff
je 0x473ef0
xor edi, edi
lea eax, [ebp - 0x84]
mov dword [ebp - 0xd0], edi
push eax
push 0x10
push 0x444
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0xd4]
jmp 0x473e07
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x84]
push eax
call fcn.00473f32
lea eax, [ebp - 0x84]
xor edi, edi
push eax
push edi
push 0x444
push esi
mov dword [ebp - 0xd0], edi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x473ec7
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048e170
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4740d8
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
mov eax, dword [0x4a1d78]
xor eax, esp
mov dword [esp + 0x280], eax
push esi
push 0x208
xor esi, esi
lea eax, [esp + 0x7c]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [esp + 0x78]
call fcn.00475c2b
cmp dword [0x49f100], 4
jbe 0x4741bf
push 0x4000
push esi
call fcn.00414c60
test al, al
je 0x4741bf
xor ecx, ecx
mov dword [esp + 0x2c], esi
inc ecx
mov dword [esp + 0x30], 4
add dword [0x4a4928], ecx
lea eax, [esp + 4]
mov dword [esp + 4], ecx
lea edx, [esp + 0x78]
adc dword [0x4a492c], esi
lea ecx, [esp + 0x58]
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], 0x4a4914
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], 0x10
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 0x4a4928
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 8
mov dword [esp + 0x54], esi
call fcn.00414caa
call dword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetCommandLineW]
mov edx, eax
lea ecx, [esp + 0x68]
call fcn.00414caa
lea eax, [esp + 8]
mov edx, 0x414654
push eax
push 7
push ecx
push ecx
call fcn.00414bcd
mov ecx, dword [esp + 0x284]
pop esi
xor ecx, esp
call fcn.0048e170
mov esp, ebp
pop ebp
ret
Function at 0x475c2b
Capabilities:
Enumerate processes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x4a1d78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x22c
lea eax, [ebp - 0x230]
push edi
xor esi, esi
mov ebx, ecx
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x230], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push 2
mov dword [ebp - 0x234], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x475ca6
mov eax, dword [ebp - 0x234]
cmp eax, dword [ebp - 0x228]
je 0x475cac
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x475c8a
jmp 0x475ce0
mov esi, dword [ebp - 0x218]
test esi, esi
je 0x475ce0
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x475cdc
cmp esi, dword [ebp - 0x228]
je 0x475ce0
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x475cc6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
mov esi, 0x104
je 0x475cf9
lea eax, [ebp - 0x20c]
push eax
jmp 0x475cfe
push 0x412600
push 0x4125f8
push esi
push ebx
call fcn.004159df
add esp, 0x10
lea eax, [ebp - 0x278]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetStartupInfoW]
test dword [ebp - 0x24c], 0x800
je 0x475d34
push 0x412610
mov edx, esi
mov ecx, ebx
call fcn.00415937
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048e170
mov esp, ebp
pop ebp
ret
Function at 0x487642
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push edi
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 4], edx
mov edi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x487666
push 0x19
pop ecx
int 0x29
test byte [ebp - 0xc], 0x44
je 0x4876b0
push ebx
push esi
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x40]
xor edx, edx
lea ecx, [ebx - 1]
mov eax, ecx
lea esi, [ebx - 1]
and ecx, dword [ebp - 4]
and eax, edi
add eax, ebx
dec ecx
add eax, ecx
not esi
div ebx
xor edx, edx
and esi, edi
mov ecx, eax
mov eax, dword [ebp - 4]
div ebx
add ecx, eax
je 0x4876ae
xor eax, eax
lock or dword [esi], eax
add esi, ebx
sub ecx, 1
jne 0x4876a2
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x48e160
Capabilities:
Encrypt data using rc4 prga

Disassembly:
pushal
push ebp
mov ebp, esp
sub esp, 0x108
invalid
inc ebp
in al, dx
push es
add byte [eax], al

Function at 0x48e80f
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x49da88
call fcn.0048ebac
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x48e86f
cmp eax, 0xffffffff
je 0x48e86f
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x48e868
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x48e868
cmp edx, 0x10000000
jae 0x48e868
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x48e865
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0048ebf1
ret 4

Function at 0x48e8d0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x48e90e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x48e906
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x48e910
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x48e8f6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x48e9f0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x48ea06
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x48ea21
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x942570
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x355000]
push edi
or ebp, 0xffffffff
jmp 0x942592
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x942599
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x942588
mov eax, 1
add ebx, ebx
jne 0x9425ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9425bc
jne 0x9425db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9425db
dec eax
add ebx, ebx
jne 0x9425c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x9425a0
add ebx, ebx
jne 0x9425d7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x94262d
xor ecx, ecx
sub eax, 3
jb 0x9425f3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x942662
sar eax, 1
mov ebp, eax
jmp 0x9425fe
add ebx, ebx
jne 0x9425fe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9425cc
inc ecx
add ebx, ebx
jne 0x94260c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9425cc
add ebx, ebx
jne 0x942619
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x94260e
jne 0x94262a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x94260e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x94264c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x94263e
jmp 0x94258e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x94264c
add edi, ecx
jmp 0x94258e
pop esi
mov edi, esi
mov ecx, 0x4dde
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x94266a
cmp byte [edi], 0x25
jne 0x94266a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x94266f
lea edi, [esi + 0x53e000]
mov eax, dword [edi]
or eax, eax
je 0x9426de
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x542b2c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x542ce4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x94269c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x542ce8]
or eax, eax
je 0x9426d8
mov dword [ebx], eax
add ebx, 4
jmp 0x9426b9
call dword [esi + 0x542cf8]
mov ebp, dword [esi + 0x542cec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x942712
sub esp, 0xffffff80
jmp 0x490888
Function at 0x412c79
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push str.SoftwareMicrosoftShared
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412d40
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 4
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0
push str.OfficeUILanguage
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412d12
cmp dword [ebp - 0x28], 0
je 0x412d12
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call fcn.00412df7
add esp, 8
test eax, eax
jne 0x412d19
mov dword [ebp - 0x28], 0x409
mov eax, dword [ebp - 0x28]
push eax
push 0x454844
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x412dc0
push str.msi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x412dc0
push str.MsiProvideQualifiedComponentA
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x412db6
mov dword [ebp - 0x38], 0x100
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x138]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push str.71358FC1_E43B_11D1_A17F_00A0C90AB50F
call dword [ebp - 0x34]
test eax, eax
jl 0x412db6
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0xc], 0
jne 0x412dd8
push str.eeintl.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x412dea
mov eax, dword [0x45bd44]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
jmp 0x412df2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428a76
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push ebx
push esi
push edi
lea eax, [ebp - 0x70]
push eax
push str.keyboard_layout
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x428aa2
xor eax, eax
jmp 0x428ae6
mov dword [ebp - 0x6c], 0x64
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push str.Active
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x428ad5
xor eax, eax
jmp 0x428ae6
lea eax, [ebp - 0x64]
push eax
call fcn.00429231
add esp, 4
jmp 0x428ae6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42a551
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x20]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftOfficeCommon8.0Command_BarsButtonSize
push reloc.AppVIsvSubsystems32.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42a590
xor eax, eax
jmp 0x42a5f3
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
jne 0x42a5ec
lea eax, [ebp - 0x10]
push eax
call fcn.0044c730
add esp, 4
cmp eax, 0x18
jl 0x42a5e0
mov eax, 1
jmp 0x42a5e2
xor eax, eax
jmp 0x42a5f3
xor eax, eax
jmp 0x42a5f3
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42ecb2
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.0042ec12
add esp, 4
test eax, eax
je 0x42ee24
mov eax, dword [0x45bd14]
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
jmp 0x42edee
push 3
call dword [sym.imp.USER32.dll_GetClipboardData]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42ed25
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.0042f097
add esp, 8
mov dword [ebp - 8], 1
jmp case.0x42edfb.2
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x42ed7e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 8], 1
jmp 0x42ed88
mov eax, dword [ebp + 0xc]
mov dword [eax + 8], 0
jmp case.0x42edfb.2
xor eax, eax
mov ax, word [0x45baca]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x42edb6
mov dword [ebp - 8], 1
jmp case.0x42edfb.2
xor eax, eax
mov ax, word [0x45bac8]
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x42ede4
mov dword [ebp - 8], 1
jmp case.0x42edfb.2
cmp dword [ebp - 0x10], 4
ja case.0x42edfb.2
mov eax, dword [ebp - 0x10]
jmp dword [eax*4 + 0x42ee02]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [ebp - 8]
jmp 0x42ee2c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401a00
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x804]
sub esp, 0x804
push 0xffffffffffffffff
push 0x427b00
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x43217c]
xor eax, ebp
mov dword [ebp + 0x800], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
test edi, edi
je 0x401b4e
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401a50
sub eax, edx
sar eax, 1
je 0x401b4e
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.00409180
push edi
push 0x400
lea ecx, [ebp]
push ecx
call fcn.00408456
add esp, 0x18
mov ecx, 0x429cb8
lea edx, [ebp]
call fcn.00405ac0
mov ecx, 0x429cb8
lea edx, [ebp]
call fcn.00405c70
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401b45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x401aeb
lea eax, [ebp]
push eax
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x434070
call fcn.00402b70
add esp, 8
mov dword [ebp - 0x18], esi
push 0x42fd58
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040a7d8
sub eax, 2
je 0x401b40
sub eax, 3
je 0x401b1b
sub eax, 0x1b
je 0x401b2a
lea edx, [ebp]
push edx
push str.Delete_File____s_
mov ecx, esi
mov edx, 0x434070
call fcn.00402b70
add esp, 8
mov dword [ebp - 4], 0xffffffff
jmp 0x401b91
push 0x80
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp]
call fcn.00402150
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x401b91
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x401b91
mov eax, 0x57
jmp 0x401b93
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0040800b
add ebp, 0x804
mov esp, ebp
pop ebp
ret
Function at 0x401f80
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.0040fae0
push 0xffffffffffffffff
push 0x4278e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x43217c]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov esi, edx
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x40210c
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401fe0
sub eax, edx
sar eax, 1
je 0x40210c
cmp esi, edi
je 0x40210c
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402002
sub eax, edx
sar eax, 1
je 0x40210c
push 0x5c
push esi
call fcn.00408245
add esp, 8
mov edi, eax
test edi, edi
jne 0x40203d
mov dword [ebp - 0x1c], 0x57
push 0x42fd58
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a7d8
mov ecx, edi
sub ecx, esi
sar ecx, 1
push ecx
push esi
push 0x400
lea edx, [ebp]
push edx
call fcn.004084c5
push 0x800
push 0
lea eax, [ebp + 0x800]
push eax
call fcn.00409180
add esp, 0x1c
lea ecx, [ebp + 0x800]
push ecx
push 0
push edi
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x402095
push esi
push str._s.tmp
lea edx, [ebp + 0x800]
call fcn.00402980
add esp, 8
push 1
lea eax, [ebp + 0x800]
push eax
push esi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call edi
test eax, eax
je 0x4020d4
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4020c8
push 4
push 0
lea ecx, [ebp + 0x800]
push ecx
call edi
jmp 0x4020dd
push 1
push esi
lea edx, [ebp + 0x800]
push edx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0040800b
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x4020e7
Function at 0x402150
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.0040fae0
push 0xffffffffffffffff
push 0x4278b0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x43217c]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x4022f0
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4021a7
sub eax, edx
sar eax, 1
je 0x4022f0
push 0x5c
push edi
call fcn.00408245
add esp, 8
mov esi, eax
cmp esi, ebx
je 0x4022f0
push 0x800
push ebx
lea eax, [ebp]
push eax
call fcn.00409180
add esp, 0xc
lea ecx, [ebp]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40220d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
push 0x42fd58
lea edx, [ebp - 0x1c]
push edx
call fcn.0040a7d8
push 0x800
push ebx
lea eax, [ebp + 0x800]
push eax
call fcn.00409180
add esp, 0xc
lea ecx, [ebp + 0x800]
push ecx
push ebx
add esi, 2
push esi
lea edx, [ebp]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x402253
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0x42fd58
lea eax, [ebp - 0x24]
push eax
call fcn.0040a7d8
push 3
lea ecx, [ebp + 0x800]
push ecx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
test eax, eax
jne 0x402280
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
push 0x42fd58
lea edx, [ebp - 0x20]
push edx
call fcn.0040a7d8
push 4
push ebx
lea eax, [ebp + 0x800]
push eax
call esi
test eax, eax
jne 0x4022a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push 0x42fd58
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040a7d8
lea edx, [ebp + 0x800]
push edx
push edi
push str.__s__file_was_moved_to___s__and_it_will_be_deleted_after_reboot__
mov ecx, 0x434070
call fcn.00402cb0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.0040800b
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
jmp 0x4022cb