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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6219c6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x6b6538]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x40ec5c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x40ec5c
call fcn.0040e270
mov edi, eax
jmp 0x40ed7b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40ec7f
call fcn.0040e270
jmp 0x40ed6e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40ec9d
call fcn.0040e270
jmp 0x40ed6e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40ecbe
mov edi, 0x8007000e
jmp 0x40ed70
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x40edb4
jb 0x40ecdc
cmp eax, 0xffffffff
ja 0x40edb4
cmp eax, 0x400
jbe 0x40ecf1
push eax
lea ecx, [ebp - 0x418]
call fcn.004112e0
jmp 0x40ed17
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40ed17
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x40ed2e
mov edi, 0x8007000e
jmp 0x40ed70
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40ed4e
call fcn.0040e270
jmp 0x40ed6e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040f980
mov edi, eax
test esi, esi
je 0x40ed7b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40ed94
lea ecx, [ebp - 0x418]
call fcn.004112d0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050ce82
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.0040b820
int3
Function at 0x418212
Capabilities:
Check if file exists

Disassembly:
add ecx, 4
cmp dword [ecx + 0x14], 8
jb 0x418205
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
ret
call fcn.0040b6e0
mov ecx, eax
jmp 0x4181fa

Function at 0x41821e
Capabilities:
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x6224ff
call fcn.0050d9f6
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.00418020
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x418250
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x62b37c
call fcn.00409210
push 0x62b380
mov ecx, esi
call fcn.00409210
push 0x6a2f48
mov ecx, esi
call fcn.00409210
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00409c20
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4182a5
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41833d
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00526600
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00417ef4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4182fc
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00409210
push 0x6a2f48
mov ecx, esi
call fcn.00409210
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00409c20
cmp dword [esi + 0x14], 8
jb 0x418345
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41835d
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x62b37c
call fcn.00409210
push 0x62b380
mov ecx, esi
call fcn.00409210
push 0x6a2f48
mov ecx, esi
call fcn.00409210
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.0041807f
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040b7a0
lea ecx, [ebp - 0x248]
call fcn.00402a10
lea ecx, [ebp - 0x230]
call fcn.00402a10
call fcn.0050d9a0
ret
Function at 0x41a6b2
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x62287b
call fcn.0050d9f6
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x41a6d3
push dword [esi + 0x1c]
call fcn.00537852
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041944a
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0052ebae
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x41a757
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0041944a
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0041944a
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.00402a10
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00402a10
sub edi, 1
jns 0x41a701
mov ecx, esi
call fcn.0041a4b5
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00402a10
call fcn.0050d9a0
ret

Function at 0x41a770
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x62287b
call fcn.0050d9f6
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x41a791
push dword [esi + 0x1c]
call fcn.00537852
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041944a
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0052ebae
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x41a815
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0041944a
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0041944a
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.00402a10
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00402a10
sub edi, 1
jns 0x41a7bf
mov ecx, esi
call fcn.0041a54c
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00402a10
call fcn.0050d9a0
ret
Function at 0x41bc71
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov esi, edi
push 2
pop ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, ebx
cmp ax, dx
jne 0x41bc84
sub esi, ecx
xor ecx, ecx
sar esi, 1
lea eax, [esi + 1]
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0050d510
mov ebx, eax
sub eax, edi
pop ecx
movzx ecx, word [edi]
mov word [eax + edi], cx
lea edi, [edi + 2]
test cx, cx
jne 0x41bcab
xor edi, edi
mov byte [ebp + 0xb], 1
test esi, esi
js 0x41bcfc
push 0x5c
pop eax
cmp word [ebx + edi*2], ax
jne 0x41bcf1
xor eax, eax
push ebx
mov word [ebx + edi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41bcea
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41bcf8
push 0x5c
pop eax
mov word [ebx + edi*2], ax
inc edi
cmp edi, esi
jle 0x41bcc7
jmp 0x41bcfc
mov byte [ebp + 0xb], 0
push ebx
call fcn.0050ce93
mov al, byte [ebp + 0xb]
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41be15
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6b6538]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.00526600
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
add esp, 0xc
or ecx, 0x8000
cmp byte [ebp + 0x10], 0
cmove ecx, dword [ebp + 0xc]
push eax
push edi
push edi
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, esi
test eax, eax
je 0x41be75
push edi
jmp 0x41be7c
lea eax, [ebp - 0x20c]
push eax
call fcn.00402af0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0050ce82
leave
ret

Function at 0x41c8a2
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret 4
Function at 0x41cb23
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x6b6538]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41cb52
push 2
pop eax
jmp 0x41cbd7
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.0041c9db
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.00526600
add esp, 0x14
mov dword [ebp - 0x58], edi
test ebx, ebx
mov dword [ebp - 0x48], esi
mov ecx, str.open
mov dword [ebp - 0x54], 0x40
mov eax, 0x62b7f8
cmove eax, ecx
cmp dword [ebp - 8], 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
and dword [ebp - 0x40], 0
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x20], 0
mov esi, eax
je 0x41cbcd
cmp dword [ebp + 0x10], 0
je 0x41cbcd
push dword [ebp + 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1c]
call fcn.00402a10
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ce82
leave
ret

Function at 0x41df80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push edi
je 0x41e030
cmp dword [ebp + 0xc], 0
je 0x41e030
push 0
push 0x80
push 3
push 0
push 5
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41dfc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41e033
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x41dfbd
jb 0x41dfe1
push 8
pop eax
jmp 0x41e033
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41dfed
mov dword [eax], edi
inc esi
push esi
call fcn.0050d510
mov ecx, dword [ebp + 0xc]
push esi
xor esi, esi
push esi
push eax
mov dword [ecx], eax
call fcn.00526600
add esp, 0x10
mov dword [ebp + 8], esi
lea eax, [ebp + 8]
push esi
push eax
mov eax, dword [ebp + 0xc]
push edi
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x41dfbd
cmp dword [ebp + 8], edi
jne 0x41e030
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41e033
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x41e037
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [eax + 0x10], ebx
je 0x41e148
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x41e147
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x41e066
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x41e147
push 0x6c291c
push eax
call fcn.0050d737
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x41e147
cmp dword [esi + 0x14], 0x10
jb 0x41e09b
mov esi, dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, dword [ebp - 4]
test eax, eax
je 0x41e135
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41e135
mov eax, dword [ebp - 0x10]
push 0x6c291c
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.0050d737
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41e135
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x41e0fe
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.0041ac38
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41e133
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.00409430
mov bl, 1
push esi
call fcn.0050ce93
pop ecx
test edi, edi
je 0x41e147
push edi
call fcn.0050ce93
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret

Function at 0x41e14e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x41e1b1
xor edi, edi
cmp word [eax], di
je 0x41e1b1
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41e187
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41e1a6
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41e1b4
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x41ec5d
Capabilities:
Check mutex on windows

Disassembly:
push 0x1c
mov eax, 0x6230c7
call fcn.0050d9c2
mov esi, ecx
lea ecx, [ebp - 0x28]
call fcn.00423963
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0042397c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0xc
call fcn.00423978
push dword [ebp + 8]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
lea ecx, [ebp - 0x28]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 4], eax
call fcn.00423973
call fcn.0050d98b
ret 4
Function at 0x41f4c5
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30fc
call fcn.0050de20
mov eax, dword [0x6b6538]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
call fcn.00526600
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00526600
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str.._c:
push eax
call fcn.0041c9c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f554
mov al, 1
jmp 0x41f65d
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.00526600
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.00526600
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.00526600
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x41f5d6
mov bl, 2
jmp 0x41f654
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.0041f66c
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.0041f66c
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41f617
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
push edi
call fcn.00424481
lea ecx, [ebp - 0x9dc]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41f63a
sub ecx, edx
lea eax, [ebp - 0x9dc]
push ecx
push eax
push edi
call fcn.00424481
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ce82
leave
ret
Function at 0x4204dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x6b6538]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], edi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x21c], esi
call fcn.00526600
add esp, 0xc
mov ebx, 0x20019
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4205a7
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x42059b
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 2
jne 0x4205cc
cmp edi, reloc.OLEAUT32.dll_SysReAllocString
jne 0x4205cc
cmp ebx, 0x20019
jne 0x4205cc
mov esi, dword [ebp - 0x21c]
mov ebx, 0x20119
jmp 0x420531
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x20c]
push eax
call fcn.00402af0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x220]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0050ce82
leave
ret

Function at 0x420945
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1218
call fcn.0050de20
mov eax, dword [0x6b6538]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, 0x1000
mov dword [ebp - 0x1218], eax
push esi
lea eax, [ebp - 0x1210]
push 0
push eax
call fcn.00526600
and dword [ebp - 0x1214], 0
add esp, 0xc
xor eax, eax
xor ebx, ebx
mov word [ebp - 8], ax
lea eax, [ebp - 0x1214]
push eax
push esi
lea eax, [ebp - 0x1210]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x420a1b
push edi
mov edi, dword [ebp - 0x1214]
xor esi, esi
shr edi, 2
test edi, edi
je 0x420a1a
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00526600
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [ebp + esi*4 - 0x1210]
call fcn.00420a2b
add esp, 0x18
test eax, eax
je 0x420a0c
lea eax, [ebp - 0x210]
push eax
call fcn.00538d12
push dword [ebp - 0x1218]
lea eax, [ebp - 0x210]
push eax
call fcn.005248dc
add esp, 0xc
test eax, eax
jne 0x420a13
inc esi
cmp esi, edi
jb 0x4209b5
jmp 0x420a1a
mov ebx, dword [ebp + esi*4 - 0x1210]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.0050ce82
leave
ret
Function at 0x420a2b
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test esi, esi
je 0x420a58
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebp
ret
Function at 0x422af3
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x280
mov eax, 0x623611
call fcn.0050d9f6
mov ebx, ecx
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x28c], edi
mov dword [ebp - 0x288], ecx
mov dword [ebp - 0x284], eax
xor eax, eax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 7
mov word [edi], ax
inc eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], cl
push 0x208
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push ecx
push eax
call fcn.00526600
add esp, 0xc
lea ecx, [ebp - 0x280]
call fcn.0041fb7b
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004229e5
mov eax, dword [esi + 0x10]
test eax, eax
je 0x422d2b
mov ecx, dword [ebp - 0x284]
cmp dword [ecx + 0x10], 0
jbe 0x422d2b
cmp dword [esi + 0x14], 0x10
jb 0x422b9e
mov esi, dword [esi]
push eax
push esi
call fcn.004245ae
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0041ae9d
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x422bbd
mov eax, dword [eax]
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x422bc7
mov ecx, dword [ebx]
push eax
push ecx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x248]
mov esi, eax
call fcn.00402a10
test esi, esi
je 0x422d2b
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x422c09
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 9
push str.timestamp
lea ecx, [ebp - 0x230]
call fcn.00409460
xor esi, esi
push esi
call fcn.0052d754
pop ecx
push edx
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x280]
call fcn.0041fdfa
push 7
push str.content
lea ecx, [ebp - 0x230]
call fcn.00409460
push dword [ebp - 0x284]
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x280]
call fcn.0041fd38
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x280]
call fcn.0042016e
push eax
lea ecx, [ebp - 0x230]
call fcn.00406570
lea ecx, [ebp - 0x248]
call fcn.00406520
cmp dword [ebx + 0x28], esi
jbe 0x422cdd
cmp dword [ebx + 0x40], esi
jbe 0x422cdd
push 0x10
lea eax, [ebx + 0x30]
pop ecx
cmp dword [eax + 0x14], ecx
jb 0x422ca2
mov eax, dword [eax]
add ebx, 0x18
cmp dword [ebx + 0x14], ecx
jb 0x422cac
mov ebx, dword [ebx]
push ecx
push ecx
push eax
push ebx
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004225d5
add esp, 0x18
lea ecx, [ebp - 0x230]
push eax
call fcn.00406570
lea ecx, [ebp - 0x248]
call fcn.00406520
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041e14e
add esp, 0xc
test eax, eax
jne 0x422d2b
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [edi + 0x10], esi
jb 0x422d18
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, edi
call fcn.00409210
lea ecx, [ebp - 0x280]
call fcn.0041fc31
lea ecx, [ebp - 0x230]
call fcn.00406520
mov eax, edi
call fcn.0050d9a0
ret 0xc