joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482afc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406244
xor eax, eax
push ebp
push 0x482b6e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x20e]
push eax
mov eax, dword [ebp - 4]
call fcn.004062e8
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
je 0x482b4e
mov edx, ebx
lea eax, [ebp - 0x20e]
call fcn.0040dda8
jmp 0x482b58
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040625c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482b75
lea eax, [ebp - 4]
call fcn.0040624c
ret

Function at 0x482b7c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf4
mov ebx, eax
mov eax, ebx
xor edx, edx
call fcn.0040625c
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
test eax, eax
jbe 0x482baf
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.0040645c
add esp, 0x20c
pop ebx
ret

Function at 0x482c30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406244
xor eax, eax
push ebp
push 0x482d44
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0048289c
test al, al
je 0x482c68
xor ebx, ebx
jmp 0x482d29
mov eax, dword [ebp - 4]
call fcn.004062e8
push eax
call sub.shlwapi.dll_PathFileExistsW_1
cmp eax, 1
sbb ebx, ebx
inc ebx
cmp byte [0x53f268], 0
je 0x482ca7
test bl, bl
jne 0x482ca7
call fcn.00483188
mov eax, dword [ebp - 4]
call fcn.004062e8
push eax
call sub.shlwapi.dll_PathFileExistsW_1
cmp eax, 1
sbb ebx, ebx
inc ebx
call fcn.00483210
test bl, bl
jne 0x482d29
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040d8ac
cmp dword [ebp - 8], 0
jne 0x482d29
mov edi, 5
mov esi, 0x5373f0
lea eax, [ebp - 0xc]
mov ecx, dword [esi]
mov edx, dword [ebp - 4]
call fcn.00406730
mov eax, dword [ebp - 0xc]
call fcn.004062e8
push eax
call sub.shlwapi.dll_PathFileExistsW_1
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x482d29
cmp byte [0x53f268], 0
je 0x482d23
test bl, bl
jne 0x482d23
call fcn.00483188
lea eax, [ebp - 0x10]
mov ecx, dword [esi]
mov edx, dword [ebp - 4]
call fcn.00406730
mov eax, dword [ebp - 0x10]
call fcn.004062e8
push eax
call sub.shlwapi.dll_PathFileExistsW_1
cmp eax, 1
sbb ebx, ebx
inc ebx
call fcn.00483210
add esi, 4
dec edi
jne 0x482cc6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482d4b
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406254
ret

Function at 0x48c724
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo_1
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x4a071c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x55f504
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4a073e
shr eax, 1
xor eax, 0xedb88320
jmp 0x4a0740
shr eax, 1
dec edx
jne 0x4a072c
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4a0725
mov byte [0x55f904], 1
pop esi
pop ebx
ret

Function at 0x4a075c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x55f904], 0
jne 0x4a0773
call fcn.004a071c
mov eax, edi
dec eax
test eax, eax
jl 0x4a079b
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x55f504]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4a077d
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4a34e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x4a3582.0
jmp dword [ecx*4 + 0x4a351b]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4a354d
sub dl, 8
je 0x4a355c
jmp case.0x4a3582.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a3190
jmp case.0x4a3582.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a31e8
jmp case.0x4a3582.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x4a3582.0
movzx ecx, byte [ecx + 0x4a3589]
jmp dword [ecx*4 + 0x4a359a]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a3294
jmp case.0x4a3582.0
cmp dl, 3
jne 0x4a35c7
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a32ec
jmp case.0x4a3582.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a32a8
jmp case.0x4a3582.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a3330
jmp case.0x4a3582.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4a35f2
sub dl, 8
je 0x4a35fe
jmp case.0x4a3582.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a335c
jmp case.0x4a3582.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a33c8
jmp case.0x4a3582.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x4a361d
sub dl, 8
je 0x4a3629
jmp case.0x4a3582.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a3484
jmp case.0x4a3582.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x4a34ac
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x10], edx
mov esi, ecx
test esi, esi
jb 0x4a36cb
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004a2694
test eax, eax
je 0x4a36cb
mov eax, ebx
call fcn.004a36d4
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x4a3664
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a36d4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x4a3705
dec al
je 0x4a3740
dec al
je 0x4a3785
dec al
je 0x4a37ee
jmp 0x4a3878
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4a3878
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4a3715
jmp 0x4a3878
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4a3878
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x4a3750
jmp 0x4a3878
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4a3878
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4a37b4
xor ebp, ebp
jmp 0x4a37c4
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x4a37cd
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4a3795
jmp 0x4a3878
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4a3878
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x4a3847
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.004a07a4
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4a3802
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a8318
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd8
mov esi, edx
lea edi, [esp + 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
mov dword [esp], eax
lea eax, [esp + 0x14]
call fcn.004a8188
mov dword [esp + 8], eax
lea eax, [esp + 0x14]
call fcn.004a8190
dec eax
test eax, eax
jl 0x4a83fc
inc eax
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0
mov edx, dword [esp + 0x18]
add edx, dword [esp + 4]
mov eax, dword [esp]
call fcn.0049cad8
mov dword [esp + 0xc], eax
mov edi, dword [esp + 8]
dec edi
test edi, edi
jl 0x4a83ee
inc edi
xor ebp, ebp
mov eax, dword [esp + 0x14]
add eax, ebp
mov edx, dword [esp + 0xc]
lea ebx, [edx + eax*4]
movzx eax, byte [ebx + 2]
imul esi
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fdiv dword [0x4a8404]
call fcn.0040361c
mov byte [ebx + 2], al
movzx eax, byte [ebx + 1]
imul esi
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fdiv dword [0x4a8404]
call fcn.0040361c
mov byte [ebx + 1], al
movzx eax, byte [ebx]
imul esi
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fdiv dword [0x4a8404]
call fcn.0040361c
mov byte [ebx], al
movzx eax, byte [ebx + 3]
imul esi
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebx + 3], al
inc ebp
dec edi
jne 0x4a837a
inc dword [esp + 4]
dec dword [esp + 0x10]
jne 0x4a835a
add esp, 0x28
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b3154
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, edx
mov ebx, eax
cmp word [ebx + 0x1b2], 0
je 0x4b3176
mov edx, esi
mov eax, dword [ebx + 0x1b4]
call dword [ebx + 0x1b0]
mov edx, esi
mov eax, ebx
call fcn.004b2084
cmp dword [ebx + 0x9c], 0
je 0x4b3369
cmp dword [ebx + 0xa0], 0
je 0x4b3369
mov dword [ebx + 0x170], esi
mov ecx, dword [ebx + 4]
mov dl, 1
mov eax, dword [0x4ae984]
call fcn.004af258
mov edi, eax
mov dword [ebx + 0xd4], edi
xor edx, edx
mov eax, edi
call fcn.0046fcbc
mov eax, dword [ebx + 0xd4]
mov dword [eax + 0xcc], ebx
mov dword [eax + 0xc8], 0x4b356c
mov dword [eax + 0xc4], ebx
mov dword [eax + 0xc0], 0x4b3708
mov dword [eax + 0xd4], ebx
mov dword [eax + 0xd0], 0x4b3784
mov dword [eax + 0x144], ebx
mov dword [eax + 0x140], fcn.004afb98
mov edx, dword [ebx + 0x9c]
call fcn.004564b8
mov edx, dword [ebx + 0xa0]
mov eax, dword [ebx + 0xd4]
call fcn.004564ec
mov eax, dword [ebx + 0x98]
call fcn.0046e998
mov edi, eax
add edi, dword [esi + 0x44]
mov edx, esp
mov eax, dword [0x5391c0]
mov eax, dword [eax]
call fcn.00475f30
mov eax, dword [esp + 0xc]
mov edx, dword [ebx + 0xa0]
add edx, edi
cmp eax, edx
jge 0x4b3272
mov eax, dword [ebx + 0x98]
call fcn.0046e998
mov edx, eax
add edx, dword [esi + 0x44]
sub edx, dword [ebx + 0xa0]
mov eax, dword [ebx + 0xd4]
call fcn.00474350
jmp 0x4b327f
mov edx, edi
mov eax, dword [ebx + 0xd4]
call fcn.00474350
mov eax, dword [ebx + 0xd4]
call fcn.0046e998
test eax, eax
jge 0x4b329b
xor edx, edx
mov eax, dword [ebx + 0xd4]
call fcn.00474350
mov eax, dword [ebx + 0x98]
call fcn.0046e978
mov edx, dword [ebx + 0x98]
add eax, dword [edx + 0x48]
mov edx, dword [ebx + 0x38]
mov esi, dword [edx + 0x68]
sub eax, dword [esi + 4]
sub eax, dword [esi + 0xc]
add eax, 2
mov esi, eax
mov edx, esp
mov eax, dword [0x5391c0]
mov eax, dword [eax]
call fcn.00475f30
mov eax, dword [esp + 8]
mov edx, dword [ebx + 0x9c]
add edx, esi
cmp eax, edx
jge 0x4b32fa
mov eax, dword [ebx + 0x98]
call fcn.0046e978
mov esi, eax
sub esi, dword [ebx + 0x9c]
mov eax, dword [ebx + 0x38]
mov eax, dword [eax + 0x68]
add esi, dword [eax + 0xc]
mov edx, esi
mov eax, dword [ebx + 0xd4]
call fcn.00474314
push 0xffffffffffffffec
mov eax, dword [ebx + 0xd4]
call fcn.0045f5e0
push eax
call sub.user32.dll_GetWindowLongW
or eax, 0x80000
push eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0xd4]
call fcn.0045f5e0
push eax
call sub.user32.dll_SetWindowLongW
mov byte [ebx + 0xd0], 0
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xd2], 0
mov byte [ebx + 0xd3], 0
mov eax, ebx
call fcn.004b2c44
push 4
mov eax, dword [ebx + 0xd4]
call fcn.0045f5e0
push eax
call sub.user32.dll_ShowWindow
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4b3840
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, edx
mov ebx, eax
cmp word [ebx + 0x1ba], 0
je 0x4b3862
mov edx, ebx
mov eax, dword [ebx + 0x1bc]
call dword [ebx + 0x1b8]
mov edx, esi
mov eax, ebx
call fcn.004b2298
cmp dword [ebx + 0xd8], 0
je 0x4b3a29
cmp dword [ebx + 0xdc], 0
je 0x4b3a29
mov dword [ebx + 0x174], esi
mov ecx, dword [ebx + 4]
mov dl, 1
mov eax, dword [0x4ae984]
call fcn.004af258
mov edi, eax
mov dword [ebx + 0x110], edi
xor edx, edx
mov eax, edi
call fcn.0046fcbc
mov eax, dword [ebx + 0x110]
mov dword [eax + 0xcc], ebx
mov dword [eax + 0xc8], 0x4b3c2c
mov dword [eax + 0xc4], ebx
mov dword [eax + 0xc0], 0x4b3d8c
mov dword [eax + 0xd4], ebx
mov dword [eax + 0xd0], 0x4b3e08
mov edx, dword [ebx + 0xd8]
call fcn.004564b8
mov edx, dword [ebx + 0xdc]
mov eax, dword [ebx + 0x110]
call fcn.004564ec
mov eax, dword [ebx + 0xd4]
call fcn.0046e998
add eax, dword [esi + 0x44]
mov esi, eax
mov edx, esp
mov eax, dword [0x5391c0]
mov eax, dword [eax]
call fcn.00475f30
mov eax, dword [esp + 0xc]
mov edx, dword [ebx + 0xdc]
add edx, esi
cmp eax, edx
jge 0x4b3954
mov eax, dword [ebx + 0xd4]
call fcn.0046e998
mov edx, eax
mov eax, dword [ebx + 0xd4]
add edx, dword [eax + 0x4c]
sub edx, dword [ebx + 0xdc]
mov eax, dword [ebx + 0x110]
call fcn.00474350
jmp 0x4b3961
mov edx, esi
mov eax, dword [ebx + 0x110]
call fcn.00474350
mov eax, dword [ebx + 0xd4]
call fcn.0046e978
mov esi, eax
mov eax, dword [ebx + 0xd4]
add esi, dword [eax + 0x48]
mov eax, dword [ebx + 0x38]
mov eax, dword [eax + 0x68]
sub esi, dword [eax + 4]
mov edx, esp
mov eax, dword [0x5391c0]
mov eax, dword [eax]
call fcn.00475f30
mov eax, dword [esp + 8]
mov edx, dword [ebx + 0xd8]
add edx, esi
cmp eax, edx
jge 0x4b39ba
mov eax, dword [ebx + 0xd4]
call fcn.0046e978
mov esi, eax
sub esi, dword [ebx + 0xd8]
mov eax, dword [ebx + 0x38]
mov eax, dword [eax + 0x68]
add esi, dword [eax + 0xc]
mov edx, esi
mov eax, dword [ebx + 0x110]
call fcn.00474314
push 0xffffffffffffffec
mov eax, dword [ebx + 0x110]
call fcn.0045f5e0
push eax
call sub.user32.dll_GetWindowLongW
or eax, 0x80000
push eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x110]
call fcn.0045f5e0
push eax
call sub.user32.dll_SetWindowLongW
mov byte [ebx + 0x10c], 0
mov byte [ebx + 0x10d], 0
mov byte [ebx + 0x10e], 0
mov byte [ebx + 0x10f], 0
mov eax, ebx
call fcn.004b2d1c
push 4
mov eax, dword [ebx + 0x110]
call fcn.0045f5e0
push eax
call sub.user32.dll_ShowWindow
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4c2db8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406244
xor eax, eax
push ebp
push 0x4c2e48
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call fcn.0040625c
mov dword [ebp - 8], 0x105
lea eax, [ebp - 0x212]
xor ecx, ecx
mov edx, 0x20a
call fcn.00403a70
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 4]
call fcn.004062e8
push eax
call sub.kernel32.dll_GetVolumePathNamesForVolumeNameW
test eax, eax
je 0x4c2e32
mov eax, ebx
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.0040645c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2e4f
lea eax, [ebp - 4]
call fcn.0040624c
ret
Function at 0x4c2e54
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406244
xor eax, eax
push ebp
push 0x4c2ffd
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 2
mov edx, dword [ebp - 4]
mov eax, 0x4c3018
call fcn.0040acd0
mov ebx, eax
lea ecx, [ebx + 1]
mov edx, dword [ebp - 4]
mov eax, 0x4c3018
call fcn.0040acd0
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4c2ebf
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4c2ebf
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004058c8
mov esi, eax
test esi, esi
je 0x4c2eca
sub esi, 4
mov esi, dword [esi]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00406a08
mov eax, dword [ebp - 4]
test eax, eax
je 0x4c2ef7
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4c2ef7
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004058c8
test eax, eax
je 0x4c2f00
sub eax, 4
mov eax, dword [eax]
lea edx, [ebp - 4]
mov ecx, eax
mov eax, ebx
xchg edx, eax
call fcn.00406ad8
mov si, 0x41
lea eax, [ebp - 8]
mov edx, 0x3e8
call fcn.004065d8
mov eax, dword [ebp - 8]
test eax, eax
je 0x4c2f3b
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4c2f3b
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.004058c8
mov ebx, eax
test ebx, ebx
je 0x4c2f46
sub ebx, 4
mov ebx, dword [ebx]
push ebx
mov eax, dword [ebp - 8]
call fcn.004062e8
push eax
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.004063c8
lea eax, [ebp - 0x10]
mov edx, 0x4c3028
call fcn.00406670
mov eax, dword [ebp - 0x10]
call fcn.004062e8
push eax
call sub.kernel32.dll_QueryDosDeviceW
test eax, eax
je 0x4c2fc0
mov eax, dword [ebp - 8]
call fcn.004062e8
mov edx, eax
lea eax, [ebp - 8]
call fcn.00406408
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040c6bc
test al, al
je 0x4c2fc0
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004063c8
push dword [ebp - 0x14]
push 0x4c3028
mov eax, dword [ebp - 0xc]
push dword [eax]
mov eax, dword [ebp - 0xc]
mov edx, 3
call fcn.00406814
jmp 0x4c2fd5
inc esi
cmp si, 0x5b
jne 0x4c2f11
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.0040625c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c3004
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406254
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406254
ret
Function at 0x4c3168
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4c3253
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call fcn.0040625c
test esi, esi
je 0x4c3238
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 4]
mov ecx, 4
mov eax, esi
call fcn.004c2550
test eax, eax
je 0x4c31f1
mov eax, ebx
mov edx, 0x104
call fcn.004065d8
push 0x104
mov eax, dword [ebx]
call fcn.004062e8
mov ecx, eax
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004c2580
test eax, eax
je 0x4c3238
mov eax, dword [ebx]
call fcn.004062e8
call fcn.0040da5c
mov edx, eax
mov eax, ebx
call fcn.004065d8
jmp 0x4c3238
mov eax, ebx
mov edx, 0x104
call fcn.004065d8
push 0x104
mov eax, dword [ebx]
call fcn.004062e8
push eax
push esi
call sub.psapi.dll_GetProcessImageFileNameW
test eax, eax
je 0x4c3238
mov eax, dword [ebx]
call fcn.004062e8
lea edx, [ebp - 0x10]
call fcn.0040dda8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.004c2e54
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0040625c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c325a
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00406254
ret

Function at 0x4c3b18
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0040625c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1c]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x18]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
call fcn.004062e8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4c3b85
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
push 0x4c3b8c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4c3b85
mov eax, dword [ebp + 8]
push eax
mov edx, ebx
mov eax, esi
call fcn.004c39fc
pop ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x4c41a4
Capabilities:
Get session user name

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, eax
mov eax, dword [0x538d74]
cmp dword [eax], 5
jne 0x4c41fa
cmp dword [esi + 0x38], 0
je 0x4c41f6
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x200
call fcn.00403a70
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameW
lea eax, [esi + 0x38]
call fcn.00406cd4
mov edx, eax
lea eax, [esp + 4]
mov ecx, dword [esp]
call fcn.0040c518
mov ebx, eax
xor bl, 1
jmp 0x4c4211
mov bl, 1
jmp 0x4c4211
mov bl, 1
push esp
mov eax, dword [esi + 0xc]
push eax
call sub.Kernel32.dll_ProcessIdToSessionId
test eax, eax
je 0x4c4211
cmp dword [esp], 0
sete bl
mov eax, ebx
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4c4720
Capabilities:
Get memory capacity

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc0
mov ebx, eax
xor eax, eax
mov dword [ebx], eax
mov eax, esp
xor ecx, ecx
mov edx, 0x40
call fcn.00403a70
mov dword [esp], 0x40
push esp
call sub.kernel32.dll_GlobalMemoryStatusEx
test eax, eax
je 0x4c4756
mov edi, ebx
mov esi, esp
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
add esp, 0x40
pop edi
pop esi
pop ebx
ret

Function at 0x4c4abc
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, eax
push 5
call sub.user32.dll_GetDesktopWindow
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x4c4b2e
push ebx
call sub.user32.dll_GetParent
test eax, eax
jne 0x4c4b20
push esp
push ebx
call sub.user32.dll_GetWindowThreadProcessId
cmp ebp, dword [esp]
jne 0x4c4b20
mov esi, ebx
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
xor edi, edi
jmp 0x4c4b0f
push 0
push 0xf060
push 0x112
push esi
call sub.user32.dll_PostMessageW
inc edi
push esi
call sub.user32.dll_IsWindow
test eax, eax
je 0x4c4b2a
cmp edi, 0xa
jl 0x4c4afc
jmp 0x4c4b2a
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x4c4ad6
push ebp
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x4c4b57
push 0
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle_1
jmp 0x4c4b59
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret