joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457920
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x484968
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0047dbbf
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004572c0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0047daed
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0047a3b6
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0047a3b6
push 1
push 0
push 0
mov ecx, esi
call fcn.0047a35e
push 1
push 0
push 1
mov ecx, esi
call fcn.0047a35e
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047dc31
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x457aa0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x484988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0047dbbf
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004572c0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0047daed
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x457b64
cmp dword [esp + 0x40], 1
jne 0x457b62
cmp ecx, eax
jge 0x457b64
mov eax, ecx
cmp eax, 0xc8
jge 0x457b70
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00457920
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047dc31
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4582f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4849f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004787d1
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0047de67
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047f383
test eax, eax
je 0x45840c
mov ecx, dword [esp + 0x3c]
call fcn.0047de94
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4583d0
push edi
mov ecx, esi
call fcn.0047b500
mov ecx, esi
call fcn.00458570
cmp dword [esp + 0x38], 1
jne 0x458405
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0047b63b
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x45ae30
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45ae63
push esi
call fcn.0045df30
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45ae5c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45aee9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45aed2
mov eax, dword [esi + 8]
test eax, eax
je 0x45ae87
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45aece
cmp eax, 2
je 0x45aed2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45ae7a
cmp eax, 3
je 0x45aead
cmp eax, 1
jne 0x45ae7a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45ae7a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45ae7a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045af10
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45aef8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045af10
add esp, 4
pop esi
ret

Function at 0x4795c7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4795ff
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047767b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00477653
jmp 0x47960b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47acba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47acfc
call fcn.00480769
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47acfc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47acf3
xor eax, eax
jmp 0x47ad04
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047ad0a
pop edi
pop esi
pop ebx
ret 4

Function at 0x480c99
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x480cc7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x480ce5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00480bff
jmp 0x480ce5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x480ce5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00480bff
test edi, edi
mov eax, edi
jne 0x480ccf
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x402056
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e410
push 0x41ed4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 0x20], 0
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402137
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x402126
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403b84
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push 0x43d010
push 0x44fa00
call fcn.0041eab0
pop ecx
pop ecx
call fcn.00419289
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0xfffffff1
je 0x403c38
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffc5
je 0x403bd8
cmp dword [ebp - 0x18], 0xffffffc6
je 0x403c05
cmp dword [ebp - 0x18], 0xffffffde
je 0x403b43
cmp dword [ebp - 0x18], 0xffffffdf
je 0x403b71
cmp dword [ebp - 0x18], 0xffffffef
je 0x403b43
jmp 0x403c27
cmp dword [ebp - 8], 1
jne 0x403b53
call fcn.00416b9c
jmp 0x403c38
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
push 0x44fa00
call fcn.0041eac0
pop ecx
pop ecx
jmp 0x403c2e
cmp dword [ebp - 8], 1
jne 0x403b81
call fcn.00416b9c
jmp 0x403c38
push 2
push 0xfffffffffffffffd
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call fcn.0041ea20
pop ecx
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call fcn.0041c371
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 1
cmp dword [ebp - 0x10], 0
je 0x403bd6
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 8
jne 0x403bd6
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
je 0x403bd6
mov eax, dword [ebp - 0x10]
push dword [eax + 8]
push 0x44fa00
call fcn.0041eac0
pop ecx
pop ecx
jmp 0x403c2e
cmp dword [ebp - 4], 1
jne 0x403be3
jmp 0x403c72
mov dword [ebp - 4], 1
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push 0x436bd0
push 0x44fa00
call fcn.0041eac0
pop ecx
pop ecx
jmp 0x403c2e
cmp dword [ebp - 0xc], 1
jne 0x403c0d
jmp 0x403c72
mov dword [ebp - 0xc], 1
push 0x436bd4
push 0x44fa00
call fcn.0041eac0
pop ecx
pop ecx
jmp 0x403c2e
call fcn.00416b9c
jmp 0x403c38
call fcn.00419289
jmp 0x403b02
push 0x44fa00
call fcn.0041ea20
pop ecx
test eax, eax
je 0x403c68
push 0x44fa00
call fcn.0040394a
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x403c5d
jmp 0x403c72
push dword [ebp - 0x14]
call fcn.004084c6
pop ecx
jmp 0x403c70
push 7
call fcn.004084c6
pop ecx
jmp 0x403c80
push str.invalid_color_argument
push 3
call fcn.0041aa80
pop ecx
pop ecx
leave
ret
Function at 0x404d36
Capabilities:
Check if file exists
Copy file
Create directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
mov byte [ebp - 0x11], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x29
jne 0x404d0f
mov byte [ebp - 0x11], 2
push 0
push 3
push 8
lea eax, [ebp - 0x10]
push eax
call fcn.00409b6d
add esp, 0x10
push 0
push 3
push 8
lea eax, [ebp - 0x28]
push eax
call fcn.00409b6d
add esp, 0x10
and dword [0x43d000], 0
call fcn.00419289
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0xffffffc5
jne 0x404e1f
call fcn.00419289
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0xffffffde
je 0x404d67
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0xffffffef
jne 0x404e0b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x2c], eax
jmp 0x404d79
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movsx eax, byte [eax]
test eax, eax
je 0x404e09
mov eax, dword [ebp - 0x2c]
movsx eax, byte [eax]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x63
jg 0x404db6
cmp dword [ebp - 0x30], 0x63
je 0x404dd6
cmp dword [ebp - 0x30], 0x43
je 0x404dd6
cmp dword [ebp - 0x30], 0x48
je 0x404dca
cmp dword [ebp - 0x30], 0x52
je 0x404de2
cmp dword [ebp - 0x30], 0x53
je 0x404dee
jmp 0x404dfa
cmp dword [ebp - 0x30], 0x68
je 0x404dca
cmp dword [ebp - 0x30], 0x72
je 0x404de2
cmp dword [ebp - 0x30], 0x73
je 0x404dee
jmp 0x404dfa
movzx eax, byte [ebp - 0x11]
or eax, 8
mov byte [ebp - 0x11], al
jmp 0x404e04
movzx eax, byte [ebp - 0x11]
or eax, 0x20
mov byte [ebp - 0x11], al
jmp 0x404e04
movzx eax, byte [ebp - 0x11]
or eax, 0x10
mov byte [ebp - 0x11], al
jmp 0x404e04
movzx eax, byte [ebp - 0x11]
or eax, 4
mov byte [ebp - 0x11], al
jmp 0x404e04
mov dword [0x43d000], 0x57
jmp 0x404d72
jmp 0x404e15
mov dword [0x43d000], 0x57
call fcn.00419289
jmp 0x404d3f
call fcn.00416b9c
cmp dword [0x43d000], 0
jne 0x404e55
push dword [ebp - 0x11]
sub esp, 0x10
lea esi, [ebp - 0x28]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [ebp - 0x10]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040458c
add esp, 0x24
mov dword [0x43d000], eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
pop edi
pop esi
leave
ret
Function at 0x405e6d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.00419289
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x30
jne 0x405e43
mov dword [ebp - 8], 1
call fcn.00419289
jmp 0x405e47
and dword [ebp - 8], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0xffffffdf
je 0x405e5e
push str.expected_variable_declaration
push 1
call fcn.0041aa80
pop ecx
pop ecx
push 3
push 0xfffffffffffffffd
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call fcn.0041ea20
pop ecx
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
call fcn.0041c371
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x405e9e
mov eax, dword [ebp + 8]
push dword [eax + 0x1c]
push dword [ebp + 8]
call fcn.0041c1d7
pop ecx
pop ecx
mov dword [ebp - 4], eax
jmp 0x405f3c
cmp dword [ebp - 8], 0
jne 0x405ead
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp eax, 0x200c
jne 0x405ef1
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push dword [eax + 8]
call fcn.0041c618
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 8]
call dword [sym.imp.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
test eax, eax
je 0x405eef
push 0x436e1c
push 1
call fcn.0041aa80
pop ecx
pop ecx
jmp 0x405f3c
lea eax, [ebp - 0x10]
push eax
call fcn.0041c74e
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x405f3c
mov eax, dword [ebp - 4]
mov word [eax], 0x200c
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 0xc
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x405f2e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x405f3c
push 0x436e3c
push 1
call fcn.0041aa80
pop ecx
pop ecx
call fcn.00419289
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0xffffffcc
je 0x405f51
call fcn.00416b9c
jmp 0x405f70
call fcn.00419289
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0xffffffdf
je 0x405e2c
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x30
je 0x405e2c
leave
ret

Function at 0x406237
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0
push 1
push 8
lea eax, [ebp - 0x10]
push eax
call fcn.00409b6d
add esp, 0x10
push dword [ebp - 8]
call fcn.00412f18
pop ecx
mov dword [0x43d000], eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
leave
ret
Function at 0x40738a
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
and dword [ebp - 0x444], 0
cmp dword [ebp + 8], 0
jne 0x40729b
mov dword [0x43d000], 0x57
xor eax, eax
jmp 0x4073ed
push 0x20
push 0
lea eax, [ebp - 0x30]
push eax
call fcn.00420340
add esp, 0xc
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
and dword [ebp - 0x10], 0
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x10]
push eax
push 3
push 0x400
push 0x42e590
push 0xfffffffffffffffc
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push dword [ebp + 8]
call dword [eax + 0x18]
mov dword [0x43d000], eax
mov eax, dword [0x43d000]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0
je 0x40731c
cmp dword [ebp - 0x450], 0x80020009
je 0x40738c
jmp 0x4073e7
movzx eax, word [ebp - 0x440]
test eax, eax
je 0x40738a
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
je 0x40738a
and dword [ebp - 0x44c], 0
lea eax, [ebp - 0x44c]
push eax
push 0x42e560
mov eax, dword [ebp - 0x448]
mov eax, dword [eax]
push dword [ebp - 0x448]
call dword [eax]
mov dword [0x43d000], eax
cmp dword [0x43d000], 0
jne 0x407379
mov eax, dword [ebp - 0x44c]
mov dword [ebp - 0x444], eax
mov eax, dword [ebp - 0x448]
mov eax, dword [eax]
push dword [ebp - 0x448]
call dword [eax + 8]
jmp 0x4073e7
cmp dword [ebp - 0x18], 0
je 0x407399
lea eax, [ebp - 0x30]
push eax
call dword [ebp - 0x18]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push str.enumeration
push 0x42e43c
lea eax, [ebp - 0x430]
push eax
call fcn.0041e9c2
add esp, 0x14
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x28]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x24]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x430]
push eax
push dword [0x43d000]
call fcn.0041acec
pop ecx
pop ecx
mov eax, dword [ebp - 0x444]
leave
ret
Function at 0x408e25
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push 0xf0000000
push 1
push 0x437968
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x408de9
push 0x437994
push 0
call fcn.0041ac70
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x408e11
push 0x4379cc
push 0
call fcn.0041ac70
pop ecx
pop ecx
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x408e34
push 0x4379e4
push 0
call fcn.0041ac70
pop ecx
pop ecx
cmp dword [ebp + 0x18], 0
je 0x408e63
cmp dword [ebp + 0x1c], 0
je 0x408e63
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x408e63
push 0x4379f8
push 0
call fcn.0041ac70
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp - 8]
push 0x6801
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x408e8c
push 0x437a10
push 0
call fcn.0041ac70
pop ecx
pop ecx
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 0
push 1
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x408eb7
push str.Failed_to_encrypt_data
push 0
call fcn.0041ac70
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x408ec6
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 4], 0
je 0x408ed5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0xc], 0
je 0x408ee6
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
inc eax
leave
ret
Function at 0x408e6b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push 0xf0000000
push 1
push 0x437968
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x408de9
push 0x437994
push 0
call fcn.0041ac70
pop ecx
pop ecx
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x408e11
push 0x4379cc
push 0
call fcn.0041ac70
pop ecx
pop ecx
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x408e34
push 0x4379e4
push 0
call fcn.0041ac70
pop ecx
pop ecx
cmp dword [ebp + 0x18], 0
je 0x408e63
cmp dword [ebp + 0x1c], 0
je 0x408e63
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x408e63
push 0x4379f8
push 0
call fcn.0041ac70
pop ecx
pop ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp - 8]
push 0x6801
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x408e8c
push 0x437a10
push 0
call fcn.0041ac70
pop ecx
pop ecx
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push 0
push 1
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x408eb7
push str.Failed_to_encrypt_data
push 0
call fcn.0041ac70
pop ecx
pop ecx
cmp dword [ebp - 8], 0
je 0x408ec6
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 4], 0
je 0x408ed5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 0xc], 0
je 0x408ee6
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
inc eax
leave
ret