joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10082dc9
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1008c330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10073e44
mov dword [ebp - 0x14], eax
cmp dword [0x106794e4], esi
jne 0x10082ebc
push 0x800
push esi
push 0x1000793c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10082e49
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10082f9c
push esi
push esi
push 0x1000793c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10082f9c
push 0x10007954
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10082f9c
push eax
call ebx
push 0x10007960
push edi
mov dword [0x106794e4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007970
push edi
mov dword [0x106794e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007984
push edi
mov dword [0x106794ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106794f4], eax
test eax, eax
je 0x10082eb9
push 0x100079a0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x106794f0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10082ee1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10082ed4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10082ef6
push 4
pop eax
jmp 0x10082f9e
cmp dword [ebp - 0x14], esi
je 0x10082ef6
push dword [0x106794e4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10082edb
mov eax, dword [0x106794f0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10082f54
cmp dword [0x106794f4], edi
je 0x10082f54
push eax
call ebx
push dword [0x106794f4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10082f54
test eax, eax
je 0x10082f54
call ecx
test eax, eax
je 0x10082f49
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10082f49
test byte [ebp - 8], 1
jne 0x10082f54
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x10082f84
mov eax, dword [0x106794e8]
cmp eax, edi
je 0x10082f81
push eax
call ebx
test eax, eax
je 0x10082f81
call eax
mov esi, eax
test esi, esi
je 0x10082f81
mov eax, dword [0x106794ec]
cmp eax, edi
je 0x10082f81
push eax
call ebx
test eax, eax
je 0x10082f81
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x106794e4]
call ebx
test eax, eax
je 0x10082f9c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10082f9e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x451008]
jne 0x40100a
repz ret
jmp fcn.00401c7a

Function at 0x405afb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004032a3
and dword [ebp - 4], 0
cmp dword [0x453134], 0
mov ebx, eax
jne 0x405bac
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405c5d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405c5d
push eax
call fcn.00403231
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x453134], eax
call esi
push eax
call fcn.00403231
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x453138], eax
call esi
push eax
call fcn.00403231
mov dword [esp], 0x44e974
push edi
mov dword [0x45313c], eax
call esi
push eax
call fcn.00403231
pop ecx
mov dword [0x453144], eax
test eax, eax
je 0x405bac
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403231
pop ecx
mov dword [0x453140], eax
mov eax, dword [0x453140]
cmp eax, ebx
je 0x405c04
cmp dword [0x453144], ebx
je 0x405c04
push eax
call fcn.004032ac
push dword [0x453144]
mov esi, eax
call fcn.004032ac
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405c04
test edi, edi
je 0x405c04
call esi
test eax, eax
je 0x405bfb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405bfb
test byte [ebp - 0xc], 1
jne 0x405c04
or dword [ebp + 0x10], 0x200000
jmp 0x405c3d
mov eax, dword [0x453138]
cmp eax, ebx
je 0x405c3d
push eax
call fcn.004032ac
pop ecx
test eax, eax
je 0x405c3d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405c3d
mov eax, dword [0x45313c]
cmp eax, ebx
je 0x405c3d
push eax
call fcn.004032ac
pop ecx
test eax, eax
je 0x405c3d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x453134]
call fcn.004032ac
pop ecx
test eax, eax
je 0x405c5d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405c5f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44d3a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.00407220
mov eax, dword [0x451008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x100c], eax
cmp ebx, 0x182
jne 0x44d3d9
lea ecx, [ebp - 0x102c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
jmp 0x44d3e9
cmp ebx, 0x19f
jne 0x44d3e9
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push edi
xor edi, edi
test ebx, ebx
jle 0x44d46d
push esi
jmp 0x44d400
lea esi, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0
call fcn.0044d390
mov dl, byte [ebp - 0x1008]
mov eax, dword [ebp - 0x100c]
xor byte [eax + edi], dl
cmp ebx, 0xf
jne 0x44d467
lea eax, [ebp - 0x1010]
push eax
lea ecx, [ebp - 0x1004]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push str.yecahanoduzoj
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0
lea edx, [ebp - 0x804]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, ebx
jl 0x44d400
pop esi
pop edi
cmp ebx, 0x2d
jne 0x44d487
mov dword [0x548e20], 0xa62e7790
mov dword [0x548e24], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x44d4a0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x548cec]
push ebx
push esi
mov esi, dword [0x548b34]
mov ebx, eax
cmp eax, 0x5dd
jne 0x44d4c2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x451ef0]
call fcn.0044d360
cmp dword [0x548cec], 0x2f
jne 0x44d4dd
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
call fcn.0044d3a0
add esp, 4
cmp dword [0x548cec], 0x568
pop esi
pop ebx
jne 0x44d506
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
ret
Function at 0x4049bc
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404bec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404a3f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404bec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404a3f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404c08
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404ac8
xor eax, eax
push ebp
push 0x404ac1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404804
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404aa6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404c28
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404aa6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404ac8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404be2
cmp byte [ebp - 0xd], 0
jne 0x404b0f
cmp byte [ebp - 0x12], 0
je 0x404be2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404b28
dec ebx
cmp byte [ebx], 0x2e
je 0x404b37
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404b27
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404be2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404b74
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404be2
cmp byte [ebp - 0xd], 0
je 0x404be2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404be2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404ac8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404bec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404a3f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404bec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404a3f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404c08
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404ac8
xor eax, eax
push ebp
push 0x404ac1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404804
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404aa6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404c28
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404aa6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404ac8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404be2
cmp byte [ebp - 0xd], 0
jne 0x404b0f
cmp byte [ebp - 0x12], 0
je 0x404be2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404b28
dec ebx
cmp byte [ebx], 0x2e
je 0x404b37
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404b27
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404be2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404b74
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404be2
cmp byte [ebp - 0xd], 0
je 0x404be2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404be2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405278
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4052de
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403b68
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004028d8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4052c8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4052e5
lea eax, [ebp - 0x10]
call fcn.004038f8
ret

Function at 0x4093f4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40942d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004039e8
jmp 0x409436
mov eax, ebx
mov edx, esi
call fcn.0040394c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409440
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409461
mov al, byte [esp]
jmp 0x409463
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409ae8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409960
mov eax, dword [0x4134f8]
cmp byte [eax], 0
je 0x409b64
mov eax, dword [0x41341c]
call fcn.00402854
call fcn.0040271c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00406da8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409bac
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409b9a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4133f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x414660]
call fcn.004047c8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40a848
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40a8ac
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403b68
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406968
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a8b3
lea eax, [ebp - 0xc]
call fcn.004038f8
ret

Function at 0x411e80
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x411ef4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xff
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00403e74
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00403d94
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x411ed7
push ebx
mov ecx, dword [ebp - 8]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00403dec
jmp 0x411ede
mov eax, ebx
call fcn.004038f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411efb
lea eax, [ebp - 4]
call fcn.004038f8
ret
Function at 0x411f00
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x18], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403d84
mov eax, dword [ebp - 8]
call fcn.00403d84
xor eax, eax
push ebp
push 0x412109
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004038f8
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x1c], 0xffffffff
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_CreatePipe
xor eax, eax
push ebp
push 0x4120cf
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x68]
xor ecx, ecx
mov edx, 0x44
call fcn.004028b8
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 0x101
mov word [ebp - 0x38], 0
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle_1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00403990
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00403d94
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 4]
mov edx, 0x412120
call fcn.00403be0
mov eax, dword [ebp - 0x17c]
call fcn.00403d94
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
test bl, bl
je 0x4120b8
xor eax, eax
push ebp
push 0x4120b1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x14]
push eax
push 0xff
lea eax, [ebp - 0x178]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb ebx, ebx
inc ebx
cmp dword [ebp - 0x14], 0
jbe 0x41207c
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x178], 0
lea eax, [ebp - 0x180]
lea edx, [ebp - 0x178]
mov ecx, pe_nt_image_headers32
call fcn.00403b68
mov edx, dword [ebp - 0x180]
mov eax, esi
call fcn.00403b9c
test bl, bl
je 0x412086
cmp dword [ebp - 0x14], 0
jne 0x412027
push 0xffffffffffffffff
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4120b8
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4120d6
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
Function at 0x4055b1
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040586f
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4055f0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423788], eax
jmp 0x40577a
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40560a
test eax, eax
je 0x405728
test bl, 2
je 0x405728
mov esi, 0x420d00
push edi
push esi
call fcn.00405cf1
cmp dword [ebp + 8], 0
je 0x405629
push 0x409394
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40562f
push edi
call fcn.004057c8
cmp byte [edi], 0
jne 0x40563d
cmp byte [0x420d00], 0x5c
jne 0x405648
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40571e
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.004057ac
cmp byte [eax], 0
je 0x40568e
cmp byte [ebp - 0x1c], 0
je 0x40568e
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x4056a4
mov al, byte [esi + 1]
test al, al
je 0x4056fd
cmp al, 0x2e
jne 0x4056a4
cmp byte [esi + 2], 0
je 0x4056fd
push esi
push ebx
call fcn.00405cf1
test byte [ebp - 0x14c], 0x10
je 0x4056c9
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4056fd
push dword [ebp + 0xc]
push edi
call fcn.004055b1
jmp 0x4056fd
push dword [ebp - 4]
push edi
call fcn.00405569
test eax, eax
jne 0x4056f5
cmp dword [ebp - 4], eax
je 0x4056ed
push edi
push 0xfffffffffffffff1
call fcn.00404fdc
push 0
push edi
call fcn.00405ba5
jmp 0x4056fd
inc dword [0x423788]
jmp 0x4056fd
push edi
push 0xfffffffffffffff2
call fcn.00404fdc
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40566c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405728
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40577a
cmp dword [ebp - 0xc], esi
jne 0x40573c
inc dword [0x423788]
jmp 0x40577a
push edi
call fcn.00405ff5
test eax, eax
je 0x40577a
push edi
call fcn.00405781
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405569
test eax, eax
jne 0x405772
cmp dword [ebp - 4], esi
je 0x405734
push edi
push 0xfffffffffffffff1
call fcn.00404fdc
push esi
push edi
call fcn.00405ba5
jmp 0x40577a
push edi
push 0xffffffffffffffe5
call fcn.00404fdc
pop edi
pop esi
pop ebx
leave
ret 8