joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404bb0
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Read pipe
Set environment variable
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.00410530
mov eax, dword [0x462254]
mov ecx, dword [0x461ce4]
shr eax, 3
test eax, eax
jbe 0x404cc8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x462254], 0x959
jne 0x404cae
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1808]
push eax
push 0
call edi
mov ecx, dword [ebp - 4]
push ecx
call fcn.004049b0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408bac
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449540]
jne 0x408bb6
repz ret
jmp fcn.0040c8fb

Function at 0x40b8a3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409ae6
and dword [ebp - 4], 0
cmp dword [0x44f2f4], 0
mov ebx, eax
jne 0x40b954
push 0x4024bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ba05
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024b0
push edi
call esi
test eax, eax
je 0x40ba05
push eax
call fcn.00409a74
mov dword [esp], 0x4024a0
push edi
mov dword [0x44f2f4], eax
call esi
push eax
call fcn.00409a74
mov dword [esp], 0x40248c
push edi
mov dword [0x44f2f8], eax
call esi
push eax
call fcn.00409a74
mov dword [esp], 0x402470
push edi
mov dword [0x44f2fc], eax
call esi
push eax
call fcn.00409a74
pop ecx
mov dword [0x44f304], eax
test eax, eax
je 0x40b954
push 0x402458
push edi
call esi
push eax
call fcn.00409a74
pop ecx
mov dword [0x44f300], eax
mov eax, dword [0x44f300]
cmp eax, ebx
je 0x40b9ac
cmp dword [0x44f304], ebx
je 0x40b9ac
push eax
call fcn.00409aef
push dword [0x44f304]
mov esi, eax
call fcn.00409aef
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b9ac
test edi, edi
je 0x40b9ac
call esi
test eax, eax
je 0x40b9a3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b9a3
test byte [ebp - 0xc], 1
jne 0x40b9ac
or dword [ebp + 0x10], 0x200000
jmp 0x40b9e5
mov eax, dword [0x44f2f8]
cmp eax, ebx
je 0x40b9e5
push eax
call fcn.00409aef
pop ecx
test eax, eax
je 0x40b9e5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b9e5
mov eax, dword [0x44f2fc]
cmp eax, ebx
je 0x40b9e5
push eax
call fcn.00409aef
pop ecx
test eax, eax
je 0x40b9e5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f2f4]
call fcn.00409aef
pop ecx
test eax, eax
je 0x40ba05
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ba07
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x598d60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12b000]
push edi
jmp 0x598d7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x598d81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x598d70
mov eax, 1
add ebx, ebx
jne 0x598d93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x598da4
jne 0x598dc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x598dc3
dec eax
add ebx, ebx
jne 0x598db0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x598d88
add ebx, ebx
jne 0x598dbf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x598e15
xor ecx, ecx
sub eax, 3
jb 0x598ddb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x598e4a
sar eax, 1
mov ebp, eax
jmp 0x598de6
add ebx, ebx
jne 0x598de6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x598db4
inc ecx
add ebx, ebx
jne 0x598df4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x598db4
add ebx, ebx
jne 0x598e01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x598df6
jne 0x598e12
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x598df6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x598e34
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x598e26
jmp 0x598d76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x598e34
add edi, ecx
jmp 0x598d76
pop esi
mov edi, esi
mov ecx, 0x996a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x598e52
cmp byte [edi], 0x13
jne 0x598e52
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x598e57
lea edi, [esi + 0x194000]
mov eax, dword [edi]
or eax, eax
je 0x598ecf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x202864]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2029cc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x598e84
mov ecx, edi
jns 0x598eb3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2029d0]
or eax, eax
je 0x598ec9
mov dword [ebx], eax
add ebx, 4
jmp 0x598ea1
call dword [esi + 0x2029e0]
mov ebp, dword [esi + 0x2029d4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x598f03
sub esp, 0xffffff80
jmp 0x4b0a26
Function at 0x40363c
Capabilities:
Query or enumerate registry value

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

Function at 0x4044c8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45f048], 0
je 0x404529
cmp word [0x45f21c], 0xd7b2
jne 0x4044f1
cmp dword [0x45f224], 0
jbe 0x4044f1
mov eax, 0x45f218
call dword [0x45f234]
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 0x404550
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45d02c], 0
jne 0x404545
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405ad0
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 0x405d00
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b53
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d00
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405b53
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d1c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405bdc
xor eax, eax
push ebp
push 0x405bd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040590c
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 0x405bba
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405d3c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405bba
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 0x405bdc
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 0x405cf6
cmp byte [ebp - 0xd], 0
jne 0x405c23
cmp byte [ebp - 0x12], 0
je 0x405cf6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405c3c
dec ebx
cmp byte [ebx], 0x2e
je 0x405c4b
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405c3b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405cf6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405c88
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 0x405cf6
cmp byte [ebp - 0xd], 0
je 0x405cf6
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 0x405cf6
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 0x40809c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40812c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40812c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4080df
test edx, 3
jne 0x4080ce
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4080d9
jmp 0x4080df
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4080df
cmp dword [ecx - 8], 1
je 0x4080e9
mov edx, ebx
or edx, 3
call fcn.00404d94
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 0x4080fb
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404648

Function at 0x408138
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4081c8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4081c8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40817b
test edx, 3
jne 0x40816a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408175
jmp 0x40817b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40817b
cmp dword [ecx - 8], 1
je 0x408185
mov edx, ebx
or edx, 3
call fcn.00404d94
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 0x408197
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404648

Function at 0x40b524
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 0x40b55d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404738
jmp 0x40b566
mov eax, ebx
mov edx, esi
call fcn.0040469c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba9c
mov eax, dword [0x45eb84]
cmp byte [eax], 0
je 0x40bca0
mov eax, dword [0x45e990]
call fcn.00403004
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.00408cbc
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 0x40bce8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bcd6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45e938]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4617f4]
call fcn.004058b4
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 0x40c534
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 0x40c60a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004046e0
lea eax, [ebp - 4]
call fcn.00404b5c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b0c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c5f4
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c5ed
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.00404b0c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c5d7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c61c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c5d7
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 0x40c5f4
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c611
lea eax, [ebp - 4]
call fcn.00404648
ret
Function at 0x41b1a4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x462300
cmp dword [edi], 0
jne 0x41b220
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4622fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45dad4
mov ecx, 2
call fcn.00402e7c
mov edx, 0x41b17c
lea eax, [esi + 5]
call fcn.0041b19c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b19c
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 0x41b1f5
mov dword [0x4622fc], 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 0x41d74c
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.00404b0c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d7a4
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45eca8]
mov dl, 1
mov eax, dword [0x41d270]
call fcn.0040bde4
call fcn.00404090
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d378
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 0x41e600
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 0x41e606
ret
Function at 0x42c848
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.00404648
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42c896
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.004048b8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430918
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 0x430a4b
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 [0x41d2d0]
call fcn.0041d3a0
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x430a21
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d440
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.004048b8
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x430a60
call fcn.00404958
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d4a4
lea ecx, [ebp - 4]
mov edx, 0x430a9c
mov eax, dword [ebp - 0xc]
call fcn.0041d6d4
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d7ec
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x430a04
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x430aa8
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 [0x45e49c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430a0b
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x430af8
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 0x430b3f
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x430b22
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x430b33
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x430b3f
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x435840
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 [0x462534], 0
je 0x435989
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x45eb20]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x435989
mov eax, dword [0x462538]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x462534]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x435958
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x462534]
call fcn.0041428c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x435950
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x435950
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x435950
mov eax, dword [ebp - 0x14]
call fcn.0043fb58
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x435950
push ebp
call fcn.004357fc
pop ecx
test al, al
jne 0x435950
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403a30
test al, al
je 0x435950
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.00403a30
cmp byte [ebp - 1], 0
je 0x435950
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x435950
mov edx, dword [ebp - 0x14]
mov eax, dword [0x462538]
call fcn.00434f6c
inc edi
dec ebx
jne 0x4358a5
mov eax, dword [0x462538]
cmp dword [eax + 8], 0
jle 0x435970
mov eax, dword [0x462538]
call fcn.00435024
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x435989
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00435660
pop ecx
test al, al
jne 0x435989
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