joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f384
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x462bbc]
cmp dword [eax + 0x30], 0
je 0x44f42e
cmp dword [ebx + 0x94], 0
jne 0x44f428
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f314
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f428
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44f3ee
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f428
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414a5c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f3fd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44ff8c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44ffc1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404538
jmp 0x44ffce
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040449c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451188
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4511c9
mov eax, esi
call fcn.004377b4
test al, al
je 0x4511c9
mov eax, dword [ebx + 0x84]
call fcn.004374dc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4511c9
push 0
mov eax, dword [ebx + 0x84]
call fcn.004374dc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45bcc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45bdfa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004156f8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 2
jne 0x45bd3c
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x45bd3c
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0040839c
mov edx, dword [ebp - 0x14]
mov ebx, dword [0x461494]
mov ebx, dword [ebx]
mov eax, 0x45be10
call ebx
dec eax
jne 0x45bd3c
mov ebx, 1
jmp 0x45bd3e
xor ebx, ebx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
sub eax, ebx
jl 0x45bddf
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.0045b7d0
test al, al
jne 0x45bdd3
mov eax, dword [ebp - 4]
call fcn.0045bcb4
mov ebx, eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x1c]
call fcn.0040449c
xor edx, edx
push ebp
push 0x45bdc1
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x30]
test al, al
je 0x45bdb7
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0045c0d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45bdd3
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x45bd56
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45be01
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040446c
ret
Function at 0x418f10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420de0], ecx
add edx, 1
cmp edx, 0x100
jb 0x418f12
cmp edx, 0x800
jae 0x418ffb
mov edi, edi
mov eax, dword [edx*4 + 0x4209e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420de0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x420ddc], eax
jb 0x418fd0
mov dword [fcn.00420dbc], 0x4196b0
call fcn.00419140
test eax, eax
jne 0x419018
mov dword [fcn.00420dbc], 0x4195d0
ret
Function at 0x489357
Capabilities:
Encode data using xor

Disassembly:
pop esp
sub ebp, ecx
xor ecx, dword [0x77a31ae]
jge 0x48938b
and al, byte [esi]
cmp eax, 0xc5da87cc
cwde
mov esp, 0x76b79985
ljmp 0x4e86
dec edx
mov esi, 0xb747fcf2
push ecx
mov bh, 0x51
xor dl, byte [esi - 0x58]
jle 0x489390
cmovae edi, dword [0x3b393619]
dec edx
inc eax
pop esp
or esi, dword [ebp + 0x2b]
in eax, 0xd7
stc
cmp byte [esi], dl
pop es
aam 0x85
ret 0xb724

Function at 0x569885
Capabilities:
Encode data using xor

Disassembly:
push edi
push cs
cli
push ebx
dec edi
call 0xec4238c2
sbb al, 0xa7
inc edx
sahf
sar dh, 0x35
scasd eax, dword es:[edi]
mov bh, 0x68
out dx, al
pushal
lodsd eax, dword [esi]
cmp byte [ebx], 0xae
mov ah, 0xf6
push cs
push 0xb64b0b39
push 0x82ad60ee
cmp ebp, dword [esi - 0xdf1094c]
push 0xb64b0b39
and edx, dword [edx]
xor esp, dword [ecx]
test eax, 0xd4790d53
jns 0x56985b
jns 0x56985b
pop ss
jbe 0x56986e
enter 0x65ad, 0xffffffffffffffd7
adc al, 0x83
cmp eax, 0xf5c539b9
scasd eax, dword es:[edi]
inc ebx
mov ebp, 0x4ae1b863
push esp
mov byte [ebp - 0x7c777c0c], ah
sar byte [ebx + 0x6f], 0xd
sbb al, 0xd1
dec ebp
mov dh, 0x3b
rcl edi, cl
mov ebx, 0xa2d40dd5
xlatb
stosd dword es:[edi], eax
xchg dword [0xc396ede5], edx
mov dl, 3
sub dh, dl
pushfd
mov edi, 0xb68ae197
pushal
ret

Function at 0x6596ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x661388
cmp edx, dword [eax]
je 0x65970f
add eax, 8
inc ecx
cmp eax, 0x661418
jl 0x659700
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x661388]
jne 0x65983d
mov eax, dword [0xa5bee8]
cmp eax, 1
je 0x659817
test eax, eax
jne 0x659740
cmp dword [0x6612b4], 1
je 0x659817
cmp edx, 0xfc
je 0x65983d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x659777
lea eax, [ebp - 0x1a4]
push 0x65e970
push eax
call fcn.0065a0d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0065a560
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6597ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.0065a560
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65e96c
push edi
call fcn.0065c430
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65e950
push eax
call fcn.0065a0d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0065a0e0
lea eax, [ebp - 0xa0]
push 0x65e94c
push eax
call fcn.0065a0e0
push dword [esi + 0x66138c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0065a0e0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65e924
push eax
call fcn.0065c3a4
add esp, 0x2c
pop edi
jmp 0x65983d
lea eax, [ebp + 8]
lea esi, [esi + 0x66138c]
push 0
push eax
push dword [esi]
call fcn.0065a560
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x4487d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
cmp word [0x59af20], 1
push ebx
push esi
push edi
jne 0x44880e
mov eax, dword [ecx + 8]
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
mov esi, dword [ecx + 0x10]
mov edi, dword [ecx + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x10], eax
jmp 0x448911
movzx edx, byte [ecx + 3]
movzx eax, byte [ecx + 2]
movzx ebx, byte [ecx + 7]
movzx esi, byte [ecx + 0xb]
shl edx, 8
or edx, eax
shl esi, 8
movzx eax, byte [ecx + 1]
shl edx, 8
or edx, eax
shl ebx, 8
movzx eax, byte [ecx]
shl edx, 8
or edx, eax
movzx edi, byte [ecx + 0x17]
movzx eax, byte [ecx + 6]
or ebx, eax
shl edi, 8
movzx eax, byte [ecx + 5]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 4]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 0xa]
or esi, eax
movzx eax, byte [ecx + 9]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 8]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0xe]
mov dword [ebp - 4], esi
movzx esi, byte [ecx + 0xf]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0xd]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0xc]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0x12]
mov dword [ebp - 8], esi
movzx esi, byte [ecx + 0x13]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0x11]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0x10]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0x16]
or edi, eax
movzx eax, byte [ecx + 0x15]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0x14]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0x1a]
mov dword [ebp - 0xc], edi
movzx edi, byte [ecx + 0x1b]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0x19]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0x18]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0x1e]
mov dword [ebp - 0x10], edi
movzx edi, byte [ecx + 0x1f]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0x1d]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0x1c]
shl edi, 8
or edi, eax
mov ecx, dword [ebp + 8]
mov eax, edx
and eax, 0x3ffffff
shr edx, 0x1a
mov dword [ecx], eax
mov eax, ebx
shl eax, 6
or edx, eax
shr ebx, 0x13
and edx, 0x1ffffff
mov dword [ecx + 4], edx
mov edx, dword [ebp - 4]
mov eax, edx
shl eax, 0xd
or eax, ebx
shr edx, 0xd
mov ebx, dword [ebp - 8]
and eax, 0x3ffffff
mov dword [ecx + 8], eax
mov eax, ebx
shl eax, 0x13
or eax, edx
shr ebx, 6
mov edx, dword [ebp - 0xc]
and eax, 0x1ffffff
mov dword [ecx + 0xc], eax
mov eax, esi
and eax, 0x1ffffff
shr esi, 0x19
mov dword [ecx + 0x14], eax
mov eax, edx
shl eax, 7
or esi, eax
mov dword [ecx + 0x10], ebx
mov ebx, dword [ebp - 0x10]
and esi, 0x3ffffff
mov eax, ebx
shr edx, 0x13
shl eax, 0xd
or eax, edx
shr ebx, 0xc
and eax, 0x1ffffff
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x1c], eax
mov eax, edi
shl eax, 0x14
or eax, ebx
shr edi, 6
and eax, 0x3ffffff
and edi, 0x1ffffff
mov dword [ecx + 0x24], edi
pop edi
pop esi
mov dword [ecx + 0x20], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44d2b0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0xf3bcc908
mov dword [eax + 0xc], 0x6a09e667
mov dword [eax + 0x10], 0x84caa73b
mov dword [eax + 0x14], 0xbb67ae85
mov dword [eax + 0x18], 0xfe94f82b
mov dword [eax + 0x1c], 0x3c6ef372
mov dword [eax + 0x20], 0x5f1d36f1
mov dword [eax + 0x24], 0xa54ff53a
mov dword [eax + 0x28], 0xade682d1
mov dword [eax + 0x2c], 0x510e527f
mov dword [eax + 0x30], 0x2b3e6c1f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0xfb41bd6b
mov dword [eax + 0x3c], 0x1f83d9ab
mov dword [eax + 0x40], 0x137e2179
mov dword [eax + 0x44], 0x5be0cd19
xor eax, eax
pop ebp
ret
Function at 0x457f00
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x114
mov ecx, dword [0x6abc20]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x62d090]
cmp eax, dword [ecx + 4]
jg 0x458033
mov eax, dword [0x62d08c]
test eax, eax
jne 0x457f3b
mov eax, 1
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0
push ebx
push edi
push esi
call eax
test eax, eax
je 0x457f71
lea eax, [ebp - 8]
push eax
mov eax, ebx
or eax, 0x20019
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x457f7a
cmp eax, 2
jne 0x457f73
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x457f80
sub ecx, edx
cmp byte [ecx + edi - 1], 0x5c
lea esi, [ecx + edi]
je 0x457f99
mov byte [esi], 0x5c
inc esi
mov byte [esi], al
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x458012
push 0x104
lea eax, [ebp - 0x114]
push eax
push esi
call fcn.005764c0
push ebx
push edi
push dword [ebp + 8]
call fcn.00457f00
add esp, 0x18
test eax, eax
jne 0x458012
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x457fc4
mov byte [esi - 1], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push ebx
push edi
push dword [ebp + 8]
call dword [0x62d08c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x62d090
call fcn.0056bf5d
add esp, 4
cmp dword [0x62d090], 0xffffffff
jne 0x457f29
push str.RegDeleteKeyExA
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x62d090
mov dword [0x62d08c], eax
call fcn.0056bf13
add esp, 4
jmp 0x457f29
Function at 0x459670
Capabilities:
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590915
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
push 0
push 0
push 0
lea ecx, [ebp - 0x44]
xor bl, bl
call fcn.0046b940
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x44]
push 0
push 0
push eax
push ecx
mov eax, esp
mov dword [ebp - 4], 0
mov dword [eax], esi
call fcn.00472550
add esp, 0x10
test al, al
je 0x4598b6
push 0
lea ecx, [ebp - 0x44]
call fcn.0046c640
push 0
push 0
call fcn.00579a3c
add esp, 8
mov dword [ebp + 8], eax
test esi, esi
mov dword [ebp - 0x1c], 0
mov ecx, 0x593544
mov dword [ebp - 0x18], 0
cmovne ecx, esi
mov dword [ebp - 0x14], 0x4000000
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004598f0
push 0
push eax
push 0
call fcn.005769f4
add esp, 0xc
mov byte [ebp - 4], 0
cmp byte [ebp - 0x14], 0
mov edi, eax
je 0x459730
push dword [ebp - 0x20]
call fcn.0056bbd4
add esp, 4
cmp byte [ebp - 0x13], 0
je 0x459741
push dword [ebp - 0x1c]
call fcn.0056bbd4
add esp, 4
cmp byte [ebp - 0x12], 0
je 0x459752
push dword [ebp - 0x18]
call fcn.0056bbd4
add esp, 4
cmp dword [ebp + 8], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x4000000
je 0x4598a5
test edi, edi
je 0x4598a5
push 0x5c
push edi
call fcn.0056dfd7
add esp, 8
test eax, eax
je 0x4598a5
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor ecx, ecx
push edi
mov word [eax], cx
call esi
push edi
push str.INSTALLDIR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov al, byte [ebp + 0x10]
mov ecx, 0x628070
mov word [0x62808c], 0x3000
mov dword [0x628084], 0
mov byte [0x62808c], al
mov eax, dword [ebp + 0xc]
mov word [0x6280cd], 0
mov byte [0x6280cf], 0
mov dword [0x628088], 0
mov dword [0x628104], 0
mov dword [0x628100], 0
mov dword [0x628084], eax
call fcn.00458880
mov eax, dword [0x628084]
mov ecx, 0x628070
mov edx, dword [ebp - 0x44]
mov dword [0x628088], eax
mov eax, dword [ebp - 0x34]
add eax, edx
mov dword [0x6280ec], 0
mov dword [0x6280f0], 0
mov dword [0x6280dc], 0x62808d
mov dword [0x6280d8], 0
mov dword [0x6280e0], 0
mov dword [0x6280e4], 0
mov dword [0x6280d4], 1
mov word [0x6280d0], 0
mov dword [0x6280e8], 0
mov byte [0x62808d], 0
mov dword [0x628074], edx
mov dword [0x628078], edx
mov dword [0x62807c], eax
push 0
mov byte [0x628080], 0
call fcn.00458c90
push dword [ebp + 8]
mov bl, al
call esi
push edi
call fcn.005765e4
push dword [ebp + 8]
call fcn.005765e4
add esp, 8
cmp dword [ebp - 0x3c], 0
mov dword [ebp - 4], 2
jl 0x4598da
cmp dword [ebp - 0x44], 0
je 0x4598da
call fcn.00480220
push 0
push dword [ebp - 0x44]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e2b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590cad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], 0x4000000
test eax, eax
mov dword [ebp - 0x1c], edi
mov ebx, 0x593544
mov dword [ebp - 0x18], edi
cmovne ebx, eax
mov dword [ebp - 0x20], ebx
cmp byte [0x62d3f0], 0
mov dword [ebp - 4], edi
je 0x45e344
push 4
push edi
push edi
push ebx
mov byte [ebp - 0x13], 1
call fcn.0046de50
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056bbcb
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x1c], edi
call fcn.0046de50
add esp, 0x24
push 0x200030
push 0x5b139c
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call fcn.00579ee1
add esp, 4
mov dword [ebp - 0x10], eax
test edi, edi
jne 0x45e390
push 4
push edi
push edi
push ebx
mov byte [ebp - 0x13], 1
call fcn.0046de50
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056bbcb
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x1c], edi
call fcn.0046de50
mov eax, dword [ebp - 0x10]
add esp, 0x24
push eax
push edi
call fcn.0057a024
add esp, 8
test edi, edi
jne 0x45e3d6
push 4
push edi
push edi
push ebx
mov byte [ebp - 0x13], 1
call fcn.0046de50
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056bbcb
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x1c], edi
call fcn.0046de50
add esp, 0x24
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x62d708], 0
je 0x45e492
push 0x62d708
lea eax, [ebp - 0x30]
push str._s_service_log.txt
push eax
call fcn.0046aaa0
add esp, 0xc
cmp byte [ebp - 0x21], 0
jge 0x45e414
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x45e417
mov eax, 0x593544
jmp 0x45e417
lea eax, [ebp - 0x30]
push fcn.00576b7f
push 0x5acd84
push eax
call fcn.00482af0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x45e477
lea eax, [ebp - 0x40]
push 0x10
push eax
call fcn.00579e0e
lea eax, [ebp - 0x50]
push 0x10
push eax
call fcn.00579d55
push dword [ebp + 0x18]
cmp byte [ebp + 0x14], 0
mov ecx, 0x593544
mov eax, str.ERROR_
cmove eax, ecx
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
push eax
push str._s__s_:__s_s
push esi
call fcn.0045a010
push esi
call fcn.00576c24
add esp, 0x2c
cmp byte [ebp - 0x21], 0
mov byte [ebp - 4], 1
jge 0x45e492
call fcn.00480220
push 0
push dword [ebp - 0x30]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp byte [ebp - 0x13], 0
je 0x45e4a1
push edi
call fcn.0056bbd4
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e640
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45e67c
test al, 3
je 0x45e66c
and eax, 0xfffffffc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
sete al
test al, al
je 0x45e67c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
pop esi
sete al
pop ebp
ret
xor al, al
pop esi
pop ebp
ret

Function at 0x45e690
Capabilities:
Check if file exists
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45e6fa
test al, 3
je 0x45e6bd
and eax, 0xfffffffc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
sete al
test al, al
je 0x45e6fa
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45e6e5
test al, 3
je 0x45e6e5
and eax, 0xfffffffc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
sete al
test al, al
je 0x45e6fa
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
cmp eax, 1
pop edi
sete al
pop esi
pop ebp
ret
pop edi
xor al, al
pop esi
pop ebp
ret
Function at 0x45f090
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push 0
push dword [ebp + 8]
xor bl, bl
mov byte [ebp - 1], bl
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x45f1d5
call fcn.00480220
mov ecx, eax
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, eax
push ebx
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x45f1bd
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
push str.StringFileInfo040904b0OriginalFilename
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45f1bd
mov ecx, dword [ebp + 0xc]
mov edx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45f105
sub edx, esi
mov esi, dword [ebp - 8]
sar edx, 1
lea eax, [edx + 1]
cmp esi, eax
jne 0x45f1bd
mov edx, dword [ebp - 0xc]
add esi, esi
sub esi, 4
jb 0x45f141
lea esp, [esp]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x45f146
add edx, 4
add ecx, 4
sub esi, 4
jae 0x45f130
cmp esi, 0xfffffffc
je 0x45f173
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x45f1bd
cmp esi, 0xfffffffd
je 0x45f173
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x45f1bd
cmp esi, 0xfffffffe
je 0x45f173
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x45f1bd
cmp esi, 0xffffffff
je 0x45f173
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
jne 0x45f1bd
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
push eax
push 0x5b17d4
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45f1bd
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x45f1bd
cmp dword [ebp - 8], 0x34
jb 0x45f1bd
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov esi, dword [eax + 8]
or ecx, esi
mov byte [ebp - 1], 1
mov dword [edx], 0
mov dword [edx + 4], esi
mov eax, dword [eax + 0xc]
mov dword [edx], eax
mov dword [edx + 4], ecx
call fcn.00480220
push 0
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret