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

Disassembly:
mov ecx, dword [esi + 4]
push ebx
push ebp
xor ebp, ebp
cmp ecx, ebp
je 0x401143
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esi + 8]
cmp eax, ebp
mov dword [esi + 4], ebp
je 0x401161
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], ebp
mov ecx, dword [esp + 0xc]
push 0x452d40
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, ebp
jne 0x40117f
pop ebp
xor al, al
pop ebx
ret 4
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebp
je 0x40124b
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, ebp
je 0x40124b
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebp
mov dword [esi + 8], eax
je 0x40124b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, ebp
je 0x40123e
push edi
push ebx
push eax
call fcn.00435060
mov eax, dword [esi + 8]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push ebp
push eax
mov dword [esp + 0x1c], ebp
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x401234
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004027b0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
add esp, 4
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x401234
mov ecx, dword [eax + 8]
cmp ecx, ebp
mov dword [eax + 8], ebp
jne 0x401222
pop edi
pop ebp
mov al, 1
pop ebx
ret 4
mov ecx, dword [esi + 4]
cmp ecx, ebp
je 0x401231
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 4], ebp
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 8], ebp
pop edi
pop ebp
xor al, al
pop ebx
ret 4
Function at 0x401260
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x447ec3
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x45e5e0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
mov ecx, esi
call fcn.00413089
xor edi, edi
mov dword [esp + 0x2c], edi
lea ebp, [esi + 0x10]
mov dword [esi], vtable.CMyMemDC.0
mov dword [ebp + 4], edi
mov dword [ebp], vtable.CBitmap.0
mov byte [esp + 0x2c], 1
xor eax, eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
cmp dword [ebx + 0xc], edi
sete al
cmp eax, edi
mov dword [esi + 0x30], eax
je 0x401370
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.004134de
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
lea edi, [esi + 0x20]
je 0x40130d
mov edx, dword [ebx]
mov eax, dword [edx + 0x50]
push edi
mov ecx, ebx
call eax
jmp 0x401328
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [edi], ecx
mov ecx, dword [esp + 0x44]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.004137a5
test ebp, ebp
je 0x40134e
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.0041382a
mov ecx, dword [esi + 0x24]
mov edx, dword [edi]
push ecx
mov dword [esi + 0x18], eax
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0041319d
jmp 0x401382
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 4]
mov dword [esi + 4], edx
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret 0x14

Function at 0x402440
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 0x402459
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402494
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402490
lea ebx, [ebx]
cmp esi, eax
jae 0x402494
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402480
cmp esi, eax
jb 0x40249a
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 0x4029d0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0xffffffffffffffff
push 0x4478d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x45e5e0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jge 0x402a1d
push eax
push str._SoluHwInv__CHwInvGather__bInit_Failed_to_initialize_tsecurity._Error_tcode__0x_X
call fcn.00443b10
add esp, 8
lea eax, [esp + 0xc]
push eax
push 0x450088
push 1
push 0
push 0x450158
mov dword [esp + 0x20], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x402a6c
push eax
push str._SoluHwInv__CHwInvGather__bInit_Failed_to_create_tIWbemLocator_object._Error_code_t_0x_X
call fcn.00443b10
add esp, 8
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
mov esi, dword [esp + 0x20]
add esi, 4
lea edi, [esp + 0x20]
mov dword [esi], 0
call fcn.00402870
mov dword [esp + 0x18], 0
mov eax, dword [eax]
test eax, eax
je 0x402a94
mov ecx, dword [eax]
jmp 0x402a96
xor ecx, ecx
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
mov edi, eax
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x20]
test eax, eax
je 0x402b04
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x402afc
test esi, esi
je 0x402afc
mov eax, dword [esi]
test eax, eax
je 0x402ae3
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x402af3
push eax
call fcn.00411d3b
add esp, 4
push esi
call fcn.00411d3b
add esp, 4
mov dword [esp + 0x20], 0
test edi, edi
jge 0x402b42
push edi
push str._SoluHwInv__CHwInvGather__bInit_Could_not_connect._Error_tcode__0x_X
call fcn.00443b10
mov eax, dword [esp + 0x14]
add esp, 8
test eax, eax
je 0x402b26
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
mov al, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x405f40
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x208
mov eax, dword [0x45e5e0]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
mov esi, ecx
mov edi, edx
xor ecx, ecx
mov eax, ecx
cdq
idiv esi
mov byte [esp + ecx + 0x14], cl
add ecx, 1
cmp ecx, 0x100
mov al, byte [edx + edi]
mov byte [esp + ecx + 0x113], al
jl 0x405f65
xor ecx, ecx
xor eax, eax
jmp 0x405f90
mov dl, byte [esp + eax + 0x14]
movzx esi, byte [esp + eax + 0x114]
movzx edi, dl
add esi, ecx
add edi, esi
mov ecx, edi
and ecx, 0x800000ff
jns 0x405fb5
dec ecx
or ecx, 0xffffff00
inc ecx
mov bl, byte [esp + ecx + 0x14]
mov byte [esp + eax + 0x14], bl
add eax, 1
cmp eax, 0x100
mov byte [esp + ecx + 0x14], dl
jl 0x405f90
mov edx, dword [esp + 0x224]
xor esi, esi
xor edi, edi
test edx, edx
jle 0x40604a
mov ecx, ebp
mov ebp, dword [esp + 0x21c]
sub ebp, ecx
add esi, 1
and esi, 0x800000ff
jns 0x405ff8
dec esi
or esi, 0xffffff00
inc esi
mov al, byte [esp + esi + 0x14]
movzx ebx, al
add edi, ebx
and edi, 0x800000ff
jns 0x406011
dec edi
or edi, 0xffffff00
inc edi
mov bl, byte [esp + edi + 0x14]
mov byte [esp + esi + 0x14], bl
mov byte [esp + edi + 0x14], al
movzx ebx, byte [esp + esi + 0x14]
movzx eax, al
add ebx, eax
and ebx, 0x800000ff
jns 0x406037
dec ebx
or ebx, 0xffffff00
inc ebx
movzx eax, byte [esp + ebx + 0x14]
xor al, byte [ecx + ebp]
add ecx, 1
sub edx, 1
mov byte [ecx - 1], al
jne 0x405fe5
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042e014
add esp, 0x208
ret
Function at 0x406780
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x448098
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push edi
mov eax, dword [0x45e5e0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ecx, esi
call fcn.00403c10
push 0x4513e8
push 0x450da4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x450da0
lea ecx, [esp + 0x14]
xor ebp, ebp
call fcn.0040b810
push 0x450da0
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], ebp
call fcn.0040b810
mov byte [esp + 0x40], 1
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, 0x41
mov dword [esp + 0x18], 0x1a
mov edi, edi
push edi
lea eax, [esp + 0x14]
push str._c:_
push eax
call fcn.00402790
push edi
lea ecx, [esp + 0x24]
push 0x450d90
push ecx
call fcn.00402790
mov edx, dword [esp + 0x28]
add esp, 0x18
push edx
call ebx
cmp eax, 1
je 0x406884
cmp eax, 4
je 0x406884
cmp eax, 5
je 0x406884
cmp eax, 6
je 0x406884
cmp eax, 2
je 0x406884
sub eax, 2
je 0x406884
sub eax, 1
jne 0x406884
mov eax, dword [esp + 0x14]
push eax
mov ecx, esi
add ebp, 1
call fcn.00403be0
push 0x450d4c
mov ecx, esi
call fcn.00403be0
mov ecx, dword [esp + 0x10]
push ecx
push 0x14e
push str.xxxx
push str.__s__d___strDrive_:__s
call fcn.00443b10
add esp, 0x10
add edi, 1
sub dword [esp + 0x18], 1
jne 0x406800
xor edi, edi
cmp ebp, edi
jne 0x406959
push 0x159
push str.xxxx
push str.__s__d___No_Drive__
call fcn.00443b10
lea edx, [esp + 0x28]
push str.NoDrive
push edx
call fcn.00443fd0
add esp, 0x14
push 0xffffffffffffffff
push edi
push eax
mov ecx, esi
mov byte [esp + 0x4c], 2
call fcn.004043d0
cmp dword [esp + 0x34], 8
jb 0x4068e6
mov eax, dword [esp + 0x20]
push eax
call fcn.00411d3b
add esp, 4
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40691c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406944
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x34
ret
mov byte [esp + 0x40], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40697e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4069a6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x4069c0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x448060
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x45e5e0]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
push 0x451474
lea ecx, [esp + 0xc]
call fcn.0040b810
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
mov dword [esp + 0x5c], 0
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x406ba7
mov ecx, dword [esp + 0x18]
fild dword [esp + 0x18]
test ecx, ecx
jge 0x406a2d
fadd qword [0x4535b0]
fld qword [0x4535b0]
mov edx, dword [esp + 0x14]
test edx, edx
fmul st(1), st(0)
fild dword [esp + 0x14]
jge 0x406a47
fadd qword [0x4535b0]
mov eax, dword [esp + 0x20]
faddp st(2)
test eax, eax
fxch st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld qword [0x4535a8]
fmul st(1), st(0)
fmul st(1), st(0)
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x10]
fild dword [esp + 0x20]
jge 0x406a77
fadd qword [0x4535b0]
mov ecx, dword [esp + 0x1c]
fmulp st(2)
test ecx, ecx
fild dword [esp + 0x1c]
jge 0x406a8b
fadd qword [0x4535b0]
faddp st(2)
sub esp, 8
fxch st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul st(1)
fmul st(1)
fmulp st(1)
fstp dword [esp + 0xc]
fld dword [esp + 0x18]
fld st(0)
fsub dword [esp + 0xc]
fstp dword [esp + 0x14]
fstp qword [esp]
push 0x16f
push str.xxxx
push str.__s__d___fTotal_:__.1fGB
call fcn.00443b10
fld dword [esp + 0x18]
add esp, 0xc
fstp qword [esp]
push 0x170
push str.xxxx
push str.__s__d___fAvail_:__.1fGB
call fcn.00443b10
fld dword [esp + 0x20]
add esp, 0xc
fstp qword [esp]
push 0x171
push str.xxxx
push str.__s__d___fUsed__:__.1fGB
call fcn.00443b10
fld dword [esp + 0x20]
push ecx
fstp qword [esp + 0x10]
lea edx, [esp + 0x44]
fld dword [esp + 0x1c]
fstp qword [esp + 8]
fld dword [esp + 0x28]
fstp qword [esp]
push str.fT__.1fGB_fA__.1fGB_fU__.1fGB
push edx
call fcn.00443fd0
add esp, 0x20
mov ecx, dword [esp + 0x5c]
push 0xffffffffffffffff
push 0
push eax
mov byte [esp + 0x60], 1
call fcn.004043d0
cmp dword [esp + 0x44], 8
jb 0x406b56
mov eax, dword [esp + 0x30]
push eax
call fcn.00411d3b
add esp, 4
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
add esp, 0x54
ret
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406bcf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
add esp, 0x54
ret
Function at 0x408910
Capabilities:
Get file version info

Disassembly:
sub esp, 0x818
mov eax, dword [0x45e5e0]
xor eax, esp
mov dword [esp + 0x814], eax
xor eax, eax
cmp edi, eax
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 8], eax
jne 0x408957
push 0x450da0
call fcn.0040b810
mov eax, esi
pop esi
mov ecx, dword [esp + 0x814]
xor ecx, esp
call fcn.0042e014
add esp, 0x818
ret
push ebx
push ebp
push eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
lea ebp, [ebx + ebx]
push ebp
call fcn.0042e722
push ebp
mov esi, eax
push 0
push esi
call fcn.00430450
add esp, 0x10
push esi
push ebx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
mov eax, dword [esp + 0x14]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
lea ecx, [esp + 0x28]
push str.StringFileInfo_04x_04xProductVersion
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x1c]
push edx
mov ecx, esi
call fcn.0040b810
mov ecx, dword [esp + 0x820]
pop ebp
pop ebx
mov eax, esi
pop esi
xor ecx, esp
call fcn.0042e014
add esp, 0x818
ret
Function at 0x40a670
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push 0x450da4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a707
push 0x450dc0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40a707
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x40a707
cmp dword [esp + 4], 0
je 0x40a707
lea edx, [esp + 4]
push edx
push 0xf013f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push str.AsyncRunOnce
push ecx
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
jmp 0x40a74b
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push str.AsyncRunOnce
push edx
mov dword [esp + 0x20], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
xor al, al
pop esi
add esp, 0xc
ret
Function at 0x40d460
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x447f40
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebp
push esi
push edi
mov eax, dword [0x45e5e0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov ebp, ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], 0
call fcn.0041c30b
push 0x451f50
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 1
call fcn.0040b660
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x50], 2
call fcn.0040ae00
add esp, 0xc
mov byte [esp + 0x44], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d4e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
push 0
push ecx
lea ecx, [esp + 0x28]
call fcn.0041c399
test eax, eax
je 0x40d583
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x20]
call fcn.0041c020
lea ecx, [esp + 0x20]
mov edi, eax
call fcn.0041c2ce
test eax, eax
jne 0x40d57f
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x24]
call eax
test eax, eax
je 0x40d54c
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
lea ecx, [esp + 0x28]
call fcn.0041c5b0
mov ecx, ebp
call fcn.0040d460
jmp 0x40d57f
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
call fcn.0041c5b0
mov eax, dword [eax]
push eax
call esi
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d57f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x40d507
lea ecx, [esp + 0x20]
call fcn.0041bf50
mov esi, dword [esp + 0x4c]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d5bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 0
call fcn.0041c331
lea eax, [esi - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d5ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x38
ret 4
Function at 0x40d610
Capabilities:
Clear file content
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
push 0x4527a8
push 0xa5
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40d643
cmp dword [esp + 0x24], 8
jb 0x40d63e
mov eax, dword [esp + 0x10]
push eax
call fcn.00411d3b
add esp, 4
xor al, al
pop esi
pop ecx
ret
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x40d66d
cmp dword [esp + 0x28], 8
jb 0x40d68e
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00411d3b
add esp, 4
pop ebx
xor al, al
pop esi
pop ecx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40d694
cmp dword [esp + 0x28], 8
jb 0x40d68e
mov edx, dword [esp + 0x14]
push edx
call fcn.00411d3b
add esp, 4
pop ebx
xor al, al
pop esi
pop ecx
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40d6f4
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x40d6b1
lea eax, [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d6f4
push 0
lea eax, [esp + 0x10]
push eax
push ebx
push edi
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
jne 0x40d704
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.00403bb0
pop edi
pop ebx
xor al, al
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.00403bb0
pop edi
pop ebx
mov al, 1
pop esi
pop ecx
ret