joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a8940
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef2d8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x53f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 0xc]
cmp eax, edi
jne 0x4a89b0
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 0x4a899b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push edi
push edi
push 0x84000000
push edi
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
push ecx
mov edx, esp
mov dword [ebp - 0x14], esp
push eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 8]
push eax
push str.CHttpRemoteFile::SetLocation:_InternetOpenUrl__s__d
push edx
call fcn.00478610
add esp, 0x10
call fcn.004a88d0
mov esi, dword [esi + 0x10]
add esp, 4
cmp esi, edi
je 0x4a8a20
push edi
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x20000013
push esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
mov eax, dword [ebp - 0x10]
je 0x4a8a5b
cmp eax, 0xc8
jne 0x4a8a5b
mov edi, 1
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 0x4a8a46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
push str.CHttpRemoteFile::SetLocation:_return_code:__d
push ecx
call fcn.00478610
add esp, 0xc
call fcn.004a88d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4a898f

Function at 0x4a8aa0
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push 0
lea edx, [ebp - 4]
push edx
push eax
mov dword [eax], 0
mov eax, dword [ecx + 0x10]
push 0x20000005
push eax
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4a8ad9
mov eax, 1
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4a8b90
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
push 0x4000
mov ebx, ecx
mov dword [ebp - 4], edi
call fcn.004cc1d4
mov ecx, dword [ebx + 0x10]
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x4000
push esi
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4a8c1e
mov eax, dword [ebp - 4]
add edi, eax
cmp eax, 0x4000
jne 0x4a8c0e
lea edx, [edi + 0x4000]
push edx
push esi
call fcn.004ccd9e
mov edx, dword [ebx + 0x10]
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x4000
lea ecx, [esi + edi]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4a8bc5
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
mov eax, edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
mov eax, edi
pop edi
mov dword [edx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a9050
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef9b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x53f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4a90cc
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 0x4a90b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov ebx, esp
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
push eax
lea edi, [ebp - 0x14]
lea esi, [ebp - 0x10]
call fcn.00425422
add eax, 0x10
add esp, 4
mov dword [ebx], eax
call fcn.0047bab0
add esp, 4
or edx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test eax, eax
mov eax, dword [ebp + 8]
jne 0x4a913a
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a90b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
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
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a9153
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
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 0x4ab310
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebx + 0x3c]
movzx ecx, word [eax + ebx + 0x14]
add eax, ebx
push esi
push edi
movzx edi, word [eax + 6]
lea edx, [ecx + eax + 0x18]
xor ecx, ecx
mov dword [ebp - 4], edx
test edi, edi
jle 0x4ab358
lea eax, [edx + 8]
mov edx, dword [eax]
mov esi, edx
test edx, edx
jne 0x4ab33f
mov esi, dword [eax + 8]
mov edx, dword [eax + 4]
cmp dword [ebp + 8], edx
jb 0x4ab350
add esi, edx
mov edx, dword [ebp + 8]
cmp edx, esi
jb 0x4ab362
inc ecx
add eax, 0x28
cmp ecx, edi
jl 0x4ab334
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [ecx + ecx*4]
mov ecx, dword [ebp - 4]
lea ecx, [ecx + eax*8]
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
pop edi
add eax, ebx
add eax, edx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4ad670
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0
push 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
je 0x4ad69b
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x541030], 0xffffffff
jne 0x4ad770
push ecx
mov ecx, esp
mov dword [ebp - 8], esp
push str.License.dat
call fcn.004247e9
lea eax, [ebp - 8]
push eax
call fcn.00477be0
mov esi, dword [eax]
add esp, 8
call fcn.004bcd4c
test eax, eax
jne 0x4ad6d9
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edi, eax
add edi, 0x10
mov dword [ebp - 4], edi
test esi, esi
je 0x4ad70f
test esi, 0xffff0000
jne 0x4ad713
movzx esi, si
push esi
call fcn.004c4eeb
test eax, eax
je 0x4ad729
push esi
push eax
lea ecx, [ebp - 4]
call fcn.00424e60
jmp 0x4ad726
xor eax, eax
jmp 0x4ad71c
push esi
call fcn.004cbe7a
add esp, 4
push eax
push esi
lea ecx, [ebp - 4]
call fcn.004253b1
mov edi, dword [ebp - 4]
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 0x4ad748
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, edi
call fcn.004aca30
mov dword [0x541030], eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ad770
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [0x541030]
test ebx, ebx
je 0x4ad788
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aefa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f02a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x53f100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x544f78]
call fcn.004bcd4c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4aefe8
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov ecx, 0x50107c
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x4af026
mov edx, ecx
movzx ebx, dx
push ebx
call fcn.004c4eeb
test eax, eax
je 0x4af044
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.00424e60
jmp 0x4af041
push 0x50107c
call fcn.004cbe7a
add esp, 4
push eax
push 0x50107c
lea ecx, [ebp - 0x10]
call fcn.004253b1
mov esi, dword [ebp - 0x10]
mov ebx, 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0x2000
call fcn.004aef10
cmp dword [edi + 0x14], 0
je 0x4af0dc
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi - 8]
shr ecx, 1
add ecx, ebx
mov edx, ebx
sub edx, dword [esi - 4]
sub eax, ecx
or eax, edx
jge 0x4af082
push ecx
lea ecx, [ebp - 0x10]
call fcn.004224ff
mov esi, dword [ebp - 0x10]
mov edx, dword [edi + 0x14]
lea eax, [ebp - 0x14]
push eax
push esi
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.DataIntegrity
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004cbe5b
add esp, 8
test eax, eax
jl 0x4af0d2
cmp eax, dword [esi - 8]
jg 0x4af0d2
xor ecx, ecx
push ecx
mov edx, esp
mov dword [ebp - 0x1c], esp
push esi
push str.AutoRecoverPreviousSession:_DataIntegrity_s
mov dword [esi - 0xc], eax
push edx
mov word [esi + eax*2], cx
call fcn.00478610
add esp, 0xc
jmp 0x4af0f0
push 0x80070057
call fcn.00422000
push ecx
mov eax, esp
mov dword [ebp - 0x1c], esp
push str._AutoRecoverPreviousSession:_hDataIntegrityKeyNULL
push eax
call fcn.00478610
add esp, 8
call fcn.004ae4d0
mov ecx, dword [esi - 0xc]
add esp, 4
test ecx, ecx
je 0x4af12c
mov eax, dword [edi + 0x18]
add eax, 4
cmp word [eax], 0
jne 0x4af12c
cmp ecx, 0x1000
jge 0x4af12c
mov ecx, 0x1000
sub ecx, dword [edi + 4]
push esi
push ecx
push eax
call fcn.004d0206
add esp, 0xc
push edi
call fcn.004aeba0
mov edx, dword [edi]
mov eax, dword [edx + 8]
push ebx
mov ecx, edi
call eax
mov eax, edi
call fcn.004ae540
mov ecx, dword [edi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x4af16e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov edx, esp
mov dword [ebp - 0x1c], esp
push eax
push str._Lock:_failed_releasing__LE_d
push edx
call fcn.00478610
add esp, 0xc
call fcn.004ae4d0
add esp, 4
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4af191
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 esp, ebp
pop ebp
ret
Function at 0x4b1080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [eax + 0x38], 0
mov dl, byte [eax + 0x34]
push ebx
push esi
mov dword [ebp - 4], 0
mov ebx, 1
jle 0x4b10cb
movzx esi, dl
push edi
nop
mov ecx, dword [eax + 0x260]
mov edi, ecx
shr edi, 0x18
shl ecx, 8
xor edi, esi
xor ecx, dword [edi*4 + 0x540338]
mov dword [eax + 0x260], ecx
mov ecx, dword [ebp - 4]
add ecx, ebx
cmp ecx, dword [eax + 0x38]
mov dword [ebp - 4], ecx
jl 0x4b10a0
pop edi
mov ecx, dword [eax + 0x34]
mov byte [eax + ecx + 0x58], bl
mov esi, dword [eax + 0x38]
mov ecx, esi
sub ecx, ebx
je 0x4b1159
sub ecx, ebx
je 0x4b113b
sub ecx, ebx
je 0x4b112f
mov byte [esi + eax + 0x54], bl
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov dl, byte [eax + 0x38]
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
sub dl, 4
mov byte [esi + ecx], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
mov ecx, dword [eax + 0x44]
mov esi, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [eax + 0x44]
mov ecx, dword [eax + 0x24]
mov byte [ecx + esi], dl
add dword [eax + 0x44], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b31a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x53f100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x110
xor esi, esi
lea eax, [ebp - 0x114]
push esi
push eax
call fcn.004cca60
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4b31f2
cmp dword [ebp - 0x114], 6
lea eax, [esi + 1]
jae 0x4b31f4
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004cb516
mov esp, ebp
pop ebp
ret
Function at 0x4b5630
Capabilities:
Write clipboard data

Disassembly:
push ebx
push esi
xor ebx, ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4b5640
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4b5697
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4b5697
mov edx, eax
mov ecx, edi
sub edx, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x4b5673
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebx, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4ba630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0x18]
mov esi, dword [eax]
mov ebx, ecx
test esi, esi
je 0x4ba666
test ebx, ebx
je 0x4ba666
mov dl, byte [esi + edi]
mov ecx, dword [ebp + 8]
xor dl, byte [ecx]
mov eax, dword [ebp + 0xc]
mov byte [eax], dl
inc eax
inc ecx
inc esi
dec ebx
and esi, 0xf
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ecx
jne 0x4ba646
cmp ebx, 0x10
jb 0x4ba6ef
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, ecx
sub eax, edi
mov dword [ebp - 4], eax
mov eax, edx
sub eax, edi
mov dword [ebp - 8], eax
mov eax, ebx
shr eax, 4
mov dword [ebp - 0xc], eax
shl eax, 4
add ecx, eax
add edx, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push eax
push edi
push ecx
call fcn.0049be60
mov edx, dword [ebp + 0x14]
add esp, 0xc
call fcn.004ba610
cmp esi, 0x10
jae 0x4ba6da
mov ecx, 0xf
sub ecx, esi
shr ecx, 2
lea eax, [esi + edi]
inc ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + eax]
xor edx, dword [eax]
mov esi, dword [ebp - 4]
mov dword [esi + eax], edx
add eax, 4
sub ecx, 1
jne 0x4ba6c4
mov eax, 0x10
add dword [ebp - 4], eax
add dword [ebp - 8], eax
sub ebx, eax
xor esi, esi
sub dword [ebp - 0xc], 1
jne 0x4ba698
test ebx, ebx
je 0x4ba73d
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push eax
push edi
push ecx
call fcn.0049be60
mov edx, dword [ebp + 0x14]
add esp, 0xc
call fcn.004ba610
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
sub edx, edi
lea eax, [esi + edi]
sub ecx, edi
mov dword [ebp - 0xc], edx
add esi, ebx
mov edi, edi
mov dl, byte [eax + ecx]
xor dl, byte [eax]
mov edi, dword [ebp - 0xc]
dec ebx
mov byte [eax + edi], dl
inc eax
test ebx, ebx
jne 0x4ba720
mov eax, dword [ebp + 0x18]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4be884
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4be8a8
cmp dword [edi + 0x54], 0
jne 0x4be8a8
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004bf27b
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004be845
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4c4adb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4c4b22
call fcn.004bf27b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4c4b22
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4c4b3e
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004c4653
mov esi, eax
test edi, edi
je 0x4c4b3c
test ebx, ebx
je 0x4c4b3c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4cb516
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x53f100]
jne 0x4cb520
repz ret
jmp fcn.004d41fd

Function at 0x4dfc99
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.004d3b61
and dword [ebp - 4], 0
cmp dword [0x544718], 0
mov ebx, eax
jne 0x4dfd4a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4dfdfb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4fd828
push edi
call esi
test eax, eax
je 0x4dfdfb
push eax
call fcn.004d3aef
mov dword [esp], 0x4fd818
push edi
mov dword [0x544718], eax
call esi
push eax
call fcn.004d3aef
mov dword [esp], 0x4fd804
push edi
mov dword [0x54471c], eax
call esi
push eax
call fcn.004d3aef
mov dword [esp], 0x4fd7e8
push edi
mov dword [0x544720], eax
call esi
push eax
call fcn.004d3aef
pop ecx
mov dword [0x544728], eax
test eax, eax
je 0x4dfd4a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004d3aef
pop ecx
mov dword [0x544724], eax
mov eax, dword [0x544724]
cmp eax, ebx
je 0x4dfda2
cmp dword [0x544728], ebx
je 0x4dfda2
push eax
call fcn.004d3b6a
push dword [0x544728]
mov esi, eax
call fcn.004d3b6a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4dfda2
test edi, edi
je 0x4dfda2
call esi
test eax, eax
je 0x4dfd99
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4dfd99
test byte [ebp - 0xc], 1
jne 0x4dfda2
or dword [ebp + 0x10], 0x200000
jmp 0x4dfddb
mov eax, dword [0x54471c]
cmp eax, ebx
je 0x4dfddb
push eax
call fcn.004d3b6a
pop ecx
test eax, eax
je 0x4dfddb
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4dfddb
mov eax, dword [0x544720]
cmp eax, ebx
je 0x4dfddb
push eax
call fcn.004d3b6a
pop ecx
test eax, eax
je 0x4dfddb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x544718]
call fcn.004d3b6a
pop ecx
test eax, eax
je 0x4dfdfb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4dfdfd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4019b0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54e23f
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x5a6f30]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
push edi
mov eax, dword [0x5a6f30]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.00414fdd
push 4
call fcn.004141ab
mov esi, eax
test esi, esi
je 0x401a28
mov dword [esi], vtable.CCustomOccManager.0
jmp 0x401a2a
xor esi, esi
push 8
call fcn.00403bdc
add esp, 4
test eax, eax
je 0x401a47
mov dword [eax], vtable.CImpIDispatch.0
mov dword [eax + 4], 0
jmp 0x401a49
xor eax, eax
push esi
mov dword [edi + 0xcc], eax
call fcn.00415947
push 0xc
call fcn.00403bdc
add esp, 8
mov dword [esp + 0x10], eax
mov dword [esp + 0x160], 0
test eax, eax
je 0x401a8b
mov ecx, eax
mov dword [eax + 4], 0
mov dword [eax + 8], 0
call fcn.0041655f
mov esi, eax
jmp 0x401a8d
xor esi, esi
push 0x552e6c
mov dword [esp + 0x164], 0xffffffff
call fcn.0041e11e
push 0x583580
mov ecx, edi
call fcn.004213ac
push ecx
lea ecx, [esp + 0x20]
call fcn.00401c50
push 0
push 0x66
lea ecx, [esp + 0x24]
call fcn.00425b82
mov dword [esp + 0x160], 1
lea ecx, [esp + 0xd4]
mov dword [esp + 0x1c], vtable.CVideoDlg.0
call fcn.0040b9a4
mov dword [esp + 0xd4], vtable.CWebBrowser2.0
mov byte [esp + 0x160], 2
call fcn.0040a033
call fcn.0040a033
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x148], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x160], 3
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.00421b15
test esi, esi
je 0x401b3d
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea ecx, [esp + 0xd4]
mov dword [esp + 0x160], 4
call fcn.0040bb32
lea ecx, [esp + 0xc8]
mov dword [esp + 0x160], 6
call fcn.00423ace
mov byte [esp + 0x160], 5
lea ecx, [esp + 0xbc]
mov dword [esp + 0xbc], vtable.CBrush.0
call fcn.00402130
lea ecx, [esp + 0x1c]
mov dword [esp + 0x160], 0xffffffff
call fcn.0042161c
xor eax, eax
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.0052710c
mov esp, ebp
pop ebp
ret
Function at 0x4026e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e3e2
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5a6f30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x228], 0
xor eax, eax
mov dword [ebp - 0x224], 0
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x22c], esi
mov word [esi], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x224]
push eax
push 0x20219
push 0
push str.SYSTEMCurrentControlSetServicesNamSvcNAM
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x228], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40280a
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.005295a0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x220]
push eax
push 0
push edi
push dword [ebp - 0x224]
mov dword [ebp - 0x21c], 0x104
mov dword [ebp - 0x220], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4027fe
cmp word [ebp - 0x218], ax
jne 0x4027d7
xor ecx, ecx
jmp 0x4027ef
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4027e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.004031c0
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052710c
mov esp, ebp
pop ebp
ret