joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e463
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x428c60
call fcn.0040e6c4
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0042594a
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41e4a2
call fcn.0042594a
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41e4b0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41e4be
or eax, 0xffffffff
jmp 0x41e5a6
mov ecx, esi
call fcn.0041e3d9
mov dword [ebp - 0x14], eax
call fcn.0041f9c3
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41e4f5
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41e4f5
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041f977
push dword [ebp - 0x14]
call fcn.0041f4fb
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041e171
cmp eax, edi
je 0x41e568
test byte [esi + 0x24], 0x10
je 0x41e536
push 4
mov ecx, esi
pop ebx
call fcn.00421b5c
test ah, 1
je 0x41e52e
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00421599
cmp dword [esi + 0x1c], edi
je 0x41e568
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00421c42
jmp 0x41e568
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41e57c
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41e595
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41e595
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041e413
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41fe73
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41feab
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041ef6c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041ef43
jmp 0x41feb7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4213fe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x421440
call fcn.0042594a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x421440
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x421437
xor eax, eax
jmp 0x421448
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0042144e
pop edi
pop esi
pop ebx
ret 4

Function at 0x425e3d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x425e6b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x425e89
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00425da3
jmp 0x425e89
mov eax, dword [esi + 0x14]
test eax, eax
je 0x425e89
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00425da3
test edi, edi
mov eax, edi
jne 0x425e73
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4737e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x473805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x473878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x47383a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x47386d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x47386b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x473831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4737fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x10001110
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push esi
push edi
push eax
push 0x40
push 5
push 0xffda95
mov byte [0x6e4f7a], 2
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov eax, 0x100010c0
push 5
sub eax, 0xffda9a
mov byte [0xffda95], 0xe9
push 0xffda95
mov dword [0xffda96], eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push eax
call esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push 0xffda95
call ebx
lea eax, [ebp - 8]
mov byte [0xf8de61], 7
push eax
push 0x40
push 5
push 0xf8de57
call ebx
mov eax, 0x100010a0
mov byte [0xf8de57], 0xe9
push 5
sub eax, 0xf8de5c
push 0xf8de57
mov dword [0xf8de58], eax
call edi
push eax
call esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push 0xf8de57
call ebx
lea eax, [ebp - 8]
mov byte [0x6b6ee3], 1
push eax
push 0x40
push 5
push 0x4c8957
mov byte [0x6b7536], 1
call ebx
mov eax, 0x10001080
mov byte [0x4c8957], 0xe9
push 5
sub eax, 0x4c895c
push 0x4c8957
mov dword [0x4c8958], eax
call edi
push eax
call esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push 0x4c8957
call ebx
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push 0x950716
call ebx
mov byte [0x950716], 0xe8
mov eax, 0x10001050
push 5
sub eax, 0x95071b
push 0x950716
mov dword [0x950717], eax
call edi
push eax
call esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push 0x950716
call ebx
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push 0xf2e075
call ebx
mov eax, section..text
mov byte [0xf2e075], 0xe9
push 5
sub eax, 0xf2e07a
push 0xf2e075
mov dword [0xf2e076], eax
call edi
push eax
call esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push 0xf2e075
call ebx
mov eax, dword [0x100020a4]
mov ecx, 0xf2df5d
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov ax, word [0x100020a8]
mov word [ecx + 4], ax
mov eax, 1
mov ecx, dword [ebp - 4]
mov byte [0x11108b6], 1
xor ecx, ebp
mov dword [0x46f5b4], 0x1a8
mov dword [0x1814224], 0x46f4e0
call fcn.100012df
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405fd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431748
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00402ba5
test al, al
je 0x40600b
xor al, al
jmp 0x406138
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402c5e
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x28]
call fcn.004087f0
lea ecx, [ebp - 0x28]
call fcn.00402bad
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x406125
lea ecx, [ebp - 0x40]
call fcn.00402c4b
mov byte [ebp - 4], 1
mov edx, ecx
lea ecx, [ebp - 0x28]
call fcn.00414a20
test al, al
je 0x40606b
lea ecx, [ebp - 0x40]
call fcn.00402bad
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402b04
cmp esi, 0xffffffff
jne 0x406125
lea ecx, [ebp - 0x28]
call fcn.00402d70
cmp eax, 2
jbe 0x406121
call fcn.00402d70
mov esi, eax
call fcn.00402cf0
mov edx, eax
mov ecx, edx
mov ebx, dword [edx + 0x14]
cmp ebx, 8
jb 0x4060ab
mov ecx, dword [edx]
cmp word [ecx + esi*2 - 2], 0x5c
je 0x4060ca
lea ecx, [ebp - 0x28]
call fcn.00402d70
cmp ebx, 8
jb 0x4060c2
mov edx, dword [edx]
cmp word [edx + eax*2 - 2], 0x2f
jne 0x406121
mov edx, 0x20
lea ecx, [ebp - 0x28]
call fcn.004087f0
lea ecx, [ebp - 0x28]
call fcn.00402bad
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x406125
lea ecx, [ebp - 0x40]
call fcn.00402c4b
mov byte [ebp - 4], 2
mov edx, ecx
lea ecx, [ebp - 0x28]
call fcn.00414a20
test al, al
je 0x406110
lea ecx, [ebp - 0x40]
call fcn.00402bad
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402b04
cmp esi, 0xffffffff
jne 0x406125
xor bl, bl
jmp 0x406127
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402b04
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004226d8
mov esp, ebp
pop ebp
ret
Function at 0x406160
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431748
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00402ba5
test al, al
je 0x40619b
xor al, al
jmp 0x4062ce
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402c5e
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x28]
call fcn.004087f0
lea ecx, [ebp - 0x28]
call fcn.00402bad
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406208
lea ecx, [ebp - 0x40]
call fcn.00402c4b
mov byte [ebp - 4], 1
mov edx, ecx
lea ecx, [ebp - 0x28]
call fcn.00414a20
test al, al
je 0x4061f7
lea ecx, [ebp - 0x40]
call fcn.00402bad
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402b04
cmp ebx, 0xffffffff
je 0x406211
test bl, 0x10
je 0x4062bb
lea ecx, [ebp - 0x28]
call fcn.00402d70
cmp eax, 2
jbe 0x4062b7
call fcn.00402d70
mov edi, eax
call fcn.00402cf0
mov edx, eax
mov ecx, edx
mov ebx, dword [edx + 0x14]
cmp ebx, 8
jb 0x40623c
mov ecx, dword [edx]
cmp word [ecx + edi*2 - 2], 0x5c
je 0x40625b
lea ecx, [ebp - 0x28]
call fcn.00402d70
cmp ebx, 8
jb 0x406253
mov edx, dword [edx]
cmp word [edx + eax*2 - 2], 0x2f
jne 0x4062b7
mov edx, 0x20
lea ecx, [ebp - 0x28]
call fcn.004087f0
lea ecx, [ebp - 0x28]
call fcn.00402bad
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4062b2
lea ecx, [ebp - 0x40]
call fcn.00402c4b
mov byte [ebp - 4], 2
mov edx, ecx
lea ecx, [ebp - 0x28]
call fcn.00414a20
test al, al
je 0x4062a1
lea ecx, [ebp - 0x40]
call fcn.00402bad
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402b04
cmp ebx, 0xffffffff
je 0x4062b7
test bl, 0x10
je 0x4062bb
xor bl, bl
jmp 0x4062bd
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402b04
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004226d8
mov esp, ebp
pop ebp
ret
Function at 0x4062f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431780
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00402ba5
test al, al
je 0x406329
xor al, al
jmp 0x4063b4
push ecx
lea ecx, [ebp - 0x28]
call fcn.00402c5e
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x28]
call fcn.004087f0
lea ecx, [ebp - 0x28]
call fcn.00402bad
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406398
lea ecx, [ebp - 0x40]
call fcn.00402c4b
mov byte [ebp - 4], 1
mov edx, ecx
lea ecx, [ebp - 0x28]
call fcn.00414a20
test al, al
je 0x406387
lea ecx, [ebp - 0x40]
call fcn.00402bad
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402b04
cmp ebx, 0xffffffff
je 0x4063a1
test bl, 0x10
je 0x4063a1
mov bl, 1
jmp 0x4063a3
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402b04
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004226d8
mov esp, ebp
pop ebp
ret
Function at 0x4069c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4318c0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00402ba5
test al, al
je 0x4069fd
xor al, al
jmp 0x406b9f
call fcn.004062f0
test al, al
je 0x406a0d
mov al, 1
jmp 0x406b9f
push 0
mov ecx, edi
call fcn.00402bad
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x406a5b
lea ecx, [ebp - 0x28]
call fcn.00402c4b
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, edi
call fcn.00414a20
test al, al
je 0x406a4c
push 0
lea ecx, [ebp - 0x28]
call fcn.00402bad
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402b04
mov ecx, edi
call fcn.004062f0
test al, al
jne 0x406a06
mov ecx, edi
call fcn.00402d70
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x406b45
call fcn.00402cf0
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x406a8d
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x406ab0
mov eax, ebx
cmp ecx, 8
jb 0x406aa6
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x406b35
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00403b10
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402ba5
test al, al
jne 0x406b26
call fcn.00405fd0
test al, al
jne 0x406b26
push 0
lea ecx, [ebp - 0x28]
call fcn.00402bad
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x406b26
lea ecx, [ebp - 0x40]
call fcn.00402c4b
mov byte [ebp - 4], 2
mov edx, ecx
lea ecx, [ebp - 0x28]
call fcn.00414a20
test al, al
je 0x406b1a
push 0
lea ecx, [ebp - 0x40]
call fcn.00402bad
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00402b04
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402b04
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x406a81
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.00405fd0
test al, al
jne 0x406b98
push 0
mov ecx, edi
call fcn.00402bad
push eax
call ebx
test eax, eax
jne 0x406b98
lea ecx, [ebp - 0x40]
call fcn.00402c4b
mov dword [ebp - 4], 3
mov edx, ecx
mov ecx, edi
call fcn.00414a20
test al, al
je 0x406b89
push 0
lea ecx, [ebp - 0x40]
call fcn.00402bad
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00402b04
mov ecx, edi
call fcn.004062f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004226d8
mov esp, ebp
pop ebp
ret
Function at 0x4077b0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431a58
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0xb
mov ecx, esi
call fcn.00402bad
push eax
mov ecx, edi
call fcn.00402bad
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4078d0
lea ecx, [ebp - 0x58]
xor bl, bl
call fcn.00402c4b
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, edi
call fcn.00414a20
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
lea ecx, [ebp - 0x40]
call fcn.00402c4b
mov byte [ebp - 4], 1
mov edx, ecx
mov ecx, esi
call fcn.00414a20
test al, al
jne 0x407843
test bl, bl
je 0x407861
push 0xb
lea ecx, [ebp - 0x40]
call fcn.00402bad
push eax
lea ecx, [ebp - 0x58]
call fcn.00402bad
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4078b5
mov ecx, esi
call fcn.00413550
cmp eax, 0xffffffff
je 0x4078e7
push esi
lea ecx, [ebp - 0x28]
call fcn.00402c5e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00414370
test al, al
je 0x4078db
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004135f0
test al, al
je 0x4078db
mov edx, esi
mov ecx, edi
call fcn.004135f0
lea ecx, [ebp - 0x28]
test al, al
je 0x4078d4
call fcn.00413700
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402b04
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402b04
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00402b04
mov al, 1
jmp 0x407904
mov edx, esi
call fcn.004135f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00402b04
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402b04
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00402b04
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004226d8
mov esp, ebp
pop ebp
ret

Function at 0x407bf0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov dword [esi], 0
mov word [esi + 4], 0
call fcn.00402ba5
test al, al
jne 0x407c13
call fcn.00402bad
jmp 0x407c15
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x407c3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, esi
jne 0x407c3f
mov byte [esi + 5], 1
pop esi
ret 4
mov eax, esi
pop esi
ret 4
Function at 0x407c70
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431b30
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
test eax, eax
je 0x407cb6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
push 0x2c
mov word [ebx + 4], 0
mov dword [ebp - 0x14], 0
call fcn.004226e9
mov esi, eax
lea ecx, [ebp - 0x30]
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [esi], 0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0xc
mov dword [esi + 0xc], edi
push str.Advapi32.dll
mov dword [esi + 0x10], 0
call fcn.00402c19
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call fcn.00415240
mov ecx, eax
call fcn.00415300
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402b04
push 0
push 0
push edi
lea ecx, [ebp - 0x14]
call fcn.00414ea0
mov esi, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [ebp - 4], 1
cmp dword [esi], 0
je 0x407d4c
lea edx, [esi + 8]
jmp 0x407d4e
xor edx, edx
mov ecx, dword [ebp - 0x18]
call fcn.00402ba5
test al, al
jne 0x407d61
call fcn.00402bad
jmp 0x407d63
xor eax, eax
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx], eax
test eax, eax
je 0x407d84
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407d84
mov byte [ebx + 5], 1
cmp dword [ebx], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x407dad
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x407dc2
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.00422996
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004226d8
mov esp, ebp
pop ebp
ret 4
Function at 0x40aaa0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push ecx
push dword [ebp + 0x18]
mov ecx, eax
mov dword [ebp - 0x2c], eax
push dword [ebp + 0x14]
push esi
push edi
call fcn.00412ee0
mov bl, al
test bl, bl
jne 0x40abba
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, 0x50000000
je 0x40ab75
call eax
cmp eax, 5
jne 0x40ab70
push 0x80
mov ecx, edi
call fcn.00402bad
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call ebx
test eax, eax
jne 0x40ab59
lea ecx, [ebp - 0x28]
call fcn.00402c4b
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, edi
call fcn.00414a20
test al, al
je 0x40ab4a
push 0x80
lea ecx, [ebp - 0x28]
call fcn.00402bad
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402b04
push ecx
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x2c]
push dword [ebp + 0x14]
push esi
push edi
call fcn.00412ee0
mov bl, al
test bl, bl
jne 0x40abba
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
cmp eax, 0x21
je 0x40ab81
cmp eax, 0x20
jne 0x40abba
xor esi, esi
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x2c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.00412ee0
mov bl, al
test bl, bl
jne 0x40abba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
je 0x40abb4
cmp eax, 0x20
jne 0x40abba
inc esi
cmp esi, 0x28
jb 0x40ab83
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004226d8
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40ee90
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x441008]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.004226e9
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x40eeec
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.004226d8
add esp, 0x120
ret