joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422f89
Capabilities:
Get common file path
Get disk size
Timestomp file

Disassembly:
mov eax, 0x423140
call fcn.00406b68
sub esp, 0x248
mov dword [ebp - 0x14], ecx
add ecx, 0x10
push esi
mov dword [ebp - 0x18], ecx
call fcn.0041d5c5
test byte [ebp + 0xd], 0x10
je 0x42306d
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 8]
call fcn.0042031a
test eax, eax
je 0x42306d
lea ecx, [ebp - 0x10]
xor esi, esi
call fcn.0041d4e5
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
call fcn.0041ed3f
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x34]
push eax
lea edx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x24]
push edx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x42300a
mov esi, dword [ebp - 0x34]
imul esi, dword [ebp - 0x2c]
imul esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x144]
add eax, eax
cmp eax, esi
jge 0x423061
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x254]
push eax
push ecx
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov ecx, dword [ebp - 0x1c]
push 0x105
mov byte [ecx], 0
mov ecx, dword [ebp - 0x18]
call fcn.0041d983
push eax
lea ecx, [ebp - 0x254]
push 0
push 0x4384b0
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18]
call fcn.0041d9d8
mov dword [ebp - 4], 0xffffffff
call fcn.0042314a
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
cmp dword [ecx - 8], 0
je 0x423152
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0041e4a5
test eax, eax
je 0x423152
push dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
add ecx, 0xc
call fcn.0041d78d
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x20]
push ecx
mov eax, dword [ebp - 0x14]
push edx
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4230e8
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x150]
push eax
push ecx
call fcn.004203d4
add esp, 8
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x20]
push ecx
push edx
push eax
mov ecx, dword [ebp - 0x14]
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor eax, eax
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], eax
push eax
push eax
push 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
push dword [ebp - 0x10]
call fcn.00419b62
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x10]
push esi
push 4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetFileSecurityA]
test eax, eax
je 0x423130
push esi
mov eax, dword [ebp - 0x18]
push 4
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
push esi
call fcn.00419ba2
add esp, 4
mov eax, 1
jmp 0x42316b
mov ecx, dword [ebp - 0x18]
call fcn.0041d5c5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
call fcn.0041e4a5
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x423a0d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push edi
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
mov eax, 0x100
cmp edi, eax
ja 0x423a54
push eax
lea eax, [ebp - 0x100]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, edi
jne 0x423a54
push esi
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x423a5e
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x42596d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
cmp dword [ecx + 0x74], 0
mov esi, ecx
je 0x4259b5
push dword [ebp + 8]
call fcn.0042ff33
mov esi, eax
test esi, esi
jne 0x42598f
xor eax, eax
jmp 0x4259e0
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 1
sbb eax, eax
neg eax
jmp 0x4259e0
push dword [ebp + 0x10]
push 0x4401dc
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x10]
push dword [esi + 0x88]
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x426fc4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
call fcn.0041ae01
test eax, eax
je 0x426fe5
mov eax, 1
jmp 0x4271ce
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x426ffb
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0041a3be
test byte [esi + 0x64], 0x20
mov dword [ebp - 4], eax
jne 0x42701e
cmp edi, 0x201
je 0x42701e
cmp edi, 0x202
jne 0x427188
cmp edi, 0x200
jb 0x42702e
cmp edi, 0x209
jbe 0x427046
cmp edi, 0xa0
jb 0x427188
cmp edi, 0xa9
ja 0x427188
call fcn.0042e8da
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
add eax, 0x14
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x10], edx
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x28
lea ecx, [ebp - 0x3c]
push 0
push ecx
call fcn.00406b10
add esp, 0xc
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x28
push ecx
mov ebx, dword [esi]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, esi
call dword [ebx + 0x68]
cmp dword [ebp - 0x18], 0xffffffff
mov ebx, eax
je 0x4270a7
push dword [ebp - 0x18]
call fcn.00406d80
add esp, 4
cmp edi, 0x201
jne 0x4270be
test byte [ebp - 0x35], 0x80
je 0x4270be
mov dword [ebp - 0xc], 1
jmp 0x4270c5
mov dword [ebp - 0xc], 0
cmp edi, 0x201
je 0x4270e3
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x4270e3
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x104]
test ebx, ebx
jl 0x427152
cmp dword [ebp - 0xc], 0
jne 0x427152
cmp edi, 0x202
jne 0x427114
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0xe0]
push 0xc8
mov ecx, esi
push 0xe001
call fcn.00426d67
jmp 0x42717f
test byte [esi + 0x60], 8
jne 0x427145
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x427145
mov eax, dword [ebp - 8]
cmp dword [eax + 0x104], ebx
je 0x42717f
push 0x12c
mov ecx, esi
push 0xe000
call fcn.00426d67
jmp 0x42717f
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0xe0]
jmp 0x42717f
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x427165
cmp dword [ebp - 0xc], 0
je 0x42717f
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0xe0]
push 0xe001
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp - 8]
mov dword [eax + 0x104], ebx
mov ecx, esi
call fcn.0041bde2
test eax, eax
je 0x42719d
cmp dword [eax + 0x50], 0
je 0x42719d
xor eax, eax
jmp 0x4271ce
cmp dword [ebp - 4], 0
je 0x4271c4
mov ecx, dword [ebp - 4]
push dword [ebp + 8]
mov ebx, dword [ecx]
call dword [ebx + 0x94]
test eax, eax
jne 0x4271d7
mov ecx, dword [ebp - 4]
call fcn.0041bc65
mov dword [ebp - 4], eax
test eax, eax
jne 0x4271a3
push dword [ebp + 8]
mov ecx, esi
call fcn.0041d0aa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
jmp 0x4271ce
Function at 0x42a3e5
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push ebp
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
je 0x42a47b
mov ebp, 0x18000000
push edi
call fcn.0041a3e8
mov ebx, eax
test ebx, ebx
je 0x42a46c
mov eax, dword [esi + 0x1c]
cmp eax, edi
je 0x42a46c
push edi
push eax
call fcn.0042a239
test eax, eax
je 0x42a46c
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp dword [esp + 0x14], 0
jne 0x42a455
mov ecx, eax
and ecx, ebp
cmp ecx, 0x10000000
jne 0x42a44e
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
or byte [ebx + 0x24], 2
jmp 0x42a46c
cmp dword [esp + 0x14], 0
je 0x42a46c
test ebp, eax
jne 0x42a46c
test byte [ebx + 0x24], 2
je 0x42a46c
push 4
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
and byte [ebx + 0x24], 0xfd
push 2
push edi
call dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
test edi, edi
jne 0x42a405
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x42eb96
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x42ec31
call fcn.00406b68
sub esp, 4
xor eax, eax
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x10], ecx
mov dword [ecx], vtable.CNoTrackObject.0
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov esi, ecx
push 0xa
lea ecx, [esi + 0x30]
call fcn.00417d68
lea ecx, [esi + 0x4c]
push 0xa
mov byte [ebp - 4], 1
call fcn.00417d68
lea ecx, [esi + 0x68]
push 0xa
mov byte [ebp - 4], 2
call fcn.0041783c
mov byte [ebp - 4], 3
mov eax, esi
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x419b46
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x42f7d8
Capabilities:
Allocate thread local storage

Disassembly:
push esi
xor eax, eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 4], eax
cmp dword [esp + 8], eax
mov dword [ecx + 0x1c], 4
mov dword [ecx + 0xc], 1
mov esi, ecx
je 0x42f814
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x42f81a
call fcn.0041650c
jmp 0x42f81a
mov dword [esi], 0xffffffff
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret 4

Function at 0x42f985
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov eax, dword [ecx]
mov esi, ecx
cmp eax, 0xffffffff
jne 0x42f99f
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 4]
jmp 0x42f9a6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42f9bb
mov ecx, dword [esp + 0xc]
cmp dword [eax + 8], ecx
jle 0x42f9bb
mov eax, dword [eax + 0xc]
mov edi, dword [eax + ecx*4]
jmp 0x42f9bd
xor edi, edi
cmp dword [esi], 0xffffffff
jne 0x42f9cc
add esi, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x42f9d3
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x42faab
call fcn.00406b68
sub esp, 4
push ebx
push esi
mov eax, dword [ecx]
push edi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x42f9fb
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 4]
jmp 0x42fa04
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x42fa14
mov edx, dword [ebp + 8]
cmp dword [ebx + 8], edx
jg 0x42fb1f
cmp dword [ebp + 0xc], 0
je 0x42fb2b
test ebx, ebx
jne 0x42fa91
push 0x10
call fcn.0042f7a8
mov dword [ebp - 0x10], eax
mov edi, eax
mov dword [ebp - 4], 0
test edi, edi
je 0x42fa59
mov ebx, edi
mov dword [edi], vtable.CNoTrackObject.0
mov byte [ebp - 4], 1
mov byte [ebp - 4], 0
mov dword [edi], vtable.CThreadData.0
jmp 0x42fa5b
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
cmp dword [esi], 0xffffffff
jne 0x42fa79
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea ecx, [esi + 0x18]
call fcn.0042f748
cmp dword [esi], 0xffffffff
jne 0x42fa91
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0xc]
lea edi, [esi + 0x10]
test eax, eax
jne 0x42fabe
mov eax, dword [edi]
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x42facd
push 2
mov ecx, dword [edi]
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0
jne 0x42faea
cmp dword [esi], 0xffffffff
jne 0x42fae5
lea eax, [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041650c
mov eax, dword [ebx + 8]
mov ecx, dword [edi]
sub ecx, eax
shl ecx, 2
shl eax, 2
push ecx
push 0
add eax, dword [ebx + 0xc]
push eax
call fcn.00406b10
add esp, 0xc
mov ecx, dword [edi]
mov dword [ebx + 8], ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x42fb1c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x42fb1f
mov dword [esi + 4], ebx
mov edx, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebp + 0xc]
mov dword [ecx + edx*4], eax
cmp dword [esi], 0xffffffff
jne 0x42fb3a
add esi, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42fb9b
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ecx + 0x20]
push edi
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x42fbc2
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
jmp 0x42fbc5
mov edi, dword [esi + 4]
test edi, edi
je 0x42fc7d
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
cmp dword [edi + 8], 1
jle 0x42fc40
mov dword [ebp - 0xc], 8
mov ebx, 4
cmp dword [ebp + 8], 0
je 0x42fc14
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi + 0x14]
mov eax, dword [ebp + 8]
cmp dword [edx + ecx + 4], eax
je 0x42fc14
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx], 0
je 0x42fc2e
mov dword [ebp - 4], 0
jmp 0x42fc2e
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + ebx]
test ecx, ecx
je 0x42fc24
push 1
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [edi + 0xc]
mov dword [eax + ebx], 0
add ebx, 4
inc dword [ebp - 8]
add dword [ebp - 0xc], 8
mov eax, dword [ebp - 8]
cmp dword [edi + 8], eax
jg 0x42fbed
cmp dword [ebp - 4], 0
je 0x42fc7d
push edi
lea ecx, [esi + 0x18]
call fcn.0042f75b
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x42fc64
push 1
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x42fc76
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x42fc7d
mov dword [esi + 4], 0
add esi, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42fc90
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
cmp dword [ecx], 0
mov esi, ecx
jne 0x42fcd0
cmp dword [0x4450a8], 0
jne 0x42fcc3
mov ecx, 0x4450b0
test ecx, ecx
je 0x42fcb9
push 1
call fcn.0042f7d8
mov dword [0x4450a8], eax
jmp 0x42fcc3
mov dword [0x4450a8], 0
mov ecx, dword [0x4450a8]
call fcn.0042f82a
mov dword [esi], eax
mov edi, dword [esi]
mov eax, dword [0x4450a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42fcf0
cmp dword [eax + 8], edi
jle 0x42fcf0
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x42fcf2
xor edi, edi
test edi, edi
jne 0x42fd0a
call dword [esp + 0xc]
push eax
mov edi, eax
push dword [esi]
mov ecx, dword [0x4450a8]
call fcn.0042f9d3
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x42ff81
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x74], 0
push esi
push edi
je 0x42ffd8
push dword [ebp + 8]
call fcn.0042ff33
mov esi, eax
test esi, esi
jne 0x42ffa2
mov eax, dword [ebp + 0x10]
jmp 0x42ffed
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
mov dword [ebp - 8], 4
push ecx
push edx
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x42ffd3
mov eax, dword [ebp - 4]
jmp 0x42ffed
mov eax, dword [ebp + 0x10]
jmp 0x42ffed
push dword [ecx + 0x88]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43014e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, 0x445128
jmp 0x4301c5
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx edi, ah
mov dl, al
and eax, 0x80000000
movzx ecx, dl
shl ecx, 8
shr eax, 0x1f
add ecx, edi
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], eax
mov ecx, 1
cmp dl, 4
sbb edx, edx
mov edi, ecx
inc edx
sub edi, edx
mov dword [esi + 0x78], edx
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edx
test eax, eax
je 0x430215
test edx, edx
jne 0x430215
mov dword [esi + 0x84], ecx
jmp 0x43021f
mov dword [esi + 0x84], 0
lea edi, [esi + 0x88]
xor eax, eax
test edx, edx
mov dword [edi], eax
je 0x43023e
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
cmp eax, 0x40000
sbb eax, eax
inc eax
mov dword [edi], eax
mov ecx, esi
call fcn.0041fce9
push 0xc0c0c0
xor edi, edi
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0x808080
mov dword [esi + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], edi
mov ecx, esi
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x40], edi
call fcn.0041fc2c
push 0x7f02
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
mov dword [esi + 0x58], eax
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], edi
cmp dword [esi + 0x78], 1
sbb eax, eax
mov dword [esi + 0x6c], edi
add eax, 2
pop edi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov eax, esi
pop esi
ret
Function at 0x430a48
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x430a7c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
cmp eax, 1
sbb eax, eax
neg eax
jmp 0x430ac8
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x430ac6
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x430ac6
mov eax, 1
test esi, esi
je 0x430ac8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x434aff
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
mov ecx, 0x44349c
push esi
push edi
push 0x404e42
call fcn.0042fd37
cmp dword [eax + 0xc], 0
mov edi, eax
jne 0x434b53
mov esi, dword [esp + 0x19c]
test esi, esi
jne 0x434b2d
lea esi, [esp + 8]
push esi
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x434b40
xor eax, eax
jmp 0x434b58
mov ax, word [esi]
cmp al, 1
jne 0x434b63
cmp ah, 1
jne 0x434b63
mov dword [edi + 0xc], 0x434afe
mov eax, 1
pop edi
pop esi
add esp, 0x190
ret 4
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x434b58
Function at 0x408650
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46eb9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00461824
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4086d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045f2da
mov eax, dword [eax]
push 0x54f1d0
push eax
call fcn.00451ec4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00461aaf
test bl, bl
je 0x4086d2
push 0x54f1d0
lea ecx, [esp + 0xc]
call fcn.00461e8b
push 0x552d30
lea ecx, [esp + 0xc]
call fcn.00461e8b
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40870e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00461aaf
jmp 0x4087d9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x408792
lea edx, [esp + 0x7c]
push 0x552d2c
push edx
call fcn.00451ec4
add esp, 8
test eax, eax
je 0x408792
lea eax, [esp + 0x7c]
push 0x552d28
push eax
call fcn.00451ec4
add esp, 8
test eax, eax
je 0x408792
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408722
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00461aaf
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x408fd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409032
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc