joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a2ba3c
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.45a3999f
mov esi, dword [ebp + 0xc]
lea eax, [esi + 0x30]
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov eax, dword [ebp + 0x1c]
mov dword [eax], ebx
cmp byte [esi + 0x20], bl
je 0x45a2baa0
mov eax, dword [ebp + 8]
push dword [eax + 0x28c]
lea eax, [esi + 0x28]
push eax
call fcn.45a39e5f
test al, al
je 0x45a2bbc4
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x45a2ba9d
push eax
call fcn.45a2b880
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x20], bl
mov ecx, dword [ebp + 0x10]
jmp 0x45a2bbad
mov eax, dword [ecx]
cmp eax, ebx
jne 0x45a2babc
cmp dword [esi + 0x1c], ebx
jne 0x45a2bc1c
jmp 0x45a2bbab
cmp dword [ebp + 0x18], 4
je 0x45a2bb72
cmp dword [ebp + 0x18], 8
je 0x45a2bb72
mov cl, byte [esi + 0x18]
neg cl
sbb ecx, ecx
and ecx, 0xc000fff0
add ecx, 0x40010210
cmp eax, 2
mov edi, ecx
jne 0x45a2baed
or edi, 1
cmp dword [ebp - 8], ebx
je 0x45a2bafd
push dword [ebp - 8]
call sub.NETAPI32.dll_NetApiBufferFree
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
je 0x45a2bb0d
push dword [ebp - 4]
call fcn.45a2b880
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
push eax
call fcn.45a39bee
lea eax, [ebp - 8]
push eax
push edi
push ebx
push ebx
push dword [esi + 0xc]
push ebx
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
mov edi, eax
cmp edi, ebx
jne 0x45a2bbfe
lea eax, [ebp - 0x14]
push eax
call fcn.45a39bee
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push ebx
push 0xff
add eax, 4
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.45a3a260
mov edi, eax
cmp edi, ebx
jne 0x45a2bbc9
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x45a2bb8a
add eax, 4
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.45a3a3ec
test eax, eax
jne 0x45a2bba8
jmp 0x45a2bb8a
push ebx
push 0x10000
push dword [esi + 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.45a3a260
mov edi, eax
cmp edi, ebx
jne 0x45a2bbc9
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x14]
push eax
call fcn.45a2b7ac
mov edi, eax
cmp edi, ebx
je 0x45a2bc10
cmp edi, 0x54b
jne 0x45a2bbc9
mov ecx, dword [ebp + 0x10]
inc dword [ecx]
cmp dword [ecx], 2
jbe 0x45a2baa8
mov byte [esi + 0x20], 1
add esi, 0x28
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, 0x54b
cmp dword [ebp - 8], ebx
je 0x45a2bbd6
push dword [ebp - 8]
call sub.NETAPI32.dll_NetApiBufferFree
lea eax, [ebp - 0x14]
push eax
call fcn.45a39bee
cmp dword [ebp - 4], ebx
je 0x45a2bbec
push dword [ebp - 4]
call fcn.45a2b880
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x18
cmp edi, 0x2751
je 0x45a2bbb6
cmp edi, 0x54b
jne 0x45a2bbc9
jmp 0x45a2bbb6
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x1c], ecx
mov dword [ebp - 4], eax
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
xor edi, edi
jmp 0x45a2bbc9
Function at 0x45a2f179
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x45a3f2e4]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 4], eax
je 0x45a2f2ab
cmp esi, ebx
je 0x45a2f2ab
mov dword [esi], ebx
mov ax, word [edi]
mov word [ebp - 0xc], ax
mov ax, word [edi + 2]
push edi
mov dword [ebp - 0x21c], 0x104
mov word [ebp - 0x214], bx
mov word [ebp - 0xa], ax
mov word [ebp - 8], bx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.45a2f137
cmp eax, ebx
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
mov dword [ebp - 0x218], eax
jne 0x45a2f20d
lea eax, [ebp - 0x214]
push eax
call ebx
pop ecx
mov dword [ebp - 0x21c], eax
jmp 0x45a2f214
cmp eax, 0xea
jne 0x45a2f28b
add edi, 4
push edi
call ebx
mov ecx, dword [ebp - 0x21c]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x21c], eax
add eax, eax
mov dword [esp], 0x45a13144
push eax
call fcn.45a3991f
test eax, eax
mov dword [esi], eax
jne 0x45a2f24b
mov dword [ebp - 0x218], 8
jmp 0x45a2f294
cmp dword [ebp - 0x218], 0xea
jne 0x45a2f270
lea ecx, [ebp - 0x21c]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.45a2f137
mov dword [ebp - 0x218], eax
jmp 0x45a2f280
lea ecx, [ebp - 0x214]
push ecx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push edi
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
cmp dword [ebp - 0x218], 0
je 0x45a2f2a3
mov eax, dword [esi]
test eax, eax
je 0x45a2f2a3
push eax
call fcn.45a39953
and dword [esi], 0
mov eax, dword [ebp - 0x218]
jmp 0x45a2f2ae
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.45a3a970
leave
ret 8
Function at 0x45a2f2c2
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x45a3f2e4]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x218], ecx
je 0x45a2f3bf
cmp ecx, esi
je 0x45a2f3bf
push ebx
push edi
push 0x105
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
mov word [ebp - 8], si
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x210]
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
jmp 0x45a2f377
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x45a2f397
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x45a2f397
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x45a2f397
lea eax, [ebp - 0x210]
push eax
call edi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x210]
push esi
push eax
mov dword [ebp - 0x214], esi
call ebx
test eax, eax
je 0x45a2f334
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.45a3a970
leave
ret 0xc
Function at 0x45a2f828
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 0x80000000
mov dword [ebp - 8], 3
je 0x45a2f883
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.45a2f552
push eax
call fcn.45a39eb5
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x45a2f953
cmp dword [ebp - 0xc], esi
je 0x45a2f875
mov eax, 0xb7
jmp 0x45a2f953
mov dword [ebp - 0xc], 0x40000000
mov dword [ebp - 8], 1
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
push edi
push dword [ebp + 8]
call ebx
mov edi, eax
mov dword [esp], 0x45a13154
call ebx
lea eax, [edi + eax + 1]
add eax, eax
mov dword [esp], 0x45a1314c
push eax
call fcn.45a3991f
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x10], edi
jne 0x45a2f8bf
push 0xe
pop eax
jmp 0x45a2f951
mov esi, dword [ebp + 8]
push esi
call ebx
mov ecx, eax
shl ecx, 1
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x45a13154
push esi
call ebx
push dword [ebp + 8]
lea eax, [eax + eax + 2]
mov dword [ebp + 8], eax
call ebx
mov ebx, dword [ebp - 0x10]
lea edi, [ebx + eax*2]
mov eax, dword [ebp + 8]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push esi
push dword [ebp - 8]
push esi
push 7
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x45a2f935
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
mov dword [ebp - 4], eax
jne 0x45a2f948
mov dword [ebp - 4], 0x32
jmp 0x45a2f948
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], esi
je 0x45a2f948
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.45a39953
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x45a3a970
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45a3f2e4]
jne 0x45a3a981
test ecx, 0xffff0000
jne 0x45a3a981
ret
jmp fcn.45a3a98b

Function at 0x45a3adfd
Capabilities:
Access pe header
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword fs:[0x18]
push ebx
push esi
mov esi, dword [ecx + 0x30]
mov ecx, dword fs:[0x18]
mov ecx, dword [ecx + 0x30]
xor eax, eax
cmp byte [ecx + 2], al
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ebx, 0xdeadbeef
je 0x45a3ae32
mov dword [0x45a3f970], eax
jmp 0x45a3ae53
mov ecx, dword [ebp + 8]
cmp ecx, ebx
jne 0x45a3ae4d
push dword [esi + 8]
call edi
test eax, eax
jne 0x45a3ae4a
and dword [0x45a3f970], eax
jmp 0x45a3ae53
mov ecx, dword [eax + 0x64]
mov dword [0x45a3f970], ecx
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
jne 0x45a3ae7a
test eax, eax
jne 0x45a3ae70
push dword [esi + 8]
call edi
test eax, eax
jne 0x45a3ae70
or dword [0x45a3f974], 0xffffffff
jmp 0x45a3ae80
mov eax, dword [eax + 0x64]
mov dword [0x45a3f974], eax
jmp 0x45a3ae80
mov dword [0x45a3f974], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
pop edi
pop esi
pop ebx
mov dword [0x45a3f978], 0x45a3ad47
je 0x45a3ae99
mov dword [0x45a3f978], eax
mov eax, dword [ebp + 0x14]
test eax, eax
mov dword [0x45a3f97c], 0x45a3ad6c
je 0x45a3aeaf
mov dword [0x45a3f97c], eax
pop ebp
ret 0x10

Function at 0x13f3eaa
Capabilities:
Encode data using xor

Disassembly:
push dword [esp + 4]
popfd
lea esp, [esp + 0xc]
call fcn.0102237a
invalid
Function at 0x41944f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004192c0

Function at 0x419849
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408030
mov eax, dword [0x4aa700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004172ab
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41988b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4199e7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00407380
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4ac2b8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041a840
mov ecx, dword [esi*4 + 0x4ac2b8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4199e0
cmp eax, dword [edi + ecx + 0x24]
jne 0x4199e0
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4199e0
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a840
add esp, 0x14
test edx, edx
jl 0x4199e0
jg 0x419956
test eax, eax
jb 0x4199e0
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4199e0
jl 0x419970
cmp dword [ebp - 0x1008], eax
ja 0x4199e0
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41998e
test ebx, ebx
je 0x4199c7
cmp ecx, edi
jae 0x4199c7
mov al, byte [ecx]
cmp al, 0xd
jne 0x4199a8
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4199b4
cmp byte [ecx + 1], 0xa
jne 0x4199b4
inc ecx
jmp 0x4199b4
movzx eax, al
movsx eax, byte [eax + 0x4aa9c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41998e
cmp edx, ebx
jne 0x41998e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4199e5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040736f
leave
ret
Function at 0x419cde
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4ac2b8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419d1e
cmp byte [ebx], 0xa
jne 0x419d1e
or byte [eax + edi + 0x28], 4
jmp 0x419d23
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x419e21
mov al, byte [edx]
cmp al, 0x1a
je 0x419e03
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x419d52
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419d77
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x419d81
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x419d34
jmp 0x419e21
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419dfe
cmp dword [ebp - 0xc], 0
je 0x419dfe
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4ac2b8]
test byte [eax + edi + 0x28], 0x48
je 0x419dd8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419dc3
mov byte [esi], dl
jmp 0x419dd4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ac2b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419e21
cmp byte [ebp - 1], 0xa
jne 0x419de7
cmp esi, ebx
jne 0x419de7
mov byte [esi], 0xa
jmp 0x419e20
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041a85e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419e21
mov byte [esi], 0xd
jmp 0x419e20
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4ac2b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419e1d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419e21
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419e2a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4ac2b8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419e6d
cmp word [esi], dx
jne 0x419e6d
or byte [edi + eax + 0x28], 4
jmp 0x419e72
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x419fc5
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x419fa5
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419eb4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419eea
cmp eax, edx
jae 0x419ef6
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419e8c
jmp 0x419fc5
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419fa1
cmp dword [ebp - 0x14], 0
je 0x419fa1
mov eax, dword [ebx*4 + 0x4ac2b8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419f79
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x419f42
mov word [esi], cx
jmp 0x419f75
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4ac2b8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4ac2b8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4ac2b8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419fc5
pop ebx
cmp word [ebp - 4], bx
jne 0x419f8a
cmp esi, dword [ebp + 0xc]
jne 0x419f8a
mov word [esi], bx
jmp 0x419fc2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041a85e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419fc5
push 0xd
jmp 0x419fbe
mov ecx, dword [ebx*4 + 0x4ac2b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419fbc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419fc5
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x424000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x228
mov eax, dword [0x4aa700]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
push ebx
push ebp
push esi
push edi
push 0x2c
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], 0
call fcn.0040732c
mov esi, dword [esp + 0x24c]
mov ebx, eax
mov edi, dword [esp + 0x248]
add esp, 4
xor ecx, ecx
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
mov dword [ebx + 8], ebx
mov word [ebx + 0xc], 0x101
mov dword [esp + 0x14], ebx
nop dword [eax]
mov eax, ecx
mov byte [esp + ecx + 0x34], cl
cdq
idiv esi
mov al, byte [edx + edi]
mov byte [esp + ecx + 0x134], al
inc ecx
cmp ecx, 0x100
jl 0x424060
xor esi, esi
xor edi, edi
mov dl, byte [esp + esi + 0x34]
movzx eax, byte [esp + esi + 0x134]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x4240a3
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x34]
mov byte [esp + esi + 0x34], al
inc esi
mov byte [esp + edi + 0x34], dl
cmp esi, 0x100
jl 0x424080
xor ecx, ecx
xor ebp, ebp
xor edi, edi
cmp dword [esp + 0x240], ecx
jle 0x4241c0
movsd xmm0, qword [0x425438]
movsd qword [esp + 0x2c], xmm0
nop dword [eax]
inc ebp
and ebp, 0x800000ff
jns 0x4240f1
dec ebp
or ebp, 0xffffff00
inc ebp
mov bl, byte [esp + ebp + 0x34]
movzx esi, bl
add ecx, esi
and ecx, 0x800000ff
jns 0x42410a
dec ecx
or ecx, 0xffffff00
inc ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], ecx
push eax
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.00401640
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
movzx eax, byte [esp + ecx + 0x34]
mov byte [esp + ebp + 0x34], al
mov byte [esp + ecx + 0x34], bl
movzx eax, byte [esp + ebp + 0x34]
add eax, esi
movzx eax, al
movzx eax, byte [esp + eax + 0x34]
xor byte [edx + edi], al
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4241ae
mov ecx, dword [esp + 0x24]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x424188
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4241f6
push ecx
push edx
call fcn.0040735c
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
inc edi
cmp edi, dword [esp + 0x240]
jl 0x4240e0
mov ebx, dword [esp + 0x14]
push dword [ebx + 4]
lea eax, [esp + 0x18]
push eax
mov ecx, eax
call fcn.00401810
push 0x2c
push dword [esp + 0x18]
call fcn.0040735c
mov ecx, dword [esp + 0x23c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040736f
add esp, 0x228
ret
call fcn.0040bcef
int3
Function at 0x40ff30
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x478c4b
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.0046d6d3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40ffb2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046b190
mov eax, dword [eax]
push 0x4b4214
push eax
call fcn.0045d384
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046d95e
test bl, bl
je 0x40ffb2
push 0x4b4214
lea ecx, [esp + 0xc]
call fcn.0046dcee
push 0x4b7d84
lea ecx, [esp + 0xc]
call fcn.0046dcee
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 0x40ffee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046d95e
jmp 0x4100b9
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 0x410072
lea edx, [esp + 0x7c]
push 0x4b7d80
push edx
call fcn.0045d384
add esp, 8
test eax, eax
je 0x410072
lea eax, [esp + 0x7c]
push 0x4b7d7c
push eax
call fcn.0045d384
add esp, 8
test eax, eax
je 0x410072
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 0x410002
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.0046d95e
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 0x4108d0
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 0x410932
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