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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov eax, ecx
push esi
push edi
mov dword [ebp - 4], eax
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4451ca
sub eax, edx
sar eax, 1
mov ebx, eax
lea edi, [ebx + ebx + 2]
mov eax, edi
call section..text
mov esi, esp
push edi
push dword [ebp - 4]
mov dword [ebp - 8], esi
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x5c
pop edi
cmp word [esi], di
jne 0x445217
cmp word [esi + 2], di
jne 0x445217
lea eax, [esi + 4]
cmp word [eax], 0x3f
jne 0x44522a
cmp word [esi + 6], di
jne 0x44522a
add esi, 8
cmp ebx, 3
jl 0x445226
cmp word [esi + 2], 0x3a
jne 0x445226
add esi, 6
mov ecx, esi
jmp 0x445270
push 2
pop ecx
mov esi, eax
movzx eax, word [esi]
inc esi
inc esi
cmp ax, di
jne 0x44523c
dec ecx
je 0x445226
test ax, ax
jne 0x44522f
xor al, al
jmp 0x44527f
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x445261
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x445241
cmp word [esi], 0
mov eax, edi
mov word [esi - 2], ax
je 0x44527d
lea ecx, [esi + 2]
mov edx, edi
call fcn.00439b11
mov esi, eax
test esi, esi
jne 0x445245
mov al, 1
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x445287
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 0x10]
mov edi, edx
push dword [ebp + 0xc]
mov ebx, ecx
call fcn.0044448e
test eax, eax
jne 0x4452d7
push esi
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4452bd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x4452d6
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x4452d4
sub esi, eax
push esi
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x44553c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
mov eax, edx
push esi
mov ebx, ecx
push edi
mov edx, 0x497c44
mov ecx, eax
call fcn.00443dff
mov esi, eax
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov ecx, esi
mov edi, eax
call fcn.004433ab
cmp edi, 0xffffffff
je 0x4455b8
cmp byte [ebp + 8], 0
jne 0x445586
cmp word [ebp - 0x228], 0x2e
je 0x44559f
lea ecx, [ebp - 0x228]
call fcn.00443bc8
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov ecx, ebx
call fcn.00445510
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x445576
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4461c5
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0x1c4
lea eax, [ebp - 0xdc]
push ebx
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x78]
push esi
xor ebx, ebx
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp + 0x74]
push edi
lea ecx, [ebp + 0x40]
mov byte [ebp - 0xda], bl
mov byte [ebp - 0xdb], bl
mov byte [ebp - 0xdc], bl
mov dword [ebp + 0x54], 0x106
mov dword [ebp + 0x60], eax
call fcn.004385b5
push ebx
push ebx
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x78]
push eax
push 1
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x70]
mov dword [ebp + 0x64], 2
mov dword [ebp + 0x74], 0x80
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, ebx
jne 0x446264
cmp dword [ebp + 0x78], 0xffffffff
je 0x446261
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp + 0x2e]
call fcn.00438641
mov esi, eax
lea edi, [ebp + 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebp + 0x78]
cmp eax, 0xffffffff
jne 0x44627e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2738
je 0x44627e
or eax, 0xffffffff
jmp 0x446385
mov byte [ebp + 0x7b], bl
cmp byte [ebp - 0xdc], bl
jne 0x4462bb
cmp byte [ebp - 0xdb], bl
jne 0x4462bb
cmp byte [ebp - 0xda], bl
jne 0x4462bb
cmp byte [ebp - 0xd9], 1
je 0x4462ab
cmp byte [ebp - 0xd9], 4
jne 0x4462bb
lea ecx, [ebp - 0xdc]
call fcn.00446150
mov dword [ebp + 0x54], eax
jmp 0x4462bf
mov byte [ebp + 0x7b], 1
push ebx
push ebx
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x70]
push eax
push 2
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x70]
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x74], 0x80
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, ebx
jne 0x446314
cmp dword [ebp + 0x70], 0xffffffff
je 0x446311
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp + 0x2e]
call fcn.00438641
mov esi, eax
lea edi, [ebp + 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x70], eax
or eax, 0xffffffff
cmp dword [ebp + 0x70], eax
je 0x446385
cmp byte [ebp + 0x7b], bl
jne 0x446385
lea ecx, [ebp - 0xdc]
call fcn.00446150
cmp dword [ebp + 0x70], eax
jle 0x446383
cmp byte [ebp - 0xdc], bl
jne 0x446383
cmp byte [ebp - 0xdb], bl
jne 0x446383
cmp byte [ebp - 0xda], bl
jne 0x446383
cmp byte [ebp - 0xd9], 1
jne 0x446383
lea eax, [ebp + 0x2e]
push eax
lea ecx, [ebp - 0xdc]
call fcn.00446172
mov edi, dword [ebp + 0x7c]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xdc]
movsw word es:[edi], word [esi]
call fcn.00446150
mov ecx, dword [ebp + 0x70]
sub ecx, eax
mov eax, ecx
jmp 0x446385
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x68
leave
ret 0x10
Function at 0x4466fb
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x87c
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0x14]
push esi
push edi
test ecx, ecx
je 0x4467ac
cmp word [ecx + 0x3d], 0x18
jne 0x446733
push dword [ebp + 0x7c]
push dword [ebp + 0x78]
push dword [ebp + 0x74]
push dword [ebx + 4]
call fcn.004461c5
jmp 0x4467f7
lea ecx, [ebp + 0x40]
call fcn.004385b5
mov eax, dword [ebx + 4]
lea ecx, [ebp + 0x74]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push 0
push 0x7d0
lea ecx, [ebp - 0x810]
push ecx
push eax
mov dword [ebp + 0x74], 0x80
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [ebp + 0x78], eax
cmp eax, 0xffffffff
je 0x446782
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 0x56]
call fcn.00438641
lea esi, [ebp + 0x56]
lea edi, [ebp + 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ebx, dword [ebx + 0x14]
add ebx, 0xcd
push ebx
lea ecx, [ebp + 0x40]
call fcn.00438737
test al, al
jne 0x44679d
or eax, 0xffffffff
jmp 0x4467f7
mov eax, dword [ebp + 0x78]
inc eax
neg eax
sbb eax, eax
not eax
and eax, dword [ebp + 0x78]
jmp 0x4467f7
call fcn.00404c67
test al, al
jne 0x446798
mov ebx, dword [ebx + 4]
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x40]
push eax
push 0
push dword [ebp + 0x78]
mov dword [ebp + 0x68], 0x80
push dword [ebp + 0x74]
push ebx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4467f5
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 0x56]
call fcn.00438641
mov edi, dword [ebp + 0x7c]
lea esi, [ebp + 0x56]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, ebx
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc
Function at 0x4468d3
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x19c
push ebx
push esi
mov esi, dword [ebp + 0x78]
movzx eax, word [esi + 0x10]
push eax
mov dword [ebp + 0x60], ecx
mov byte [ebp - 0xb6], 0
mov byte [ebp - 0xb7], 0
mov byte [ebp - 0xb8], 0
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebp + 0x7c], 0
movzx ebx, ax
mov dword [ebp + 0x78], ebx
je 0x446951
mov eax, dword [ebp + 0x7c]
mov byte [ebp - 0xb5], 3
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44691f
sub eax, edx
mov ebx, eax
push ebx
push dword [ebp + 0x7c]
lea eax, [ebp - 0xb3]
push eax
mov byte [ebp - 0xb4], bl
call sub.MSVCRT.dll_memcpy
mov ax, word [ebp + 0x78]
add esp, 0xc
mov word [ebp + ebx - 0xb3], ax
jmp 0x44698f
mov ecx, esi
call fcn.00404ac1
test al, al
je 0x446975
mov eax, dword [esi + 0xc]
mov byte [ebp - 0xb5], 1
mov dword [ebp - 0xb4], eax
mov word [ebp - 0xb0], bx
jmp 0x44698f
push edi
mov byte [ebp - 0xb5], 4
lea edi, [ebp - 0xb4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [ebp - 0xa4], bx
pop edi
lea eax, [ebp - 0xb8]
mov ecx, eax
mov dword [ebp + 0x54], eax
call fcn.00446150
mov ecx, dword [ebp + 0x60]
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x5c], eax
lea eax, [ebp + 0x78]
push eax
lea eax, [ebp - 0x138]
push eax
add ecx, 0xcd
call fcn.004257ca
xor esi, esi
push esi
push esi
push dword [ebp + 0x78]
lea eax, [ebp - 0x138]
push eax
push esi
lea eax, [ebp + 0x7c]
push eax
push 2
lea eax, [ebp + 0x50]
push eax
push dword [ebp + 0x6c]
mov dword [ebp + 0x7c], esi
call dword [sym.imp.WS2_32.dll_WSASendTo]
cmp eax, esi
mov esi, eax
jne 0x4469f5
mov esi, dword [ebp + 0x7c]
or eax, 0xffffffff
cmp esi, eax
je 0x446a15
lea ecx, [ebp - 0xb8]
call fcn.00446150
mov ecx, eax
cmp esi, ecx
jg 0x446a11
xor eax, eax
jmp 0x446a15
mov eax, esi
sub eax, ecx
pop esi
pop ebx
add ebp, 0x64
leave
ret 0x14
Function at 0x446c42
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
lea edi, [ebx + 0x48]
push edi
mov ecx, esi
call fcn.00438737
test al, al
je 0x446c68
cmp word [esi + 0x10], 0
jne 0x446d5e
cmp dword [ebx + 4], 0xffffffff
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
je 0x446c7d
push 0
mov ecx, ebx
call fcn.00429b45
push 0
push 2
lea ecx, [ebx + 0x48]
call fcn.00404ac1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
mov ecx, ebx
call fcn.00429afe
cmp dword [ebx + 4], 0xffffffff
je 0x446d5e
mov esi, dword [ebp + 8]
push esi
mov ecx, ebx
call fcn.0042a13c
cmp eax, 0xffffffff
jne 0x446cd9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov ecx, edi
call fcn.00428746
push eax
push edi
push esi
push str.UDP_port_bind_failed__A:___d___s
call fcn.004875bd
add esp, 0x10
jmp 0x446ceb
cmp word [esi + 0x10], 0
jne 0x446ceb
mov ecx, ebx
call fcn.00428666
mov word [ebx + 0x58], ax
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 0x1002
mov edi, 0xffff
push edi
push dword [ebx + 4]
mov dword [ebp - 4], 0x200000
call esi
cmp eax, 0xffffffff
jne 0x446d2a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp - 4]
push str.UDP_setsockopt_SO_RCVBUF___d__failed:__d
call fcn.004875f6
add esp, 0xc
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push edi
push dword [ebx + 4]
call esi
cmp eax, 0xffffffff
jne 0x446d57
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebp - 4]
push str.UDP_setsockopt_SO_SNDBUF___d__failed:__d
call fcn.004875f6
add esp, 0xc
mov ecx, ebx
call fcn.004285ed
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x446f89
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x84]
mov ebx, ecx
push eax
mov ecx, esi
mov byte [ebp - 1], 0
call fcn.004257ca
test byte [ebp + 0x18], 1
je 0x446fd3
push 4
lea eax, [ebp + 8]
push eax
push 0xe
push 0
push dword [ebx + 4]
mov dword [ebp + 8], 1
mov byte [ebp - 1], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp + 0xc]
mov ecx, ebx
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00446a48
cmp eax, 0xffffffff
jne 0x44705f
cmp dword [ebx + 0x1c], 0x20
jge 0x44705f
push 0x24
call fcn.00443c1f
pop ecx
test eax, eax
je 0x44700a
push dword [ebp + 0x14]
mov ecx, eax
call fcn.0044683a
mov dword [ebp + 8], eax
jmp 0x44700e
and dword [ebp + 8], 0
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [eax + 0x14]
movsw word es:[edi], word [esi]
call fcn.00410a4c
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
push dword [esi + 0x20]
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebx + 0x18]
mov dword [ebx + eax*4 + 0x5c], esi
mov eax, dword [ebx + 0x18]
add esp, 0xc
inc eax
and eax, 0x1f
inc dword [ebx + 0x1c]
cmp dword [ebx + 0x1c], 1
mov dword [ebx + 0x18], eax
pop edi
jne 0x44705f
mov ecx, ebx
call fcn.004285ed
cmp byte [ebp - 1], 0
je 0x44707c
and dword [ebp + 0x14], 0
push 4
lea eax, [ebp + 0x14]
push eax
push 0xe
push 0
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
pop ebx
leave
ret 0x14
Function at 0x44b49f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
push esi
mov esi, ecx
cmp byte [esi + 0x50], 0
push edi
je 0x44b4c5
push 0x449fbf
push 0x10
push 0x10
push 3
call fcn.0044a11e
mov dword [esi + 0x44], eax
push 0x44b372
push 9
push 9
push 2
mov ecx, esi
call fcn.0044a11e
mov dword [esi + 0x48], eax
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x44b4f7
mov word [ebp - 0x208], ax
push 0x4011
mov edi, 0x2b4
push edi
lea eax, [ebp - 0x4bc]
push eax
push 0x10
lea eax, [ebp - 0x208]
push eax
call fcn.004673a8
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x4b8]
push 0x4013
mov dword [esi + 0x54], eax
push edi
lea eax, [ebp - 0x4bc]
push eax
push 0x10
lea eax, [ebp - 0x208]
push eax
call fcn.004673a8
mov eax, dword [ebp - 0x4b8]
pop edi
mov dword [esi + 0x58], eax
pop esi
leave
ret
Function at 0x44dada
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
mov esi, ecx
xor ebx, ebx
jmp 0x44dbb5
cmp eax, 0xffffffff
je 0x44dbb5
cmp dword [esi + 0x10], ebx
je 0x44db99
mov eax, dword [ebp - 0x1c]
lea ecx, [eax - 0x100]
cmp ecx, 9
ja 0x44db99
cmp byte [esi + 0xc], bl
jne 0x44dbb5
cmp eax, 0x100
jne 0x44db3b
push dword [ebp - 0x20]
mov ecx, dword [esi + 0x10]
push dword [ebp - 0x18]
mov eax, dword [ecx]
push 0xfffffffffffffffd
pop edx
call dword [eax + 0x14]
test eax, eax
jne 0x44dbb5
cmp dword [ebp - 0x1c], 0x101
jne 0x44db59
push dword [ebp - 0x20]
mov ecx, dword [esi + 0x10]
push dword [ebp - 0x18]
mov eax, dword [ecx]
push 0xfffffffffffffffc
pop edx
call dword [eax + 0x14]
test eax, eax
jne 0x44dbb5
lea eax, [ebp - 4]
push eax
push 0x44da19
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 4], ebx
jne 0x44db99
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 4]
cmp eax, dword [esi + 0x14]
jne 0x44db8a
cmp dword [ebp - 0x1c], 0x100
jne 0x44db99
cmp dword [ebp - 0x18], 9
jne 0x44db99
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x44dbb5
lea ecx, [ebp - 0x20]
call fcn.0041d4bc
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
call edi
cmp eax, ebx
jne 0x44daf2
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44e308
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [ecx + 8], 0xffffff96
jne 0x44e316
mov ecx, dword [ecx + 0x20]
jmp fcn.00439cf8
mov eax, dword [ecx + 0x20]
ret

Function at 0x44e3da
Capabilities:
Set global application hook

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov dword [0x4c40b4], eax
push 0
mov edx, esi
mov ecx, 0x44da58
mov byte [esi + 0xc], 0
mov byte [esi + 0xd], 0
call fcn.00450ddc
push dword [0x4c40b4]
push 0
push eax
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 4], eax
pop esi
ret 4
Function at 0x44edc8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
movzx eax, dx
push 5
mov esi, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x44ee45
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x44ee21
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
push ebx
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x44ee25
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
xor eax, eax
jmp 0x44ee44
push esi
push dword [ebp - 4]
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x44ee42
mov dword [eax], esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x45111f
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
inc dword [0x4c6848]
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], ebx
call fcn.00428703
lea ecx, [ebx + 0x160]
call fcn.00411a1b
test eax, eax
je 0x451154
call fcn.00428714
xor al, al
jmp 0x4512f9
test dword [ebp + 8], 0x200
push esi
push edi
jne 0x451287
test byte [ebx + 0x43], 0x80
jne 0x451287
call fcn.004117b8
mov ecx, eax
call fcn.0041173e
mov edi, eax
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x45117e
sub eax, edx
sar eax, 1
test dword [ebp + 8], 0x100
mov esi, eax
jne 0x4511be
push esi
push edi
push dword [ebp - 4]
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4511be
mov ecx, dword [ebp - 4]
call fcn.00442552
sub eax, dword [ebp - 4]
sar eax, 1
inc esi
cmp eax, esi
jbe 0x451287
push edi
mov ecx, ebx
call fcn.004052de
mov edi, dword [sym.imp.KERNEL32.DLL_CopyFileW]
push 0
mov esi, eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x45126c
mov ecx, esi
call fcn.004451ba
test al, al
je 0x4511f5
push 0
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x45126c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
call fcn.00428714
mov edi, dword [0x4cc390]
mov ecx, ebx
call fcn.00428746
push eax
push ebx
push esi
push dword [ebp - 4]
push edi
call fcn.004875bd
add esp, 0x14
test byte [ebp + 8], 4
jne 0x451249
push esi
push dword [0x4cc38c]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0x35
call fcn.0044f78b
add esp, 0xc
mov edi, eax
jmp 0x45124c
push 2
pop edi
mov ecx, esi
call fcn.004433ab
cmp edi, 2
je 0x451265
call fcn.00428703
mov ebx, dword [ebp - 8]
jmp 0x451163
xor al, al
jmp 0x4512f7
push 0x80
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push esi
mov ecx, ebx
call fcn.00405291
mov ecx, esi
call fcn.004433ab
inc dword [0x4c6828]
mov eax, dword [ebx + 0x1c8]
test eax, eax
je 0x4512ae
mov ecx, dword [0x4c0910]
push eax
call fcn.0040311e
push eax
push 7
mov edx, ebx
pop ecx
call fcn.00439416
mov edx, dword [ebp + 8]
shr edx, 1
and dl, 1
mov ecx, ebx
call fcn.00413155
test byte [ebp + 8], 0x40
je 0x4512cc
mov ecx, ebx
call fcn.0040f6c9
jmp 0x4512db
test byte [ebx + 0x43], 0x80
jne 0x4512db
push 0
mov ecx, ebx
call fcn.0040d587
test byte [ebp + 8], 0x10
je 0x4512e5
or dword [ebx + 0x50], 0xffffffff
push 0
xor edx, edx
xor ecx, ecx
call fcn.00412d3a
call fcn.00428714
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x451e58
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x5c]
call fcn.004520bb
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.BtAppInstallTail
lea ecx, [ebp - 0x5c]
call fcn.0044e290
lea ecx, [ebp - 0x5c]
call fcn.00452072
lea edi, [esi + 0x24]
push edi
call dword [0x4c41b0]
cmp eax, 5
je 0x451e9e
cmp eax, 3
jne 0x451ebb
push ebx
push dword [esi + 0x74]
call dword [0x4c419c]
push 2
push ebx
push edi
call dword [0x4c4190]
push ebx
push 2
call dword [0x4c419c]
push 0x14
pop edx
lea ecx, [ebp - 0x28]
call fcn.00442362
lea eax, [ebp - 0x28]
push eax
push 0x48e0c0
lea eax, [ebp - 0x88]
push 0x29
push eax
call fcn.0043b44e
add esp, 0x10
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00401b05
mov ecx, dword [ebp - 8]
cmp ecx, ebx
je 0x451eff
xor eax, eax
cmp word [ecx], bx
sete al
cmp al, bl
je 0x451f31
mov eax, dword [esi]
cmp eax, ebx
jne 0x451f0a
mov eax, 0x492538
push 0x5c
push eax
call sub.MSVCRT.dll_wcsrchr
pop ecx
pop ecx
cmp eax, ebx
je 0x451f1d
add eax, 2
jmp 0x451f28
mov eax, dword [esi]
cmp eax, ebx
jne 0x451f28
mov eax, 0x492538
push eax
lea ecx, [ebp - 8]
call fcn.00401b6f
mov edx, dword [ebp - 8]
cmp edx, ebx
jne 0x451f3d
mov edx, 0x492538
push edi
or edi, 0xffffffff
push edi
push edi
lea ecx, [ebp - 0x28]
call fcn.004228b5
push str._MSIExecute
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x45200b
cmp eax, edi
je 0x45200b
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [esi + 8]
mov edi, 0x492538
cmp eax, ebx
jne 0x451f81
mov eax, edi
lea ecx, [ebp - 0x88]
push ecx
push eax
push str.BTAPPS__s__PAIRINGKEY__S_
call fcn.0043b722
add esp, 0xc
lea ecx, [esi + 0x24]
mov dword [ebp - 0x14], eax
call fcn.00451e0d
push ebx
push dword [esi + 0x74]
call dword [0x4c419c]
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jne 0x451fb4
mov eax, edi
mov esi, dword [esi]
cmp esi, ebx
jne 0x451fbc
mov esi, edi
push eax
push esi
call dword [0x4c4194]
push ebx
push 2
mov esi, eax
call dword [0x4c419c]
call dword [0x4c41e0]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_ReleaseMutex]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, ebx
jne 0x451ffc
lea ecx, [ebp - 0x5c]
call fcn.00452116
push dword [ebp - 0x58]
call dword [sym.imp.USER32.dll_DestroyWindow]
call fcn.004518dd
mov ecx, dword [ebp - 0x14]
call fcn.004433ab
jmp 0x452013
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
cmp byte [ebp - 4], bl
je 0x452020
mov ecx, dword [ebp - 8]
call fcn.004433ab
lea ecx, [ebp - 0x5c]
call fcn.004520de
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret