joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4038d0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.00403990
mov eax, dword [0x42ab9c]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x4038f4
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x42ab98], 1
mov byte [0x42ab94], bl
jne 0x40394e
mov ecx, dword [0x42c270]
test ecx, ecx
je 0x40393c
mov esi, dword [0x42c26c]
sub esi, 4
cmp esi, ecx
jb 0x40393c
mov eax, dword [esi]
test eax, eax
je 0x403935
call eax
mov ecx, dword [0x42c270]
sub esi, 4
cmp esi, ecx
jae 0x403927
push 0x425078
push 0x425070
call fcn.004039b0
add esp, 8
push 0x425084
push 0x42507c
call fcn.004039b0
add esp, 8
test ebx, ebx
je 0x40396d
call fcn.004039a0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x42ab9c], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4052c0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.004060d0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x425aa0], eax
je 0x405318
push 0x74
push 1
call fcn.004041c0
mov esi, eax
add esp, 8
test esi, esi
je 0x405318
mov eax, dword [0x425aa0]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x405318
push esi
call fcn.00405320
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x405340
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x425aa0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x4053ae
push 0x74
push 1
call fcn.004041c0
mov esi, eax
add esp, 8
test esi, esi
je 0x4053a4
mov ecx, dword [0x425aa0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4053a4
push esi
call fcn.00405320
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.00403120
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x407300
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x42af80]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x407342
call edi
mov esi, eax
test esi, esi
je 0x40732c
mov eax, 1
jmp 0x40733d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40744f
mov eax, 2
mov dword [0x42af80], eax
cmp eax, 1
jne 0x4073e2
test esi, esi
jne 0x40735b
call edi
mov esi, eax
test esi, esi
je 0x40744f
cmp word [esi], 0
mov eax, esi
je 0x407375
add eax, 2
cmp word [eax], 0
jne 0x407363
add eax, 2
cmp word [eax], 0
jne 0x407363
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4073d4
push edi
call fcn.00402c50
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4073d4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4073c6
push ebx
call fcn.00402be0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40744f
test ebx, ebx
jne 0x4073f3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40744f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40740b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4073fb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4073fb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00402c50
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40742d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x407790
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x427c50
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4077b4
add eax, 8
inc ebp
cmp eax, 0x427ce0
jb 0x4077a5
cmp ecx, dword [ebp*8 + 0x427c50]
jne 0x40795b
mov eax, dword [0x42ab58]
cmp eax, 1
je 0x40791d
test eax, eax
jne 0x4077e0
cmp dword [0x425754], 1
je 0x40791d
cmp ecx, 0xfc
je 0x40795b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40781b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x407864
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x420ad8
add ebx, ecx
push ebx
call fcn.00402d80
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x420ab8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x427c54]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00408b10
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x42c160]
test eax, eax
je 0x40792e
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x407938
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x427c54]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4085b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x4085dc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x42c160]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x408617
push 2
push ebp
push ecx
call fcn.004084b0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x408779
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4086c1
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x408672
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40865f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x408642
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40876a
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4086bd
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40863e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x408759
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408715
cmp eax, 5
jne 0x4086fe
call fcn.00404820
mov dword [eax], 9
call fcn.00404830
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004047a0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x408735
cmp byte [ebp], 0x1a
jne 0x408735
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.00404820
mov dword [eax], 0x1c
call fcn.00404830
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4086bd
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4087aa
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4086c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4086c1
Function at 0x40a7a0
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x42b130]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x40a7e8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40a7cc
mov eax, 1
jmp 0x40a7e3
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x40a8c8
mov eax, 2
mov dword [0x42b130], eax
cmp eax, 2
jne 0x40a808
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x40a8da
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40a823
mov ecx, dword [0x42afb0]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x40a842
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.00402c50
mov esi, eax
add esp, 4
test esi, esi
jne 0x40a859
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40a8bf
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x40a8a0
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40a8bf
push esi
call fcn.00402be0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x40a8cf
push esi
call fcn.00402be0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.00402be0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40c378
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40c3b0
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.00410261
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00410239
jmp 0x40c3bc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x90]
pop esi
ret 4
Function at 0x40df36
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 0x40df78
call fcn.00419f80
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x40df78
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40df6f
xor eax, eax
jmp 0x40df80
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040df86
pop edi
pop esi
pop ebx
ret 4

Function at 0x40e910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41b9b0
call fcn.00402ac0
push ecx
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x14], eax
call fcn.00419f80
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x40e94f
call fcn.00419f80
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40e95d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40e96b
or eax, 0xffffffff
jmp 0x40ea57
mov ecx, esi
call fcn.0040e88c
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.0040beab
push edi
call fcn.0040b8f9
and dword [ebp - 0x1c], 0
test edi, edi
je 0x40e9a5
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40e9a5
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x1c], 1
and dword [ebp - 4], 0
push esi
call fcn.0040be5f
push edi
call fcn.0040b8f9
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0040e628
xor ebx, ebx
cmp eax, ebx
je 0x40ea1e
test byte [esi + 0x24], 0x10
je 0x40e9e9
push 4
mov ecx, esi
pop ebx
call fcn.0040ed60
test ah, 1
je 0x40e9df
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0040e145
xor ebx, ebx
cmp dword [esi + 0x1c], ebx
je 0x40ea1e
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0040ee52
jmp 0x40ea1e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], ebx
je 0x40ea30
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp edi, ebx
je 0x40ea46
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x40ea46
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0040e8c3
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x411932
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x41194f
cmp dword [0x42ab1c], edi
jne 0x411aa1
cmp word [0x42ab28], di
mov dword [0x42ab1c], 1
jne 0x411981
push str.MSH_SCROLL_LINES_MSG
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ecx, ecx
cmp eax, edi
setne cl
inc ecx
mov dword [0x42ab24], eax
mov word [0x42ab28], cx
cmp word [0x42ab28], 2
jne 0x4119bd
push str.Magellan_MSWHEEL
push str.MouseZ
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x4119bd
mov ecx, dword [0x42ab24]
cmp ecx, edi
je 0x4119bd
push edi
push edi
push ecx
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x42ab20], eax
jmp 0x411aa6
push 0x94
lea eax, [ebp - 0x9c]
push edi
push eax
call fcn.00402d20
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
mov dword [0x42ab20], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x411aa1
cmp dword [ebp - 0x8c], 1
je 0x411a11
cmp dword [ebp - 0x8c], 2
jne 0x411aa1
cmp dword [ebp - 0x98], 4
jae 0x411a80
lea eax, [ebp + 8]
push eax
push 1
push edi
push str.Control_PanelDesktop
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411aa1
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 8]
push eax
push edi
push str.WheelScrollLines
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x411a75
push 0xa
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.00403e50
add esp, 0xc
mov dword [0x42ab20], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x411aa1
cmp dword [ebp - 0x8c], 2
jne 0x411aa1
cmp dword [ebp - 0x98], 4
jb 0x411aa1
push edi
push 0x42ab20
push edi
push 0x68
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [0x42ab20]
pop edi
leave
ret
Function at 0x412e4f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push ebx
call fcn.0040c28b
test eax, eax
jne 0x413040
mov edi, dword [ebx + 4]
mov ecx, esi
call fcn.00401a50
test byte [esi + 0x64], 0x20
mov dword [ebp - 0xc], eax
jne 0x412e92
cmp edi, 0x201
je 0x412e92
cmp edi, 0x202
jne 0x412ff6
cmp edi, 0x200
jb 0x412ea2
cmp edi, 0x209
jbe 0x412eba
cmp edi, 0xa0
jb 0x412ff6
cmp edi, 0xa9
ja 0x412ff6
call fcn.00419c94
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x2c
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00402d20
add esp, 0xc
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x28
push ecx
mov ecx, esi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [eax + 0x6c]
cmp dword [ebp - 0x1c], 0xffffffff
mov dword [ebp + 8], eax
je 0x412f15
push dword [ebp - 0x1c]
call fcn.00402be0
pop ecx
mov eax, 0x201
cmp edi, eax
jne 0x412f2d
test byte [ebp - 0x39], 0x80
je 0x412f2d
mov dword [ebp - 4], 1
jmp 0x412f31
and dword [ebp - 4], 0
cmp edi, eax
je 0x412f4e
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x412f4e
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x104]
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jl 0x412fbd
cmp dword [ebp - 4], 0
jne 0x412fbd
cmp edi, 0x202
jne 0x412f7a
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0xe4]
push 0xc8
push 0xe001
jmp 0x412fa5
test byte [esi + 0x60], 8
jne 0x412fae
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x412fae
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x104]
je 0x412fea
push 0x12c
push 0xe000
mov ecx, esi
call fcn.00412c1e
jmp 0x412fea
mov eax, dword [esi]
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 0xe4]
jmp 0x412fea
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x412fd0
cmp dword [ebp - 4], 0
je 0x412fea
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0xe4]
push 0xe001
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [ecx + 0x104], eax
mov ecx, esi
call fcn.0040d065
test eax, eax
je 0x41300b
cmp dword [eax + 0x50], 0
je 0x41300b
xor eax, eax
jmp 0x413039
cmp dword [ebp - 0xc], 0
je 0x413031
mov edi, dword [ebp - 0xc]
push ebx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x98]
test eax, eax
jne 0x413040
mov ecx, edi
call fcn.0040cef8
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x413011
push ebx
mov ecx, esi
call fcn.0040e115
pop edi
pop esi
pop ebx
leave
ret 4
push 1
pop eax
jmp 0x413039
Function at 0x4139c1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x7c], 0
je 0x413a05
push dword [ebp + 8]
call fcn.0041b295
mov esi, eax
test esi, esi
je 0x413a30
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x413a30
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x41f724
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
push dword [esi + 0x90]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret 0xc
Function at 0x419df7
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x41ba7e
call fcn.00402ac0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CNoTrackObject.0
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.0040afa5
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.0040afa5
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.0040ab48
mov ecx, dword [ebp - 0xc]
mov dword [esi], vtable.AFX_MODULE_THREAD_STATE.0
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x40f520
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret

Function at 0x41aa3f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x41aa6d
mov eax, dword [esp + 0xc]
cmp eax, dword [esi + 8]
jl 0x41ab0f
cmp dword [esp + 0x10], 0
je 0x41ab0f
test esi, esi
jne 0x41aaa9
push 0x10
call fcn.0041a85c
test eax, eax
je 0x41aa82
mov dword [eax], vtable.CThreadData.0
mov esi, eax
jmp 0x41aa84
xor esi, esi
and dword [esi + 8], 0
and dword [esi + 0xc], 0
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea ecx, [edi + 0x14]
call fcn.0041a7fe
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x41aac1
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x41aad1
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x41aadd
call fcn.0040ab2d
mov eax, dword [esi + 8]
mov ecx, eax
imul ecx, ecx, 0x3fffffff
add ecx, dword [edi + 0xc]
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
push 0
lea eax, [ecx + eax*4]
push eax
call fcn.00402d20
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
pop edi
mov dword [eax + edx*4], ecx
pop esi
ret 8