joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10029327
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10020da2
xor ebx, ebx
cmp dword [0x1003fdec], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x100293fd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100294dd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100294dd
push eax
call fcn.10020d34
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1003fdec], eax
call esi
push eax
call fcn.10020d34
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1003fdf0], eax
call esi
push eax
call fcn.10020d34
mov dword [0x1003fdf4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1001f3a6
test eax, eax
pop ecx
pop ecx
je 0x100293cb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001caad
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x100293fd
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10020d34
cmp eax, ebx
pop ecx
mov dword [0x1003fdfc], eax
je 0x100293fd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10020d34
pop ecx
mov dword [0x1003fdf8], eax
mov eax, dword [0x1003fdf8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10029482
cmp dword [0x1003fdfc], ecx
je 0x10029482
push eax
call fcn.10020dab
push dword [0x1003fdfc]
mov esi, eax
call fcn.10020dab
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10029482
cmp edi, ebx
je 0x10029482
call esi
cmp eax, ebx
je 0x1002944f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1002944f
test byte [ebp - 0x18], 1
jne 0x10029482
lea eax, [ebp - 0x10]
push eax
call fcn.1001f3dd
test eax, eax
pop ecx
je 0x1002946a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001caad
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10029479
or dword [ebp + 0x10], 0x200000
jmp 0x100294bd
or dword [ebp + 0x10], 0x40000
jmp 0x100294bd
mov eax, dword [0x1003fdf0]
cmp eax, dword [ebp - 8]
je 0x100294bd
push eax
call fcn.10020dab
cmp eax, ebx
pop ecx
je 0x100294bd
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100294bd
mov eax, dword [0x1003fdf4]
cmp eax, dword [ebp - 8]
je 0x100294bd
push eax
call fcn.10020dab
cmp eax, ebx
pop ecx
je 0x100294bd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1003fdec]
call fcn.10020dab
cmp eax, ebx
pop ecx
je 0x100294dd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100294df
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406a26
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a4a
xor eax, eax
test eax, eax
je 0x406a5d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a5d
xor ecx, ecx
jmp 0x406a60
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b83
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406bba
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b94
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b8f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406beb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bcd
pop edi
not eax
pop esi
ret 0xc

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x381241
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x8142f80
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
push ebx
push 0x400000
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x401044
push ebx
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x401044
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x40104c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 1]
test eax, eax
jns 0x40105d
push 0x80070057
call fcn.004136e0
mov ecx, dword [edi]
mov edx, 1
sub edx, dword [ecx - 4]
mov ecx, dword [ecx - 8]
sub ecx, eax
or edx, ecx
jge 0x401077
mov ecx, edi
call fcn.00407f10
mov edx, dword [edi]
push esi
push ebx
push edx
call fcn.0042e3c0
add esp, 0xc
mov eax, esi
cmp esi, 0xffffffff
jne 0x40109e
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x4010a2
push ecx
push eax
call fcn.0042bb0d
add esp, 8
test eax, eax
js 0x401053
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x401053
mov edx, dword [ebp - 4]
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
push edx
mov byte [eax + ecx], 0
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403d50
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461463
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.004428a0
mov eax, dword [0x4776f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
jne 0x403db9
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403db2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x403f55
push 0x400
lea ecx, [ebp - 0x1010]
push ebx
push ecx
call fcn.0042d1d0
add esp, 0xc
lea edx, [ebp - 0x101c]
push edx
push 0x1000
lea eax, [ebp - 0x1010]
push eax
mov dword [ebp - 0x101c], ebx
mov dword [ebp - 0x1014], ebx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x403f23
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1018], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x101c]
shr eax, 2
mov dword [ebp - 0x1020], eax
cmp eax, ebx
jbe 0x403ed8
mov ecx, dword [ebp + ebx*4 - 0x1010]
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x403efa
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x403e78
mov eax, 0x400
lea ecx, [ebp - 0x1018]
call fcn.00413680
mov esi, dword [ebp - 0x1018]
push 0x400
push esi
push 0
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042b50a
add esp, 8
test eax, eax
js 0x403f19
cmp eax, dword [esi - 8]
jg 0x403f19
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
cmp dword [esi - 0xc], edx
je 0x403f00
mov eax, dword [ebp + 8]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x403f0f
push eax
push esi
call fcn.0042b62d
add esp, 8
test eax, eax
jne 0x403f00
mov dword [ebp - 0x1014], 1
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403f29
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc ebx
cmp ebx, dword [ebp - 0x1020]
jb 0x403e2f
jmp 0x403ed8
push 0x80004005
call fcn.004136e0
push 0x80070057
call fcn.004136e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1014]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ab2f
mov esp, ebp
pop ebp
ret
Function at 0x403f80
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461423
mov eax, dword fs:[0]
push eax
mov eax, 0x1010
call fcn.004428a0
mov eax, dword [0x4776f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x400
lea eax, [ebp - 0x1010]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0042d1d0
add esp, 0xc
lea ecx, [ebp - 0x1018]
push ecx
push 0x1000
lea edx, [ebp - 0x1010]
push edx
mov dword [ebp - 0x1018], ebx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x404104
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x1014], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1018]
shr eax, 2
mov dword [ebp - 0x101c], eax
cmp eax, ebx
jbe 0x4040e4
mov eax, dword [ebp + ebx*4 - 0x1010]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4040d7
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x40406f
mov eax, 0x400
lea ecx, [ebp - 0x1014]
call fcn.00413680
mov esi, dword [ebp - 0x1014]
push 0x400
push esi
push 0
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042b50a
add esp, 8
test eax, eax
js 0x404150
cmp eax, dword [esi - 8]
jg 0x404150
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
je 0x4040d0
mov eax, dword [ebp + 8]
test eax, eax
setne cl
test ecx, ecx
je 0x404146
push eax
push esi
call fcn.0042b62d
add esp, 8
test eax, eax
jne 0x4040d0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [ebp - 0x101c]
jb 0x404026
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404104
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40412a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042ab2f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004136e0
push 0x80070057
call fcn.004136e0
int3
Function at 0x404160
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4776f4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push 0x20
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
test esi, esi
je 0x4041e9
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, eax
test esi, esi
je 0x4041e9
mov eax, dword [ebp - 0x18]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, eax
test esi, esi
je 0x4041e9
mov esi, 1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4041f7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042ab2f
mov esp, ebp
pop ebp
ret
Function at 0x404c70
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462ff2
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
mov eax, dword [0x4776f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x58]
push eax
call fcn.00416930
lea esi, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.00403cc0
lea ecx, [ebp - 0x14]
push 0x47b41c
push ecx
mov ebx, esi
mov byte [ebp - 4], 1
call fcn.00405410
mov bl, 2
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add esp, 4
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
call fcn.00413290
add eax, 0x10
mov dword [esi], eax
call fcn.00403f80
lea esi, [ebp - 0x10]
call fcn.00403c40
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
call fcn.00413290
add eax, 0x10
lea ecx, [ebp - 0x58]
mov dword [esi], eax
call fcn.00418320
push 0xc
call fcn.0042aebd
push 0
push 0
push eax
push 0x419c30
lea edx, [ebp - 0x58]
push 0
push 0
mov dword [eax], edx
mov dword [eax + 4], 0x416b40
mov dword [eax + 8], 0
call fcn.0042c307
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x404d64
push 0x927c0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x404d5d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00404820
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404d8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404dae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404dd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x58]
push ecx
mov dword [ebp - 4], 0xffffffff
call fcn.00416a90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406590
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov ebx, eax
test ebx, ebx
je 0x4065d3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x4065d3
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4065d3
push 0
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 4], 1
push ebx
call fcn.00407270
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
jne 0x4065f9
cmp dword [ebp - 4], eax
je 0x4065f0
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esi + 4]
call fcn.00412e00
push 0
push 0
push 0x110
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 0x4c], 0
je 0x406633
push 0x43
push 0
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, 1
mov edi, esi
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
call fcn.00407370
mov eax, dword [esi + 4]
push 0x97
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [ebp - 4], 0
je 0x40666d
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x406683
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [ebp - 8]
jne 0x406683
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esi + 0x40]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408380
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f70b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4776f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0042a91a
push 4
mov dword [ebp - 4], 0
call fcn.0042aebd
mov edi, eax
add esp, 4
test edi, edi
je 0x4083fc
call fcn.0042a37b
mov dword [edi], eax
call fcn.0042a13a
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0042a06f
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4083f2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0042a097
jmp 0x4083fe
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e210
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x460649
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4776f4]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [esp + 8], 0
lea eax, [ecx - 0x2c]
mov dword [esp + 0x30], 0x46abec
mov dword [esp + 0x38], vtable.boost::exception_detail::clone_base.0
mov dword [esp + 0x48], 0
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
call fcn.0040dc10
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_path__.0
mov dword [esp + 0x1c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_path__.1.0
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x30], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_path__.2.0
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
push 0x4709d8
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + eax + 0x34], 0
mov dword [esp + 0x50], 0xffffffff
call fcn.0042f26b
int3
Function at 0x410b40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x460649
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4776f4]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [esp + 8], 0
lea eax, [ecx - 0x2c]
mov dword [esp + 0x30], 0x46abec
mov dword [esp + 0x38], vtable.boost::exception_detail::clone_base.0
mov dword [esp + 0x48], 0
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
call fcn.004105c0
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_data__.0
mov dword [esp + 0x1c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_data__.1.0
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x30], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::property_tree::ptree_bad_data__.2.0
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
push 0x470b78
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + eax + 0x34], 0
mov dword [esp + 0x50], 0xffffffff
call fcn.0042f26b
int3

Function at 0x413380
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x413398
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4133ca
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4133c6
cmp esi, eax
jae 0x4133ca
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4133b8
cmp esi, eax
jb 0x4133d0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x414120
Capabilities:
Hide graphical window
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esi + 4]
or eax, 0x20000
push eax
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, str.apptitle
call fcn.004026d0
lea edx, [ebp - 4]
push edx
mov ecx, eax
call fcn.004137f0
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov edx, dword [esi + 4]
push eax
push 0
push 0x80
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4141a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebx
push edi
mov ecx, str.uninstallprocress
call fcn.004026d0
lea ebx, [esi + 0x16c]
test eax, eax
jne 0x4141c1
xor ecx, ecx
jmp 0x4141d5
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4141c6
sub ecx, edi
sar ecx, 1
push eax
push ebx
mov ebx, ecx
call fcn.00413700
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ecx
call edi
push 0
mov ecx, esi
call fcn.004149c0
mov edx, dword [esi + 4]
push 5
push edx
call edi
pop edi
mov dword [esi + 0x12c], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret