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

Disassembly:
push 0x10
mov eax, 0x4b2c96
call fcn.0048ccab
xor edi, edi
mov dword [ebp - 4], edi
cmp byte [ebp + 0x10], 0
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x14], edi
je 0x40d798
cmp byte [0x4ef9d0], 0
je 0x40d791
cmp byte [ebp + 0x14], 0
je 0x40d791
mov ebx, 0x20119
jmp 0x40d7b1
mov ebx, 0x20019
jmp 0x40d7b1
cmp byte [0x4ef9d0], 0
je 0x40d7ac
cmp byte [ebp + 0x14], 0
mov ebx, 0x20106
jne 0x40d7b1
mov ebx, 0x20006
lea ecx, [ebp - 0x18]
call fcn.0040389d
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.0040389d
mov byte [ebp - 4], 2
push 0x5c
lea ecx, [ebp + 0xc]
call fcn.00403d31
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d7e8
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x10]
call fcn.0040521a
jmp 0x40d83d
push esi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
call fcn.00403e0a
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x18]
call fcn.0040521a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.0040392e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax - 0xc]
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
call fcn.0041027d
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp + 0x10]
call fcn.0040521a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.0040392e
cmp dword [ebp + 8], 0x80000001
jne 0x40d866
push edi
push 0x4c5c2c
lea ecx, [ebp + 0x10]
call fcn.00403cf8
cmp eax, 0xffffffff
jne 0x40d866
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
jmp 0x40d878
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x40d8e3
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
xor bl, bl
jmp 0x40d8b7
cmp eax, 2
je 0x40d8c5
cmp eax, 5
jne 0x40d8da
test bl, bl
jne 0x40d8da
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
call fcn.00403c69
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040da8e
pop ecx
pop ecx
inc bl
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call esi
cmp eax, edi
jne 0x40d886
jmp 0x40d8d6
push dword [ebp + 0x10]
push edi
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
jne 0x40d8da
mov byte [ebp - 0xd], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.0040392e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0040392e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040392e
mov al, byte [ebp - 0xd]
call fcn.0048cd83
ret
Function at 0x40d910
Capabilities:
Delete registry value

Disassembly:
push 8
mov eax, 0x4aefe4
call fcn.0048ccab
mov dword [ebp - 4], 1
xor ebx, ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 2
cmp byte [ebp + 0x14], bl
je 0x40d94f
cmp byte [0x4ef9d0], bl
je 0x40d948
cmp byte [ebp + 0x18], bl
je 0x40d948
mov edi, 0x20119
jmp 0x40d966
mov edi, 0x20019
jmp 0x40d966
cmp byte [0x4ef9d0], bl
je 0x40d961
mov edi, 0x20106
cmp byte [ebp + 0x18], bl
jne 0x40d966
mov edi, 0x20006
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], ebx
je 0x40d979
push dword [ebp - 0x14]
call esi
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
push edi
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40d9a4
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp eax, ebx
jne 0x40d9a4
mov byte [ebp - 0xd], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], ebx
je 0x40d9b2
push dword [ebp - 0x14]
call esi
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.0040392e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0040392e
mov al, byte [ebp - 0xd]
call fcn.0048cd83
ret

Function at 0x40da8e
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x4dc104]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0xc
mov eax, 0x4b2c03
call fcn.0048ccab
mov esi, dword [ebp + 0x80c]
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [ebp + 0x810]
mov dword [ebp - 0x10], ebx
push esi
call fcn.0040db88
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push 0x20019
push ebx
lea ecx, [ebp + 0x810]
call fcn.00410416
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40db56
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor esi, esi
cmp dword [ebp - 0x14], ebx
jbe 0x40db4d
push 0x400
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x40db47
push ecx
lea eax, [ebp]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00403c8f
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040da8e
pop ecx
pop ecx
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x40db10
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x810]
call fcn.0040392e
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.00488689
add ebp, 0x804
leave
ret
Function at 0x40df6d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x4dc104]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov esi, ecx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x23c], eax
cmp eax, 0xffffffff
jne 0x40dfaa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00488689
leave
ret
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
mov dword [ebp - 0x238], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40dfdc
xor esi, esi
push dword [ebp - 0x23c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x40df9b
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x40dfeb
and dword [ebp - 0x240], ecx
jmp 0x40dffe
mov eax, dword [esi + 0x14]
sub eax, ecx
cdq
mov edi, 0x22c
idiv edi
mov dword [ebp - 0x240], eax
mov edi, dword [esi + 0x10]
mov eax, edi
sub eax, ecx
cdq
mov ebx, 0x22c
idiv ebx
cmp eax, dword [ebp - 0x240]
jae 0x40e029
lea eax, [ebp - 0x238]
push eax
push 1
push edi
call fcn.00411725
mov dword [esi + 0x10], eax
jmp 0x40e04b
cmp ecx, edi
jbe 0x40e032
call fcn.004891d9
mov eax, dword [esi]
push edi
push eax
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x248]
push eax
mov eax, esi
call fcn.00411672
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40dfdc
xor esi, esi
inc esi
jmp 0x40dfcc
Function at 0x40e409
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push 0x18
mov eax, 0x4b43d0
call fcn.0048cd14
mov esi, ecx
lea ecx, [ebp - 0x24]
call fcn.0041dcb6
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 8], ebx
je 0x40e541
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0040dee4
pop ecx
pop ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 0xc], 1
mov byte [ebp - 0x19], bl
jge 0x40e453
push 0x80070057
call fcn.0040103e
movzx eax, word [ecx + 2]
cmp ax, 0x3a
jne 0x40e46c
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e46c
mov byte [ebp - 0x19], 1
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [ebp - 0x11], bl
call esi
cmp eax, 0xffffffff
je 0x40e483
test al, 0x10
jne 0x40e4a6
push ebx
push str.hkey_
lea ecx, [ebp - 0x18]
call fcn.00403cf8
test eax, eax
je 0x40e4a6
push dword [ebp - 0x18]
call fcn.0040e13d
pop ecx
test al, al
je 0x40e4a6
mov byte [ebp - 0x11], 1
cmp byte [ebp + 0xc], bl
je 0x40e4b5
push dword [edi]
push dword [ebp - 0x18]
call fcn.00403680
push dword [ebp - 0x18]
call esi
cmp eax, 0xffffffff
je 0x40e4e1
test al, 0x10
je 0x40e4e1
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x11]
push dword [ebp + 8]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.0040e555
add esp, 0x1c
jmp 0x40e4f8
push 0x80
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 0x19], bl
je 0x40e531
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e531
push 4
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.0040392e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041dce5
xor al, al
jmp 0x40e54f
cmp byte [ebp - 0x11], bl
jne 0x40e516
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.0040392e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0041dce5
mov al, 1
call fcn.0048cd97
ret
Function at 0x40e555
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push 0x268
mov eax, 0x4b4398
call fcn.0048cd14
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x20]
push 0x4c6198
lea eax, [ebp - 0x270]
push ebx
push eax
call fcn.00403e5b
add esp, 0xc
and dword [ebp - 4], 0
mov eax, dword [eax]
lea ecx, [ebp - 0x264]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x26c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x270]
call fcn.0040392e
cmp dword [ebp - 0x26c], 0xffffffff
je 0x40e741
mov ecx, 0x4c65e0
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e5e9
test dx, dx
je 0x40e5e5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e5e9
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e5c3
xor eax, eax
jmp 0x40e5ee
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40e71a
mov ecx, 0x4c65e4
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e627
test dx, dx
je 0x40e623
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e627
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e601
xor eax, eax
jmp 0x40e62c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40e71a
push 0x4c5c2c
lea eax, [ebp - 0x274]
push ebx
push eax
call fcn.00403e5b
add esp, 0xc
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x238]
push ecx
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00403e5b
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x274]
call fcn.0040392e
test byte [ebp - 0x264], 0x10
je 0x40e6a8
push edi
push dword [ebp + 0x1c]
lea eax, [ebp - 0x268]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push eax
call fcn.0040e555
add esp, 0x1c
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp byte [ebp + 0x14], 0
je 0x40e6bb
push dword [edi]
push dword [ebp - 0x268]
call fcn.00403680
push 0x80
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x268]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e70b
push dword [ebp - 0x268]
call fcn.0040e13d
pop ecx
test al, al
je 0x40e70b
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40e70b
mov byte [esi], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call fcn.0040392e
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e5b8
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0xc], 0
je 0x40e74f
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call fcn.0048cd97
ret
Function at 0x40f0af
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b29ec
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4dc104]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
mov eax, dword [0x4dc104]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea edx, [esp + 0x10]
push edx
push 9
xor ebx, ebx
push ebx
push ecx
push eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40f1d3
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push ebx
push dword [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40f1c9
cmp dword [esp + 0xc], ebx
je 0x40f1c9
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40f1c9
push ebx
inc eax
push eax
lea ecx, [esp + 0x24]
call fcn.00412f37
mov dword [esp + 0x48], ebx
xor esi, esi
cmp dword [esp + 0xc], ebx
jbe 0x40f1b8
push dword [esp + 0x30]
lea ecx, [esp + 0x20]
push ebx
call fcn.00410794
push eax
push esi
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, ebx
jne 0x40f1b1
push ebx
lea ecx, [esp + 0x20]
call fcn.00410794
push eax
lea ecx, [esp + 0x1c]
call fcn.00403c8f
mov byte [esp + 0x48], 1
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.00410eaa
mov byte [esp + 0x48], bl
lea ecx, [esp + 0x18]
call fcn.0040392e
inc esi
cmp esi, dword [esp + 0xc]
jb 0x40f161
or dword [esp + 0x48], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0x24]
call fcn.00405617
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00488689
mov esp, ebp
pop ebp
ret
Function at 0x40f4d8
Capabilities:
Query environment variable

Disassembly:
push 0x48
mov eax, 0x4b13f7
call fcn.0048cd14
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov esi, ecx
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
call fcn.004040cf
mov dword [ebp - 4], 1
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push ebx
push esi
call edi
mov ecx, dword [ebp - 0x4c]
mov esi, eax
inc esi
inc esi
call fcn.0040389d
push ebx
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x54], 1
call fcn.00412f37
mov byte [ebp - 4], 2
push esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00410794
push eax
push dword [ebp - 0x50]
call edi
test eax, eax
je 0x40f55c
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40f553
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.0040656e
mov byte [ebp - 4], 1
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405617
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00405617
mov eax, dword [ebp - 0x4c]
call fcn.0048cd97
ret

Function at 0x40fc75
Capabilities:
Create thread

Disassembly:
push 4
mov eax, 0x4b137f
call fcn.0048ccab
xor ebx, ebx
mov dword [ebp - 4], ebx
push 8
call fcn.004896b9
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
cmp esi, ebx
je 0x40fcaf
mov ecx, esi
call fcn.0040389d
mov byte [ebp - 4], 1
lea ecx, [esi + 4]
call fcn.0040389d
mov byte [ebp - 4], bl
jmp 0x40fcb1
xor esi, esi
lea eax, [ebp + 8]
lea ecx, [esi + 4]
push eax
call fcn.0040521a
push ebx
push ebx
push esi
push 0x40fb34
push ebx
push ebx
call fcn.00488fcc
add esp, 0x18
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040392e
call fcn.0048cd83
ret

Function at 0x4138cf
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x4b4ded
call fcn.0048ccab
mov esi, 0x4ef9dc
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.0040389d
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0040d14a
mov byte [ebp - 4], 1
push 0x4c6cf4
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403e5b
add esp, 0x14
mov byte [ebp - 4], 2
push eax
mov ecx, esi
call fcn.0040521a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0040392e
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.0040392e
push dword [0x4ef9dc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
push ebx
push 4
push ebx
push 3
push 0x40000000
push dword [0x4ef9dc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x413962
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0048cd83
ret
Function at 0x414456
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x54
mov eax, 0x4b41a3
call fcn.0048cd4a
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x4c6dd4
push 0x5370
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x41463b
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x414629
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x414629
push edi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00424870
add esp, 0xc
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
call fcn.004041f0
test al, al
jne 0x41461b
mov eax, dword [ebp - 0x40]
mov esi, dword [eax + 4]
mov edi, dword [eax]
mov dword [ebp - 0x18], 0xf
push ebx
lea ecx, [ebp - 0x30]
call fcn.00405460
push esi
push edi
lea ecx, [ebp - 0x30]
call fcn.004066a9
mov byte [ebp - 4], 3
lea eax, [ebp - 0x60]
push eax
call fcn.00404861
mov byte [ebp - 4], 4
push 0x4c6ddc
lea ecx, [ebp - 0x34]
call fcn.004038e9
mov byte [ebp - 4], 5
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x414524
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004038e9
mov byte [ebp - 4], 6
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004143c4
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.0040392e
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.0040392e
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x54]
sar eax, 2
mov edi, dword [ebp - 0x38]
cmp edi, eax
jae 0x4145ff
push 0x4c6de0
lea esi, [ebp - 0x60]
call fcn.004049a9
xor ecx, ecx
mov esi, eax
call fcn.004097a4
mov ebx, eax
test ebx, ebx
jle 0x4145f5
lea eax, [ebx + 1]
lea ecx, [ebp - 0x48]
push ecx
lea esi, [ebp - 0x60]
mov dword [ebp - 0x34], eax
call fcn.004049a9
mov ecx, dword [ebp - 0x34]
mov edx, eax
call fcn.00403b89
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x3c]
push eax
call fcn.004049a9
push eax
mov ecx, ebx
call fcn.004158af
mov byte [ebp - 4], 8
push eax
push 0x4ef7f0
call fcn.00415b3c
mov edi, eax
mov eax, dword [ebp - 0x34]
call fcn.00403951
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.0040392e
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
call fcn.0040392e
inc dword [ebp - 0x38]
xor ebx, ebx
jmp 0x414560
mov byte [ebp - 4], 3
lea eax, [ebp - 0x60]
push eax
call fcn.00404899
mov byte [ebp - 4], 2
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00405515
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x40]
call fcn.004041d3
xor ebx, ebx
mov byte [ebp - 4], 0
cmp dword [ebp - 0x44], ebx
je 0x41463b
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_FreeResource]
or dword [ebp - 4], 0xffffffff
call fcn.0048cda6
ret
Function at 0x41474f
Capabilities:
Create thread

Disassembly:
push 0x34
mov eax, 0x4b59c7
call fcn.0048ccab
mov esi, 0x4ef8c0
call fcn.004154c5
call fcn.0041da9d
xor edi, edi
push edi
push edi
push esi
push 0x415780
push edi
push edi
call fcn.00488fcc
add esp, 0x18
call fcn.0041464f
call fcn.00414456
lea eax, [ebp - 0x10]
push eax
call fcn.0040efdd
pop ecx
mov dword [ebp - 4], edi
push dword [eax]
lea eax, [ebp - 0x40]
push eax
call fcn.0040151e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
call fcn.0040392e
lea eax, [ebp - 0x40]
push eax
call fcn.004092c2
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x40]
push eax
call fcn.004015ac
call fcn.004853f0
mov esi, eax
cmp esi, edi
je 0x4147fb
mov ecx, esi
call fcn.00483440
test al, al
jne 0x4147fb
push edi
mov ecx, esi
call fcn.00483800
test al, al
je 0x4147fb
push 0x413e46
mov ecx, esi
call fcn.00485e20
test al, al
je 0x4147fb
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
call fcn.0048cd83
ret
Function at 0x4154c5
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push esi
push 0x4154e0
push eax
push eax
call fcn.00488fcc
add esp, 0x18
mov dword [esi + 0x10c], eax
ret

Function at 0x418453
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
test esi, esi
jbe 0x418468
sub ecx, eax
mov dl, byte [ecx + eax]
xor dl, 0x67
mov byte [eax], dl
inc eax
dec esi
jne 0x41845c
pop esi
ret

Function at 0x418559
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, eax
lea edi, [ebx + 4]
mov ecx, 0x108
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x14]
push eax
mov edi, 0x208
lea esi, [ebp - 4]
mov eax, edi
call fcn.0041836f
test eax, eax
jge 0x41858b
push 0x57
pop eax
jmp 0x4185c4
add ebx, 0x21c
push ebx
lea esi, [ebp - 4]
mov eax, edi
call fcn.0041836f
test eax, eax
jl 0x418586
mov eax, dword [ebp + 8]
test byte [eax + 4], 1
je 0x4185c2
call fcn.00419ba0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4185c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4185c4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x418c05
Capabilities:
Delete file

Disassembly:
add ecx, 0x21c
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
ret

Function at 0x419027
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, eax
lea edi, [ebx + 4]
mov ecx, 0x108
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x10]
push eax
mov edi, 0x208
lea esi, [ebp - 4]
mov eax, edi
call fcn.0041836f
test eax, eax
jge 0x419059
push 0x57
pop eax
jmp 0x419092
add ebx, 0x218
push ebx
lea esi, [ebp - 4]
mov eax, edi
call fcn.0041836f
test eax, eax
jl 0x419054
mov eax, dword [ebp + 8]
test byte [eax + 4], 1
je 0x419090
call fcn.00419ba0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x419090
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x419092
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4190d9
Capabilities:
Delete file
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
push edi
mov edi, eax
and eax, 0x100
xor ebx, ebx
and edi, 0xfffffcff
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0xf023f
test byte [esi + 8], 1
mov dword [ebp - 8], eax
jne 0x41915e
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
lea eax, [esi + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x419142
push 2
push eax
lea eax, [esi + 0x218]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x419142
or dword [esi + 8], 1
jmp 0x41914f
lea eax, [esi + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 4], 0
je 0x41915e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [esi + 8], 2
jne 0x4191a8
test ebx, ebx
jne 0x4191a8
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
lea eax, [esi + 0x10]
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4191a3
push ebx
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x419193
or dword [esi + 8], 2
jmp 0x419198
mov ebx, 0x15e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4191a8
mov ebx, 0x15e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x41926b
Capabilities:
Delete file

Disassembly:
add ecx, 0x218
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
ret