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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x5c4cfb
cmp dword [edi + 0x3c], 0
jne 0x5c4cfb
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.005da196
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.005c4d28
pop edi
pop esi
pop ebx
ret 8

Function at 0x5c4d76
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.005da196
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5c4da7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.005c4dba
pop edi
pop esi
pop ebx
ret 8

Function at 0x5c63d3
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5c640b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005c3d36
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005c3d0e
jmp 0x5c6417
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5c7f68
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5c7faa
call fcn.005da196
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5c7faa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5c7fa1
xor eax, eax
jmp 0x5c7fb2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005c7fb8
pop edi
pop esi
pop ebx
ret 4

Function at 0x5d894d
Capabilities:
Create http request

Disassembly:
mov eax, 0x5fd170
call fcn.004af3f0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x5d8985
call fcn.005da196
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x5d89aa
push eax
push dword [esi + 4]
call fcn.005d97dc
jmp 0x5d89b6
push esi
push eax
mov ecx, 0x1e0bb50
call fcn.005d89c7
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x5d8cc3
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x5fd087
call fcn.004af3f0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.005ca911
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x1daee58]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.005c3a18
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.005c3a18
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x5da6c6
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 0x5da6f4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5da712
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005da62c
jmp 0x5da712
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5da712
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005da62c
test edi, edi
mov eax, edi
jne 0x5da6fc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4127b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebx
push 0xdb0d
push 8
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x4127d5
xor al, al
pop ebx
add esp, 8
ret
mov edx, 0x4015f0
mov ecx, 0x4015f0
test edx, edx
je 0x4127ee
inc ecx
cmp dword [ecx], 0xdeadbeaf
jne 0x4127e3
jmp 0x4127f4
mov ecx, 0x4015f0
inc ecx
add ecx, 4
cmp byte [ecx], 0x68
jne 0x412877
mov edx, dword [ecx + 1]
inc ecx
push esi
add ecx, 4
mov dword [eax], edx
cmp byte [ecx], 0x68
lea esi, [eax + 4]
mov dword [esp + 8], esi
jne 0x412876
mov edx, dword [ecx + 1]
inc ecx
cmp edx, 0xdeadbabe
je 0x412837
mov dword [esi], edx
add ecx, 4
add esi, 4
cmp byte [ecx], 0x68
je 0x412812
mov dword [esp + 8], esi
pop esi
mov al, bl
pop ebx
add esp, 8
ret
mov dword [esp + 8], esi
xor ecx, ecx
lea ecx, [ecx]
xor byte [ecx + eax], 0xd0
inc ecx
cmp ecx, 0xdaed
jb 0x412840
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
call fcn.00401500
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [eax], edx
mov bl, 1
pop esi
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x4128b0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [0x41c7c8]
test esi, esi
je 0x4128fe
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004127b0
add esp, 8
test al, al
je 0x4128fe
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4128fc
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edi
call fcn.00401050
pop edi
pop ebx
pop esi
add esp, 0xc
ret

Function at 0x412955
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b004]
jne 0x41295f
repz ret
jmp fcn.00412ed6
Function at 0x401b46
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [ebp - 0x354]
push eax
call fcn.004012be
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00401273
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.004012be
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00401273
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.004012be
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00401273
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.004012ae
lodsd eax, dword [esi]
invalid

Function at 0x401f94
Capabilities:
Contain obfuscated stackstrings

Disassembly:
aam 1
add byte [eax], al
cmp dword [ebp + 0xc], 1
je 0x40216c
cmp dword [ebp + 0xc], 8
jne 0x402134
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
invalid
test dword [ecx + edi*8 - 1], ecx
invalid
Function at 0x405fec
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
xor esi, esi
neg eax
sbb eax, eax
and eax, 7
add eax, 0x1c
push eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.00432603
mov ebx, eax
cmp ebx, esi
jge 0x40603c
mov eax, str.per_machine
cmp dword [ebp + 8], esi
jne 0x40602b
mov eax, str.per_user
push eax
push str.Failed_to_find_local__hs_appdata_directory.
push ebx
call fcn.004300f7
add esp, 0xc
jmp 0x4060a6
mov dword [ebp - 0x10], esi
cmp dword [edi + 4], esi
jbe 0x4060a6
mov dword [ebp + 8], esi
mov esi, dword [edi]
add esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
push dword [ebp - 0xc]
call fcn.00432639
mov ebx, eax
test ebx, ebx
js 0x406097
lea eax, [ebp - 8]
push eax
push dword [esi]
push dword [ebp - 4]
call fcn.00432639
mov ebx, eax
test ebx, ebx
js 0x406097
push dword [ebp - 8]
call fcn.0043622f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add dword [ebp + 8], 0xc
cmp eax, dword [edi + 4]
jb 0x406047
jmp 0x4060a4
push str.Failed_to_allocate_regid_folder_path.
push ebx
call fcn.004300f7
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 8], esi
je 0x4060b3
push dword [ebp - 8]
call fcn.00430858
cmp dword [ebp - 4], esi
je 0x4060c0
push dword [ebp - 4]
call fcn.00430858
cmp dword [ebp - 0xc], esi
je 0x4060cd
push dword [ebp - 0xc]
call fcn.00430858
pop esi
mov eax, ebx
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [edi + 0x14]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
call fcn.00408c6a
mov esi, eax
cmp esi, ebx
jge 0x40749d
push str.Failed_to_format_variable_string.
jmp 0x407516
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4074d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4074bf
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80070002
je 0x4074d1
cmp esi, 0x80070003
jne 0x4074e0
xor esi, esi
jmp 0x4074e0
test al, 0x10
je 0x4074e0
mov dword [ebp - 8], 1
cmp esi, ebx
jge 0x4074f9
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.004300f7
add esp, 0x10
jmp 0x40751e
mov eax, dword [ebp - 8]
push ebx
cdq
push edx
push eax
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a74b
mov esi, eax
cmp esi, ebx
jge 0x40751e
push str.Failed_to_set_variable.
push esi
call fcn.004300f7
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x40752b
push dword [ebp - 4]
call fcn.00430858
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x407533
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 0x14]
push dword [ebp + 8]
call fcn.00408c6a
mov esi, eax
test esi, esi
jns 0x40755a
push str.Failed_to_format_variable_string.
jmp 0x40759f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407580
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40757c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x4075ae
test al, 0x10
je 0x4075a9
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a78a
mov esi, eax
test esi, esi
jns 0x4075ae
push str.Failed_to_set_directory_search_path_variable.
push esi
call fcn.004300f7
pop ecx
pop ecx
jmp 0x4075ee
mov esi, 0x80070003
cmp esi, 0x80070002
je 0x4075d7
cmp esi, 0x80070003
je 0x4075d7
test esi, esi
jns 0x4075ee
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.004300f7
add esp, 0x10
jmp 0x4075ee
push esi
push dword [ebp - 4]
push dword [edi]
push str.Directory_search:__ls__did_not_find_path:__ls__reason:_0x_x
push 2
call fcn.0042fd12
add esp, 0x14
xor esi, esi
cmp dword [ebp - 4], 0
je 0x4075fc
push dword [ebp - 4]
call fcn.00430858
mov eax, esi
pop esi
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [edi + 0x14]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call fcn.00408c6a
mov esi, eax
test esi, esi
jns 0x40762e
push str.Failed_to_format_variable_string.
jmp 0x4076c7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4076a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40768a
cmp eax, 3
je 0x40768a
test eax, eax
je 0x4076aa
jle 0x40765c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x407667
mov esi, 0x80004005
push esi
push 0x28d
push str.search.cpp
call fcn.00432f68
push dword [edi + 0x14]
push str.Failed_get_to_file_attributes.__ls
push esi
call fcn.004300f7
add esp, 0xc
jmp 0x4076cf
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.0042fd12
add esp, 0x10
jmp 0x4076aa
and eax, 0x10
cmp al, 0x10
je 0x4076aa
xor ebx, ebx
inc ebx
push 0
mov eax, ebx
cdq
push edx
push eax
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a74b
mov esi, eax
test esi, esi
jns 0x4076cf
push str.Failed_to_set_variable.
push esi
call fcn.004300f7
pop ecx
pop ecx
cmp dword [ebp - 4], 0
je 0x4076dd
push dword [ebp - 4]
call fcn.00430858
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x407795
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push 0
lea eax, [ebp - 4]
push eax
push dword [edi + 0x14]
push dword [ebp + 8]
call fcn.00408c6a
mov esi, eax
test esi, esi
jns 0x4077bc
push str.Failed_to_format_variable_string.
jmp 0x407828
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407809
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4077de
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80070002
je 0x407832
cmp esi, 0x80070003
je 0x407832
test esi, esi
jns 0x407848
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_file_search:__ls__for_path:__ls
push esi
call fcn.004300f7
add esp, 0x10
jmp 0x407848
test al, 0x10
jne 0x407832
push 0
push dword [ebp - 4]
push dword [edi + 4]
push dword [ebp + 8]
call fcn.0040a78a
mov esi, eax
test esi, esi
jns 0x4077e0
push str.Failed_to_set_variable_to_file_search_path.
push esi
call fcn.004300f7
pop ecx
pop ecx
jmp 0x407848
push dword [ebp - 4]
push dword [edi]
push str.File_search:__ls__did_not_find_path:__ls
push 2
call fcn.0042fd12
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], 0
je 0x407856
push dword [ebp - 4]
call fcn.00430858
mov eax, esi
pop esi
leave
ret 4
Function at 0x4178ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x456130]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov esi, ecx
call fcn.004284a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x417942
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x417920
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x41792b
mov esi, 0x80004005
push esi
push 0x443
push str.cache.cpp
call fcn.00432f68
push str.Failed_to_get_temp_path_for_working_folder.
jmp 0x417963
push esi
lea eax, [ebp - 0x20c]
push eax
push str._ls_ls_
push edi
call fcn.00431d94
mov esi, eax
add esp, 0x10
test esi, esi
jns 0x41796b
push str.Failed_to_append_bundle_id_on_to_temp_path_for_working_folder.
push esi
call fcn.004300f7
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042851a
leave
ret

Function at 0x417c57
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov ecx, 0x20000004
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
je 0x417ce2
lea eax, [ebp - 4]
push eax
push 0x1a
call fcn.00417baa
mov esi, eax
cmp esi, edi
jge 0x417c8d
push str.Failed_to_allocate_administrator_SID.
jmp 0x417cd3
push 2
push 8
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
jne 0x417cdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x417cb3
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x417cbe
mov esi, 0x80004005
push esi
push 0x5dd
push str.cache.cpp
call fcn.00432f68
push str.Failed_to_initialize_ACL.
push esi
call fcn.004300f7
pop ecx
pop ecx
jmp 0x417d0d
mov ecx, 0x20000005
push 0x7d0
push 3
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
push ecx
push 1
push dword [ebp + 0xc]
call fcn.0043010b
push 0x80
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 4], edi
je 0x417d1a
push dword [ebp - 4]
call fcn.00432b10
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x418e6e
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x456130]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0x250
lea eax, [ebp - 0x254]
push ebx
push eax
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], ebx
call fcn.004284a0
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push str..unverified
push dword [ebp + 8]
call fcn.004188ab
test eax, eax
js 0x418ed4
push 7
push dword [ebp - 0x258]
call fcn.00436d15
cmp dword [ebp + 8], ebx
jne 0x418fbe
push edi
lea edi, [ebp - 0x258]
mov ecx, esi
call fcn.004178ca
pop edi
test eax, eax
js 0x418fbe
lea eax, [ebp - 0x260]
push eax
push 0x448b38
push dword [ebp - 0x258]
call fcn.00432639
test eax, eax
js 0x418fbe
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x418fbe
test byte [ebp - 0x254], 0x10
jne 0x418fa1
xor eax, eax
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jbe 0x418f79
push 0x2e
add eax, eax
pop ecx
cmp cx, word [ebp + eax - 0x22c]
jne 0x418f79
movzx eax, word [ebp + eax - 0x22a]
push 0x52
pop ecx
cmp cx, ax
je 0x418fa1
push 0x72
pop ecx
cmp cx, ax
je 0x418fa1
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x258]
call fcn.00432639
test eax, eax
js 0x418fa1
push dword [ebp - 0x25c]
call fcn.0043622f
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418f31
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x25c], ebx
je 0x418fd1
push dword [ebp - 0x25c]
call fcn.00430858
cmp dword [ebp - 0x260], ebx
je 0x418fe4
push dword [ebp - 0x260]
call fcn.00430858
cmp dword [ebp - 0x258], ebx
pop esi
pop ebx
je 0x418ff9
push dword [ebp - 0x258]
call fcn.00430858
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042851a
leave
ret 8

Function at 0x41ee11
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x456130]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 1
push edx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x41ee7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41ee54
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x41ee5f
mov esi, 0x80004005
push esi
push 0x1ef
push str.msuengine.cpp
call fcn.00432f68
push str.Failed_to_stop_wusa_service.
push esi
call fcn.004300f7
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042851a
leave
ret
Function at 0x7be210
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x30d000]
push edi
or ebp, 0xffffffff
jmp 0x7be232
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7be239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7be228
mov eax, 1
add ebx, ebx
jne 0x7be24b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7be25c
jne 0x7be27b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7be27b
dec eax
add ebx, ebx
jne 0x7be268
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7be240
add ebx, ebx
jne 0x7be277
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7be2cd
xor ecx, ecx
sub eax, 3
jb 0x7be293
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7be302
sar eax, 1
mov ebp, eax
jmp 0x7be29e
add ebx, ebx
jne 0x7be29e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7be26c
inc ecx
add ebx, ebx
jne 0x7be2ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7be26c
add ebx, ebx
jne 0x7be2b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7be2ae
jne 0x7be2ca
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7be2ae
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7be2ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7be2de
jmp 0x7be22e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7be2ec
add edi, ecx
jmp 0x7be22e
pop esi
mov edi, esi
mov ecx, 0xb4bc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7be30a
cmp byte [edi], 0x24
jne 0x7be30a
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 0x7be30f
lea edi, [esi + 0x3ba000]
mov eax, dword [edi]
or eax, eax
je 0x7be37e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3ca77c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3ca880]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7be33c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3ca884]
or eax, eax
je 0x7be378
mov dword [ebx], eax
add ebx, 4
jmp 0x7be359
call dword [esi + 0x3ca894]
mov ebp, dword [esi + 0x3ca888]
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 0x7be3b2
sub esp, 0xffffff80
jmp 0x62d3d8