joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442fed
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x459054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x238], esi
call fcn.00412c60
lea edi, [esi + 0x24c]
mov dword [esi], vtable.CWanHTCore.0
mov dword [esi + 0x248], 0
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x4046f5
mov eax, dword [edi]
jmp 0x4046f7
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov dword [esi + 0x264], ecx
mov dword [esi + 0x268], ecx
mov dword [esi + 0x26c], ecx
push 0x20a
push ecx
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
push eax
mov dword [esi + 0x270], esi
mov dword [esi + 0x274], esi
call fcn.00427f80
add esp, 0xc
lea eax, [ebp - 0x230]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4453e8
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp word [ebp - 0x230], 0
jne 0x404766
xor eax, eax
jmp 0x40477f
lea eax, [ebp - 0x230]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404770
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.00401e60
xor eax, eax
mov dword [ebp - 0x24], 0x6b0073
lea edx, [ebp - 0x24]
mov dword [ebp - 0x20], 0x6e0069
mov dword [ebp - 0x1c], 0x64002e
lea ecx, [edx + 2]
mov dword [ebp - 0x18], 0x740061
mov word [ebp - 0x14], ax
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4047b6
sub edx, ecx
lea eax, [ebp - 0x24]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00401c10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
Function at 0x407270
Capabilities:
Contain obfuscated stackstrings
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x459054]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x40747b
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40747a
call fcn.00401570
mov ecx, eax
call fcn.00409100
cmp eax, esi
cmovl esi, eax
cmp esi, 7
jl 0x40747a
cmp esi, 0xb
jle 0x4072ce
cmp esi, 0xff
jne 0x40747a
imul esi, eax, 0x3e8
jmp 0x4072d4
imul esi, esi, 0x3e8
test esi, esi
je 0x40747a
xor eax, eax
mov dword [ebp - 0xac], 0x6f0053
push ebx
mov word [ebp - 8], ax
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xb4]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0xac]
mov dword [ebp - 0xa8], 0x740066
push eax
push 0x80000001
mov dword [ebp - 0xa4], 0x610077
mov dword [ebp - 0xa0], 0x650072
mov dword [ebp - 0x9c], 0x4d005c
mov dword [ebp - 0x98], 0x630069
mov dword [ebp - 0x94], 0x6f0072
mov dword [ebp - 0x90], 0x6f0073
mov dword [ebp - 0x8c], 0x740066
mov dword [ebp - 0x88], 0x49005c
mov dword [ebp - 0x84], 0x74006e
mov dword [ebp - 0x80], 0x720065
mov dword [ebp - 0x7c], 0x65006e
mov dword [ebp - 0x78], 0x200074
mov dword [ebp - 0x74], 0x780045
mov dword [ebp - 0x70], 0x6c0070
mov dword [ebp - 0x6c], 0x72006f
mov dword [ebp - 0x68], 0x720065
mov dword [ebp - 0x64], 0x4d005c
mov dword [ebp - 0x60], 0x690061
mov dword [ebp - 0x5c], 0x5c006e
mov dword [ebp - 0x58], 0x650046
mov dword [ebp - 0x54], 0x740061
mov dword [ebp - 0x50], 0x720075
mov dword [ebp - 0x4c], 0x430065
mov dword [ebp - 0x48], 0x6e006f
mov dword [ebp - 0x44], 0x720074
mov dword [ebp - 0x40], 0x6c006f
mov dword [ebp - 0x3c], 0x46005c
mov dword [ebp - 0x38], 0x410045
mov dword [ebp - 0x34], 0x550054
mov dword [ebp - 0x30], 0x450052
mov dword [ebp - 0x2c], 0x42005f
mov dword [ebp - 0x28], 0x4f0052
mov dword [ebp - 0x24], 0x530057
mov dword [ebp - 0x20], 0x520045
mov dword [ebp - 0x1c], 0x45005f
mov dword [ebp - 0x18], 0x55004d
mov dword [ebp - 0x14], 0x41004c
mov dword [ebp - 0x10], 0x490054
mov dword [ebp - 0xc], 0x4e004f
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop ebx
test eax, eax
jne 0x40747a
push 4
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], esi
mov esi, dword [ebp - 0xb4]
push eax
push 4
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x40747a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00424ea2
mov esp, ebp
pop ebp
ret 8
Function at 0x409100
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x459054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20a
lea eax, [ebp - 0x250]
push 0
push eax
call fcn.00427f80
add esp, 0xc
lea eax, [ebp - 0x250]
push 0
push 0x2a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x44], 0x6e0049
mov word [ebp - 8], ax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x250]
mov dword [ebp - 0x40], 0x650074
push eax
mov dword [ebp - 0x3c], 0x6e0072
mov dword [ebp - 0x38], 0x740065
mov dword [ebp - 0x34], 0x450020
mov dword [ebp - 0x30], 0x700078
mov dword [ebp - 0x2c], 0x6f006c
mov dword [ebp - 0x28], 0x650072
mov dword [ebp - 0x24], 0x5c0072
mov dword [ebp - 0x20], 0x650069
mov dword [ebp - 0x1c], 0x700078
mov dword [ebp - 0x18], 0x6f006c
mov dword [ebp - 0x14], 0x650072
mov dword [ebp - 0x10], 0x65002e
mov dword [ebp - 0xc], 0x650078
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x40923b
lea eax, [ebp - 0x258]
mov dword [ebp - 0x254], 0
push eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x260], 0
push eax
lea eax, [ebp - 0x260]
mov dword [ebp - 0x25c], 0
push eax
lea eax, [ebp - 0x254]
mov dword [ebp - 0x258], 0
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.0040bd80
movzx eax, word [ebp - 0x254]
add esp, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret

Function at 0x409250
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4434c8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x459054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push 0
push 0x2000
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004083b0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x2000
cmovae eax, dword [ebp - 0x28]
push eax
push 0x4460e0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, eax
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x4092e4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x4092f1
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.004083b0
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0040a5f0
mov ecx, dword [ebp - 0x14]
add esp, 8
cmp ecx, 0x10
jb 0x409313
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00410c60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
Function at 0x409c30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x459054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x1c], 0x620066
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0x2e0071
mov dword [ebp - 0x14], 0x320035
lea edx, [ecx + 2]
mov dword [ebp - 0x10], 0x660066
mov dword [ebp - 0xc], 0x63002e
mov dword [ebp - 8], 0x6e
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409c73
push ebx
sub ecx, edx
lea eax, [ebp - 0x1c]
push edi
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0x100]
call fcn.00401e60
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x61002f
mov dword [ebp - 0x38], 0x690070
lea edx, [ecx + 2]
mov dword [ebp - 0x34], 0x75002f
mov dword [ebp - 0x30], 0x640070
mov dword [ebp - 0x2c], 0x740061
mov dword [ebp - 0x28], 0x2f0065
mov dword [ebp - 0x24], 0x650067
mov dword [ebp - 0x20], 0x74
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409cd2
sub ecx, edx
lea eax, [ebp - 0x3c]
sar ecx, 1
push ecx
push eax
lea ecx, [esi + 0x118]
call fcn.00401e60
xor eax, eax
mov dword [ebp - 0x64], 0x61002f
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x64]
pop edi
mov dword [ebp - 0x60], 0x690070
lea edx, [eax + 2]
mov dword [ebp - 0x5c], 0x75002f
mov dword [ebp - 0x58], 0x640070
mov dword [ebp - 0x54], 0x740061
mov dword [ebp - 0x50], 0x2f0065
mov dword [ebp - 0x4c], 0x650072
mov dword [ebp - 0x48], 0x6f0070
mov dword [ebp - 0x44], 0x740072
pop ebx
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409d40
sub eax, edx
lea ecx, [esi + 0x130]
sar eax, 1
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00401e60
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
Function at 0x40b960
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40ba69
cmp word [ebx], 0
je 0x40ba69
cmp word [ebx + 2], 0x3a
jne 0x40ba69
cmp word [ebx + 4], 0x5c
jne 0x40ba69
push esi
mov esi, ebx
push edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x40b996
sub esi, ecx
mov edx, 2
sar esi, 1
xor ecx, ecx
lea eax, [esi + 4]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00424ed6
add esp, 4
lea ecx, [esi + 1]
mov edi, eax
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
call ebx
cmp word [edi + esi*2 - 2], 0x5c
lea eax, [edi + esi*2]
je 0x40b9e6
push 2
push 0x4462a8
push eax
call ebx
lea eax, [edi + 6]
mov dword [ebp + 8], 1
push 0x5c
push eax
call fcn.00428fbd
mov esi, eax
add esp, 8
test esi, esi
je 0x40ba58
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ba1c
test al, 0x10
jne 0x40ba25
push 0
push edi
call ebx
test eax, eax
je 0x40ba51
mov eax, 0x5c
push eax
mov word [esi], ax
lea eax, [esi + 2]
push eax
call fcn.00428fbd
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ba07
push edi
call fcn.00424edf
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [ebp + 8], 0
push edi
call fcn.00424edf
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x40bb60
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10f8
call fcn.00424ef0
mov eax, dword [0x459054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10f8], eax
cmp dword [esi + 0x14], 0x10
jb 0x40bb92
mov eax, dword [esi]
jmp 0x40bb94
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40bd63
test al, 0x10
jne 0x40bd63
cmp dword [esi + 0x14], 0x10
jb 0x40bbb4
mov esi, dword [esi]
push ebx
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40bd44
lea eax, [ebp - 0x10f4]
push eax
call fcn.0040d050
push 0x1000
lea eax, [ebp - 0x1054]
push 0
push eax
call fcn.00427f80
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x10
nop
test edi, edi
je 0x40bc11
push 0
push edi
call ebx
test eax, eax
je 0x40bce1
push 0
lea eax, [ebp - 0x1058]
push eax
push 0x1000
lea eax, [ebp - 0x1054]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40bc5b
mov eax, dword [ebp - 0x1058]
test eax, eax
je 0x40bc5b
push eax
lea eax, [ebp - 0x1054]
push eax
lea eax, [ebp - 0x10f4]
push eax
call fcn.0040d090
add esp, 0xc
cmp dword [ebp - 0x1058], 0
ja 0x40bc00
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x10f4]
mov dword [ebp - 0xb], 0
xorps xmm0, xmm0
mov word [ebp - 7], 0
push eax
movq qword [ebp - 0x13], xmm0
mov byte [ebp - 5], 0
call fcn.0040cfa0
push 0x40
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00427f80
push 0x3f
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040d160
add esp, 0x20
cmp byte [ebp - 0x54], 0
jne 0x40bd04
mov esi, dword [ebp - 0x10f8]
lea eax, [ebp - 0x54]
xor ecx, ecx
push ecx
push eax
mov ecx, esi
call fcn.00408590
xor eax, eax
cmp dword [esi + 0x10], eax
pop ebx
pop edi
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10f8]
push 0x44629c
call fcn.0040b920
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x54]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bd10
mov esi, dword [ebp - 0x10f8]
lea eax, [ebp - 0x54]
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.00408590
xor eax, eax
cmp dword [esi + 0x10], eax
pop ebx
pop edi
setne al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x10f8]
xor eax, eax
pop ebx
pop edi
cmp dword [esi + 0x10], eax
pop esi
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
Function at 0x40bd80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x459054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
test edi, edi
jne 0x40bdc1
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x40bde9
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
push esi
push ebx
call fcn.00424ed6
mov esi, eax
add esp, 4
test esi, esi
jne 0x40be0a
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
push esi
push ebx
push 0
push edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40be68
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4462a8
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40be68
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, ecx
shr eax, 0x10
mov word [edi], ax
mov eax, dword [ebp - 0x18]
mov word [eax], cx
mov eax, edx
mov ecx, dword [ebp - 0x1c]
shr eax, 0x10
mov word [ecx], ax
mov eax, dword [ebp - 0x20]
mov word [eax], dx
push esi
call fcn.00424edf
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop esi
pop ebx
pop edi
call fcn.00424ea2
mov esp, ebp
pop ebp
ret

Function at 0x40c180
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c200
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [ebp + 0xc]
mov ecx, eax
mov dword [ebx], ecx
cmp ecx, 0xffffffff
je 0x40c1f8
xor eax, eax
add ecx, 1
setb al
neg eax
or eax, ecx
push eax
call fcn.0042d380
mov esi, eax
add esp, 4
test esi, esi
je 0x40c1f8
push 0
push ebx
push dword [ebx]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
pop ebx
pop edi
mov byte [esi + eax], 0
mov eax, esi
pop esi
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40c4a0
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4437c8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x459054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
cmp word [esi], ax
jne 0x40c4f1
xor ecx, ecx
jmp 0x40c505
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c4f6
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.00401e60
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], eax
mov word [ebp - 0x60], ax
cmp word [esi], ax
jne 0x40c545
xor ecx, ecx
jmp 0x40c55f
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c550
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x60]
call fcn.00401e60
push 0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040be90
mov eax, dword [ebp - 0x4c]
add esp, 0xc
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x40c598
inc eax
lea ecx, [ebp - 0x60]
push eax
push dword [ebp - 0x60]
call fcn.00401f60
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.0040b960
add esp, 4
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c607
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push 0
push eax
push ebx
push dword [ebp - 0x48]
mov dword [ebp - 0x14], 0
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40c607
cmp dword [ebp - 0x14], ebx
jne 0x40c607
mov esi, 1
jmp 0x40c609
xor esi, esi
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x40c61e
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00401f60
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp ecx, 8
jb 0x40c647
inc ecx
push ecx
push dword [ebp - 0x44]
lea ecx, [ebp - 0x44]
call fcn.00401f60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
Function at 0x40c820
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x459054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x24c], esi
test ebx, ebx
je 0x40c9f6
test esi, esi
je 0x40c9f6
push edi
push 0x124
lea eax, [ebp - 0x244]
mov dword [ebp - 0x248], 0x128
push 0
push eax
call fcn.00427f80
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x40c9e3
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40c9dc
nop dword [eax + eax]
lea eax, [ebp - 0x224]
push esi
push eax
call fcn.0042b879
add esp, 8
test eax, eax
jne 0x40c9c7
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x120]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x118]
mov dword [ebp - 0x11c], 0
push eax
push str.SeShutdownPrivilege
xorps xmm0, xmm0
mov dword [ebp - 0x110], 0
push 0
movq qword [ebp - 0x118], xmm0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 1
push eax
push 0
push dword [ebp - 0x120]
mov dword [ebp - 0x110], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x240]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x40c9ba
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40c970
sub eax, edx
je 0x40c9ba
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c990
sub ecx, edx
lea eax, [ebp - 0x10c]
push ecx
push eax
push ebx
call fcn.0042e476
add esp, 0xc
test eax, eax
jne 0x40c9ba
test esi, esi
je 0x40c9ba
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24c]
lea eax, [ebp - 0x248]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40c8a0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
Function at 0x40ca10
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x459054]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
jne 0x40ca40
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
push edi
push 0x228
lea eax, [ebp - 0x240]
mov dword [ebp - 0x244], 0x22c
push 0
push eax
call fcn.00427f80
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ca84
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424ea2
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x244]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40cb5e
nop dword [eax]
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.0042d206
add esp, 8
test eax, eax
je 0x40caca
lea eax, [ebp - 0x244]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40caa0
jmp 0x40cb5e
cmp dword [ebp + 0xc], 0
mov ebx, 1
je 0x40cb5e
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 0
push eax
push str.SeShutdownPrivilege
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push 0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x23c]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424ea2
mov esp, ebp
pop ebp
ret

Function at 0x40d050
Capabilities:
Hash data with md5

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