joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aa590
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x550548]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
cmp byte [esi + 0x20], 0
jne 0x4aa5d7
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x18], 1
jbe 0x4aa613
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x4aace0
push 0
push 0
call fcn.004f804c
xor ecx, ecx
mov dword [esi + 0x10], eax
add esp, 0x18
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0x60]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [esi + 0x44]
call sub.gdiplus.dll_GdipCreateFromHDC
mov edi, dword [ebp - 0x10]
mov esi, eax
mov dword [ebp - 0x1c], edi
push 0xffffffffffffffff
push edi
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipGraphicsClear
test eax, eax
cmovne esi, eax
mov eax, dword [ebp - 0x14]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push 0
push 0
push dword [eax + 4]
push edi
call sub.gdiplus.dll_GdipDrawImageRectI
test eax, eax
push ebx
cmovne esi, eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x4c]
call fcn.004429e0
mov ecx, esi
call fcn.004aa9a0
push edi
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b1125
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4c6750
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c62c0
Function at 0x4c7980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515ac3
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x550548]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], 0
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004353d0
mov eax, dword [ebp - 0x80]
add esp, 8
test eax, eax
je 0x4c7b93
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x4c7b93
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x4c7b93
push eax
call esi
test eax, eax
je 0x4c7b93
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x201
push dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004c78d0
mov esi, dword [ebp - 0x90]
test eax, eax
jne 0x4c7b84
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004eec50
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c7b84
mov eax, dword [ebp - 0x84]
cmp eax, 1
je 0x4c7aab
cmp eax, 2
jne 0x4c7b84
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x4c7acc
test cl, 1
jne 0x4c7b84
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x4c7ad2
jmp 0x4c7b84
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x4c7b84
lea ecx, [ebp - 0x78]
call fcn.004c5d40
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x78]
call fcn.004c5e00
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0x20]
push 0x52d700
push eax
call fcn.004c7f90
push 0x2a
push dword [ebp - 0x78]
call fcn.004c62c0
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x84], eax
jne 0x4c7b7c
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4c7b32
sub edx, ecx
lea eax, [ebp - 0x74]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.004c5b90
push dword [0x550620]
lea eax, [ebp - 0x74]
push dword [0x55061c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4c7b6d
mov dword [edi], 1
lea ecx, [ebp - 0x78]
call fcn.004c50b0
mov edi, 1
jmp 0x4c7b86
lea ecx, [ebp - 0x78]
call fcn.004c50b0
xor edi, edi
test esi, esi
je 0x4c7b95
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4c7b95
xor edi, edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x80]
call esi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ae250
mov esp, ebp
pop ebp
ret
Function at 0x4c7bd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x4c7be5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c7bf0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4cad80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4cadf1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4cadbf
cmp eax, 2
jne 0x4caddb
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4cadeb
test ecx, ecx
je 0x4cade6
test cl, 1
jne 0x4caddb
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4cadeb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x501255
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x501294
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x501294
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x501294
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x501294
cmp dword [ecx + 0x74], 0xe
jbe 0x501294
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x5052a0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x532130
push 0x532128
push str.FlsAlloc
push 0x1f
call fcn.0050519b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5052d4
push dword [ebp + 8]
mov ecx, esi
call dword [0x519700]
call esi
jmp 0x5052da
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x50531e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x532140
push 0x532138
push str.FlsGetValue
push 0x21
call fcn.0050519b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x505355
push dword [ebp + 8]
mov ecx, esi
call dword [0x519700]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x50535d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x532148
push 0x532140
push str.FlsSetValue
push 0x22
call fcn.0050519b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x505397
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x519700]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x507d0b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x550548]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x507d56
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00507ea6
test al, al
jne 0x507d50
sub edx, 2
cmp edx, edi
jne 0x507d36
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x507d78
lea eax, [edi + 2]
cmp edx, eax
je 0x507d78
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00507c57
add esp, 0x10
jmp 0x507e72
push esi
lea ecx, [ebp - 0x255]
call fcn.00507ea6
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x507dbb
push dword [ebp - 0x25c]
jmp 0x507d68
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x507df8
cmp word [ebp - 0x226], 0
je 0x507e19
cmp word [ebp - 0x226], ax
jne 0x507df8
cmp word [ebp - 0x224], 0
je 0x507e19
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00507c57
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x507e65
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x507dd2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x507e4d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x507e72
push 0x507a87
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0050d950
add esp, 0x10
jmp 0x507e42
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ae250
leave
ret
Function at 0x10af653
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
not ebx
mov edi, edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor edx, edx
movzx eax, word [ecx + 0x14]
push ebx
lea eax, [eax + ecx + 0x18]
push esi
movzx esi, word [ecx + 6]
test esi, esi
push edi
jbe 0x10af692
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x10af68a
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x10af694
inc edx
add eax, 0x28
cmp edx, esi
jb 0x10af67a
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10d98a8
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov edi, edi
lea ebp, [ebp + 0x1c48895a]
push ebp
mov ebp, esp
rdtsc
sub esp, 0x2c
push edi
mov dword [0x113b250], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
cmp dword [0x113b2bc], 0
mov dword [0x113ab04], eax
jne 0x10d98f5
push 0x1131f7c
xchg ebx, edi
call fcn.0109dc97
test eax, eax
jl 0x10d9a96
mov dword [0x113b2bc], 1
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x100003c]
mov ecx, dword [eax + 0x1000050]
mov eax, dword [ebp - 0x24]
lea edi, [eax - 0x80000000]
mov edx, 0x1000000
add ecx, edx
cmp ecx, edi
jb 0x10d9924
lea eax, [ecx - 0x80000000]
add eax, 0xffff
and eax, 0xffff0000
mov ecx, dword [ebp - 0x20]
mov dword [0x1138ed4], eax
lea edi, [ecx - 0x80000000]
cmp edi, edx
jb 0x10d9945
mov ecx, 0x81000000
mov dword [0x1131d88], ecx
xor ecx, ecx
mov word [0x1131d88], cx
mov ecx, dword [0x1131d88]
sub ecx, eax
shr ecx, 0x10
xor eax, eax
test eax, eax
mov dword [0x113a5f0], ecx
jl 0x10d9a96
mov ecx, dword [0x11390f8]
jmp 0x10d9999
imul ecx, ecx, 0x18
add ecx, 0x1131a30
xchg ebx, edi
push ecx
call fcn.0109dc97
test eax, eax
jl 0x10d999e
mov ecx, dword [0x11390f8]
inc ecx
mov dword [0x11390f8], ecx
cmp ecx, 1
jb 0x10d9977
test eax, eax
mov dword [ebp - 4], eax
jl 0x10d9a96
mov eax, dword [0x10f17c8]
test eax, eax
je 0x10d9a38
lea eax, [ebp - 8]
push eax
mov ecx, dword [0x10f17c8]
mov eax, dword [0x10d4588]
push 0x40
imul eax, ecx
push eax
push 0x1109044
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10d99f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10d99eb
mov eax, 0x54f
test eax, eax
jle 0x10d9a3a
and eax, 0xffff
or eax, 0x80070000
jmp 0x10d9a3a
xor edx, edx
mov eax, dword [0x10f17c8]
test eax, eax
jbe 0x10d9a38
mov ecx, dword [0x10d4588]
mov eax, dword [0x10d4588]
imul eax, edx
lea eax, [eax + 0x1109044]
test ecx, ecx
je 0x10d9a23
mov byte [eax], 0
inc eax
dec ecx
jne 0x10d9a1c
mov eax, dword [0x10f17c8]
mov dword [edx*4 + 0x113b06c], 0x23ad
inc edx
cmp edx, eax
jb 0x10d9a04
xor eax, eax
test eax, eax
jl 0x10d9a96
mov ecx, dword [0x1138bf0]
test ecx, ecx
je 0x10d9a81
mov eax, dword [0x1138be8]
lea edx, [eax + 0x1138c18]
add eax, dword [0x1138bec]
mov dword [0x1138c00], edx
mov dword [0x1138bf8], 0x1138c18
lea edx, [eax + 0x1138c18]
mov dword [0x1138c08], edx
lea eax, [eax + ecx + 0x1138c18]
mov dword [0x1138c10], eax
lea edi, [ebp - 4]
and dword [ebp - 4], 0
mov eax, 0x91fcb7f6
mov eax, dword [ebp - 4]
test eax, eax
jl 0x10d9a96
xor eax, eax
pop edi
leave
ret
Function at 0x11497e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x1149805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x1149878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x114983a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x114986d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x114986b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x1149831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x11497fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x40a662
Capabilities:
Encode data using xor

Disassembly:
dec edx
add eax, 0x3339394d
lcall 0x2411, 0x4a950f3f
lea ebp, [ebp + 0x1e43056]
invalid
jl 0x40a602
mov al, byte [0x1a5e351c]
into
pushal
sbb cl, byte cs:[esi]
inc esp
iretd

Function at 0x4460ca
Capabilities:
Encode data using xor

Disassembly:
inc eax
dec eax
mov bh, 0x48
mov ebx, 0x495cda66
insd dword es:[edi], dx
sbb bl, ch
mov esi, 0xa89e1380
test al, 0x2e
inc edi

Function at 0x47483e
Capabilities:
Encode data using xor

Disassembly:
sub al, 0xd8
inc edi
leave
loopne 0x4747e1
xchg ebp, eax
or dword [edx + eax*8 - 0x53115f07], 0xd0dac1d4
mov al, byte [0xc1d4acee]
fcmovbe st(0), st(0)
clc
loop 0x47482e
mov eax, 0xc072659
xor al, 0x3b
and al, 0x7f
dec esp
cmovl ebp, dword [edi + 0x7c]
das
and al, 0x7a
lcall 0xf7a9, 0x98908599
jecxz 0x474845
ljmp 0xde89:0xe2e8dac7

Function at 0x4bd9f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c7478
cmp edx, dword [eax]
je 0x4bda12
add eax, 8
inc ecx
cmp eax, 0x4c7508
jl 0x4bda03
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c7478]
jne 0x4bdb40
mov eax, dword [0x4c9d1c]
cmp eax, 1
je 0x4bdb1a
test eax, eax
jne 0x4bda43
cmp dword [0x4c52c0], 1
je 0x4bdb1a
cmp edx, 0xfc
je 0x4bdb40
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bda7a
lea eax, [ebp - 0x1a4]
push 0x4c1b10
push eax
call fcn.004beb50
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bec40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bdabd
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bec40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c1b0c
push edi
call fcn.004bf600
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c1af0
push eax
call fcn.004beb50
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004beb60
lea eax, [ebp - 0xa0]
push 0x4c1aec
push eax
call fcn.004beb60
push dword [esi + 0x4c747c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004beb60
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c1ac4
push eax
call fcn.004bf572
add esp, 0x2c
pop edi
jmp 0x4bdb40
lea eax, [ebp + 8]
lea esi, [esi + 0x4c747c]
push 0
push eax
push dword [esi]
call fcn.004bec40
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 0x61002e30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x1c
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
mov edx, dword [ebp]
test edx, edx
setne byte [esp + 0xb]
cmp byte [esp + 0xb], 0
je 0x61002eb0
mov esi, ebx
mov edi, edx
cld
and eax, 0xff
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x61002e75
xor al, byte [eax + 0x61106b3c]
cmp al, byte [edi - 1]
jne 0x61002e80
test al, al
jne 0x61002e66
mov eax, 1
jmp 0x61002e82
xor eax, eax
test eax, eax
je 0x61002ea0
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
add esp, 0x1c
ret
mov eax, edx
call sym._cfree_4
mov esi, esi
lea edi, [edi]
test ebx, ebx
mov eax, 0x6110b474
je 0x61002ebb
mov eax, ebx
call sym._cstrdup_4
cmp byte [esp + 0xb], 0
mov dword [ebp], eax
je 0x61002e86
lea eax, [ebp + 0xc]
xor edx, edx
call sym._cfree_and_set_8
lea eax, [ebp + 0x10]
xor edx, edx
call sym._cfree_and_set_8
lea eax, [ebp + 4]
xor edx, edx
call sym._cfree_and_set_8
lea eax, [ebp + 8]
xor edx, edx
call sym._cfree_and_set_8
lea eax, [ebp + 0x18]
mov ebx, dword [esp + 0xc]
xor edx, edx
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
add esp, 0x1c
jmp sym._cfree_and_set_8
Function at 0x61006220
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0x10]
cmp byte [0x6110552d], 0
je 0x61006280
mov dword [esp], ebx
mov edx, 0x6110bed6
mov dword [esp + 4], edx
call sym.cygwin1.dll__strstr
test eax, eax
je 0x61006268
mov eax, dword [0x61105524]
mov word [eax + 0x10], 3
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], ebx
mov eax, str.cygheap
mov dword [esp + 4], eax
call sym.cygwin1.dll__strstr
test eax, eax
jne 0x61006253
lea esi, [esi]
mov dword [esp], str.CYGWIN_MISMATCH_OK
mov eax, 0x400
mov dword [esp + 8], eax
lea eax, [ebp - 0x408]
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GetEnvironmentVariableA
sub esp, 0xc
test eax, eax
jne 0x6100625e
movzx eax, word [ebp + 0xc]
cmp eax, esi
jne 0x610062ee
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp], 0x6110a820
mov dword [esp + 0x14], eax
mov eax, str._s_magic_number_mismatch_detected____p__p
mov dword [esp + 0xc], eax
mov eax, str.void_multiple_cygwin_problem_const_char__unsigned_int__unsigned_int_
mov dword [esp + 8], eax
mov eax, 0x8000
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp + 0xc], esi
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], ebx
mov dword [esp], str._s_mismatch_detected____p__p._nThis_problem_is_probably_due_to_using_incompatible_versions_of_the_cygwin_DLL._nSearch_for_cygwin1.dll_using_the_Windows_Start__Find_Search_facility_nand_delete_all_but_the_most_recent_version.__The_most_recent_version_should_nreside_in_x:cygwin_bin__where_x_is_the_drive_on_which_you_have_ninstalled_the_cygwin_distribution.__Rebooting_is_also_suggested_if_you_nare_unable_to_find_another_cygwin_DLL.
mov dword [esp + 8], eax
call sym.___api_fatal
nop
lea esi, [esi]
Function at 0x610068b0
Capabilities:
Delete file

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 0x65f4]
test eax, eax
jne 0x61006925
mov eax, 1
mov dword [edi + 0x65f4], eax
test byte [0x6110a820], 1
jne 0x610069ce
xor esi, esi
mov ebx, edi
jmp 0x610068ee
inc esi
add ebx, 0x104
cmp esi, 0x63
jg 0x61006925
cmp byte [esi + edi + 0x6590], 0
je 0x610068e2
mov dword [esp], ebx
call sub.KERNEL32.dll_DeleteFileA
sub esp, 4
test eax, eax
je 0x6100692c
test byte [0x6110a820], 1
jne 0x61006986
xor eax, eax
add ebx, 0x104
mov byte [esi + edi + 0x6590], al
inc esi
cmp esi, 0x63
jle 0x610068ee
add esp, 0x20
pop ebx
pop esi
pop edi
ret
call sub.KERNEL32.dll_GetLastError
mov edx, eax
xor eax, eax
cmp edx, 0x20
mov dword [edi + 0x65f4], eax
je 0x61006991
mov eax, dword [0x611630ec]
test byte [eax + 0x10], 4
je 0x61006950
cmp edx, 5
je 0x61006991
test byte [0x6110a820], 1
je 0x61006910
mov dword [esp + 0x10], ebx
mov ecx, str.Hmm__dont_know_what_to_do_with__s___E
mov dword [esp + 0xc], ecx
mov edx, str.void_delqueue_list::process_queue__
mov eax, 0x10
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x61006910
mov dword [esp + 0x10], ebx
mov ecx, str.Deleted__s
jmp 0x61006962
test byte [0x6110a820], 1
je 0x610068e2
mov dword [esp + 0x10], ebx
mov eax, str.Still_using__s
mov dword [esp + 0xc], eax
mov eax, str.void_delqueue_list::process_queue__
mov dword [esp + 8], eax
mov eax, 0x10
mov dword [esp + 4], eax
mov dword [esp], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610068e2
mov dword [esp], 0x6110a820
mov eax, str.Running_delqueue
mov esi, str.void_delqueue_list::process_queue__
mov dword [esp + 0xc], eax
mov ebx, 0x10
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610068dc

Function at 0x610102d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push edi
push esi
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
jmp 0x6101030d
lea edi, [ecx + 0x38]
mov esi, edx
cld
and eax, 0xff
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x610102fa
xor al, byte [eax + 0x61106b3c]
cmp al, byte [edi - 1]
jne 0x61010305
test al, al
jne 0x610102eb
mov eax, 1
jmp 0x61010307
xor eax, eax
test eax, eax
jne 0x61010316
mov ecx, dword [ecx]
test ecx, ecx
jne 0x610102e0
pop esi
xor eax, eax
pop edi
ret
pop esi
mov eax, ecx
pop edi
ret