joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10076105
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1007615e
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10076105
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10076114
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1047bdb7
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10076165
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1005cfdb
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10076204
add edi, 4
add eax, 2
dec ecx
jne 0x1007614a
call 0x100761b1
loope 0x100761a7
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10076201
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10076212
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100761c5
cmp eax, ecx
ja 0x100761c5
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1007624f
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10076245
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1005d4ba
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10076114
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1007615e
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10076105
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10076114
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1047bdb7
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10076165
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1005cfdb
cmp eax, dword [ebp + 0xc]
pop eax
je 0x10076204
add edi, 4
add eax, 2
dec ecx
jne 0x1007614a
call 0x100761b1
loope 0x100761a7
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x10076201
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10076212
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100761c5
cmp eax, ecx
ja 0x100761c5
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1007624f
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10076245
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1005d4ba
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x402020
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
mov dword [esi], vtable.Cabinet::CExtract.0
call fcn.00403430
test eax, eax
je 0x402055
mov eax, dword [0x42c130]
cmp eax, 0xffffffff
je 0x402055
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x402055
push dword [0x42c130]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [esi + 0x110c]
test eax, eax
je 0x402066
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x10fc]
test eax, eax
je 0x40207b
push 1
push eax
call fcn.0040be73
add esp, 8
push dword [esi + 0x10dc]
call fcn.0040be90
mov eax, dword [esi + 0x10c0]
add esp, 4
test eax, eax
je 0x40209c
push eax
call fcn.0040be90
add esp, 4
mov dword [esi + 0x10c0], 0
push dword [esi + 0x60]
call fcn.0040be90
push dword [esi + 0x58]
call fcn.0040be90
push 4
push dword [esi + 0x50]
call fcn.0040be73
push 4
push dword [esi + 0x54]
call fcn.0040be73
push dword [esi + 0x14]
call fcn.0040be90
push dword [esi + 0xc]
call fcn.0040be90
add esp, 0x20
pop esi
ret
Function at 0x402900
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x1108], eax
je 0x402933
mov dword [edi + 0x10e4], 0x3f3
xor eax, eax
mov dword [edi + 0x10e8], 0
mov dword [edi + 0x10ec], 0
pop edi
ret
mov eax, dword [0x42c130]
push esi
cmp eax, 0xffffffff
je 0x402aca
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x402972
pop esi
mov dword [edi + 0x10e4], 0x3f4
xor eax, eax
mov dword [edi + 0x10e8], 0
mov dword [edi + 0x10ec], 0
pop edi
ret
mov eax, dword [0x42c130]
cmp eax, 0xffffffff
je 0x402aca
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x402aca
push dword [0x42c130]
call esi
test eax, eax
je 0x402aca
push ebx
lea ebx, [edi + 0x10cc]
xorps xmm0, xmm0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
cmp dword [edi + 0x10f0], 0
jne 0x402a80
cmp dword [edi + 0x110c], 0
jne 0x402a86
push 0x421448
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FDICreate
push eax
mov dword [edi + 0x110c], eax
call esi
push str.FDICopy
push dword [edi + 0x110c]
mov dword [edi + 0x1110], eax
call esi
push str.FDIIsCabinet
push dword [edi + 0x110c]
mov dword [edi + 0x1114], eax
call esi
push str.FDIDestroy
push dword [edi + 0x110c]
mov dword [edi + 0x1118], eax
call esi
cmp dword [edi + 0x1110], 0
mov dword [edi + 0x111c], eax
je 0x402a61
cmp dword [edi + 0x1114], 0
je 0x402a61
cmp dword [edi + 0x1118], 0
je 0x402a61
test eax, eax
jne 0x402a86
mov dword [edi + 0x110c], 0
mov dword [ebx + 0x18], 0x3e8
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
pop ebx
pop esi
xor eax, eax
pop edi
ret
mov eax, dword [edi + 0x1110]
push ebx
push 1
push 0x403a80
push 0x403990
push 0x403b00
push 0x403a40
push 0x403a00
push fcn.0040be90
push fcn.00403940
call eax
add esp, 0x24
mov dword [edi + 0x10f0], eax
xor ecx, ecx
test eax, eax
setne cl
pop ebx
pop esi
mov eax, ecx
pop edi
ret
pop esi
mov dword [edi + 0x10e4], 0
xor eax, eax
mov dword [edi + 0x10e8], 0xe
mov dword [edi + 0x10ec], 0
pop edi
ret
Function at 0x402af0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402b19
and al, 0x10
xor cl, cl
cmp cl, al
sbb eax, eax
neg eax
je 0x402b19
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push ebx
lea ecx, [ebp - 8]
call fcn.00401d50
mov edi, dword [ebp - 8]
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402b30
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jle 0x402b53
cmp word [edi + ecx*2 - 2], 0x5c
jne 0x402b53
xor eax, eax
mov word [edi + ecx*2 - 2], ax
push 0x5c
push edi
call fcn.0040da87
add esp, 8
test eax, eax
jne 0x402b77
push edi
lea esi, [eax + 0xf]
call fcn.0040be90
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push edi
mov word [eax], cx
call fcn.00402af0
mov esi, eax
add esp, 4
test esi, esi
jne 0x402ba9
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402ba7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x402ba9
xor esi, esi
push edi
call fcn.0040be90
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402f00
Capabilities:
Create shortcut via ishelllink
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42b054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push eax
push 0x42327c
push 1
push 0
push 0x42329c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40301c
mov eax, dword [ebp - 0x210]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x210]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0040d880
lea ecx, [ebp - 0x20c]
add esp, 0xc
sub ecx, esi
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x402f80
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0040da87
add esp, 8
test eax, eax
je 0x402faa
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x42328c
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x403015
mov eax, dword [ebp - 0x214]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c175
mov esp, ebp
pop ebp
ret
push str.call_QueryInterface_failt
jmp 0x403021
push str._call_CoCreateInstance_failt
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c175
mov esp, ebp
pop ebp
ret
Function at 0x4045b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
lea ecx, [ebp - 8]
push esi
lea eax, [ebx + 0x1134]
push eax
call fcn.00401cb0
mov eax, dword [ebx + 0x1130]
test eax, eax
je 0x4045e5
push eax
lea eax, [ebp - 8]
push 0x421418
push eax
call fcn.00404460
add esp, 0xc
mov ecx, dword [ebx + 0x1128]
xor edx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4045f0
sub ecx, esi
sar ecx, 1
cmp ecx, dword [ebx + 0x112c]
jae 0x4046b7
test ecx, ecx
je 0x404615
mov edx, dword [ebx + 0x1128]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push dword [ebx + 0x113c]
mov edi, eax
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov dword [ebx + 0x1144], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [ebx + 0x1144], 0
mov dword [ebx + 0x114c], eax
mov dword [ebx + 0x1148], 0
pop edi
je 0x404684
test eax, eax
je 0x404684
push dword [ebp - 8]
mov esi, 1
call fcn.0040be90
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
mov dword [ebx + 0x10e4], 0x3ec
xor esi, esi
mov dword [ebx + 0x10e8], 0
mov dword [ebx + 0x10ec], 0
call fcn.0040be90
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x428af8
lea eax, [ebp - 4]
mov dword [ebp - 4], str.The_string_has_no_terminating_null_character_
push eax
call fcn.0040ddab
int3

Function at 0x4046f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push str.opcproxy.dll
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x404719
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push esi
push edi
call fcn.00403940
add esp, 4
mov esi, eax
push esi
push edi
push 0
push str.opcproxy.dll
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40474e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x42139c
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40475f
push esi
call fcn.0040be90
add esp, 4
xor al, al
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
push ebx
push esi
cmp dword [eax + 8], 0x30000
setae bl
call fcn.0040be90
add esp, 4
mov al, bl
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4065d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
test dword [ebp + 0xc], 0x100
je 0x4065eb
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push 0x40
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00410d8e
mov ecx, dword [ebp - 4]
or edx, 0xffffffff
add esp, 0x18
test eax, eax
cmovne ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x406910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00413a18
add esp, 0xc
pop ebp
ret 0xc

Function at 0x406bf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x44
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0040d880
add esp, 0xc
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x10]
xorps xmm0, xmm0
movups xmmword [ebp - 0x10], xmm0
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x406c3d
xor al, al
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x406e10
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x406e96
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov esi, dword [ebp + 0x14]
test eax, eax
je 0x406e81
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
test esi, 0x100
ja 0x406e73
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 8]
push eax
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and esi, 0x27
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407430
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x42b054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
push esi
push 5
push dword [eax]
call ebx
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x407587
push edi
nop word [eax + eax]
push 0x100
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x204]
push 0x4219f0
push eax
call fcn.0040db28
add esp, 8
test eax, eax
je 0x407570
mov eax, dword [0x42b014]
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x204]
shr eax, 0x10
test eax, eax
lea eax, [ebp - 0x204]
jne 0x4074ce
movzx eax, ax
lea ecx, [ebp - 0x208]
push eax
call fcn.00404800
jmp 0x407529
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x407529
lea ecx, [edi*2 + 0xe]
push ecx
call fcn.00403940
add esp, 4
test eax, eax
je 0x407529
xor ecx, ecx
mov dword [eax], 1
mov word [eax + edi*2 + 0xc], cx
lea edx, [ebp - 0x204]
lea ecx, [edi + edi]
mov dword [eax + 4], edi
push ecx
push edx
add ecx, 2
mov dword [eax + 8], edi
add eax, 0xc
push ecx
push eax
mov dword [ebp - 0x208], eax
call fcn.00408cc0
push eax
call fcn.00401630
add esp, 0x14
push dword [0x42c17c]
lea ecx, [ebp - 0x208]
push 0x4219f0
call fcn.004071c0
mov edi, dword [ebp - 0x208]
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [edi - 0xc]
cmp eax, dword [0x42b010]
je 0x407570
add edi, 0xfffffff4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x407570
push edi
call fcn.0040be90
add esp, 4
push 2
push esi
call ebx
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x407470
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c175
mov esp, ebp
pop ebp
ret
Function at 0x407c20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x42b054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x38
push dword [edi + 4]
lea ebx, [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0xfffffffffffffff0
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, 0x808a0000
cmp eax, ecx
je 0x407c64
push ecx
push 0xfffffffffffffff0
push dword [ebx]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push dword [edi + 0x64]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0x80
push dword [ebx]
call esi
push dword [edi + 0x64]
push 0
push 0x80
push dword [ebx]
call esi
push 0xca
push dword [0x42c5c0]
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov edi, eax
test edi, edi
je 0x407d59
lea eax, [ebp - 0x2c]
push eax
push 0x18
push edi
call dword [sym.imp.GDI32.dll_GetObjectW]
push 5
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x407d59
nop dword [eax]
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x14]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x407cfe
lea eax, [ebp - 0xc]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
cmp edx, ecx
jge 0x407d1d
sub ecx, edx
lea eax, [ebp - 0x14]
push ecx
push 0
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
cmp eax, ecx
push 0
cmovl eax, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], eax
sub eax, edx
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x407cd0
push 0
mov ecx, ebx
call fcn.00407770
push 5
push dword [ebx]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
je 0x407d77
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c175
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408210
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42b054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
test ebx, ebx
je 0x408231
lea eax, [ebx + 4]
jmp 0x408233
xor eax, eax
push eax
call fcn.00407430
add esp, 4
push 0x3e8
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebx + 0x54], eax
mov eax, dword [0x42b014]
push 0x10
mov dword [ebp - 0x210], eax
call fcn.00403940
add esp, 4
test eax, eax
je 0x408291
xor ecx, ecx
mov dword [eax], 1
mov word [eax + 0xe], cx
mov ecx, 0x5c
mov dword [eax + 4], 1
mov dword [eax + 8], 1
add eax, 0xc
mov dword [ebp - 0x210], eax
mov word [eax], cx
mov eax, dword [0x42c17c]
lea ecx, [ebp - 0x210]
push eax
push dword [eax - 8]
call fcn.004027a0
mov eax, dword [0x421a90]
mov dword [ebp - 0x20c], eax
mov ax, word [0x421a94]
push 0x202
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push 0
push eax
call fcn.0040d880
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, dword [ebp - 0x210]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4082f0
lea edi, [ebp - 0x20c]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x408306
mov ecx, edx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
push dword [ebx + 0x54]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebp - 0x210]
pop edi
pop esi
pop ebx
lea ecx, [eax - 0xc]
cmp ecx, dword [0x42b010]
je 0x40835c
lea ecx, [eax - 0xc]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40835c
push ecx
call fcn.0040be90
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0040c175
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4084e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x42b054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, eax
mov ecx, 0x42c188
lea esi, [edi + 1]
push esi
call fcn.004044f0
push esi
push eax
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, 0x42c188
call fcn.00402850
cmp edi, 0xffffffff
jne 0x408539
push dword [0x42c188]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov ecx, dword [0x42c188]
xor eax, eax
xorps xmm0, xmm0
mov dword [ecx - 8], edi
mov ecx, dword [0x42c188]
mov word [ecx + edi*2], ax
lea eax, [ebp - 0x414]
movups xmmword [ebp - 0x43c], xmm0
mov dword [ebp - 0x434], eax
mov eax, dword [ebx + 4]
movups xmmword [ebp - 0x42c], xmm0
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x43c]
push eax
mov dword [ebp - 0x430], 0x421a60
mov dword [ebp - 0x428], 0x4081e0
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x42c], 1
mov dword [ebp - 0x420], 0xffffffff
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov edi, eax
test edi, edi
je 0x40866f
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x408668
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x418]
call fcn.00401f30
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax - 8]
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x408621
cmp eax, 0x2f
je 0x408621
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x5c
push eax
push 1
lea ecx, [ebp - 0x418]
call fcn.004027a0
mov eax, dword [0x42c17c]
lea ecx, [ebp - 0x418]
push eax
push dword [eax - 8]
call fcn.004027a0
mov esi, dword [ebp - 0x418]
push esi
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [esi - 0xc]
cmp eax, dword [0x42b010]
je 0x408668
add esi, 0xfffffff4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x408668
push esi
call fcn.0040be90
add esp, 4
push edi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c175
mov esp, ebp
pop ebp
ret 0x10