joyce8/EMBER2024-capa huggingface dataset:
Function at 0x15107bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.01511624
test byte [ebp + 0xd], 0xc0
jne 0x15107e0
mov eax, dword [0x151b38c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x15107ed
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x151081a
je 0x151082c
sub ecx, 0x100
je 0x151083a
sub ecx, 0x100
je 0x1510841
sub ecx, 0x100
je 0x1510833
jmp 0x1510848
sub ecx, 0x600
je 0x1510841
sub ecx, 0x100
je 0x151082c
jmp 0x1510848
mov edi, 1
jmp 0x151084d
mov edi, 2
jmp 0x151084d
mov edi, 4
jmp 0x151084d
mov edi, 5
jmp 0x151084d
mov edi, 3
test byte [ebp + 0xd], 1
je 0x1510874
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x151ae04]
test al, 0x80
je 0x151086d
mov ebx, 0x80
jmp 0x1510886
mov ebx, 1
jmp 0x1510886
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1510886
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x1510898
je 0x15108a1
dec eax
je 0x15108aa
jmp 0x15108b3
mov dword [ebp - 4], 0x80000000
jmp 0x15108c2
mov dword [ebp - 4], 0x40000000
jmp 0x15108c2
mov dword [ebp - 4], 0xc0000000
jmp 0x15108c2
push 1
call fcn.015119fc
pop ecx
mov ebx, eax
jmp 0x15109b2
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x15108de
sub eax, 0x10
je 0x15108e5
sub eax, 0x10
je 0x15108ee
sub eax, 0x10
je 0x15108f7
jmp 0x15108f7
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x15108fe
mov dword [ebp - 8], 1
jmp 0x15108fe
mov dword [ebp - 8], 2
jmp 0x15108fe
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x151096b
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x1510960
test byte [ebp + 0xd], 1
je 0x151095b
mov ebx, 0x50
jmp 0x1510960
mov ebx, 2
push ebx
call fcn.015119fc
pop ecx
mov ebx, eax
jmp 0x15109b2
mov edi, esi
push edi
call fcn.01510720
pop ecx
test eax, eax
je 0x151097f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x151098b
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.01511724
add esp, 8
mov ebx, eax
inc eax
jne 0x15109b2
push 4
call fcn.015119fc
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.01511658
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x15154ec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x151554e
call fcn.0151549c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0150f6e8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0150f6e8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x15155cc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x151c2e4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x15156a6
cmp dword [0x151c2e0], 0
jne 0x15156a6
cmp dword [0x151c420], 0
je 0x1515660
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.01515444
add esp, 8
mov ebx, eax
test eax, eax
jne 0x1515646
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.01515444
add esp, 8
mov ebx, eax
test eax, eax
jne 0x1515646
lea ebx, [ebp - 0x84]
jmp 0x1515647
inc ebx
call fcn.01515588
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x15156e1
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x151c2e8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0150f6e8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x151c2eb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x15156e1
cmp dword [0x151c2e0], 0
je 0x15156c0
cmp dword [0x151c2e0], 0xffffffff
je 0x15156e1
push esi
call dword [0x151c2e0]
pop ecx
mov eax, dword [0x151c2e4]
test eax, eax
je 0x15156e1
cmp dword [0x151c2e4], 0xffffffff
je 0x15156e1
cmp byte [eax], 0
je 0x15156e1
push esi
push eax
call fcn.015154ec
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x15164b8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
cmp edi, 1
jne 0x151653e
mov eax, dword [0x1521bc4]
inc dword [0x1521bc4]
test eax, eax
jne 0x151653e
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x1521b90], eax
mov edx, dword [ebp + 0x10]
mov dword [0x151915b], edx
mov ecx, dword [esi + 0x44]
push ecx
call fcn.01510ffc
pop ecx
cmp dword [0x151c368], 0
je 0x1516529
call fcn.0151633c
mov ebx, eax
test eax, eax
je 0x1516529
mov edx, dword [ebx]
cmp dword [ebx + edx*4 + 4], 0xffffffff
je 0x1516529
mov ecx, dword [ebx]
inc dword [ebx]
mov dword [ebx + ecx*4 + 4], esi
jmp 0x151653e
xor eax, eax
lea edx, [ebp - 8]
push 0
push edx
mov dword [0x151c368], eax
call fcn.01516344
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
push edi
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [esi + 0x18]
push edx
call fcn.0151664c
mov ebx, eax
test edi, edi
jne 0x15165ad
test edi, edi
jne 0x151657e
dec dword [0x1521bc4]
jne 0x151657e
cmp dword [0x1521b90], 0
je 0x151657e
mov eax, dword [0x1521b90]
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsA
xor edx, edx
mov dword [0x1521b90], edx
cmp dword [0x1521bc4], 0
jne 0x15165ad
cmp dword [0x151c368], 0
jne 0x15165ad
cmp dword [0x151c358], 0
je 0x151659f
call dword [0x151c358]
push 1
lea ecx, [ebp - 8]
push ecx
call fcn.01516344
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x403078
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004047c0
test esi, esi
jne 0x4030ae
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004048b0
jmp 0x4030cc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402f7c
mov edi, eax
test esi, esi
je 0x4030cc
cmp dword [ebx], 0
je 0x4030cc
dec esi
jmp 0x4030b5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4030d8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x45f008], 0x8088405
inc edx
mov dword [ebx + 0x45f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4037b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45f024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40384c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40382c
xor eax, eax
push ebp
push 0x403825
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403868
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40382c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x45f024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45f024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404640
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x526048], 0
je 0x4046a1
cmp word [0x52621c], 0xd7b2
jne 0x404669
cmp dword [0x526224], 0
jbe 0x404669
mov eax, 0x526218
call dword [0x526234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4046c8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45f030], 0
jne 0x4046bd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405be0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e10
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c63
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e10
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405c63
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e2c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405cec
xor eax, eax
push ebp
push 0x405ce5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405a1c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405cca
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405e4c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405cca
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405cec
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405e06
cmp byte [ebp - 0xd], 0
jne 0x405d33
cmp byte [ebp - 0x12], 0
je 0x405e06
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405d4c
dec ebx
cmp byte [ebx], 0x2e
je 0x405d5b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405d4b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e06
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405d98
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405e06
cmp byte [ebp - 0xd], 0
je 0x405e06
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405e06
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4081cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40825c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40825c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40820f
test edx, 3
jne 0x4081fe
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408209
jmp 0x40820f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40820f
cmp dword [ecx - 8], 1
je 0x408219
mov edx, ebx
or edx, 3
call fcn.00404f0c
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40822b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004047c0

Function at 0x408268
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4082f8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4082f8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4082ab
test edx, 3
jne 0x40829a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4082a5
jmp 0x4082ab
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4082ab
cmp dword [ecx - 8], 1
je 0x4082b5
mov edx, ebx
or edx, 3
call fcn.00404f0c
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4082c7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.004047c0

Function at 0x40b688
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b6c1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048b0
jmp 0x40b6ca
mov eax, ebx
mov edx, esi
call fcn.00404814
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b6d4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b6f6
movzx eax, byte [esp]
jmp 0x40b6f8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bd88
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bc00
mov eax, dword [0x525c40]
cmp byte [eax], 0
je 0x40be04
mov eax, dword [0x525a68]
call fcn.0040317c
call fcn.00402de8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408e20
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40be4c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40be3a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x525a14]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5287f4]
call fcn.004059c4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c698
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c76e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404858
lea eax, [ebp - 4]
call fcn.00404cd4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404c84
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c758
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c751
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404c84
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c73b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c780
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c73b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c758
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c775
lea eax, [ebp - 4]
call fcn.004047c0
ret
Function at 0x41b39c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x529300
cmp dword [edi], 0
jne 0x41b418
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5292fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45fad8
mov ecx, 2
call fcn.00402e7c
mov edx, 0x41b374
lea eax, [esi + 5]
call fcn.0041b394
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b394
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 0x41b3ed
mov dword [0x5292fc], 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 0x41d8c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404c84
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d91c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x525d50]
mov dl, 1
mov eax, dword [0x41d3e8]
call fcn.0040bf48
call fcn.00404208
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d4f0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41e778
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 0x41e77e
ret
Function at 0x42da4c
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.004047c0
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42da9a
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404a30
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431b1c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x431c4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41d448]
call fcn.0041d518
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x431c25
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d5b8
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404a30
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x431c64
call fcn.00404ad0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d61c
lea ecx, [ebp - 4]
mov edx, 0x431ca0
mov eax, dword [ebp - 0xc]
call fcn.0041d84c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d9e4
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x431c08
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x431cac
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4604c0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x431c0f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x431cfc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x431d43
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431d26
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431d37
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x431d43
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x436b7c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x529534], 0
je 0x436cc5
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x525be0]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x436cc5
mov eax, dword [0x529538]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x529534]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x436c94
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x529534]
call fcn.00414484
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x436c8c
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x436c8c
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x436c8c
mov eax, dword [ebp - 0x14]
call fcn.00440ed4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x436c8c
push ebp
call fcn.00436b38
pop ecx
test al, al
jne 0x436c8c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403ba8
test al, al
je 0x436c8c
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00403ba8
cmp byte [ebp - 1], 0
je 0x436c8c
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x436c8c
mov edx, dword [ebp - 0x14]
mov eax, dword [0x529538]
call fcn.004362a8
inc edi
dec ebx
jne 0x436be1
mov eax, dword [0x529538]
cmp dword [eax + 8], 0
jle 0x436cac
mov eax, dword [0x529538]
call fcn.00436360
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x436cc5
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043699c
pop ecx
test al, al
jne 0x436cc5
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret