joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019c2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov edx, dword [edx]
and edx, 7
cmp eax, 5
jae 0x4019e0
xor eax, eax
jmp 0x401b06
add dword [ebp + 0x10], 5
lea ecx, [eax - 4]
push ebx
mov ebx, dword [ebp + 8]
add ecx, ebx
push esi
mov dword [ebp + 0xc], ecx
lea esi, [edi + ebx]
jmp 0x4019ff
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x401a03
inc esi
cmp esi, ecx
jb 0x4019f6
mov ecx, esi
sub ecx, edi
mov edi, esi
sub ecx, ebx
sub edi, ebx
cmp esi, dword [ebp + 0xc]
jae 0x401af3
cmp ecx, 2
jbe 0x401a8d
xor edx, edx
movzx ecx, byte [esi + 4]
lea eax, [ecx + 1]
test al, 0xfe
jne 0x401ae7
movzx eax, byte [esi + 3]
mov ebx, dword [ebp + 0x10]
shl ecx, 8
add ebx, edi
or ecx, eax
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
add ecx, ebx
sub eax, ebx
cmp dword [ebp + 0x18], 0
cmove ecx, eax
mov dword [ebp - 4], ecx
mov ebx, ecx
test edx, edx
je 0x401ac1
and edx, 6
mov eax, ecx
shl edx, 2
mov ecx, edx
shr eax, cl
inc eax
test al, 0xfe
jne 0x401abf
mov eax, dword [ebp + 0x10]
mov ebx, 0x100
shl ebx, cl
add eax, edi
dec ebx
xor ebx, dword [ebp - 4]
cmp dword [ebp + 0x18], 0
je 0x401abd
add ebx, eax
jmp 0x401abf
shr edx, cl
test edx, edx
je 0x401a1d
cmp edx, 4
ja 0x401aaf
cmp edx, 3
je 0x401aaf
mov eax, edx
shr eax, 1
movzx eax, byte [eax + esi + 1]
inc eax
test al, 0xfe
jne 0x401a1d
or edx, 8
shr edx, 1
inc edi
mov ecx, dword [ebp + 0xc]
jmp 0x4019f1
sub ebx, eax
xor edx, edx
mov eax, ebx
mov byte [esi + 1], bl
shr eax, 8
mov byte [esi + 2], al
mov eax, ebx
shr ebx, 0x18
shr eax, 0x10
and bl, 1
neg bl
mov byte [esi + 3], al
push 5
mov byte [esi + 4], bl
mov ebx, dword [ebp + 8]
pop eax
jmp 0x401aef
or edx, 8
xor eax, eax
shr edx, 1
inc eax
add edi, eax
jmp 0x401ab5
xor eax, eax
shr edx, cl
cmp ecx, 2
pop esi
cmova edx, eax
mov eax, dword [ebp + 0x14]
pop ebx
mov dword [eax], edx
mov eax, edi
pop edi
leave
ret 0x14
Function at 0x401e2e
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0xb29670]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x368]
mov dword [ebp - 0x368], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401e6e
cmp dword [ebp - 0x364], 6
jne 0x401e6e
cmp dword [ebp - 0x360], 0
je 0x401e98
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401e98
push 0xc00
call eax
test eax, eax
jne 0x401f2d
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x401f2d
cmp eax, 0x104
ja 0x401f2d
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x401ed8
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.UXTHEME], 0
push esi
mov esi, str.UXTHEME
je 0x401f2c
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov edx, edi
mov cl, byte [esi]
inc esi
movzx eax, cl
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x401ef3
push str..dll
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 8
push 0
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x401ef1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ceb85
leave
ret
Function at 0x4055b9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], edx
cmova eax, ecx
mov dword [esi + 0x7c], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x405663
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x405644
push edi
call fcn.0040558e
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x405637
cmp dword [esi + 0x5c], ebx
je 0x40565e
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
and dword [esi + 0x5c], ebx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.00405a92
mov ecx, dword [esi + 0x58]
and dword [esi + 0x24], 0
and dword [esi + 0x28], 0
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
push ebx
call fcn.00405550
mov edi, eax
test edi, edi
jne 0x4056df
lea eax, [ebx + 0x20]
push eax
call fcn.004065d7
mov edi, eax
test edi, edi
jne 0x4056df
lea eax, [ebx + 0x1c]
push eax
call fcn.004065d7
mov edi, eax
test edi, edi
jne 0x4056df
push ebx
call fcn.00406490
mov edi, eax
test edi, edi
je 0x4056df
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
push ebx
call fcn.004054d2
add ebx, 0x28
sub esi, 1
jne 0x4056ce
mov esi, dword [ebp + 8]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x4056f3
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x405707
cmp dword [esi + 0x40], edx
jne 0x405707
cmp dword [esi + 0x3c], edx
jne 0x405707
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
pop ebp
ret 4

Function at 0x4066e4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.004d4276
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
jne 0x406710
call fcn.004065f6
mov esi, eax
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x407f6b
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x4e4774
call fcn.004cee2a
cmp byte [0xb2b254], 0
mov edi, dword [ebp + 8]
jne 0x407fa7
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00407564
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.004cede5
pop ecx
test esi, esi
jmp 0x407fb3
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407fb9
mov al, 1
jmp 0x407fff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407fca
xor al, al
jmp 0x407fff
lea ecx, [ebp - 0x50]
call fcn.0040862d
lea ecx, [ebp - 0x28]
call fcn.00406bce
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.004087f5
test al, al
je 0x407ff4
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.004cede5
pop ecx
mov al, bl
call fcn.004cedf8
ret 4

Function at 0x408007
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb2b254], 0
jne 0x40803d
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004cede5
pop ecx
test esi, esi
pop esi
jmp 0x40804a
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x408050
mov al, 1
jmp 0x408052
xor al, al
leave
ret 4

Function at 0x40819d
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00408e2b
cmp eax, 0xffffffff
je 0x4081ca
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x4081ca
and eax, 0xfffffffe
push eax
push esi
call fcn.0040859f
test al, al
je 0x408202
cmp byte [0xb2b254], 0
push esi
jne 0x4081f4
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004cede5
pop ecx
test esi, esi
jmp 0x4081fc
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x408202
mov al, 1
jmp 0x408204
xor al, al
pop esi
leave
ret 4

Function at 0x40832e
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb2b254], 0
jne 0x408362
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004cede5
pop ecx
test esi, esi
pop esi
jmp 0x40836d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x408373
mov al, 1
jmp 0x408375
xor al, al
leave
ret 4
Function at 0x40859f
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb2b254], 0
jne 0x4085d6
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004cede5
pop ecx
test esi, esi
pop esi
jmp 0x4085e4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4085ea
mov al, 1
jmp 0x4085ec
xor al, al
leave
ret 8

Function at 0x408e2b
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb2b254], 0
jne 0x408e5f
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00407564
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.004cede5
pop ecx
mov eax, esi
pop esi
jmp 0x408e72
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
leave
ret 4

Function at 0x409068
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409092
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x409092
xor al, al
jmp 0x4090a6
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x414795
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e49c0
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0xb29670]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edx, edx
mov dword [esi], vtable.CInFileStreamVol.0
mov dword [esi + 4], vtable.CInFileStreamVol.1.0
mov dword [esi + 8], vtable.CInFileStreamVol.2.0
mov dword [esi + 0xc], vtable.CInFileStreamVol.3.0
cmp dword [esi + 0x30], edx
je 0x4147e8
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0x74]
mov eax, dword [esi + 0x28]
mov byte [ecx + eax], dl
mov ecx, dword [esi + 0x30]
mov dword [ebp - 4], edx
test ecx, ecx
je 0x4147f8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, esi
call fcn.00410c35
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret

Function at 0x418708
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x4e45dc
call fcn.004cee2a
mov esi, ecx
push 0
push dword [ebp + 0xc]
lea ecx, [esi + 0x68]
push dword [ebp + 8]
call fcn.00418289
push 0xce4
lea eax, [ebp - 0x18]
push eax
call fcn.00409de5
push dword [ebp - 0x18]
and dword [ebp - 4], 0
push dword [esi + 0x6c]
call fcn.0040a0f6
push dword [ebp - 0x18]
call fcn.004cede5
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.004cedf8
ret 8
Function at 0x439240
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1804
call fcn.004cf450
mov eax, dword [0xb29670]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1800
lea eax, [ebp - 0x1804]
push 0
push eax
call fcn.004d0a80
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x1804]
add esp, 0xc
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x439280
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x1004]
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4392a0
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x804]
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4392c0
push 0
push 0
lea eax, [ebp - 0x1804]
push eax
push 0x439310
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, 0xffffffff
je 0x4392f8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ceb85
mov esp, ebp
pop ebp
ret

Function at 0x439460
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xb29670]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x2001f
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4394ad
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
call fcn.00439050
add esp, 0x10
test al, al
je 0x4394cb
push dword [ebp + 0x18]
push dword [ebp - 0xc]
push dword [ebp + 0x1c]
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ceb85
mov esp, ebp
pop ebp
ret
Function at 0x4394e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0xb29670]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
movups xmm0, xmmword [str.SoftwareClasses]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov ax, word [0x4e8c24]
push edi
mov edi, dword [ebp + 0x20]
mov word [ebp - 8], ax
or edi, 0x2001f
lea eax, [ebp - 0x30]
push eax
push edi
push 0
lea eax, [ebp - 0x28]
push eax
movzx eax, byte [ebp + 8]
movups xmmword [ebp - 0x28], xmm0
sub eax, 0x7fffffff
movups xmm0, xmmword [0x4e8c14]
push eax
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x439596
push esi
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
push edi
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x439575
push dword [ebp + 0x20]
lea eax, [ebp - 0x2c]
push eax
push ebx
push esi
call fcn.00439050
add esp, 0x10
test al, al
je 0x439595
push dword [ebp + 0x18]
push dword [ebp - 0x34]
push dword [ebp + 0x1c]
push 0
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004ceb85
mov esp, ebp
pop ebp
ret
Function at 0x47f100
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5ad0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0xb29670]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004ced9e
mov esi, eax
add esp, 4
test esi, esi
je 0x47f160
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004d01df
add esp, 4
mov dword [esi + 4], eax
jmp 0x47f162
xor esi, esi
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
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 0x4ad060
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5ecd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0xb29670]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.004ced9e
mov edi, eax
add esp, 4
test edi, edi
je 0x4ad104
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004d01df
add esp, 4
mov dword [edi + 4], eax
jmp 0x4ad106
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.0047efd0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 0x10]
mov bl, al
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x4ad160
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4ad160
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x4ad17c
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x4ad19f
cmp byte [ebp + 0xc], 0
je 0x4ad18b
push esi
call fcn.004d065b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x4ad1ab
mov esi, str.ios_base::badbit_set
jmp 0x4ad1bb
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.004ad1f0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.0047f5a0
push 0x4fa778
lea eax, [ebp - 0x28]
push eax
call fcn.004d192b
int3
Function at 0x4c8600
Capabilities:
Access peb ldr_data
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6120
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0xb29670]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
push 0
push 0x4e9f8c
mov dword [ebp - 4], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
call fcn.004ac620
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4cdcff
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push eax
push eax
push esi
push 0x4cae93
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
pop esi
pop ebp
ret 4
Function at 0x4ce735
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x14
test eax, eax
je 0x4ce794
mov ecx, dword [ebp + 8]
dec eax
push ebx
mov ebx, dword [ebp + 0xc]
shr eax, 4
push esi
lea edx, [ecx + 0xf0]
inc eax
push edi
mov dword [ebp - 4], edx
mov dword [ebp + 0x10], eax
mov esi, ebx
lea edi, [ebp - 0x14]
push ecx
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004ce7e6
mov edi, dword [ebp - 4]
pop ecx
pop ecx
push 0x10
mov ecx, edi
pop edx
mov al, byte [ecx]
xor byte [ebx], al
inc ecx
inc ebx
sub edx, 1
jne 0x4ce776
sub dword [ebp + 0x10], 1
lea esi, [ebp - 0x14]
mov ecx, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jne 0x4ce75c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4ce7ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movzx ecx, byte [ebp + 8]
mov edx, dword [ebp + 0xc]
push esi
push edi
shl ecx, 4
add ecx, dword [ebp + 0x10]
push 4
pop edi
push 4
pop esi
mov al, byte [ecx]
xor byte [edx], al
inc ecx
inc edx
sub esi, 1
jne 0x4ce7d2
sub edi, 1
jne 0x4ce7cf
pop edi
pop esi
pop ebp
ret

Function at 0x4ce7e6
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push esi
push 0xe
call fcn.004ce7ba
add esp, 0xc
mov bl, 0xd
push 4
mov byte [ebp - 4], bl
mov edx, esi
pop edi
push 4
mov ecx, edx
pop esi
movzx eax, byte [ecx]
mov al, byte [eax + 0x4eb120]
mov byte [ecx], al
lea ecx, [ecx + 4]
sub esi, 1
jne 0x4ce80d
inc edx
sub edi, 1
jne 0x4ce808
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
push esi
mov al, byte [esi + 9]
mov cl, byte [esi + 0xd]
push dword [ebp - 4]
mov byte [esi + 0xd], al
mov al, byte [esi + 5]
mov byte [esi + 9], al
mov al, byte [esi + 1]
mov byte [esi + 5], al
mov al, byte [esi + 0xa]
mov byte [esi + 1], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
mov al, byte [esi + 0xe]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
mov al, byte [esi + 7]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
mov al, byte [esi + 0xb]
mov byte [esi + 7], al
mov al, byte [esi + 0xf]
mov byte [esi + 0xb], al
mov byte [esi + 0xf], cl
call fcn.004ce7ba
add esp, 0xc
test bl, bl
je 0x4ce892
push esi
call fcn.004ce897
pop ecx
dec bl
jmp 0x4ce800
pop edi
pop esi
pop ebx
leave
ret