joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x4a5463]
shl eax, 2
mov dword [0x4a5467], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004828f0
pop edx
call fcn.00482854
call fcn.00482930
push 0
call fcn.00483c54
pop ecx
push 0x4a540c
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4a546b], eax
push 0
jmp fcn.0048c4b8

Function at 0x407ab4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407c25
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x407c00
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.0047fc04
lea eax, [ebp - 0x118]
mov edx, 0x407c3c
call fcn.0047fce4
mov eax, dword [ebp - 0x118]
call fcn.0047fea0
push eax
call sub.KERNEL32.DLL_GetVolumeInformationA
test eax, eax
je 0x407b72
lea eax, [ebp - 0x111]
call fcn.00478564
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.0047fb44
jmp 0x407b79
mov eax, esi
call fcn.0047fa5c
cmp bl, 0x61
jae 0x407b9a
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0047b358
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.0047fab0
jmp 0x407bb4
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0047b2cc
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.0047fab0
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x407c48
call fcn.00478cd4
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.0047fab0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407c07
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret

Function at 0x40af14
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0047fea0
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40af2d
test al, 0x10
jne 0x40af31
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40e484
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 8], eax
mov eax, dword [0x4aeab0]
mov eax, dword [eax]
call fcn.00449f08
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jge 0x40e4bc
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jge 0x40e495
mov esp, ebp
pop ebp
ret
Function at 0x40eb10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call fcn.0040eaa8
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x40eb31
xor eax, eax
call fcn.0040eae0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.USER32.DLL_ShowWindow
cmp byte [ebp - 9], 0
je 0x40eb4b
mov al, 1
call fcn.0040eae0
mov esp, ebp
pop ebp
ret

Function at 0x40f5ac
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x800
lea eax, [ebp - 0x809]
push eax
mov eax, dword [ebp - 4]
call fcn.0047fea0
push eax
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jbe 0x40f5e9
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x809]
call fcn.0047878c
jmp 0x40f5f1
mov eax, dword [ebp - 8]
call fcn.0047fa5c
mov esp, ebp
pop ebp
ret

Function at 0x40fa18
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
xor ecx, ecx
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40fbe9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
push 0x15
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_FindResourceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40fbd0
lea eax, [ebp - 0x121]
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
test eax, eax
setne al
neg al
sbb eax, eax
call fcn.0047b9b4
lea eax, [ebp - 0x226]
push eax
push 0
push 0x40fbf8
lea eax, [ebp - 0x121]
push eax
call sub.KERNEL32.DLL_GetTempFileNameA
test eax, eax
setne al
neg al
sbb eax, eax
call fcn.0047b9b4
xor eax, eax
push ebp
push 0x40fbc9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x40fba8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40fb91
xor eax, eax
push ebp
push 0x40fb8a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
lea edx, [ebp - 0x22c]
lea eax, [ebp - 0x226]
call fcn.0047878c
mov ecx, dword [ebp - 0x22c]
mov dl, 1
mov eax, dword [0x46a24c]
call fcn.0046d3a4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40fb5e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SizeofResource
mov ecx, eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.0046d20c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fb65
mov eax, dword [ebp - 0x10]
call fcn.0047efec
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fbaf
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_FreeResource
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fbf0
lea eax, [ebp - 0x22c]
call fcn.0047fa5c
ret
Function at 0x4104c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff34
push esi
push edi
xor edx, edx
mov dword [ebp - 0xa4], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4105fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call sub.KERNEL32.DLL_GetVersionExA
mov eax, dword [ebp - 0x90]
sub eax, 1
jb 0x41050c
je 0x410515
dec eax
je 0x410554
jmp 0x41055f
mov dword [ebp - 9], 0x73323303
jmp 0x41055f
and dword [ebp - 0x94], 0xffff
cmp dword [ebp - 0x9c], 4
ja 0x41053a
cmp dword [ebp - 0x9c], 4
jne 0x410547
cmp dword [ebp - 0x98], 0xa
jb 0x410547
mov esi, 0x41060c
lea edi, [ebp - 9]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x41055f
mov esi, 0x410610
lea edi, [ebp - 9]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x41055f
mov esi, 0x410614
lea edi, [ebp - 9]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 9]
mov dword [ebp - 0xcc], eax
mov byte [ebp - 0xc8], 4
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xc4], eax
mov byte [ebp - 0xc0], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 0xb8], 0
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 0xb0], 0
lea eax, [ebp - 0x8c]
mov dword [ebp - 0xac], eax
mov byte [ebp - 0xa8], 6
lea edx, [ebp - 0xcc]
mov ecx, 4
mov eax, 0x410620
call fcn.00478cd4
mov eax, dword [ebp - 0xa4]
mov edx, dword [ebp - 4]
call fcn.00477994
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410605
lea eax, [ebp - 0xa4]
call fcn.0047fa5c
ret

Function at 0x412660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.0047eb5c
mov eax, dword [ebp - 4]
cmp byte [eax], 0
jbe 0x4126c8
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
jle 0x4126c8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
dec eax
mov edx, dword [ebp - 4]
movzx edx, byte [edx]
mov ecx, edx
cdq
idiv ecx
inc edx
mov eax, dword [ebp - 4]
mov al, byte [eax + edx]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov dl, byte [edx + ecx]
xor al, dl
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov byte [edx + ecx], al
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x412696
mov esp, ebp
pop ebp
ret
Function at 0x41319c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
xor edx, edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41339a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x34], 0
je 0x4131dd
mov eax, dword [ebp - 4]
cmp byte [eax + 0x35], 0
jne 0x4131dd
xor eax, eax
mov dword [ebp - 0x28], eax
jmp 0x41320c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x35], 1
jne 0x4131fa
lea eax, [ebp - 0x28]
push eax
push 0x12
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
call fcn.00475074
jmp 0x41320c
lea eax, [ebp - 0x28]
push eax
push 0x11
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
call fcn.00475074
xor eax, eax
push ebp
push 0x413375
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
add eax, 0x3c
mov edx, 0x104
call fcn.00480010
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.0047fea0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x413251
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
call fcn.0047fea0
mov dword [ebp - 0x20], eax
jmp 0x413256
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x35], 1
jne 0x413268
mov dword [ebp - 0x1c], 0x1000
jmp 0x41326f
mov dword [ebp - 0x1c], 9
mov dword [ebp - 0x18], 0x412ca8
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x4aeab0]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004133a8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
setne byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x413358
xor eax, eax
push ebp
push 0x413351
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x35], 0
jne 0x41330f
lea eax, [ebp - 0x131]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.SHELL32.DLL_SHGetPathFromIDListA
call fcn.0047b9b4
lea edx, [ebp - 0x13c]
lea eax, [ebp - 0x131]
call fcn.0047878c
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call sym.Medic.exe__Fileutil_RemoveBackSlash_qqrx17System_AnsiString
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 4]
add eax, 0x44
call fcn.0047fab0
jmp 0x413320
mov eax, dword [ebp - 4]
add eax, 0x44
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3c]
call fcn.0047fab0
mov eax, dword [ebp - 4]
add eax, 0x40
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x44]
call fcn.0047fab0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x48], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413358
mov eax, dword [ebp - 0xc]
push eax
call sub.OLE32.DLL_CoTaskMemFree
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41337c
cmp dword [ebp - 0x28], 0
je 0x413374
mov eax, dword [ebp - 0x28]
push eax
call sub.OLE32.DLL_CoTaskMemFree
ret
Function at 0x413bd8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0047fe90
xor eax, eax
push ebp
push 0x413c33
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0047fea0
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x413c14
test byte [ebp - 0xc], 0x10
jne 0x413c18
xor eax, eax
jmp 0x413c1a
mov al, 1
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413c3a
lea eax, [ebp - 4]
call fcn.0047fa5c
ret

Function at 0x41475c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
mov dword [ebp - 4], eax
lea eax, [ebp - 0x404]
push eax
push 0x400
call sub.KERNEL32.DLL_GetTempPathA
mov ecx, eax
lea edx, [ebp - 0x404]
mov eax, dword [ebp - 4]
call fcn.0047fb44
mov esp, ebp
pop ebp
ret

Function at 0x414790
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
mov dword [ebp - 4], eax
push 0x400
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov ecx, eax
lea edx, [ebp - 0x404]
mov eax, dword [ebp - 4]
call fcn.0047fb44
mov esp, ebp
pop ebp
ret

Function at 0x4147c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
mov dword [ebp - 4], eax
push 0x400
lea eax, [ebp - 0x404]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov ecx, eax
lea edx, [ebp - 0x404]
mov eax, dword [ebp - 4]
call fcn.0047fb44
mov esp, ebp
pop ebp
ret
Function at 0x414cd8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcd4
push ebx
xor ebx, ebx
mov dword [ebp - 0x32c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x414ea7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.OLE32.DLL_CoInitialize
xor eax, eax
push ebp
push 0x414e77
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.00481c14
push eax
mov eax, dword [0x4aee8c]
push eax
push 5
push 0
mov eax, dword [0x4aee90]
push eax
call sub.OLE32.DLL_CoCreateInstance
call fcn.00475074
xor eax, eax
push ebp
push 0x414e5d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.00481c14
push eax
push 0x4a6adc
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax]
call fcn.00475074
xor eax, eax
push ebp
push 0x414e40
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
call fcn.00475074
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.SHELL32.DLL_SHGetPathFromIDListA
push 0x414ebc
push dword [ebp - 8]
push 0x414ec8
lea eax, [ebp - 0x32c]
mov edx, 3
call fcn.0047fd9c
mov eax, dword [ebp - 0x32c]
call fcn.0047fea0
mov edx, eax
lea eax, [ebp - 0x11d]
call fcn.0047866c
mov eax, dword [ebp - 4]
call fcn.0047fea0
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
push 0
mov eax, dword [ebp - 4]
call fcn.0047fea0
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x44]
push 0x104
lea eax, [ebp - 0x328]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x11d]
push eax
push 0
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push 0xffffffffffffffff
lea eax, [ebp - 0x328]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.00475074
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414e47
lea eax, [ebp - 0x14]
call fcn.00481c14
ret
Function at 0x414ed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
xor ecx, ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41501b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.OLE32.DLL_CoInitialize
xor eax, eax
push ebp
push 0x414fee
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00481c14
push eax
mov eax, dword [0x4aee8c]
push eax
push 5
push 0
mov eax, dword [0x4aee90]
push eax
call sub.OLE32.DLL_CoCreateInstance
call fcn.00475074
xor eax, eax
push ebp
push 0x414fd4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderLocation
call fcn.00475074
lea eax, [ebp - 0x115]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.SHELL32.DLL_SHGetPathFromIDListA
push 0x415030
push dword [ebp - 4]
push 0x41503c
lea eax, [ebp - 0x11c]
mov edx, 3
call fcn.0047fd9c
mov eax, dword [ebp - 0x11c]
call fcn.0047fea0
mov edx, eax
lea eax, [ebp - 0x115]
call fcn.0047866c
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x115]
mov ecx, 0x105
call fcn.0047fc8c
mov eax, dword [ebp - 0x120]
call fcn.004781cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414fdb
lea eax, [ebp - 0xc]
call fcn.00481c14
ret

Function at 0x415a28
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 8], 0
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jbe 0x415ac7
xor eax, eax
push ebp
push 0x415ab1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041594c
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.VERSION.DLL_GetFileVersionInfoA
neg eax
sbb eax, eax
neg eax
mov edx, dword [ebp - 4]
mov byte [edx + 8], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x415ac7
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x42f764
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0047fa5c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42f7b3
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.0047fc8c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x435acc
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x435ad2
ret

Function at 0x4382e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x438331
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x438318
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x438308
jmp 0x438331
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x438319
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4414b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4af12c
cmp dword [edi], 0
jne 0x44152c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4af128]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4a9dc0
mov ecx, 2
call fcn.0047e930
mov edx, 0x441488
lea eax, [esi + 5]
call fcn.004414a8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004414a8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x441501
mov dword [0x4af128], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x441648
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x441698]
test si, 4
je 0x44165c
or bl, 1
test si, 8
je 0x441666
or bl, 4
test si, 1
je 0x441670
or bl, 8
test si, 2
je 0x44167a
or bl, 0x10
test si, 0x10
je 0x441684
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x441693
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44169c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4416d4]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4416b5
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4416c4
or bl, 4
test esi, 0x20000000
je 0x4416cf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x447c24
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x447c36
add esp, 0xfffffff0
call fcn.0047f2ec
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004700b4
mov eax, ebx
call fcn.00447f70
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x469d3c]
call fcn.0047efbc
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x469d3c]
call fcn.0047efbc
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x469d3c]
call fcn.0047efbc
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x469d3c]
call fcn.0047efbc
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x469d3c]
call fcn.0047efbc
mov dword [ebx + 0x70], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x444714
push eax
push 0
push 0
mov eax, dword [0x4aec8c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x434f54]
call fcn.0043652c
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x434f54]
call fcn.0043652c
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x434f54]
call fcn.0043652c
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.004483e0
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4482b4
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4482b4
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4482b4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x447d45
call fcn.0047f344
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret