joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008a2c0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1008a35d
push ebx
push esi
call fcn.1008a27c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100876ac
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1008a30a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008a35c
push edi
push eax
call fcn.10082a28
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1008a32a
call fcn.1007d9e9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1008a35b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100876ac
add esp, 0x20
test eax, eax
jne 0x1008a349
push edi
call fcn.1007d9e9
jmp 0x1008a351
push ebx
call fcn.1007d9e9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1008a360
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1008a371
pop esi
ret
push ebx
push edi
push esi
call fcn.1008a27c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10082a28
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1008a399
push ebx
push esi
push edi
call fcn.100446a0
add esp, 0xc
push 0
call fcn.1007d9e9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1008ac88
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1008a60e

Function at 0x1008d1e6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1007b7d6
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1008d255
cmp esi, dword [ebp - 4]
je 0x1008d250
cmp dword [ebp + 0xc], 0
je 0x1008d250
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1008d22d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1008cd38
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1008d257
xor eax, eax
inc eax
jmp 0x1008d257
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1008d2bc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100b5100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1007b7d6
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1007b7d6
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1008d333
cmp word [ecx], dx
je 0x1008d333
mov eax, dword [0x100a72b4]
push edi
dec eax
push eax
push 0x100a71a0
call fcn.1008d25b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1008d3a6
cmp word [eax], dx
je 0x1008d3a6
mov eax, dword [edi]
test eax, eax
je 0x1008d357
cmp word [eax], dx
je 0x1008d357
lea eax, [ebp - 0x10]
push eax
call fcn.1008cc3e
jmp 0x1008d360
lea eax, [ebp - 0x10]
push eax
call fcn.1008ccd9
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1008d3d0
mov eax, dword [0x100a719c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100a6e90
call fcn.1008d25b
add esp, 0xc
test al, al
je 0x1008d3d0
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1008d39b
cmp word [eax], di
je 0x1008d39b
lea eax, [ebp - 0x10]
push eax
call fcn.1008cc3e
pop ecx
jmp 0x1008d3d2
lea eax, [ebp - 0x10]
push eax
call fcn.1008ccd9
jmp 0x1008d398
mov eax, dword [edi]
test eax, eax
je 0x1008d3bd
cmp word [eax], dx
je 0x1008d3bd
lea eax, [ebp - 0x10]
push eax
call fcn.1008cbd5
pop ecx
jmp 0x1008d3d0
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1008d49b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1008d0e0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1008d49b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1008d49b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1008d49b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1008d428
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1007e77d
test ebx, ebx
je 0x1008d496
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1007e77d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1008d49b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1008d49b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10094f15
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1008d49d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003f9a0
leave
ret
Function at 0x1009607f
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10095ea3
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100961ee
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100961ee
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100961a3
jg 0x100960db
test eax, eax
je 0x10096199
push 1
push 0x1000
call fcn.1007da23
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100960fe
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10096190
push 0x8000
push ebx
call fcn.10095cd8
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10096127
jg 0x10096122
cmp ecx, 0x1000
jb 0x10096127
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1008070c
add esp, 0x10
cmp eax, 0xffffffff
je 0x1009616c
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10096122
jl 0x10096153
test ecx, ecx
jne 0x10096114
push dword [ebp - 0xc]
push ebx
call fcn.10095cd8
push esi
call fcn.1007d9e9
add esp, 0xc
xor ebx, ebx
jmp 0x100961fc
cmp byte [edi + 0x24], 0
je 0x10096183
cmp dword [edi + 0x20], 5
jne 0x10096183
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1009618e
mov ebx, dword [edi + 0x18]
jmp 0x10096190
xor ebx, ebx
push esi
call fcn.1007d9e9
pop ecx
jmp 0x100961fc
test ecx, ecx
jg 0x10096165
jl 0x100961a3
test eax, eax
jae 0x10096165
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1008283b
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100961c3
cmp byte [edi + 0x1c], 0
je 0x10096165
jmp 0x100961f4
push ebx
call fcn.1008da5f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10096165
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100961fc
cmp byte [edi + 0x1c], 0
je 0x100961f9
mov ebx, dword [edi + 0x18]
jmp 0x100961fc
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1008283b
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10096823
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100966f7

Function at 0x10098e50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10098e7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10098e7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404e20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bbf58
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
call fcn.00404990
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov edi, dword [esi + 0x10]
cmp edi, dword [esi + 0x14]
jbe 0x404e61
call fcn.00480e22
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x404f08
call fcn.00480e22
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x404e7d
call fcn.00480e22
push edi
lea eax, [esp + 0x10]
push 0x4c8ed0
push eax
call fcn.004056a0
mov eax, dword [esp + 0x28]
add esp, 0xc
mov edi, eax
cmp eax, dword [esp + 0x20]
jbe 0x404ea1
call fcn.00480e22
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x404f0f
call fcn.00480e22
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x404eba
call fcn.00480e22
mov edx, dword [esi]
mov eax, dword [edx + 4]
push edi
mov ecx, esi
call eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], vtable.StringStorage.0
cmp eax, ebx
je 0x404edd
push eax
call fcn.00480e32
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.00480e32
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x28
ret
mov eax, dword [eax]
jmp 0x404e73
mov eax, dword [eax]
jmp 0x404eb0

Function at 0x406560
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4c17be
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push str.TvnWindowsApplicationClass
lea ecx, [esi + 0xc]
push ecx
mov dword [esi], vtable.WindowsApplication.0
mov dword [esi + 4], eax
mov dword [esi + 8], 0
call fcn.004049f0
mov dword [esp + 0x10], 0
mov dword [esi + 0x28], vtable.TvnServerListener.0
mov byte [esp + 0x10], 1
mov dword [esi + 0x2c], vtable.LogInitListener.0
lea edx, [esi + 0x34]
mov dword [esi], vtable.TvnServerApplication.0
mov dword [esi + 0x28], vtable.TvnServerApplication.1.0
mov dword [esi + 0x2c], vtable.TvnServerApplication.2.0
push edx
mov dword [esi + 0x30], vtable.FileLogger.0
call fcn.00424f10
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esi + 0xcc]
push ecx
mov byte [esp + 0x18], 2
call fcn.004049f0
mov edx, dword [esp + 0x24]
mov dword [esi + 0xe8], 0
mov dword [esi + 0xf0], edx
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 0x10
Function at 0x408700
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4be1c0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
lea ecx, [esp + 0x2c]
call fcn.00404990
lea eax, [esp + 0x2c]
xor ebx, ebx
push eax
mov dword [esp + 0x7c], ebx
call fcn.0041b0b0
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00404990
mov byte [esp + 0x78], 1
mov eax, dword [esp + 0x3c]
mov esi, eax
cmp eax, dword [esp + 0x40]
jbe 0x408761
call fcn.00480e22
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x408891
call fcn.00480e22
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x40877e
call fcn.00480e22
push str._slave
push str._controlservice
push esi
lea ecx, [esp + 0x1c]
push str.__s___s__s
push ecx
call fcn.004056a0
add esp, 0x14
push ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
lea edx, [esp + 0x58]
push edx
call fcn.0041bac0
mov eax, dword [esp + 0x20]
mov esi, eax
cmp eax, dword [esp + 0x24]
jbe 0x4087c2
call fcn.00480e22
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x408898
call fcn.00480e22
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4087df
call fcn.00480e22
mov edi, dword [esp + 0x4c]
cmp edi, ebx
je 0x408814
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4087f0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebx
push str.tvncontrol
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esp + 0x48]
call fcn.0041bbc0
mov eax, dword [esp + 0x20]
mov esi, vtable.StringStorage.0
mov dword [esp + 0x10], esi
cmp eax, ebx
je 0x408837
push eax
call fcn.00480e32
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00480e32
mov eax, dword [esp + 0x40]
add esp, 4
mov dword [esp + 0x2c], esi
cmp eax, ebx
je 0x408865
push eax
call fcn.00480e32
add esp, 4
mov edx, dword [esp + 0x30]
push edx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.00480e32
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x6c
ret
mov eax, dword [eax]
jmp 0x408774
mov eax, dword [eax]
jmp 0x4087d5

Function at 0x4088a0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
sub esp, 0x2c
push 0
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
lea eax, [esp + 0x10]
push eax
call fcn.0041bac0
mov eax, dword [esp + 4]
test eax, eax
je 0x4088cf
push str.tvncontrol
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea ecx, [esp]
call fcn.0041bbc0
add esp, 0x2c
ret
Function at 0x409950
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bc575
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
mov dword [edi], vtable.DesktopServerApplication.0
mov dword [edi + 0x28], vtable.DesktopServerApplication.1.0
mov dword [edi + 0x2c], vtable.DesktopServerApplication.2.0
lea esi, [edi + 0x230]
push str.The_Desktop_server_application_destructor_has_been_called
mov dword [esp + 0x1c], 5
call fcn.004239b0
add esp, 4
push edi
call fcn.00409a40
push str.Desktop_server_application_has_been_terminated
call fcn.004239b0
add esp, 4
lea ecx, [edi + 0x15c]
mov dword [esi], vtable.LogWriter.0
mov byte [esp + 0x18], 3
call fcn.00445db0
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 2
call fcn.0043e120
mov dword [edi + 0x2c], vtable.ConfigReloadListener.0
mov dword [edi + 0x28], vtable.AnEventListener.0
mov dword [edi], vtable.WindowsApplication.0
mov dword [edi + 0xc], vtable.StringStorage.0
mov eax, dword [edi + 0x1c]
xor esi, esi
cmp eax, esi
je 0x409a0b
push eax
call fcn.00480e32
add esp, 4
mov eax, dword [edi + 0x10]
push eax
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], esi
mov dword [edi + 0x24], esi
call fcn.00480e32
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x409d50
Capabilities:
Create thread
Resume thread

Disassembly:
lea ecx, [esi + 8]
push ecx
push 4
push esi
xor eax, eax
push 0x413f30
push eax
mov dword [esi], vtable.Thread.0
mov byte [esi + 0xc], al
push eax
mov byte [esi + 0xd], al
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dl, byte [esp + 8]
mov dword [esi + 4], eax
mov eax, dword [esp + 4]
mov dword [esi], vtable.WsConfigRunner.0
mov byte [esi + 0x10], dl
mov dword [esi + 0x14], vtable.LogWriter.0
mov dword [esi + 0x18], eax
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne dl
mov byte [esi + 0xc], dl
mov eax, esi
ret 8
Function at 0x40b6e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c1598
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
mov dword [esp + 0x1c], vtable.AutoLock.0
mov dword [esp + 0x20], esi
call edx
add esi, 0x1c
mov dword [esp + 0x30], 0
mov ebx, dword [esi + 0xc]
cmp ebx, dword [esi + 0x10]
jbe 0x40b73c
call fcn.00480e22
mov edi, dword [esi]
mov edi, edi
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], eax
cmp dword [esi + 0xc], eax
jbe 0x40b751
call fcn.00480e22
mov eax, dword [esi]
test edi, edi
je 0x40b75b
cmp edi, eax
je 0x40b760
call fcn.00480e22
cmp ebx, dword [esp + 0x14]
je 0x40b7cb
test edi, edi
jne 0x40b79c
call fcn.00480e22
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40b77b
call fcn.00480e22
mov eax, dword [ebp + 0xc]
cmp dword [ebx], eax
je 0x40b7a4
test edi, edi
jne 0x40b7a0
call fcn.00480e22
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40b797
call fcn.00480e22
add ebx, 4
jmp 0x40b740
mov eax, dword [edi]
jmp 0x40b771
mov eax, dword [edi]
jmp 0x40b78d
mov ecx, dword [ebp + 8]
mov dword [esp + 0x30], 0xffffffff
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x40b7d6
xor eax, eax
jmp 0x40b7de
mov eax, dword [esi + 0x14]
sub eax, ecx
sar eax, 2
mov edi, dword [esi + 0x10]
mov edx, edi
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x40b7f9
mov eax, dword [ebp + 0xc]
mov dword [edi], eax
add edi, 4
mov dword [esi + 0x10], edi
jmp 0x40b816
cmp ecx, edi
jbe 0x40b802
call fcn.00480e22
mov eax, dword [esi]
push edi
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
mov eax, esi
call fcn.00406b80
mov ecx, dword [ebp + 8]
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40bad0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4bc41f
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov ebp, vtable.Control.0
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x20], edi
lea ebx, [esi + 0x24]
mov dword [esp + 0x1c], edi
mov ecx, ebx
mov dword [esi], vtable.QueryConnectionDialog.0
call fcn.00404990
mov al, byte [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov byte [esi + 0x40], al
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], edi
mov dword [esi + 0x54], ebp
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], ebp
mov dword [esi + 0x64], edi
mov dword [esi + 0x6c], ebp
mov dword [esi + 0x70], edi
mov eax, dword [esp + 0x28]
mov byte [esp + 0x1c], 5
mov edx, dword [ebx]
mov edx, dword [edx + 4]
push eax
mov ecx, ebx
call edx
mov dword [esi + 8], 0x80
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10

Function at 0x40bec0
Capabilities:
Create thread
Resume thread

Disassembly:
lea eax, [esi + 8]
push eax
push 4
push esi
push 0x413f30
push 0
mov dword [esi], vtable.Thread.0
mov byte [esi + 0xc], 0
push 0
mov byte [esi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x400001cf
push 1
push 0
mov dword [esi + 4], eax
mov dword [esi], vtable.GuiThread.0
mov dword [esi + 0x10], 0
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x14]
push eax
mov dword [esi], vtable.SessionChangesWatcher.0
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne dl
mov byte [esi + 0xc], dl
mov eax, esi
ret 8
Function at 0x40c9e0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4be06e
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x1c]
lea eax, [edi + 8]
push eax
push 4
push edi
push 0x413f30
push 0
mov dword [edi], vtable.Thread.0
mov byte [edi + 0xc], 0
push 0
mov byte [edi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
lea ecx, [edi + 0x10]
mov dword [esp + 0x14], 0
push ecx
mov dword [edi], vtable.ControlServer.0
call fcn.00410150
lea edx, [edi + 0x78]
push edx
mov byte [esp + 0x18], 1
call fcn.00414810
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov byte [esp + 0x14], 2
push 0x55797c
push 0x4c8fc8
mov dword [edi + 0xc8], eax
mov dword [edi + 0xcc], ecx
mov dword [edi + 0xd0], esi
call fcn.00423980
mov edx, dword [edi + 4]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [edi + 0xc], al
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0xc

Function at 0x40cbd0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c15cb
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x57e030]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
jmp 0x40cc10
mov al, byte [edi + 0xd]
test al, al
jne 0x40ccd7
mov ecx, dword [edi + 0xc8]
call fcn.0041e420
mov esi, eax
push 0xc
mov dword [ebp - 0x14], esi
call fcn.00480ed5
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x40cc49
mov dword [eax + 8], ebx
mov dword [eax], vtable.NamedPipeTransport.0
mov dword [eax + 4], esi
mov ebx, eax
push 0xc4
call fcn.00480ed5
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x40cc8b
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [edi + 0xd0]
push ecx
push eax
mov eax, dword [edi + 0xcc]
lea edx, [edi + 0x10]
push edx
push eax
push ebx
push esi
call fcn.004104c0
mov esi, eax
jmp 0x40cc8d
xor esi, esi
mov byte [ebp - 4], 0
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne dl
push esi
lea ecx, [edi + 0x78]
mov byte [esi + 0xc], dl
call fcn.004149f0
jmp 0x40cc10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret