joyce8/EMBER2024-capa huggingface dataset:
Function at 0x482543
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0047bd30
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4825de
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4a7bb8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4825de
cmp eax, 1
je 0x4825ff
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4825de
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4825ab
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4825da
xor eax, eax
inc eax
jmp 0x48261e
cmp edi, eax
jae 0x4825e2
xor eax, eax
jmp 0x48261e
cmp eax, esi
jae 0x4825e9
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4a7bb8]
jmp 0x482602
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x488178
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4a630c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4a6320]
je 0x4881ad
inc eax
cmp eax, 0x13
jb 0x48819e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4a6320]
jne 0x4882d3
mov eax, dword [0x4a7bb0]
cmp eax, 1
je 0x4882ab
cmp eax, edx
jne 0x4881dd
cmp dword [0x4a5b5c], 1
je 0x4882ab
cmp ecx, 0xfc
je 0x4882d3
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x488213
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0047b420
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00480770
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x488247
mov eax, edi
push eax
call fcn.00480770
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x49fdb8
push edi
call fcn.0048a770
add esp, 0x10
push edi
call fcn.00480770
push dword [esi + 0x4a6324]
mov ebx, eax
call fcn.00480770
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0047bd30
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0047b420
push edi
push ebx
call fcn.0047b430
push 0x49fd98
push ebx
call fcn.0047b430
push dword [esi + 0x4a6324]
push ebx
call fcn.0047b430
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0048bf88
add esp, 0x2c
jmp 0x4882d3
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4a6324]
push dword [esi]
call fcn.00480770
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00488dab
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x48879b
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4a80bc]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x4887e4
call ebp
mov esi, eax
cmp esi, ebx
je 0x4887ca
mov dword [0x4a80bc], 1
jmp 0x4887e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4887df
push 2
pop eax
mov dword [0x4a80bc], eax
jmp 0x4887e4
mov eax, dword [0x4a80bc]
cmp eax, 1
jne 0x488841
cmp esi, ebx
jne 0x4887fc
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4887fc
xor eax, eax
jmp 0x4888e8
cmp word [esi], bx
mov eax, esi
je 0x488811
inc eax
inc eax
cmp word [eax], bx
jne 0x488803
inc eax
inc eax
cmp word [eax], bx
jne 0x488803
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0047cad5
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x488834
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x4888e8
push ebp
push esi
push edi
call fcn.0047b530
add esp, 0xc
jmp 0x488826
cmp eax, 2
je 0x48884a
cmp eax, ebx
jne 0x4887f5
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x4887f5
cmp byte [ebp], bl
mov esi, ebp
je 0x488880
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x4887f5
push esi
add edi, eax
call fcn.00480770
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x48885d
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0047cad5
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4888f9
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x4888da
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4888ef
push edi
call fcn.00480770
push esi
lea edi, [edi + eax + 1]
call fcn.0047c99d
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x4888a0
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0047c9b3
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x4887f5
Function at 0x488905
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x4a80c0]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x488945
call esi
test eax, eax
je 0x48892a
mov dword [0x4a80c0], 1
jmp 0x48894a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x488941
mov dword [0x4a80c0], 2
jmp 0x488953
xor eax, eax
jmp 0x4889a1
cmp eax, 1
jne 0x48894e
call esi
jmp 0x4889a1
cmp eax, 2
jne 0x488941
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x488999
lea eax, [esi + esi]
push eax
call fcn.0047cad5
mov ebp, eax
test ebp, ebp
pop ecx
je 0x488999
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x48899d
push ebp
call fcn.0047c9b3
pop ecx
xor eax, eax
jmp 0x48899f
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x48bf88
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4a814c], ebx
push esi
push edi
jne 0x48c008
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x48c043
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a1864
push edi
call esi
test eax, eax
mov dword [0x4a814c], eax
je 0x48c043
push 0x4a1854
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4a8150], eax
call esi
cmp dword [0x4a7bb8], 2
mov dword [0x4a8154], eax
jne 0x48c008
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4a815c], eax
je 0x48c008
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4a8158], eax
mov eax, dword [0x4a8158]
test eax, eax
je 0x48c04d
call eax
test eax, eax
je 0x48c034
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4a815c]
test eax, eax
je 0x48c034
test byte [ebp - 8], 1
jne 0x48c04d
cmp dword [0x4a7bc4], 4
jb 0x48c047
or byte [ebp + 0x12], 0x20
jmp 0x48c06c
xor eax, eax
jmp 0x48c07c
or byte [ebp + 0x12], 4
jmp 0x48c06c
mov eax, dword [0x4a8150]
test eax, eax
je 0x48c06c
call eax
mov ebx, eax
test ebx, ebx
je 0x48c06c
mov eax, dword [0x4a8154]
test eax, eax
je 0x48c06c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4a814c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48d50c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x48d6e0
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4a8460]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x48d6e0
test cl, 0x48
je 0x48d577
cmp byte [eax + 5], 0xa
je 0x48d577
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48d5c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x48d5b1
call fcn.00480465
mov dword [eax], 9
call fcn.0048046e
mov dword [eax], esi
jmp 0x48d5c1
cmp eax, 0x6d
je 0x48d6e0
push eax
call fcn.00480477
pop ecx
or eax, 0xffffffff
jmp 0x48d6e2
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x48d6db
test eax, eax
je 0x48d5f0
cmp byte [ebx], 0xa
jne 0x48d5f0
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x48d5f9
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x48d6d5
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x48d6c5
cmp al, 0xd
je 0x48d62b
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x48d6b7
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x48d645
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x48d640
add dword [ebp + 0x10], 2
jmp 0x48d699
mov dword [ebp + 0x10], eax
jmp 0x48d6b3
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48d66d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48d6b3
cmp dword [ebp - 0xc], 0
je 0x48d6b3
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x48d68e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x48d699
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x48d6b6
cmp ebx, dword [ebp + 0xc]
jne 0x48d69e
cmp byte [ebp - 1], 0xa
jne 0x48d69e
mov byte [ebx], 0xa
jmp 0x48d6b6
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00488a2c
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x48d6b7
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x48d60f
jmp 0x48d6d5
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x48d6d5
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x48d6e2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48deff
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x48df18
or eax, 0xffffffff
jmp 0x48df79
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x48df75
push 0x3d
push esi
call fcn.0048e0ff
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x48df75
cmp esi, eax
je 0x48df75
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4a7bd8]
sete cl
cmp eax, dword [0x4a7bdc]
mov dword [ebp - 8], ecx
jne 0x48df5b
mov edi, eax
call fcn.0048de9e
mov dword [0x4a7bd8], eax
cmp eax, ebx
jne 0x48dfb4
cmp dword [ebp + 0xc], ebx
je 0x48df7d
cmp dword [0x4a7be0], ebx
je 0x48df7d
call fcn.0048d47c
test eax, eax
je 0x48dfb4
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x48df86
xor eax, eax
jmp 0x48df78
push 4
call fcn.0047cad5
cmp eax, ebx
pop ecx
mov dword [0x4a7bd8], eax
je 0x48df75
mov dword [eax], ebx
cmp dword [0x4a7be0], ebx
jne 0x48dfb4
push 4
call fcn.0047cad5
cmp eax, ebx
pop ecx
mov dword [0x4a7be0], eax
je 0x48df75
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4a7bd8]
call fcn.0048de51
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x48e015
cmp dword [esi], ebx
je 0x48e015
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0047c9b3
cmp dword [ebp - 8], ebx
pop ecx
jne 0x48dff8
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x48e056
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x48dfef
mov eax, edi
shl eax, 2
push eax
push dword [0x4a7bd8]
call fcn.0047e5ae
cmp eax, ebx
pop ecx
pop ecx
je 0x48e056
jmp 0x48e051
cmp dword [ebp - 8], ebx
jne 0x48e0c1
cmp edi, ebx
jge 0x48e024
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4a7bd8]
call fcn.0047e5ae
cmp eax, ebx
pop ecx
pop ecx
je 0x48df75
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x4a7bd8], eax
cmp dword [ebp + 0xc], ebx
je 0x48e0ab
push dword [ebp - 4]
call fcn.00480770
inc eax
inc eax
push eax
call fcn.0047cad5
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x48e0ab
push dword [ebp - 4]
push esi
call fcn.0047b420
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x48e0a4
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0047c9b3
pop ecx
cmp dword [ebp - 8], ebx
je 0x48e0b9
push dword [ebp - 4]
call fcn.0047c9b3
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x48df78
push dword [ebp - 4]
call fcn.0047c9b3
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x48df82
Function at 0x40179c
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x40261e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4271f0]
xor eax, ebp
mov dword [ebp - 4], eax
inc dword [0x429724]
cmp dword [0x429724], 0x64
jl 0x40268b
and dword [0x429724], 0
cmp dword [0x429768], 8
mov eax, dword [0x429754]
push esi
mov esi, 0x429754
jae 0x40265a
mov eax, esi
lea ecx, [ebp - 0x28]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x40268a
cmp dword [ebp - 8], 0x6400000
jbe 0x40268a
cmp dword [0x429768], 8
jb 0x402683
mov esi, dword [0x429754]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b365
leave
ret
Function at 0x41b552
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4271f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004139c5
and dword [ebp - 0x14], 0
cmp dword [0x429708], 0
mov dword [ebp - 0x18], eax
jne 0x41b605
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41b6ad
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41b6ad
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x429708], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42970c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x429710], eax
call edi
push eax
call esi
mov dword [0x429718], eax
test eax, eax
je 0x41b605
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x429714], eax
mov eax, dword [0x429714]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41b65e
cmp dword [0x429718], ecx
je 0x41b65e
push eax
call esi
push dword [0x429718]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41b65e
test ebx, ebx
je 0x41b65e
call edi
test eax, eax
je 0x41b655
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41b655
test byte [ebp - 8], 1
jne 0x41b65e
or dword [ebp + 0x10], 0x200000
jmp 0x41b691
mov eax, dword [0x42970c]
cmp eax, dword [ebp - 0x18]
je 0x41b691
push eax
call esi
test eax, eax
je 0x41b691
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41b691
mov eax, dword [0x429710]
cmp eax, dword [ebp - 0x18]
je 0x41b691
push eax
call esi
test eax, eax
je 0x41b691
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x429708]
call esi
test eax, eax
je 0x41b6ad
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41b6af
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b365
leave
ret
Function at 0x10036ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100db8e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.100cfec1
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.100389e0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10036b04
jmp dword [ecx*4 + 0x10036c6c]
mov al, byte [esi]
test al, al
je 0x10036b32
cmp al, 0x20
je 0x10036b1e
cmp al, 0xa1
jne 0x10036b32
cmp byte [esi + 1], al
jne 0x10036b32
test al, 0x80
je 0x10036b2a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x10036b32
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10036b11
test ecx, ecx
je case.default.0x10036b04
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10036b04
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x10036b78
cmp dl, 0xa1
jne 0x10036b6c
cmp byte [eax + 1], 0xa1
jne 0x10036b6c
test ecx, ecx
jne 0x10036b64
mov edi, eax
mov ecx, 1
inc eax
jmp 0x10036b8c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10036ba6
jmp 0x10036b8c
cmp dl, 0x20
jne 0x10036b8a
test ecx, ecx
jne 0x10036b83
mov edi, eax
mov ecx, 1
jmp 0x10036b8c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x10036b4c
cmp ecx, 1
jne case.default.0x10036b04
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10036b04
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10036b04
mov al, byte [esi]
test al, al
je 0x10036bfe
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10036be4
mov cl, byte [esi + 1]
test cl, cl
je 0x10036bfe
cmp al, 0xa1
jne 0x10036bd4
cmp cl, al
je 0x10036be1
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10038c70
inc esi
jmp 0x10036bf6
cmp al, 0x20
je 0x10036bf6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10038cb0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10036bbd
push 0
lea ecx, [esp + 0x14]
call fcn.10038cb0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1004aca0
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x10036c31
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x10106000
call fcn.10038be0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100cfe53
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10041b50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100dc39b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.100cfbc8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10041bd2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.100cd1e7
mov eax, dword [eax]
push 0x1011d264
push eax
call fcn.100beaa4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.100cfe53
test bl, bl
je 0x10041bd2
push 0x1011d264
lea ecx, [esp + 0xc]
call fcn.100d01e3
push 0x10120de4
lea ecx, [esp + 0xc]
call fcn.100d01e3
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x10041c0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.100cfe53
jmp 0x10041cd9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x10041c92
lea edx, [esp + 0x7c]
push 0x10120de0
push edx
call fcn.100beaa4
add esp, 8
test eax, eax
je 0x10041c92
lea eax, [esp + 0x7c]
push 0x10120ddc
push eax
call fcn.100beaa4
add esp, 8
test eax, eax
je 0x10041c92
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10041c22
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.100cfe53
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4