joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460ac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x408
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0x102
rep stosd dword es:[edi], eax
pop edi
pop ecx
push 0x1a
call fcn.00460840
pop ecx
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
jne 0x460b7e
push 0x400
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x408], 0
lea edx, [ebp - 0x404]
lea eax, [ebp - 0x404]
push eax
call fcn.00403a30
pop ecx
push eax
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x408]
call fcn.00401db0
cmp dword [ebp - 0x408], 0
je 0x460b53
mov ebx, dword [ebp - 0x408]
mov edx, dword [0x4a8218]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x408]
push eax
call fcn.004605f0
pop ecx
mov ebx, eax
cmp dword [ebp - 0x408], 0
je 0x460b76
mov ecx, dword [ebp - 0x408]
call fcn.00401b80
mov eax, ebx
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x40c]
lea esp, [ebp - 4]
pop ebx
pop ebp
ret

Function at 0x460bb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x408
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0x102
rep stosd dword es:[edi], eax
pop edi
pop ecx
push 0x1a
call fcn.00460840
pop ecx
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
jne 0x460c6e
push 0x400
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x408], 0
lea edx, [ebp - 0x404]
lea eax, [ebp - 0x404]
push eax
call fcn.00403a30
pop ecx
push eax
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x408]
call fcn.00401db0
cmp dword [ebp - 0x408], 0
je 0x460c43
mov ebx, dword [ebp - 0x408]
mov edx, dword [0x4a8218]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x408]
push eax
call fcn.004605f0
pop ecx
mov ebx, eax
cmp dword [ebp - 0x408], 0
je 0x460c66
mov ecx, dword [ebp - 0x408]
call fcn.00401b80
mov eax, ebx
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x40c]
lea esp, [ebp - 4]
pop ebx
pop ebp
ret

Function at 0x460cd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x404
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0x101
rep stosd dword es:[edi], eax
pop edi
pop ecx
push 0x400
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x408], 0
lea edx, [ebp - 0x404]
lea eax, [ebp - 0x404]
push eax
call fcn.00403a30
pop ecx
push eax
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x408]
call fcn.00401db0
cmp dword [ebp - 0x408], 0
je 0x460d48
mov ebx, dword [ebp - 0x408]
mov edx, dword [0x4a8218]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x408]
push eax
call fcn.004605f0
pop ecx
mov ebx, eax
cmp dword [ebp - 0x408], 0
je 0x460d6b
mov ecx, dword [ebp - 0x408]
call fcn.00401b80
mov eax, ebx
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
Function at 0x460d80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x408
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0x102
rep stosd dword es:[edi], eax
pop edi
pop ecx
lea eax, [ebp - 0x404]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x40c]
mov byte [ebp + eax - 0x405], 0
mov dword [ebp - 0x408], 0
lea edx, [ebp - 0x404]
lea eax, [ebp - 0x404]
push eax
call fcn.00403a30
pop ecx
push eax
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x408]
call fcn.00401db0
cmp dword [ebp - 0x408], 0
je 0x460e0c
mov ebx, dword [ebp - 0x408]
mov edx, dword [0x4a8218]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x408]
push eax
call fcn.004605f0
pop ecx
mov ebx, eax
cmp dword [ebp - 0x408], 0
je 0x460e2f
mov ecx, dword [ebp - 0x408]
call fcn.00401b80
mov eax, ebx
lea esp, [ebp - 4]
pop ebx
pop ebp
ret

Function at 0x460e40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x808
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0x202
rep stosd dword es:[edi], eax
pop edi
pop ecx
lea eax, [ebp - 0x404]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x80c], eax
mov eax, dword [ebp - 0x80c]
mov byte [ebp + eax - 0x405], 0
lea eax, [ebp - 0x804]
push eax
push 0
push 0x4bb762
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov dword [ebp - 0x808], 0
lea edx, [ebp - 0x804]
lea eax, [ebp - 0x804]
push eax
call fcn.00403a30
pop ecx
push eax
lea eax, [ebp - 0x804]
push eax
lea ecx, [ebp - 0x808]
call fcn.00401db0
cmp dword [ebp - 0x808], 0
je 0x460ee7
mov ebx, dword [ebp - 0x808]
mov edx, dword [0x4a8218]
mov dword [ebx + 0x10], edx
lea eax, [ebp - 0x808]
push eax
call fcn.004605f0
pop ecx
mov ebx, eax
cmp dword [ebp - 0x808], 0
je 0x460f0a
mov ecx, dword [ebp - 0x808]
call fcn.00401b80
mov eax, ebx
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
Function at 0x461fd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov eax, 0xcccccccc
mov dword [esp], eax
mov dword [ebp - 4], ecx
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
mov ecx, dword [ebp + 8]
call fcn.00402450
push eax
mov eax, dword [ebp - 4]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, 0
sete al
leave
ret 8

Function at 0x462010
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov eax, 0xcccccccc
mov dword [esp], eax
mov dword [ebp - 4], ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 3
push 0
mov ecx, dword [ebp + 8]
call fcn.00402450
push eax
mov eax, dword [ebp - 4]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, 0
sete al
leave
ret 0xc

Function at 0x462050
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 0x408
push ecx
lea edi, [esp + 4]
mov eax, 0xcccccccc
mov ecx, 0x102
rep stosd dword es:[edi], eax
pop ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x414], ecx
lea edi, [ebp - 0x40c]
mov eax, 0
mov ecx, 0x100
rep stosd dword es:[edi], eax
mov dword [ebp - 0x410], 0x400
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x414]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [esi], 0
lea edx, [ebp - 0x40c]
lea eax, [ebp - 0x40c]
push eax
call fcn.00403a30
pop ecx
push eax
lea eax, [ebp - 0x40c]
push eax
mov ecx, esi
call fcn.00401db0
cmp dword [esi], 0
je 0x4620f2
mov ebx, dword [esi]
mov edx, dword [0x4a8218]
mov dword [ebx + 0x10], edx
mov edx, esi
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x462110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 0x410
push ecx
lea edi, [esp + 4]
mov eax, 0xcccccccc
mov ecx, 0x104
rep stosd dword es:[edi], eax
pop ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], ecx
mov dword [ebp - 0x14], 0x400
lea edi, [ebp - 0x414]
mov eax, 0
mov ecx, 0x100
rep stosd dword es:[edi], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x462193
mov dword [esi], 0
push 0x4bb768
call fcn.00403a30
pop ecx
push eax
push 0x4bb768
mov ecx, esi
call fcn.00401db0
cmp dword [esi], 0
je 0x462184
mov ebx, dword [esi]
mov edx, dword [0x4a8218]
mov dword [ebx + 0x10], edx
mov edx, esi
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x41c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x418], eax
mov dword [esi], 0
lea edx, [ebp - 0x414]
lea eax, [ebp - 0x414]
push eax
call fcn.00403a30
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
mov ecx, esi
call fcn.00401db0
cmp dword [esi], 0
je 0x4621f7
mov ebx, dword [esi]
mov edx, dword [0x4a8218]
mov dword [ebx + 0x10], edx
mov edx, esi
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x462210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0xcccccccc
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00402450
push eax
mov eax, dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
dec edx
cmp edx, 6
ja case.0x462260.5
jmp dword [edx*4 + 0x4a5ccc]
mov dword [ebp - 4], 0
jmp 0x462292
mov dword [ebp - 4], 1
jmp 0x462292
mov dword [ebp - 4], 2
jmp 0x462292
mov dword [ebp - 4], 3
jmp 0x462292
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x462640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00402450
push eax
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 8], 4
jne 0x46269b
cmp dword [ebp - 0xc], 4
je 0x4626a4
mov eax, 0xffffffff
leave
ret 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00402450
push eax
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x4626d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0xc], 0
jne 0x462713
push str.Trying_to_get_a_binary_registry_key_but_didnt_pass_in_a_size_to_fill_out.
push str.size
push 0x1e1
push str.Registry.cpp
push 4
push 0x83
call fcn.00492180
add esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00402450
push eax
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 4], 3
jne 0x46274d
cmp dword [ebp - 8], 0
jne 0x46275f
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, 0
leave
ret 8
mov eax, dword [ebp - 8]
push eax
call fcn.0049cae0
pop ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
call fcn.00402450
push eax
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x4627a0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov eax, 0xcccccccc
mov dword [esp], eax
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
call fcn.00402450
push eax
mov eax, dword [ebp - 4]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, 0
sete al
leave
ret 4
Function at 0x4627d0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, 0xcccccccc
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [ebp - 8], ecx
call fcn.00490470
cmp al, 0
je 0x462859
cmp byte [0x4e0a8c], 0
jne 0x46280e
push str.shlwapi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4e0a88], eax
mov byte [0x4e0a8c], 1
mov dword [ebp - 4], 0
cmp dword [0x4e0a88], 0
je 0x462859
cmp dword [ebp - 4], 0
jne 0x462838
push str.SHDeleteKeyA
push dword [0x4e0a88]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x462859
mov ecx, dword [ebp + 8]
call fcn.004024e0
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call dword [ebp - 4]
cmp eax, 0
sete al
leave
ret 4
mov ecx, dword [ebp + 8]
call fcn.004024e0
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, 0
sete al
leave
ret 4

Function at 0x464920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0xc
mov eax, 0xcccccccc
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 0
jne 0x464961
mov eax, dword [ebp - 0x10]
add eax, 0x14
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x464984
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 4]
pop esi
pop ebp
ret 8
push dword [ebp + 0xc]
push 0x4a6a48
push 0
push dword [ebp - 8]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x14]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x14]
mov esi, dword [edx]
call dword [esi + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 4]
pop esi
pop ebp
ret 8
Function at 0x474860
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov eax, 0xcccccccc
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [ebp - 0x10], 0
call fcn.00449a60
cmp al, 0
je 0x474891
call fcn.00449a70
mov dword [ebp - 0x10], eax
jmp 0x4748b0
mov dword [0x4bccec], 0
push 0
push 0x471290
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [0x4bccec]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
push str.HWND
call fcn.00403a30
pop ecx
push eax
push str.HWND
lea ecx, [ebp - 8]
call fcn.00401db0
cmp dword [ebp - 8], 0
je 0x4748e2
mov ebx, dword [ebp - 8]
mov edx, dword [0x4a8218]
mov dword [ebx + 0x10], edx
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
push eax
call fcn.00403e40
pop ecx
pop ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004711f0
pop ecx
pop ecx
cmp dword [ebp - 0xc], 0
je 0x47490d
mov ecx, dword [ebp - 0xc]
call fcn.00401b80
cmp dword [ebp - 8], 0
je 0x47491b
mov ecx, dword [ebp - 8]
call fcn.00401b80
lea esp, [ebp - 4]
pop ebx
pop ebp
ret

Function at 0x47fdd0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 8
mov eax, 0xcccccccc
mov dword [esp], eax
mov dword [esp + 4], eax
cmp byte [0x4e3eb4], 0
jne 0x47fe14
mov dword [0x4e3ec4], 0
push 0x4e3eb8
push 0x401aa0
push 0x4e3ec4
call fcn.0049cb70
add esp, 0xc
mov byte [0x4e3eb4], 1
cmp byte [0x4e3ecc], 0
jne 0x47fe30
mov edx, dword [0x4a8218]
mov dword [0x4e3ec8], edx
mov byte [0x4e3ecc], 1
mov ebx, dword [0x4e3ec4]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
cmp ebx, edx
jne 0x47fe4a
mov eax, dword [0x4e3ec8]
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
mov eax, dword [0x4a8214]
mov dword [ebp - 8], eax
mov dword [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [ebp - 0xc], eax
movzx eax, word [ebp - 0xc]
sub eax, 0x404
je 0x47fe92
sub eax, 0xd
je 0x47fe89
sub eax, 0x3f3
je 0x47fe92
sub eax, 0x400
je 0x47fe92
sub eax, 0x400
je 0x47fe92
jmp 0x47fe99
mov dword [ebp - 8], 0xa01
jmp 0x47fe99
mov dword [ebp - 8], 0x423
mov eax, dword [ebp - 8]
mov dword [0x4e3ec8], eax
mov eax, dword [ebp - 8]
lea esp, [ebp - 4]
pop ebx
pop ebp
ret

Function at 0x47ff50
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, 0xcccccccc
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [ebp - 0xc], eax
movzx eax, word [ebp - 0xc]
sub eax, 0x404
je 0x47ffa6
sub eax, 0xd
je 0x47ff9d
sub eax, 0x3f3
je 0x47ffa6
sub eax, 0x400
je 0x47ffa6
sub eax, 0x400
je 0x47ffa6
jmp 0x47ffad
mov dword [ebp - 8], 0xa01
jmp 0x47ffad
mov dword [ebp - 8], 0x423
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x47ffc0
mov edx, dword [ebp - 4]
inc dword [edx]
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0047fbc0
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x47ffe0
mov ecx, dword [ebp - 4]
call fcn.00401b80
mov eax, dword [ebp + 8]
leave
ret
Function at 0x4842b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov eax, 0xcccccccc
mov dword [esp], eax
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 0
je 0x4842db
push 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
mov dword [ebp - 4], edx
jmp 0x4842e9
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
mov dword [ebp - 4], edx
test dword [ebp - 4], 0x8000
je 0x4842f9
mov eax, 1
leave
ret
mov eax, 0
leave
ret

Function at 0x484350
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
pop ecx
mov dword [ebp - 8], 0
call fcn.00490470
cmp al, 0
je 0x4843d4
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
push dword [ebp - 0x14]
call fcn.004a0770
pop ecx
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0xc]
call fcn.00401e40
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
call fcn.00402030
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00402570
cmp dword [ebp - 0x10], 0
je 0x4843c4
mov ecx, dword [ebp - 0x10]
call fcn.00401b80
cmp dword [ebp - 0xc], 0
je 0x484403
mov ecx, dword [ebp - 0xc]
call fcn.00401b80
jmp 0x484403
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
call fcn.004a0880
pop ecx
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 8]
call fcn.00401db0
call fcn.0047feb0
cmp dword [ebp - 8], 0
je 0x484403
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
lea ecx, [ebp - 8]
call fcn.00401fe0
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x48441b
mov ecx, dword [ebp - 8]
call fcn.00401b80
mov eax, ebx
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
Function at 0x484490
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc18
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
mov ecx, 0x306
rep stosd dword es:[edi], eax
pop edi
pop ecx
cmp dword [ebp + 0xc], 0
jne 0x4844bf
mov eax, 0
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
call fcn.00490470
cmp al, 0
je 0x484559
push 0x400
lea eax, [ebp - 0x404]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00401c20
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0xc18], eax
mov dword [ebp - 0x408], 0
cmp dword [ebp - 0xc18], 0
jle 0x484530
push dword [ebp - 0xc18]
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x408]
call fcn.00401db0
cmp dword [ebp - 0x408], 0
je 0x484530
mov ebx, dword [ebp - 0x408]
mov edx, dword [0x4a8218]
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x408]
call fcn.00401fe0
mov ebx, eax
cmp dword [ebp - 0x408], 0
je 0x484551
mov ecx, dword [ebp - 0x408]
call fcn.00401b80
mov eax, ebx
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
mov dword [ebp - 0xc0c], 0
cmp dword [ebp - 0xc0c], 0
je 0x484577
mov ecx, dword [ebp - 0xc0c]
call fcn.00401b80
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc0c], eax
lea eax, [ebp - 0xc14]
push eax
lea ecx, [ebp - 0xc0c]
call fcn.004021d0
push 0x400
lea eax, [ebp - 0xc08]
push eax
lea ecx, [ebp - 0xc14]
call fcn.00402510
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0xc1c], eax
cmp dword [ebp - 0xc14], 0
je 0x4845ca
mov ecx, dword [ebp - 0xc14]
call fcn.00401b80
mov dword [ebp - 0xc10], 0
cmp dword [ebp - 0xc1c], 0
jle 0x48460d
push dword [ebp - 0xc1c]
lea eax, [ebp - 0xc08]
push eax
lea ecx, [ebp - 0xc10]
call fcn.00401e40
cmp dword [ebp - 0xc10], 0
je 0x48460d
mov ebx, dword [ebp - 0xc10]
mov edx, dword [0x4a8220]
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0xc10]
call fcn.00401fe0
mov ebx, eax
cmp dword [ebp - 0xc10], 0
je 0x48462e
mov ecx, dword [ebp - 0xc10]
call fcn.00401b80
cmp dword [ebp - 0xc0c], 0
je 0x484642
mov ecx, dword [ebp - 0xc0c]
call fcn.00401b80
mov eax, ebx
lea esp, [ebp - 4]
pop ebx
pop ebp
ret
Function at 0x484650
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ecx
push edi
lea edi, [esp + 8]
mov eax, 0xcccccccc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
pop ecx
cmp dword [ebp + 0xc], 0
jne 0x484671
leave
ret
call fcn.00490470
cmp al, 0
je 0x4846d9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x48468b
mov edx, dword [ebp - 4]
inc dword [edx]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x48469c
mov edx, dword [ebp - 8]
inc dword [edx]
lea ecx, [ebp - 8]
call fcn.004024e0
push eax
lea ecx, [ebp - 4]
call fcn.004024e0
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp dword [ebp - 8], 0
je 0x4846c2
mov ecx, dword [ebp - 8]
call fcn.00401b80
cmp dword [ebp - 4], 0
je 0x484763
mov ecx, dword [ebp - 4]
call fcn.00401b80
jmp 0x484763
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4846ea
mov edx, dword [ebp - 0xc]
inc dword [edx]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
call fcn.004021d0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x484707
mov edx, dword [ebp - 0x14]
inc dword [edx]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.004021d0
lea ecx, [ebp - 0x18]
call fcn.00402510
push eax
lea ecx, [ebp - 0x10]
call fcn.00402510
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp dword [ebp - 0x18], 0
je 0x484739
mov ecx, dword [ebp - 0x18]
call fcn.00401b80
cmp dword [ebp - 0x14], 0
je 0x484747
mov ecx, dword [ebp - 0x14]
call fcn.00401b80
cmp dword [ebp - 0x10], 0
je 0x484755
mov ecx, dword [ebp - 0x10]
call fcn.00401b80
cmp dword [ebp - 0xc], 0
je 0x484763
mov ecx, dword [ebp - 0xc]
call fcn.00401b80
leave
ret