joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001498e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.10014e84
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x100149ca
call fcn.10014bb0
mov dword [esi + 0xc], 1
jmp 0x100149cf
call fcn.10014bb0
cmp dword [esi], 0
je 0x10014a18
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x100149f2
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.1000f2fb
jmp 0x10014a03
push 0xff
mov ecx, esi
call fcn.10007170
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.1000f31e
jmp 0x10014a3c
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x10014a3c
push dword [esi]
push dword [ebp - 4]
call fcn.1001540b
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10014b05
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.10014bb0
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x10014b4d
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1000f2fb
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.1000f31e
jmp 0x10014b58
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.1001540b
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10014f3a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1016d511
call fcn.1013f51b
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x10014f60
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x10014fbf
call fcn.1000f0c5
push eax
lea ecx, [ebp - 0x10]
call fcn.10007380
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.1013f4de
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.1014dc88
push eax
call fcn.10001c80
add esp, 0x14
test esi, esi
je 0x10014fb2
push esi
call fcn.1014db0f
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10001ef0
mov eax, ebx
call fcn.1013f4e4
ret 8
Function at 0x1001a71e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x1001a763
call fcn.1001175b
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1001a763
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1001a77f
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.10021924
mov ebx, eax
test edi, edi
je 0x1001a77d
test esi, esi
je 0x1001a77d
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1001b168
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x1001b226
cmp dword [esi + 0x20], 0
je 0x1001b226
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1001b226
cmp dword [ebp + 8], 0
je 0x1001b226
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.1001175b
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1001b1f7
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1001b226
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.1002251a
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x1001b217
test edi, edi
je 0x1001b217
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x1001b222
mov ecx, esi
call fcn.1001af0b
mov eax, ebx
jmp 0x1001b228
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10022b53
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x10022b7e
cmp dword [ebx + 0x80], 0
jne 0x10022b7e
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.1001175b
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.10022e11
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10022bb8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.1001175b
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10022bef
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.10022c10
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10024d1b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x10024d35
mov edi, dword [esi + 0xc]
jmp 0x10024d75
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x10024d4e
call fcn.10017b1d
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x10024d63
call fcn.10017b1d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x10024d75
call fcn.10017b1d
call fcn.1001175b
cmp dword [eax + 0x3c], 0
je 0x10024d8a
push edi
mov ecx, ebx
call fcn.100243af
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.10024f67
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x10024db3
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x10024dbf
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10038398
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.10086e9e
call fcn.100117a9
cmp dword [eax + 0x14], 0
jne 0x100383b3
mov ecx, esi
pop esi
jmp fcn.100376e3
pop esi
ret

Function at 0x1003925c
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.10001bc0
call fcn.100117a9
cmp dword [eax + 0x14], 0
jne 0x10039277
mov ecx, esi
pop esi
jmp fcn.10038ada
pop esi
ret
Function at 0x10047b4c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x10047b65
call fcn.1001175b
mov esi, dword [eax + 0xc]
push 0x1018061c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x10047bbb
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10047bba
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10047b9b
xor esi, esi
jmp 0x10047bb1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.10047bc3
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x101404e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10140690
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x101405ad
mov edx, dword [ebp - 4]
cmp edx, dword [0x101ccf84]
jb 0x1014052a
mov eax, dword [ebp - 4]
cmp eax, dword [0x101ccf88]
ja 0x1014052a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x101404fa
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10146f60
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10140550
jmp 0x101405ad
cmp dword [ebp - 0x14], 0x10000
jne 0x10140593
cmp dword [ebp - 0x18], 0x10000
jb 0x10140593
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10140586
mov eax, dword [ebp - 8]
jmp 0x101405af
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x101405a8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10140690
add esp, 4
mov dword [ebp - 4], eax
jmp 0x101404fa
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x101405c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.101406c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10140685
mov edx, dword [ebp - 4]
cmp edx, dword [0x101ccf84]
jb 0x10140605
mov eax, dword [ebp - 4]
cmp eax, dword [0x101ccf88]
ja 0x10140605
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x101405d5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10146f60
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1014062b
jmp 0x10140685
cmp dword [ebp - 0x14], 0x10000
jne 0x1014066e
cmp dword [ebp - 0x18], 0x10000
jb 0x1014066e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10140661
mov eax, dword [ebp - 8]
jmp 0x10140687
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10140680
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.101406c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x101405d5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x101406f0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10140ae0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x101d6e78], 0
jne 0x1014072d
cmp dword [0x101d6e74], 0
je 0x1014072d
mov eax, dword [0x101d6e74]
mov dword [0x101d6e78], eax
cmp dword [0x101d6e78], 0
je 0x101407aa
mov ecx, dword [0x101d6e78]
cmp dword [ecx + 8], 0
je 0x101407aa
mov edx, dword [0x101d6e78]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x101407aa
mov ecx, dword [0x101d6e78]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x101407aa
mov eax, dword [0x101d6e78]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10140779
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10140780
xor eax, eax
jmp 0x101408c9
mov ecx, dword [0x101d6e78]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10146f60
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x101408c9
mov edx, dword [0x101d6e74]
mov dword [0x101d6e78], edx
jmp 0x101407c6
mov eax, dword [0x101d6e78]
mov ecx, dword [eax + 4]
mov dword [0x101d6e78], ecx
cmp dword [0x101d6e78], 0
je 0x10140806
cmp dword [0x101d6e78], 0
je 0x10140804
mov edx, dword [0x101d6e78]
cmp dword [edx + 8], 0
je 0x10140804
mov eax, dword [0x101d6e78]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10140804
mov edx, dword [0x101d6e78]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10140804
jmp 0x1014075e
jmp 0x101407b8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.101408d0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x101408c7
mov eax, dword [ebp - 0x18]
mov dword [0x101d6e78], eax
mov ecx, dword [0x101d6e78]
mov dword [ecx], 0x52727464
mov edx, dword [0x101d6e78]
mov dword [edx + 8], 0
mov eax, dword [0x101d6e78]
mov ecx, dword [0x101d6e74]
mov dword [eax + 4], ecx
mov edx, dword [0x101d6e78]
mov dword [0x101d6e74], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x101d6e78]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10140897
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x101408b7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1014088e
mov eax, dword [0x101d6e78]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1014075e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1015d70b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1015d58a

Function at 0x101612fb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10160fbb
Function at 0x405cc4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov dword [ebp - 8], edx
xor ecx, ecx
mov dword [ebp - 4], 1
push edi
mov dword [ebp - 0xc], esi
xorps xmm2, xmm2
mov edi, ecx
jmp 0x405ce5
inc esi
movzx eax, byte [esi]
test byte [eax + 0x5251e0], 1
jne 0x405ce4
mov al, byte [esi]
cmp al, 0x2d
jne 0x405cfd
or dword [ebp - 4], 0xffffffff
jmp 0x405d01
cmp al, 0x2b
jne 0x405d02
inc esi
cmp byte [esi], 0x30
je 0x405d01
movsd xmm4, qword [0x5253a8]
jmp 0x405d29
movsx eax, dl
sub eax, 0x30
mulsd xmm2, xmm4
inc esi
inc edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm2, xmm0
mov dl, byte [esi]
movzx eax, dl
test byte [eax + 0x5251e0], 4
jne 0x405d11
movsd xmm1, qword [0x525390]
cmp dl, 0x2e
jne 0x405d8e
inc esi
movapd xmm3, xmm1
test edi, edi
jne 0x405d7c
jmp 0x405d54
mulsd xmm3, xmm4
inc esi
cmp byte [esi], 0x30
je 0x405d4f
jmp 0x405d7c
cmp edi, 0x12
jge 0x405d7b
movsx eax, dl
sub eax, 0x30
mulsd xmm2, xmm4
inc edi
mulsd xmm3, xmm4
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm2, xmm0
inc esi
mov dl, byte [esi]
movzx eax, dl
test byte [eax + 0x5251e0], 4
jne 0x405d5b
divsd xmm2, xmm3
mov al, byte [esi]
cmp al, 0x65
je 0x405d9c
cmp al, 0x45
jne 0x405e40
xor edi, edi
inc edi
inc esi
mov al, byte [esi]
cmp al, 0x2d
jne 0x405dab
or edi, 0xffffffff
jmp 0x405daf
cmp al, 0x2b
jne 0x405db0
inc esi
mov dl, byte [esi]
movzx eax, dl
test byte [eax + 0x5251e0], 4
je 0x405e32
imul ecx, ecx, 0xa
movsx eax, dl
add eax, 0xffffffd0
add ecx, eax
inc esi
mov dl, byte [esi]
movzx eax, dl
test byte [eax + 0x5251e0], 4
jne 0x405dbe
cmp ecx, 0x40
jl 0x405df2
mov edx, ecx
shr edx, 6
imul eax, edx, 0xffffffc0
add ecx, eax
mulsd xmm1, qword [0x525470]
dec edx
jne 0x405de7
cmp ecx, 0x10
jl 0x405e0c
mov edx, ecx
shr edx, 4
imul eax, edx, 0xfffffff0
add ecx, eax
mulsd xmm1, qword [0x525460]
dec edx
jne 0x405e01
cmp ecx, 4
jl 0x405e26
mov edx, ecx
shr edx, 2
imul eax, edx, 0xfffffffc
add ecx, eax
mulsd xmm1, qword [0x525410]
dec edx
jne 0x405e1b
cmp ecx, 1
jl 0x405e32
mulsd xmm1, xmm4
dec ecx
jne 0x405e2b
test edi, edi
jns 0x405e3c
divsd xmm2, xmm1
jmp 0x405e40
mulsd xmm2, xmm1
cmp dword [ebp - 4], 0
jge 0x405e4e
xorpd xmm2, xmmword [0x5254f0]
mov eax, dword [ebp - 8]
sub esi, dword [ebp - 0xc]
pop edi
movsd qword [eax], xmm2
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406f8d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x53f030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5456a4]
push ebx
mov ebx, edx
push esi
push edi
test eax, eax
je 0x406fca
push eax
push 0x51ef44
lea eax, [ebp - 0x110]
push eax
push 0xe6
call fcn.004051f1
add esp, 0x10
jmp 0x407042
call fcn.004067bc
mov esi, 0xe6
test eax, eax
je 0x40700b
lea eax, [ebp - 0x318]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x318]
call fcn.00406870
mov edi, eax
test edi, edi
jne 0x407026
push 7
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d89fb
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x218]
call fcn.00406929
jmp 0x406ff1
push edi
push 0x51ef44
lea eax, [ebp - 0x110]
push eax
push esi
call fcn.004051f1
push edi
call fcn.004d92bb
add esp, 0x14
lea ecx, [ebp - 0x110]
call fcn.00405a28
test eax, eax
je 0x40705b
cmp byte [ecx + eax - 1], 0x5c
jne 0x40705b
dec eax
jne 0x407051
cmp eax, 0x105
jae 0x4070bd
mov byte [ebp + eax - 0x110], 0
lea eax, [ebp - 0x110]
push eax
push str._setilqs_
push ebx
push 0xe7
call fcn.004051f1
mov ecx, ebx
call fcn.00405a28
mov esi, eax
lea ecx, [ebx + esi]
push ecx
push 0x14
pop edi
push edi
call fcn.0040534b
add esp, 0x18
movzx eax, byte [ebx + esi]
xor edx, edx
push 0x3e
pop ecx
div ecx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [ebx + esi], al
inc esi
dec edi
jne 0x40709a
mov byte [ebx + esi], 0
xor eax, eax
jmp 0x406ffa
call fcn.004de5a1
int3
Function at 0x41c749
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
jne 0x41c762
xor eax, eax
jmp 0x41c812
push 0x44
pop edx
call fcn.00404100
mov esi, eax
test esi, esi
je 0x41c75b
mov edx, dword [edi]
mov ecx, ebx
call fcn.0041c4aa
mov dword [esi], eax
mov ecx, ebx
mov edx, dword [edi + 8]
call fcn.0041c59d
mov dword [esi + 8], eax
mov ecx, ebx
mov edx, dword [edi + 0xc]
call fcn.0041c3c3
mov dword [esi + 0xc], eax
mov ecx, ebx
mov edx, dword [edi + 0x10]
call fcn.0041c4aa
mov dword [esi + 0x10], eax
mov ecx, ebx
mov edx, dword [edi + 0x14]
call fcn.0041c3c3
mov dword [esi + 0x14], eax
mov ecx, ebx
mov edx, dword [edi + 0x18]
call fcn.0041c4aa
mov dword [esi + 0x18], eax
mov ecx, ebx
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov edx, dword [edi + 0x1c]
call fcn.0041c749
mov dword [esi + 0x1c], eax
mov ecx, ebx
mov edx, dword [edi + 0x28]
call fcn.0041c3c3
mov dword [esi + 0x28], eax
mov ecx, ebx
mov edx, dword [edi + 0x2c]
call fcn.0041c3c3
mov dword [esi + 0x2c], eax
xor edx, edx
mov dword [esi + 0x30], edx
mov ecx, 0xfff7
mov dword [esi + 0x34], edx
mov ax, word [edi + 6]
and ax, cx
mov dword [esi + 0x24], edx
mov word [esi + 6], ax
mov eax, esi
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
or dword [esi + 0x40], 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43af20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8308
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x53f030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0x2001f
push dword [0x53e788]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
push reloc.WS2_32.dll_accept
call fcn.0043b290
test eax, eax
je 0x43af87
xor edi, edi
jmp 0x43b074
push str.Capability
lea ecx, [ebp - 0x1c]
call fcn.0043ab70
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 1
call fcn.0043ae40
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x43afc9
push 0x80004005
call fcn.0043a9b0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [0x53e788]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push str._sCapability
push eax
call fcn.0043ad30
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x28]
add esp, 0xc
push 0
push 0
push 0x2001f
push 0
push 0
push esi
push reloc.WS2_32.dll_accept
call fcn.0043aa90
mov ebx, dword [ebp - 0x28]
test eax, eax
je 0x43b01a
xor edi, edi
jmp 0x43b04b
xor edi, edi
lea esp, [esp]
push 4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 1
push eax
push 4
push 0
push dword [edi + 0x53b048]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add edi, 8
cmp edi, 0x20
jb 0x43b020
mov edi, 1
add esi, 0xfffffff0
mov byte [ebp - 4], 1
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43b069
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x43b074
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43b082
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43bc40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x43bc55
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x43bc94
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x43bc90
lea ebx, [ebx]
cmp esi, edx
jae 0x43bc94
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x43bc80
cmp esi, edx
jb 0x43bc99
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret