joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403dc0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x438236
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x44b538]
xor eax, esp
mov dword [esp + 0x8c], eax
push esi
mov eax, dword [0x44b538]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041564a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403e14
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 8], eax
mov eax, dword [esp + 0xa8]
add eax, 0xffffffff
cmp eax, 3
mov dword [esp + 0xa0], 0
ja case.default.0x403e3e
jmp dword [eax*4 + 0x403f94]
mov ecx, dword [esp + 0xac]
push ecx
push str.DriverPackageInstall_Error_code_0x_08X
jmp 0x403e89
mov eax, dword [esp + 0xac]
push eax
push str.DriverPackagePrenstall_Error_code_0x_08X
lea ecx, [esp + 0x1c]
push ecx
jmp 0x403e8e
mov edx, dword [esp + 0xac]
push edx
push str.DriverPackageUninstall_Error_code_0x_08X
lea eax, [esp + 0x1c]
push eax
jmp 0x403e8e
mov ecx, dword [esp + 0xac]
push ecx
push str.DriverPackageGetPath_Error_code_0x_08X
lea edx, [esp + 0x1c]
push edx
call fcn.0042701f
add esp, 0xc
cmp dword [esi + 0x2a2c], 0
jne 0x403ef4
push str.RealtekInstallShield
add esi, 0x148
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00402cd0
add esp, 0xc
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0xa4], 1
call fcn.00402df0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0xa0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x403f04
push 0x20
push str.SoftwareRealtekAudioInstaller
lea ecx, [esp + 0x10]
call fcn.00402a70
mov esi, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x403f45
push 0x80
lea edx, [esp + 0x18]
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push str.DIFxAPIErrorCode
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov dword [esp + 0xa0], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403f6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.00425dea
add esp, 0x9c
ret 8
Function at 0x408770
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x44c9d4]
push esi
mov esi, ecx
xor ecx, ecx
cmp eax, 0x5a
setge cl
push 0
sub ecx, 1
and ecx, 0xa
add eax, ecx
push eax
mov dword [0x44c9d4], eax
mov edx, dword [esi + 0x2a50]
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, esi
call fcn.00410d54
cmp dword [esi + 0x2a20], 0
je 0x4087c0
mov dword [0x44c9cc], 1
jmp 0x4087d0
mov ecx, esi
call fcn.00401fb0
test eax, eax
mov dword [0x44c9cc], eax
je 0x408848
mov eax, dword [esi + 0x2a04]
test eax, eax
push edi
je 0x408821
cmp dword [esi + 0x2a0c], 0
je 0x408803
mov ecx, esi
call fcn.00406be0
mov ecx, esi
mov edi, eax
call fcn.00405eb0
test edi, edi
jne 0x408833
test eax, eax
jne 0x40883c
push 0xffffffffffffffff
call fcn.00427736
test eax, eax
je 0x408821
cmp dword [esi + 0x2a0c], 0
jne 0x40881d
mov ecx, esi
call fcn.00406be0
mov edi, eax
xor eax, eax
jmp 0x4087f4
test eax, eax
jne 0x4087fc
cmp dword [esi + 0x2a0c], 0
je 0x4087fc
mov ecx, esi
call fcn.00405eb0
jmp 0x4087f8
cmp edi, 1
jne 0x408862
test eax, eax
jmp 0x40883f
cmp eax, 1
jne 0x408862
push 0xfffffffffffffffc
call fcn.00427736
push 0x30
push str.Warning
push str._Microsoft_Bus_driver_should_be_loaded_in_your_system_before_installing_Realtek_HD_Audio_driver__
mov ecx, esi
call fcn.00401670
push 0xfffffffffffffffe
call fcn.00427736
pop edi
pop esi
ret

Function at 0x408775
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x44c9d4]
push esi
mov esi, ecx
xor ecx, ecx
cmp eax, 0x5a
setge cl
push 0
sub ecx, 1
and ecx, 0xa
add eax, ecx
push eax
mov dword [0x44c9d4], eax
mov edx, dword [esi + 0x2a50]
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
mov ecx, esi
call fcn.00410d54
cmp dword [esi + 0x2a20], 0
je 0x4087c0
mov dword [0x44c9cc], 1
jmp 0x4087d0
mov ecx, esi
call fcn.00401fb0
test eax, eax
mov dword [0x44c9cc], eax
je 0x408848
mov eax, dword [esi + 0x2a04]
test eax, eax
push edi
je 0x408821
cmp dword [esi + 0x2a0c], 0
je 0x408803
mov ecx, esi
call fcn.00406be0
mov ecx, esi
mov edi, eax
call fcn.00405eb0
test edi, edi
jne 0x408833
test eax, eax
jne 0x40883c
push 0xffffffffffffffff
call fcn.00427736
test eax, eax
je 0x408821
cmp dword [esi + 0x2a0c], 0
jne 0x40881d
mov ecx, esi
call fcn.00406be0
mov edi, eax
xor eax, eax
jmp 0x4087f4
test eax, eax
jne 0x4087fc
cmp dword [esi + 0x2a0c], 0
je 0x4087fc
mov ecx, esi
call fcn.00405eb0
jmp 0x4087f8
cmp edi, 1
jne 0x408862
test eax, eax
jmp 0x40883f
cmp eax, 1
jne 0x408862
push 0xfffffffffffffffc
call fcn.00427736
push 0x30
push str.Warning
push str._Microsoft_Bus_driver_should_be_loaded_in_your_system_before_installing_Realtek_HD_Audio_driver__
mov ecx, esi
call fcn.00401670
push 0xfffffffffffffffe
call fcn.00427736
pop edi
pop esi
ret
Function at 0x40ad6d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x44b538]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x40adad
push 0x43c830
push 4
push eax
call fcn.00427441
push eax
call fcn.00401000
add esp, 0x10
jmp 0x40adbf
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40ae2d
push edi
call fcn.00427cbe
mov edi, dword [eax]
call fcn.00427cbe
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004270b6
add esp, 0x18
mov ebx, eax
call fcn.00427cbe
cmp dword [eax], 0
je 0x40ae0d
call fcn.00427cbe
push dword [eax]
call fcn.0040a42c
pop ecx
jmp 0x40ae14
call fcn.00427cbe
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x40ae2d
cmp ebx, esi
jae 0x40ae2d
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x40ae2f
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00425dea
leave
ret
Function at 0x40dbbf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x40dc05
call fcn.0040edef
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40dc05
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40dc48
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x40dc31
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40dc31
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40dc45
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x413f51
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x413f94
call fcn.0040edef
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x413f94
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x413faf
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00413b08
test ebx, ebx
mov esi, eax
je 0x413fad
test edi, edi
je 0x413fad
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x415cdb
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 0x415d09
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x415d27
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00415c45
jmp 0x415d27
mov eax, dword [esi + 0x14]
test eax, eax
je 0x415d27
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00415c45
test edi, edi
mov eax, edi
jne 0x415d11
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44e508]
test ecx, ecx
je 0x415dea
jmp 0x415cda
ret 8

Function at 0x425dea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b538]
jne 0x425df4
repz ret
jmp fcn.0042a415
Function at 0x429d73
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x44b808]
je 0x429d8e
inc edi
cmp edi, 0x17
jb 0x429d7f
cmp edi, 0x17
jae 0x429f0e
push ebp
push 3
call fcn.0043241f
cmp eax, 1
pop ecx
je 0x429eda
push 3
call fcn.0043241f
test eax, eax
pop ecx
jne 0x429dc2
cmp dword [0x44b544], 1
je 0x429eda
cmp ebx, 0xfc
je 0x429f0d
push 0x43f6b8
mov ebx, 0x314
push ebx
mov ebp, 0x44e9c8
push ebp
call fcn.00427441
add esp, 0xc
test eax, eax
je 0x429df8
push esi
push esi
push esi
push esi
push esi
call fcn.00429f82
add esp, 0x14
push 0x104
mov esi, 0x44e9e1
push esi
push 0
mov byte [0x44eae5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x429e3c
push 0x43f6a0
push 0x2fb
push esi
call fcn.00427441
add esp, 0xc
test eax, eax
je 0x429e3c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00429f82
add esp, 0x14
push esi
call fcn.00427ba0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x429e81
push esi
call fcn.00427ba0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44ecdc
push 0x43f69c
sub ecx, eax
push ecx
push eax
call fcn.00427ecf
add esp, 0x14
test eax, eax
je 0x429e81
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00429f82
add esp, 0x14
jmp 0x429e83
xor esi, esi
push 0x43f698
push ebx
push ebp
call fcn.00427d89
add esp, 0xc
test eax, eax
je 0x429ea3
push esi
push esi
push esi
push esi
push esi
call fcn.00429f82
add esp, 0x14
push dword [edi*8 + 0x44b80c]
push ebx
push ebp
call fcn.00427d89
add esp, 0xc
test eax, eax
je 0x429ec5
push esi
push esi
push esi
push esi
push esi
call fcn.00429f82
add esp, 0x14
push 0x12010
push 0x43f670
push ebp
call fcn.00432262
add esp, 0xc
jmp 0x429f0d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x429f0d
cmp ebp, 0xffffffff
je 0x429f0d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44b80c]
push dword [esi]
call fcn.00427ba0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x432262
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042b50f
xor ebx, ebx
cmp dword [0x44f29c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x432338
push 0x4400fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x432418
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4400f0
push edi
call esi
cmp eax, ebx
je 0x432418
push eax
call fcn.0042b4a1
mov dword [esp], 0x4400e0
push edi
mov dword [0x44f29c], eax
call esi
push eax
call fcn.0042b4a1
mov dword [esp], 0x4400cc
push edi
mov dword [0x44f2a0], eax
call esi
push eax
call fcn.0042b4a1
mov dword [0x44f2a4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042754f
test eax, eax
pop ecx
pop ecx
je 0x432306
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00429f82
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x432338
push 0x4400b0
push edi
call esi
push eax
call fcn.0042b4a1
cmp eax, ebx
pop ecx
mov dword [0x44f2ac], eax
je 0x432338
push 0x440098
push edi
call esi
push eax
call fcn.0042b4a1
pop ecx
mov dword [0x44f2a8], eax
mov eax, dword [0x44f2a8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4323bd
cmp dword [0x44f2ac], ecx
je 0x4323bd
push eax
call fcn.0042b518
push dword [0x44f2ac]
mov esi, eax
call fcn.0042b518
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4323bd
cmp edi, ebx
je 0x4323bd
call esi
cmp eax, ebx
je 0x43238a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43238a
test byte [ebp - 0x18], 1
jne 0x4323bd
lea eax, [ebp - 0x10]
push eax
call fcn.00427586
test eax, eax
pop ecx
je 0x4323a5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00429f82
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4323b4
or dword [ebp + 0x10], 0x200000
jmp 0x4323f8
or dword [ebp + 0x10], 0x40000
jmp 0x4323f8
mov eax, dword [0x44f2a0]
cmp eax, dword [ebp - 8]
je 0x4323f8
push eax
call fcn.0042b518
cmp eax, ebx
pop ecx
je 0x4323f8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4323f8
mov eax, dword [0x44f2a4]
cmp eax, dword [ebp - 8]
je 0x4323f8
push eax
call fcn.0042b518
cmp eax, ebx
pop ecx
je 0x4323f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f29c]
call fcn.0042b518
cmp eax, ebx
pop ecx
je 0x432418
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43241a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x437b18
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44b538]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00437aad
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00426f40
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x437b67
cmp dword [ebp - 0x1c], 5
jb 0x437b7f
jmp 0x437b7b
cmp dword [ebp - 0x10], 1
jne 0x437b7f
cmp dword [ebp - 0x1c], 4
ja 0x437b7b
jne 0x437b7f
cmp dword [ebp - 0x18], 0
jbe 0x437b7f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4412d8
call fcn.00437981
test eax, eax
jge 0x437ba0
mov byte [0x44c920], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00425dea
add ebp, 0x78
leave
ret
Function at 0x1002540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
push esi
lea eax, [ebp + 0x10]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x100128c
push 0x80000001
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1002580
mov eax, ebx
jmp 0x10025ca
push 0x20
push dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
push eax
call fcn.010023f8
cmp dword [ebp + 0x10], esi
je 0x10025c7
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x10025c4
cmp dword [ebp - 8], 4
je 0x10025c7
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x1002eb8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp eax, 0x24
jg 0x1002f84
je 0x1002f7b
cmp eax, 9
je 0x1002f62
cmp eax, 0xd
je 0x1002f13
cmp eax, 0x1b
je 0x1002f08
cmp eax, 0x20
je 0x1002f13
cmp eax, 0x23
jne 0x1002f97
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x64]
dec eax
push eax
push esi
call fcn.01002d93
jmp 0x1003002
push 1
push 0
push 4
jmp 0x1002fb5
mov esi, dword [ebp + 8]
cmp dword [esi + 0x58], 0xffffffff
jne 0x1002f4c
push edi
push esi
call fcn.01002e4b
mov eax, dword [esi + 0x50]
mov eax, dword [esi + eax*4 + 0x6c]
lea ecx, [ebp - 0x10]
push ecx
push dword [esi + 0x54]
push 0x17
push eax
call dword [eax + 4]
push edi
lea eax, [ebp - 0x10]
push eax
push 3
push esi
call dword [esi]
test eax, eax
je 0x1002f97
push edi
push edi
jmp 0x1002ffc
xor edi, edi
push edi
push edi
push 4
push esi
call dword [esi]
push edi
push edi
push esi
call fcn.01002dda
jmp 0x1003066
push 1
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setge cl
lea ecx, [ecx + ecx - 1]
push ecx
jmp 0x1002ff9
mov esi, dword [ebp + 8]
push edi
jmp 0x1002efd
sub eax, 0x25
je 0x1002fe6
dec eax
je 0x1002fe2
dec eax
je 0x1002fcd
dec eax
je 0x1002fc0
sub eax, 0x19
je 0x1002f9e
xor eax, eax
jmp 0x1003069
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x1003066
push 1
push 0
push 0x13
mov eax, dword [ebp + 8]
push eax
call dword [eax]
jmp 0x1003066
push 1
mov esi, dword [ebp + 8]
push esi
call fcn.01002e4b
jmp 0x1003002
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setl cl
push ecx
push 1
jmp 0x1002ff9
push 0xffffffffffffffff
jmp 0x1002fc2
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setl cl
push ecx
push 0xffffffffffffffff
mov esi, dword [ebp + 8]
push esi
call fcn.01002dda
mov eax, dword [esi + 0x50]
mov eax, dword [esi + eax*4 + 0x6c]
lea ecx, [ebp - 0x10]
push ecx
push dword [esi + 0x54]
push 0x17
push eax
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [0x100733c]
call dword [sym.imp.USER32.dll_ClientToScreen]
cmp dword [esi + 0x58], 0xffffffff
je 0x100305a
mov eax, dword [esi + 0x50]
mov eax, dword [esi + eax*4 + 0x6c]
push edi
push edi
push 4
push eax
call dword [eax + 4]
test eax, eax
jle 0x100305a
mov eax, dword [esi + 0x50]
mov eax, dword [esi + eax*4 + 0x6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
add dword [ebp - 4], eax
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetCursorPos]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 8
Function at 0x10045cb
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 0x34
xor edx, edx
lea eax, [esi + 0x24]
pop edi
mov cx, word [eax]
xor cx, dx
and cx, 0x7fff
xor word [eax], cx
mov ebx, dword [esi + 8]
mov cx, word [eax]
mov dword [eax + 4], ebx
mov ebx, dword [esi + 0xc]
and cx, 0x7fff
mov dword [eax + 8], ebx
mov word [eax], cx
inc edx
add eax, 0xc
cmp edx, edi
jl 0x10045da
mov dword [esi + 0x1c], edi
xor edi, edi
push edi
push edi
push 0x1a
push esi
call dword [esi + 4]
push edi
push edi
push 0x15
push esi
call dword [esi + 4]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
ret 4

Function at 0x1004625
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x1004660
lea eax, [ebp - 0x10]
push eax
add esi, 8
push esi
call fcn.01002236
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
add eax, 0x1fff
jmp 0x10046da
mov ecx, dword [ebp + 0xc]
push dword [ecx + 4]
lea eax, [eax + eax*2 + 6]
push dword [ecx]
lea eax, [esi + eax*4]
push eax
call fcn.010021e1
test eax, eax
jne 0x1004680
mov eax, 0x1fff
jmp 0x10046da
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
xor ebx, ebx
push 0x11
mov bx, ax
call edi
push 0x10
and ebx, eax
call edi
pop edi
and ebx, eax
test bx, bx
pop ebx
jge 0x10046a9
xor eax, eax
inc eax
jmp 0x10046b1
mov eax, dword [0x1007170]
mov eax, dword [eax + 0x3c]
mov ecx, dword [esi + 0x1c]
push 0
sub ecx, eax
push ecx
call fcn.010023b5
mov dword [0x1007194], eax
mov ecx, dword [esi + 0x1c]
sub ecx, eax
mov dword [0x1007198], ecx
mov dword [esi + 0x18], 0x1007194
mov eax, dword [0x1007194]
pop esi
leave
ret 0xc

Function at 0x1004fb6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x64], ebx
jle 0x1004fe0
lea esi, [edi + 0x6c]
mov eax, dword [esi]
push 0
push 0
push 3
push eax
call dword [eax + 4]
inc ebx
add esi, 4
cmp ebx, dword [edi + 0x64]
jl 0x1004fcb
mov dword [ebp - 4], 2
lea esi, [edi + 0x74]
and dword [ebp - 8], 0
mov dword [ebp + 8], 0x24
mov ecx, dword [esi]
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add dword [ebp + 8], 0xc
add eax, ecx
add edx, 0xfffffffe
shl ebx, 2
or edx, ebx
xor dx, word [eax]
and dx, 0x7fff
xor word [eax], dx
mov ebx, dword [ecx + 8]
mov dx, word [eax]
or dx, 0x8000
inc dword [ebp - 8]
cmp dword [ebp + 8], 0xc0
mov dword [eax + 4], ebx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 8], ecx
mov word [eax], dx
jl 0x1004ff5
mov ecx, dword [esi]
inc dword [ebp - 4]
push 0xd
pop eax
add esi, 4
cmp dword [ebp - 4], 6
mov dword [ecx + 0x1c], eax
jl 0x1004fea
push 0
push 0
push eax
push edi
call dword [edi]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1005f85
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10012f8
call fcn.01006170
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1005fc2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1005fc2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1005fda
cmp eax, 0x20b
je 0x1005fc7
mov dword [ebp - 0x1c], ebx
jmp 0x1005fee
cmp dword [ecx + 0x84], 0xe
jbe 0x1005fc2
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1005fe8
cmp dword [ecx + 0x74], 0xe
jbe 0x1005fc2
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1007380], 0xffffffff
or dword [0x1007384], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10071f0]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10071ec]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1007388], eax
call fcn.0100616a
cmp dword [0x1007144], ebx
jne 0x1006049
push fcn.0100616a
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01006158
push 0x1001214
push 0x1001210
call sub.msvcrt.dll__initterm
mov eax, dword [0x10071e8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x10071e4]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x100120c
push 0x1001208
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x10060df
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x10060b3
cmp al, 0x22
jne 0x10060a5
cmp byte [esi], 0x22
jne 0x10060bc
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x10060c6
cmp al, 0x20
jbe 0x10060b8
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x10060ea
movzx eax, word [ebp - 0x48]
jmp 0x10060ed
cmp byte [esi], 0x20
jbe 0x10060bc
inc esi
mov dword [ebp - 0x34], esi
jmp 0x10060df
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100610a
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100613f
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010061a9
ret