joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10184820
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x101a165c], 0
mov dword [0x101a1660], 0
mov dword [0x101a166c], 0
mov edi, dword [0x101a1654]
add edi, 0x3c3
mov dword [0x101a1654], edi
mov dword [0x101a1658], 0x5f1
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
je 0x101849ef
xor eax, eax
mov ecx, eax
mov edx, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x10184897
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x101a1658], 0x1cfd
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x101a165c], edx
mov dword [0x101a1654], 0x18db
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x101a1660], edx
mov dword [0x101a1658], 0x198a
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x101a1664], cl
mov dword [0x101a1654], 0x13a5
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x101a1658], 0x1ce8
mov dword [0x101a1654], 0x15f
mov cl, byte [0x101a1664]
mov edx, dword [0x101a1660]
mov byte [edi + edx], cl
mov edx, dword [0x101a1654]
add edx, 0xffffedd6
mov dword [0x101a1654], edx
mov edx, dword [0x101a165c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x101a1660]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x101a166c], ebx
mov dword [0x101a1654], 0x2cc
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
mov ch, byte [edx + ebx]
mov edx, dword [0x101a1658]
mov bl, cl
add bl, byte [0x101a1671]
mov byte [0x101a1670], bl
mov byte [0x101a1671], ch
mov byte [0x101a1672], cl
xor ch, cl
add edx, 0xffffee6e
mov dword [0x101a1658], edx
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
mov byte [edx + esi], ch
mov dword [0x101a1654], 0x13c3
add esi, 1
mov edx, dword [ebp - 0x10]
cmp esi, edx
mov dword [ebp - 0x38], esi
je 0x101849ed
mov eax, dword [0x101a165c]
mov ecx, dword [0x101a1660]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
jmp 0x10184897
jmp 0x101849ef
mov dword [0x101a1654], 0xb60
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101851d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [0x101a1658], 0x1626
mov ecx, dword [0x101a1654]
add ecx, 0x31
mov dword [0x101a1654], ecx
mov dword [ebp - 0x10], eax
call fcn.10184bc0
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov dword [0x101a1654], 0xd6b
mov esi, dword [eax + esi + 0x78]
mov dword [0x101a1654], 0x12
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov ebx, dword [eax + esi + 0x24]
mov dword [0x101a1658], 0x40a
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
je 0x10185362
jmp 0x101852ac
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x40], edx
jmp 0x101852be
mov eax, dword [ebp - 0x38]
add eax, 2
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov edx, dword [ebp - 0x18]
cmp ecx, edx
setb bl
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov byte [ebp - 0x49], bl
mov al, byte [ebp - 0x49]
test al, 1
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
jne 0x10185256
jmp 0x1018535b
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
jmp 0x10185256
mov eax, dword [ebp - 0x40]
mov ecx, eax
mov edx, dword [ebp - 0x3c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov bl, cl
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x52], cl
mov byte [ebp - 0x53], bl
je 0x1018531a
mov eax, dword [ebp - 0x50]
add eax, 1
mov cl, byte [ebp - 0x51]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x52]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dl, byte [ebp - 0x52]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x53], dl
jne 0x101852be
mov al, byte [ebp - 0x53]
test al, 1
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x58], ecx
jne 0x1018532c
jmp 0x10185272
mov eax, dword [ebp - 0x58]
movzx eax, word [eax]
mov dword [0x101a1658], 0x182a
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x1c]
mov esi, dword [ebp - 0x1c]
add esi, dword [ecx + eax*4]
mov dword [0x101a1654], 0x274
mov dword [ebp - 0x28], esi
jmp 0x10185362
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x10185362
mov eax, dword [ebp - 0x28]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10185370
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov eax, dword [0x101a1658]
add eax, 0x1c78
mov dword [0x101a1658], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov dword [0x101a1658], 0x19
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
je 0x101853e0
mov eax, dword [ebp - 0x14]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], eax
jl 0x101853b3
mov eax, dword [ebp - 0x18]
mov dword [0x101a1658], 0x56e
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x1c], eax
jne 0x101854b6
mov dword [0x101a1654], 0x582
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x101854b6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x101854b6
mov dword [0x101a1654], 0x7df
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
mov dx, word [eax + ecx*2 - 0x14]
mov word [ebp - 0x1e], dx
mov ax, word [ebp - 0x1e]
cmp ax, 0x64
jne 0x101854b6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x101854b6
mov dword [0x101a1654], 0x91c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x101854b6
mov dword [0x101a1658], 0x153e
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff9
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
cmp word [eax], 0x6c
jne 0x101854b6
mov dword [0x101a1658], 0x190e
mov eax, 1
mov dword [ebp - 0x28], eax
jmp 0x101854c5
xor eax, eax
mov dword [0x101a1654], 0x10e3
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add esp, 0x28
pop ebp
ret
Function at 0x10185de0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov eax, 0x10
call fcn.10183f80
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov dword [0x101a1654], 0x1594
mov dword [esi + 0x24], eax
call fcn.10001090
xor ecx, ecx
cmp eax, 0
mov dword [esi + 0x20], ecx
jne 0x10185f6b
lea eax, [esi + 0x28]
mov dword [0x101a1658], 0x1aa1
mov dword [0x101a1654], 0x17ad
mov dword [esi + 0x1c], eax
call fcn.10185370
cmp eax, 0
sete cl
mov byte [esi + 0x1b], cl
xor eax, eax
mov cl, byte [esi + 0x1b]
test cl, 1
mov dword [esi + 0x14], eax
jne 0x10185e5f
jmp 0x10185f65
sub esp, 4
mov eax, dword [esi + 0x24]
mov dword [esp], eax
call fcn.101855b0
add esp, 4
lea ecx, [0x101842c0]
mov edx, dword [esi + 0x24]
mov edi, dword [edx]
mov dword [esi + 0x54], edi
mov dword [0x101a1658], 0x1364
mov dword [esi + 0x4c], 0x131e00
mov edi, dword [0x101a1640]
mov dword [esi + 0x5c], edi
mov edi, dword [0x101a1644]
mov dword [esi + 0x28], edi
mov edi, dword [0x101a1648]
mov dword [esi + 0x64], edi
mov edi, dword [0x101a164c]
mov dword [esi + 0x58], edi
mov edi, dword [0x101a1650]
mov dword [esi + 0x7c], edi
mov dword [0x101a1654], 0x423
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], ecx
mov eax, dword [esi + 0xc]
cmp word [eax], 0x5a4d
mov dword [esi + 8], eax
jne 0x10185eed
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esi + 4], eax
mov dword [esi], ecx
je 0x10185eff
mov eax, dword [esi + 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esi + 0xc], eax
jmp 0x10185ecc
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [esi + 0x28]
mov dword [esi + 0x44], eax
mov dword [0x101a1658], 0x2099
mov eax, dword [eax + ecx + 0x50]
mov dword [esi + 0x68], eax
mov dword [0x101a1654], 0xa15
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 8]
push ecx
push edx
call fcn.10184f20
add esp, 8
mov ecx, dword [0x101a1654]
add ecx, 0xbd7
mov dword [0x101a1654], ecx
sub esp, 4
mov ecx, esp
lea edx, [esi + 0x28]
mov dword [ecx], edx
call eax
mov eax, 1
mov dword [0x101a1654], 0x1824
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x20]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x1110058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.011101a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x111007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x111006a
add dl, dl
jne 0x1110089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x11100dc
xor eax, eax
add dl, dl
jne 0x1110096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x111017d
add dl, dl
jne 0x11100a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11100b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11100bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11100c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x11100d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1110075
mov eax, 1
add dl, dl
jne 0x11100ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x11100f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x11100e1
sub eax, ebx
mov ebx, 1
jne 0x1110128
mov ecx, 1
add dl, dl
jne 0x111010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1110119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1110105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1110075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x111013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x111014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1110136
cmp eax, 0x7d00
jae 0x111016d
cmp eax, 0x500
jb 0x1110168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1110075
cmp eax, 0x7f
ja 0x1110170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1110075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x111019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1110075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x409978
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a4b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a64
push ebx
push 0x409a70
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403388
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4099f8
mov al, 0x69
call fcn.0040961c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040994c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a01
call fcn.0040994c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a52
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x409b04
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
jmp 0x409bad
cmp dword [esi + 0x10], 0x1000
jne 0x409b99
test byte [esi + 0x15], 1
jne 0x409b99
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b58
cmp eax, 2
je 0x409b58
cmp eax, 0x10
je 0x409b58
cmp eax, 0x20
jne 0x409b6d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b6d
mov bl, 1
xor ebp, ebp
jmp 0x409b7e
mov eax, dword [esi]
add eax, ebp
call fcn.00409afc
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b71
test bl, bl
je 0x409b99
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b30
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x404420
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x660
push ebx
push ebp
push esi
mov esi, dword [esp + 0x670]
xor ebp, ebp
cmp esi, ebp
je 0x4045a5
push esi
call fcn.004113da
add esp, 4
test eax, eax
je 0x4045a5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4045a5
test bl, 1
je 0x40446d
and ebx, 0xfffffffe
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x404594
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], bp
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x46c]
push eax
call fcn.00411421
lea ecx, [esp + 0x470]
push 0x49d8f4
push ecx
call fcn.004113f7
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x24]
add esp, 0x10
mov dword [esp + 0x10], ebp
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x468]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404582
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea ecx, [esp + 0x3c]
push 0x49d940
push ecx
call ebp
test eax, eax
je 0x404567
lea edx, [esp + 0x3c]
push 0x49d93c
push edx
call ebp
test eax, eax
je 0x404567
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x262]
mov word [esp + 0x260], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x260]
push esi
push eax
call fcn.00411421
lea ecx, [esp + 0x268]
push 0x49d804
push ecx
call fcn.004113f7
lea edx, [esp + 0x4c]
lea eax, [esp + 0x270]
push edx
push eax
call fcn.004113f7
lea ecx, [esp + 0x278]
push ecx
call fcn.00404420
add esp, 0x1c
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4044e9
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x660
ret
Function at 0x4045c0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x664
push ebx
push esi
mov esi, dword [esp + 0x670]
xor ebx, ebx
cmp esi, ebx
je 0x404766
push esi
call fcn.004113da
add esp, 4
test eax, eax
je 0x404766
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x18]
push ebx
push eax
push esi
mov dword [esp + 0x24], ebx
call fcn.00401ca0
add esp, 0x1c
test eax, eax
je 0x404766
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x404766
test al, 1
je 0x40462c
and al, 0xfe
push eax
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 8]
test al, 0x10
je 0x404756
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], bx
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x46c]
push ecx
stosw word es:[edi], ax
call fcn.00411421
lea edx, [esp + 0x470]
push 0x49d8f4
push edx
call fcn.004113f7
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x22c]
mov dword [esp + 0x228], ebx
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x218]
lea ecx, [esp + 0x468]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404745
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea edx, [esp + 0x248]
push 0x49d940
push edx
call ebp
test eax, eax
je 0x404726
lea eax, [esp + 0x248]
push 0x49d93c
push eax
call ebp
test eax, eax
je 0x404726
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push esi
push ecx
stosw word es:[edi], ax
call fcn.00411421
lea edx, [esp + 0x1c]
push 0x49d804
push edx
call fcn.004113f7
lea eax, [esp + 0x258]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.004113f7
lea edx, [esp + 0x2c]
push edx
call fcn.004045c0
add esp, 0x1c
lea eax, [esp + 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4046b1
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
add esp, 0x664
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebx
add esp, 0x664
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x664
ret
Function at 0x4048e0
Capabilities:
Get graphical window text

Disassembly:
call fcn.004234f0
test eax, eax
je 0x4048ff
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x404980
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x404980
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.0046eec7
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404980
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x404980
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.00401150
add esp, 0x10
test eax, eax
je 0x404980
push esi
call fcn.004113da
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret

Function at 0x422db0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x4a7500]
sub esp, 0x114
test eax, eax
jne 0x422efd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
push 0x4a7298
mov dword [0x4a7500], 1
mov dword [0x4a7298], 0x114
call esi
mov edx, dword [0x4a72a8]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x4a22f8], eax
je 0x422ed8
push ebx
push 0x4a73b0
mov dword [0x4a73b0], 0x11c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x49d660
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x4a74f4], eax
call edi
mov dword [0x4a74f8], eax
mov eax, dword [0x4a74f4]
test eax, eax
push 0x4a74d0
je 0x422e54
call eax
jmp 0x422e5a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x4a73b4]
cmp eax, 6
jae 0x422e72
cmp eax, 5
jne 0x422e86
cmp dword [0x4a73b8], 2
jb 0x422e86
cmp word [0x4a74d0], 9
jne 0x422e86
mov dword [0x4a728c], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x422ea4
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x4a74fc], edx
jmp 0x422eaa
mov edx, dword [0x4a74fc]
test edx, edx
je 0x422ed8
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
call edx
test eax, eax
jne 0x422ed8
mov ecx, dword [esp + 0x14]
mov dword [0x4a72a4], ecx
push 0x4a72a0
push 0x4a729c
call fcn.004232a0
add esp, 8
call fcn.00422f10
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x424150
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491908
push 0x41527c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [0x4a7504]
xor ebx, ebx
cmp eax, ebx
jne 0x4242b0
mov word [ebp - 0x220], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4242ab
mov word [ebp - 0x42c], bx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x42a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.user32.dll
lea ecx, [ebp - 0x220]
push ecx
push 0x4a33e4
lea edx, [ebp - 0x42c]
push edx
call fcn.00411ae9
add esp, 0x10
mov dword [ebp - 0x434], ebx
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x224], eax
push eax
call fcn.0046eec7
add esp, 4
mov esi, eax
mov dword [ebp - 0x440], esi
cmp esi, ebx
je 0x4242ab
push esi
mov edx, dword [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x434]
push eax
lea ecx, [ebp - 0x42c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4242a2
mov dword [ebp - 0x438], ebx
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x438]
push eax
push 0x4a33b0
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4242a2
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x43c], eax
mov ecx, dword [eax]
mov dword [0x4a7504], ecx
mov dword [ebp - 4], 0xffffffff
jmp 0x4242a2
push esi
call fcn.0046eef0
add esp, 4
mov eax, dword [0x4a7504]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret