joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa9cd60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x55c000]
push edi
or ebp, 0xffffffff
jmp 0xa9cd82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa9cd89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa9cd78
mov eax, 1
add ebx, ebx
jne 0xa9cd9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa9cdac
jne 0xa9cdcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa9cdcb
dec eax
add ebx, ebx
jne 0xa9cdb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa9cd90
add ebx, ebx
jne 0xa9cdc7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa9ce1d
xor ecx, ecx
sub eax, 3
jb 0xa9cde3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa9ce52
sar eax, 1
mov ebp, eax
jmp 0xa9cdee
add ebx, ebx
jne 0xa9cdee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa9cdbc
inc ecx
add ebx, ebx
jne 0xa9cdfc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa9cdbc
add ebx, ebx
jne 0xa9ce09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa9cdfe
jne 0xa9ce1a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa9cdfe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa9ce3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa9ce2e
jmp 0xa9cd7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa9ce3c
add edi, ecx
jmp 0xa9cd7e
pop esi
mov edi, esi
mov ecx, 0x13175
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa9ce5a
cmp byte [edi], 0x2c
jne 0xa9ce5a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xa9ce5f
lea edi, [esi + 0x699000]
mov eax, dword [edi]
or eax, eax
je 0xa9ced7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x69dd1c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x69de5c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa9ce8c
mov ecx, edi
jns 0xa9cebb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x69de60]
or eax, eax
je 0xa9ced1
mov dword [ebx], eax
add ebx, 4
jmp 0xa9cea9
call dword [esi + 0x69de70]
mov ebp, dword [esi + 0x69de64]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xa9cf0b
sub esp, 0xffffff80
jmp 0x63b000
Function at 0x4015b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov edx, dword [0x418388]
mov eax, dword [0x418110]
push ebx
xor ebx, ebx
cmp edx, ebx
push esi
mov dword [esp + 0x240], eax
push edi
jne 0x401611
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push 0x1c
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], eax
push ecx
mov dword [esp + 0x38], eax
push 0x418388
mov dword [esp + 0x28], ebx
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edx, dword [esp + 0x20]
mov dword [0x418388], edx
xor eax, eax
mov word [esp + 0x38], bx
mov ecx, 0x81
lea edi, [esp + 0x3a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x3c]
push eax
push edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x20], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x401669
lea eax, [esi + esi]
push eax
call fcn.0040e70b
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x40167e
xor eax, eax
mov ecx, dword [esp + 0x244]
call fcn.0040e783
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push esi
push ebx
lea ecx, [esp + 0x44]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401703
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 0x410790
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401703
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x30]
push esi
mov esi, dword [eax + 0x2c]
push esi
mov esi, dword [eax + 0x28]
push esi
mov esi, dword [eax + 0x24]
push esi
mov esi, dword [eax + 0x20]
mov ecx, dword [eax + 0xc]
push esi
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 8]
push esi
mov esi, dword [eax + 0x1c]
push esi
mov esi, dword [eax]
push esi
mov esi, dword [eax + 0x14]
push esi
mov esi, dword [eax + 0x10]
push esi
push ecx
push edx
movzx esi, cx
push esi
shr ecx, 0x10
push ecx
movzx ecx, dx
push ecx
shr edx, 0x10
push edx
push str.FileVersion_:__d._d._d._d___FileVersionMS_:_0x_08x__FileVersionLS_:_0x_08x__ProductVersionMS_:_0x_08x__ProductVersionLS_:_0x_08x__Signature_:_0x_08x__FileFlags_:_0x_08x__FileFlagsMask_:_0x_08x__FileOS_:_0x_08x__FileType_:_0x_08x__FileSubType_:_0x_08x__FileDateMS_:_0x_08x__FileDateLS_:_0x_08x__
push 0x168
push 0x418390
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x4c
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
mov ax, word [0x418390]
mov ecx, dword [esp + 0x248]
add esp, 4
neg ax
sbb eax, eax
and eax, 0x418390
call fcn.0040e783
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4018e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x418110]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x11c], eax
xor eax, eax
test esi, esi
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x4019a0
mov al, byte [esi + 1]
test al, al
lea ecx, [esi + 1]
mov dword [esp + 0xc], ecx
je 0x401986
mov ebx, ecx
sub ebx, esi
lea ecx, [ecx]
cmp al, 0x5c
jne 0x401979
mov ecx, ebx
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + ebx + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401961
test al, 0x10
jne 0x401972
push 0
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4019a0
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
mov al, byte [ecx + 1]
inc ecx
inc ebx
test al, al
mov dword [esp + 0xc], ecx
jne 0x401930
mov eax, 1
mov ecx, dword [esp + 0x11c]
call fcn.0040e783
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x11c]
xor eax, eax
call fcn.0040e783
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4019c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x418110]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x21c], eax
xor eax, eax
test esi, esi
mov word [esp + 0x10], 0
mov ecx, 0x81
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x401a90
mov ax, word [esi + 2]
test ax, ax
lea ecx, [esi + 2]
mov dword [esp + 0xc], ecx
je 0x401a76
mov ebx, ecx
sub ebx, esi
cmp ax, 0x5c
jne 0x401a63
mov eax, ebx
sar eax, 1
shl eax, 1
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [esp + eax + 0x10], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401a4b
test al, 0x10
jne 0x401a5c
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401a90
mov ecx, dword [esp + 0xc]
mov esi, dword [ebp + 8]
mov ax, word [ecx + 2]
add ecx, 2
add ebx, 2
test ax, ax
mov dword [esp + 0xc], ecx
jne 0x401a10
mov eax, 1
mov ecx, dword [esp + 0x21c]
call fcn.0040e783
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x21c]
xor eax, eax
call fcn.0040e783
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401be0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [0x41804c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push eax
call esi
mov ecx, dword [0x418048]
push 0
push ecx
call esi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push 0
push 0
lea edx, [esp + 0x18]
push edx
push eax
push 6
call fcn.00405bc0
pop esi
ret

Function at 0x401d40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40ed43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x410240]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x401dc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40ed43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x410244]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x401e40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40ed58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x418110]
push esi
mov esi, dword [esp + 0x3c]
push edi
mov dword [esp + 0x2c], eax
push esi
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov edi, dword [esp + 0x44]
push edi
mov ecx, esi
mov dword [esp + 0x3c], 0
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 8]
mov dword [esi + 0x1c], edx
mov eax, dword [edi + 0x20]
push ecx
mov ecx, edi
mov dword [esi + 0x20], eax
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 8]
mov dword [edi + 0x1c], edx
mov dword [edi + 0x20], eax
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x30]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28]
pop esi
call fcn.0040e783
add esp, 0x34
ret
Function at 0x405ad0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x418a64]
test eax, eax
push esi
mov esi, ecx
jne 0x405b78
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x405b4f
push edi
push 0x11f
push 0
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
cmp eax, 0xffffffff
mov dword [esi + 0x24], eax
je 0x405b47
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push str.C:TSLOG_CONFIGTSLOG.ini
call edi
cmp eax, 0xffffffff
jne 0x405b3e
push str.C:TSLOG_CONFIGTSLOG.txt
call edi
cmp eax, 0xffffffff
jne 0x405b3e
push str.C:TSLOG_CONFIGTSLOG.ini
call edi
cmp eax, 0xffffffff
jne 0x405b3e
push str.C:TSLOG_CONFIGTSLOG.txt
call edi
cmp eax, 0xffffffff
jne 0x405b3e
pop edi
xor eax, eax
pop esi
ret
push 0
mov ecx, esi
call fcn.00404bc0
pop edi
mov eax, 1
pop esi
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405b7c
cmp eax, 0x102
je 0x405b78
push 0x11f
push 0
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
push 0
mov ecx, esi
mov dword [esi + 0x24], 0xffffffff
call fcn.00404bc0
test eax, eax
je 0x405baf
push 0x11f
push 0
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
mov eax, 1
pop esi
ret
Function at 0x406980
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40f000
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
cmp eax, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
je 0x4069cb
push 0x414b7c
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 1
call sub.MSVCR71.dll__CxxThrowException
lea ecx, [ebp - 0x18]
push ecx
push 0x412454
push 1
push edi
push 0x412444
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jge 0x4069fb
push 0x414b7c
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], 2
call sub.MSVCR71.dll__CxxThrowException
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x1c]
cmp eax, edi
jge 0x406a21
push 0x414b7c
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 3
call sub.MSVCR71.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x1c]
cmp eax, edi
jge 0x406a55
push 0x414b7c
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], 4
call sub.MSVCR71.dll__CxxThrowException
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, 0x406a50
ret
mov eax, dword [ebp - 0x14]
cmp eax, edi
mov dword [ebp - 4], 0xffffffff
je 0x406a69
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x406a76
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406fd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x406fe9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x406ffd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40701e
cmp esi, eax
jae 0x406ff7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407010
cmp esi, eax
jae 0x406ff7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x408720
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x418110]
push ebx
push esi
push edi
mov dword [esp + 0x224], eax
xor ebx, ebx
xor eax, eax
mov word [esp + 0x18], bx
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x1c]
push eax
push ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x18], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
je 0x4087c8
lea eax, [edi + edi]
push eax
call fcn.0040e70b
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4087c8
push esi
push edi
push ebx
lea ecx, [esp + 0x24]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4087bf
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x10]
push eax
push 0x410790
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4087dd
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x224]
call fcn.0040e783
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push 0x412700
push 0x168
push 0x418b20
call dword [sym.imp.MSVCR71.dll__snwprintf]
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x244]
add esp, 0x20
mov eax, 0x418b20
call fcn.0040e783
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4088b0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x40f109
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push edi
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jbe 0x40895c
lea ecx, [edi + edi + 2]
push esi
push ecx
call fcn.0040e70b
mov esi, eax
add esp, 4
test esi, esi
je 0x40895b
mov edx, dword [esp + 8]
push esi
push edi
push edx
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x408952
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x410790
push esi
mov dword [esp + 0x1c], 0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x408952
mov edx, dword [esp + 0x10]
movzx eax, word [edx + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [esp + 0x10]
pop edi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x408980
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
mov eax, dword [0x418110]
push ebx
push esi
push edi
mov dword [esp + 0x28c], eax
xor eax, eax
mov word [esp + 0x80], 0
mov ecx, 0x81
lea edi, [esp + 0x82]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [esp + 0x84]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...XLaccService.exe
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x408a33
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x94]
push edx
push 1
push 2
push 0x110
push 0xf01ff
push str.XLaccService
push str.XLaccService
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
test ebx, ebx
jne 0x408a48
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
mov ecx, dword [esp + 0x28c]
call fcn.0040e783
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x19
mov esi, 0x412718
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
push ecx
push 1
lea eax, [esp + 0x20]
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov ecx, dword [esp + 0x28c]
mov eax, 1
call fcn.0040e783
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408b20
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8