joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465ef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx]
and esi, 7
mov dword [ebp - 4], 0
cmp eax, 5
jae 0x465f12
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea edx, [edx + eax - 4]
push ebx
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], edx
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
add edi, eax
cmp edi, edx
jae 0x465f40
mov cl, byte [edi]
and cl, 0xfe
cmp cl, 0xe8
je 0x465f40
inc edi
cmp edi, edx
jb 0x465f31
mov ebx, edi
sub ebx, eax
mov eax, ebx
sub eax, dword [ebp - 8]
mov dword [ebp - 4], ebx
cmp edi, edx
jae 0x466047
cmp eax, 3
jbe 0x465f77
xor esi, esi
mov al, byte [edi + 4]
mov dword [ebp - 8], ebx
test al, al
je 0x465fb4
cmp al, 0xff
je 0x465fb4
and esi, 3
add esi, esi
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x465f25
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x465f5b
movzx eax, byte [esi + 0x4a1b60]
mov ecx, edi
sub ecx, eax
cmp byte [esi + 0x4a1b58], 0
mov al, byte [ecx + 4]
je 0x465fa0
test al, al
je 0x465fa0
cmp al, 0xff
jne 0x465f5b
and esi, 3
add esi, esi
mov dword [ebp - 8], ebx
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x465f25
movzx ecx, byte [edi + 2]
movzx edx, al
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
sub edx, ebx
lea eax, [edx - 5]
test esi, esi
je 0x466017
movzx edx, byte [esi + 0x4a1b60]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
mov cl, bl
test cl, cl
je 0x465ffe
cmp cl, 0xff
jne 0x466014
mov ebx, dword [ebp - 4]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x465fd2
mov ebx, dword [ebp - 4]
mov ecx, eax
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
add ebx, 5
mov byte [edi + 3], dl
mov edx, dword [ebp - 0xc]
mov byte [edi + 2], cl
mov byte [edi + 1], al
mov dword [ebp - 4], ebx
jmp 0x465f25
cmp eax, 3
jbe 0x46605c
mov edx, dword [ebp + 0xc]
pop edi
xor esi, esi
mov eax, ebx
pop ebx
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea ecx, [eax - 1]
shl esi, cl
pop edi
mov eax, ebx
pop ebx
and esi, 7
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x467e50
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f4c8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4c21d0]
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 edi, edi
xor eax, eax
mov ebx, ecx
mov word [ebp - 0x2c], ax
mov eax, ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x467e97
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [ebp - 0x2c]
call fcn.0040e410
mov ecx, esi
mov dword [ebp - 4], edi
push ecx
mov edi, 1
call fcn.00468da0
push 0x4a39e4
lea ecx, [ebp - 0x4c]
mov esi, eax
call fcn.00401bb0
or edi, 0xffffffff
mov byte [ebp - 4], 1
cmp esi, edi
je 0x467faa
push esi
xor ecx, ecx
lea esi, [ebp - 0x48]
lea edx, [ebp - 0x2c]
call fcn.00468a50
mov esi, 8
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], esi
jb 0x467eff
mov edx, dword [eax]
jmp 0x467f01
mov edx, eax
test edx, edx
jne 0x467f09
xor eax, eax
jmp 0x467f1f
mov eax, edx
lea edi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x467f10
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x4c]
call fcn.00401ab0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], esi
jb 0x467f3e
mov edx, dword [ebp - 0x48]
push edx
call fcn.0046c44a
add esp, 4
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x467f90
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x54]
push edx
mov ebx, 0x4a36e4
call fcn.004065a0
mov eax, dword [eax]
add esp, 8
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x467f8d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x50]
push 0
push 0x80
push 2
push 0
push 5
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
jmp 0x467faf
mov esi, 8
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x467fd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x18], esi
jb 0x467fe3
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0046c44a
add esp, 4
mov eax, edi
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.0046c455
mov esp, ebp
pop ebp
ret
Function at 0x4685d0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea ecx, [ebp - 4]
push ecx
lea esi, [eax + 0x48]
mov eax, dword [eax + 0x3c]
lea edx, [ebp - 8]
push edx
push esi
push 0x20000013
push eax
mov dword [ebp - 8], 4
mov dword [ebp - 4], 0
mov dword [esi], 0x194
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov esi, dword [esi]
cmp esi, 0xc8
je 0x46861f
cmp esi, 0x130
je 0x46861f
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x468630
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48ebe8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4c21d0]
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
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
xor ecx, ecx
mov word [ebp - 0x2c], cx
mov ecx, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x468680
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.0040e410
mov dword [ebp - 4], ebx
mov ebx, edi
mov ecx, esi
call fcn.00467d60
test al, al
sete bl
cmp dword [ebp - 0x18], 8
jb 0x4686bb
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0046c44a
add esp, 4
test bl, bl
jne 0x468706
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x30]
push ecx
mov dword [edi + 0x40], eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov edx, dword [ebp - 0x30]
and dl, 4
sub dl, 4
movzx eax, dl
push 0
neg eax
push 0
sbb eax, eax
push 0
and eax, 4
push eax
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.2__.NET_CLR_1.1.4322__.NET_CLR_2.0.50727_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [edi + 0x38], eax
test eax, eax
jne 0x46870a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x4c], eax
xor al, al
jmp 0x468711
call fcn.00468730
mov al, 1
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.0046c455
mov esp, ebp
pop ebp
ret 8
Function at 0x4687d0
Capabilities:
Check http status code
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoA]
push esi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
xor esi, esi
push 0x20000013
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 8
mov dword [ebp - 4], esi
call ebx
test eax, eax
je 0x46885a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
cmp ecx, 0xc8
jne 0x46881a
cmp eax, esi
je 0x468826
cmp ecx, 0x12e
jne 0x46885a
cmp eax, esi
jne 0x46885a
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x20000005
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 8
mov dword [ebp - 4], esi
call ebx
test eax, eax
je 0x46885a
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
or edx, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46acf0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4c21d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [edx]
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 0x206
mov dword [ebp - 0x214], eax
push edx
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x210], ecx
mov word [ebp - 0x20c], dx
call fcn.0046ff60
mov ecx, dword [ebp - 0x214]
mov eax, dword [ecx]
mov ebx, dword [ebx]
mov edi, dword [edi]
add esp, 0xc
push esi
push 0x104
lea edx, [ebp - 0x20c]
push edx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, eax
lea eax, [ebp - 0x20c]
lea ecx, [eax + 2]
jmp 0x46ad70
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x46ad70
sub eax, ecx
mov ecx, dword [ebp - 0x210]
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00401ab0
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046c455
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46ae50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4943a8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4c21d0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
lea ebx, [esi + 4]
push ecx
mov dword [esp + 0x30], 0
call fcn.00407700
add esp, 8
lea edi, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00404db0
xor bl, bl
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46aedc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x1c], esp
mov esi, esp
push eax
call fcn.00401540
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x30], 2
call fcn.00403e00
add esp, 4
push eax
mov byte [esp + 0x30], bl
call fcn.00403fb0
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46af34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46b820
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4c9730], 0
push esi
push edi
jne 0x46b796
call fcn.0046b702
test eax, eax
je 0x46b7db
mov eax, dword [0x4c9730]
cmp eax, 1
jne 0x46b7b7
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x46b7db
jmp 0x46b81d
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x46b81d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x46b7df
xor eax, eax
jmp 0x46b81d
mov eax, dword [esi]
push dword [0x4c9730]
call edi
mov edi, eax
test edi, edi
je 0x46b801
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x46b81d
lea edi, [esi + 0xff0]
push esi
push dword [0x4c9730]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x46b807
mov eax, esi
pop edi
pop esi
ret
jmp 0x46b782

Function at 0x46c455
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c21d0]
jne 0x46c45f
repz ret
jmp fcn.00474451
Function at 0x47f368
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c21d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00476448
and dword [ebp - 0x14], 0
cmp dword [0x4ca7b8], 0
mov dword [ebp - 0x18], eax
jne 0x47f41b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x47f4c3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a0fb4
push ebx
call edi
test eax, eax
je 0x47f4c3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4ca7b8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4ca7bc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4ca7c0], eax
call edi
push eax
call esi
mov dword [0x4ca7c8], eax
test eax, eax
je 0x47f41b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4ca7c4], eax
mov eax, dword [0x4ca7c4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x47f474
cmp dword [0x4ca7c8], ecx
je 0x47f474
push eax
call esi
push dword [0x4ca7c8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x47f474
test ebx, ebx
je 0x47f474
call edi
test eax, eax
je 0x47f46b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x47f46b
test byte [ebp - 8], 1
jne 0x47f474
or dword [ebp + 0x10], 0x200000
jmp 0x47f4a7
mov eax, dword [0x4ca7bc]
cmp eax, dword [ebp - 0x18]
je 0x47f4a7
push eax
call esi
test eax, eax
je 0x47f4a7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x47f4a7
mov eax, dword [0x4ca7c0]
cmp eax, dword [ebp - 0x18]
je 0x47f4a7
push eax
call esi
test eax, eax
je 0x47f4a7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4ca7b8]
call esi
test eax, eax
je 0x47f4c3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x47f4c5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046c455
leave
ret
Function at 0x486c10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x48b350
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4c21d0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c21d0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [0x4c36bc]
cmp eax, 0xffffffff
jne 0x486c50
xor esi, esi
jmp 0x486c59
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x18], esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x58], 0
test esi, esi
je 0x486cad
nop
cmp dword [esi + 0x14], 0
jne 0x486cfa
cmp dword [esi + 0x10], 0
jne 0x486d00
push 0x486280
push 0x4ca7e4
call fcn.00486500
mov eax, dword [0x4c36bc]
add esp, 8
cmp eax, 0xffffffff
je 0x486db1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x58], 0xffffffff
test esi, esi
je 0x486cdb
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x486cdb
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0046c455
add esp, 0x48
ret
cmp dword [esi + 0x10], 0
je 0x486d42
mov ebp, dword [esi + 0x10]
mov eax, dword [ebp + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp]
test ecx, ecx
je 0x486d30
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp dword [esi + 0x10], 0
jne 0x486d00
cmp dword [esi + 0x14], 0
je 0x486c7a
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x486d67
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebp, dword [edi + 8]
test ebp, ebp
je 0x486d9a
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x486d9a
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
lea ecx, [ebp + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x486d9a
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp dword [esi + 0x14], 0
jne 0x486d4c
jmp 0x486c70
call fcn.00487bb0
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
mov edi, 0xb
mov dword [esp + 0x18], str.boost::thread_resource_error
call fcn.0046ca55
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov dword [esp + 0x1c], vtable.boost::thread_resource_error.0
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x5c], 1
call fcn.00405aa0
int3
Function at 0x486f00
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x48b3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4c21d0]
xor eax, esp
mov dword [esp + 0x34], eax
push ebp
push esi
push edi
mov eax, dword [0x4c21d0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x486e10
push 0
push 0
call fcn.0046d132
mov ebp, eax
add esp, 0x18
test ebp, ebp
jne 0x486fa2
call fcn.00487bb0
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
mov esi, eax
lea edi, [ebp + 0xb]
mov dword [esp + 0x14], str.boost::thread_resource_error
call fcn.0046ca55
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebp
mov byte [esp + 0x28], 0
mov dword [esp + 0x14], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x54], ebp
call fcn.00405aa0
mov ecx, dword [esi]
add ecx, 4
mov edx, 1
lock xadd dword [ecx], edx
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x486fc5
cmp eax, 0xffffffff
je 0x486fc5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebp
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0046c455
add esp, 0x44
ret
Function at 0x456170
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ecx
push eax
push 0x455fa0
push 0
push 0
call fcn.004d6126
add esp, 0x18
mov esi, eax
push 0x3a98
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4561cc
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x5b4
pop esi
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x45a940
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
test eax, eax
jne 0x45a972
mov esi, 0x50b120
mov ebx, 0x50b138
jmp 0x45a985
cmp eax, 1
jne 0x45aac8
mov esi, 0x50b154
mov ebx, 0x50b16c
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x20019
push 0
push 0x50b180
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45aac8
lea eax, [ebp - 8]
push eax
push edi
push 0
push 0
push ebx
push dword [ebp + 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call ebx
push dword [ebp + 8]
test eax, eax
je 0x45a9e3
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocStringLen
call ebx
test eax, eax
jne 0x45aac8
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c3a3e
add esp, 4
mov dword [edi + 8], eax
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocStringLen
call ebx
test eax, eax
jne 0x45aa5c
mov eax, dword [edi]
xor ecx, ecx
inc eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c3a3e
mov ecx, eax
add esp, 4
mov dword [edi + 4], ecx
test ecx, ecx
jne 0x45aa72
push dword [edi + 8]
call fcn.004c3683
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
lea eax, [eax*4 + 4]
push eax
push 0
push ecx
call fcn.004c53a0
mov esi, dword [edi + 8]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
je 0x45aac8
push esi
call fcn.004d5dfb
add esp, 4
cmp eax, dword [edi]
ja 0x45aac8
mov ecx, dword [edi + 4]
lea esi, [esi + ebx*2]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, 2
push esi
mov dword [ecx + eax*4], esi
call ebx
lea esi, [esi + eax*2]
add esi, 2
push esi
call ebx
mov ebx, eax
test ebx, ebx
jne 0x45aa97
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x475410
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x535a40]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x532454], 0
jne 0x47543c
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c34b7
mov esp, ebp
pop ebp
ret
push ebx
xor bl, bl
cmp dword [0x54f9bc], 0
je 0x4754bd
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004c53a0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x54f9bc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x4754bd
mov eax, 0x50d150
lea ecx, [ebp - 0x20c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4754ab
test dx, dx
je 0x4754a7
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4754ab
add ecx, 4
add eax, 4
test dx, dx
jne 0x475485
xor eax, eax
jmp 0x4754b0
sbb eax, eax
or eax, 1
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004c34b7
mov esp, ebp
pop ebp
ret
Function at 0x477ec0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x477f18
cmp esi, 1
je 0x477f18
cmp esi, 0xffffffff
je 0x477ee2
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
mov ecx, dword [edi + 0x50]
lea ebx, [edi + 0x50]
cmp ecx, 0xffffffff
je 0x477f54
xor eax, eax
test ecx, ecx
push 5
sete al
lea eax, [eax*4 + 4]
push dword [eax + edi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, edi
mov dword [ebx], esi
call fcn.004659d0
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4
push dword [edi + esi*4 + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x477f34
push 5
push dword [edi + esi*4 + 4]
call ebx
xor eax, eax
test esi, esi
push 0
sete al
lea eax, [eax*4 + 4]
push dword [eax + edi]
call ebx
cmp dword [edi + 0x28], esi
je 0x477f51
mov dword [edi + 0x28], esi
lea ebx, [edi + 0x50]
mov ecx, edi
mov dword [ebx], esi
call fcn.004659d0
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 4