joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469980
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4cdd48
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4699b9
inc eax
mov dword [esi + 0x10], eax
jmp 0x469acc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4699cd
mov eax, 0xffffffc7
jmp 0x469ace
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4699de
cmp dword [esi + 8], eax
jne 0x4699cd
cmp dword [esi + 8], eax
jne 0x4699f7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4699f7
mov eax, 0xffffffc7
jmp 0x469ace
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x469a0b
push eax
mov ecx, ebx
call fcn.004691b0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0043e740
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x469a3c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0043e760
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00468920
test eax, eax
mov dword [esp + 0x38], eax
je 0x469a6f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x508c68
call fcn.0043e940
mov eax, dword [esp + 0x38]
jmp 0x469ace
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004697e0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x469ab3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00469800
mov esi, eax
test esi, esi
jne 0x469ae3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004697e0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x469a85
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x508c68
call fcn.0043e940
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x508c68
call fcn.0043e940
mov eax, esi
jmp 0x469ace

Function at 0x46e4b0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x46e510
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x46e510
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x46e510
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x46e510
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x46e550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x47a030
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ce638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004c7692
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00479990
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004c75c0
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004c3eb5
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004c3eb5
push 1
push 0
push 0
mov ecx, esi
call fcn.004c3e5d
push 1
push 0
push 1
mov ecx, esi
call fcn.004c3e5d
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004c7704
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x47a1b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ce658
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004c7692
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00479990
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004c75c0
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x47a274
cmp dword [esp + 0x40], 1
jne 0x47a272
cmp ecx, eax
jge 0x47a274
mov eax, ecx
cmp eax, 0xc8
jge 0x47a280
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0047a030
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004c7704
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x47aa70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ce703
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004c22ef
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004c793a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004c8e56
test eax, eax
je 0x47ab8c
mov ecx, dword [esp + 0x3c]
call fcn.004c7967
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x47ab50
push edi
mov ecx, esi
call fcn.004c4fce
mov ecx, esi
call fcn.0047ad30
cmp dword [esp + 0x38], 1
jne 0x47ab85
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004c5109
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x47cd80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x47cdb3
push esi
call fcn.0048b080
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47cdac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x47ce39
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x47ce22
mov eax, dword [esi + 8]
test eax, eax
je 0x47cdd7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x47ce1e
cmp eax, 2
je 0x47ce22
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47cdca
cmp eax, 3
je 0x47cdfd
cmp eax, 1
jne 0x47cdca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47cdca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47cdca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0047ce60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x47ce48
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0047ce60
add esp, 4
pop esi
ret

Function at 0x47d6d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x47d6f1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x47d6f1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x47d6f1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4a0ce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x4a0e01
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x4a0de5
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x4a0d37
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x4a0d15
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x4a1849
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4a18a0
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4a18a0
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x4a18a0
xor eax, eax
inc eax
jmp 0x4a18a2
xor eax, eax
leave
ret 0x10
Function at 0x4a18cb
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x4a1939
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x510904
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a1930
cmp dword [ebp - 0xc], 4
jne 0x4a1930
cmp dword [ebp - 0x10], edi
je 0x4a1930
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x536000], edi
xor eax, eax
jmp 0x4a1978
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x536000], edi
jge 0x4a1973
lea eax, [ebp - 0x34]
push eax
mov dword [0x536000], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x4a1973
cmp word [ebp - 0x14], 5
jb 0x4a1973
call fcn.004a18a6
test eax, eax
je 0x4a1973
emms
mov dword [0x536000], 1
mov eax, dword [0x536000]
pop edi
leave
ret

Function at 0x4c30cb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c3103
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c1199
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c1171
jmp 0x4c310f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c47b9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c47fb
call fcn.004ca13b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c47fb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c47f2
xor eax, eax
jmp 0x4c4803
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c4809
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ca66b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ca699
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ca6b7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ca5d1
jmp 0x4ca6b7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ca6b7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ca5d1
test edi, edi
mov eax, edi
jne 0x4ca6a1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x40e05a]
shl eax, 2
mov dword [0x40e05e], eax
push edi
push ecx
xor eax, eax
mov edi, 0x412180
mov ecx, 0x414fbc
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
mov edx, dword fs:[4]
mov dword [0x40e06e], edx
mov eax, dword [edx - 8]
mov dword [0x40e066], eax
mov eax, dword [edx - 4]
mov dword [0x40e06a], eax
sub edx, 4
mov dword [0x414d50], edx
sub edx, 4
cmp edx, esp
jae 0x401054
mov esp, edx
push 0
call fcn.0040aa3a
pop ecx
push 0x40e02c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x40e062], eax
push 0
jmp fcn.0040d600

Function at 0x40145d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x411124
push 0x80000001
call sub.ADVAPI32.dll_RegCreateKeyExA
test eax, eax
jne 0x401579
mov dword [ebp - 0xc], 4
lea ecx, [ebp - 0xc]
push ecx
push 0x40e074
push 0
push 0
push 0x40e084
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegQueryValueExA
cmp dword [0x40e074], 1
je 0x4014c3
mov dword [0x40e074], 2
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
push 0x40e078
push 0
push 0
push 0x40e08d
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegQueryValueExA
cmp dword [0x40e078], 2
je 0x4014f7
mov dword [0x40e078], 1
mov dword [ebp - 0xc], 4
lea edx, [ebp - 0xc]
push edx
push 0x40e07c
push 0
push 0
push 0x40e096
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegQueryValueExA
cmp dword [0x40e07c], 1
jl 0x40152a
cmp dword [0x40e07c], 0xa
jle 0x401534
mov dword [0x40e07c], 3
mov dword [ebp - 0xc], 4
lea ecx, [ebp - 0xc]
push ecx
push 0x40e080
push 0
push 0
push 0x40e09c
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegQueryValueExA
cmp dword [0x40e080], 1
jl 0x401567
cmp dword [0x40e080], 5
jle 0x401571
mov dword [0x40e080], 6
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x401582
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x411124
push 0x80000001
call sub.ADVAPI32.dll_RegCreateKeyExA
test eax, eax
jne 0x401618
push 4
push 0x40e074
push 3
push 0
push 0x40e084
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegSetValueExA
push 4
push 0x40e078
push 3
push 0
push 0x40e08d
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegSetValueExA
push 4
push 0x40e07c
push 3
push 0
push 0x40e096
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegSetValueExA
push 4
push 0x40e080
push 3
push 0
push 0x40e09c
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegSetValueExA
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
pop ecx
pop ecx
pop ebp
ret
Function at 0x40233c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x411124
push 0x80000001
call sub.ADVAPI32.dll_RegCreateKeyExA
test eax, eax
jne 0x40238a
push 4
push 0x40fac0
push 3
push 0
push 0x40e49a
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegSetValueExA
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
pop ecx
pop ecx
pop ebp
ret

Function at 0x40238e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, 0x412188
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x411124
push 0x80000001
call sub.ADVAPI32.dll_RegCreateKeyExA
test eax, eax
jne 0x402413
mov dword [ebp - 0xc], 4
lea ecx, [ebp - 0xc]
push ecx
push 0x40fac0
push 0
push 0
push 0x40e49a
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegQueryValueExA
cmp dword [0x40fac0], 0
setl al
and eax, 1
cmp dword [0x40fac0], 7
setge dl
and edx, 1
or eax, edx
je 0x40240b
mov dword [0x40fac0], 0xffffffff
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
xor eax, eax
mov dword [ebx + eax*8], eax
xor edx, edx
mov dword [ebx + eax*8 + 4], edx
inc eax
cmp eax, 7
jl 0x402415
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404595
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff60
push 0
push 0x41097c
call sub.USER32.dll_FindWindowA
mov dword [0x41096c], eax
push 0
push 0x41098e
call sub.USER32.dll_FindWindowA
mov dword [0x410970], eax
cmp dword [0x41096c], 0
jne 0x4045ed
lea eax, [ebp - 0x50]
push eax
push 0x4109a0
call sub.fanlink2.dll_fl8803
push 5
lea edx, [ebp - 0x50]
push edx
call sub.KERNEL32.dll_WinExec
cmp eax, 0x1f
ja 0x404601
xor eax, eax
jmp 0x40464a
push 0
push 0xa
push 0x40a
push dword [0x41096c]
call sub.USER32.dll_SendMessageA
cmp dword [0x410970], 0
jne 0x404634
lea edx, [ebp - 0xa0]
push edx
push 0x4109ce
call sub.fanlink2.dll_fl8803
push 5
lea ecx, [ebp - 0xa0]
push ecx
call sub.KERNEL32.dll_WinExec
cmp eax, 0x1f
ja 0x404648
xor eax, eax
jmp 0x40464a
push 0
push 0xa
push 0x40a
push dword [0x410970]
call sub.USER32.dll_SendMessageA
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4047c5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push 0x414c3c
push 0x4124c8
call sub.KERNEL32.dll_lstrcpyA
push 0x410a36
push 0x4124c8
call sub.fanlink2.dll_fl9048
push 0x4124c8
call sub.GDI32.dll_AddFontResourceA
push 0
call sub.USER32.dll_GetDC
push 0x5a
push eax
call sub.GDI32.dll_GetDeviceCaps
mov ebx, eax
push 0x48
push ebx
push dword [0x410a6d]
call sub.KERNEL32.dll_MulDiv
neg eax
mov dword [0x410a6d], eax
push 0x410a6d
call sub.GDI32.dll_CreateFontIndirectA
mov dword [0x410a04], eax
test eax, eax
jne 0x404839
push 0x11
call sub.GDI32.dll_GetStockObject
mov dword [0x410a04], eax
mov dword [0x410a7d], 0x2bc
push 0x410a6d
call sub.GDI32.dll_CreateFontIndirectA
mov dword [0x410a08], eax
test eax, eax
jne 0x404862
push 0xd
call sub.GDI32.dll_GetStockObject
mov dword [0x410a08], eax
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x411124
push 0x80000001
call sub.ADVAPI32.dll_RegCreateKeyExA
test eax, eax
jne 0x404913
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
push 0x410a0c
push 0
push 0
push 0x410a5c
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegQueryValueExA
cmp dword [0x410a0c], 1
je 0x4048c2
mov dword [0x410a0c], 0x2711
mov dword [ebp - 0xc], 4
lea edx, [ebp - 0xc]
push edx
push 0x410a10
push 0
push 0
push 0x410a64
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegQueryValueExA
cmp dword [0x410a10], 1
je 0x4048f6
mov dword [0x410a10], 0x2711
cmp dword [0x410a18], 0
je 0x40490b
mov ecx, dword [0x410a18]
mov dword [0x410a10], ecx
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [0x410a0c]
mov dword [0x410a14], eax
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404927
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
cmp byte [ebp + 8], 0
je 0x404953
push dword [0x410a04]
call sub.GDI32.dll_DeleteObject
push dword [0x410a08]
call sub.GDI32.dll_DeleteObject
push 0x4124c8
call sub.GDI32.dll_RemoveFontResourceA
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x411124
push 0x80000001
call sub.ADVAPI32.dll_RegCreateKeyExA
test eax, eax
jne 0x4049b3
push 4
push 0x410a0c
push 3
push 0
push 0x410a5c
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegSetValueExA
push 4
push 0x410a10
push 3
push 0
push 0x410a64
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegSetValueExA
push dword [ebp - 4]
call sub.ADVAPI32.dll_RegCloseKey
pop ecx
pop ecx
pop ebp
ret