joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405941
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x405b15
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x41bb00]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x405b15
test cl, 0x48
je 0x4059ac
cmp byte [eax + 5], 0xa
je 0x4059ac
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4059fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4059e6
call fcn.00406075
mov dword [eax], 9
call fcn.0040607e
mov dword [eax], esi
jmp 0x4059f6
cmp eax, 0x6d
je 0x405b15
push eax
call fcn.00406087
pop ecx
or eax, 0xffffffff
jmp 0x405b17
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x405b10
test eax, eax
je 0x405a25
cmp byte [ebx], 0xa
jne 0x405a25
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x405a2e
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x405b0a
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x405afa
cmp al, 0xd
je 0x405a60
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x405aec
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x405a7a
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x405a75
add dword [ebp + 0x10], 2
jmp 0x405ace
mov dword [ebp + 0x10], eax
jmp 0x405ae8
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405aa2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x405ae8
cmp dword [ebp - 0xc], 0
je 0x405ae8
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x405ac3
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x405ace
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x405aeb
cmp ebx, dword [ebp + 0xc]
jne 0x405ad3
cmp byte [ebp - 1], 0xa
jne 0x405ad3
mov byte [ebx], 0xa
jmp 0x405aeb
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004077fb
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x405aec
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x405a44
jmp 0x405b0a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x405b0a
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x405b17
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40661c
Capabilities:
Terminate process

Disassembly:
push 8
push 0x40d898
call fcn.0040446c
push 8
call fcn.00408a4e
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x41b42c], esi
jne 0x406650
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x41b428], esi
mov al, byte [ebp + 0x10]
mov byte [0x41b424], al
cmp dword [ebp + 0xc], edi
jne 0x40669a
cmp dword [0x41bc08], edi
je 0x40668a
mov eax, dword [0x41bc04]
sub eax, 4
mov dword [0x41bc04], eax
cmp eax, dword [0x41bc08]
jb 0x40668a
mov eax, dword [eax]
cmp eax, edi
je 0x40666b
call eax
jmp 0x40666b
push 0x410028
mov eax, 0x410020
call fcn.0040659a
pop ecx
push 0x410030
mov eax, 0x41002c
call fcn.0040659a
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4066cb
cmp dword [ebp + 0x10], edi
jne 0x4066d9
mov dword [0x41b42c], esi
push dword [ebp + 8]
call fcn.00406558
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4066d8
push 8
call fcn.00408999
pop ecx
ret
call fcn.004044a7
ret

Function at 0x40671f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x410044]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x410490]
je 0x406754
inc eax
cmp eax, 0x13
jb 0x406745
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x410490]
jne 0x40687a
mov eax, dword [0x41b3cc]
cmp eax, 1
je 0x406852
cmp eax, edx
jne 0x406784
cmp dword [0x410074], 1
je 0x406852
cmp ecx, 0xfc
je 0x40687a
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4067ba
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004072c0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00403c70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4067ee
mov eax, edi
push eax
call fcn.00403c70
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d544
push edi
call fcn.004073c0
add esp, 0x10
push edi
call fcn.00403c70
push dword [esi + 0x410494]
mov ebx, eax
call fcn.00403c70
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00407180
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004072c0
push edi
push ebx
call fcn.004072d0
push 0x40d540
push ebx
call fcn.004072d0
push dword [esi + 0x410494]
push ebx
call fcn.004072d0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004071bd
add esp, 0x2c
jmp 0x40687a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x410494]
push dword [esi]
call fcn.00403c70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00403c5e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4071bd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41b544], ebx
push esi
push edi
jne 0x40723d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x407278
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40dcdc
push edi
call esi
test eax, eax
mov dword [0x41b544], eax
je 0x407278
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41b548], eax
call esi
cmp dword [0x41b3ec], 2
mov dword [0x41b54c], eax
jne 0x40723d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41b554], eax
je 0x40723d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41b550], eax
mov eax, dword [0x41b550]
test eax, eax
je 0x407282
call eax
test eax, eax
je 0x407269
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41b554]
test eax, eax
je 0x407269
test byte [ebp - 8], 1
jne 0x407282
cmp dword [0x41b3f8], 4
jb 0x40727c
or byte [ebp + 0x12], 0x20
jmp 0x4072a1
xor eax, eax
jmp 0x4072b1
or byte [ebp + 0x12], 4
jmp 0x4072a1
mov eax, dword [0x41b548]
test eax, eax
je 0x4072a1
call eax
mov ebx, eax
test ebx, ebx
je 0x4072a1
mov eax, dword [0x41b54c]
test eax, eax
je 0x4072a1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41b544]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4075d2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x407600
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x407607
cmp ebx, dword [eax + 4]
jae 0x407607
xor eax, eax
jmp 0x4077f7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x407618
xor eax, eax
inc eax
jmp 0x4077f6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40762e
cmp ecx, edx
jae 0x407773
cmp dword [eax + 4], 0
je 0x407637
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40761f
cmp dword [ebp + 8], 0
je 0x407659
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x407773
cmp eax, esi
jae 0x407773
mov eax, dword [0x41b558]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40767e
cmp dword [esi*4 + 0x41b560], edi
je 0x407777
inc esi
cmp esi, eax
jl 0x40766c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4077f3
cmp dword [ebp - 8], 0x1000000
jne 0x4077f3
test byte [ebp - 0xc], 0xcc
je 0x4076fc
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4077f3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4077f3
cmp word [eax + 0x18], 0x10b
jne 0x4077f3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4077f3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4076fc
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4076fc
test byte [ecx + 0x27], 0x80
jne 0x407773
push 1
push 0x41b5a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x407610
mov ecx, dword [0x41b558]
test ecx, ecx
mov edx, ecx
jle 0x407730
lea eax, [ecx*4 + 0x41b55c]
cmp dword [eax], edi
je 0x407730
dec edx
sub eax, 4
test edx, edx
jg 0x407724
test edx, edx
jne 0x407761
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40773d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x407755
lea eax, [edx*4 + 0x41b560]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x407743
cmp ecx, 0x10
jge 0x407761
inc ecx
mov dword [0x41b558], ecx
push 0
push 0x41b5a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x407610
xor eax, eax
jmp 0x4077f6
test esi, esi
jle 0x407610
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x41b5a0
call ebx
test eax, eax
jne 0x407610
cmp dword [esi*4 + 0x41b560], edi
je 0x4077cd
mov eax, dword [0x41b558]
lea esi, [eax - 1]
test esi, esi
jl 0x4077bb
cmp dword [esi*4 + 0x41b560], edi
je 0x4077b7
dec esi
jns 0x4077ab
test esi, esi
jge 0x4077cb
cmp eax, 0x10
jge 0x4077c6
inc eax
mov dword [0x41b558], eax
lea esi, [eax - 1]
jmp 0x4077cd
je 0x4077e5
xor ecx, ecx
test esi, esi
jl 0x4077e5
lea eax, [ecx*4 + 0x41b560]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4077d3
push 0
push 0x41b5a0
call ebx
jmp 0x407610
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40791a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x410044]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x40794b
xor eax, eax
jmp 0x407ad4
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x41bb00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x407987
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0040a6e9
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x407a62
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x407aa0
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x4079eb
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4079dc
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4079bc
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407a2b
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x407a34
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4079ad
jmp 0x407a36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x407acf
cmp dword [ebp - 0x6c], edi
je 0x407aa0
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x407a95
call fcn.00406075
mov dword [eax], 9
call fcn.0040607e
mov dword [eax], esi
jmp 0x407aca
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407a8a
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x407a36
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x407a36
push dword [ebp - 0x6c]
call fcn.00406087
pop ecx
jmp 0x407aca
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x407ab8
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x407ab8
xor eax, eax
jmp 0x407ad2
call fcn.00406075
mov dword [eax], 0x1c
call fcn.0040607e
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x407ad2
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00403c5e
add ebp, 0x3a0
leave
ret
Function at 0x4099d8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push edi
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00409197
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040914c
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00409197
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040914c
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.00409197
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0040914c
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.00409187
dec esp
or eax, 0xa5806775
int3
Function at 0x40c04f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00407180
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40c0ea
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x41b3ec]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40c0ea
cmp eax, 1
je 0x40c10b
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40c0ea
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40c0b7
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40c0e6
xor eax, eax
inc eax
jmp 0x40c12a
cmp edi, eax
jae 0x40c0ee
xor eax, eax
jmp 0x40c12a
cmp eax, esi
jae 0x40c0f5
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x41b3ec]
jmp 0x40c10e
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46a77e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x4d5910
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x56aab8], 1
jge 0x4d597f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x4d5955
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x4d5955
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x4d5932
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x4d596b
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x4d5972
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x4d5a7d
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movdqa xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movdqa xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movdqa xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x4d5a4e
mov eax, dword [ebx + 8]
movdqu xmm0, xmmword [eax]
movdqa xmmword [ebp - 0x40], xmm0
movdqa xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movdqa xmmword [ebp - 0x20], xmm0
movdqa xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movdqa xmmword [ebp - 0x20], xmm0
movdqa xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movdqa xmmword [ebp - 0x40], xmm0
movdqa xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movdqa xmmword [ebp - 0x20], xmm0
movdqa xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x4d5a43
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x4d5a37
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x4d5a3e
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x4d5a7d
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x4d5a78
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x4d5a61
mov eax, dword [ebx + 8]
jmp 0x4d5a7d
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4d5a6f
xor eax, eax
jmp 0x4d5a7d
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x4d59a2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x100a1f5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor ebx, ebx
cmp dword [0x1037498], ebx
jne 0x100a204
xor eax, eax
jmp 0x100a262
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x10
call esi
mov edi, 0x8000
test di, ax
je 0x100a21d
xor ebx, ebx
inc ebx
push 0x11
call esi
test di, ax
je 0x100a229
or ebx, 2
push 0x12
call esi
test di, ax
je 0x100a235
or ebx, 4
mov esi, dword [0x1037490]
xor eax, eax
test esi, esi
jle 0x100a25e
mov edx, dword [0x1037498]
mov ecx, edx
cmp dword [ecx + 4], ebx
jne 0x100a256
mov edi, dword [ecx]
cmp edi, dword [esp + 0x10]
je 0x100a266
inc eax
add ecx, 0xc
cmp eax, esi
jl 0x100a249
xor eax, eax
pop edi
pop esi
pop ebx
ret 4
mov ecx, dword [0x10374a8]
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*4 + 8]
push dword [ecx + eax*4 + 4]
call fcn.01004c50
xor eax, eax
inc eax
jmp 0x100a260
Function at 0x100a58d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
test esi, esi
je 0x100a59d
mov ax, word [esi]
cmp ax, word [esi + 2]
jl 0x100a5a4
xor eax, eax
jmp 0x100a6ee
mov ecx, dword [ebp + 8]
movsx eax, ax
imul eax, eax, 0x16
mov dword [eax + esi + 0x10], ecx
movsx eax, word [esi]
mov ecx, dword [ebp + 0xc]
inc eax
imul eax, eax, 0x16
mov dword [eax + esi], ecx
movsx eax, word [esi]
mov ecx, dword [ebp + 0x10]
imul eax, eax, 0x16
push edi
push 0x26
push dword [ebp + 0x14]
mov dword [eax + esi + 0x1a], ecx
call fcn.01007321
mov edi, eax
test edi, edi
je 0x100a6b2
cmp dword [0x10394ec], 0
je 0x100a699
push ebx
push dword [ebp + 0x14]
call fcn.01029788
push dword [0x10394e8]
mov ebx, dword [sym.imp.msvcrt.dll_strstr]
push dword [ebp + 0x14]
mov dword [ebp + 0xc], eax
call ebx
test eax, eax
pop ecx
pop ecx
je 0x100a628
inc eax
lea edi, [eax + 1]
mov byte [eax], 0x26
add eax, 3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
mov al, byte [edi]
jmp 0x100a62d
xor eax, eax
mov al, byte [edi + 1]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
movsx ecx, word [esi]
mov edi, dword [ebp + 0x14]
imul ecx, ecx, 0x16
mov word [ecx + esi + 0x14], ax
push dword [0x10394ec]
push edi
call ebx
test eax, eax
pop ecx
pop ecx
pop ebx
je 0x100a65d
lea ecx, [eax + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0xc]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x100a682
test cl, cl
je 0x100a67e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x100a682
inc eax
inc eax
inc edi
inc edi
test cl, cl
jne 0x100a660
xor eax, eax
jmp 0x100a687
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100a6be
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
jmp 0x100a6be
xor eax, eax
mov al, byte [edi + 1]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
movsx ecx, word [esi]
imul ecx, ecx, 0x16
mov word [ecx + esi + 0x14], ax
jmp 0x100a6be
movsx eax, word [esi]
imul eax, eax, 0x16
and word [eax + esi + 0x14], 0
push dword [ebp + 0x14]
lea edi, [esi + 4]
push edi
call fcn.01009ea1
movsx ecx, word [esi]
push dword [ebp + 0x18]
imul ecx, ecx, 0x16
push edi
mov dword [ecx + esi + 8], eax
call fcn.01009ea1
movsx ecx, word [esi]
imul ecx, ecx, 0x16
mov dword [ecx + esi + 0xc], eax
inc word [esi]
xor eax, eax
inc eax
pop edi
pop ebp
ret 0x14