joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ef210
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x552a7c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
mov ecx, dword [ebp + 8]
call fcn.0041d2e0
cmp eax, 3
jg 0x4ef238
xor eax, eax
jmp 0x4ef3d6
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
call fcn.0041d0a0
push 0x5c
lea ecx, [ebp - 4]
call fcn.00439040
mov esi, eax
lea ecx, [ebp - 4]
call fcn.0041d2e0
sub eax, 1
cmp esi, eax
jne 0x4ef26e
push 0x53a600
lea ecx, [ebp - 4]
call fcn.0041d180
jmp 0x4ef27b
push 0x53a5f4
lea ecx, [ebp - 4]
call fcn.0041d180
lea ecx, [ebp - 0x260]
push ecx
lea ecx, [ebp - 4]
call fcn.0041d2b0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xc], eax
xor edx, edx
cmp dword [ebp - 0xc], 0xffffffff
setne dl
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x4ef3a9
push 0x53a5f0
lea eax, [ebp - 0x234]
push eax
call fcn.004f9f0c
add esp, 8
test eax, eax
je 0x4ef390
push 0x532808
lea ecx, [ebp - 0x234]
push ecx
call fcn.004f9f0c
add esp, 8
test eax, eax
je 0x4ef390
mov edx, dword [ebp - 0x260]
and edx, 0x10
je 0x4ef33d
lea eax, [ebp - 0x234]
push eax
push 0x54239c
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x264]
push edx
call fcn.0041bc20
add esp, 0xc
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.0041bc20
add esp, 0xc
push eax
call fcn.004ef210
add esp, 4
lea ecx, [ebp - 0x268]
call fcn.0041d100
lea ecx, [ebp - 0x264]
call fcn.0041d100
jmp 0x4ef390
lea ecx, [ebp - 0x234]
push ecx
push 0x54239c
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x26c]
push eax
call fcn.0041bc20
add esp, 0xc
push eax
lea ecx, [ebp - 0x270]
push ecx
call fcn.0041bc20
add esp, 0xc
mov ecx, eax
call fcn.0041d2b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x270]
call fcn.0041d100
lea ecx, [ebp - 0x26c]
call fcn.0041d100
lea edx, [ebp - 0x260]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 8], eax
jmp 0x4ef2a0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
call fcn.0041d2b0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x274], eax
lea ecx, [ebp - 4]
call fcn.0041d100
mov eax, dword [ebp - 0x274]
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f7567
mov esp, ebp
pop ebp
ret
Function at 0x4efac0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
push str.UtilsDnsOpt.dll
lea eax, [ebp - 0x10]
push eax
call fcn.004163f0
add esp, 4
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.0041bc20
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.0041d100
lea ecx, [ebp - 4]
call fcn.0041d2b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4efb17
lea ecx, [ebp - 4]
call fcn.0041d2b0
push eax
call fcn.0045ff30
add esp, 4
test eax, eax
jne 0x4efb2e
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 4]
call fcn.0041d100
mov eax, dword [ebp - 0x14]
jmp 0x4efbb8
lea ecx, [ebp - 4]
call fcn.0041d2b0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4efb6c
push str.CreateDnsOpt
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4efb6c
push 2
call dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x128], eax
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x128], 0
je 0x4efba6
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x128]
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x128]
mov edx, dword [ecx]
mov ecx, eax
mov eax, dword [edx + 4]
call eax
movzx ecx, al
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 4]
call fcn.0041d100
mov eax, dword [ebp - 0x18]
jmp 0x4efbb8
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 4]
call fcn.0041d100
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret

Function at 0x4f4c6c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x557014], 0
push esi
jne 0x4f4bda
call fcn.004f4aee
test eax, eax
je 0x4f4c1d
mov eax, dword [0x557014]
cmp eax, 1
jne 0x4f4bfb
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4f4c1d
pop esi
ret
push eax
call dword [0x55701c]
test eax, eax
jne 0x4f4c65
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4f4c21
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x557014]
call dword [0x55701c]
mov edi, eax
test edi, edi
je 0x4f4c46
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4f4c62
mov edi, esi
add esi, 0xff0
push edi
push dword [0x557014]
call dword [0x557018]
add edi, 0x10
cmp edi, esi
jb 0x4f4c4e
mov eax, edi
pop edi
pop esi
ret
jmp 0x4f4bc7

Function at 0x4f7567
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x552a7c]
jne 0x4f7571
repz ret
jmp fcn.005042ad
Function at 0x51dc4d
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.00504d05
and dword [ebp - 4], 0
cmp dword [0x557e60], 0
mov ebx, eax
jne 0x51dcfe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x51ddaf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x51ddaf
push eax
call fcn.00504c93
mov dword [esp], 0x540c44
push edi
mov dword [0x557e60], eax
call esi
push eax
call fcn.00504c93
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x557e64], eax
call esi
push eax
call fcn.00504c93
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x557e68], eax
call esi
push eax
call fcn.00504c93
pop ecx
mov dword [0x557e70], eax
test eax, eax
je 0x51dcfe
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00504c93
pop ecx
mov dword [0x557e6c], eax
mov eax, dword [0x557e6c]
cmp eax, ebx
je 0x51dd56
cmp dword [0x557e70], ebx
je 0x51dd56
push eax
call fcn.00504d0e
push dword [0x557e70]
mov esi, eax
call fcn.00504d0e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x51dd56
test edi, edi
je 0x51dd56
call esi
test eax, eax
je 0x51dd4d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x51dd4d
test byte [ebp - 0xc], 1
jne 0x51dd56
or dword [ebp + 0x10], 0x200000
jmp 0x51dd8f
mov eax, dword [0x557e64]
cmp eax, ebx
je 0x51dd8f
push eax
call fcn.00504d0e
pop ecx
test eax, eax
je 0x51dd8f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x51dd8f
mov eax, dword [0x557e68]
cmp eax, ebx
je 0x51dd8f
push eax
call fcn.00504d0e
pop ecx
test eax, eax
je 0x51dd8f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x557e60]
call fcn.00504d0e
pop ecx
test eax, eax
je 0x51ddaf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x51ddb1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x525440
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x552a7c]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
test ebx, ebx
jne 0x525478
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004f7567
add esp, 0x20c
ret
push esi
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004f7580
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x525543
mov ecx, ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x5254b0
sub ecx, esi
sar ecx, 1
mov edx, 0x103
sub edx, ecx
cmp eax, edx
jae 0x525543
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x5254d2
mov eax, dword [0x54239c]
mov dword [edi], eax
mov eax, ebx
mov edx, ebx
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5254f0
lea edi, [esp + 0xc]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x525504
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004f7567
add esp, 0x20c
ret
mov ecx, dword [esp + 0x210]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004f7567
add esp, 0x20c
ret
Function at 0x525d30
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.004f78e0
mov eax, dword [0x552a7c]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x525e9b
cmp dword [esp + 0x2c20], edi
je 0x525e9b
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push str..PhysicalDrive_d
lea eax, [esp + 0x30]
push pe_nt_image_headers32
push eax
call fcn.00404e50
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x525e74
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.004f7580
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x525e67
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.004f7580
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.00527af0
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.00404f40
test eax, eax
jne 0x525e67
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x525e7e
inc ebx
cmp ebx, 0x10
jl 0x525d80
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.004f7567
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004f7567
add esp, 0x2c14
ret
Function at 0x526180
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x552a7c]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x526381
cmp dword [esp + 0x2f8], 0
je 0x526381
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004f7580
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x540cfc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x526348
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x52633b
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x526309
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5262fe
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.004f7580
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.00526070
add esp, 0x14
test eax, eax
je 0x5262fe
cmp byte [esp + 0x24], 0
je 0x5262c2
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x5262fe
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x5262f1
mov cl, byte [esi + eax]
test cl, cl
je 0x5262f1
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x5262d6
jmp 0x5262f5
test edx, edx
jne 0x5262f6
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x526220
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x526381
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.00404f40
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.004f7567
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004f7567
add esp, 0x2ec
ret
Function at 0x526720
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x552a7c]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x52689d
cmp ebp, 0x20
jb 0x52689d
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.004f7580
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x540d6c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x52689d
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5267b0
sub eax, edx
cmp eax, 0x40
jne 0x52689d
push ebx
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x114]
mov ecx, eax
sub esi, ecx
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x5267ee
mov cl, byte [esi + eax]
test cl, cl
je 0x5267ee
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x5267d6
jmp 0x5267f2
test edx, edx
jne 0x5267f3
dec eax
mov byte [eax], 0
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
lea ecx, [ecx]
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x52682b
mov cl, byte [edx + eax]
test cl, cl
je 0x52682b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x526810
jmp 0x52682f
test esi, esi
jne 0x526830
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.004f7580
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.005257b0
add esp, 0x10
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
pop ebx
test eax, eax
jne 0x52689d
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.00404f40
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.004f7567
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004f7567
add esp, 0x50c
ret
Function at 0x5268c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x290
mov eax, dword [0x552a7c]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004f7580
push 0x80
lea ebx, [esp + 0x20]
mov ecx, edi
call fcn.005257b0
lea eax, [esp + 0x1a0]
mov edx, edi
mov ecx, eax
add esp, 0x10
mov esi, 0x104
sub edx, ecx
lea esp, [esp]
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x52692b
mov cl, byte [edx + eax]
test cl, cl
je 0x52692b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x526910
jmp 0x52692f
test esi, esi
jne 0x526930
dec eax
lea edx, [esp + 0x10]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x198]
push eax
call fcn.0040a5b0
push 0xff
lea ecx, [esp + 0x95]
push 0
push ecx
mov dword [esp + 0x18], 1
mov byte [esp + 0x9c], 0
call fcn.004f7580
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x540d6c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], pe_nt_image_headers32
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x526a0b
mov ecx, edi
lea eax, [esp + 0x90]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5269d3
test dl, dl
je 0x5269cf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5269d3
add eax, 2
add ecx, 2
test dl, dl
jne 0x5269b3
xor eax, eax
jmp 0x5269d8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x526a0b
lea eax, [esp + 0x90]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5269e6
sub eax, edx
push eax
lea edx, [esp + 0x94]
push edx
push 1
push str.mid_old
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call esi
lea eax, [esp + 0x190]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x526a15
sub eax, edx
push eax
lea eax, [esp + 0x194]
push eax
push 1
push 0x540d6c
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov ecx, dword [esp + 0x294]
pop esi
pop ebx
xor ecx, esp
call fcn.004f7567
add esp, 0x290
ret
Function at 0x636370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x63638e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x65f074
push ecx
mov edi, eax
call fcn.0064a198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6363cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0064a02e
push esi
call fcn.00649fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x639850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x6398ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x664720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6398ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.0064a1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x6398ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x664720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x63992a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.0064b082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x639957
mov word [eax], si
add eax, 2
push eax
call fcn.0064b030
add esp, 4
jmp 0x639959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x6398ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x6398b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x639ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x63a080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x63a0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x65f458
push ecx
call fcn.0064a1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0064a1e1
add esp, 0x10
jmp 0x63a0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0064a20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00649dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0063a050
mov eax, dword [0x664728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x63a13b
push esi
call fcn.00639fb0
add esp, 4
mov dword [0x664728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x63a14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00639ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x63d440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x63d4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x63d48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x63d471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x63d47e
add edx, ecx
cmp ebx, edx
jb 0x63d48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x63d467
xor ecx, ecx
jmp 0x63d4a2
test eax, eax
jne 0x63d492
xor ecx, ecx
jmp 0x63d4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.0063d3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x63d8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x63d921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x63d946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x63d96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x63d993
push ecx
push esi
call fcn.0063d4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret