joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], eax
cmp esi, dword [ebp + 0x10]
jge 0x401191
mov eax, dword [ebp - 0x10]
push 3
pop edx
cmp eax, edx
mov dword [ebp - 0xc], edx
jge 0x401032
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov eax, 0x3d3d3d3d
lea edi, [ebp - 4]
stosw word es:[edi], ax
test ecx, ecx
stosb byte es:[edi], al
jle 0x401059
mov eax, dword [ebp + 8]
lea edi, [ebp - 4]
add esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, edx
rep movsb byte es:[edi], byte [esi]
mov cl, byte [ebp - 4]
mov al, cl
shr al, 2
test ebx, ebx
mov byte [ebp - 1], al
je 0x40108e
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x401096
mov eax, ebx
mov esi, dword [ebp + 0xc]
sub eax, dword [ebp - 8]
cdq
idiv edi
test edx, edx
jne 0x401099
mov byte [ebx + esi], 0xd
inc ebx
mov byte [ebx + esi], 0xa
inc ebx
add dword [ebp - 8], 2
jmp 0x401099
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
jmp 0x401099
mov esi, dword [ebp + 0xc]
movzx eax, byte [ebp - 1]
mov edx, dword [str.zvrnjfbZVRNJFB_:62._]
and cl, 3
shl cl, 4
mov al, byte [eax + edx]
mov byte [ebx + esi], al
mov al, byte [ebp - 3]
mov dl, al
inc ebx
shr dl, 4
add cl, dl
test ebx, ebx
je 0x4010df
test edi, edi
jle 0x4010df
mov eax, ebx
sub eax, dword [ebp - 8]
cdq
idiv edi
test edx, edx
jne 0x4010dc
mov byte [ebx + esi], 0xd
inc ebx
mov byte [ebx + esi], 0xa
inc ebx
add dword [ebp - 8], 2
mov al, byte [ebp - 3]
mov edx, dword [str.zvrnjfbZVRNJFB_:62._]
and al, 0xf
movzx ecx, cl
shl al, 2
mov cl, byte [ecx + edx]
mov byte [ebx + esi], cl
mov cl, byte [ebp - 2]
mov dl, cl
inc ebx
shr dl, 6
add al, dl
test ebx, ebx
mov byte [ebp - 1], al
je 0x401123
test edi, edi
jle 0x401123
mov eax, ebx
sub eax, dword [ebp - 8]
cdq
idiv edi
test edx, edx
jne 0x401123
mov byte [ebx + esi], 0xd
inc ebx
mov byte [ebx + esi], 0xa
inc ebx
add dword [ebp - 8], 2
movzx eax, byte [ebp - 1]
mov edx, dword [str.zvrnjfbZVRNJFB_:62._]
mov al, byte [eax + edx]
mov byte [ebx + esi], al
inc ebx
cmp dword [ebp - 0xc], 2
jg 0x40113f
mov byte [ebx + esi - 1], 0x3d
and cl, 0x3f
test ebx, ebx
je 0x401164
test edi, edi
jle 0x401164
mov eax, ebx
sub eax, dword [ebp - 8]
cdq
idiv edi
test edx, edx
jne 0x401164
mov byte [ebx + esi], 0xd
inc ebx
mov byte [ebx + esi], 0xa
inc ebx
add dword [ebp - 8], 2
movzx eax, cl
mov ecx, dword [str.zvrnjfbZVRNJFB_:62._]
mov al, byte [eax + ecx]
mov byte [ebx + esi], al
inc ebx
cmp dword [ebp - 0xc], 1
jg 0x40117f
mov byte [ebx + esi - 1], 0x3d
mov esi, dword [ebp - 0x14]
add esi, 3
sub dword [ebp - 0x10], 3
mov dword [ebp - 0x14], esi
jmp 0x401019
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x4058b1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push esi
lea ecx, [ebp - 0x18]
call fcn.0040174b
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040174e
mov esi, eax
test esi, esi
je 0x405967
lea eax, [ebp - 0x324]
push 0
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.004074db
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push 0x40f1d8
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push 0x40f1dc
push eax
call fcn.00407380
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call fcn.00407196
mov esi, eax
add esp, 0x40
test esi, esi
lea ecx, [ebp - 0x18]
jne 0x40596b
call fcn.00401808
xor eax, eax
jmp 0x4059bf
call fcn.00401808
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00403cbb
push esi
call fcn.0040780b
add esp, 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004046b3
pop ecx
test eax, eax
pop ecx
je 0x4059bd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403dfa
pop ecx
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x405e9a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 1
push str.BZr:
call fcn.00403434
pop ecx
pop ecx
push eax
push 0x40f244
push closesocket
call fcn.004044c0
lea eax, [ebp - 0x10c]
push eax
call fcn.00405c5a
movsx eax, byte [ebp - 0x10c]
mov bl, byte [ebp - 0x10a]
push eax
call fcn.004076ee
add esp, 0x1c
and dword [ebp - 8], 0
mov byte [ebp - 1], al
mov al, byte [ebp - 8]
add al, 0x61
cmp al, byte [ebp - 1]
je 0x405f44
and byte [ebp - 0x10a], 0
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
mov byte [ebp - 0x10a], bl
jne 0x405f44
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x405e42
push eax
call fcn.00403e11
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x405efe
xor eax, eax
pop ebx
leave
ret 4
Function at 0x40ed4e
Capabilities:
Encode data using xor

Disassembly:
push 0x40eae0
pop edi
sub esp, 4
mov dword [esp], edx
mov ebx, dword [esp]
add esp, 4
sub edx, edx
call fcn.0040ed7e
sub edx, ebx
xor dword [esi], edi
and edx, ebx
inc esi
and edx, edx
add edx, 0xc2c63fad
cmp esi, ecx
jne fcn.0040ed4e
sub edx, ebx
ret

Function at 0x4ca285
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4c9fca
and ebx, esi
mov ebx, 0x74b454f6
call fcn.004ca2c1
add ebx, 0x1bb512c8
sub esi, ebx
dec ebx
xor dword [edi], edx
and ebx, ebx
add edi, 1
and ebx, ebx
and ebx, esi
mov esi, esi
cmp edi, ecx
jne fcn.004ca285
or ebx, esi
and ebx, esi
and esi, esi
ret
Function at 0x40adc7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427d18]
jne 0x40add1
repz ret
jmp fcn.0040e24c

Function at 0x40ca52
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x427d18]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406ab4
and dword [ebp - 0x14], 0
cmp dword [0x429b04], 0
mov dword [ebp - 0x18], eax
jne 0x40cb05
push 0x404460
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40cbad
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x404454
push ebx
call edi
test eax, eax
je 0x40cbad
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x404444
push ebx
mov dword [0x429b04], eax
call edi
push eax
call esi
push 0x404430
push ebx
mov dword [0x429b08], eax
call edi
push eax
call esi
push 0x404414
push ebx
mov dword [0x429b0c], eax
call edi
push eax
call esi
mov dword [0x429b14], eax
test eax, eax
je 0x40cb05
push 0x4043fc
push ebx
call edi
push eax
call esi
mov dword [0x429b10], eax
mov eax, dword [0x429b10]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40cb5e
cmp dword [0x429b14], ecx
je 0x40cb5e
push eax
call esi
push dword [0x429b14]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40cb5e
test ebx, ebx
je 0x40cb5e
call edi
test eax, eax
je 0x40cb55
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40cb55
test byte [ebp - 8], 1
jne 0x40cb5e
or dword [ebp + 0x10], 0x200000
jmp 0x40cb91
mov eax, dword [0x429b08]
cmp eax, dword [ebp - 0x18]
je 0x40cb91
push eax
call esi
test eax, eax
je 0x40cb91
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40cb91
mov eax, dword [0x429b0c]
cmp eax, dword [ebp - 0x18]
je 0x40cb91
push eax
call esi
test eax, eax
je 0x40cb91
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x429b04]
call esi
test eax, eax
je 0x40cbad
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40cbaf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040adc7
leave
ret
Function at 0x423480
Capabilities:
Delete directory
Get common file path
Manipulate console buffer
Read file on windows
Set console window title

Disassembly:
mov eax, 0x1864
call fcn.0040e3a0
cmp dword [0x7adb8c], 0x37
jne 0x423572
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push 0x4047a8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
push 0
lea edx, [esp + 0xc68]
push edx
push 0x4047bc
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0x4047cc
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
lea eax, [esp + 8]
push eax
push 0x4047e4
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0x404808
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0
lea ecx, [esp + 0x468]
push ecx
push 0
push 0x404848
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
lea edx, [esp + 0x1064]
push edx
push 0
push 0x404870
push 0x404890
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 0
push 0
push 0x4048b4
push 0x4048e4
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov eax, dword [0x7aeb80]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x42ebdc]
mov byte [eax + esi], dl
add esp, 0x1864
ret
Function at 0x423710
Capabilities:
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7adb8c]
sub esp, 0x2dc
push ebx
push ebp
push esi
mov esi, dword [0x42ebdc]
shr eax, 3
push edi
test eax, eax
je 0x4238bf
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x423744
mov esi, dword [esp + 0x18]
cmp dword [0x7adb8c], 0x1c
jne 0x423761
lea eax, [esp + 0x34]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, dword [0x428310]
mov ecx, dword [0x428314]
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x28], edx
mov edx, dword [0x428318]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x42831c]
mov dword [esp + 0x14], eax
mov ebx, 0xc6ef3720
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], 0x20
jmp 0x4237a5
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x2c]
shl ecx, 4
add ecx, dword [esp + 0x24]
add eax, ebx
xor edx, ecx
xor edx, eax
sub edi, edx
mov ecx, edi
shl ecx, 4
mov dword [0x7adafc], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
cmp dword [0x7adb8c], 0x1be
lea ebp, [ebx + edi]
jne 0x4237fa
lea edx, [esp + 0x38]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x30]
cmp dword [0x7adb8c], 0x979
mov dword [0x7adb00], 0xff6b3619
mov dword [0x7adb04], 0xffffffff
jne 0x423836
lea eax, [esp + 0x98]
push eax
push 0x404538
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor esi, ebp
xor dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
mov eax, dword [0x7adb8c]
cmp eax, 0x93
je 0x423856
add ebx, 0x61c88647
dec dword [esp + 0x1c]
jne 0x4237a1
cmp eax, 0x8d4
jne 0x423872
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], edi
cmp dword [0x7adb8c], 0x17
jne 0x4238ae
push 0
push 0
push 0
push 0x404610
push 0x4046b0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea eax, [esp + 0x98]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x423740
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret
Function at 0x5ff11e
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x5ff13e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5ff12a
add dl, dl
jne 0x5ff149
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5ff19a
xor eax, eax
add dl, dl
jne 0x5ff156
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5ff23b
add dl, dl
jne 0x5ff165
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5ff170
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5ff17b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5ff186
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x5ff190
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x5ff135
mov eax, 1
add dl, dl
jne 0x5ff1a8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5ff1b3
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5ff19f
sub eax, ebx
mov ebx, 1
jne 0x5ff1e6
mov ecx, 1
add dl, dl
jne 0x5ff1cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x5ff1d7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5ff1c3
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5ff135
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x5ff1fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x5ff208
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5ff1f4
cmp eax, 0x7d00
jae 0x5ff22b
cmp eax, 0x500
jb 0x5ff226
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5ff135
cmp eax, 0x7f
ja 0x5ff22e
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5ff135
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x5ff25c
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x5ff135
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x4e411e
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x4e413e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4e412a
add dl, dl
jne 0x4e4149
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4e419a
xor eax, eax
add dl, dl
jne 0x4e4156
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4e423b
add dl, dl
jne 0x4e4165
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4e4170
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4e417b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4e4186
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x4e4190
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x4e4135
mov eax, 1
add dl, dl
jne 0x4e41a8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x4e41b3
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4e419f
sub eax, ebx
mov ebx, 1
jne 0x4e41e6
mov ecx, 1
add dl, dl
jne 0x4e41cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4e41d7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4e41c3
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4e4135
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x4e41fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4e4208
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x4e41f4
cmp eax, 0x7d00
jae 0x4e422b
cmp eax, 0x500
jb 0x4e4226
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4e4135
cmp eax, 0x7f
ja 0x4e422e
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4e4135
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4e425c
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x4e4135
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x410cd0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48d91b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0048174a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x410d52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047e8c4
mov eax, dword [eax]
push 0x581210
push eax
call fcn.00470764
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004819d5
test bl, bl
je 0x410d52
push 0x581210
lea ecx, [esp + 0xc]
call fcn.00481d65
push 0x584d98
lea ecx, [esp + 0xc]
call fcn.00481d65
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x410d8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004819d5
jmp 0x410e59
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x410e12
lea edx, [esp + 0x7c]
push 0x584d94
push edx
call fcn.00470764
add esp, 8
test eax, eax
je 0x410e12
lea eax, [esp + 0x7c]
push 0x584d90
push eax
call fcn.00470764
add esp, 8
test eax, eax
je 0x410e12
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x410da2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004819d5
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x411650
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4116b2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4116c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48d99b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x58c13c]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4117f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x411726
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004819d5
xor eax, eax
jmp 0x41186f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00481b12
push esi
lea ecx, [esp + 0xc]
call fcn.00481da1
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x584dd0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41184d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00411650
test eax, eax
jne 0x41184d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00411650
test eax, eax
jne 0x41184d
lea eax, [esp + 0x14]
push 0x584dac
push eax
call fcn.004717a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41182c
lea ecx, [esp + 0x14]
push 0x584da8
push ecx
call fcn.00471720
mov esi, eax
add esp, 8
test esi, esi
jne 0x41182c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41182f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00481ac2
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41173e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004819d5
xor eax, eax
jmp 0x41186f
mov byte [esi], 0
push 0x584da4
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004819d5
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x4221a0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x42220e
cmp si, 0x69
ja 0x42220e
add esi, 0xffd0
cmp si, 0x11
je 0x4221de
push 0x11
call edi
test ax, ax
jge 0x4221de
or esi, 0x2000
cmp si, 0x10
je 0x4221f3
push 0x10
call edi
test ax, ax
jge 0x4221f3
or esi, 0x4000
cmp si, 0x12
je 0x422208
push 0x12
call edi
test ax, ax
jge 0x422208
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42221b
mov esi, 0xbd
jmp 0x4221cf
cmp si, 0x6e
jne 0x422228
mov esi, 0xbe
jmp 0x4221cf
cmp si, 0x6f
jne 0x4221c9
mov esi, 0xbf
jmp 0x4221cf

Function at 0x423950
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x59c8e0]
xor edx, edx
cmp eax, edx
jne 0x423976
xor eax, eax
mov byte [eax + 0x59c7e0], al
inc eax
cmp eax, 0x100
jl 0x42395e
mov dword [0x59c8e0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x59c7e0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x423a07
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4239da
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4239a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x423a80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x423ad3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x423aba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret