joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49dcb3
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x59d300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
lea ecx, [ebp - 0x110]
push ecx
push 0x104
push eax
push dword [ebp + 8]
mov dword [ebp - 0x118], 0x200
call fcn.0049dbdb
add esp, 0x10
test eax, eax
jne 0x49dd94
lea eax, [ebp - 0x110]
push eax
call fcn.0049d66b
mov esi, eax
xor ebx, ebx
pop ecx
cmp esi, ebx
je 0x49dd8a
call fcn.0049c882
test eax, eax
mov eax, esi
je 0x49dd4e
cmp word [esi], bx
je 0x49dd2f
cmp word [eax], 0x5c
je 0x49dd2a
inc eax
inc eax
cmp word [eax], bx
jne 0x49dd1b
jmp 0x49dd2f
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x114]
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x49dd7d
cmp byte [esi], bl
je 0x49dd60
cmp byte [eax], 0x5c
je 0x49dd5e
inc eax
cmp byte [eax], bl
jne 0x49dd52
jmp 0x49dd60
mov byte [eax], bl
lea eax, [ebp - 0x114]
push eax
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.00500055
pop ecx
cmp edi, ebx
jne 0x49dd94
mov dword [ebp - 0x118], 0x200
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x118]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ffa47
leave
ret
Function at 0x4a0d03
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebx + 0x3c]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [edx], edi
jne 0x4a0d3a
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx]
or eax, 0x1e
push edi
and eax, 0x87f3f
push eax
push edx
push edi
push ecx
call dword [ecx + 0x18]
add esp, 0x14
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x4a0df7
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x4a0d74
mov eax, dword [ebx + 0x80]
push edi
cdq
push ecx
push edx
push eax
call fcn.005143f0
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x28]
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [ebx + 0x24], eax
jmp 0x4a0d74
xor edi, edi
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x4a0df7
mov edi, dword [esi + 0xc]
mov dword [ebp - 0xc], edi
cmp edi, dword [ebx + 0x18]
ja 0x4a0de7
test byte [esi + 0x14], 0x20
jne 0x4a0de7
mov eax, dword [ebx + 0x80]
cdq
push edx
push eax
lea ecx, [edi - 1]
push 0
push ecx
call fcn.005143f0
mov ecx, dword [esi]
push edx
push eax
push dword [ebx + 0x80]
mov eax, dword [ebx + 0x3c]
push ecx
mov dword [ebp - 8], ecx
call fcn.00499657
add esp, 0x10
mov dword [ebp - 4], eax
cmp edi, 1
jne 0x4a0dd4
mov esi, dword [ebp - 8]
add esi, 0x18
lea edi, [ebx + 0x64]
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 edi, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
cmp edi, dword [ebx + 0x20]
jbe 0x4a0ddc
mov dword [ebx + 0x20], edi
push dword [esi]
mov eax, dword [ebx + 0x58]
call fcn.004aa7ef
pop ecx
cmp dword [ebp - 4], 0
mov eax, dword [esi + 8]
mov dword [ebp + 8], eax
je 0x4a0d72
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x4b6941
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4b6953
xor eax, eax
jmp 0x4b6a42
push esi
mov esi, dword [ebp + 8]
push 0x44
call fcn.0049a20a
mov esi, eax
pop ecx
test esi, esi
je 0x4b6a41
push ebx
push dword [ebp + 0x10]
mov ebx, dword [edi]
push dword [ebp + 8]
call fcn.004b66cb
push dword [ebp + 0x10]
mov dword [esi], eax
push dword [edi + 8]
push dword [ebp + 8]
call fcn.004b678e
push 0
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push eax
push dword [ebp + 8]
call fcn.004b647b
push dword [ebp + 0x10]
mov dword [esi + 0xc], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x10]
call fcn.004b66cb
push 0
push dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
push eax
push dword [ebp + 8]
call fcn.004b647b
push dword [ebp + 0x10]
mov dword [esi + 0x14], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x18]
call fcn.004b66cb
add esp, 0x44
push dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.004b6941
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x28]
push eax
push dword [ebp + 8]
call fcn.004b647b
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp + 8]
call fcn.004b647b
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov ax, word [edi + 6]
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
mov ecx, 0xfff7
and ax, cx
add esp, 0x2c
or dword [esi + 0x40], 0xffffffff
mov word [esi + 6], ax
mov dword [esi + 0x24], ebx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4b89fe
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4b8b16
test esi, esi
je 0x4b8b16
movzx edx, word [edi + 2]
mov eax, 0x800
mov ecx, edx
and ecx, eax
mov ebx, eax
cmp cx, bx
je 0x4b8aba
movzx ecx, word [esi + 2]
mov ebx, ecx
and ebx, eax
cmp bx, ax
je 0x4b8aba
xor cl, dl
test cl, 0x10
jne 0x4b8aba
mov al, byte [edi]
cmp al, byte [esi]
jne 0x4b8aba
push dword [esi + 8]
push dword [edi + 8]
call fcn.004b89fe
pop ecx
pop ecx
test eax, eax
jne 0x4b8aba
push dword [esi + 0xc]
push dword [edi + 0xc]
call fcn.004b89fe
pop ecx
pop ecx
test eax, eax
jne 0x4b8aba
mov ebx, dword [esi + 0x10]
mov edi, dword [edi + 0x10]
call fcn.004b8b25
test eax, eax
jne 0x4b8aba
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x18]
cmp eax, dword [esi + 0x18]
jne 0x4b8aba
mov ax, word [edi + 0x1c]
cmp ax, word [esi + 0x1c]
jne 0x4b8aba
movzx eax, word [edi + 2]
mov ecx, eax
mov eax, 0x400
and ecx, eax
mov edx, eax
cmp cx, dx
jne 0x4b8abf
mov cx, word [esi + 2]
and cx, dx
cmp cx, ax
jne 0x4b8aba
mov eax, dword [edi + 4]
cmp eax, dword [esi + 4]
je 0x4b8ae9
push 2
pop eax
jmp 0x4b8b21
cmp byte [edi], 0x98
je 0x4b8ae9
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4b8ae9
mov dx, word [esi + 2]
mov ebx, eax
and dx, bx
cmp dx, ax
je 0x4b8aba
mov edx, dword [esi + 4]
test edx, edx
je 0x4b8aba
call fcn.0049bb7b
test eax, eax
jne 0x4b8aba
movzx ecx, word [edi + 2]
mov dx, word [esi + 2]
mov eax, 0x100
and ecx, eax
and dx, ax
cmp cx, dx
je 0x4b8b05
xor eax, eax
inc eax
jmp 0x4b8b21
test cx, cx
je 0x4b8b12
mov eax, dword [edi + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x4b8aba
xor eax, eax
jmp 0x4b8b21
mov eax, esi
sub eax, edi
neg eax
sbb eax, eax
and eax, 2
pop edi
pop esi
pop ebx
ret
Function at 0x4ce6e3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x3c], eax
push eax
mov eax, dword [esi + 4]
call fcn.004cd587
mov edi, dword [esi + 0x1c]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x14]
imul edx, edx, 0x28
add edx, edi
cmp byte [ebx + 0x16], 0
pop ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], edx
jne 0x4ce8d1
jmp 0x4ce8c5
mov eax, 0x100
cmp word [edi + 0x10], ax
jne 0x4ce8c2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
not eax
and eax, dword [edi + 0x20]
not ecx
and ecx, dword [edi + 0x24]
and eax, dword [ebp + 0x14]
and ecx, dword [ebp + 0x18]
or eax, ecx
jne 0x4ce8c2
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 0x160]
mov esi, dword [ecx + 0x164]
and eax, dword [esp + 0x28]
and esi, dword [esp + 0x2c]
or eax, esi
je 0x4ce8c2
mov esi, dword [ecx + 0x14]
fldz
mov ebx, dword [ecx + 0x1c]
imul esi, esi, 0x28
fst qword [esp + 0x20]
fstp qword [esp + 0x30]
and dword [esp + 0x10], 0
add esi, ebx
and dword [esp + 0x14], 0
jmp 0x4ce861
mov eax, 0x200
cmp word [ebx + 0x10], ax
jne 0x4ce7c2
lea eax, [esp + 0x40]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebx + 0xc]
jmp 0x4ce80f
mov eax, dword [esp + 0x3c]
cmp dword [ebx + 8], eax
jne 0x4ce85e
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x40]
push eax
push dword [ebp + 0x20]
lea eax, [esp + 0x70]
push dword [ebp + 0x1c]
mov dword [esp + 0x74], ecx
push dword [ebp + 0x18]
mov byte [esp + 0x88], 0x45
push dword [ebp + 0x14]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x90], 1
push eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
call fcn.004cf6ce
fld qword [esp + 0x68]
fadd qword [esp + 0x38]
mov ecx, dword [ebp + 0x28]
mov eax, dword [esp + 0x78]
or dword [esp + 0x28], eax
mov eax, dword [esp + 0x7c]
fstp qword [esp + 0x38]
fld qword [esp + 0x70]
or dword [esp + 0x2c], eax
fadd qword [esp + 0x48]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
add esp, 0x18
fstp qword [esp + 0x30]
fld qword [ecx + 0x10]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jnp 0x4ce86c
add ebx, 0x28
cmp ebx, esi
jb 0x4ce7a1
mov ecx, dword [ebp + 0x28]
cmp dword [ebp + 0x24], 0
je 0x4ce88f
fld qword [esp + 0x30]
push ecx
push ecx
fstp qword [esp]
call fcn.004ce6a5
fmul qword [esp + 0x38]
add esp, 8
fadd qword [esp + 0x20]
fstp qword [esp + 0x20]
fld qword [ecx + 0x10]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x4ce8c2
mov eax, dword [esp + 0x10]
fld qword [esp + 0x20]
fstp qword [ecx + 0x10]
mov dword [ecx + 0x20], eax
fld qword [esp + 0x30]
mov eax, dword [esp + 0x14]
fstp qword [ecx + 0x18]
mov dword [ecx + 0x24], eax
mov dword [ecx], 0x10000000
mov dword [ecx + 8], edi
add edi, 0x28
mov dword [esp + 0x1c], edi
cmp edi, edx
jb 0x4ce72f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d8914
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51fb89
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x59d300]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
mov eax, dword [0x59d300]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
xor bl, bl
call fcn.004f9980
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x30]
call fcn.004f9c90
and dword [esp + 0xd0], 0
push esi
lea ecx, [esp + 0x14]
call fcn.004d8a95
mov byte [esp + 0xd0], 1
cmp dword [esp + 0x24], 0
je 0x4d89b2
push 1
push edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
call fcn.004f9d20
test al, al
je 0x4d89b0
mov ecx, edi
call fcn.004f0cb0
test al, al
jne 0x4d89b0
inc bl
jmp 0x4d89b2
xor bl, bl
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.0040cdb3
lea eax, [esp + 0x2c]
call fcn.004d89ec
mov al, bl
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.004ffa47
mov esp, ebp
pop ebp
ret
Function at 0x4e9717
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5259d8
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x59d300]
xor eax, esp
mov dword [esp + 0x7c], eax
push esi
push edi
mov eax, dword [0x59d300]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
lea edi, [esp + 0x60]
call fcn.0048809a
lea eax, [esp + 0x60]
xor edi, edi
lea ecx, [ebx + 0x58]
push eax
mov dword [esp + 0x9c], edi
call fcn.004880fa
push str.vToolbarUpdater
lea esi, [esp + 0x10]
call fcn.0040b812
push str.InstalledProducts
lea esi, [esp + 0x2c]
mov byte [esp + 0x9c], 1
call fcn.0040b812
lea eax, [esp + 0xc]
push eax
mov eax, esi
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x6c]
push eax
mov byte [esp + 0xa8], 2
call fcn.004884c7
push 0xffffffffffffffff
push edi
lea ecx, [ebx + 0xac]
mov byte [esp + 0xa0], 3
call fcn.0040bd91
push edi
push 1
lea esi, [esp + 0x4c]
call fcn.0040dac5
push edi
push 1
lea esi, [esp + 0x30]
call fcn.0040dac5
push edi
push 1
lea esi, [esp + 0x14]
call fcn.0040dac5
lea ecx, [esp + 0x60]
call fcn.004880d1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.004ffa47
mov esp, ebp
pop ebp
ret
Function at 0x4eeb78
Capabilities:
Write file on windows

Disassembly:
push 0x4c
mov eax, 0x51dc40
call fcn.0050669a
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x4eec8a
cmp byte [esi + 0x42], bl
je 0x4eec8a
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp di, ax
jne 0x4eebb4
xor al, al
jmp 0x4eec8c
push ebx
push 8
lea ecx, [ebp - 0x30]
call fcn.0048c278
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x30]
call fcn.0048c29e
mov ecx, eax
call fcn.0048c8df
mov edi, dword [ebp - 0x1c]
mov ebx, eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.0048c29e
mov ecx, eax
call fcn.0048c8df
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
add edi, ebx
push edi
push dword [ebp - 0x38]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x4eec24
dec eax
je 0x4eec28
dec eax
dec eax
je 0x4eec86
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.0040cdb3
mov al, bl
jmp 0x4eec8c
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
call fcn.0048c29e
mov ecx, eax
call fcn.0048c8df
mov edi, dword [ebp - 0x34]
sub edi, eax
je 0x4eec68
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x30]
call fcn.0048c29e
mov ecx, eax
call fcn.0048c8df
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0050336a
add esp, 0x10
cmp edi, eax
jne 0x4eec12
cmp byte [esi + 0x42], 0
je 0x4eec86
test edi, edi
jne 0x4eebc2
push edi
push 8
lea ecx, [ebp - 0x30]
call fcn.0040a6ef
jmp 0x4eebc2
mov bl, 1
jmp 0x4eec14
mov al, 1
call fcn.0050671d
ret

Function at 0x4ffa47
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x59d300]
jne 0x4ffa51
repz ret
jmp fcn.0050c17f
Function at 0x51111c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0050bb8e
and dword [ebp - 4], 0
cmp dword [0x5a100c], 0
mov ebx, eax
jne 0x5111cd
push 0x53dd88
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x51127e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x53dd7c
push edi
call esi
test eax, eax
je 0x51127e
push eax
call fcn.0050bb1c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5a100c], eax
call esi
push eax
call fcn.0050bb1c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5a1010], eax
call esi
push eax
call fcn.0050bb1c
mov dword [esp], str.GetUserObjectInformationW
push edi
mov dword [0x5a1014], eax
call esi
push eax
call fcn.0050bb1c
pop ecx
mov dword [0x5a101c], eax
test eax, eax
je 0x5111cd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0050bb1c
pop ecx
mov dword [0x5a1018], eax
mov eax, dword [0x5a1018]
cmp eax, ebx
je 0x511225
cmp dword [0x5a101c], ebx
je 0x511225
push eax
call fcn.0050bb97
push dword [0x5a101c]
mov esi, eax
call fcn.0050bb97
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x511225
test edi, edi
je 0x511225
call esi
test eax, eax
je 0x51121c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x51121c
test byte [ebp - 0xc], 1
jne 0x511225
or dword [ebp + 0x10], 0x200000
jmp 0x51125e
mov eax, dword [0x5a1010]
cmp eax, ebx
je 0x51125e
push eax
call fcn.0050bb97
pop ecx
test eax, eax
je 0x51125e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x51125e
mov eax, dword [0x5a1014]
cmp eax, ebx
je 0x51125e
push eax
call fcn.0050bb97
pop ecx
test eax, eax
je 0x51125e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5a100c]
call fcn.0050bb97
pop ecx
test eax, eax
je 0x51127e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x511280
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x51785f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0050bb8e
and dword [ebp - 4], 0
cmp dword [0x5a103c], 0
mov ebx, eax
jne 0x517910
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5179c1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x5179c1
push eax
call fcn.0050bb1c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5a103c], eax
call esi
push eax
call fcn.0050bb1c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5a1040], eax
call esi
push eax
call fcn.0050bb1c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5a1044], eax
call esi
push eax
call fcn.0050bb1c
pop ecx
mov dword [0x5a104c], eax
test eax, eax
je 0x517910
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0050bb1c
pop ecx
mov dword [0x5a1048], eax
mov eax, dword [0x5a1048]
cmp eax, ebx
je 0x517968
cmp dword [0x5a104c], ebx
je 0x517968
push eax
call fcn.0050bb97
push dword [0x5a104c]
mov esi, eax
call fcn.0050bb97
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x517968
test edi, edi
je 0x517968
call esi
test eax, eax
je 0x51795f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x51795f
test byte [ebp - 0xc], 1
jne 0x517968
or dword [ebp + 0x10], 0x200000
jmp 0x5179a1
mov eax, dword [0x5a1040]
cmp eax, ebx
je 0x5179a1
push eax
call fcn.0050bb97
pop ecx
test eax, eax
je 0x5179a1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5179a1
mov eax, dword [0x5a1044]
cmp eax, ebx
je 0x5179a1
push eax
call fcn.0050bb97
pop ecx
test eax, eax
je 0x5179a1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5a103c]
call fcn.0050bb97
pop ecx
test eax, eax
je 0x5179c1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5179c3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100012c0
Capabilities:
Create thread
Set socket configuration

Disassembly:
push ecx
push 0
push 0
push esi
push 0x10001610
push 0
push 0
call fcn.1000c62d
add esp, 0x18
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001369
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CancelIo]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
nop
mov ecx, dword [esp + 0x14]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10001356
mov edx, dword [esi + 0x40]
push edx
call edi
push 4
lea edx, [esp + 0x10]
push edx
mov eax, 1
push 0x80
mov word [esp + 0x18], ax
mov eax, dword [esi + 0x34]
push 0xffff
xor ecx, ecx
push eax
mov word [esp + 0x22], cx
call ebx
mov ecx, dword [esi + 0x34]
push ecx
call ebp
mov edx, dword [esi + 0x34]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x34], 0xffffffff
mov eax, dword [esi + 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10001300
pop edi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x100015b0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esi + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x6c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x6c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
push 0
push 0
push esi
push 0x10001610
push 0
push 0
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], edx
call fcn.1000c62d
add esp, 0x18
mov dword [esi + 0x6c], eax
ret 0xc
Function at 0x100023d0
Capabilities:
Enumerate devices by category

Disassembly:
push 0xffffffffffffffff
push 0x10073af0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
mov eax, dword [0x1008e060]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push eax
push 0x10077610
push 1
push ebx
push 0x10077570
mov dword [esp + 0x58], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jne 0x10002456
mov dword [esp + 0x10], ebx
push ebx
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x10077580
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
je 0x10002485
mov byte [esp + 0x44], bl
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10002456
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1000246e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x1c]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
xor esi, esi
call eax
cmp edi, ebx
jl 0x10002559
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
push 0x100835a8
push ebx
push ebx
push eax
mov eax, dword [ecx + 0x24]
call eax
cmp eax, ebx
jl 0x1000252c
mov eax, dword [esp + 0x1c]
mov ecx, 8
mov word [esp + 0x24], cx
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push ebx
lea ecx, [esp + 0x28]
push ecx
push str.FriendlyName
push eax
call edx
cmp eax, ebx
jne 0x10002520
cmp esi, edi
jne 0x10002515
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push 0x10077620
push ebx
push ebx
push eax
mov eax, dword [ecx + 0x20]
call eax
mov ebp, 1
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x1c]
push edx
push 1
push eax
mov eax, dword [ecx + 0xc]
inc esi
call eax
cmp esi, edi
jle 0x100024b3
mov byte [esp + 0x44], bl
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x1000256d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10002585
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4