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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx - 4]
jle 0x4a598a
mov ecx, dword [ebp + 8]
sub ecx, ebx
push esi
mov dword [ebp + 8], ecx
push edi
nop word [eax + eax]
mov esi, dword [ecx + ebx]
lea ebx, [ebx + 4]
mov ecx, eax
mov edi, esi
and edi, 0xffff00ff
and ecx, 0xffff00ff
add edi, ecx
mov edx, esi
movzx ecx, ax
and edx, 0xff00
add edx, ecx
and eax, 0xff00ffff
mov ecx, dword [ebp + 8]
xor edi, edx
and esi, 0xff00ff00
and edi, 0xff00ff
add eax, esi
xor eax, edi
sub dword [ebp + 0x10], 1
mov dword [ebx - 4], eax
jne 0x4a5940
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4a5990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jle 0x4a5a03
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
sub ecx, eax
sub dword [ebp + 0x14], eax
push ebx
push esi
mov dword [ebp + 0xc], ecx
push edi
nop word [eax + eax]
mov ebx, dword [ecx + eax]
lea eax, [eax + 4]
mov esi, dword [eax - 4]
mov ecx, ebx
and ecx, 0xffff00ff
mov edi, esi
and edi, 0xffff00ff
mov edx, esi
add edi, ecx
and edx, 0xff00
movzx ecx, bx
and esi, 0xff00ff00
add edx, ecx
and ebx, 0xff00ffff
mov ecx, dword [ebp + 0x14]
xor edi, edx
and edi, 0xff00ff
add ebx, esi
xor edi, ebx
sub dword [ebp + 0x10], 1
mov dword [ecx + eax - 4], edi
mov ecx, dword [ebp + 0xc]
jne 0x4a59b0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4a6200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp + 8], 0
lea eax, [ebx + eax*4]
mov edi, eax
sub edi, ebx
add edi, 3
shr edi, 2
cmp ebx, eax
cmova edi, ecx
test edi, edi
je 0x4a6274
push esi
mov esi, dword [ebp + 0x10]
nop
mov edx, dword [ebx]
lea esi, [esi + 2]
mov ecx, edx
lea ebx, [ebx + 4]
shr ecx, 0x10
mov eax, edx
shr eax, 0xd
xor cl, al
mov eax, edx
and cl, 7
shr eax, 0x10
xor cl, al
mov eax, edx
mov byte [esi - 2], cl
mov ecx, edx
shr ecx, 5
shr eax, 3
xor cl, al
shr edx, 5
mov eax, dword [ebp + 8]
and cl, 0x1f
xor cl, dl
inc eax
mov byte [esi - 1], cl
mov dword [ebp + 8], eax
cmp eax, edi
jb 0x4a6230
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4a6280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp + 8], 0
lea eax, [edi + eax*4]
mov ebx, eax
sub ebx, edi
add ebx, 3
shr ebx, 2
cmp edi, eax
cmova ebx, ecx
test ebx, ebx
je 0x4a62eb
push esi
mov esi, dword [ebp + 0x10]
nop
mov edx, dword [edi]
lea esi, [esi + 2]
mov ecx, edx
lea edi, [edi + 4]
shr ecx, 0x10
mov eax, edx
shr eax, 0xc
xor cl, al
mov eax, edx
shr eax, 0x10
and cl, 0xf
xor cl, al
mov eax, edx
shr eax, 0x1c
xor al, dl
mov byte [esi - 2], cl
and al, 0xf
xor al, dl
mov byte [esi - 1], al
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, ebx
jb 0x4a62b0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x15960fb5
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x478e5aa6
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push str.E5C53971_D80E_4500_BE0D_761BF3CD8457
push 1
push 0
mov dword [0x513f78], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x513f80], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401048
push dword [0x513f80]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x513f80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40105d
push 0
push 0x401061
push 0
push 0x65
push esi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 1
pop eax
pop esi
ret 0x10

Function at 0x4018f1
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x209], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x40193a
lea eax, [ebp - 0x208]
push 0x410094
push eax
call edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x104]
push 0x410120
push eax
call edi
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40197a
xor eax, eax
jmp 0x401a0a
cmp byte [ebp - 0x31c], 0x2e
je 0x4019d9
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x104]
push eax
call edi
cmp dword [ebp - 0x348], 0x10
jne 0x4019ba
lea eax, [ebp - 0x104]
push eax
call fcn.004018f1
jmp 0x4019d9
lea eax, [ebp - 0x104]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x348]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40197a
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401a29
test al, 0x10
je 0x401a29
push 1
pop eax
jmp 0x401a2b
xor eax, eax
ret 4
Function at 0x401a2e
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp edi, 0xffffffff
je 0x401a65
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp + 0x10], eax
jbe 0x401a6a
or eax, 0xffffffff
jmp 0x401ad1
push ebx
push esi
push esi
mov dword [ebp - 4], esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 0xc]
push esi
mov ebx, 0x100000
push eax
mov esi, 0x413f78
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
test eax, eax
je 0x401ac4
cmp dword [ebp + 0xc], 0
jbe 0x401ac4
lea eax, [ebp - 0xc]
push 0
push eax
push dword [ebp + 0xc]
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
push 0
add dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push dword [ebp + 8]
jmp 0x401a92
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401ad5
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push edi
push eax
push 0x100000
push 0x413f78
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401b21
cmp word [0x413f78], 0x5a4d
jne 0x401b21
mov ecx, dword [0x413fb4]
cmp dword [ecx + 0x413f78], 0x4550
je 0x401b26
or eax, 0xffffffff
jmp 0x401b51
push esi
xor eax, eax
movzx esi, word [ecx + 0x413f7e]
cmp esi, edi
jle 0x401b50
lea edx, [ecx + 0x414080]
mov ecx, dword [edx + 4]
add ecx, dword [edx]
cmp ecx, eax
jbe 0x401b45
mov eax, ecx
add edx, 0x28
inc edi
movsx ecx, di
cmp ecx, esi
jl 0x401b3a
pop esi
pop edi
leave
ret
Function at 0x401b54
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x44
pop esi
xor edi, edi
push esi
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.00407a60
mov ebx, dword [ebp + 8]
add esp, 0xc
cmp dword [0x513f7c], edi
mov dword [ebp - 0x54], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x401b8c
push str.__AUTOPATCH
push ebx
call esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401ba7
push 0x410124
push ebx
call esi
push dword [ebp + 0xc]
push ebx
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401bf3
cmp dword [ebp + 0x10], edi
je 0x401bde
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp + 0xc]
jmp 0x401bf6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401bfb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push esi
mov ebx, 0x100000
push eax
mov esi, 0x413f78
push ebx
push esi
push dword [ebp + 8]
call edi
test eax, eax
je 0x401c60
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x401c60
lea ecx, [ecx + 0x413f78]
mov eax, esi
cmp ecx, esi
jbe 0x401c53
mov edx, dword [eax]
add eax, 4
add dword [ebp - 4], edx
cmp eax, ecx
jb 0x401c47
lea eax, [ebp - 8]
push 0
push eax
push ebx
push esi
push dword [ebp + 8]
jmp 0x401c2e
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402383
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14038
call fcn.00408250
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407e68
push 0x410168
push dword [ebp + 0x14]
call fcn.0040801e
add esp, 0x14
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4024c0
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00407a60
push 0x38
push str.1.1.3
lea eax, [ebp - 0x38]
push 0xfffffffffffffff1
push eax
mov dword [ebp - 0x14], 0x40254d
mov dword [ebp - 0x18], 0x40253c
call fcn.004026b0
mov edi, dword [ebp + 0x10]
add esp, 0x1c
mov esi, 0xa000
push 1
pop ebx
test edi, edi
jbe 0x4024c4
push dword [ebp + 8]
cmp edi, esi
jbe 0x402408
push esi
jmp 0x402409
push edi
lea eax, [ebp - 0x14038]
push ebx
push eax
call fcn.00407d80
and dword [ebp - 8], 0
and dword [ebp - 0x24], 0
lea ecx, [ebp - 0x14038]
add esp, 0x10
mov dword [ebp - 0x38], ecx
sub edi, eax
lea ecx, [ebp - 0xa038]
mov dword [ebp - 0x34], eax
test eax, eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], esi
jbe 0x402480
cmp dword [ebp - 0x28], 0
jne 0x402465
push dword [ebp + 0xc]
lea eax, [ebp - 0xa038]
push esi
push ebx
push eax
call fcn.00407b15
lea eax, [ebp - 0xa038]
add esp, 0x10
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.004027c0
pop ecx
test eax, eax
pop ecx
jl 0x4024a4
cmp eax, ebx
je 0x402480
cmp dword [ebp - 0x34], 0
ja 0x40243f
mov eax, esi
sub eax, dword [ebp - 0x28]
je 0x4023f6
push dword [ebp + 0xc]
push ebx
push eax
lea eax, [ebp - 0xa038]
push eax
call fcn.00407b15
add esp, 0x10
jmp 0x4023f6
lea eax, [ebp - 0x38]
push eax
call fcn.00402660
push dword [ebp + 0xc]
call fcn.00407c2d
pop ecx
pop ecx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x402535
lea eax, [ebp - 0xa038]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], 0
jne 0x4024f6
push dword [ebp + 0xc]
lea eax, [ebp - 0xa038]
push esi
push ebx
push eax
call fcn.00407b15
lea eax, [ebp - 0xa038]
add esp, 0x10
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push 4
push eax
call fcn.004027c0
pop ecx
test eax, eax
pop ecx
je 0x4024d0
sub esi, dword [ebp - 0x28]
je 0x402520
push dword [ebp + 0xc]
lea eax, [ebp - 0xa038]
push ebx
push esi
push eax
call fcn.00407b15
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
call fcn.00402660
push dword [ebp + 0xc]
call fcn.00407c2d
pop ecx
mov al, bl
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x402558
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push esi
lea eax, [ebp - 0x12c]
push dword [ebp + 8]
push eax
call fcn.00407ac3
lea eax, [ebp - 0x12c]
push 0x5c
push eax
call fcn.004075b0
add esp, 0x10
mov esi, eax
test esi, esi
je 0x4025cb
lea eax, [ebp]
cmp esi, eax
jae 0x4025cb
and byte [esi], 0
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4025b7
lea eax, [ebp - 0x12c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4025c7
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.004075b0
pop ecx
pop ecx
jmp 0x402582
xor eax, eax
jmp 0x4025ce
push 1
pop eax
pop esi
leave
ret 4
Function at 0x40c6fd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x413818
cmp edx, dword [eax]
je 0x40c71f
add eax, 8
inc ecx
cmp eax, 0x4138a8
jl 0x40c710
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x413818]
jne 0x40c84d
mov eax, dword [0x513f90]
cmp eax, 1
je 0x40c827
test eax, eax
jne 0x40c750
cmp dword [0x4115d4], 1
je 0x40c827
cmp edx, 0xfc
je 0x40c84d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c787
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407c90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004081d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40c7ca
lea eax, [ebp - 0x1a4]
push eax
call fcn.004081d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f6e8
push edi
call fcn.00407f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407c90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407ca0
lea eax, [ebp - 0xa0]
push 0x40f6c8
push eax
call fcn.00407ca0
push dword [esi + 0x41381c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407ca0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d5fd
add esp, 0x2c
pop edi
jmp 0x40c84d
lea eax, [ebp + 8]
lea esi, [esi + 0x41381c]
push 0
push eax
push dword [esi]
call fcn.004081d0
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]
pop esi
leave
ret
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x403f59
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x403f68
pop dword [ebp - 0x50]
mov eax, 0xb6536c2
add eax, 0xf4db08a6
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x1b658e6
sub dword [ebp - 0x60], 0xb364139b
mov dword [ebp - 0x5c], 0x10d8fc80
add dword [ebp - 0x5c], 0x215a4fc5
mov dword [ebp - 0x58], 0xe8a6c5f7
add dword [ebp - 0x58], 0x63a57e37
mov dword [ebp - 0x54], 0x67085280
sub dword [ebp - 0x54], 0x67085280
lea eax, [ebp - 0x60]
push eax
mov eax, 0x6401833e
add eax, 0x9c3f4d16
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x25ea0572
add dword [ebp - 0x60], 0x4e8863e4
mov dword [ebp - 0x5c], 0x87154601
sub dword [ebp - 0x5c], 0x45a8e48c
mov dword [ebp - 0x58], 0x96231de7
add dword [ebp - 0x58], 0xcd4c4e85
mov dword [ebp - 0x54], 0x82094f57
sub dword [ebp - 0x54], 0x82094f57
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3c190
push 0
call eax
mov ecx, 0x25c30e72
sub ecx, 0x25c2bc70
xor esi, esi
add esi, eax
mov edx, 0xd56e21c3
add edx, 0x2ad38e3d
add edx, dword [ebp - 0x50]
mov edi, 0x31d2d66b
add edi, 0x1782e335
add dword [ebp - 0x3c], 0xd0c6a25b
mov ebx, dword [edx]
sub ebx, edi
xor dword [ebp - 0x10], 0xefd07b0b
mov dword [esi], ebx
sub dword [ebp - 0x44], 0x1ab970dc
add esi, 4
add edx, 0x3c4ad5e5
add edx, 0xc3b52a1f
loop 0x404087
add eax, 0x13adb
mov ebx, eax
add eax, 0x8ba03149
sub eax, 0x8ba03144
mov ecx, 0xa30cda6c
add ecx, 0x5d332594
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x409770
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a84b
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.0045f372
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4097f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045cf50
mov eax, dword [eax]
push 0x49a1f0
push eax
call fcn.0044faf4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045f5fd
test bl, bl
je 0x4097f2
push 0x49a1f0
lea ecx, [esp + 0xc]
call fcn.0045f98d
push 0x49dd5c
lea ecx, [esp + 0xc]
call fcn.0045f98d
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 0x40982e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045f5fd
jmp 0x4098f9
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 0x4098b2
lea edx, [esp + 0x7c]
push 0x49dd58
push edx
call fcn.0044faf4
add esp, 8
test eax, eax
je 0x4098b2
lea eax, [esp + 0x7c]
push 0x49dd54
push eax
call fcn.0044faf4
add esp, 8
test eax, eax
je 0x4098b2
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 0x409842
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.0045f5fd
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 0x40a0f0
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 0x40a152
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 0x40a160
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a8cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a42c0]
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 0x40a298
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40a1c6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045f5fd
xor eax, eax
jmp 0x40a30f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045f73a
push esi
lea ecx, [esp + 0xc]
call fcn.0045f9c9
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x49dd94
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40a2ed
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040a0f0
test eax, eax
jne 0x40a2ed
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.0040a0f0
test eax, eax
jne 0x40a2ed
lea eax, [esp + 0x14]
push 0x49dd70
push eax
call fcn.00450b30
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a2cc
lea ecx, [esp + 0x14]
push 0x49dd6c
push ecx
call fcn.00450ab0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a2cc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40a2cf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045f6ea
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40a1de
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045f5fd
xor eax, eax
jmp 0x40a30f
mov byte [esi], 0
push 0x49dd68
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.0045f5fd
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