joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d5d3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4973d5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040cf70
test al, al
je 0x40d557
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
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
cmp eax, 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
sete byte [ebp - 0xd]
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0040d1a0
cmp dword [ebp - 0x24], 0
jle 0x40d6e8
push dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
call fcn.00402250
mov byte [ebp - 4], 1
xor edi, edi
mov eax, dword [ebp - 0x24]
or ebx, 0xffffffff
dec eax
mov dword [ebp - 0x1c], eax
lea esi, [edi + 1]
cmp eax, esi
jle 0x40d69e
nop dword [eax]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402250
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
push 1
push 0x4bb74c
call fcn.00402030
cmp esi, dword [ebp - 0x24]
jge 0x40d6e8
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
mov eax, dword [eax + esi*4]
push dword [eax - 0xc]
push eax
call fcn.00402030
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40d61f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0xb7
je 0x40d61f
cmp byte [ebp - 0xd], 0
je 0x40d673
push 1
push 0x4bb74c
lea ecx, [ebp - 0x18]
call fcn.00402030
cmp esi, dword [ebp - 0x24]
jge 0x40d6e8
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
mov eax, dword [eax + esi*4]
push dword [eax - 0xc]
push eax
call fcn.00402030
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d667
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, dword [ebp - 0x1c]
jl 0x40d5c0
jmp 0x40d69e
cmp esi, 1
jbe 0x40d680
lea ecx, [ebp - 0x18]
call fcn.0040ce70
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40d69e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
cmp edi, 0xb7
cmovne esi, edi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40d6c5
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407bd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0xc000008c
call fcn.00408180
int3
Function at 0x40d830
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497410
mov eax, dword fs:[0]
push eax
sub esp, 0x62c
mov eax, dword [0x4da064]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [esi], 0
call fcn.0041dd60
test al, al
je 0x40d9e3
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x24
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
mov eax, edi
cmp word [edi], cx
je 0x40d89d
lea eax, [eax + 2]
inc ecx
cmp word [eax], 0
jne 0x40d893
xor edx, edx
lea eax, [ebp - 0x21c]
cmp word [ebp - 0x21c], dx
je 0x40d8c2
nop
lea eax, [eax + 2]
inc edx
cmp word [eax], 0
jne 0x40d8b0
cmp ecx, edx
jb 0x40d9e3
lea ecx, [ebp - 0x21c]
xor edx, edx
call fcn.00405090
mov ecx, eax
test ecx, ecx
je 0x40d8f7
nop word [eax + eax]
mov ax, word [edi + edx*2]
cmp ax, word [ebp + edx*2 - 0x21c]
jne 0x40d9e3
inc edx
cmp edx, ecx
jb 0x40d8e0
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.00478260
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
lea eax, [ebp - 0x62c]
push 0
push eax
call fcn.00478260
add esp, 0xc
lea eax, [ebp - 0x62c]
push eax
push 0
push str.shim_clone
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x62c]
mov ecx, esi
push eax
call fcn.0040da70
mov dword [ebp - 0x634], 0
mov byte [ebp - 0x630], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
movzx ecx, byte [ebp - 0x630]
test eax, eax
push 0
push dword [esi]
mov edx, 1
cmovne ecx, edx
push edi
mov byte [ebp - 0x630], cl
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete al
mov byte [esi + 4], al
je 0x40d9b8
push edi
mov ecx, esi
call fcn.0040da70
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x630], 0
je 0x40d9ef
push dword [ebp - 0x634]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
test eax, eax
mov eax, esi
je 0x40d9f1
mov byte [ebp - 0x630], 0
jmp 0x40d9f1
push edi
mov ecx, esi
call fcn.0040da70
mov byte [esi + 4], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047615e
mov esp, ebp
pop ebp
ret 4
Function at 0x40dbc0
Capabilities:
Delete file
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497455
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], edx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040d830
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
mov ebx, dword [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40dc7e
push eax
lea ecx, [ebp - 0x14]
call fcn.00407de0
mov esi, dword [ebp - 0x14]
test al, al
jne 0x40dc31
mov edi, 8
jmp 0x40dc86
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40dc7e
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4bb74c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40dc86
cmp dword [ebp - 0x24], 0
je 0x40dc86
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
test ecx, ecx
je 0x40dc70
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40dc86
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x40dc86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 0
cmp byte [ebp - 0x2c], 0
je 0x40dc97
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.0047662a
add esp, 4
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.0047662a
add esp, 4
mov dword [ebp - 0x14], 0
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

Function at 0x410810
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 8]
mov ecx, 0
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x410841
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x410830
pop edi
mov eax, esi
pop esi
ret 8
Function at 0x410c70
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x498088
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
movzx eax, byte [edi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
lea eax, [ebp - 0x1c]
imul ebx, ecx, 0x1000193
push ebx
push edi
push eax
call fcn.00410270
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x410cfc
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4dc2fc], 0x6666666
je 0x410e69
mov dword [ebp - 0x14], 0x4dc2f8
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
push 0x28
mov dword [ebp - 0x10], 0
call fcn.004765fa
mov ecx, dword [edi]
lea edx, [edi + 4]
mov esi, eax
add esp, 4
lea eax, [esi + 8]
mov dword [ebp - 0x10], esi
mov dword [eax], ecx
lea ecx, [eax + 4]
mov dword [ebp + 0xc], eax
push edx
call fcn.0040eac0
mov dword [ebp - 4], 2
mov ecx, dword [0x4dc2fc]
mov edi, dword [0x4dc310]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4c2080]
mov eax, edi
shr eax, 0x1f
cvtpd2ps xmm3, xmm0
movd xmm0, edi
cvtdq2pd xmm0, xmm0
movaps xmm2, xmm3
addsd xmm0, qword [eax*8 + 0x4c2080]
cvtpd2ps xmm1, xmm0
movss xmm0, dword [0x4dc2f4]
divss xmm2, xmm1
comiss xmm2, xmm0
jbe 0x410df7
divss xmm3, xmm0
movaps xmm0, xmm3
call fcn.00406b60
call fcn.00494520
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp edi, ecx
jae 0x410dd9
cmp edi, 0x200
jae 0x410dd7
shl edi, 3
cmp edi, ecx
jae 0x410dd9
mov edi, ecx
push edi
call fcn.00411500
push ebx
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00410270
mov ecx, dword [0x4dc2fc]
mov edx, dword [eax]
jmp 0x410dfa
mov edx, dword [ebp - 0x1c]
mov edi, dword [edx + 4]
inc ecx
mov dword [0x4dc2fc], ecx
mov dword [esi], edx
mov dword [esi + 4], edi
mov dword [edi], esi
mov dword [edx + 4], esi
mov eax, dword [0x4dc30c]
mov ecx, dword [0x4dc300]
and eax, ebx
mov dword [ebp - 0x10], 0
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [0x4dc2f8]
jne 0x410e32
mov dword [ecx + eax*8], esi
jmp 0x410e41
cmp ebx, edx
jne 0x410e3b
mov dword [ecx + eax*8], esi
jmp 0x410e45
cmp dword [ecx + eax*8 + 4], edi
jne 0x410e45
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.00474fe5
int3
Function at 0x411500
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49834d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 0x1fffffff
mov edi, 1
bsr ecx, eax
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x4116a0
lea eax, [ecx - 1]
mov esi, dword [0x4dc2f8]
or eax, edi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x4dc300
lea eax, [edi + edi]
push eax
call fcn.004060d0
lea eax, [edi - 1]
mov dword [0x4dc310], edi
mov dword [0x4dc30c], eax
mov dword [ebp - 0x14], 0x4dc2f4
mov dword [ebp - 4], 0
mov ecx, dword [0x4dc2f8]
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x41165c
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
mov eax, dword [0x4dc300]
imul edi, edi, 0x1000193
and edi, dword [0x4dc30c]
mov ebx, dword [eax + edi*8]
lea eax, [eax + edi*8]
mov dword [ebp + 8], eax
cmp ebx, esi
jne 0x4115e8
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x411652
mov eax, dword [eax + 4]
mov edi, dword [ecx + 8]
cmp edi, dword [eax + 8]
jne 0x41161f
mov eax, dword [eax]
cmp eax, ecx
je 0x411617
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x10], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
jmp 0x411652
cmp ebx, eax
je 0x41162f
mov eax, dword [eax + 4]
cmp edi, dword [eax + 8]
je 0x41167e
cmp ebx, eax
jne 0x411623
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x10], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x10]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 4], edi
mov dword [eax], ecx
mov ecx, edx
cmp edx, esi
jne 0x411594
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp + 8], ebx
mov dword [ebx], edx
mov ebx, dword [edx + 4]
mov dword [ebx], eax
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov dword [ecx + 4], edi
jmp 0x411652
push str.invalid_hash_bucket_count
call fcn.00474fe5
int3
Function at 0x4179d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49907f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.004753bf
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x417a81
push eax
push esi
call fcn.0047527d
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.00475045
int3
Function at 0x4199a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49944d
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4da064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test byte [esi + 0x58], 8
je 0x4199df
push dword [esi + 0x30]
call dword [sym.imp.GDI32.dll_DeleteObject]
and byte [esi + 0x58], 0xf7
mov edi, dword [esi + 0x34]
test edi, edi
jne 0x4199f0
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x6c]
push 0x5c
push 0
push eax
call fcn.00478260
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
push 0x5c
push edi
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esi + 0x54]
mov eax, ecx
and eax, 0x30
cmp al, 0x30
jne 0x419a2c
mov dword [ebp - 0x5c], 0x2bc
jmp 0x419a3e
movzx eax, byte [ebp - 0x57]
test cl, 1
mov ecx, 1
cmove eax, ecx
mov byte [ebp - 0x57], al
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
or byte [esi + 0x58], 8
mov dword [esi + 0x30], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047615e
mov esp, ebp
pop ebp
ret

Function at 0x419bb0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
mov byte [esp + 7], 1
push esi
push edi
mov ecx, dword [ebx + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x419c0f
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [esp + 0x14], eax
call edi
push dword [ebx + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0xfffffffe
call dword [sym.imp.USER32.dll_GetParent]
push dword [ebx + 4]
mov esi, eax
call edi
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x4e
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
add esp, 0x10
ret
shr ecx, 2
test cl, 1
je 0x419c48
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov edi, dword [ebx + 4]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push edi
movzx eax, ax
push eax
push 0x111
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push 1
push 0
push 0
push dword [ebx + 0x28]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta cl
mov byte [esp + 0xf], cl
jbe 0x419c86
or byte [ebx + 0x58], 2
push 1
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
add esp, 0x10
ret
pop edi
pop esi
mov al, cl
pop ebx
add esp, 0x10
ret
Function at 0x41c2e0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x41c35a
mov esi, dword [esp + 0x10]
mov ecx, 1
mov edx, dword [esi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x41c315
push edi
mov ecx, esi
call fcn.00401fc0
mov edx, dword [esi]
push edi
push edx
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x41c33c
mov ecx, dword [esi]
test ecx, ecx
je 0x41c340
push dword [ecx - 8]
push ecx
call fcn.0047b599
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x41c35a
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x41c35a
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
push 0x80070057
call fcn.00402150
int3
Function at 0x422ce0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x4da064]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x422daa
cmp byte [esi + 0x3e], 0
je 0x422daa
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x422d97
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x422d5c
sub eax, 1
je 0x422d60
sub eax, 2
jne 0x422d97
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0047615e
add esp, 0x28
ret
mov byte [esi + 0x3e], 0
mov edi, dword [esp + 8]
lea eax, [esp + 0xc]
sub edi, eax
je 0x422d7f
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004803b4
add esp, 0x10
cmp edi, eax
jne 0x422d97
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0047615e
add esp, 0x28
ret
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0047615e
add esp, 0x28
ret
mov ecx, dword [esp + 0x28]
mov al, 1
pop esi
xor ecx, esp
call fcn.0047615e
add esp, 0x28
ret
Function at 0x427740
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b88b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4da064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, eax
cmp eax, 0x208
jae 0x4278f5
xor ecx, ecx
lea esi, [ebp - 0x218]
mov word [ebp + eax - 0x218], cx
cmp word [ebp - 0x218], cx
je 0x4277b8
nop dword [eax + eax]
add esi, 2
cmp word [esi], cx
jne 0x4277b0
mov ecx, str.ADVINST_LOGS
mov eax, 0x41
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x4277c4
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x42780a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047615e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x28]
mov eax, 0x5c
mov word [esi], ax
add esi, 2
cmp dword [ecx - 0xc], 0
jne 0x42788e
lea ecx, [ebp - 0x21c]
call fcn.00427900
mov dword [ebp - 4], 0
cmp word [esi], 0
mov ecx, dword [eax]
je 0x427849
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0
jne 0x427840
movzx eax, word [ecx]
test ax, ax
je 0x427862
sub ecx, esi
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x427853
xor eax, eax
mov word [esi], ax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4278c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4278c4
cmp word [esi], 0
je 0x42789d
add esi, 2
cmp word [esi], 0
jne 0x427894
movzx eax, word [ecx]
test ax, ax
je 0x4278bf
sub ecx, esi
nop word [eax + eax]
mov word [esi], ax
add esi, 2
movzx eax, word [ecx + esi]
test ax, ax
jne 0x4278b0
xor eax, eax
mov word [esi], ax
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4278d0
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00407090
mov al, 1
jmp 0x4277ec
call fcn.00476759
int3