joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8a4f00
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x8a50e4
pushal
mov esi, section.UPX1
lea edi, [esi - 0x363000]
push edi
or ebp, 0xffffffff
jmp 0x8a4f2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8a4f31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8a4f20
mov eax, 1
add ebx, ebx
jne 0x8a4f43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8a4f54
jne 0x8a4f73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8a4f73
dec eax
add ebx, ebx
jne 0x8a4f60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8a4f38
add ebx, ebx
jne 0x8a4f6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x8a4fc5
xor ecx, ecx
sub eax, 3
jb 0x8a4f8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8a4ffa
sar eax, 1
mov ebp, eax
jmp 0x8a4f96
add ebx, ebx
jne 0x8a4f96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8a4f64
inc ecx
add ebx, ebx
jne 0x8a4fa4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8a4f64
add ebx, ebx
jne 0x8a4fb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8a4fa6
jne 0x8a4fc2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8a4fa6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8a4fe4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8a4fd6
jmp 0x8a4f26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8a4fe4
add edi, ecx
jmp 0x8a4f26
pop esi
mov edi, esi
mov ecx, 0x12285
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8a5002
cmp byte [edi], 0x36
jne 0x8a5002
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x8a5007
lea edi, [esi + 0x47f000]
mov eax, dword [edi]
or eax, eax
je 0x8a5076
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x4a6524]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4a6668]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8a5034
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4a666c]
or eax, eax
je 0x8a5070
mov dword [ebx], eax
add ebx, 4
jmp 0x8a5051
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x8a50a7
cmp al, 0xef
ja 0x8a509a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x8a507c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x8a5089
mov ebp, dword [esi + 0x4a6670]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x8a50db
sub esp, 0xffffff80
jmp 0x72ab00
Function at 0x4016d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x41f2b0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x12]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x18], ax
call fcn.0040dc80
add esp, 0xc
lea edx, [esp + 4]
push edx
push 1
push ebx
push 0x41bca0
push 0x80000002
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40176d
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebx
push str.InstallPath
push edx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401762
cmp esi, ebx
je 0x401760
lea eax, [esp + 0xc]
push eax
push 0x104
push esi
call fcn.0040c3a2
add esp, 0xc
mov bl, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x214]
mov al, bl
pop ebx
xor ecx, esp
call fcn.0040c0c6
add esp, 0x214
ret
Function at 0x401cb0
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41951b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x41f2b0]
xor eax, esp
mov dword [esp + 0x228], eax
push esi
push edi
mov eax, dword [0x41f2b0]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x36]
push ecx
mov word [esp + 0x38], ax
call fcn.0040dc80
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 0x19
push 0
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jl 0x401d39
push 0x41bd88
lea eax, [esp + 0x30]
push eax
call esi
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 0x17
push 0
call edi
test eax, eax
jl 0x401dfb
push 0x41bda0
lea eax, [esp + 0x30]
push eax
call esi
push 0x104
call fcn.0040c0b0
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 4
push 0
push 0
push 0
mov esi, eax
push esi
push 0xffffffffffffffff
lea ecx, [esp + 0x40]
push ecx
push 0
push 1
call edi
push 0
push 0
push eax
push esi
push 0xffffffffffffffff
lea edx, [esp + 0x40]
push edx
push 0
push 1
call edi
mov eax, esi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401db2
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00402b60
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x244], 0
call fcn.00401790
add esp, 4
cmp dword [esp + 0x28], 0x10
jb 0x401df2
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040c0bb
add esp, 4
push esi
call fcn.0040c0bb
add esp, 4
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.0040c0c6
add esp, 0x238
ret

Function at 0x401e30
Capabilities:
Delete registry key
Persist via run registry key

Disassembly:
sub esp, 8
mov eax, dword [0x41f2b0]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x401e82
mov ecx, dword [esp + 0xc]
push str.xlshuijing
push ecx
call edi
mov edx, dword [esp + 0xc]
push edx
call ebx
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push 0x80000002
call esi
test eax, eax
jne 0x401eb1
mov ecx, dword [esp + 0xc]
push 0x41bda0
push ecx
call edi
mov edx, dword [esp + 0xc]
push edx
call ebx
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c0c6
add esp, 8
ret
Function at 0x401fe0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x438
mov eax, dword [0x41f2b0]
xor eax, esp
mov dword [esp + 0x434], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0xc]
push eax
mov ebx, 0x22c
push esi
mov dword [esp + 0x14], ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x402033
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x434]
xor ecx, esp
call fcn.0040c0c6
add esp, 0x438
ret
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x242]
push edx
mov word [esp + 0x244], cx
call fcn.0040dc80
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x402126
lea ebx, [ebx]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x23c]
push 0x104
push edx
call fcn.0040c3a2
lea eax, [esp + 0x244]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402094
sub eax, edx
sar eax, 1
inc eax
push eax
lea eax, [esp + 0x23c]
push eax
call fcn.0040ca5f
add esp, 8
mov ecx, str.XLSHUIJING.EXE
lea eax, [esp + 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4020e7
test dx, dx
je 0x4020e3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4020e7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4020c1
xor eax, eax
jmp 0x4020ec
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402109
lea ecx, [esp + 0xc]
push ecx
push esi
mov dword [esp + 0x14], ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x402070
jmp 0x402126
mov eax, dword [esp + 0x14]
push eax
push 0
push 0x1fffff
mov edi, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x440]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c0c6
add esp, 0x438
ret
Function at 0x402150
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24c
mov eax, dword [0x41f2b0]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x4e]
xor eax, eax
push edi
push ecx
mov word [esp + 0x54], ax
call fcn.0040dc80
add esp, 0xc
lea esi, [esp + 0x48]
call fcn.004016d0
test al, al
je 0x4021b8
call fcn.00401fe0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401cb0
call fcn.00401e30
call fcn.00401ed0
mov esi, dword [0x420c3c]
cmp esi, edi
jne 0x4021fc
push 0x40
call fcn.0040c2e0
add esp, 4
cmp eax, edi
je 0x4021f2
mov ecx, 7
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], edi
xor edx, edx
mov word [eax + 4], dx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x30], edi
xor ecx, ecx
mov word [eax + 0x20], cx
mov dword [eax + 0x3c], edi
jmp 0x4021f4
xor eax, eax
mov esi, eax
mov dword [0x420c3c], esi
call fcn.00403340
test eax, eax
je 0x402221
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0040c0c6
mov esp, ebp
pop ebp
ret 0x10
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
lea edi, [esp + 0x10]
mov dword [esp + 0x10], vtable.WTL::CMessageLoop.0
call fcn.00402780
mov edi, eax
mov eax, dword [0x420c3c]
xor esi, esi
cmp eax, esi
jne 0x40228e
push 0x40
call fcn.0040c2e0
add esp, 4
cmp eax, esi
je 0x402287
mov ecx, 7
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], esi
xor edx, edx
mov word [eax + 4], dx
mov dword [eax + 0x34], ecx
mov dword [eax + 0x30], esi
xor ecx, ecx
mov word [eax + 0x20], cx
mov dword [eax + 0x3c], esi
jmp 0x402289
xor eax, eax
mov dword [0x420c3c], eax
mov eax, dword [eax + 0x3c]
cmp eax, esi
je 0x402297
call eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x4022ba
push eax
call fcn.0040ca76
add esp, 4
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
cmp eax, esi
je 0x4022d3
push eax
call fcn.0040ca76
add esp, 4
mov ecx, dword [esp + 0x254]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040c0c6
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402cb0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
lea eax, [edi + 4]
push eax
call fcn.0040c0b0
add esp, 4
mov esi, eax
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push 0x41bc94
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
call sub.VERSION.dll_VerQueryValueW
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 8]
mov edi, dword [esp + 0x14]
mov edx, eax
shr edx, 0x10
mov dword [edi], edx
mov edx, dword [esp + 0x18]
and eax, 0xffff
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov edx, dword [esp + 0x1c]
mov ecx, eax
shr ecx, 0x10
mov dword [edx], ecx
mov ecx, dword [esp + 0x20]
and eax, 0xffff
push esi
mov dword [ecx], eax
call fcn.0040cb04
add esp, 4
pop edi
xor eax, eax
pop esi
add esp, 8
ret

Function at 0x402e20
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx]
push ebp
push esi
push edi
test eax, eax
je 0x402f13
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x402f13
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, dword [ebx]
mov edi, dword [esi + 0xc]
mov dword [esp + 0x10], eax
cmp edi, dword [esi + 0x10]
jbe 0x402e70
call fcn.0040cc6c
mov ebp, dword [esi]
mov esi, dword [ebx]
mov ebx, dword [esi + 0x10]
cmp dword [esi + 0xc], ebx
jbe 0x402e81
call fcn.0040cc6c
mov esi, dword [esi]
test ebp, ebp
je 0x402e8b
cmp ebp, esi
je 0x402e90
call fcn.0040cc6c
cmp edi, ebx
je 0x402ef0
test ebp, ebp
jne 0x402ee6
call fcn.0040cc6c
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x402ea9
call fcn.0040cc6c
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
jb 0x402eb4
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x402f51
test ebp, ebp
jne 0x402eeb
call fcn.0040cc6c
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x402edd
call fcn.0040cc6c
mov ebx, dword [esp + 0x18]
add edi, 0x1c
jmp 0x402e72
mov eax, dword [ebp]
jmp 0x402e9f
mov eax, dword [ebp]
jmp 0x402ed3
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x402f0a
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 4]
jmp 0x402f30
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x402f2d
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [ebx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x402f51
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402f51
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x403130
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x4192cb
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x41f2b0]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41f2b0]
xor eax, esp
push eax
lea eax, [esp + 0x49c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4b0]
mov edi, dword [esp + 0x4ac]
mov ecx, dword [esp + 0x4b4]
xor ebp, ebp
xor edx, edx
mov dword [esp + 0x18], eax
mov eax, edi
mov word [esp + 0x24], dx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4031a2
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x24]
call fcn.004010e0
mov dword [esp + 0x4a4], ebp
mov eax, dword [esp + 0x34]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x4031d4
call fcn.0040cc6c
mov eax, dword [esp + 0x24]
mov ebx, 8
cmp dword [esp + 0x38], ebx
jae 0x4031e7
lea eax, [esp + 0x24]
cmp word [eax + esi*2], 0x5c
je 0x4031fe
push 1
mov eax, 0x41bc94
lea ecx, [esp + 0x24]
call section..text
push 1
mov eax, 0x41bed8
lea ecx, [esp + 0x24]
call section..text
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], ebx
jae 0x40321c
lea eax, [esp + 0x24]
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40324a
cmp dword [esp + 0x38], 8
jb 0x403243
mov edx, dword [esp + 0x24]
push edx
call fcn.0040c0bb
add esp, 4
xor eax, eax
jmp 0x403315
push 0x208
lea eax, [esp + 0x290]
push ebp
push eax
call fcn.0040dc80
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
lea esp, [esp]
push 0x41bedc
lea ecx, [esp + 0x6c]
push ecx
call esi
test eax, eax
je 0x4032e1
push 0x41bee0
lea edx, [esp + 0x6c]
push edx
call esi
test eax, eax
je 0x4032e1
lea eax, [esp + 0x68]
push eax
push edi
lea ecx, [esp + 0x294]
push ecx
call ebp
test byte [esp + 0x3c], 0x10
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28c]
je 0x4032da
mov eax, dword [esp + 0x18]
push edx
push eax
push ecx
call fcn.00403130
mov edx, dword [esp + 0x24]
add esp, 0xc
cmp dword [edx], 0
je 0x4032e1
lea eax, [esp + 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4032e1
push ecx
push edx
call fcn.00402e20
lea eax, [esp + 0x3c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403270
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x38], 8
jb 0x403310
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0040c0bb
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x49c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.0040c0c6
add esp, 0x494
ret
Function at 0x403340
Capabilities:
Initialize winsock library
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41959d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c0
mov eax, dword [0x41f2b0]
xor eax, esp
mov dword [esp + 0x3bc], eax
push edi
mov eax, dword [0x41f2b0]
xor eax, esp
push eax
lea eax, [esp + 0x3c8]
mov dword fs:[0], eax
call fcn.00405dd0
test eax, eax
je 0x4033d6
push 0x208
lea eax, [esp + 0x1c0]
push 0
push eax
call fcn.0040dc80
add esp, 0xc
push 0x104
lea ecx, [esp + 0x1c0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 4
lea edx, [esp + 0xc]
push edx
push 4
lea eax, [esp + 0x1c8]
push eax
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push 0x80000001
mov dword [esp + 0x20], 1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push str.InstallApplication67D65946_EA5F_4b42_8639_27A8ECA72246
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x40340e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x41c094
push 0x41c0a0
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
jmp 0x403506
push str.InstallApplication67D65946_EA5F_4b42_8639_27A8ECA72246
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push esi
mov dword [esi + 0x38], eax
call fcn.00403b90
mov eax, esi
call fcn.00403590
test eax, eax
jne 0x40343b
mov eax, 2
jmp 0x403506
push esi
call fcn.00403f40
call fcn.004057f0
push 0x420c44
mov edi, eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0xffffffffffffffff
push 0
mov eax, esi
mov ecx, edi
call fcn.00401250
call fcn.004057f0
push eax
call fcn.00405850
test eax, eax
je 0x40348a
push 0
push str.ExtractInstallUIResource_Failed_
push str.ExtractInstallUIResource_Failed_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 5
jmp 0x403506
call fcn.004057f0
push 0
push 0x405b90
push str.INSTALL7Z
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
lea ecx, [esp + 0xc]
push ecx
call fcn.004043d0
push ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x3d4], 0
call fcn.00403d10
lea edx, [esp + 0x2c]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
mov ecx, esi
call fcn.004035f0
mov dword [esp + 0x3d0], 0xffffffff
test al, al
jne 0x4034fa
lea eax, [esp + 0xc]
push eax
call fcn.00403530
mov eax, 4
jmp 0x403506
lea ecx, [esp + 0xc]
push ecx
call fcn.00403530
xor eax, eax
mov ecx, dword [esp + 0x3c8]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x3bc]
xor ecx, esp
call fcn.0040c0c6
add esp, 0x3cc
ret

Function at 0x403590
Capabilities:
Get disk size

Disassembly:
sub esp, 0x1c
cmp dword [eax + 0x18], 8
jb 0x40359e
mov eax, dword [eax + 4]
jmp 0x4035a1
add eax, 4
lea ecx, [esp]
push ecx
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
cmp eax, 1
jne 0x4035e7
cmp dword [esp + 4], 0
ja 0x4035e7
jb 0x4035cd
cmp dword [esp], 0x5f5e100
jae 0x4035e7
push 0
push 0x41bfec
push 0x41bff4
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
add esp, 0x1c
ret
mov eax, 1
add esp, 0x1c
ret
Function at 0x4039f0
Capabilities:
Get common file path
Get program files directory

Disassembly:
sub esp, 0x420
mov eax, dword [0x41f2b0]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push esi
push edi
mov esi, ecx
push 0
mov eax, 0x41bc98
call fcn.004010e0
push str.InstallPath
mov ecx, esi
mov ebx, 0x41bca0
call fcn.00405be0
add esp, 4
test eax, eax
je 0x403b69
push str.Inno_Setup:_App_Path
mov ecx, esi
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersionUninstall_thunder_is1
call fcn.00405be0
add esp, 4
test eax, eax
je 0x403a93
push str.InstallPath
mov ecx, esi
call fcn.00405be0
add esp, 4
test eax, eax
je 0x403a93
push str.Inno_Setup:_App_Path
mov ecx, esi
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersionUninstall_thunder_vip_is1
call fcn.00405be0
add esp, 4
test eax, eax
je 0x403a93
push str.InstallPath
mov ecx, esi
call fcn.00405be0
add esp, 4
test eax, eax
je 0x403a93
push 0
mov eax, 0x41bc98
call fcn.004010e0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.0040dc80
add esp, 0xc
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x403aba
mov eax, dword [edi]
jmp 0x403abc
mov eax, edi
push 0x41bc98
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x403af7
push str.InstallerIPCListenerPort
mov ebx, 0x19
mov eax, esi
call fcn.00404300
cmp eax, 0xffffffff
jne 0x403af7
cmp dword [esi + 0x18], 8
jb 0x403aea
mov edi, dword [edi]
push str.....xlshuijing
push edi
lea edx, [esp + 0x18]
push edx
jmp 0x403b3f
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x222]
push ecx
mov word [esp + 0x224], ax
call fcn.0040dc80
add esp, 0xc
lea edx, [esp + 0x218]
push edx
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.xlshuijing
lea eax, [esp + 0x21c]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x10]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403b50
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x14]
call fcn.004010e0
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c0c6
add esp, 0x420
ret
Function at 0x403b90
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41921b
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x41f2b0]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebp
push esi
push edi
mov eax, dword [0x41f2b0]
xor eax, esp
push eax
lea eax, [esp + 0x444]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x454]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x36]
push ecx
mov word [esp + 0x38], ax
call fcn.0040dc80
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.xlshuijingInstall
lea eax, [esp + 0x30]
push eax
call edi
xor ecx, ecx
push ecx
mov eax, 0x41bc98
lea esi, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], cx
call fcn.004010e0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x23e]
mov dword [esp + 0x454], 0
push eax
mov word [esp + 0x240], dx
call fcn.0040dc80
add esp, 0xc
push 0x104
lea ecx, [esp + 0x238]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, esi
lea ecx, [esp + 0x234]
call fcn.00402d50
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x403c90
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x30]
push edx
call edi
push 0
lea eax, [esp + 0x30]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403cb0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x30]
mov esi, ebp
call fcn.004010e0
cmp dword [esp + 0x28], 8
jb 0x403cdf
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0040c0bb
add esp, 4
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.0040c0c6
add esp, 0x440
ret 4