joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444504
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00444155

Function at 0x447f0e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x3f
sar ecx, 6
push ebx
imul ebx, eax, 0x38
push esi
mov eax, dword [ecx*4 + 0x536fb0]
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 0xa
mov edx, dword [ebx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x447f58
push 0xa
pop edi
cmp word [esi], di
jne 0x447f58
or byte [ebx + eax + 0x28], 4
jmp 0x447f5d
and byte [ebx + eax + 0x28], 0xfb
lea edx, [esi + edx*2]
mov eax, esi
mov dword [ebp - 0x14], edx
mov edi, esi
mov dword [ebp - 8], eax
cmp esi, edx
jae 0x4480c3
mov dword [ebp - 0x18], 0xd
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0x1c], ecx
push 0x1a
pop ecx
cmp dx, cx
mov ecx, dword [ebp - 0xc]
je 0x4480a3
add eax, 2
cmp dx, word [ebp - 0x18]
je 0x447fa7
mov word [edi], dx
add edi, 2
mov dword [ebp - 8], eax
jmp 0x448098
cmp eax, dword [ebp - 0x14]
jae 0x447fdd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x10]
mov edx, eax
mov esi, dword [ebp + 0xc]
sete cl
xor eax, eax
push 0xa
lea ecx, [ecx*2 + 2]
add dword [ebp - 8], ecx
pop ecx
cmp dx, cx
sete al
dec eax
and eax, 3
add eax, ecx
jmp 0x44808f
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44808c
cmp dword [ebp - 0x24], 0
je 0x44808c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x536fb0]
test byte [ebx + eax + 0x28], 0x48
je 0x448065
mov dx, word [ebp - 4]
lea eax, [edi + 2]
mov dword [ebp - 0x1c], eax
cmp dx, word [ebp - 0x10]
jne 0x448030
push 0xa
pop edx
mov word [edi], dx
jmp 0x448061
push 0xd
pop eax
mov word [edi], ax
mov eax, dword [ecx*4 + 0x536fb0]
push 0xa
mov byte [ebx + eax + 0x2a], dl
mov eax, dword [ecx*4 + 0x536fb0]
shr dx, 8
mov byte [ebx + eax + 0x2b], dl
mov eax, dword [ecx*4 + 0x536fb0]
pop edx
mov byte [ebx + eax + 0x2c], dl
mov eax, dword [ebp - 0x1c]
mov edi, eax
jmp 0x448095
push 0xa
pop eax
cmp word [ebp - 4], ax
jne 0x448072
cmp edi, esi
je 0x44808f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00447d24
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x448095
push 0xd
pop eax
mov word [edi], ax
add edi, 2
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jb 0x447f79
jmp 0x4480c3
mov ecx, dword [ecx*4 + 0x536fb0]
mov al, byte [ecx + ebx + 0x28]
test al, 0x40
jne 0x4480ba
or al, 2
mov byte [ecx + ebx + 0x28], al
jmp 0x4480c3
push 0x1a
pop eax
mov word [edi], ax
add edi, 2
sub edi, esi
and edi, 0xfffffffe
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4126ee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
jmp 0x4126f6
pop ecx
push ecx
or ecx, 0x6cc3
add ecx, 0xa928
or ecx, 0x139e7
add ecx, 0x17886
pop ecx
movzx ecx, word [ebp - 0x3c]
test ecx, ecx
jne 0x41272e
movzx edx, word [ebp - 0x220]
movzx eax, word [ebp - 0x3c]
sub edx, eax
mov dword [ebp - 0x1668], edx
jmp 0x412788
movzx ecx, word [ebp - 0x220]
movzx edx, word [ebp - 0x3c]
cmp ecx, edx
je 0x412656
movzx eax, word [ebp - 0x220]
xor eax, 0x20
movzx ecx, word [ebp - 0x3c]
cmp eax, ecx
je 0x412656
movzx edx, word [ebp - 0x220]
movzx eax, word [ebp - 0x3c]
cmp edx, eax
jge 0x412772
mov dword [ebp - 0x1624], 0xffffffff
jmp 0x41277c
mov dword [ebp - 0x1624], 1
mov ecx, dword [ebp - 0x1624]
mov dword [ebp - 0x1668], ecx
cmp dword [ebp - 0x1668], 0
jne 0x4127d1
push eax
sub eax, 0xfb36
and eax, 0x790c
add eax, 0x18061
pop eax
push edx
push edi
add esp, 4
xor edx, 0x79d3
sub edx, 0x134c0
xor edx, 0x11668
add edx, 0x15aad
pop edx
mov edx, dword [ebp - 0x518]
mov dword [ebp - 0x774], edx
jmp 0x412839
push ebx
call 0x4127e2
add byte [esi + 0x49], cl
cmp esi, dword [edi]
inc ecx
dec eax
dec ecx
aas
cmp eax, 0x4c48344
and ebx, 0xf28c
call 0x4127f9
add byte [edx + 0x3f], cl
dec ebp
xor al, byte [esi + 0x4d]
cmp al, 0x4d
add esp, 4
xor ebx, 0xec3d
pop ebx
mov eax, dword [ebp - 0x518]
mov ecx, dword [eax]
mov dword [ebp - 0x518], ecx
mov edx, dword [ebp - 0x518]
cmp edx, dword [ebp - 0xcd0]
je 0x41282f
mov eax, dword [ebp - 0x518]
cmp dword [eax + 0x30], 0
jne 0x4125fa
mov dword [ebp - 0x774], 0

Function at 0x4127f9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
jmp 0x4126f6
pop ecx
push ecx
or ecx, 0x6cc3
add ecx, 0xa928
or ecx, 0x139e7
add ecx, 0x17886
pop ecx
movzx ecx, word [ebp - 0x3c]
test ecx, ecx
jne 0x41272e
movzx edx, word [ebp - 0x220]
movzx eax, word [ebp - 0x3c]
sub edx, eax
mov dword [ebp - 0x1668], edx
jmp 0x412788
movzx ecx, word [ebp - 0x220]
movzx edx, word [ebp - 0x3c]
cmp ecx, edx
je 0x412656
movzx eax, word [ebp - 0x220]
xor eax, 0x20
movzx ecx, word [ebp - 0x3c]
cmp eax, ecx
je 0x412656
movzx edx, word [ebp - 0x220]
movzx eax, word [ebp - 0x3c]
cmp edx, eax
jge 0x412772
mov dword [ebp - 0x1624], 0xffffffff
jmp 0x41277c
mov dword [ebp - 0x1624], 1
mov ecx, dword [ebp - 0x1624]
mov dword [ebp - 0x1668], ecx
cmp dword [ebp - 0x1668], 0
jne 0x4127d1
push eax
sub eax, 0xfb36
and eax, 0x790c
add eax, 0x18061
pop eax
push edx
push edi
add esp, 4
xor edx, 0x79d3
sub edx, 0x134c0
xor edx, 0x11668
add edx, 0x15aad
pop edx
mov edx, dword [ebp - 0x518]
mov dword [ebp - 0x774], edx
jmp 0x412839
push ebx
call 0x4127e2
add byte [esi + 0x49], cl
cmp esi, dword [edi]
inc ecx
dec eax
dec ecx
aas
cmp eax, 0x4c48344
and ebx, 0xf28c
call 0x4127f9
add byte [edx + 0x3f], cl
dec ebp
xor al, byte [esi + 0x4d]
cmp al, 0x4d
add esp, 4
xor ebx, 0xec3d
pop ebx
mov eax, dword [ebp - 0x518]
mov ecx, dword [eax]
mov dword [ebp - 0x518], ecx
mov edx, dword [ebp - 0x518]
cmp edx, dword [ebp - 0xcd0]
je 0x41282f
mov eax, dword [ebp - 0x518]
cmp dword [eax + 0x30], 0
jne 0x4125fa
mov dword [ebp - 0x774], 0
Function at 0x408b98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x408ba7
pop dword [ebp - 0x4c]
mov eax, 0x408ba7
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3c137
push 0
mov eax, 0x317a4f42
add eax, 0xcec782d2
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0xb848ff72
sub ecx, 0xb848bcaf
xor edi, edi
add edi, eax
mov esi, 0x4a3fa962
add esi, 0xb603b69e
add esi, dword [ebp - 0x4c]
mov ebx, 0x2b8b8c5b
add ebx, 0x86a84bbc
add dword [ebp - 0x10], ecx
mov edx, dword [esi]
mov dword [ebp - 0x3c], 0x71eaebce
sub edx, ebx
mov dword [ebp - 0x28], 0xa5fc78e0
mov dword [edi], edx
xor dword [ebp - 0x40], 0xa3210569
add edi, 0xf75292f0
add edi, 0x8ad6d14
add esi, 4
loop 0x408c03
add eax, 0xfe06f62
add eax, 0xf0208e7d
mov ebx, eax
add eax, 0xbccb0b65
add eax, 0x4334f4a0
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x45d450
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x36000]
push edi
jmp 0x45d46a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45d471
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45d460
mov eax, 1
add ebx, ebx
jne 0x45d483
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45d478
jne 0x45d494
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45d478
xor ecx, ecx
sub eax, 3
jb 0x45d4a8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45d51a
mov ebp, eax
add ebx, ebx
jne 0x45d4b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45d4c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45d4e4
inc ecx
add ebx, ebx
jne 0x45d4d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45d4c5
jne 0x45d4e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45d4c5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45d504
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45d4f5
jmp 0x45d466
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45d504
add edi, ecx
jmp 0x45d466
pop esi
lea edi, [esi + 0x5b000]
mov eax, dword [edi]
or eax, eax
je 0x45d563
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5d22c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5d2b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45d521
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5d2bc]
or eax, eax
je 0x45d55d
mov dword [ebx], eax
add ebx, 4
jmp 0x45d53e
call dword [esi + 0x5d2b8]
mov ebp, dword [esi + 0x5d2c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45d597
sub esp, 0xffffff80
jmp 0x4017e0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402f7c
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403658
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x459024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4036f0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4036d0
xor eax, eax
push ebp
push 0x4036c9
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 0x40370c
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 0x4036d0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x459024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x459024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4044e4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x525048], 0
je 0x404545
cmp word [0x52521c], 0xd7b2
jne 0x40450d
cmp dword [0x525224], 0
jbe 0x40450d
mov eax, 0x525218
call dword [0x525234]
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 0x40456c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x459030], 0
jne 0x404561
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408040
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4080d0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4080d0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408083
test edx, 3
jne 0x408072
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40807d
jmp 0x408083
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408083
cmp dword [ecx - 8], 1
je 0x40808d
mov edx, ebx
or edx, 3
call fcn.00404db0
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 0x40809f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404664

Function at 0x4080dc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40816c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40816c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40811f
test edx, 3
jne 0x40810e
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408119
jmp 0x40811f
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40811f
cmp dword [ecx - 8], 1
je 0x408129
mov edx, ebx
or edx, 3
call fcn.00404db0
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 0x40813b
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404664

Function at 0x40b350
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 0x40b389
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404754
jmp 0x40b392
mov eax, ebx
mov edx, esi
call fcn.004046b8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b8c8
mov eax, dword [0x524578]
cmp byte [eax], 0
je 0x40bacc
mov eax, dword [0x524384]
call fcn.00403020
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.00408ae8
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 0x40bb14
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bb02
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x52432c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5277f4]
call fcn.00405860
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 0x40c360
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 0x40c436
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004046fc
lea eax, [ebp - 4]
call fcn.00404b78
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b28
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c420
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c419
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.00404b28
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c403
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c448
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c403
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 0x40c420
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c43d
lea eax, [ebp - 4]
call fcn.00404664
ret
Function at 0x41af84
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x528300
cmp dword [edi], 0
jne 0x41b000
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x5282fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x459ad8
mov ecx, 2
call fcn.00402e7c
mov edx, 0x41af5c
lea eax, [esi + 5]
call fcn.0041af7c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041af7c
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 0x41afd5
mov dword [0x5282fc], 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 0x41d524
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.00404b28
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d57c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x524694]
mov dl, 1
mov eax, dword [0x41d048]
call fcn.0040bc10
call fcn.004040ac
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d150
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 0x41e3d8
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 0x41e3de
ret
Function at 0x428c4c
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.00404664
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x428c9a
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.004048d4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42cd1c
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 0x42ce4f
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 [0x41d0a8]
call fcn.0041d178
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x42ce25
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d218
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.004048d4
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x42ce64
call fcn.00404974
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d27c
lea ecx, [ebp - 4]
mov edx, 0x42cea0
mov eax, dword [ebp - 0xc]
call fcn.0041d4ac
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d618
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42ce08
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x42ceac
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 [0x45a430]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ce0f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x42cefc
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 0x42cf43
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42cf26
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42cf37
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x42cf43
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x431a34
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 [0x528534], 0
je 0x431b7d
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x524518]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x431b7d
mov eax, dword [0x528538]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x528534]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x431b4c
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x528534]
call fcn.0041406c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x431b44
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x431b44
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x431b44
mov eax, dword [ebp - 0x14]
call fcn.0043bc58
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x431b44
push ebp
call fcn.004319f0
pop ecx
test al, al
jne 0x431b44
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403a4c
test al, al
je 0x431b44
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.00403a4c
cmp byte [ebp - 1], 0
je 0x431b44
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x431b44
mov edx, dword [ebp - 0x14]
mov eax, dword [0x528538]
call fcn.00431160
inc edi
dec ebx
jne 0x431a99
mov eax, dword [0x528538]
cmp dword [eax + 8], 0
jle 0x431b64
mov eax, dword [0x528538]
call fcn.00431218
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x431b7d
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00431854
pop ecx
test al, al
jne 0x431b7d
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