joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b46
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x11d8]
mov eax, 0x1258
call fcn.00406ce0
mov eax, dword [0x4181b0]
xor eax, ebp
mov dword [ebp + 0x11d4], eax
mov eax, dword [ebp + 0x11e4]
push ebx
push esi
mov esi, dword [ebp + 0x11e8]
push edi
mov edi, dword [ebp + 0x11e0]
mov dword [ebp - 0x80], eax
mov ebx, 0x800
cmp edi, 0xffffffff
jne 0x401bf0
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401c1d
push ebx
lea eax, [ebp + 0x1d4]
push eax
push dword [ebp - 0x80]
call fcn.00403f0a
test al, al
je 0x401bc9
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1d4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401c1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x401be3
cmp eax, 3
je 0x401be3
cmp eax, 0x12
je 0x401be3
xor eax, eax
inc eax
jmp 0x401be5
xor eax, eax
mov byte [esi + 0x1044], al
jmp 0x401cc1
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401c14
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [esi + 0x1044], al
cmp edi, 0xffffffff
je 0x401cc1
push ebx
push dword [ebp - 0x80]
push esi
call fcn.004054a0
push ebx
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.00403d7f
push 1
push 0
push 0
push dword [ebp - 0x60]
call fcn.00406d90
mov ecx, dword [ebp - 0x5c]
xor ebx, ebx
add eax, ecx
mov dword [esi + 0x1000], eax
mov eax, dword [ebp - 0x7c]
mov dword [esi + 0x1008], eax
mov eax, dword [ebp - 0x78]
mov dword [esi + 0x1028], eax
mov eax, dword [ebp - 0x74]
mov dword [esi + 0x102c], eax
mov eax, dword [ebp - 0x70]
mov dword [esi + 0x1030], eax
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0x1034], eax
mov eax, dword [ebp - 0x68]
mov dword [esi + 0x1038], eax
mov eax, dword [ebp - 0x64]
mov dword [esi + 0x103c], eax
lea eax, [ebp - 0x68]
adc edx, ebx
push eax
lea ecx, [esi + 0x1010]
mov dword [esi + 0x1004], edx
call fcn.00405580
lea eax, [ebp - 0x78]
push eax
lea ecx, [esi + 0x1018]
call fcn.00405580
lea eax, [ebp - 0x70]
push eax
lea ecx, [esi + 0x1020]
call fcn.00405580
and dword [esi + 0x1040], 0
mov ecx, dword [ebp + 0x11d4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ccd
add ebp, 0x11d8
leave
ret 0xc
Function at 0x4022fd
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0xfa8]
mov eax, 0x1028
call fcn.00406ce0
mov eax, dword [0x4181b0]
xor eax, ebp
mov dword [ebp + 0xfa4], eax
push esi
mov esi, dword [ebp + 0xfb0]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402333
xor al, al
jmp 0x402384
push 0x800
push esi
lea eax, [ebp - 0x60]
push eax
call fcn.004054a0
lea eax, [ebp - 0x60]
push eax
call fcn.0040747a
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x5e], cx
push ecx
lea eax, [ebp - 0x80]
push eax
call fcn.00407400
add esp, 0x10
push 0x14
pop eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x7c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0xfa4]
xor ecx, ebp
pop esi
call fcn.00406ccd
add ebp, 0xfa8
leave
ret 4
Function at 0x403e64
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 8]
push eax
push 1
push 0
push str.SoftwareWinRARPaths
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x403eb6
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push 0
push 0x414318
push dword [ebp + 8]
mov dword [ebp + 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [esi], 0
je 0x403ec6
push esi
call fcn.00401a58
test al, al
jne 0x403ecf
push dword [ebp + 0x10]
push edi
call fcn.00403dcf
pop edi
pop esi
leave
ret 0xc

Function at 0x403f0a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00406ce0
mov eax, dword [0x4181b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
push edi
mov edi, dword [ebp + 0xc]
jne 0x403f36
xor al, al
jmp 0x4040c4
push ebx
push esi
call fcn.00403d16
push esi
call fcn.0040747a
pop ecx
mov ebx, eax
push esi
mov dword [ebp - 0x1008], ebx
call fcn.00403ed5
test al, al
je 0x403fdf
push esi
call fcn.00403d16
test al, al
je 0x403f8f
add ebx, 4
cmp dword [ebp + 0x10], ebx
jbe 0x4040c1
push 4
push str.__
push edi
call fcn.00407155
push esi
add edi, 8
push edi
call fcn.00406d39
add esp, 0x14
jmp 0x4040bd
cmp word [esi], 0x5c
jne 0x4040c1
add esi, 2
cmp word [esi], 0x5c
jne 0x4040c1
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x4040c1
push 4
push str.__
push edi
call fcn.00407155
lea eax, [edi + 8]
push 0x414354
push eax
call fcn.00406d39
push esi
add edi, 0xe
push edi
call fcn.00406d39
add esp, 0x1c
jmp 0x4040bd
lea eax, [ebp - 0x1004]
push eax
mov ebx, 0x7ff
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4040c1
cmp eax, ebx
ja 0x4040c1
movzx eax, word [esi]
push eax
call fcn.00403c5c
test al, al
je 0x40404f
mov eax, dword [ebp - 0x1008]
add eax, 6
cmp dword [ebp + 0x10], eax
jbe 0x4040c1
push 4
push str.__
push edi
call fcn.00407155
push 2
lea eax, [ebp - 0x1004]
push eax
lea eax, [edi + 8]
push eax
call fcn.00407155
push esi
add edi, 0xc
push edi
call fcn.00406d39
add esp, 0x20
jmp 0x4040bd
push 0x800
lea eax, [ebp - 0x1004]
push eax
call fcn.00403c74
lea eax, [ebp - 0x1004]
push eax
call fcn.0040747a
pop ecx
mov ecx, dword [ebp - 0x1008]
lea eax, [eax + ecx + 4]
cmp dword [ebp + 0x10], eax
jbe 0x4040c1
push 4
push str.__
push edi
call fcn.00407155
lea eax, [ebp - 0x1004]
push eax
lea eax, [edi + 8]
push eax
call fcn.00406d39
add esp, 0x14
cmp word [esi], 0x2e
jne 0x4040b3
movzx eax, word [esi + 2]
push eax
call fcn.00403c5c
test al, al
je 0x4040b3
add esi, 4
push dword [ebp + 0x10]
push esi
push edi
call fcn.004054cd
mov al, 1
jmp 0x4040c3
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00406ccd
leave
ret 0xc
Function at 0x4040fd
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x530]
sub esp, 0x5b0
mov eax, dword [0x4181b0]
xor eax, ebp
mov dword [ebp + 0x52c], eax
mov eax, dword [ebp + 0x53c]
mov ecx, dword [ebp + 0x538]
push edi
xor edi, edi
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], eax
cmp word [eax], di
je 0x4041e2
lea edx, [ebp - 0x68]
push edx
push 0x20019
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4041e2
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x39c]
push eax
mov dword [ebp - 0x70], edi
push edi
jmp 0x4041b3
lea eax, [ebp + 0x39c]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x64]
push str._s_s
push 0x200
push eax
call fcn.00402453
add esp, 0x14
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x78]
call fcn.004040fd
inc dword [ebp - 0x70]
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x39c]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x68]
mov dword [ebp - 0x6c], 0xc8
call esi
test eax, eax
je 0x40416f
push dword [ebp - 0x68]
call fcn.004040d4
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop esi
test eax, eax
jne 0x4041e2
inc dword [0x41b1ec]
mov ecx, dword [ebp + 0x52c]
xor ecx, ebp
pop edi
call fcn.00406ccd
add ebp, 0x530
leave
ret 8

Function at 0x404297
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4181b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x200
lea ecx, [ebp - 0x404]
push ecx
push esi
call fcn.004041fa
test al, al
je 0x404303
lea eax, [ebp - 0x408]
push eax
push 0x20006
push 0
lea eax, [ebp - 0x404]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404303
push edi
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x408]
call fcn.004040d4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00406ccd
leave
ret 0xc
Function at 0x4051c3
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.00406ce0
mov eax, dword [0x4181b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp ebx, edi
je 0x4051f0
push dword [ebp + 0x10]
push edi
push ebx
call fcn.004054a0
lea eax, [ebp - 0x2008]
push eax
push 1
push 0
push str.SoftwareWinRARGeneral
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4052c5
push edi
call fcn.0040747a
pop ecx
mov ecx, 0x7ff
sub ecx, eax
lea eax, [ebp - 0x200c]
push eax
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x2010]
push eax
push 0
push str.LanguageFolder
push dword [ebp - 0x2008]
add ecx, ecx
mov dword [ebp - 0x200c], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4052b9
push esi
mov word [ebp - 0x1004], ax
mov esi, 0x800
push esi
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
lea eax, [ebp - 0x1004]
push eax
call fcn.00403c74
push esi
push edi
call fcn.00403d42
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.004054cd
lea eax, [ebp - 0x1004]
push eax
call fcn.00401a58
pop esi
test al, al
je 0x4052b9
push dword [ebp + 0x10]
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.004054a0
push dword [ebp - 0x2008]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00406ccd
leave
ret 0xc

Function at 0x405356
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x1098]
mov eax, 0x1118
call fcn.00406ce0
mov eax, dword [0x4181b0]
xor eax, ebp
mov dword [ebp + 0x1094], eax
push ebx
mov ebx, dword [ebp + 0x10a4]
push esi
push edi
mov esi, ecx
call fcn.004051a0
mov edi, 0x800
lea eax, [ebp + 0x94]
test ebx, ebx
je 0x40539f
push ebx
push eax
call fcn.00406d39
pop ecx
pop ecx
jmp 0x4053a9
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push str.rarlng.dll
lea eax, [ebp + 0x94]
push eax
call fcn.00403d7f
push edi
lea eax, [ebp + 0x94]
push eax
push eax
call fcn.004051c3
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x70], 2
jne 0x405401
cmp dword [ebp - 0x7c], 5
ja 0x4053ee
jne 0x405401
cmp dword [ebp - 0x78], 1
jbe 0x405401
push 2
push 0
lea eax, [ebp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40540e
lea eax, [ebp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [0x41b1a8], eax
setne al
pop edi
mov byte [esi], al
pop esi
test al, al
mov eax, dword [ebp + 0x10a0]
pop ebx
jne 0x40542c
mov dword [0x41b1a8], eax
mov ecx, dword [ebp + 0x1094]
xor ecx, ebp
mov dword [0x41b1a4], eax
call fcn.00406ccd
add ebp, 0x1098
leave
ret 8
Function at 0x4059b4
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
push dword [esp + 0x10]
call fcn.0040747a
mov esi, eax
inc esi
lea eax, [esi + esi + 2]
push eax
call fcn.00408164
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4059fc
push esi
push edi
push dword [esp + 0x18]
call fcn.0040559d
push dword [esp + 0xc]
push edi
call fcn.00407c20
pop ecx
push eax
push 1
push edi
call fcn.004076e9
push edi
call fcn.00406dc4
add esp, 0x14
pop edi
pop esi
ret 8
Function at 0x406a3f
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x414b34
push 1
xor ebx, ebx
push ebx
push 0x414b54
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x406b10
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x414b44
push eax
call dword [ecx]
test eax, eax
jl 0x406b07
cmp byte [ebp + 8], bl
je 0x406a92
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x406aaf
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x406ac1
push 0x4136a8
jmp 0x406ac4
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x406ad9
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x406aea
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x406afe
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x406b17
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x406ccd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4181b0]
jne 0x406cd7
repz ret
jmp fcn.0040a064
Function at 0x410d95
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040b799
and dword [ebp - 4], 0
cmp dword [0x41fd0c], 0
mov ebx, eax
jne 0x410e46
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410ef7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x410ef7
push eax
call fcn.0040b727
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41fd0c], eax
call esi
push eax
call fcn.0040b727
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41fd10], eax
call esi
push eax
call fcn.0040b727
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41fd14], eax
call esi
push eax
call fcn.0040b727
pop ecx
mov dword [0x41fd1c], eax
test eax, eax
je 0x410e46
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040b727
pop ecx
mov dword [0x41fd18], eax
mov eax, dword [0x41fd18]
cmp eax, ebx
je 0x410e9e
cmp dword [0x41fd1c], ebx
je 0x410e9e
push eax
call fcn.0040b7a2
push dword [0x41fd1c]
mov esi, eax
call fcn.0040b7a2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x410e9e
test edi, edi
je 0x410e9e
call esi
test eax, eax
je 0x410e95
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410e95
test byte [ebp - 0xc], 1
jne 0x410e9e
or dword [ebp + 0x10], 0x200000
jmp 0x410ed7
mov eax, dword [0x41fd10]
cmp eax, ebx
je 0x410ed7
push eax
call fcn.0040b7a2
pop ecx
test eax, eax
je 0x410ed7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410ed7
mov eax, dword [0x41fd14]
cmp eax, ebx
je 0x410ed7
push eax
call fcn.0040b7a2
pop ecx
test eax, eax
je 0x410ed7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41fd0c]
call fcn.0040b7a2
pop ecx
test eax, eax
je 0x410ef7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410ef9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x109c56c8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x109c56d2
pushal
call 0x109c56d8
pop ebp
sub ebp, 0x10
sub ebp, 0x9c56c8
mov al, byte [esp + 0x28]
cmp al, 1
je 0x109c56fc
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x109c5705
mov eax, 0x9c56c8
add eax, ebp
add eax, 0x63
mov ecx, 0x5a5
mov edx, 0xbdfb748f
xor byte [eax], dl
inc eax
dec ecx
jne 0x109c571c
jmp 0x109c572f
add al, 0x42
add al, 6
mov bl, 0x8f
invalid
Function at 0x401760
Capabilities:
Check if file exists
Create directory
Create shortcut via ishelllink
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov ebx, edx
lea eax, [ebp - 0x20a]
mov esi, ecx
push eax
call fcn.0040b750
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004093fb
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
add esp, 0x18
push 0
push eax
call esi
push 0x420700
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040938f
push 0x4206fc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040938f
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0
push eax
call esi
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040938f
push str..lnk
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040938f
add esp, 0x18
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0x41b260
push 1
push 0
push 0x41b280
mov dword [ebp - 0x214], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4018d9
mov eax, dword [ebp - 0x210]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x210]
push 0x420700
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x210]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x41b270
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x4018d9
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4018c4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
push 2
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x4018ec
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x210]
test ecx, ecx
je 0x4018fc
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409348
mov esp, ebp
pop ebp
ret
Function at 0x401910
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov edx, 0x420700
mov eax, edi
nop
mov cx, word [eax]
cmp cx, word [edx]
jne 0x401956
test cx, cx
je 0x401952
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x401956
add eax, 4
add edx, 4
test cx, cx
jne 0x401930
xor eax, eax
jmp 0x40195b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401972
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409348
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.0040b750
add esp, 0xc
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push eax
lea eax, [ebp - 0x20e]
push eax
call fcn.0040b750
add esp, 0xc
lea eax, [ebp - 0x418]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x418]
push 0x4207f4
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x668]
push eax
push 0
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov dword [ebp - 0x66c], eax
cmp eax, 0xffffffff
je 0x40195f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
test byte [ebp - 0x668], 0x10
lea eax, [ebp - 0x63c]
push 0x4207f8
push eax
jne 0x401a8d
call esi
test eax, eax
je 0x401af2
push 0x4207fc
lea eax, [ebp - 0x63c]
push eax
call esi
test eax, eax
je 0x401af2
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0040b750
add esp, 0xc
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x210]
push eax
call ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401af2
push 4
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x401af2
call esi
test eax, eax
je 0x401af2
push 0x4207fc
lea eax, [ebp - 0x63c]
push eax
call esi
test eax, eax
je 0x401af2
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0040b750
add esp, 0xc
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x210]
push eax
call ebx
push 0x4206fc
lea eax, [ebp - 0x210]
push eax
call ebx
lea ecx, [ebp - 0x210]
call fcn.00401910
lea eax, [ebp - 0x668]
push eax
push dword [ebp - 0x66c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401a01
push dword [ebp - 0x66c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
cmp eax, 1
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.00409348
mov esp, ebp
pop ebp
ret
Function at 0x401b40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x586c88
push 0x104
lea eax, [ebp - 0x20c]
xor esi, esi
push eax
push 0x420700
push str.TName
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x20c], si
jne 0x401b96
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409348
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
push eax
push 0x41b2a0
push 1
push 0
push 0x41b2c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x401be6
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
mov ecx, 1
cmovns esi, ecx
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00409348
mov esp, ebp
pop ebp
ret

Function at 0x401c00
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0040b750
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push 0x1a
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4206fc
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040938f
add esp, 0xc
lea eax, [ebp - 0x210]
push str.wenguanjia_
push 0x104
push eax
call fcn.0040938f
add esp, 0xc
push 0x586e90
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x401cae
push 0x586c88
push 0x104
push 0x586e90
push 0x420700
push str.StartMenuPath
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x586e90
call fcn.00401910
call fcn.00401b40
lea ecx, [ebp - 0x210]
call fcn.00401910
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409348
mov esp, ebp
pop ebp
ret