joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ebe0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
lea eax, [edi + 0x32550]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
jmp 0x44ec00
xor edx, edx
lea ecx, [edx + 1]
mov dword [esp + 0xc], 4
lea ecx, [ecx]
movzx ebx, word [edi + ecx*2 + 0x32bf4]
mov eax, esi
and eax, 1
mov ebp, eax
neg ebp
sar ebp, 4
shr ebx, 4
and ebp, 0x7f
xor ebx, ebp
add edx, dword [edi + ebx*4 + 0x30ea0]
add ecx, ecx
shr esi, 1
or ecx, eax
sub dword [esp + 0xc], 1
jne 0x44ec10
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
inc esi
mov dword [eax], edx
add eax, 4
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
cmp esi, 0x10
jb 0x44ec00
pop esi
pop ebp
mov dword [edi + 0x32590], 0
pop ebx
add esp, 0xc
ret

Function at 0x44ec70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x210
push ebx
push ebp
push edi
mov edi, 4
lea ebp, [esi + 0x30ea0]
movzx ebx, byte [esi + edi + 0x306a0]
mov ecx, ebx
mov edx, ebx
and edx, 1
shr ecx, 1
or edx, 2
dec ecx
shl edx, cl
mov eax, edi
push ebp
sub eax, edx
sub edx, ebx
lea edx, [esi + edx*2 + 0x32b0e]
push edx
call fcn.0044cde0
mov dword [esp + edi*4 + 0x24], eax
inc edi
add esp, 8
cmp edi, 0x80
jb 0x44ec84
lea ebp, [esp + 0x1c]
sub ebp, esi
lea eax, [esi + 0x32910]
lea ecx, [esi + 0x31d58]
sub ebp, 0x31d50
lea edi, [esi + 0x31950]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 4
jmp 0x44ecf7
mov ecx, dword [esp + 0xc]
xor ebx, ebx
cmp dword [esi + 0x32594], ebx
jbe 0x44ed4f
mov eax, ebx
or eax, 0x40
xor edx, edx
cmp eax, 1
je 0x44ed43
lea ecx, [ecx]
mov ebp, dword [esp + 0x10]
mov ecx, eax
and eax, 1
shr ecx, 1
movzx ebp, word [ebp + ecx*2]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add edx, dword [esi + ebp*4 + 0x30ea0]
mov eax, ecx
cmp eax, 1
jne 0x44ed10
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov dword [edi + ebx*4], edx
inc ebx
cmp ebx, dword [esi + 0x32594]
jb 0x44ed01
mov eax, 0xe
cmp dword [esi + 0x32594], eax
jbe 0x44ed76
lea esp, [esp]
mov edx, eax
shr edx, 1
sub edx, 5
shl edx, 4
add dword [edi + eax*4], edx
inc eax
cmp eax, dword [esi + 0x32594]
jb 0x44ed60
mov eax, dword [edi]
mov dword [ecx - 8], eax
mov edx, dword [edi + 4]
mov dword [ecx - 4], edx
mov eax, dword [edi + 8]
mov dword [ecx], eax
mov edx, dword [edi + 0xc]
mov dword [ecx + 4], edx
mov eax, 4
add ecx, 8
jmp 0x44eda0
movzx edx, byte [esi + eax + 0x306a0]
mov edx, dword [edi + edx*4]
add edx, dword [ecx + ebp]
inc eax
mov dword [ecx], edx
add ecx, 4
cmp eax, 0x80
jb 0x44eda0
sub dword [esp + 0x10], 0xffffff80
add dword [esp + 0xc], 0x200
sub ebp, 0x200
add edi, 0x100
sub dword [esp + 0x18], 1
mov dword [esp + 0x14], ebp
jne 0x44ecf3
pop edi
pop ebp
mov dword [esi + 0x3bcf8], 0
pop ebx
add esp, 0x210
ret

Function at 0x44fdc0
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push ecx
push edx
push 0
push 0
call fcn.00480f41
mov ecx, dword [esp + 0x20]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x44fde3
xor eax, eax
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x44fdf2
mov eax, 1
pop ecx
ret
Function at 0x454fa0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x49a4d5
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], vtable.CObjectVector_struct_NArchive::N7z::CMethodFull_.0
mov dword [esp + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0x10
mov dword [edi + 0x14], vtable.CRecordVector_struct_NArchive::N7z::CBind_.0
mov ecx, 1
mov byte [esp + 0x14], cl
lea esi, [edi + 0x30]
mov dword [edi + 0x28], ecx
mov byte [edi + 0x2c], al
push 4
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.00441340
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x456600
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49a49a
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [edi + 0x30]
push eax
call fcn.0047d358
mov eax, dword [edi + 0x1c]
lea esi, [edi + 0x14]
add esp, 4
push eax
push ebx
mov ecx, esi
mov dword [esi], vtable.CBaseRecordVector.0
call dword [0x4ab4cc]
mov eax, dword [esi + 0xc]
push eax
call fcn.0047d358
add esp, 4
push edi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x1c], 0xffffffff
call fcn.00456fc0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x457800
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x49aa43
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov al, byte [ebx]
mov byte [esi], al
lea edi, [ebx + 4]
lea eax, [esi + 4]
call fcn.00447500
mov dword [esp + 0x14], 0
mov ecx, dword [ebx + 0x10]
mov dword [esi + 0x10], ecx
mov byte [esp + 0x14], 1
mov edx, dword [ebx + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x18], eax
lea edi, [ebx + 0x1c]
lea eax, [esi + 0x1c]
call fcn.00447500
mov cl, byte [ebx + 0x28]
mov byte [esi + 0x28], cl
mov edx, dword [ebx + 0x30]
mov dword [esi + 0x30], edx
mov eax, dword [ebx + 0x34]
mov dword [esi + 0x34], eax
mov ecx, dword [ebx + 0x38]
mov dword [esi + 0x38], ecx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x45ce40
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49be48
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edx, dword [edi + 0x248]
mov eax, dword [edi + 0x240]
mov eax, dword [eax + 4]
lea ecx, [edi + 0x240]
push edx
push ebx
call eax
lea esi, [edi + 0xc]
call fcn.00446b10
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x3c]
or eax, 0xffffffff
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], ebx
mov dword [esi + 4], 4
xor esi, esi
lea esp, [esp]
cmp esi, dword [ebp + 0x14]
jge 0x45d009
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + esi*4]
lea eax, [ebp - 0x1c]
call fcn.00442920
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_CharUpperW]
mov edx, dword [ebp - 0x18]
test edx, edx
jne 0x45cf11
mov edx, dword [ebp - 0x1c]
push edx
call fcn.0047d358
add esp, 4
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x1c]
mov eax, esi
shl eax, 4
add eax, dword [ebp + 0x10]
cmp word [ecx], 0x42
jne 0x45cfc1
mov edi, 1
cmp edx, edi
jge 0x45cf35
mov edi, edx
test edx, edx
jle 0x45cf4c
sub edx, edi
lea eax, [edx + edx + 2]
push eax
lea edx, [ecx + edi*2]
push edx
push ecx
call fcn.004808c0
add esp, 0xc
sub dword [ebp - 0x18], edi
lea ebx, [ebp - 0x2c]
lea edi, [ebp - 0x1c]
call fcn.0045cdd0
mov edi, eax
test edi, edi
je 0x45cf7f
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0047d358
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
add eax, 0x240
call fcn.00457a00
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0047d358
mov edi, dword [ebp + 8]
add esp, 4
inc esi
jmp 0x45cec0
push eax
lea edx, [edi + 0xc]
push edx
call fcn.00446b70
mov ebx, eax
test ebx, ebx
je 0x45cff3
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0047d358
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0047d358
add esp, 4
inc esi
jmp 0x45cec0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46a980
Capabilities:
Create directory
Delete file
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x49eb68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.00406d60
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebp, 0xffffffff
cmp eax, ebp
je 0x46aa15
test al, 0x10
jne 0x46aa76
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x46aa15
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x46a9ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push esi
call edi
test eax, eax
jne 0x46aa76
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x46aa76
lea ecx, [esp + 0x14]
call fcn.0046a870
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jne 0x46aa4c
mov dword [esp + 0x20], ebp
jmp 0x46a9e6
push eax
call fcn.0046a980
add esp, 4
test eax, eax
jne 0x46aa64
lea ecx, [esp + 0x14]
call fcn.00406e10
jmp 0x46a9ff
push 0
push esi
call edi
test eax, eax
jne 0x46aa76
call ebx
cmp eax, 0xb7
jne 0x46aa59
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x46aa97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x46aab0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
push ebp
mov ebp, dword [esp + 0x220]
push esi
push edi
push 0
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
push edi
push eax
push ebx
mov dword [esp + 0x20], 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46ab42
xor edx, edx
push 0x208
push edx
lea eax, [esp + 0x1a]
push eax
mov word [esp + 0x1c], dx
call fcn.004820f0
mov ecx, dword [esp + 0x18]
push ecx
push ebp
lea edx, [esp + 0x24]
push str.Path:_s__PartSize__d
push edx
call fcn.0047e38d
mov eax, dword [esp + 0x28]
add esp, 0x1c
add esi, eax
sub edi, eax
je 0x46ab5c
push 0
lea eax, [esp + 0x10]
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46aaf5
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0047cee5
add esp, 0x214
ret
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0047cee5
add esp, 0x214
ret
Function at 0x46e2d0
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp byte [edi], 0
jne 0x46e2d8
mov al, 1
ret
push esi
mov esi, dword [edi + 4]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x46e2fd
xor al, al
test al, al
sete al
xor ecx, ecx
test al, al
sete cl
mov byte [edi], al
mov al, cl
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
test al, al
sete al
xor ecx, ecx
test al, al
sete cl
mov byte [edi], al
mov al, cl
pop esi
ret
Function at 0x471950
Capabilities:
Check for peb beingdebugged flag
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x49eca8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
xor eax, eax
mov word [esp + 0x14], ax
mov eax, edi
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4719a1
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x14]
call fcn.0040fdc0
push edi
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4719e2
cmp dword [esp + 0x28], 8
jb 0x471a63
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x471a5b
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push edi
call esi
test eax, eax
jne 0x471a4f
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0xb7
je 0x471a4f
lea edx, [esp + 0x10]
push edx
call fcn.00471830
add esp, 4
cmp dword [esp + 0x24], 0
jne 0x471a21
lea esi, [esp + 0x10]
call fcn.0041dfc0
xor eax, eax
jmp 0x471a68
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x471a30
lea eax, [esp + 0x14]
push eax
call fcn.00471950
add esp, 4
test eax, eax
je 0x471a14
push 0
push edi
call esi
test eax, eax
jne 0x471a4f
call ebp
cmp eax, 0xb7
jne 0x471a14
cmp dword [esp + 0x28], 8
jb 0x471a63
mov eax, dword [esp + 0x14]
push eax
call fcn.0047ceda
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0047cee5
add esp, 0x2c
ret
Function at 0x471a90
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
push 0x49dda7
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov esi, dword [esp + 0x248]
xor eax, eax
test esi, esi
je 0x471cf6
push 0x208
push eax
lea ecx, [esp + 0x2e]
push ecx
mov word [esp + 0x30], ax
call fcn.004820f0
add esp, 0xc
push 0x104
lea edx, [esp + 0x28]
push esi
push edx
call fcn.00481646
add esp, 0xc
test eax, eax
je 0x471cf4
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x471cf4
lea ecx, [esp + 0x24]
call fcn.00472000
test al, al
je 0x471cf4
inc dword [0x4c57b4]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x28]
call fcn.00406d60
mov esi, eax
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x4ac0c8
mov dword [esp + 0x244], 0
call fcn.00406d60
mov byte [esp + 0x240], 1
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
push edx
push str._s_s
mov ecx, 0x4c5908
call fcn.00472af0
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.00406e10
lea ecx, [esp + 0x18]
mov dword [esp + 0x240], 0xffffffff
call fcn.00406e10
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, eax
test ebp, ebp
jne 0x471cf0
cmp dword [esp + 0x24c], eax
je 0x471cf0
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
call fcn.00406d60
lea edx, [esp + 0x20]
push edx
lea eax, [ebp + 4]
lea ecx, [esp + 0x20]
mov dword [esp + 0x244], 2
call fcn.00412120
push eax
mov ecx, str..tmp
call fcn.004122e0
add esp, 4
lea ecx, [esp + 0x1c]
mov bl, al
call fcn.00406e10
test bl, bl
je 0x471cd6
lea esi, [esp + 0x18]
call fcn.00404f30
lea esi, [esp + 0x20]
mov byte [esp + 0x240], 3
call fcn.00412100
lea ecx, [esp + 0x1c]
mov edx, esi
call fcn.00412190
mov ecx, 0x104
lea esi, [esp + 0x18]
mov byte [esp + 0x240], 4
call fcn.00407680
push eax
mov eax, dword [esp + 0x20]
push ebp
push 0x4a9af4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
call fcn.00412810
test edi, edi
jne 0x471c7c
lea ecx, [esp + 0x24]
push ecx
push str._s.tmp
mov edi, esi
call fcn.004128d0
mov esi, dword [esp + 0x20]
jmp 0x471c88
mov esi, dword [esp + 0x18]
push 1
push esi
call fcn.00471a90
add esp, 8
lea edx, [esp + 0x24]
push esi
push edx
call fcn.0047e17e
add esp, 8
push 4
push 0
test eax, eax
jne 0x471caa
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x471cb7
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebp, eax
lea ecx, [esp + 0x1c]
call fcn.00406e10
lea ecx, [esp + 0x18]
call fcn.00406e10
lea ecx, [esp + 0x20]
call fcn.00406e10
mov eax, ebp
jmp 0x471cf6
push 4
push 0
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x20]
mov ebp, eax
call fcn.00406e10
mov eax, ebp
jmp 0x471cf6
xor eax, eax
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0047cee5
add esp, 0x230
ret
Function at 0x472000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x49dcc6
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x4720d8
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4720d8
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x56]
push ecx
mov word [esp + 0x58], ax
call fcn.004820f0
add esp, 0xc
push 0x104
lea edx, [esp + 0x50]
push esi
push edx
call fcn.00481646
add esp, 0xc
test eax, eax
jne 0x472101
mov eax, esi
lea ecx, [esp + 0x14]
call fcn.004127d0
mov dword [esp + 0x268], 0
mov eax, dword [0x4c5900]
mov edx, dword [eax + 4]
lea edi, [eax + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.004722b0
mov ecx, 0x4c58ec
mov esi, eax
call fcn.00472350
mov dword [edi], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
cmp dword [esp + 0x2c], 8
jb 0x4720d8
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0047ceda
add esp, 4
xor al, al
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.0047cee5
add esp, 0x25c
ret
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
je 0x472144
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x30]
call fcn.004127d0
lea eax, [esp + 0x30]
mov ebx, 0x4c58ec
mov dword [esp + 0x268], 1
call fcn.00472260
lea esi, [esp + 0x30]
call fcn.0041dfc0
jmp 0x4720d8
mov al, 1
jmp 0x4720da

Function at 0x472150
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x40c], eax
lea eax, [esp]
push eax
push 0x201
push 0
push str.SoftwareBottleTechShuame
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47223b
xor ecx, ecx
push 0x400
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.004820f0
mov edx, dword [esp + 0xc]
add esp, 0xc
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push str.InstallDir
push edx
mov dword [esp + 0x1c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x472231
lea eax, [esp + 8]
push eax
push 0x104
push esi
call fcn.00480146
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4721e3
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x47220d
push 0x4ac0c4
push 0x104
push esi
call fcn.00481754
add esp, 0xc
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.0047cee5
add esp, 0x410
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
xor ecx, esp
xor eax, eax
call fcn.0047cee5
add esp, 0x410
ret
Function at 0x472680
Capabilities:
Create thread

Disassembly:
sub esp, 0xf8
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0xf0], eax
cmp dword [0x4c5954], 0
push ebp
push esi
push edi
mov esi, ecx
je 0x4726bf
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.0047cee5
add esp, 0xf8
ret
call fcn.00472fc0
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4726d0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
mov esi, 0x4c5918
call fcn.0040fdc0
xor eax, eax
push 0xc6
push eax
lea ecx, [esp + 0x3a]
push ecx
mov dword [0x4c5954], 1
mov byte [esp + 0x1c], 0
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov dword [esp + 0x29], eax
mov word [esp + 0x2d], ax
mov byte [esp + 0x2f], al
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov word [esp + 0x3c], ax
call fcn.004820f0
add esp, 0xc
push 1
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.GlobalBFD88F2D_0990_4de4_AD0F_764F5894389A__d
lea edx, [esp + 0x38]
push 0x63
push edx
call fcn.0047e425
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
add esp, 0x10
lea eax, [esp + 0x30]
push eax
push 1
push 1
lea ecx, [esp + 0x30]
push ecx
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [0x4c590c]
test eax, eax
je 0x4727ad
push eax
call ebp
push 0
push 0
push 0
push 0
mov dword [0x4c590c], edi
call esi
mov esi, eax
mov eax, dword [0x4c5910]
test eax, eax
je 0x4727cb
push eax
call ebp
cmp dword [0x4c590c], 0
mov dword [0x4c5910], esi
je 0x47282b
test esi, esi
je 0x47282b
push 0
push 0
push 0x4c5908
push 0x472cf0
push 0
push 0
call fcn.00480f41
mov esi, eax
mov eax, dword [0x4c5914]
add esp, 0x18
test eax, eax
je 0x472806
push eax
call ebp
xor eax, eax
test esi, esi
mov dword [0x4c5914], esi
setne al
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.0047cee5
add esp, 0xf8
ret
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0047cee5
add esp, 0xf8
ret