joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474560
Capabilities:
Encode data using base64
Terminate process

Disassembly:
sub esp, 0x118
mov ecx, 0x3f
mov eax, 0x80808080
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x41
mov cl, al
sub cl, 0x41
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x5a
jle 0x474582
mov eax, 0x61
mov dl, al
sub dl, 0x47
mov byte [esp + eax + 0x28], dl
inc eax
cmp eax, 0x7a
jle 0x474596
mov eax, 0x30
mov cl, al
add cl, 4
mov byte [esp + eax + 0x28], cl
inc eax
cmp eax, 0x39
jle 0x4745aa
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x53], 0x3e
mov byte [esp + 0x57], 0x3f
mov byte [esp + 0x65], 0
mov dword [esp + 0x18], ebp
je 0x47473d
mov ebx, dword [esp + 0x130]
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], 4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x12c]
xor eax, eax
lea esi, [edx + ecx]
movsx ecx, byte [esi + eax]
mov dl, byte [esp + ecx + 0x28]
test dl, 0x80
jne 0x47470e
mov byte [esp + eax + 0x20], cl
mov byte [esp + eax + 0x1c], dl
inc eax
cmp eax, 4
jl 0x47460c
mov esi, dword [esp + 0x138]
mov edx, dword [esp + 0x10]
cmp edx, dword [esi]
jle 0x474676
mov eax, dword [esp + 0x14]
push eax
call fcn.0047d907
mov ecx, dword [esi]
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
mov dword [esp + 0x2c], eax
rep movsb byte es:[edi], byte [esi]
call fcn.0047d81e
mov ecx, dword [esp + 0x140]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x2c]
add esp, 8
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov dl, ch
mov al, cl
sar dl, 4
shl al, 2
or dl, al
mov eax, dword [esp + 0x14]
mov byte [ebx + ebp], dl
inc ebp
inc eax
mov cl, ch
mov dword [esp + 0x14], eax
mov al, byte [esp + 0x1e]
mov dl, al
inc edi
sar dl, 2
shl cl, 4
or dl, cl
mov ecx, dword [esp + 0x14]
shl al, 6
or al, byte [esp + 0x1f]
mov byte [ebx + ebp], dl
inc ebp
mov edx, edi
inc ecx
inc edx
mov byte [ebx + ebp], al
mov al, byte [esp + 0x22]
inc ebp
inc ecx
inc edx
mov dword [esp + 0x10], edi
cmp al, 0x3d
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
je 0x474723
mov cl, byte [esp + 0x23]
xor eax, eax
cmp cl, 0x3d
setne al
add eax, 2
cmp eax, 3
jl 0x474723
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
add edx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], edx
cmp edx, ecx
jae 0x474744
jmp 0x4745fc
push ecx
push str.Illegal_character__c_in_input._n
call fcn.0047f0ad
add esp, 8
push 1
call fcn.0047f27e
mov eax, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [eax], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
mov ebx, dword [esp + 0x130]
mov ecx, dword [esp + 0x134]
mov byte [ebx + ebp], 0
pop edi
pop esi
mov dword [ecx], ebp
mov eax, ebx
pop ebp
pop ebx
add esp, 0x118
ret
Function at 0x4759b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49c458
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00475590
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.00475600
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004758e0
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.004755b0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10

Function at 0x4759c8
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49c458
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00475590
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x20], 0
call fcn.00475600
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004758e0
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
call fcn.004755b0
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x475cd0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x49c4d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00475590
xor ebx, ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.00475590
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x38], 1
call fcn.00475600
cmp dword [esp + 0x40], ebx
jne 0x475d58
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x1c]
mov esi, eax
mov byte [esp + 0x34], bl
call fcn.004755b0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.004755b0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea eax, [esp + 0xc]
push eax
call fcn.00475c10
add esp, 4
lea ecx, [esp + 0xc]
mov esi, 1
call fcn.00475a30
cmp eax, esi
jb 0x475ddb
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 1
push 1
push esi
push 0x4c7e18
lea ecx, [esp + 0x1c]
call fcn.004759b0
cmp eax, 1
jne 0x475dcd
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00475750
push ebx
lea ecx, [esp + 0x20]
call fcn.004485e0
push eax
call fcn.0047fa51
add esp, 8
test eax, eax
jge 0x475dcd
push ebx
lea ecx, [esp + 0x20]
call fcn.00475aa0
push eax
call edi
test eax, eax
je 0x475e10
lea ecx, [esp + 0xc]
inc esi
call fcn.00475a30
cmp esi, eax
jbe 0x475d7d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.004755b0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.004755b0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.004755b0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.004755b0
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x478390
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x47839b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x47849e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4ad5d4]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4ad5d4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4ad5d4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4ad5d4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4ad5d4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4ad5d4]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4ad5d4]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4ad5d4]
xor eax, edx
inc ecx
dec edi
jne 0x4783b6
pop edi
test esi, esi
je 0x4784c0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4ad5d4]
xor eax, edx
inc ecx
dec esi
jne 0x4784a2
pop esi
pop ebx
not eax
ret

Function at 0x478e50
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x478e91
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x478e86
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x478ea4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x479de0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x479e95
cmp dword [ebp + 4], 0xffffffff
jne 0x479e95
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x4c80a0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x479e5d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x479e5d
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.00478be0
add esp, 0x10
test eax, eax
jne 0x479e80
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.00479120
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x47a2f0
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x47a3b8
mov al, byte [ecx]
test al, al
je 0x47a3b8
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x47a31b
cmp al, 0x5c
jne 0x47a31d
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x47a313
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x47a354
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.0047fbd4
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.0047a2f0
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x47fa51
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47fa71
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00480648
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x47fa94
test byte [esp + 8], 2
je 0x47fa94
call fcn.004806bb
mov dword [eax], 0xd
call fcn.004806c4
mov dword [eax], 5
jmp 0x47fa6d
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0480
push 0x47eec4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [fcn.004848ec]
test eax, eax
je 0x484995
mov dword [ebp - 4], 1
call eax
jmp 0x484991
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x48499e
jmp fcn.004848ec

Function at 0x48fdcd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48fe05
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.0048de5a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048de32
jmp 0x48fe11
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4914bb
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 0x4914fd
call fcn.00496fba
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4914fd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4914f4
xor eax, eax
jmp 0x491505
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049150b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4974ea
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 0x497518
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x497536
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00497450
jmp 0x497536
mov eax, dword [esi + 0x14]
test eax, eax
je 0x497536
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00497450
test edi, edi
mov eax, edi
jne 0x497520
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10ffad5
Capabilities:
Encode data using xor

Disassembly:
cmp eax, dword [esp + 8]
push 0x69fe462f
push ebx
jmp 0xc809b2
Function at 0x11a013d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
pushfd
pop dword [esp + 0x30]
mov byte [esp + 4], ah
push dword [esp + 0x30]
pop dword [ebp]
push eax
pushfd
mov byte [esp + 4], 0xf0
push edx
lea esp, [esp + 0x40]
jmp 0x11a229f
Function at 0x401231
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x20], 8
jb 0x401241
mov eax, dword [esi + 0xc]
jmp 0x401244
lea eax, [esi + 0xc]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x401284
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40126a
mov al, 1
mov byte [esi + 0x24], al
pop esi
pop ebx
ret
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], ebx
mov byte [esi + 0x24], bl
pop esi
mov al, bl
pop ebx
ret
Function at 0x4052a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
test esi, esi
je 0x4052b3
cmp dword [edi], 2
jae 0x4052b3
mov eax, 0x7a
pop ecx
ret 4
mov eax, dword [edi]
lea ecx, [esp]
push ecx
push esi
add eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push 0
mov dword [edi], 0
mov ecx, dword [eax]
push str.PendingFileRenameOperations
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405323
cmp dword [esp + 8], 7
je 0x4052f3
mov eax, 0xd
pop ecx
ret 4
test esi, esi
mov ecx, dword [esp]
je 0x40531d
test cl, 1
jne 0x4052ea
mov eax, ecx
shr eax, 1
cmp eax, 1
jb 0x4052ea
cmp word [esi + eax*2 - 2], 0
jne 0x4052ea
cmp eax, 1
jbe 0x40531d
cmp word [esi + eax*2 - 4], 0
jne 0x4052ea
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop ecx
ret 4
Function at 0x407c00
Capabilities:
Create thread

Disassembly:
sub esp, 8
call fcn.00407ba0
test eax, eax
je 0x407c17
mov eax, 1
add esp, 8
ret 4
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x4053f0
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0xc]
mov dword [ecx + 0xe0], eax
xor eax, eax
add esp, 8
ret 4
Function at 0x407f90
Capabilities:
Delete directory
Set current directory

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, eax
push edi
push str.cleanUSF:_Deleting_Path__s
call fcn.00415740
mov ebx, 0x461120
call fcn.00415e40
push 0x208
call fcn.0041640f
add esp, 0xc
push edi
mov esi, eax
push 0x104
push esi
call fcn.00432288
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov ebp, dword [sym.imp.SHLWAPI.dll_StrRChrW]
push 0x5c
push 0
push esi
call ebp
test eax, eax
push esi
jne 0x407ff3
call fcn.00416414
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
sub eax, esi
sar eax, 1
push str.Setting_current_directory_to__s
mov word [esi + eax*2], 0
call fcn.00415740
mov ebx, 0x461120
call fcn.00415e40
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
call fcn.00407c50
add esp, 4
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40804d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.Error_in_deleting_folder__s._Error_Code:_d
call fcn.00415740
call fcn.00415ea0
add esp, 0xc
push 0x208
call fcn.0041640f
add esp, 4
push esi
mov edi, eax
push 0x104
push edi
call fcn.00432288
add esp, 0xc
push 0x5c
push 0
push edi
call ebp
push 0x5c
sub eax, edi
push 0
sar eax, 1
push edi
mov word [edi + eax*2], 0
call ebp
sub eax, edi
sar eax, 1
push edi
mov word [edi + eax*2], 0
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push edi
call fcn.00416414
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4080c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Error_in_deleting_folder__s._Error_Code:_d
call fcn.00415740
mov ebx, 0x461120
call fcn.00415ea0
add esp, 0xc
push 0x5c
push 0
push esi
call ebp
test eax, eax
je 0x408106
sub eax, esi
sar eax, 1
push esi
mov word [esi + eax*2], 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x408106
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Error_in_deleting_folder__s._Error_Code:_d
call fcn.00415740
mov ebx, 0x461120
call fcn.00415ea0
add esp, 0xc
push esi
call fcn.00416414
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x409100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409119
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x409154
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x409150
lea ebx, [ebx]
cmp esi, eax
jae 0x409154
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x409140
cmp esi, eax
jb 0x40915a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x40ded0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10
mov eax, dword [0x4749e0]
xor eax, esp
mov dword [esp + 0xc], eax
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x40deed
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetDriveNumberW]
add eax, 0x41
push eax
lea eax, [esp + 8]
push str._c:_
push eax
call fcn.00433195
add esp, 0xc
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor edx, edx
cmp eax, 3
setne dl
cmp dword [esp + 0x30], 8
mov esi, edx
jb 0x40df34
mov eax, dword [esp + 0x1c]
push eax
call fcn.00416414
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004321fe
add esp, 0x10
ret 0x1c
Function at 0x40fd70
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x214
mov eax, dword [0x4749e0]
xor eax, esp
mov dword [esp + 0x20c], eax
cmp dword [esi + 0xf4], 0
push ebx
push edi
jne 0x40ff57
mov edx, dword [esi + 0x2c]
mov eax, edx
lea edi, [eax + 2]
jmp 0x40fda0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fda0
sub eax, edi
push edx
sar eax, 1
add eax, 0x18
push str._s_resourcesAdobePIM.dll
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0043322b
add esp, 0x10
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 0xf4], eax
jne 0x40fe09
push str.Unable_to_load_pim.dll
mov eax, dword [esi + 0x50]
mov ebx, 0x461120
call fcn.00415ed0
add esp, 4
xor al, al
pop edi
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004321fe
add esp, 0x214
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.pim_createLibraryRefWithType
push eax
call edi
test eax, eax
mov dword [esi + 0x108], eax
jne 0x40fe28
push str.Unable_to_locate_pim_createLibraryRefWithType_function
jmp 0x40fde0
mov edx, dword [esi + 0xf4]
push str.pim_freeLiraryRef
push edx
call edi
test eax, eax
mov dword [esi + 0x10c], eax
jne 0x40fe47
push str.Unable_to_locate_pim_freeLiraryRef_function
jmp 0x40fde0
mov eax, dword [esi + 0xf4]
push str.pim_installPackage
push eax
call edi
test eax, eax
mov dword [esi + 0x110], eax
jne 0x40fe69
push str.Unable_to_locate_pim_installPackage_function
jmp 0x40fde0
mov ecx, dword [esi + 0xf4]
push str.pim_haveEnoughDiskSpaceToInstallPackages
push ecx
call edi
test eax, eax
mov dword [esi + 0x114], eax
jne 0x40fe8b
push str.Unable_to_locate_pim_haveEnoughDiskSpaceToInstallPackages_function
jmp 0x40fde0
mov edx, dword [esi + 0xf4]
push str.pim_registerProgressTicksCallback
push edx
call edi
test eax, eax
mov dword [esi + 0x118], eax
jne 0x40fead
push str.Unable_to_locate_pim_registerProgressTicksCallback_function
jmp 0x40fde0
mov eax, dword [esi + 0xf4]
push str.pim_getUpdateStatusAtPath
push eax
call edi
test eax, eax
mov dword [esi + 0x11c], eax
jne 0x40fecf
push str.Unable_to_locate_pim_getUpdateStatusAtPath_function
jmp 0x40fde0
mov ecx, dword [esi + 0xf4]
push str.pim_getCurrentPIMCFPath
push ecx
call edi
test eax, eax
mov dword [esi + 0x120], eax
jne 0x40fef1
push str.Unable_to_locate_pim_getCurrentPIMCFPath_function
jmp 0x40fde0
mov edx, dword [esi + 0xf4]
push str.pim_createOrUpdateAAMInventory
push edx
call edi
test eax, eax
mov dword [esi + 0x124], eax
jne 0x40ff13
push str.Unable_to_locate_pim_createOrUpdateAAMInventory_function
jmp 0x40fde0
mov eax, dword [esi + 0xf4]
push str.pim_haveEnoughDiskSpaceIfACFLatest
push eax
call edi
test eax, eax
mov dword [esi + 0x128], eax
jne 0x40ff35
push str.Unable_to_locate_pim_haveEnoughDiskSpaceIfACFLatest_function
jmp 0x40fde0
mov ecx, dword [esi + 0xf4]
push str.pim_copyPkgsFromACFToCFPath
push ecx
call edi
test eax, eax
mov dword [esi + 0x12c], eax
jne 0x40ff57
push str.Unable_to_locate_pim_copyPkgsFromACFToCFPath_function
jmp 0x40fde0
mov ecx, dword [esp + 0x214]
pop edi
pop ebx
xor ecx, esp
mov al, 1
call fcn.004321fe
add esp, 0x214
ret