joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b031
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [esp], eax
push edx
push 0xb6110358
pop edx
and edx, 0x48484350
jmp 0x46d244
rol edx, 0x19
add edx, 0x6045031d
xchg dword [esp], edx
jmp 0x48fa49
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
cld
invalid
jmp dword [ecx]
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c

Function at 0x47663c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
rol byte [edi], 0xe9
pop ebx
ja 0x4765f5
add al, ch
inc esp
int 0xff
invalid
call fcn.0047333e
xchg dword [esp], eax
pop eax
push ebx
push ecx
call fcn.0044fd9b
loopne 0x4765ee
push ebx
push ds
call fcn.00453a7f
jne 0x47664a
test dword [edi], edi
push ebp
add al, 0xf0
mov dh, 0x9c
call fcn.00453a7f
inc ecx
mov edx, ebx
mov eax, 0xa0731c37
pop esi
and esi, 0x9ca9114
add esi, 0x64b5b8ee
jmp 0x478348
call fcn.00476516
dec edi
xor dh, byte [ebx - 0x359729e5]
rol dword [edi], 1
jmp 0x48f9f1
jmp 0x477620
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0048eb08

Function at 0x477f00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jmp 0x45138b
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
jmp 0x47fa95
xchg dword [esp], eax
pop eax
call fcn.00476086
mov byte [ebp - 0xa], al
jae 0x4513a2
mov eax, dword [ebp - 4]
cmp byte [eax], 0
jne 0x48ef5f
jmp 0x450210
cmp byte [eax], 0
jne 0x48ef5f
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x489334
jmp fcn.0048ef5b
Function at 0x48a350
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.0048d5c0
mov fs, word [ecx + edx*8]
inc ebx
push ebp
add al, 0xd0
push ebp
jmp 0x49532d
jg 0x48283d
popfd
push ebp
mov ebp, esp
call fcn.00475ccf
test eax, 0x9feebb35
jmp 0x489cd4
call fcn.0047ae5a
retf 0x4d10
jmp 0x48ba9e
Function at 0x40141e
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x124]
push edi
mov edi, dword [esp + 0x128]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or eax, 9
push eax
push dword [esp + 0x12c]
push dword [esp + 0x12c]
call fcn.00405fa1
test eax, eax
jne 0x401527
xor ebp, ebp
test byte [esp + 0x128], 2
je 0x401493
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x401503
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x4014ce
test edi, edi
jne 0x401503
push dword [esp + 0x128]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141e
test eax, eax
jne 0x4014d8
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014a6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.0040653c
test eax, eax
jne 0x401514
push dword [esp + 0x124]
push dword [esp + 0x124]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x401527
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x401527
push 0
push esi
push dword [esp + 0x12c]
push dword [esp + 0x12c]
call eax
pop edi
pop esi
pop ebp
add esp, 0x110
ret 0xc
Function at 0x402f57
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x50
mov ecx, dword [esp + 0x54]
mov eax, 0x795de0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x6c]
mov ebx, 0x8000
test edi, edi
cmovne ebx, dword [esp + 0x70]
xor esi, esi
test edi, edi
cmovne eax, edi
mov dword [esp + 0x10], eax
test ecx, ecx
js 0x402f93
mov eax, dword [0x7a2c78]
add eax, ecx
push eax
call fcn.00402f40
push 4
lea eax, [esp + 0x70]
push eax
push dword [0x40a010]
call fcn.0040659e
test eax, eax
je 0x403151
mov eax, dword [esp + 0x6c]
test eax, eax
jns 0x4030f9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [0x40b540], esi
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x6c]
and eax, 0x7fffffff
mov byte [0x40b528], 0xb
mov ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x6c], ecx
jbe 0x4030f1
mov ebp, 0x4000
cmp ecx, ebp
cmovl ebp, ecx
push ebp
push 0x791de0
call fcn.00402f2a
test eax, eax
je 0x403151
sub dword [esp + 0x6c], ebp
mov dword [0x40b51c], ebp
mov ebp, dword [esp + 0x10]
mov dword [0x40b518], 0x791de0
push 0x40b518
mov dword [0x40b520], ebp
mov dword [0x40b524], ebx
call fcn.00406a8d
mov dword [esp + 0x1c], eax
test eax, eax
js 0x4030f5
mov eax, dword [0x40b520]
sub eax, ebp
mov dword [esp + 0x64], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x7a2d14], 1
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
je 0x4030ad
sub eax, dword [esp + 0x70]
cmp eax, 0xc8
ja 0x403071
test ecx, ecx
jne 0x4030ad
mov eax, dword [esp + 0x14]
push eax
push 0x64
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [esp + 0x24]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push 0
call fcn.004059f0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4030e9
test edi, edi
jne 0x4030ce
push eax
push ebp
push dword [esp + 0x70]
call fcn.0040665d
test eax, eax
je 0x403139
mov eax, dword [esp + 0x64]
jmp 0x4030da
mov ebp, dword [0x40b520]
sub ebx, eax
mov dword [esp + 0x10], ebp
add esi, eax
cmp dword [esp + 0x1c], 4
jne 0x40301e
jmp 0x4030f1
test ecx, ecx
jg 0x402fe9
mov eax, esi
jmp 0x403154
push 0xfffffffffffffffc
jmp 0x403153
test edi, edi
jne 0x40313d
test eax, eax
jle 0x4030f1
mov ebp, 0x791de0
cmp eax, ebx
mov edi, ebx
cmovl edi, eax
push edi
push ebp
call fcn.00402f2a
test eax, eax
je 0x403151
push edi
push ebp
push dword [esp + 0x70]
call fcn.0040665d
test eax, eax
je 0x403139
mov eax, dword [esp + 0x6c]
add esi, edi
sub eax, edi
mov dword [esp + 0x6c], eax
test eax, eax
jg 0x403106
jmp 0x4030f1
push 0xfffffffffffffffe
jmp 0x403153
mov esi, dword [esp + 0x70]
cmp eax, esi
cmovl esi, eax
push esi
push edi
call fcn.00402f2a
test eax, eax
jne 0x4030f1
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x10
Function at 0x40315e
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x40317d
mov eax, dword [0x40b510]
test eax, eax
je 0x403175
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40b510], 0
ret
cmp dword [0x40b510], 0
je 0x40318e
push 0
call fcn.00405f0e
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x7a2c20]
jbe 0x4031c1
push 0
push 0x403424
push 0
push 0x6f
push dword [0x7a2414]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x40b510], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x405b18
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405b32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x405b38
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x408550
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov word [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x408540
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405ba6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405bb0
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
je 0x405baa
xor eax, eax
jmp 0x405bb0
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 4
Function at 0x405ea1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
lea eax, [ebp - 0x120]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
ja 0x405edb
test eax, eax
je 0x405edb
lea eax, [ebp + eax - 0x120]
cmp byte [eax - 1], 0x5c
je 0x405ee1
mov ecx, 0x4082a0
jmp 0x405ee6
lea eax, [ebp - 0x120]
mov ecx, 0x4082a1
push dword [ebp + 8]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x405f3c
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405f5f
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405fcf
pop ecx
pop ecx
inc dword [0x7a2cf0]
ret 8

Function at 0x405fcf
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x7a1268], 0x4c554e
mov ebp, 0x7a1268
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
je 0x40601b
push 1
push 0
push esi
call fcn.00406571
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x4060fb
cmp eax, ebx
jg 0x4060fb
push ebx
mov esi, 0x7a0e68
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x4060fb
cmp eax, ebx
jg 0x4060fb
push esi
push ebp
push str._s_s_r_n
push 0x7a0a68
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x7a2c30]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405bb4
push 4
push 0xc0000000
push esi
call fcn.00406571
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4060fb
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4060f4
push esi
push edi
push ebx
call fcn.0040659e
test eax, eax
je 0x4060f4
push str._Rename__r_n
push edi
call fcn.0040677d
test eax, eax
jne 0x406100
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x7a0a68
lea eax, [ecx + edi]
push eax
call fcn.004062ef
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.0040665d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x408714
add eax, 0xa
push eax
call fcn.0040677d
mov ecx, eax
test ecx, ecx
je 0x4060c5
lea edx, [edi + esi]
jmp 0x40611f
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406119
sub ecx, edi
inc ecx
jmp 0x4060c7
Function at 0x4061ca
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.004067e4
mov edi, eax
cmp edi, 0xffffffff
je 0x40620d
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x4061ee
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4061f4
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4061fd
xor eax, eax
inc eax
jmp 0x40620f
test byte [ebp + 0xc], 4
jne 0x40620d
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop ebp
ret 8

Function at 0x406278
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x7a0668
push ebx
call fcn.00406761
push ebx
call fcn.0040680c
mov esi, eax
test esi, esi
je 0x4062e8
push esi
call fcn.00406944
test byte [0x7a2c2c], 0x80
je 0x4062ae
mov al, byte [esi]
test al, al
je 0x4062e8
cmp al, 0x5c
je 0x4062e8
sub esi, ebx
jmp 0x4062c6
call fcn.00406214
test eax, eax
je 0x4062c0
test byte [eax], 0x10
je 0x4062e8
push ebx
call fcn.00406919
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
cmp eax, esi
jg 0x4062b2
call fcn.0040619d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4062e8
xor eax, eax
inc eax
jmp 0x4062ea
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x406311
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x7a0220], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x7a0220
xor eax, eax
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406350
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x406354
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x150
push ebx
mov ebx, dword [esp + 0x15c]
push esi
mov esi, dword [esp + 0x15c]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406278
mov dword [esp + 0x18], eax
test bl, 8
je 0x406396
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2ce8], eax
jmp 0x406530
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x18], ebp
je 0x4063b3
test eax, eax
je 0x40651f
test bl, 2
je 0x4064e9
push esi
push 0x7a0268
call fcn.00406761
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4063d6
push str..
push 0x7a0268
call ebp
jmp 0x4063dc
push esi
call fcn.00406919
cmp byte [esi], 0
jne 0x4063ea
cmp byte [0x7a0268], 0x5c
jne 0x4063f2
push 0x4082a0
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [esi + eax]
lea eax, [esp + 0x20]
mov dword [esp + 0x10], ebp
push eax
push 0x7a0268
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x4064d7
lea ebp, [esp + 0x4c]
push 0x3f
mov eax, ebp
push eax
call fcn.0040623b
cmp byte [eax], 0
je 0x406444
cmp byte [esp + 0x150], 0
lea eax, [esp + 0x150]
cmove eax, ebp
mov ebp, eax
cmp byte [ebp], 0x2e
jne 0x40645b
mov al, byte [ebp + 1]
test al, al
je 0x4064b2
cmp al, 0x2e
jne 0x40645b
cmp byte [ebp + 2], 0
je 0x4064b2
push ebp
mov ebp, dword [esp + 0x14]
push ebp
call fcn.00406761
test byte [esp + 0x20], 0x10
je 0x40647f
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x4064b6
push ebx
push esi
call fcn.00406354
jmp 0x4064b6
push edi
push esi
call fcn.004061ca
test eax, eax
jne 0x4064a8
test edi, edi
je 0x4064a0
push esi
push 0xfffffffffffffff1
call fcn.004059f0
push 0
push esi
call fcn.00405f3c
jmp 0x4064b6
inc dword [0x7a2ce8]
jmp 0x4064b6
push esi
push 0xfffffffffffffff2
call fcn.004059f0
jmp 0x4064b6
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40641d
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
je 0x40652f
cmp dword [esp + 0x1c], 0
mov byte [ebp - 1], 0
je 0x40651f
push esi
call fcn.00406214
test eax, eax
je 0x40652f
push esi
call fcn.0040619d
mov eax, edi
or eax, 1
push eax
push esi
call fcn.004061ca
test eax, eax
jne 0x406527
test edi, edi
je 0x40651f
push esi
push 0xfffffffffffffff1
call fcn.004059f0
push 0
push esi
call fcn.00405f3c
jmp 0x40652f
inc dword [0x7a2ce8]
jmp 0x40652f
push esi
push 0xffffffffffffffe5
call fcn.004059f0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x150
ret 8

Function at 0x406571
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc
Function at 0x4065cd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x400
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405fa1
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x40663d
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov byte [edi + 0x3ff], 0
pop esi
jne 0x40663d
cmp dword [ebp + 0x18], 1
je 0x406640
cmp dword [ebp + 0x18], 2
je 0x406640
mov byte [edi], 0
pop edi
leave
ret 0x14

Function at 0x406645
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

Function at 0x4066a8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add byte [ebp + 0xa], dl
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4066e7
test edi, edi
jne 0x4066b3
mov byte [esi], al
jmp 0x4066e9
mov eax, esi
pop edi
pop esi
pop ebp
ret 8

Function at 0x4067e4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406806
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x406a21
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a17ac], 0
push esi
jne 0x406a5b
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x406a32
mov dword [ecx*4 + 0x7a17a8], edx
inc ecx
cmp ecx, 0x100
jl 0x406a2d
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x406a85
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x7a17a8]
inc esi
sub edx, 1
jne 0x406a6d
not ecx
mov eax, ecx
pop esi
ret 0xc
Function at 0x401284
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
je 0x401303
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x401303
xor eax, eax
xor ebx, ebx
mov word [esi], ax
lea eax, [ebp - 8]
push eax
push 1
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401303
mov eax, dword [ebp + 0xc]
push edi
lea edi, [eax + eax]
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
push esi
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4012e8
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0xc]
jae 0x4012fa
xor ecx, ecx
mov word [esi + eax*2], cx
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [edi + esi - 2], ax
jmp 0x4012e6
xor al, al
jmp 0x4012f4

Function at 0x402714
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
mov ebx, ecx
mov esi, dword [edi]
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 8]
mov dword [edi + 0x16c], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x170], eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp ecx, dword [edi + 0x174]
jne 0x4027bb
cmp eax, dword [edi + 0x178]
jne 0x4027bb
push dword [ebx + 0x18]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call esi
push dword [ebx + 0x1c]
movzx eax, ax
shr eax, 0xf
mov dword [ebp + 8], eax
call esi
movzx esi, ax
mov eax, dword [ebp + 8]
shr esi, 0xf
cmp eax, dword [edi + 0x17c]
jne 0x43c2ef
cmp dword [ebp + 0xc], 0
je 0x40279a
mov dword [edi + 0x17c], eax
cmp esi, dword [edi + 0x180]
jne 0x43c35b
cmp dword [ebp + 0xc], 0
je 0x4027b2
mov dword [edi + 0x180], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 1
mov dword [edi + 0x174], ecx
mov dword [edi + 0x178], eax
jl 0x402760
jmp 0x43c2de
push eax
push ecx
push edi
push 0xfffffffffffffff5
mov ecx, ebx
call fcn.00486786
jmp 0x402760
cmp dword [ebp + 0xc], 1
jl 0x40278e
cmp byte [edi + 0x1a8], 0
je 0x40278e
mov ecx, ebx
push dword [ebp - 4]
push dword [ebp - 8]
push edi
test eax, eax
je 0x43c317
push 0xfffffffffffffff9
jmp 0x43c347
push 0xfffffffffffffff8
call fcn.00486786
cmp byte [edi + 0x184], 0
je 0x43c34c
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, ebx
push dword [ebp - 4]
push dword [ebp - 8]
push edi
test eax, 0x1000000
je 0x43c345
push 0xfffffffffffffffa
jmp 0x43c347
push 0xfffffffffffffff4
call fcn.00486786
mov eax, dword [ebp + 8]
mov byte [edi + 0x184], 0
jmp 0x40278e
cmp dword [ebp + 0xc], 1
jl 0x4027a6
mov ecx, ebx
push dword [ebp - 4]
push dword [ebp - 8]
push edi
test esi, esi
je 0x43c376
push 0xfffffffffffffff7
jmp 0x43c378
push 0xfffffffffffffff6
call fcn.00486786
jmp 0x4027a6