joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460cc8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
xor edx, edx
mov dword [ebp - 0x268], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x460e93
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x460e71
mov dl, 1
mov eax, dword [0x413364]
call fcn.00403460
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040421c
lea eax, [ebp - 0x11c]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x460e5a
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
call fcn.0044b1e8
test al, al
je 0x460e4e
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov dword [ebp - 0x264], eax
mov byte [ebp - 0x260], 0
lea ecx, [ebp - 0x264]
mov edx, 0x460ea4
lea eax, [ebp - 0x25c]
call fcn.00409558
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x460e4e
xor eax, eax
push ebp
push 0x460e47
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], pe_nt_image_headers32
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x460edc
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x460e30
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.0040448c
mov edx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + eax*4 - 0x11c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x460e30
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.0040448c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460e4e
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x460d3d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dl, 1
call fcn.00417a80
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460e9a
lea eax, [ebp - 0x268]
call fcn.0040421c
ret
Function at 0x4619cc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x469be4]
cmp byte [eax + 0xa5], 0
jne 0x461a43
cmp dword [0x469bfc], 0
jne 0x461a01
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x461988
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x469bfc], eax
cmp dword [0x469bf8], 0
jne 0x461a1c
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x469bf8], eax
cmp dword [0x469c00], 0
jne 0x461a43
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x461928
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x469c00], eax
pop ecx
pop ebp
ret

Function at 0x461b0c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call fcn.00461aa4
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x461b2d
xor eax, eax
call fcn.00461adc
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebp - 9], 0
je 0x461b47
mov al, 1
call fcn.00461adc
mov esp, ebp
pop ebp
ret

Function at 0x462210
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [0x469be4]
cmp dword [eax + 0x30], 0
je 0x4622da
mov eax, dword [ebp - 4]
cmp dword [eax + 0x94], 0
jne 0x4622d1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 5]
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x14]
push eax
push 0x462190
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
cmp dword [eax + 8], 0
je 0x4622d1
push 3
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0x14], eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46228b
mov dword [ebp - 0x14], 0xfffffffe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x4622d1
mov dword [ebp - 0xc], eax
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
call fcn.00415750
push eax
call sub.user32.dll_SetWindowPos
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4622a0
mov eax, dword [ebp - 4]
inc dword [eax + 0x94]
mov esp, ebp
pop ebp
ret

Function at 0x462ff0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xa4], 0
je 0x463035
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, dword [ebp - 8]
call fcn.0040430c
jmp 0x463046
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x8c]
call fcn.00404270
mov esp, ebp
pop ebp
ret
Function at 0x4644b8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x84], 0
je 0x46450b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.004455ac
test al, al
je 0x46450b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.004450dc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46450b
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.004450dc
push eax
call sub.user32.dll_ShowWindow
pop ecx
pop ebp
ret
Function at 0x423a20
Capabilities:
Delete directory
Get common file path
Read file on windows
Set console window title

Disassembly:
mov eax, 0x1464
call fcn.0040e7c0
cmp dword [0x7c13b8], 0x37
jne 0x423b12
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x4046d0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FreeUserPhysicalPages]
push 0
lea edx, [esp + 0x868]
push edx
push 0x404760
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0xc68]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0x40472c
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
lea eax, [esp + 8]
push eax
push 0x4047a8
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0x404604
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0
lea ecx, [esp + 0x68]
push ecx
push 0
push 0x404818
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
lea edx, [esp + 0x464]
push edx
push 0
push 0x404880
push 0x40475c
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
push 0
push 0x404890
push 0x4048a4
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov eax, dword [0x7c13bc]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x44141c]
mov byte [eax + esi], dl
add esp, 0x1464
ret
Function at 0x423cd0
Capabilities:
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7c13b8]
sub esp, 0x1d4
push ebx
push ebp
push esi
mov esi, dword [0x44141c]
shr eax, 3
push edi
test eax, eax
je 0x423e85
mov dword [esp + 0x38], 0x9e3779b9
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
jmp 0x423d06
mov esi, dword [esp + 0x1c]
cmp dword [0x7c13b8], 0x1c
jne 0x423d23
lea eax, [esp + 0x3c]
push eax
push 0
lea ecx, [esp + 0x4c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov edx, dword [0x43b310]
mov ecx, dword [0x43b314]
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [0x43b318]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x43b31c]
mov dword [esp + 0x14], eax
mov ebx, 0xc6ef3720
mov dword [esp + 0x28], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], 0x20
jmp 0x423d67
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x34]
shl ecx, 4
add ecx, dword [esp + 0x28]
add eax, ebx
xor edx, ecx
xor edx, eax
sub edi, edx
mov ecx, edi
shl ecx, 4
mov dword [0x7c033c], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
cmp dword [0x7c13b8], 0x1be
lea ebp, [ebx + edi]
jne 0x423dbc
lea edx, [esp + 0x40]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x30]
cmp dword [0x7c13b8], 0x979
mov dword [0x7c0340], 0xff6b3619
mov dword [0x7c0344], 0xffffffff
jne 0x423df5
lea eax, [esp + 0xa0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor esi, ebp
xor dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], eax
sub ebx, dword [esp + 0x18]
dec dword [esp + 0x20]
jne 0x423d63
cmp dword [0x7c13b8], 0x8d4
jne 0x423e38
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], edi
cmp dword [0x7c13b8], 0x17
jne 0x423e74
push 0
push 0
push 0
push 0x404568
push 0x404630
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea eax, [esp + 0xa0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], esi
jne 0x423d02
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d4
ret
Function at 0x4021e0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x100
mov al, byte [0x41b85c]
push edi
mov byte [esp + 4], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 5]
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
push 0xff
push ecx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xff
lea edx, [esp + 8]
push str.gpupdate.exe__force
push edx
call fcn.0040cc30
add esp, 0xc
lea eax, [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
add esp, 0x100
ret
Function at 0x4039d0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, str.checked
mov eax, 0x4170f8
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x403a04
test cl, cl
je 0x403a00
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x403a04
add eax, 2
add esi, 2
test cl, cl
jne 0x4039dc
xor eax, eax
jmp 0x403a09
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403a57
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
push esi
call edi
push 5
push esi
call edi
push esi
mov dword [0x4170b4], 0
call dword [sym.imp.USER32.dll_UpdateWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebx
ret
pop esi
mov dword [0x4170b4], 1
pop ebx
ret
Function at 0x405d40
Capabilities:
Get disk information

Disassembly:
sub esp, 0x114
push ebx
push edi
mov ecx, 0x1a
xor eax, eax
mov edi, 0x41d6ac
mov ebx, 1
rep stosd dword es:[edi], eax
mov edi, 0x41cd88
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
cmp ecx, ebx
jbe 0x405e60
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push esi
mov dl, byte [ebx + 0x41cd88]
cmp dl, 0x41
je 0x405e46
mov edi, 0x41b85c
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx ecx, dl
push ecx
lea edx, [esp + 0x14]
push 0x4171b0
push edx
call ebp
mov edi, 0x41b85c
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x24]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
lea edx, [esp + 0x24]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
lea eax, [esp + 0x1c]
push ecx
push edx
push eax
lea ecx, [esp + 0x38]
push 0xff
lea edx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x405e34
movsx ecx, byte [ebx + 0x41cd88]
mov dword [ecx*4 + 0x41d5a8], eax
jmp 0x405e46
movsx edx, byte [ebx + 0x41cd88]
mov dword [edx*4 + 0x41d5a8], 0
mov edi, 0x41cd88
or ecx, 0xffffffff
xor eax, eax
inc ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebx, ecx
jb 0x405d80
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x114
ret
Function at 0x405e70
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x41d928]
sub esp, 0x11c
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x40601d
cmp dword [0x41d92c], ebx
jne 0x40601d
push ebp
push edi
mov edi, 0x41cd88
or ecx, 0xffffffff
xor eax, eax
mov ebp, 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ebx
cmp ecx, ebp
mov dword [0x41d92c], ebp
jbe 0x406015
push esi
mov dl, byte [ebp + 0x41cd88]
cmp dl, 0x41
je 0x405ffc
mov edi, 0x41b85c
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x20], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movsx ecx, dl
push ecx
lea edx, [esp + 0x20]
push 0x4171b0
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, 0x41b85c
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
lea edx, [esp + 0x30]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
lea eax, [esp + 0x20]
push ecx
push edx
push eax
lea ecx, [esp + 0x40]
push 0xff
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x405fec
mov cl, byte [ebp + 0x41cd88]
movsx edx, cl
cmp dword [edx*4 + 0x41d5a8], eax
je 0x405fea
mov edi, dword [esp + 0x130]
mov dword [edx*4 + 0x41d5a8], eax
lea eax, [esp + 0x10]
push edi
push eax
mov byte [esp + 0x18], 0x31
mov byte [esp + 0x19], cl
mov byte [esp + 0x1a], bl
call fcn.00403a70
add esp, 8
mov esi, str.checked
mov eax, 0x417198
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x405fce
cmp cl, bl
je 0x405fca
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x405fce
add eax, 2
add esi, 2
cmp cl, bl
jne 0x405faa
xor eax, eax
jmp 0x405fd3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x405ffc
mov al, byte [ebp + 0x41cd88]
push ebx
push edi
push eax
call fcn.00404f70
add esp, 0xc
jmp 0x405ffc
cmp eax, ebx
jne 0x405ffc
movsx ecx, byte [ebp + 0x41cd88]
mov dword [ecx*4 + 0x41d5a8], ebx
mov edi, 0x41cd88
or ecx, 0xffffffff
xor eax, eax
inc ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebp, ecx
jb 0x405ebb
pop esi
pop edi
mov dword [0x41d92c], ebx
pop ebp
pop ebx
add esp, 0x11c
ret

Function at 0x4060c0
Capabilities:
Get storage device properties

Disassembly:
sub esp, 0xc
xor eax, eax
lea edx, [esp]
mov dword [esp], eax
mov dword [esp + 4], eax
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
push ecx
push eax
mov eax, dword [esp + 0x20]
push 0xc
push edx
push 0x2d1400
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 0xc
ret
Function at 0x406120
Capabilities:
Get disk information

Disassembly:
sub esp, 0x13c
mov ecx, 6
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, 0x41b924
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 6
xor eax, eax
mov edi, 0x41cd88
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, 0x1a
dec eax
mov byte [0x41d688], 0
jne 0x40614f
mov eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [esp + 0x1c], eax
xor ebx, ebx
mov eax, dword [esp + 0x1c]
mov ebp, 1
mov ecx, ebx
shl ebp, cl
test eax, ebp
je case.0x4061b5.0
lea esi, [ebx + 0x41]
push esi
push 0x4171b0
push 0x41b8b0
call fcn.0040d38b
add esp, 0xc
push 0x41b8b0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 6
ja case.0x4061b5.0
jmp dword [eax*4 + 0x4062fc]
push ebp
call fcn.00406100
mov ecx, dword [esp + 0x1c]
add esp, 4
mov byte [ecx + 0x41b924], al
mov byte [0x41b924], cl
inc ecx
mov dword [esp + 0x18], ecx
jmp case.0x4061b5.0
push esi
lea ecx, [esp + 0x24]
push str.__c:
push ecx
call fcn.0040d38b
add esp, 0xc
lea edx, [esp + 0x20]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je case.0x4061b5.0
push 0x227
call fcn.0040cae4
mov edi, eax
push edi
push esi
mov dword [edi + 4], 0x227
call fcn.004060c0
add esp, 0xc
test eax, eax
je 0x40627d
mov eax, dword [edi + 0x1c]
push ebp
cmp eax, 7
jne 0x406260
call fcn.00406100
mov ecx, dword [esp + 0x14]
add esp, 4
mov byte [ecx + 0x41cd88], al
mov byte [0x41cd88], cl
inc ecx
mov dword [esp + 0x10], ecx
jmp 0x40627d
call fcn.00406100
mov ecx, dword [esp + 0x18]
add esp, 4
mov byte [ecx + 0x41d688], al
mov byte [0x41d688], cl
inc ecx
mov dword [esp + 0x14], ecx
push edi
call fcn.0040c872
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.0x4061b5.0
mov esi, str.checked
mov eax, 0x41715c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4062bd
test cl, cl
je 0x4062b9
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4062bd
add eax, 2
add esi, 2
test cl, cl
jne 0x406299
xor eax, eax
jmp 0x4062c2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne case.0x4061b5.0
push ebp
call fcn.00406100
mov ecx, dword [esp + 0x14]
add esp, 4
mov byte [ecx + 0x41cd88], al
mov byte [0x41cd88], cl
inc ecx
mov dword [esp + 0x10], ecx
inc ebx
cmp ebx, 0x20
jb 0x406176
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x13c
ret
Function at 0x40b960
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414566
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00412c84
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x414587
test byte [esp + 8], 2
je 0x414587
mov dword [0x41f0d8], 0xd
mov dword [0x41f0dc], 5
jmp 0x414562
xor eax, eax
ret
Function at 0x40b130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40b13f
pop dword [ebp - 0x3c]
mov eax, 0x59a6cdbb
sub eax, 0x59661c7c
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x5733f49c
add dword [ebp - 0x4c], 0xf71e50af
mov dword [ebp - 0x48], 0x1aaf1761
add dword [ebp - 0x48], 0x178434e4
mov dword [ebp - 0x44], 0xb8dbe1ba
add dword [ebp - 0x44], 0x93706274
mov dword [ebp - 0x40], 0xeeb7633c
add dword [ebp - 0x40], 0x11489cc4
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xd094d573
sub dword [ebp - 0x4c], 0x5c226c1d
mov dword [ebp - 0x48], 0x944ab99d
sub dword [ebp - 0x48], 0x52de5828
mov dword [ebp - 0x44], 0xdc5749f
sub dword [ebp - 0x44], 0xaa560833
mov dword [ebp - 0x40], 0x76b00eca
sub dword [ebp - 0x40], 0x76b00eca
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0xd789431e
add eax, 0x28b7ed1e
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x387d5
push 0
call eax
mov ecx, 0x7a3995ba
add ecx, 0x85c6a8ef
xor ebx, ebx
add ebx, eax
mov esi, 0xa18029d0
sub esi, 0xa13e79d0
add esi, dword [ebp - 0x3c]
mov edi, 0xdc0bb53b
mov dword [ebp - 4], 0x907a5b33
mov edx, dword [esi]
xor dword [ebp - 0x38], 0x36e8a00d
sub edx, edi
sub dword [ebp - 0x38], edx
mov dword [ebx], edx
xor dword [ebp - 0x30], edi
add ebx, 0xf3a8268d
sub ebx, 0xf3a82689
add esi, 0x48632a74
add esi, 0xb79cd590
loop 0x40b258
add eax, 0xed25c65
add eax, 0xf12e9112
mov ebx, eax
add eax, 0x43bc1728
add eax, 0xbc43e8dd
mov ecx, 0xdc03fefd
add ecx, 0x243c0103
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x410100
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call main
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x41011c
mov dword [eax], ecx
jmp 0x41011e
mov eax, ecx
push ecx
push ecx
push esi
push 0x410190
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
ret
Function at 0x4b8ff8
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004b9077
jae 0x4b9004
xor ecx, ecx
call fcn.004b9077
jae 0x4b902e
xor eax, eax
call fcn.004b9077
jae 0x4b903f
mov al, 0x10
call fcn.004b9077
adc al, al
jae 0x4b9020
jne 0x4b906c
stosb byte es:[edi], al
jmp 0x4b9005
call fcn.004b9083
dec ecx
loop 0x4b904b
mov eax, ebp
call fcn.004b9081
jmp 0x4b906d
lodsb al, byte [esi]
shr eax, 1
je 0x4b9093
adc ecx, 2
mov ebp, eax
jmp 0x4b906d
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004b9081
cmp eax, 0x7d00
jae 0x4b906b
cmp eax, 0x500
jae 0x4b906c
cmp eax, 0x7f
ja 0x4b906d
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4b9005
pop ebp
ret 8