joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5109d034
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
push ebx
xor eax, eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], eax
xor eax, eax
push ebp
push 0x5109d1b7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x94]
mov edx, 0x94
call fcn.51006fdc
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
xor ebx, ebx
cmp dword [ebp - 0x84], 2
jne 0x5109d0e9
mov eax, dword [ebp - 0x90]
sub eax, 3
je 0x5109d0aa
dec eax
je 0x5109d0ae
dec eax
je 0x5109d0b2
jmp 0x5109d0b4
mov bl, 5
jmp 0x5109d0b4
mov bl, 6
jmp 0x5109d0b4
mov bl, 7
cmp dword [ebp - 0x90], 6
jne 0x5109d0c8
cmp dword [ebp - 0x8c], 1
jne 0x5109d0c8
mov bl, 0xa
cmp dword [ebp - 0x90], 5
jne 0x5109d199
cmp dword [ebp - 0x8c], 1
jne 0x5109d199
mov bl, 9
jmp 0x5109d199
cmp dword [ebp - 0x90], 4
jne 0x5109d137
cmp dword [ebp - 0x8c], 0
jne 0x5109d137
mov bl, 1
lea eax, [ebp - 0x9c]
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.51004314
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x98]
call fcn.51008544
mov eax, dword [ebp - 0x98]
mov edx, 0x5109d1d0
call fcn.510044b0
jne 0x5109d199
mov bl, 2
jmp 0x5109d199
cmp dword [ebp - 0x90], 4
jne 0x5109d185
cmp dword [ebp - 0x8c], 0xa
jne 0x5109d185
mov bl, 3
lea eax, [ebp - 0xa4]
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.51004314
mov eax, dword [ebp - 0xa4]
lea edx, [ebp - 0xa0]
call fcn.51008544
mov eax, dword [ebp - 0xa0]
mov edx, 0x5109d1dc
call fcn.510044b0
jne 0x5109d199
mov bl, 4
jmp 0x5109d199
cmp dword [ebp - 0x90], 4
jne 0x5109d199
cmp dword [ebp - 0x8c], 0x5a
jne 0x5109d199
mov bl, 8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5109d1be
lea eax, [ebp - 0xa4]
mov edx, 4
call fcn.510040c8
ret

Function at 0x510a014c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x510a017a
mov eax, ebx
call fcn.510a0c00
cmp dword [ebx + 0x40], 0
je 0x510a0173
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x510a01eb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x510a01dd
cmp dword [ebx + 8], 0
je 0x510a019c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x510a01ae
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x510a01dd
cmp dword [ebx + 8], 0
je 0x510a018f
cmp eax, 3
je 0x510a01c1
dec eax
jne 0x510a018f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x510a018f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x510a018f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x510a0209
cmp dword [ebx + 0x14], 0xcc
je 0x510a0209
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.510a0214
pop ebx
ret
Function at 0x510b199c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x510b1a53
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.51004564
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x510b19de
call fcn.51003b08
jmp 0x510b1a5a
mov eax, ebx
call fcn.51002724
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.51004564
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x510b1a07
call fcn.51003b08
jmp 0x510b1a5a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x510b1a64
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x510b1a28
call fcn.51003b08
jmp 0x510b1a5a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510b1a5a
mov eax, dword [ebp - 8]
call fcn.51002744
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x510b1cc8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x510b1d39
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x168]
xor ecx, ecx
mov edx, 0x160
call fcn.51002ca4
cmp dword [ebp - 4], 0
jne 0x510b1d0b
mov word [ebp - 6], 0
lea eax, [ebp - 6]
mov dword [ebp - 4], eax
or ebx, 0x4008
push ebx
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov ebx, dword [ebp - 0x164]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x510b1d45
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x510b2028
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
push 0x510b21d4
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x510b21cc
xor eax, eax
push ebp
push 0x510b21c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 6], 0
push 0x4001
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
push 0x510b21e0
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
test esi, esi
jne 0x510b20a0
push 0x4009
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
lea eax, [ebp - 6]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov esi, eax
push 0x4000
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
push 0x510b21e0
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
test edi, edi
jne 0x510b20e1
push 0x4008
push 0x160
lea eax, [ebp - 0x168]
push eax
push 0
lea eax, [ebp - 6]
push eax
call sub.shell32.dll_SHGetFileInfoA
mov edi, eax
push 0x8000
push 0x10
push 0x10
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
mov edx, ebx
mov eax, esi
call fcn.5102ce30
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1d
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 1
mov edx, ebx
mov eax, edi
call fcn.5102ce30
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x10
push 0x10
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
mov edx, ebx
mov eax, esi
call fcn.5102ce30
push eax
push esi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
push 0x8000
push 0x20
push 0x20
push 1
push 0x1e
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_LoadImageA
mov ebx, eax
push 2
mov edx, ebx
mov eax, edi
call fcn.5102ce30
push eax
push edi
call sub.comctl32.dll_ImageList_SetOverlayImage
push ebx
call sub.user32.dll_DestroyIcon
mov byte [0x510cdee0], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510b21cc
cmp dword [ebp - 4], 0
je 0x510b21c4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x510b21e4
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov ebx, eax
call fcn.510b1990
test al, al
je 0x510b2211
cmp dword [0x510cfcd4], 0x40047
jl 0x510b2211
cmp byte [0x510cdee0], 0
jne 0x510b2211
call fcn.510b2028
mov esi, ebx
and esi, 0x7f
mov eax, dword [esi*4 + 0x510cdee4]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x510b2274
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x510b2269
mov word [esp], 0
mov eax, dword [esi*4 + 0x510cdee4]
or eax, 0x4000
or eax, 8
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x510b222d
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov ebx, eax
call fcn.510b1990
test al, al
je 0x510b2211
cmp dword [0x510cfcd4], 0x40047
jl 0x510b2211
cmp byte [0x510cdee0], 0
jne 0x510b2211
call fcn.510b2028
mov esi, ebx
and esi, 0x7f
mov eax, dword [esi*4 + 0x510cdee4]
or eax, 0x4000
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x510b2274
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x510b2269
mov word [esp], 0
mov eax, dword [esi*4 + 0x510cdee4]
or eax, 0x4000
or eax, 8
push eax
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
lea eax, [esp + 0x10]
push eax
call sub.shell32.dll_SHGetFileInfoA
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x510ba24c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x510ba254
push ecx
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x510ba3a1
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x510ba2aa
lea edx, [ebp - 4]
mov eax, dword [0x510ce0a0]
call fcn.51005ff8
cmp ebx, 1
jbe 0x510ba2e1
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x510ba3b8
call fcn.5100949c
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.5100436c
jmp 0x510ba2e1
lea eax, [ebp - 4]
mov edx, 0x510ba3c8
call fcn.5100413c
cmp ebx, 1
jbe 0x510ba2e1
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
lea edx, [ebp - 0x10]
xor ecx, ecx
mov eax, 0x510ba3d8
call fcn.5100949c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.5100436c
push 0
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 4]
call fcn.510043b0
mov eax, dword [ebp - 0x18]
call fcn.51004564
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x510ba369
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
jne 0x510ba319
mov bl, 1
jmp 0x510ba379
push 0
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.5100b5cc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0x24]
mov eax, dword [0x510ce3c8]
call fcn.51005ff8
mov eax, dword [ebp - 0x24]
mov ecx, 1
pop edx
call fcn.510b30a4
mov eax, dword [ebp - 0x1c]
mov cx, word [0x510ba3dc]
xor edx, edx
call fcn.51030f84
mov bl, 2
jmp 0x510ba379
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, dword [ebp - 4]
call fcn.510040f8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510ba3a8
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.510040c8
lea eax, [ebp - 8]
mov edx, 2
call fcn.510040c8
ret

Function at 0x510baa18
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov ebx, ecx
mov esi, eax
test edx, 0x40000000
jne 0x510baa3a
mov edx, ebx
mov eax, dword [0x510ce3c4]
call fcn.51005ff8
jmp 0x510baa71
push 0x408
push 0x160
lea eax, [esp + 8]
push eax
push 0
push esi
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x510baa6a
mov eax, ebx
lea edx, [esp + 0x110]
mov ecx, 0x50
call fcn.51004314
jmp 0x510baa71
mov eax, ebx
call fcn.510040a4
add esp, 0x160
pop esi
pop ebx
ret
Function at 0x510bb3f8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x158], ebx
mov ebx, ecx
test ebx, ebx
js 0x510bb42b
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x510bb424
mov edx, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.51004554
mov ecx, dword [ebp - 0xc]
inc ecx
mov eax, dword [ebp - 8]
mov edx, dword [0x510010bc]
call fcn.51004cb8
xor eax, eax
push ebp
push 0x510bb5b9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x510bb581
inc eax
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 4]
push 0x510bb5e0
push dword [esi]
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.51004424
mov eax, dword [ebp - 0x158]
call fcn.51004564
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x510bb575
mov eax, dword [ebp - 0x154]
test al, 0x10
jne 0x510bb55a
test al, 2
jne 0x510bb55a
xor eax, eax
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 0x510bb5e0
lea eax, [ebp - 0x160]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.51004314
push dword [ebp - 0x160]
lea eax, [ebp - 0x15c]
mov edx, 3
call fcn.51004424
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x10]
call fcn.510b1b20
call fcn.51016240
test al, al
je 0x510bb518
or edi, 0xffffffff
jmp 0x510bb527
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.510b1cc8
mov edi, eax
mov eax, dword [ebp - 0x10]
call fcn.510b1a84
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x128]
mov ecx, 0x104
call fcn.51004314
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax]
mov ecx, edi
mov edi, dword [eax]
call dword [edi + 0x3c]
lea eax, [ebp - 0x154]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x510bb4ad
push ebx
call sub.kernel32.dll_FindClose_1
add esi, 4
dec dword [ebp - 0x14]
jne 0x510bb470
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510bb5c0
lea eax, [ebp - 0x164]
mov edx, 4
call fcn.510040c8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc ecx
mov edx, dword [0x510010bc]
call fcn.51004b78
lea eax, [ebp - 4]
call fcn.510040a4
ret
Function at 0x510bc72c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x510bc7c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x700f0037
mov eax, dword [0x510ce328]
cmp dword [eax + 4], 0x60000
jl 0x510bc764
or dword [ebp - 4], 0x400000
lea edx, [ebp - 8]
mov eax, ebx
call fcn.510bc858
mov eax, dword [ebp - 8]
call fcn.510ba5d0
test al, al
je 0x510bc794
mov eax, dword [ebp - 8]
call fcn.51004564
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x510bc794
and dword [ebp - 4], 0xfffbffff
lea eax, [ebp - 4]
push eax
lea eax, [ebx + 0xc]
push eax
push 1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x420]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510bc7ca
lea eax, [ebp - 8]
call fcn.510040a4
ret

Function at 0x510c0268
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.51004564
push eax
call sub.kernel32.dll_GetDriveTypeA
sub eax, 3
je 0x510c02a9
dec eax
je 0x510c028b
sub eax, 2
je 0x510c02a9
jmp 0x510c02ba
mov al, byte [ebx]
call fcn.510b3554
test al, al
je 0x510c02ba
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xffa1
call fcn.5100348c
jmp 0x510c02ba
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, ebx
mov si, 0xffa1
call fcn.5100348c
pop esi
pop ebx
pop ebp
ret

Function at 0x510c02c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x510c036f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3f8], 0
jne 0x510c030e
push 0x465
mov eax, dword [ebp - 4]
call fcn.5105807c
mov ecx, eax
mov dl, 1
mov eax, dword [0x510bc9f4]
call fcn.510bca60
mov edx, dword [ebp - 4]
mov dword [edx + 0x3f8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3f8]
call fcn.510bcf28
lea eax, [ebp - 8]
mov edx, 0x510c0384
call fcn.5100413c
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x510c0359
test bl, 1
je 0x510c0352
lea eax, [ebp - 8]
call fcn.510045bc
lea edx, [esi + 0x41]
mov byte [eax], dl
push ebp
mov eax, dword [ebp - 8]
call fcn.510c0268
pop ecx
shr ebx, 1
inc esi
test ebx, ebx
jne 0x510c0336
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510c0376
lea eax, [ebp - 8]
call fcn.510040a4
ret
Function at 0x510c0f10
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeac
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x154], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.51004554
xor eax, eax
push ebp
push 0x510c102e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x510c1001
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
or eax, 1
push eax
call sub.kernel32.dll_SetErrorMode
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 4]
call fcn.51004564
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x510c0fde
test byte [ebp - 0x14c], 0x10
jne 0x510c0fc1
lea eax, [ebp - 0x154]
lea edx, [ebp - 0x120]
mov ecx, 0x104
call fcn.51004314
mov eax, dword [ebp - 0x154]
lea edx, [ebp - 0x150]
call fcn.51008414
mov edx, dword [ebp - 0x150]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x14c]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x510c0f84
push ebx
call sub.kernel32.dll_FindClose_1
mov byte [ebp - 5], 1
jmp 0x510c0fea
call sub.kernel32.dll_GetLastError
cmp eax, 2
sete byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510c1008
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x510c5bb0
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
mov ebx, eax
mov al, byte [ebx + 4]
sub al, 1
jb 0x510c5bbf
je 0x510c5bc7
jmp 0x510c5bef
mov eax, dword [ebx + 8]
mov dword [esp], eax
jmp 0x510c5bf4
cmp dword [ebx + 8], 0
jne 0x510c5be7
lea eax, [ebx + 8]
push eax
xor eax, eax
mov al, byte [ebx + 0xc]
push eax
mov eax, dword [0x510ce340]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
mov eax, dword [ebx + 8]
mov dword [esp], eax
jmp 0x510c5bf4
xor eax, eax
mov dword [esp], eax
mov eax, dword [esp]
pop edx
pop ebx
ret

Function at 0x510cb484
Capabilities:
Shutdown system

Disassembly:
push ebx
mov ebx, eax
mov al, byte [0x510cfdf4]
dec eax
sub al, 4
jb 0x510cb495
sub al, 3
jne 0x510cb4a0
push 2
push 2
call sub.user32.dll_ExitWindowsEx
pop ebx
ret
mov eax, ebx
call fcn.510cb4fc
test eax, eax
jne 0x510cb4c4
push 0x40
push 0x510cb4c8
push 0x510cb4d4
mov eax, ebx
call fcn.5105807c
push eax
call sub.user32.dll_MessageBoxA_1
pop ebx
ret
Function at 0x510cb4fc
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffdc
call sub.kernel32.dll_GetCurrentProcess
push esp
push 0x28
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [esp + 8]
push eax
push 0x510cb578
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 0x10], 2
mov dword [esp + 0x14], 1
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push 0
push 0x10
lea eax, [esp + 0x20]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push 2
call sub.user32.dll_ExitWindowsEx
or eax, 0xffffffff
add esp, 0x24
ret
Function at 0x81d3e8
Capabilities:
Encode data using xor

Disassembly:
cli
dec esp
salc
mov edi, 0x59068740
xor dword [ebp - 0xb21d903], ecx
fdivrp st(4)
add eax, 0xc085c534
jle 0x81d407
aad 0xff
call dword [0x5f3b847c]
cmp eax, esi
xor dl, cl
jbe 0x81d3f3
push 0xffffffffffffff89
xor eax, 0x1118c744
out dx, al
fadd qword [0xf40be4]
push dword [0xbb086f3b]
out 0xfa, eax
push 0x7200ea60
test al, 0x94
jb 0x81d45e
dec ecx
inc ecx
mov cs, word [edx + esi*2]
sub al, 1
ficomp dword [ebx + 0x6d]
test al, 0xf7
push esp
xor ecx, ebp
call fcn.007a28b7
xor eax, eax
add esp, 0x460ef
js 0x81d42f
add byte [eax + 0x56bcf4bc], 0x5d
pop esp
sar byte [esi + esi*2], 1
inc esp
mov esp, 0xe9f8682e
sti
add al, 0xc3
invalid
sbb al, 0x37
lahf
sub esp, 0x4d2b6e28
aas
inc ecx
popfd
clc
lea ebx, [eax - 0x43fd3398]
jmp [ecx]
Function at 0x9b43c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x65f00d
lea edi, [esi - 0x25e00d]
push edi
or ebp, 0xffffffff
jmp 0x9b43e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x9b43e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9b43d8
mov eax, 1
add ebx, ebx
jne 0x9b43fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9b43f0
jne 0x9b440c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9b43f0
xor ecx, ecx
sub eax, 3
jb 0x9b4420
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x9b4492
mov ebp, eax
add ebx, ebx
jne 0x9b442b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x9b4438
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x9b445c
inc ecx
add ebx, ebx
jne 0x9b4448
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9b443d
jne 0x9b4459
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9b443d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9b447c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9b446d
jmp 0x9b43de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9b447c
add edi, ecx
jmp 0x9b43de
pop esi
mov edi, esi
mov ecx, 0x184b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x9b449a
cmp byte [edi], 0x11
jne 0x9b449a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x9b449f
lea edi, [esi + 0x5b0000]
mov eax, dword [edi]
or eax, eax
je 0x9b450e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5b6f9c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5b6ff4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x9b44cc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5b6ffc]
or eax, eax
je 0x9b4508
mov dword [ebx], eax
add ebx, 4
jmp 0x9b44e9
call dword [esi + 0x5b6ff8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x9b453f
cmp al, 0xef
ja 0x9b4532
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x9b4514
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x9b4521
mov ebp, dword [esi + 0x5b7000]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x9b4573
sub esp, 0xffffff80
jmp 0x40f16c