joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43bbc0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004350fc
xor ebx, ebx
cmp dword [0x453b14], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43bc96
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43bd76
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43bd76
push eax
call fcn.0043508e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x453b14], eax
call esi
push eax
call fcn.0043508e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x453b18], eax
call esi
push eax
call fcn.0043508e
mov dword [0x453b1c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00435bda
test eax, eax
pop ecx
pop ecx
je 0x43bc64
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043264c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43bc96
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043508e
cmp eax, ebx
pop ecx
mov dword [0x453b24], eax
je 0x43bc96
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043508e
pop ecx
mov dword [0x453b20], eax
mov eax, dword [0x453b20]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43bd1b
cmp dword [0x453b24], ecx
je 0x43bd1b
push eax
call fcn.00435105
push dword [0x453b24]
mov esi, eax
call fcn.00435105
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43bd1b
cmp edi, ebx
je 0x43bd1b
call esi
cmp eax, ebx
je 0x43bce8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43bce8
test byte [ebp - 0x18], 1
jne 0x43bd1b
lea eax, [ebp - 0x10]
push eax
call fcn.00435c11
test eax, eax
pop ecx
je 0x43bd03
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043264c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43bd12
or dword [ebp + 0x10], 0x200000
jmp 0x43bd56
or dword [ebp + 0x10], 0x40000
jmp 0x43bd56
mov eax, dword [0x453b18]
cmp eax, dword [ebp - 8]
je 0x43bd56
push eax
call fcn.00435105
cmp eax, ebx
pop ecx
je 0x43bd56
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43bd56
mov eax, dword [0x453b1c]
cmp eax, dword [ebp - 8]
je 0x43bd56
push eax
call fcn.00435105
cmp eax, ebx
pop ecx
je 0x43bd56
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x453b14]
call fcn.00435105
cmp eax, ebx
pop ecx
je 0x43bd76
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43bd78
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001dfb
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, str.Connection:_keep_alive_r_nUser_Agent:_Mozilla_5.0__Windows_NT_10.0__WOW64__Trident_7.0__rv:12.0__like_Gecko_r_nAccept:__
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10001e28
push ebx
call fcn.100073e7
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 1
push 1
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 8]
call fcn.10001fce
mov ebx, eax
test ebx, ebx
je 0x10001e8f
push ebx
call fcn.100073e7
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10001e9f
push ebx
call fcn.100073e7
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10001eaf
push ebx
call fcn.100073e7
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10001ebf
push ebx
call fcn.100073e7
add esp, 4
push 0x10013231
push dword [ebp - 8]
call fcn.100016bd
add esp, 8
cmp eax, 0
jne 0x10001ee2
mov eax, 0x10013231
jmp 0x10001f46
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, 0x10013379
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, str.noteshare_id
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1000300b
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x10001f2e
push ebx
call fcn.100073e7
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10001f3e
push ebx
call fcn.100073e7
add esp, 4
mov eax, dword [ebp - 0x1c]
jmp 0x10001f46
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10001f57
push ebx
call fcn.100073e7
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10001f67
push ebx
call fcn.100073e7
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x100039fe
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, str.Connection:_keep_alive_r_nUser_Agent:_Mozilla_5.0__Windows_NT_10.0__WOW64__Trident_7.0__rv:12.0__like_Gecko_r_nAccept:__
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10003a2b
push ebx
call fcn.100073e7
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 1
push 1
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
push 0x10014c2a
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 8]
call fcn.10001fce
mov ebx, eax
test ebx, ebx
je 0x10003a8c
push ebx
call fcn.100073e7
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10003a9c
push ebx
call fcn.100073e7
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10003aac
push ebx
call fcn.100073e7
add esp, 4
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
push 1
push 1
mov eax, 0x10013379
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, str.Location:
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1000300b
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10003af3
push ebx
call fcn.100073e7
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10003b03
push ebx
call fcn.100073e7
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x10003b0b
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10003b1c
push ebx
call fcn.100073e7
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10003b2c
push ebx
call fcn.100073e7
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x100044f9
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.100046a9
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], pe_nt_image_headers32
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x100045f7
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x1000459a
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x100045dd
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x100045b1
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x100045cc
test al, 0x40
je 0x100045c3
mov ecx, dword [edi + 0x20]
jmp 0x100045ca
test al, 0x80
je 0x100045dd
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x100045dd
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x10004569
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x1002dbf0
Capabilities:
Contain obfuscated stackstrings
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x10]
cmp ebx, esi
je 0x1002dd52
cmp edi, esi
je 0x1002dd52
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
add eax, edi
mov dword [ebp - 0x48], 0x44434241
mov dword [ebp - 0x44], 0x48474645
mov dword [ebp - 0x40], 0x4c4b4a49
mov dword [ebp - 0x3c], 0x504f4e4d
mov dword [ebp - 0x38], 0x54535251
mov dword [ebp - 0x34], 0x58575655
mov dword [ebp - 0x30], 0x62615a59
mov dword [ebp - 0x2c], 0x66656463
mov dword [ebp - 0x28], 0x6a696867
mov dword [ebp - 0x24], 0x6e6d6c6b
mov dword [ebp - 0x20], 0x7271706f
mov dword [ebp - 0x1c], 0x76757473
mov dword [ebp - 0x18], 0x7a797877
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x2f2b3938
mov dword [ebp - 4], esi
mov ecx, edi
mov dword [ebp - 8], eax
cmp edx, esi
jbe 0x1002dd42
add edi, 4
jmp 0x1002dca3
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x1002dcb8
mov dword [ebp - 4], 2
jmp 0x1002dcd9
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x1002dccf
mov dword [ebp - 4], 1
jmp 0x1002dcd9
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x1002dd52
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x48]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x48]
mov byte [ecx + 1], bl
mov ebx, dword [ebp - 4]
cmp ebx, 1
jbe 0x1002dd10
mov byte [ecx + 2], 0x3d
jmp 0x1002dd1d
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x48]
mov byte [ecx + 2], al
add ecx, 3
add edi, 3
test ebx, ebx
je 0x1002dd2c
mov byte [ecx], 0x3d
jmp 0x1002dd32
mov dl, byte [ebp + edx - 0x48]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x1002dca0
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
sub ecx, edi
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402fc4
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 0x4036c4
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 0x40375c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40373c
xor eax, eax
push ebp
push 0x403735
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 0x403778
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 0x40373c
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 0x404550
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x53d048], 0
je 0x4045b1
cmp word [0x53d21c], 0xd7b2
jne 0x404579
cmp dword [0x53d224], 0
jbe 0x404579
mov eax, 0x53d218
call dword [0x53d234]
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 0x4045d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45f030], 0
jne 0x4045cd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404708
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x45f034], 0
je 0x40472e
mov edx, esi
mov eax, ebx
call dword [0x45f034]
jmp 0x40473d
mov eax, 8
call fcn.00402cac
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x53d049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4046d0
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4081f8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408288
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408288
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40823b
test edx, 3
jne 0x40822a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408235
jmp 0x40823b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40823b
cmp dword [ecx - 8], 1
je 0x408245
mov edx, ebx
or edx, 3
call fcn.00404ed0
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 0x408257
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404784

Function at 0x408294
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408324
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408324
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4082d7
test edx, 3
jne 0x4082c6
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4082d1
jmp 0x4082d7
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4082d7
cmp dword [ecx - 8], 1
je 0x4082e1
mov edx, ebx
or edx, 3
call fcn.00404ed0
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 0x4082f3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404784

Function at 0x40b5fc
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 0x40b635
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404874
jmp 0x40b63e
mov eax, ebx
mov edx, esi
call fcn.004047d8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b648
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 0x40b66a
movzx eax, byte [esp]
jmp 0x40b66c
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bcfc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bb74
mov eax, dword [0x53c120]
cmp byte [eax], 0
je 0x40bd78
mov eax, dword [0x53bf14]
call fcn.0040308c
call fcn.00402e08
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.00408ca0
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 0x40bdc0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bdae
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x53beb4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x53f7f4]
call fcn.00405980
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 0x40c60c
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 0x40c6e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040481c
lea eax, [ebp - 4]
call fcn.00404c98
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404c48
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c6cc
mov eax, ebx
call fcn.00402cac
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c6c5
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.00404c48
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c6af
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c6f4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c6af
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 0x40c6cc
mov eax, dword [ebp - 0x10]
call fcn.00402cc8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c6e9
lea eax, [ebp - 4]
call fcn.00404784
ret

Function at 0x41b308
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041b018
dec esi
jne 0x41b32a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41c49c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x540304
cmp dword [edi], 0
jne 0x41c518
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x540300]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45fafc
mov ecx, 2
call fcn.00402e9c
mov edx, 0x41c474
lea eax, [esi + 5]
call fcn.0041c494
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c494
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 0x41c4ed
mov dword [0x540300], 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 0x41eb00
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.00404c48
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41eb58
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x53c248]
mov dl, 1
mov eax, dword [0x41e624]
call fcn.0040bebc
call fcn.00404118
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041e72c
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 0x41f9b4
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 0x41f9ba
ret
Function at 0x42d1e8
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.00404784
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42d236
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.004049f4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4312b8
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 0x4313eb
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 [0x41e684]
call fcn.0041e754
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4313c1
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041e7f4
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.004049f4
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x431400
call fcn.00404a94
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041e858
lea ecx, [ebp - 4]
mov edx, 0x43143c
mov eax, dword [ebp - 0xc]
call fcn.0041ea88
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d8c4
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4313a4
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x431448
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 [0x4604b0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4313ab
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x431498
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 0x4314df
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4314c2
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4314d3
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4314df
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret