joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4f6d
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xcf24ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
push 0xffffffffffffffff
lea ecx, [ecx + 4]
call fcn.004a5c25
mov edx, dword [ebp - 0x14]
mov dword [edx], 0xf448b4
xor eax, eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], eax
mov dword [ebp - 4], 1
xor eax, eax
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [ebp - 4], 2
xor eax, eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], eax
mov dword [ebp - 4], 3
xor eax, eax
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], eax
mov dword [edx + 0x40], eax
mov dword [ebp - 4], 4
xor eax, eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], eax
mov dword [edx + 0x4c], eax
mov dword [ebp - 4], 5
xor eax, eax
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], eax
mov dword [edx + 0x58], eax
mov dword [ebp - 4], 6
mov ecx, edx
mov dword [ecx + 0x5c], 0
call fcn.004a50cd
mov ebx, eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4a50b7
test ebx, ebx
jl 0x4a505b
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0x104
lea ecx, [eax + 0x60]
push edx
push ecx
call 0xd5b3d1
add esp, 0xc
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4a507c
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
lea esi, [eax + 0x164]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x4a506e
push ebx
push 0x92
push 0xd272dc
push 0xd26b80
push 6
call fcn.004a6a3d
add esp, 0x14
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov dword [edx], ebx
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
push 0xd272ec
push 1
call fcn.004a6a3d
add esp, 8
mov ebx, 0x80070057
jmp 0x4a505b
Function at 0x4ba24d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c2340
cmp edx, dword [eax]
je 0x4ba26f
add eax, 8
inc ecx
cmp eax, 0x4c23d0
jl 0x4ba260
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c2340]
jne 0x4ba39d
mov eax, dword [0x4c6ccc]
cmp eax, 1
je 0x4ba377
test eax, eax
jne 0x4ba2a0
cmp dword [0x4c226c], 1
je 0x4ba377
cmp edx, 0xfc
je 0x4ba39d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba2d7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bac30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb0c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba31a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb0c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bf884
push edi
call fcn.004bcf90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bac30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bac40
lea eax, [ebp - 0xa0]
push 0x4bf864
push eax
call fcn.004bac40
push dword [esi + 0x4c2344]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bac40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bcf04
add esp, 0x2c
pop edi
jmp 0x4ba39d
lea eax, [ebp + 8]
lea esi, [esi + 0x4c2344]
push 0
push eax
push dword [esi]
call fcn.004bb0c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x1000a87a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x100271cf
call fcn.10015b54
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x1000a8d3
call fcn.10003e9c
mov esi, eax
jmp 0x1000a9a9
push ebx
push edi
push eax
call dword [sym.imp.kernel32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x1000a8ec
call fcn.10003e9c
jmp 0x1000a99b
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x1000a8e2
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.kernel32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x1000a926
mov esi, 0x8007000e
jmp 0x1000a99d
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10016e00
mov dword [ebp - 4], 1
jmp 0x1000a954
cmp dword [ebp - 0x418], esi
je 0x1000a91f
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x1000a8e2
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.10016e00
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000a9c2
lea ecx, [ebp - 0x418]
call fcn.10009448
mov eax, esi
call fcn.10015bb0
ret 0x10
Function at 0x1000f81c
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x1002753c
call fcn.10015ab5
mov ebx, ecx
mov eax, dword [ebx]
xor esi, esi
xor edi, edi
call dword [eax + 0x18]
cmp eax, esi
jne 0x1000f8a0
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
cmp dword [ebx + 0x44], esi
je 0x1000f8e0
push str.Excel.Application
lea ecx, [ebp - 0x10]
call fcn.10016e00
test al, al
je 0x1000f8b8
push 0xb
pop eax
mov word [ebp - 0x20], ax
xor eax, eax
mov word [ebp - 0x18], ax
mov eax, dword [ebx + 0x44]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
push 1
movsd dword es:[edi], dword [esi]
push str.Close
push eax
movsd dword es:[edi], dword [esi]
push 0
push 1
push ebx
mov byte [ebp - 4], 1
movsd dword es:[edi], dword [esi]
call fcn.10016e00
mov edi, eax
add esp, 0x28
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor esi, esi
jmp 0x1000f8d0
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x1000f83a
push 0x8007000e
call fcn.10016e00
mov eax, dword [ebx + 0x44]
push esi
push str.Close
push eax
push esi
push 1
push ebx
call fcn.10016e00
add esp, 0x18
mov edi, eax
mov eax, dword [ebx + 0x44]
cmp eax, esi
je 0x1000f8e0
mov dword [ebx + 0x44], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebx + 0x24], esi
je 0x1000f8ff
push str.Excel.Application
lea ecx, [ebp - 0x10]
call fcn.10016e00
test al, al
je 0x1000f8ff
push dword [ebx + 0x24]
call dword [sym.imp.kernel32.dll_DeleteFileW]
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
call fcn.10015b8d
ret
Function at 0x1000f910
Capabilities:
Terminate process

Disassembly:
push 0x820
mov eax, 0x10027562
call fcn.10015b1e
xor edi, edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x814], edi
cmp dword [esi + 0x40], edi
je 0x1000fa39
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esi + 0x40]
push edi
push str.Caption
push eax
lea eax, [ebp - 0x82c]
push eax
push 2
push esi
mov dword [ebp - 4], edi
call fcn.10016e00
add esp, 0x18
test eax, eax
jne 0x1000f99f
push dword [ebp - 0x824]
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.10016e00
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push edi
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x814], eax
mov eax, dword [esi]
lea ecx, [ebp - 0x818]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
mov ebx, eax
cmp ebx, edi
jl 0x1000f9d3
cmp dword [ebp - 0x818], edi
jne 0x1000f9d3
mov eax, dword [esi + 0x40]
push edi
push str.Quit
push eax
push edi
push 1
push esi
call fcn.10016e00
add esp, 0x18
mov ebx, eax
mov eax, dword [esi + 0x40]
cmp eax, edi
je 0x1000f9e3
mov dword [esi + 0x40], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp - 0x814], edi
je 0x1000fa39
cmp dword [ebp - 0x818], edi
jne 0x1000fa39
cmp ebx, edi
jge 0x1000fa39
lea eax, [ebp - 0x81c]
push eax
push dword [ebp - 0x814]
mov dword [ebp - 0x81c], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x81c]
push 1
push 0x1fffff
call dword [sym.imp.kernel32.dll_OpenProcess]
push 1
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov eax, ebx
call fcn.10015ba1
ret
Function at 0x100102b6
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0x214
mov eax, 0x1002769c
call fcn.10015b1e
mov ebx, dword [ebp + 8]
cmp dword [ebx + 8], 0
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x220], edi
je 0x100102e1
mov eax, reloc.OLEAUT32.dll_VariantCopyInd
jmp 0x10010485
lea ecx, [ebx - 0xc]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, dword [ebx + 0x14]
test esi, esi
jne 0x100102fa
mov eax, 0x80004005
jmp 0x10010485
mov eax, dword [ebp + 0x10]
mov edx, eax
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
and edx, ecx
cmp edx, ecx
sete cl
mov byte [esi + 0x31], cl
mov edx, eax
mov ecx, reloc.OLEAUT32.dll_SysReAllocStringLen
and edx, ecx
cmp edx, ecx
mov edx, dword [ebx + 0x14]
sete cl
mov byte [edx + 0x32], cl
mov ecx, reloc.OLEAUT32.dll_VariantClear
and eax, ecx
cmp eax, ecx
mov ecx, dword [ebx + 0x14]
sete al
mov byte [ecx + 0x33], al
mov ecx, dword [ebx + 0x14]
push edi
add ecx, 0x28
call fcn.10016e00
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x18]
xor esi, esi
cmp eax, esi
jne 0x10010424
mov dword [ebp - 0x21c], esi
push str.Excel.Application
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], esi
call fcn.10016e00
test al, al
je 0x10010462
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.10015d40
push 0x5c
push edi
call fcn.10016e00
add esp, 0x14
cmp eax, esi
jne 0x100103ab
push 0x2f
push edi
call fcn.10016e00
pop ecx
pop ecx
cmp eax, esi
je 0x100103d3
add eax, 2
push 0x2e
push eax
call fcn.10016e00
push 0x104
mov edi, eax
lea esi, [ebp - 0x218]
call fcn.10016e00
mov edi, dword [ebp - 0x220]
add esp, 0xc
xor esi, esi
cmp word [ebp - 0x218], si
je 0x10010451
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.kernel32.dll_CopyFileW]
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.10016e00
pop ecx
pop ecx
mov ecx, dword [ebx + 0x14]
add ecx, 0x24
test eax, eax
jne 0x10010443
lea eax, [ebp - 0x218]
push eax
call fcn.10016e00
push 0x80
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
jmp 0x10010449
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x21c], eax
cmp eax, esi
jne 0x10010358
push 0x8007000e
call fcn.10016e00
push edi
call fcn.10016e00
mov eax, dword [ebx + 0x14]
add eax, 0x24
jmp 0x1001046e
push dword [ebp - 0x21c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x100102f0
mov ecx, dword [ebx + 0x14]
push edi
add ecx, 0x24
call fcn.10016e00
push eax
lea ecx, [ebx + 0x10]
call fcn.10016e00
push dword [ebp - 0x21c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
call fcn.10015ba1
ret 0xc
Function at 0x1001212a
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x10027950
call fcn.10015b1e
mov ebx, dword [ebp + 8]
xor edi, edi
cmp ebx, edi
jne 0x10012149
xor eax, eax
jmp 0x1001221e
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, edi
je 0x1001221c
lea eax, [ebp - 0x23c]
push eax
push esi
mov dword [ebp - 0x23c], 0x22c
call sub.kernel32.dll_Process32FirstW
jmp 0x100121f2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.100120e9
and dword [ebp - 4], 0
push ebx
lea ecx, [ebp - 0x244]
call fcn.100120e9
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
call fcn.10011f97
lea ecx, [ebp - 0x244]
call fcn.10011f97
push dword [ebp - 0x240]
lea ecx, [ebp - 0x244]
call fcn.10016e00
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
test eax, eax
je 0x100121fc
call fcn.10011b75
mov ecx, dword [ebp - 0x240]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.10011b75
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x10012174
jmp 0x10012215
mov edi, dword [ebp - 0x234]
call fcn.10011b75
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.10011b75
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10015ba1
ret

Function at 0x10013c76
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10039078], 0
push esi
push edi
jne 0x10013bec
call fcn.10013b58
test eax, eax
je 0x10013c31
mov eax, dword [0x10039078]
cmp eax, 1
jne 0x10013c0d
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x10013c31
jmp 0x10013c73
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x10013c73
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10013c35
xor eax, eax
jmp 0x10013c73
mov eax, dword [esi]
push dword [0x10039078]
call edi
mov edi, eax
test edi, edi
je 0x10013c57
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x10013c73
lea edi, [esi + 0xff0]
push esi
push dword [0x10039078]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x10013c5d
mov eax, esi
pop edi
pop esi
ret
jmp 0x10013bd8

Function at 0x100155f6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10037a70]
jne 0x10015600
repz ret
jmp fcn.10017fba
Function at 0x10016e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x10016e0f
pop dword [ebp - 0x34]
mov eax, 0x119aae93
sub eax, 0x1994084
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x3ddce
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x44e3
xor ebx, ebx
add ebx, eax
mov esi, 0x10042200
add esi, dword [ebp - 0x34]
mov edi, 0xe9300bf2
sub edi, 0x719a76d3
xor dword [ebp - 8], edx
mov edx, dword [esi]
sub dword [ebp - 0x1c], 0x980c3107
xor edx, edi
add dword [ebp - 0x14], 0x6503dc34
mov dword [ebx], edx
sub dword [ebp - 0x24], 0x838ed27b
add ebx, 0x442ad40b
add ebx, 0xbbd52bf9
add esi, 0x82045018
add esi, 0x7dfbafec
loop 0x10016e5f
add eax, 0x1065f
mov ebx, eax
add eax, 5
mov ecx, 0xaef167c7
add ecx, 0x610e9839
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x405ce6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405cfd
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405d32
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405d2e
cmp edi, eax
jae 0x405d32
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405d20
cmp edi, eax
jb 0x405d36
xor eax, eax
jmp 0x405d40
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x405f37
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x405fc5
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x405f6e
cmp dword [ebp - 8], 2
jne 0x405fc4
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405bb0
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00405aa7
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x405fac
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x405fbc
push eax
call fcn.0048c44a
pop ecx
mov edx, esi
call fcn.00405a63
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x408269
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4a9063
call fcn.004a6288
sub esp, 0x2f4
push ebx
push esi
push edi
xor esi, esi
push 0xd2
lea eax, [ebp - 0xee]
push esi
push eax
mov word [ebp - 0xf0], si
call fcn.0048bb20
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x4082b4
xor eax, eax
jmp 0x408378
cdq
and edx, 3
add eax, edx
mov edi, eax
push 0x208
lea eax, [ebp - 0x2fe]
push esi
push eax
sar edi, 2
mov word [ebp - 0x300], si
call fcn.0048bb20
mov word [ebp - 0xf8], si
mov esi, dword [ebp + 8]
add esp, 0xc
add esi, 4
lea ebx, [ebp - 0xf0]
call fcn.00408951
test edi, edi
jle 0x408375
mov dword [ebp - 0x10], edi
and word [ebx + 4], 0
push 0x104
lea eax, [ebp - 0x300]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40836d
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00405bf0
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov edi, esi
call fcn.004088f6
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.0040596b
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00405bf0
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.004088f6
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040596b
add ebx, 8
dec dword [ebp - 0x10]
jne 0x4082fa
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x4083af
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x408430
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x408430
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
push str.EnumProcesses
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.GetModuleBaseNameW
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push str.GetModuleFileNameExW
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.GetProcessImageFileNameW
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x10], eax
pop edi
je 0x40842b
cmp dword [esi + 4], ebx
je 0x40842b
cmp dword [esi + 8], ebx
je 0x40842b
cmp dword [esi + 0xc], ebx
je 0x40842b
cmp eax, ebx
je 0x40842b
xor eax, eax
inc eax
jmp 0x40842d
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
pop ebx
ret
Function at 0x40855f
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4a7e52
call fcn.004a6288
sub esp, 0x224
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x22e]
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x230], si
call fcn.0048bb20
xor ecx, ecx
add esp, 0xc
inc ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.00406288
push 0x4b7514
push eax
mov dword [ebp - 4], esi
call fcn.004054f0
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
inc bl
call fcn.0040596b
test bl, bl
je 0x408735
mov ebx, str.___
push ebx
call fcn.0048c44a
mov esi, str.SystemRoot_
push esi
mov dword [ebp - 0x1c], eax
call fcn.0048c44a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00406288
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.004054f0
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.0040596b
test bl, bl
je 0x40864e
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.00406238
mov dword [ebp - 4], 2
call fcn.00404ed0
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x408704
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.00406288
push esi
push eax
mov dword [ebp - 4], 3
call fcn.004054f0
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.0040596b
test bl, bl
je 0x40870c
push 0x104
lea eax, [ebp - 0x230]
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
inc ecx
mov eax, edi
call fcn.00406238
mov esi, eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 4
call fcn.00405bf0
lea ecx, [ebp - 0x20]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004062c4
pop ecx
pop ecx
mov byte [ebp - 4], 6
call fcn.00404ed0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.0040596b
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.0040596b
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.0040596b
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jg 0x40871f
mov esi, edi
call fcn.00405bb0
jmp 0x40873c
cmp ecx, 1
jge 0x40872e
push 0x80070057
call fcn.00405a8f
cmp word [eax + 2], 0x3a
jne 0x408716
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40874e
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x408778
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret