joyce8/EMBER2024-capa huggingface dataset:
Function at 0x66205d10
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push 0x11c
xor ebx, ebx
lea edi, [esi + 4]
push ebx
push edi
call fcn.6620e5c0
add esp, 0xc
push edi
mov dword [edi], 0x11c
call dword [sym.imp.ntdll.dll_RtlGetVersion]
cmp dword [esi + 8], 5
jne 0x66205d93
cmp dword [esi + 0xc], ebx
jne 0x66205d93
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 0x1e0]
cmp edx, ebx
je 0x66205d8d
cmp word [eax + 0x1dc], bx
je 0x66205d8d
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x66205d62
sub eax, edi
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edx
lea edx, [esi + 0x18]
push edx
call fcn.6620e710
add esp, 0xc
pop edi
mov byte [esi + 0x11f], bl
pop esi
pop ebx
ret
xor eax, eax
mov word [esi + 0x18], ax
pop edi
mov byte [esi + 0x11f], bl
pop esi
pop ebx
ret

Function at 0x66205df0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x662191db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x2c], esi
call fcn.66202d60
xor ebx, ebx
mov dword [esp + 0xe8], ebx
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.66205bb0
add esp, 8
lea ecx, [esp + 0x30]
call fcn.66202e50
mov ebp, dword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
lea ecx, [esp + 0x14]
push ecx
push 0xf
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], 0x18
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], 0x40
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call ebp
mov edi, eax
cmp edi, ebx
jl 0x66205e87
mov eax, dword [esp + 0x10]
mov dword [esi + 0x15c], eax
jmp 0x66205f0d
lea ecx, [esp + 0x14]
push ecx
push 3
lea edx, [esp + 0x18]
push edx
call ebp
test eax, eax
jl 0x66205ea3
mov eax, dword [esp + 0x10]
mov dword [esi + 0x15c], eax
lea ecx, [esp + 0x14]
push ecx
push 2
lea edx, [esp + 0x18]
push edx
call ebp
cmp eax, ebx
jl 0x66205f1b
mov esi, dword [esp + 0x10]
push 0xffffffffffffffff
push str.Restricted
lea ecx, [esp + 0x38]
call fcn.662032c0
lea ecx, [esp + 0x30]
call fcn.66202e50
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push 0xf
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x20], 0x18
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], 0x40
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call ebp
push esi
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
mov esi, dword [esp + 0x2c]
cmp edi, ebx
jl 0x66205f1b
mov edx, dword [esp + 0x10]
mov dword [esi + 0x158], edx
mov dword [esp + 0xe8], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.66203260
mov ecx, dword [esp + 0xe0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xdc
ret
Function at 0x66206130
Capabilities:
Get system information on windows

Disassembly:
push esi
mov esi, ecx
call fcn.66205af0
test al, al
je 0x6620619b
push edi
mov ecx, esi
call fcn.66205d10
push 0x2c
lea edi, [esi + 0x120]
push 0
push edi
call fcn.6620e5c0
add esp, 0xc
push 0
push 0x2c
push edi
mov edi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
push 0
call edi
xor ecx, ecx
push ecx
lea eax, [esi + 0x14c]
push 0xc
mov dword [eax], ecx
push eax
mov dword [eax + 4], ecx
push 1
mov dword [eax + 8], ecx
call edi
mov ecx, esi
call fcn.66205da0
mov ecx, esi
call fcn.66205df0
mov ecx, 2
mov eax, 1
lock cmpxchg dword [esi], ecx
pop edi
pop esi
ret
Function at 0x66206e30
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0x18]
mov ecx, dword [eax + 0x30]
xor eax, eax
cmp byte [ecx + 2], al
setne al
ret

Function at 0x6620a9b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6621dde0
push 0x6620f754
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov esi, dword [ebp + 8]
mov eax, esi
mov edi, dword [ebp + 0xc]
or eax, edi
je 0x6620abbd
cmp esi, 0xffffffff
jne 0x6620a9f8
test edi, edi
je 0x6620abbd
mov ecx, esi
and ecx, edi
cmp ecx, 0xffffffff
je 0x6620abbd
cmp dword [ebp + 0x20], 0
ja 0x6620aa1b
jb 0x6620aba5
cmp dword [ebp + 0x1c], 0x40
jb 0x6620aba5
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
push edi
push esi
mov ecx, ebx
call fcn.6620a780
test eax, eax
jge 0x6620aa4d
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, 0x5a4d
cmp word [ebp - 0x1c], ax
jne 0x6620ab9e
lea ecx, [ebp - 0x24]
push ecx
mov edx, esi
add edx, 0x3c
mov eax, edi
adc eax, 0
push eax
push edx
mov ecx, ebx
call fcn.6620a7a0
test eax, eax
jl 0x6620aa33
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov ebx, dword [ebp + 0x20]
cmp ecx, ebx
ja 0x6620ab9e
jb 0x6620aa92
cmp eax, dword [ebp + 0x1c]
jae 0x6620ab9e
lea edx, [eax + 0x18]
cmp edx, eax
jb 0x6620ab9e
xor edx, edx
cmp edx, ebx
ja 0x6620ab9e
jb 0x6620aab5
lea edx, [eax + 0x18]
cmp edx, dword [ebp + 0x1c]
jae 0x6620ab9e
cmp eax, 0x10000000
jae 0x6620ab9e
lea edx, [ebp - 0x28]
push edx
add eax, esi
adc ecx, edi
push ecx
push eax
mov ecx, dword [ebp - 0x20]
call fcn.6620a7a0
test eax, eax
jl 0x6620aa33
cmp dword [ebp - 0x28], 0x4550
jne 0x6620ab9e
mov edi, dword [ebp - 0x24]
xor ebx, ebx
add edi, esi
adc ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x6620aafd
mov dword [eax], edi
mov dword [eax + 4], ebx
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x6620ab79
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], ebx
mov eax, dword [ebp + 8]
mov dword [esi + 0x110], eax
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x114], ecx
mov dl, byte [ebp + 0x10]
mov byte [esi + 0x118], dl
push 0
push 0x18
push esi
push ebx
push edi
mov ecx, dword [ebp - 0x20]
call fcn.6620a500
test eax, eax
jl 0x6620aa33
movzx eax, word [esi + 0x14]
movzx ecx, ax
mov edx, 0xf0
cmp dx, cx
jae 0x6620ab57
mov eax, edx
jmp 0x6620ab5a
movzx eax, ax
push 0
push eax
add esi, 0x18
push esi
add edi, 0x18
adc ebx, 0
push ebx
push edi
mov ecx, dword [ebp - 0x20]
call fcn.6620a500
test eax, eax
jl 0x6620aa33
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov dword [ebp - 4], 0xffffffff
mov eax, 0xc000007b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, 0xc000000d
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x6620ad30
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x3c
push ebx
push edi
mov edi, dword [esp + 0x48]
cmp byte [edi + 0x118], 0
mov ebx, ecx
jne 0x6620ad51
pop edi
mov eax, 0xc000000d
pop ebx
add esp, 0x3c
ret 4
cmp word [edi + 0x14], 2
mov eax, dword [edi + 0x110]
mov ecx, dword [edi + 0x114]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jb 0x6620ad71
mov edx, 0x10b
mov eax, dword [edi + 0x54]
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
mov eax, dword [ebx + 0x48]
push 2
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
mov ecx, 0x66246160
mov dword [esp + 0x24], 0
call fcn.6620d7c0
test eax, eax
jl 0x6620ae62
movzx eax, word [edi + 0x14]
push ebp
mov ebp, dword [edi + 0x10c]
cdq
push esi
mov esi, eax
add esi, dword [edi + 0x108]
mov dword [esp + 0x50], 0
adc ebp, edx
add esi, 0x18
adc ebp, 0
xor ecx, ecx
cmp cx, word [edi + 6]
jae 0x6620ae5e
push 0
push 0x28
lea edx, [esp + 0x2c]
push edx
push ebp
push esi
mov ecx, ebx
call fcn.6620a500
test eax, eax
jl 0x6620ae60
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x1c]
push eax
push ecx
push edi
mov ecx, ebx
call fcn.6620acd0
test eax, eax
jl 0x6620ae60
mov edx, dword [esp + 0x48]
push edx
call fcn.66207560
mov ecx, dword [esp + 0x30]
add esp, 4
lea edx, [esp + 0x10]
push edx
mov edx, dword [ebx + 0x48]
push eax
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
mov ecx, 0x66246160
mov dword [esp + 0x2c], 0
call fcn.6620d7c0
test eax, eax
jl 0x6620ae60
mov eax, dword [esp + 0x50]
movzx ecx, word [edi + 6]
inc eax
add esi, 0x28
adc ebp, 0
mov dword [esp + 0x50], eax
cmp eax, ecx
jb 0x6620add8
xor eax, eax
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x3c
ret 4
Function at 0x6620d1d0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
lea eax, [ebp + 0x14]
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x34], 0
jmp 0x6620d213
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp + 0x10]
sub eax, 1
mov dword [ebp + 0x10], eax
cmp dword [ebp - 0x34], 4
jae 0x6620d23e
cmp dword [ebp + 0x10], 0
jbe 0x6620d23e
mov ecx, dword [ebp - 8]
add ecx, 8
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
mov ecx, dword [eax - 8]
mov dword [ebp + edx*8 - 0x30], ecx
mov eax, dword [eax - 4]
mov dword [ebp + edx*8 - 0x2c], eax
jmp 0x6620d201
mov ecx, dword [ebp - 8]
add ecx, 8
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
sub edx, 8
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
and eax, 1
je 0x6620d261
mov ecx, dword [ebp + 0x10]
add ecx, 1
mov dword [ebp + 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 4], esp
and esp, 0xfffffff0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x6620d287
mov edi, dword [ebp - 0xc]
lea edi, [edi + eax*8 - 8]
push dword [edi + 4]
push dword [edi]
sub edi, 8
dec eax
jne 0x6620d27c
mov eax, 4
lea edi, [ebp - 0x18]
push dword [edi + 4]
push dword [edi]
sub edi, 8
dec eax
jne 0x6620d28f
xor ecx, ecx
xor edx, edx
lea esi, [ebp + 8]
push 0x33
call 0x6620d2a8
add dword [esp], 5
retf

Function at 0x6620d2f0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
xor eax, eax
xor edx, edx
push 0x33
call fcn.6620d302

Function at 0x6620d9a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov bl, byte [eax]
push esi
cmp bl, 0xd8
je 0x6620d9d1
cmp bl, 0xd7
je 0x6620d9d1
mov esi, dword [esp + 0x14]
lea ecx, [eax + 1]
test esi, esi
jbe 0x6620d9f9
mov eax, dword [esp + 0x10]
sub ecx, eax
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
sub esi, 1
jne 0x6620d9c3
pop esi
pop ebx
ret
mov esi, dword [esp + 0x10]
push esi
inc eax
push eax
call fcn.6620dc00
cmp bl, 0xd8
jne 0x6620d9f9
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
jbe 0x6620d9f9
lea esp, [esp]
xor byte [eax + esi], 0xf0
inc eax
cmp eax, ecx
jb 0x6620d9f0
pop esi
pop ebx
ret

Function at 0x6620fedb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x662450f8]
jne 0x6620fee5
repz ret
jmp fcn.662147cc
Function at 0x66217ca5
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.6620ffc5
and dword [ebp - 4], 0
cmp dword [0x66246b40], 0
mov ebx, eax
jne 0x66217d56
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x66217e07
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x66217e07
push eax
call fcn.6620ff53
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x66246b40], eax
call esi
push eax
call fcn.6620ff53
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x66246b44], eax
call esi
push eax
call fcn.6620ff53
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x66246b48], eax
call esi
push eax
call fcn.6620ff53
pop ecx
mov dword [0x66246b50], eax
test eax, eax
je 0x66217d56
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.6620ff53
pop ecx
mov dword [0x66246b4c], eax
mov eax, dword [0x66246b4c]
cmp eax, ebx
je 0x66217dae
cmp dword [0x66246b50], ebx
je 0x66217dae
push eax
call fcn.6620ffce
push dword [0x66246b50]
mov esi, eax
call fcn.6620ffce
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x66217dae
test edi, edi
je 0x66217dae
call esi
test eax, eax
je 0x66217da5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x66217da5
test byte [ebp - 0xc], 1
jne 0x66217dae
or dword [ebp + 0x10], 0x200000
jmp 0x66217de7
mov eax, dword [0x66246b44]
cmp eax, ebx
je 0x66217de7
push eax
call fcn.6620ffce
pop ecx
test eax, eax
je 0x66217de7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x66217de7
mov eax, dword [0x66246b48]
cmp eax, ebx
je 0x66217de7
push eax
call fcn.6620ffce
pop ecx
test eax, eax
je 0x66217de7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x66246b40]
call fcn.6620ffce
pop ecx
test eax, eax
je 0x66217e07
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x66217e09
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401200
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
dec edx
and eax, 0x8f
imul eax
rol ebx, 0x45
ror edx, 0xbd
inc edx
add esi, 0xc9
dec ebx
bswap esi
sub edx, 0x47
dec edi
sbb edi, 0x7b
sbb edi, 0xa
and esi, 0x75
or esi, 0x7c
ror ebx, 0xd
and ebx, 0xaa
neg edx
dec eax
or ebx, 0x92
neg edx
inc eax
sub edx, 0xdc
ror ebx, 5
rcr esi, 0x54
or esi, 0x77
ror edi, 0x76
rcr eax, 0x2a
sbb eax, 0x3b
or ebx, 0xb4
sub eax, 0x2d
rol ebx, 0xd2
mov ebx, 0x7c
bswap esi
sub edx, 0xe9
inc edx
ror ebx, 0x84
inc eax
imul edx
bswap eax
dec ebx
mov esi, 0x11
sub edi, 0xff
not ebx
neg ebx
rcr ebx, 0x80
inc edx
neg edx
and edi, 0x5c
sub edx, 0x66
xor ecx, ecx
xor edi, edi
imul ebx
ror eax, 0x6c
add eax, 0xce
or edi, 0x34
sub eax, 0x7e
inc eax
not ebx
sbb esi, 0x8c
sbb esi, 0xaf
rcl eax, 0x68
sbb edx, 0xf6
add ebx, 0x21
or ebx, 0xca
rcr esi, 0x92
imul edx
mov esi, 6
bswap eax
ror eax, 0xeb
bswap esi
rcr ebx, 0x3d
or edx, 0xfd
bswap ebx
or ebx, 0xe2
dec edi
ror edi, 0x76
not ebx
bswap edi
mov edi, 0x44
or edx, 0x4b
ror ebx, 0xee
and ebx, 0xf5
and ebx, 0x61
neg edi
add edi, 0xc0
or ebx, 0x2a
not eax
bswap ebx
inc edi
rcr edx, 0x65
sbb eax, 0xf9
rcr ebx, 0x3e
rol edi, 0x4a
and ebx, 0x62
or eax, 0x8a
imul edx
imul eax
rcl edi, 0xbe
imul ebx
and esi, 0x5a
not eax
mov ecx, dword [ebp + 0xc]
sbb esi, 0xad
sub edx, 0xd7
neg edi
rcl edx, 0xbd
rcl ebx, 0x2b
rcr edi, 0x9d
sub ebx, 0xda
inc edi
rol edx, 0x5c
and eax, 0xd5
dec esi
rol edx, 0x49
bswap edi
dec eax
neg esi
sbb edx, 0x25
inc edx
ror edi, 0xf3
rol ebx, 0xb3
add edx, 0xf4
bswap edi
rcr eax, 0xc4
sbb edi, 0xe5
rol esi, 0xd
and edi, 0xde
inc edx
bswap edx
not esi
inc edx
or edx, 0x4b
or eax, 0x7b
or edx, 0xb2
rol edi, 0x28
ror eax, 0x2b
ror edx, 0xd3
rcr eax, 0x2d
sbb edx, 0xb1
rcl eax, 0x8f
rcl edi, 0x8e
sbb edx, 0x5d
add eax, 0xca
imul esi
not ebx
rcl eax, 0xe1
not ebx
imul eax
add edx, 0x5c
imul eax
mov edi, 0xc2
or edx, 0x63
mov edi, dword [ebp + 8]
xor esi, esi
xor esi, esi
mov eax, eax
not byte [edi]
mov ebx, eax
mov eax, esi
mov esi, ebx
xor eax, esi
mov ebx, ebx
mov ebx, esi
mov eax, ebx
xor esi, eax
xor ebx, eax
add byte [edi], 0x87
xor eax, ebx
xor eax, ebx
xor esi, esi
mov esi, ebx
xor esi, ebx
mov eax, esi
mov ebx, esi
mov esi, esi
mov esi, eax
sub byte [edi], 0x54
xor ebx, ebx
xor eax, ebx
xor esi, ebx
mov esi, eax
mov eax, eax
xor eax, esi
xor ebx, eax
mov ebx, esi
xor esi, ebx
imul byte [edi]
inc edi
loop 0x4013e9
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407865
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410400]
jne 0x40786f
repz ret
jmp fcn.00409c00
Function at 0x407ed5
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.00406c85
and dword [ebp - 4], 0
cmp dword [0x411590], 0
mov ebx, eax
jne 0x407f86
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408037
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408037
push eax
call fcn.00406c13
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x411590], eax
call esi
push eax
call fcn.00406c13
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x411594], eax
call esi
push eax
call fcn.00406c13
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x411598], eax
call esi
push eax
call fcn.00406c13
pop ecx
mov dword [0x4115a0], eax
test eax, eax
je 0x407f86
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406c13
pop ecx
mov dword [0x41159c], eax
mov eax, dword [0x41159c]
cmp eax, ebx
je 0x407fde
cmp dword [0x4115a0], ebx
je 0x407fde
push eax
call fcn.00406c8e
push dword [0x4115a0]
mov esi, eax
call fcn.00406c8e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407fde
test edi, edi
je 0x407fde
call esi
test eax, eax
je 0x407fd5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407fd5
test byte [ebp - 0xc], 1
jne 0x407fde
or dword [ebp + 0x10], 0x200000
jmp 0x408017
mov eax, dword [0x411594]
cmp eax, ebx
je 0x408017
push eax
call fcn.00406c8e
pop ecx
test eax, eax
je 0x408017
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408017
mov eax, dword [0x411598]
cmp eax, ebx
je 0x408017
push eax
call fcn.00406c8e
pop ecx
test eax, eax
je 0x408017
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x411590]
call fcn.00406c8e
pop ecx
test eax, eax
je 0x408037
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408039
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4926fe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401db6
mov eax, dword [0x6921bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405eb1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x492740
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49289c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406014
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x695e38]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403279
mov ecx, dword [esi*4 + 0x695e38]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x492895
cmp eax, dword [edi + ecx + 0x24]
jne 0x492895
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x492895
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403279
add esp, 0x14
test edx, edx
jl 0x492895
jg 0x49280b
test eax, eax
jb 0x492895
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x492895
jl 0x492825
cmp dword [ebp - 0x1008], eax
ja 0x492895
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x492843
test ebx, ebx
je 0x49287c
cmp ecx, edi
jae 0x49287c
mov al, byte [ecx]
cmp al, 0xd
jne 0x49285d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x492869
cmp byte [ecx + 1], 0xa
jne 0x492869
inc ecx
jmp 0x492869
movzx eax, al
movsx eax, byte [eax + 0x692d28]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x492843
cmp edx, ebx
jne 0x492843
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49289a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040306c
leave
ret
Function at 0x498fd1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6921bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49901c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00499493
test al, al
jne 0x499016
sub edx, 2
cmp edx, edi
jne 0x498ffc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49903e
lea eax, [edi + 2]
cmp edx, eax
je 0x49903e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00498bca
add esp, 0x10
jmp 0x499138
push esi
lea ecx, [ebp - 0x255]
call fcn.00499493
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x499081
push dword [ebp - 0x25c]
jmp 0x49902e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4990be
cmp word [ebp - 0x226], 0
je 0x4990df
cmp word [ebp - 0x226], ax
jne 0x4990be
cmp word [ebp - 0x224], 0
je 0x4990df
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00498bca
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49912b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x499098
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x499113
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x499138
push 0x4985b2
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040556a
add esp, 0x10
jmp 0x499108
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040306c
leave
ret