joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a1d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov edx, dword [ebp + 0xc]
lea eax, [edx + 5]
push esi
cmp eax, 4
ja case.0x41a1e7.2
jmp dword [eax*4 + 0x41a2c4]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x5c]
or dword [esi + 0x68], 4
test eax, eax
je 0x41a218
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
jne 0x41a218
mov eax, dword [esi + 0x5c]
push 8
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp + 8]
xor eax, eax
add ecx, 0xffffffc0
cmp edx, 0xfffffffc
sete al
push eax
call fcn.0041a970
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x18]
lea eax, [esi + 8]
push eax
call edx
test byte [esi + 0x68], 4
je 0x41a278
mov eax, dword [esi + 0x5c]
and dword [esi + 0x68], 0xfffffffb
test eax, eax
je 0x41a278
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x41a278
mov eax, dword [esi + 0x5c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, str.FAIL
test edx, edx
jle 0x41a2a5
push 0x30e
push 0x4ad294
call fcn.00419720
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
push 0x31a
push str.Unrecognized_Negative_verb_in_DoVerb__.__bad.
call fcn.00419720
add esp, 8
mov eax, 0x80004001
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x41fb30
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4ab9f8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x41fb20
call fcn.0046dfda
add esp, 4
call fcn.0041f9e0
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41fbbe
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x41fb84
mov edx, dword [ebp - 0x18]
push edx
jmp 0x41fbb8
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.004473e0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046aac1
mov esp, ebp
pop ebp
ret
Function at 0x41fe20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, ebx
sub esp, 0x10
lea edx, [eax + 1]
jmp 0x41fe30
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41fe30
push esi
push edi
sub eax, edx
lea esi, [eax + ebx]
push 0x5c
push ebx
mov dword [ebp - 4], esi
call fcn.0046e070
xor ecx, ecx
add esp, 8
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
test eax, eax
jne 0x41fe60
mov dword [ebp - 0xc], ebx
jmp 0x41fe60
cmp byte [esi], 0x5c
jne 0x41fe76
inc esi
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], esi
mov byte [esi], 0x5f
mov eax, dword [0x495d2c]
mov dword [ecx + esi], eax
mov edx, dword [0x495d30]
mov dword [ecx + esi + 4], edx
mov al, byte [0x495d34]
mov byte [ecx + esi + 8], al
test ebx, ebx
je 0x41fedf
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov esi, eax
test esi, esi
jle 0x41fedc
lea ecx, [esi + esi + 2]
push ecx
call fcn.0046c840
add esp, 4
push esi
mov edi, eax
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
xor edx, edx
mov word [edi + esi*2 - 2], dx
mov esi, dword [ebp - 4]
jmp 0x41fee1
mov esi, dword [ebp - 4]
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
push edi
mov dword [ebp - 0x10], eax
call fcn.0046c806
add esp, 4
cmp dword [ebp - 0x10], 0xffffffff
jne 0x41ff1b
mov eax, dword [ebp - 0xc]
push 0x2e
push eax
call fcn.0046dbf0
add esp, 8
test eax, eax
je 0x41ff23
cmp eax, esi
ja 0x41ff23
mov ecx, dword [ebp - 8]
mov byte [eax], 0x5c
jmp 0x41fe60
pop edi
mov eax, ebx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4416e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov eax, 0x494a98
push esi
sub eax, 0xbc
push edi
mov dword [esp + 0x14], 0xbc
mov dword [esp + 0x1c], eax
jmp 0x441708
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov esi, dword [eax + ecx]
mov eax, esi
mov dword [esp + 0x10], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x441718
sub eax, edx
mov edi, eax
shr eax, 5
inc eax
mov ebx, edi
mov dword [esp + 0x18], edi
mov ecx, edi
cmp edi, eax
jb 0x441756
movzx edx, byte [esi + ecx - 1]
mov esi, ebx
shl esi, 5
add edx, esi
mov esi, ebx
shr esi, 2
add edx, esi
mov esi, dword [esp + 0x10]
sub ecx, eax
xor ebx, edx
cmp ecx, eax
jae 0x441733
mov dword [esp + 0x18], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
dec ecx
and ecx, ebx
mov edx, dword [edx + ecx*4]
test edx, edx
je 0x4417d6
jmp 0x441770
cmp dword [edx + 0xc], edi
jne 0x4417d0
test edi, edi
je 0x44177f
test byte [edx + 7], 0x10
jne 0x4417d0
mov eax, edi
lea ecx, [edx + 0x10]
cmp edi, 4
jb 0x4417a4
lea esp, [esp]
mov ebx, dword [esi]
cmp ebx, dword [ecx]
jne 0x4417c8
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x441790
test eax, eax
je 0x441816
mov bl, byte [ecx]
cmp bl, byte [esi]
jne 0x4417c8
cmp eax, 1
jbe 0x441816
mov bl, byte [ecx + 1]
cmp bl, byte [esi + 1]
jne 0x4417c8
cmp eax, 2
jbe 0x441816
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x441816
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov edx, dword [edx]
test edx, edx
jne 0x441770
mov edx, dword [ebp + 8]
push ebx
push edi
push esi
push edx
call fcn.00442e00
add esp, 0x10
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov esi, dword [edx + 0x10]
mov dword [ecx + esi], eax
mov eax, dword [edx + 0x10]
mov eax, dword [ecx + eax]
or byte [eax + 5], 0x20
add ecx, 4
mov dword [esp + 0x14], ecx
cmp ecx, 0x10c
jl 0x441704
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov al, byte [edx + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx ecx, al
and ecx, 3
not ebx
test bl, cl
je 0x441834
xor al, 3
mov byte [edx + 5], al
mov eax, edx
jmp 0x4417e5
Function at 0x442ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, edi
shr eax, 5
inc eax
mov edx, edi
mov dword [esp + 0xc], edi
mov ecx, edi
cmp edi, eax
jb 0x442f11
mov esi, dword [ebp + 0xc]
movzx esi, byte [esi + ecx - 1]
mov ebx, edx
shl ebx, 5
add esi, ebx
mov ebx, edx
shr ebx, 2
add esi, ebx
sub ecx, eax
xor edx, esi
cmp ecx, eax
jae 0x442eef
mov dword [esp + 0xc], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x442f84
cmp dword [eax + 0xc], edi
jne 0x442f7e
test edi, edi
je 0x442f35
test byte [eax + 7], 0x10
jne 0x442f7e
mov esi, dword [ebp + 0xc]
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x442f56
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x442f7a
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x442f42
test ecx, ecx
je 0x442f9d
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x442f7a
cmp ecx, 1
jbe 0x442f9d
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x442f7a
cmp ecx, 2
jbe 0x442f9d
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x442f9d
mov edx, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x442f26
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push edi
push eax
push ecx
call fcn.00442e00
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
mov cl, byte [eax + 5]
movzx edx, byte [edx + 0x14]
movzx ebx, cl
not edx
and ebx, 3
test bl, dl
je 0x442f96
pop edi
xor cl, 3
pop esi
mov byte [eax + 5], cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x442fd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
add edx, edx
mov eax, edx
shr eax, 5
push ebx
push esi
inc eax
push edi
mov esi, edx
mov dword [ebp - 4], edx
mov ecx, edx
cmp edx, eax
jb 0x443011
lea ebx, [ebx]
mov edi, dword [ebp + 0xc]
movzx edi, byte [edi + ecx - 1]
mov ebx, esi
shl ebx, 5
add edi, ebx
mov ebx, esi
shr ebx, 2
add edi, ebx
sub ecx, eax
xor esi, edi
cmp ecx, eax
jae 0x442ff0
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
dec ecx
and ecx, esi
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x443083
cmp dword [eax + 0xc], edx
jne 0x44307d
test edx, edx
je 0x443035
test byte [eax + 7], 0x10
je 0x44307d
mov edi, dword [ebp + 0xc]
mov ecx, edx
lea esi, [eax + 0x10]
cmp edx, 4
jb 0x443056
mov ebx, dword [edi]
cmp ebx, dword [esi]
jne 0x44307a
sub ecx, 4
add esi, 4
add edi, 4
cmp ecx, 4
jae 0x443042
test ecx, ecx
je 0x4430a0
mov bl, byte [esi]
cmp bl, byte [edi]
jne 0x44307a
cmp ecx, 1
jbe 0x4430a0
mov bl, byte [esi + 1]
cmp bl, byte [edi + 1]
jne 0x44307a
cmp ecx, 2
jbe 0x4430a0
mov cl, byte [esi + 2]
cmp cl, byte [edi + 2]
je 0x4430a0
mov esi, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
jne 0x443026
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edx
push eax
push ecx
call fcn.00442e00
add esp, 0x10
mov byte [eax + 7], 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x443099
pop edi
xor cl, 3
pop esi
mov byte [eax + 5], cl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov esi, dword [eax*4 + 0x494820]
mov edi, esi
mov dword [esp + 0xc], esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x443828
sub edi, ecx
mov eax, edi
shr eax, 5
inc eax
mov ebx, edi
mov dword [esp + 0x14], edi
mov ecx, edi
cmp edi, eax
jb 0x443866
movzx edx, byte [esi + ecx - 1]
mov esi, ebx
shl esi, 5
add edx, esi
mov esi, ebx
shr esi, 2
add edx, esi
mov esi, dword [esp + 0xc]
sub ecx, eax
xor ebx, edx
cmp ecx, eax
jae 0x443843
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
dec ecx
and ecx, ebx
mov edx, dword [edx + ecx*4]
test edx, edx
je 0x4438f2
jmp 0x443880
cmp dword [edx + 0xc], edi
jne 0x4438ec
test edi, edi
je 0x44388f
test byte [edx + 7], 0x10
jne 0x4438ec
mov eax, edi
lea ecx, [edx + 0x10]
cmp edi, 4
jb 0x4438b4
lea esp, [esp]
mov ebx, dword [esi]
cmp ebx, dword [ecx]
jne 0x4438e4
sub eax, 4
add ecx, 4
add esi, 4
cmp eax, 4
jae 0x4438a0
test eax, eax
je 0x443963
mov bl, byte [ecx]
cmp bl, byte [esi]
jne 0x4438e4
cmp eax, 1
jbe 0x443963
mov bl, byte [ecx + 1]
cmp bl, byte [esi + 1]
jne 0x4438e4
cmp eax, 2
jbe 0x443963
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
je 0x443963
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov edx, dword [edx]
test edx, edx
jne 0x443880
mov edx, dword [ebp + 8]
push ebx
push edi
push esi
push edx
call fcn.00442e00
add esp, 0x10
mov ecx, dword [esp + 0x10]
or byte [eax + 5], 0x20
lea edx, [ecx + 1]
inc ecx
mov byte [eax + 6], dl
mov dword [esp + 0x10], ecx
cmp ecx, 0x20
jl 0x443814
mov ecx, dword [0x494920]
test ecx, ecx
je 0x44395c
mov esi, 0x494920
mov bl, 0x2e
mov edi, edi
mov eax, ecx
add esi, 4
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x443938
sub eax, edi
push eax
mov eax, dword [ebp + 8]
push ecx
push eax
call fcn.00442ed0
or byte [eax + 5], 0x20
mov byte [eax + 6], bl
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
jne 0x443930
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov al, byte [edx + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx ecx, al
and ecx, 3
not ebx
test bl, cl
je 0x443981
xor al, 3
mov byte [edx + 5], al
mov eax, edx
jmp 0x443901
Function at 0x45a190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4ab9f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x41c], ecx
lea ecx, [ebp - 0x40c]
push edi
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x414], 0
mov edi, 0x400
jmp 0x45a1e6
mov eax, dword [ebp - 0x410]
lea edx, [ebp - 0x40c]
sub ecx, edx
mov dword [ebp - 0x424], ecx
je 0x45a250
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x44]
mov esi, eax
cmp edx, dword [ecx + 0x40]
jb 0x45a208
call fcn.00433590
mov eax, dword [ebp - 0x424]
mov ebx, dword [esi + 8]
push eax
lea ecx, [ebp - 0x40c]
push ecx
push esi
call fcn.00442ed0
mov dword [ebx], eax
mov dword [ebx + 8], 4
add dword [esi + 8], 0x10
inc dword [ebp - 0x414]
lea eax, [ebp - 0x418]
add esp, 0xc
lea edx, [ebp - 0x40c]
push eax
mov dword [ebp - 0x418], edx
call fcn.00422aa0
add esp, 4
mov ebx, dword [ebp + 0xc]
cmp edi, ebx
jbe 0x45a259
mov edi, ebx
mov ecx, dword [ebp - 0x41c]
push ecx
push edi
lea edx, [ebp - 0x40c]
push 1
push edx
call fcn.0046fd0b
mov ecx, dword [ebp - 0x418]
add ecx, eax
add esp, 0x10
sub ebx, eax
mov dword [ebp - 0x418], ecx
mov dword [ebp + 0xc], ebx
je 0x45a28f
cmp eax, edi
je 0x45a1e0
lea eax, [ebp - 0x40c]
sub ecx, eax
mov edi, ecx
je 0x45a2e9
mov eax, dword [ebp - 0x410]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x44]
mov esi, eax
cmp edx, dword [ecx + 0x40]
jb 0x45a2b3
call fcn.00433590
mov ebx, dword [esi + 8]
push edi
lea eax, [ebp - 0x40c]
push eax
push esi
call fcn.00442ed0
mov dword [ebx], eax
mov dword [ebx + 8], 4
add dword [esi + 8], 0x10
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x40c]
add esp, 0xc
inc dword [ebp - 0x414]
mov dword [ebp - 0x418], ecx
mov eax, dword [ebp - 0x414]
mov esi, dword [ebp - 0x410]
call fcn.0041f740
mov dword [ebp - 0x414], 1
test ebx, ebx
je 0x45a366
mov edi, dword [ebp - 0x420]
mov esi, dword [edi + 8]
mov eax, dword [esi - 8]
sub esi, 0x10
add eax, 0xfffffffd
cmp eax, 4
ja case.0x45a31f.6
jmp dword [eax*4 + 0x45a37c]
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
jmp 0x45a34f
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
jmp 0x45a34f
mov eax, dword [esi]
call fcn.00431a70
jmp 0x45a34f
call fcn.004337c0
test eax, eax
je 0x45a34d
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
jmp 0x45a34f
xor eax, eax
test eax, eax
jne 0x45a366
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046aac1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0046aac1
mov esp, ebp
pop ebp
ret
Function at 0x45db10
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
mov edx, dword [edi + 0x40]
mov esi, dword [ecx + eax + 0x20]
dec edx
lea ecx, [ecx + eax + 0x18]
not edx
and edx, esi
mov dword [ebp - 0x1c], esi
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x18], edx
test esi, esi
jne 0x45db53
mov ebx, dword [ecx + 0x24]
test bl, 0x40
je 0x45db4c
mov esi, dword [eax + 0x20]
jmp 0x45db53
test bl, bl
jns 0x45db53
mov esi, dword [eax + 0x24]
mov dword [ebp - 0x14], esi
mov esi, dword [ecx + 0x24]
mov dword [ebp - 0x10], esi
mov esi, 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
cmp si, word [eax + 6]
jae 0x45dc20
lea ebx, [ecx + 0x4c]
lea esp, [esp]
mov esi, dword [edi + 0x40]
mov ecx, dword [ebx - 0x1c]
mov edi, dword [ebx - 0x14]
dec esi
not esi
and esi, ecx
mov dword [ebp - 4], ecx
test edi, edi
jne 0x45dba8
mov ecx, dword [ebx]
test cl, 0x40
je 0x45dba1
mov edi, dword [eax + 0x20]
jmp 0x45dba8
test cl, cl
jns 0x45dba8
mov edi, dword [eax + 0x24]
cmp edx, esi
je 0x45dbd7
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
cmp eax, esi
ja 0x45dbd7
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.0045da60
test eax, eax
je 0x45dc3e
mov edx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [ebp - 0x1c], edx
mov edx, esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
jmp 0x45dbff
mov eax, dword [ebx]
test eax, 0x2000000
je 0x45dbee
test dword [ebp - 0x10], 0x2000000
je 0x45dbee
or dword [ebp - 0x10], eax
jmp 0x45dbf9
or eax, dword [ebp - 0x10]
and eax, 0xfdffffff
mov dword [ebp - 0x10], eax
sub edi, dword [ebp - 0x1c]
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
movzx esi, word [eax + 6]
inc ecx
add ebx, 0x28
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp ecx, esi
jl 0x45db80
lea ecx, [ebp - 0x1c]
mov eax, edi
mov dword [ebp - 0xc], 1
call fcn.0045da60
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46aac1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ab9f8]
jne 0x46aacb
repz ret
jmp fcn.0047442c

Function at 0x46ddb9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x46dde0
call fcn.0046e54b
mov dword [eax], esi
call fcn.0046e538
push 0x16
pop esi
mov dword [eax], esi
call fcn.0046e053
mov eax, esi
jmp 0x46de35
test dword [ebp + 0xc], 0xfffffff9
jne 0x46ddc6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46de0d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0046e55e
pop ecx
call fcn.0046e538
mov eax, dword [eax]
jmp 0x46de35
test al, 0x10
jne 0x46de33
test al, 1
je 0x46de33
test byte [ebp + 0xc], 2
je 0x46de33
call fcn.0046e54b
mov dword [eax], 5
call fcn.0046e538
mov dword [eax], 0xd
jmp 0x46de04
xor eax, eax
pop esi
pop ebp
ret

Function at 0x47e048
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x47e06f
call fcn.0046e54b
mov dword [eax], esi
call fcn.0046e538
push 0x16
pop esi
mov dword [eax], esi
call fcn.0046e053
mov eax, esi
jmp 0x47e0c4
test dword [ebp + 0xc], 0xfffffff9
jne 0x47e055
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47e09c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0046e55e
pop ecx
call fcn.0046e538
mov eax, dword [eax]
jmp 0x47e0c4
test al, 0x10
jne 0x47e0c2
test al, 1
je 0x47e0c2
test byte [ebp + 0xc], 2
je 0x47e0c2
call fcn.0046e54b
mov dword [eax], 5
call fcn.0046e538
mov dword [eax], 0xd
jmp 0x47e093
xor eax, eax
pop esi
pop ebp
ret
Function at 0x483a87
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ab9f8]
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.00476ce3
and dword [ebp - 0x14], 0
cmp dword [0x4ae2d0], 0
mov dword [ebp - 0x18], eax
jne 0x483b3a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x483be2
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x492b64
push ebx
call edi
test eax, eax
je 0x483be2
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push 0x492b54
push ebx
mov dword [0x4ae2d0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4ae2d4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4ae2d8], eax
call edi
push eax
call esi
mov dword [0x4ae2e0], eax
test eax, eax
je 0x483b3a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4ae2dc], eax
mov eax, dword [0x4ae2dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x483b93
cmp dword [0x4ae2e0], ecx
je 0x483b93
push eax
call esi
push dword [0x4ae2e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x483b93
test ebx, ebx
je 0x483b93
call edi
test eax, eax
je 0x483b8a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x483b8a
test byte [ebp - 8], 1
jne 0x483b93
or dword [ebp + 0x10], 0x200000
jmp 0x483bc6
mov eax, dword [0x4ae2d4]
cmp eax, dword [ebp - 0x18]
je 0x483bc6
push eax
call esi
test eax, eax
je 0x483bc6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x483bc6
mov eax, dword [0x4ae2d8]
cmp eax, dword [ebp - 0x18]
je 0x483bc6
push eax
call esi
test eax, eax
je 0x483bc6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4ae2d0]
call esi
test eax, eax
je 0x483be2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x483be4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046aac1
leave
ret
Function at 0x40a560
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b1fb
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.0045fbe1
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a5e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045d960
mov eax, dword [eax]
push 0x54c1f0
push eax
call fcn.004505a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045fe6c
test bl, bl
je 0x40a5e2
push 0x54c1f0
lea ecx, [esp + 0xc]
call fcn.004601fc
push 0x54fd6c
lea ecx, [esp + 0xc]
call fcn.004601fc
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 0x40a61e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045fe6c
jmp 0x40a6e9
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 0x40a6a2
lea edx, [esp + 0x7c]
push 0x54fd68
push edx
call fcn.004505a4
add esp, 8
test eax, eax
je 0x40a6a2
lea eax, [esp + 0x7c]
push 0x54fd64
push eax
call fcn.004505a4
add esp, 8
test eax, eax
je 0x40a6a2
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 0x40a632
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.0045fe6c
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40aee0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40af42
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc