joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406550
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x438
mov eax, dword [0x448728]
xor eax, esp
mov dword [esp + 0x434], eax
push ebp
mov ebp, dword [esp + 0x440]
push esi
push edi
push 0x206
lea eax, [esp + 0x23e]
push 0
push eax
mov word [esp + 0x244], 0
call fcn.00423e40
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x228
lea ecx, [esp + 0x14]
push 0
push ecx
mov edi, eax
mov dword [esp + 0x18], 0
call fcn.00423e40
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40664d
lea edx, [esp + 0xc]
push edx
push esi
mov dword [esp + 0x14], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406615
mov edi, edi
cmp dword [esp + 0x14], edi
je 0x4065f7
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4065e0
jmp 0x406615
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x30]
mov word [esp + eax + 0x238], cx
add eax, 2
test cx, cx
jne 0x406600
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x238]
push ecx
call fcn.00422288
mov ecx, eax
add esp, 4
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x406631
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea esi, [ebp + 0x154]
call fcn.00401210
mov ecx, dword [esp + 0x440]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0042178f
add esp, 0x438
ret 4

Function at 0x406670
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x448728]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x11c
lea eax, [esp + 4]
push 0
push eax
call fcn.00423e40
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jne 0x4066e2
mov eax, dword [esp + 8]
test eax, eax
je 0x4066be
cmp eax, 1
jne 0x4066e2
cmp byte [esp + 0x11a], 1
jne 0x4066e2
mov eax, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.0042178f
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor ecx, esp
xor eax, eax
call fcn.0042178f
add esp, 0x120
ret
Function at 0x406700
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x448728]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push 0
push 0x1a
lea eax, [esp + 0x10]
push eax
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 8]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406730
sub eax, edx
sar eax, 1
je 0x40680d
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406750
mov edx, dword [0x43eda8]
lea eax, [esp + 0xc]
mov dword [edi], edx
add eax, 0xfffffffe
jmp 0x406770
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x406770
mov ecx, dword [str.DongFangIME]
mov dword [eax], ecx
mov ecx, dword [0x43ed08]
mov dword [eax + 4], ecx
mov ecx, dword [0x43ed0c]
mov dword [eax + 8], ecx
mov ecx, dword [0x43ed10]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x43ed14]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x43ed18]
lea edi, [esp + 0xc]
mov dword [eax + 0x14], ecx
add edi, 0xfffffffe
jmp 0x4067c0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4067c0
mov dword [edi], edx
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop edi
jne 0x4067e7
lea eax, [esp + 8]
call fcn.00406b30
lea eax, [esp + 8]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4067f0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc]
push eax
add esi, 0x20
call fcn.00401210
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
call fcn.0042178f
add esp, 0x210
ret

Function at 0x406830
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x448728]
xor eax, esp
mov dword [esp + 0x20c], eax
push 0
push 0x1a
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 4]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406860
sub eax, edx
sar eax, 1
je 0x40690f
push esi
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406880
mov edx, dword [0x43eda8]
mov dword [edi], edx
lea edi, [esp + 0xc]
add edi, 0xfffffffe
jmp 0x4068a0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4068a0
mov ecx, 9
mov esi, str.DongFangIME.users
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0xc]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4068c0
lea ecx, [esp + 0xc]
push ecx
mov dword [edi], edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4068e6
lea eax, [esp + 0xc]
call fcn.00406b30
lea eax, [esp + 0xc]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4068f0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x10]
push edx
lea esi, [ebx + 4]
call fcn.00401210
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.0042178f
add esp, 0x210
ret
Function at 0x406930
Capabilities:
Set registry value

Disassembly:
sub esp, 0x620
mov eax, dword [0x448728]
xor eax, esp
mov dword [esp + 0x61c], eax
push 0x206
lea eax, [esp + 0xa]
push 0
push eax
mov word [esp + 0x10], 0
call fcn.00423e40
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + str.SOFTWARE_]
mov word [esp + eax + 4], cx
add eax, 2
test cx, cx
jne 0x406961
push esi
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406980
mov ecx, 7
mov esi, 0x43edac
rep movsd dword es:[edi], dword [esi]
mov esi, 8
cmp dword [ebx + 0x38], esi
jb 0x4069a7
mov ecx, dword [ebx + 0x24]
jmp 0x4069aa
lea ecx, [ebx + 0x24]
lea edx, [esp + 0x214]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4069b1
cmp dword [ebx + 0x1c], esi
jb 0x4069cc
mov ecx, dword [ebx + 8]
jmp 0x4069cf
lea ecx, [ebx + 8]
lea edx, [esp + 0x41c]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4069d6
lea ecx, [esp + 8]
push ecx
push 2
push 0
lea edx, [esp + 0x18]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406a44
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x104
lea eax, [esp + 0x218]
push eax
push 1
push 0
push str.CfgRootPath
push ecx
call esi
mov eax, dword [esp + 8]
push 0x104
lea edx, [esp + 0x420]
push edx
push 1
push 0
push str.CfgUserPath
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x624]
pop edi
pop esi
xor ecx, esp
call fcn.0042178f
add esp, 0x620
ret

Function at 0x406b30
Capabilities:
Check if file exists
Create directory

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, eax
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406b40
sub eax, edx
sar eax, 1
mov ebp, eax
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406c49
mov esi, eax
mov edx, esi
add esp, 4
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x406b75
xor edi, edi
test ebp, ebp
mov byte [esp + 0xf], 1
jl 0x406bdd
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [esi + edi*2], 0x5c
jne 0x406bbc
push esi
mov word [esi + edi*2], 0
call ebx
test eax, eax
jne 0x406bb6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x406bd7
mov word [esi + edi*2], 0x5c
add edi, 1
cmp edi, ebp
jle 0x406b96
pop ebx
push esi
call fcn.00406c4e
movzx eax, byte [esp + 0x13]
add esp, 4
pop edi
pop esi
pop ebp
pop ecx
ret
mov byte [esp + 0x13], 0
pop ebx
push esi
call fcn.00406c4e
movzx eax, byte [esp + 0x13]
add esp, 4
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x407ee9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x407f2f
call fcn.004093d2
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x407f2f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x407f72
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x407f5b
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x407f5b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x407f6f
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x410f29
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x410f6c
call fcn.004093d2
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x410f6c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x410f87
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00410ae3
test ebx, ebx
mov esi, eax
je 0x410f85
test edi, edi
je 0x410f85
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4127cc
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 0x4127fa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x412818
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00412736
jmp 0x412818
mov eax, dword [esi + 0x14]
test eax, eax
je 0x412818
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00412736
test edi, edi
mov eax, edi
jne 0x412802
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44b810]
test ecx, ecx
je 0x4128db
jmp 0x4127cb
ret 8

Function at 0x42178f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x448728]
jne 0x421799
repz ret
jmp fcn.004278cf
Function at 0x4310e1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004272b6
xor ebx, ebx
cmp dword [0x44c678], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4311b6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x431121
xor eax, eax
jmp 0x43127a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43111a
push eax
call fcn.00427253
mov dword [esp], 0x43d900
push edi
mov dword [0x44c678], eax
call esi
push eax
call fcn.00427253
mov dword [esp], 0x43d8ec
push edi
mov dword [0x44c67c], eax
call esi
push eax
call fcn.00427253
mov dword [0x44c680], eax
lea eax, [ebp - 8]
push eax
call fcn.00423ada
test eax, eax
pop ecx
pop ecx
je 0x431184
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00421ed7
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4311b6
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00427253
cmp eax, ebx
pop ecx
mov dword [0x44c688], eax
je 0x4311b6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00427253
pop ecx
mov dword [0x44c684], eax
mov eax, dword [0x44c684]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x43122f
cmp dword [0x44c688], esi
je 0x43122f
push eax
call fcn.004272bf
pop ecx
call eax
cmp eax, ebx
je 0x4311fc
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x44c688]
call fcn.004272bf
pop ecx
call eax
test eax, eax
je 0x4311fc
test byte [ebp - 0x18], 1
jne 0x43122f
lea eax, [ebp - 0xc]
push eax
call fcn.00423b11
test eax, eax
pop ecx
je 0x431217
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00421ed7
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x431226
or dword [ebp + 0x10], 0x200000
jmp 0x431260
or dword [ebp + 0x10], 0x40000
jmp 0x431260
mov eax, dword [0x44c67c]
cmp eax, esi
je 0x431260
push eax
call fcn.004272bf
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x431260
mov eax, dword [0x44c680]
cmp eax, esi
je 0x431260
push dword [ebp - 4]
push eax
call fcn.004272bf
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x44c678]
call fcn.004272bf
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x436a74
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x448728]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00436a09
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00423e40
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x436ac3
cmp dword [ebp - 0x1c], 5
jb 0x436adb
jmp 0x436ad7
cmp dword [ebp - 0x10], 1
jne 0x436adb
cmp dword [ebp - 0x1c], 4
ja 0x436ad7
jne 0x436adb
cmp dword [ebp - 0x18], 0
jbe 0x436adb
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43e960
call fcn.004368dd
test eax, eax
jge 0x436afc
mov byte [0x44c87c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042178f
add ebp, 0x78
leave
ret
Function at 0x417860
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4b1810]
xor eax, esp
mov dword [esp + 0x18], eax
cmp dword [0x4b714c], 0
push esi
je 0x417890
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004918a1
mov esp, ebp
pop ebp
ret
push 0x18
call fcn.0048dae5
add esp, 4
test eax, eax
je 0x4178ae
push 0
mov ecx, eax
call fcn.004176c0
mov dword [0x4b714c], eax
jmp 0x4178b8
mov dword [0x4b714c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [esp + 0x18], 7
xor eax, eax
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
cmp word [edx], ax
jne 0x4178e0
xor ecx, ecx
jmp 0x4178f4
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4178e5
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xc]
call fcn.0041aa00
mov ecx, dword [0x4b714c]
lea eax, [esp + 4]
push eax
call fcn.004188c0
cmp dword [esp + 0x18], 8
jb 0x417922
push dword [esp + 4]
call fcn.0048db5b
add esp, 4
mov ecx, dword [esp + 0x1c]
mov al, 1
pop esi
xor ecx, esp
call fcn.004918a1
mov esp, ebp
pop ebp
ret

Function at 0x4188c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x4b1810]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, ecx
mov dword [esp + 8], 0
mov ecx, 0x41377c
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], eax
lea edx, [ecx + 2]
mov word [esp + 0x24], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418913
sub ecx, edx
sar ecx, 1
push ecx
push 0x41377c
lea ecx, [esp + 0x2c]
call fcn.0041aa00
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 3
lea edx, [esp + 0x2c]
call fcn.0042b960
add esp, 8
cmp dword [esp + 0x38], 8
jb 0x418959
push dword [esp + 0x24]
call fcn.0048db5b
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x418997
cmp dword [esp + 0x20], 8
lea ecx, [esp + 8]
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
cmovae eax, dword [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [esp + 0xc]
call fcn.00417a40
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x20], 8
jb 0x4189aa
push dword [esp + 0xc]
call fcn.0048db5b
add esp, 4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.004918a1
mov esp, ebp
pop ebp
ret 4
Function at 0x4227a0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x260
mov eax, dword [0x4b1810]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
cmp eax, 0x104
jb 0x4227df
xor al, al
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004918a1
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4227f9
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004918a1
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp + 0xc]
test bl, bl
jne 0x42285b
lea ecx, [esp + 0x28]
call fcn.0042e710
mov edx, ecx
mov ecx, esi
call fcn.00423240
test al, al
je 0x422844
cmp byte [esp + 0x30], bl
je 0x422844
cmp dword [esi + 0x14], 8
jb 0x422824
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004918a1
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x42284e
mov eax, dword [esi]
jmp 0x422850
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4227e3
xor eax, eax
push 0x208
push eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x5a]
push eax
call fcn.004486f7
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x42287d
mov esi, dword [esi]
lea ecx, [esp + 0x50]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x422881
mov word [esp + 0x24], ax
xorps xmm0, xmm0
mov dword [esp + 8], 0
lea eax, [esp + 0x50]
movq qword [esp + 0x1c], xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 0x10], eax
mov eax, 0x414
mov dword [esp + 0xc], 3
mov word [esp + 0x18], ax
test bl, bl
jne 0x4228d6
mov eax, 0x1494
mov word [esp + 0x18], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [esp + 0x1a], 0
jne 0x4227c9
test eax, eax
je 0x422917
cmp eax, 2
je 0x422917
cmp eax, 0x402
je 0x422917
cmp eax, 0x7c
je 0x422917
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004918a1
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x264]
mov eax, 1
pop esi
pop ebx
xor ecx, esp
call fcn.004918a1
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x42293e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x42295e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x422972
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x422980
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4b1810]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x218]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x422add
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.004190c0
xor eax, eax
mov dword [ebp - 0x21c], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
lea eax, [ebp - 0x260]
mov dword [ebp - 0x220], 0
push eax
call fcn.00419e00
push 1
push 0
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], 0
push eax
lea ecx, [ebp - 0x230]
call fcn.00419f20
cmp eax, 0xffffffff
je 0x422a2b
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x230]
call fcn.0041abd0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.0041db10
cmp esi, eax
je 0x422a4d
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00419e00
cmp dword [ebp - 0x234], 8
jb 0x422a64
push dword [ebp - 0x248]
call fcn.0048db5b
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jb 0x422a98
push dword [ebp - 0x230]
call fcn.0048db5b
add esp, 4
xor eax, eax
mov dword [ebp - 0x21c], 7
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
jb 0x422acc
push dword [ebp - 0x260]
call fcn.0048db5b
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004918a1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.004918a1
mov esp, ebp
pop ebp
ret
Function at 0x422af0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4b1810]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x422b61
cmp word [ebp - 0x210], 0
je 0x422b61
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.004190c0
lea eax, [ebp - 0x228]
mov ecx, esi
push eax
call fcn.0041d1f0
cmp dword [ebp - 0x214], 8
jb 0x422c7f
push dword [ebp - 0x228]
jmp 0x422c77
xor eax, eax
mov dword [ebp - 0x22c], 7
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x230], 0
mov word [ebp - 0x240], ax
call fcn.00422980
test al, al
je 0x422bb6
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebp - 0x240]
push eax
call fcn.00419e00
jmp 0x422c68
push 3
xor eax, eax
mov dword [ebp - 0x214], 7
push 0x412d6c
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
call fcn.0041aa00
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebp - 0x228]
push eax
call fcn.00419e00
push 1
push 0
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
mov ecx, esi
call fcn.00419f20
cmp eax, 0xffffffff
je 0x422c34
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.0041abd0
cmp dword [ebp - 0x214], 8
jb 0x422c4b
push dword [ebp - 0x228]
call fcn.0048db5b
add esp, 4
xor eax, eax
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
cmp dword [ebp - 0x22c], 8
jb 0x422c7f
push dword [ebp - 0x240]
call fcn.0048db5b
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004918a1
mov esp, ebp
pop ebp
ret