joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46fed0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
cmp dword [0x4e47f0], 0
push ebx
push ebp
push esi
mov ebp, ecx
je 0x46ff16
cmp dword [0x4e8ca4], 0
jne 0x46ff16
mov ebx, dword [esp + 0x34]
xor ecx, ecx
mov edx, dword [ebx + 0x28]
test edx, edx
jle 0x46ff16
mov esi, dword [esp + 0x38]
mov eax, dword [ebx + 0x20]
add eax, 0xa
mov esi, dword [esi + 8]
cmp dword [eax - 6], esi
jne 0x46ff0e
cmp byte [eax], 1
je 0x46ff21
inc ecx
add eax, 0xc
cmp ecx, edx
jl 0x46ff04
xor al, al
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
mov eax, dword [0x4e8cbc]
cmp eax, dword [0x4e47f4]
jge 0x46ff16
mov esi, dword [0x4e47f8]
cmp dword [esi + 0x3c], 0
jg 0x46ff16
inc eax
add esi, 0xa0
mov dword [0x4e8cbc], eax
mov eax, dword [0x4e8ca8]
mov dword [0x4e47f8], esi
test eax, eax
je 0x46ff5a
add eax, 0x58
jmp 0x46ff5c
xor eax, eax
test esi, esi
je 0x46ff65
lea ecx, [esi + 0x58]
jmp 0x46ff67
xor ecx, ecx
movups xmm0, xmmword [eax]
push 0x58
push 0
movups xmmword [ecx], xmm0
push esi
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [ecx + 0x30], xmm0
mov eax, dword [eax + 0x40]
mov dword [ecx + 0x40], eax
call fcn.0049d7a0
add esp, 0xc
mov byte [esi + 0x53], 1
mov ecx, 0x4e9f30
mov dword [esi + 0x3c], 0
push 0
call fcn.00439760
mov al, byte [esi + 0x96]
test al, al
jne 0x46ffbf
mov byte [esi + 0x96], al
cmp dword [0x4ea618], 0
je 0x46ffd1
cmp dword [0x4ea614], 0
jne 0x46ffd5
test al, al
je 0x470007
mov dword [esi + 0x5c], 0x10
mov byte [esi + 0x53], 0
test al, al
jne 0x470007
cmp dword [0x4ea618], 0
jge 0x46fff6
mov dword [esi + 0x44], 0xffffffff
jmp 0x470007
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0x48], eax
mov eax, dword [0x4ea618]
mov dword [esi + 0x44], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x4ea61c], eax
mov eax, dword [ebp]
push ebp
call dword [eax + 4]
push dword [esp + 0x3c]
mov eax, ebx
mov dword [esp + 0x1c], 5
mov dword [esp + 0x14], eax
lea ecx, [ebx + 0x20]
mov eax, dword [esp + 0x3c]
push ebp
push 1
mov dword [esp + 0x2c], eax
push dword [eax + 8]
lea eax, [esp + 0x20]
mov dword [esp + 0x38], 1
push 2
push eax
mov dword [esp + 0x3c], 0
call fcn.00479f70
mov ecx, dword [ebp]
mov esi, eax
push ebp
call dword [ecx + 8]
call fcn.00404430
cmp esi, 7
pop esi
pop ebp
sete al
pop ebx
add esp, 0x24
ret 0xc
Function at 0x471670
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [esp + 0x14], edi
nop
movzx eax, word [esi]
cmp eax, 0x20
je 0x47168d
cmp eax, 9
jne 0x471692
add esi, 2
jmp 0x471680
test ax, ax
je 0x4717fc
cmp word [esi + 2], 0
lea ecx, [esi + 2]
jne 0x4716b6
mov word [edi + 2], ax
mov al, 1
mov byte [edi], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x2b
xor bl, bl
mov byte [edi], 1
push ecx
mov byte [esp + 0x1b], bl
call fcn.0049ca21
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x471787
lea edi, [ebp - 2]
cmp edi, esi
jbe 0x4716f4
nop dword [eax + eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x4716ed
cmp eax, 9
jne 0x4716f4
sub edi, 2
cmp edi, esi
ja 0x4716e0
sub edi, esi
sar edi, 1
inc edi
push edi
push 0x4d31b0
push esi
call fcn.0049f012
add esp, 0xc
test eax, eax
jne 0x471711
or bl, 1
jmp 0x471743
push edi
push 0x4d31bc
push esi
call fcn.0049f012
add esp, 0xc
test eax, eax
jne 0x471729
or bl, 4
jmp 0x471743
push edi
push 0x4d31c4
push esi
call fcn.0049f012
add esp, 0xc
test eax, eax
jne 0x4717fc
or bl, 0x10
mov byte [esp + 0x13], bl
lea esi, [ebp + 2]
nop word [eax + eax]
movzx eax, word [esi]
cmp eax, 0x20
je 0x47175d
cmp eax, 9
jne 0x471762
add esi, 2
jmp 0x471750
test ax, ax
je 0x4717fc
lea eax, [esi + 2]
push 0x2b
push eax
call fcn.0049ca21
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4716d4
mov edi, dword [esp + 0x14]
cmp word [esi + 2], 0
jne 0x4717b7
push 1
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
movzx eax, word [esi]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
lea edx, [esp + 0x1b]
mov ecx, eax
call fcn.0041cca0
mov bl, byte [esp + 0x1b]
add esp, 8
jmp 0x4717cf
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041cb70
add esp, 0xc
movzx eax, al
mov word [edi + 2], ax
test bl, 1
je 0x4717de
or byte [edi], 8
test bl, 4
je 0x4717e6
or byte [edi], 0x10
test bl, 0x10
je 0x4717ee
or byte [edi], 4
pop edi
pop esi
test ax, ax
pop ebp
setne al
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
Function at 0x472050
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b66cd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push edi
mov dword [esi + 4], 1
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0x4e8c60
mov dword [esi + 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [esi], vtable.UserMenu.0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 2
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0xff000000
mov edi, dword [0x4e9e44]
test edi, edi
je 0x4720ee
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4720fb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0xc], edi
cmp dword [0x4ea5cc], 0
jne 0x47210f
mov dword [0x4ea5cc], esi
jmp 0x472117
mov eax, dword [0x4ea5d0]
mov dword [eax + 0x20], esi
inc dword [0x4ea5d4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword [0x4ea5d0], esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x47d510
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
push esi
mov dword [ebp - 4], edi
mov ebx, 1
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47d5e5
push 0
push 0
push ebx
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x47d5e5
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x47d560
sub esi, ecx
sar esi, 1
lea edi, [esi + 4]
lea eax, [edi + edi]
call fcn.004b5570
mov ebx, esp
push dword [ebp - 4]
push 0x4dbf94
push edi
push ebx
call fcn.00481800
mov edi, dword [ebp - 8]
lea eax, [ebp - 0xc]
add esp, 0x10
lea esi, [esi*2 + 6]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x47d5b0
cmp dword [ebp - 0xc], esi
je 0x47d5c9
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
neg eax
sbb eax, eax
and eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov esi, 1
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
neg eax
sbb eax, eax
and eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47de80
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x214
push ebx
push ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x10]
push esi
push edi
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0xff
push eax
lea eax, [esp + 0x34]
mov edi, ecx
push eax
push 0
push edi
call ebx
cmp eax, 0x103
je 0x47df37
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x4e47f8]
mov eax, dword [eax + 0x84]
or eax, 0x20019
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x47df44
mov ecx, dword [esp + 0x14]
call fcn.0047de80
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x47df44
lea eax, [esp + 0x20]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x47df44
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0xff
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push edi
call ebx
cmp eax, 0x103
jne 0x47dec1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret

Function at 0x482dc0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10000
call fcn.004b57a0
push esi
push edi
push 0x7fff
lea eax, [esp + 0xc]
mov edi, edx
push eax
push 0x4d5838
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
je 0x482e15
lea ecx, [esi + 1]
cmp ecx, 0x7fff
ja 0x482e15
lea ecx, [esi*2 + 2]
push ecx
lea eax, [esp + 0xc]
push eax
push edi
call fcn.0049cad0
add esp, 0xc
mov eax, esi
pop edi
pop esi
add esp, 0x10000
ret
xor eax, eax
mov word [edi], ax
mov eax, esi
pop edi
pop esi
add esp, 0x10000
ret

Function at 0x482e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push esi
push edi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x20]
or eax, 1
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x482ee9
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x208
push eax
push edi
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x482ee9
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x482ee9
shr ecx, 1
lea eax, [ecx - 1]
mov dword [esp + 0x1c], eax
cmp word [edi + eax*2], si
jne 0x482ecf
test eax, eax
je 0x482eee
mov esi, eax
mov edx, eax
mov ecx, eax
nop word [eax + eax]
cmp word [edi + ecx*2 - 2], 0
mov eax, edx
jne 0x482eee
lea eax, [esi - 1]
mov ecx, eax
mov dword [esp + 0x1c], eax
mov esi, eax
mov edx, eax
test ecx, ecx
jne 0x482eb0
pop edi
pop esi
pop ecx
ret
mov dword [esp + 0x1c], ecx
cmp ecx, 0x104
jae 0x482ee9
xor eax, eax
mov word [edi + ecx*2], ax
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ecx
ret
xor eax, eax
mov word [edi], ax
pop edi
pop esi
pop ecx
ret
Function at 0x484c60
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, edx
mov ebx, ecx
call fcn.00406d40
test eax, eax
jne 0x484cdb
mov eax, dword [0x4e47f8]
cmp dword [eax + 0x34], 0
jne 0x484cb9
cmp dword [0x4ea5ac], 0
jne 0x484cb9
cmp byte [0x4e9ec6], 0
jne 0x484cb9
push 0
push 0
push 0x4ceea8
push 9
push 0x4d0da0
mov ecx, 0x4e9f30
call fcn.0040d460
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 9
push 0
push 0x4ceea8
push 0x4d0da0
mov ecx, 0x4e9f30
call fcn.0040c280
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [ebx + esi]
lea esi, [ebx + 4]
mov dword [esp + 0x14], eax
cmp esi, eax
ja 0x484d62
nop
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x484d62
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x484d62
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x484d62
xor eax, eax
test edi, edi
sete al
add eax, edi
push eax
push 0x42
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x484e5b
test edi, edi
je 0x484d4c
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
test eax, eax
je 0x484db1
push edi
push ebx
push eax
call fcn.0049cad0
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov ebx, esi
push ebp
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [esp + 0x14]
lea esi, [ebx + 4]
cmp esi, eax
jbe 0x484cf0
cmp dword [0x4ea678], 0
je 0x484da4
cmp dword [0x4ea668], 0
je 0x484d8a
push dword [0x4ea660]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov dword [0x4ea668], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4ea678], 0
mov dword [0x4ea660], 0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push ebp
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
cmp dword [0x4ea678], 0
je 0x484dfa
cmp dword [0x4ea668], 0
je 0x484de0
push dword [0x4ea660]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov dword [0x4ea668], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4ea678], 0
mov dword [0x4ea660], 0
mov eax, dword [0x4e47f8]
cmp dword [eax + 0x34], 0
jne 0x484e39
cmp dword [0x4ea5ac], 0
jne 0x484e39
cmp byte [0x4e9ec6], 0
jne 0x484e39
push 0
push 0
push 0x4ceea8
push 9
push 0x4d0d58
mov ecx, 0x4e9f30
call fcn.0040d460
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 9
push 0
push 0x4ceea8
push 0x4d0d58
mov ecx, 0x4e9f30
call fcn.0040c280
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x4ea678], 0
je 0x484e9d
cmp dword [0x4ea668], 0
je 0x484e83
push dword [0x4ea660]
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
mov dword [0x4ea668], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4ea678], 0
mov dword [0x4ea660], 0
push dword [0x4e9dfc]
mov ecx, 0x4e9f30
push 0
push 0
push 0
push 0x4d27a0
call fcn.0040c830
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x485e60
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ecx
cmp byte [esp + 8], 0
push ebx
push ebp
push esi
push edi
mov ebx, edx
mov esi, ecx
je 0x485ecb
lea eax, [esp + 0x10]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x485ed8
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x485ed8
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
test edi, edi
je 0x485ed8
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x485ed8
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
test ebx, ebx
cmovns edi, ebx
test edi, edi
je 0x485f31
mov ebx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebx
mov edx, 1
mov dword [esp + 0x18], eax
mov ecx, 0x8000012f
call fcn.004015e0
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push esi
call ebp
test eax, eax
je 0x485f31
add edi, dword [esp + 0x18]
nop
call ebx
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x485f31
mov edx, 1
mov ecx, 0x8000012f
call fcn.004015e0
push esi
call ebp
test eax, eax
jne 0x485f10
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x488170
Capabilities:
Enumerate gui resources
Find taskbar

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b69d0
push eax
mov eax, 0x10474
mov dword fs:[0], esp
call fcn.004b57a0
push esi
mov esi, ecx
push edi
mov byte [esi], 0
cmp dword [0x4e9e98], esi
je 0x4881b1
mov dword [0x4e9e98], esi
mov dword [0x4e9ea0], 0
cmp dword [0x4e9e9c], 0
jne 0x4881d1
mov ecx, 0x7d0
call fcn.0047e560
test eax, eax
je 0x48839c
mov dword [0x4e9e9c], eax
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
mov edi, eax
push 4
push edi
call ebx
test eax, eax
je 0x4881fb
nop dword [eax]
push 4
push eax
mov edi, eax
call ebx
test eax, eax
jne 0x4881f0
mov eax, dword [0x4e47f8]
mov ecx, esi
add eax, 0x58
push eax
push edi
call fcn.004883b0
pop ebx
test eax, eax
je 0x48821b
xor ecx, ecx
mov dword [0x4e9ea0], ecx
jmp 0x488221
mov ecx, dword [0x4e9ea0]
mov dword [ebp - 0x10480], 0
mov dword [ebp - 0x10478], 0
mov dword [ebp - 0x10474], 0
mov dword [ebp - 0x10464], 0x4ceea8
mov dword [ebp - 0x10440], 0
mov dword [ebp - 0x1043c], 0
mov dword [ebp - 0x10438], 0
mov dword [ebp - 0x10420], 0
mov dword [ebp - 0x1041c], 0
cmp byte [ebp + 8], 0
mov dword [ebp - 4], 0
je 0x488293
mov byte [ebp - 0x10443], 0
test ecx, ecx
je 0x48829a
mov byte [ebp - 0x10443], 1
mov eax, dword [0x4e9e9c]
mov dword [ebp - 0x10434], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x1042c], eax
lea eax, [ebp - 0x10480]
push eax
push 0x4884c0
mov dword [ebp - 0x10430], ecx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x1043c]
test eax, eax
je 0x48832d
push eax
call dword [sym.imp.USER32.dll_GetLastActivePopup]
xor dl, dl
mov ecx, eax
call fcn.00485b00
mov ecx, dword [0x4e9ea0]
xor eax, eax
mov edx, dword [ebp - 0x1043c]
mov esi, dword [0x4e9e9c]
test ecx, ecx
jle 0x488302
cmp dword [esi + eax*4], edx
je 0x488314
inc eax
cmp eax, ecx
jl 0x4882f8
cmp ecx, 0x1f4
jge 0x488314
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x4e9ea0], ecx
mov eax, dword [0x4e47f8]
mov ecx, dword [eax + 0x64]
cmp ecx, 0xffffffff
jle 0x48837c
mov edx, 1
call fcn.004015e0
jmp 0x48837c
mov eax, dword [0x4e9ea0]
test eax, eax
je 0x488366
cmp eax, 1
mov dword [0x4e9ea0], 0
setg al
test al, al
je 0x48837c
mov eax, dword [0x4e9e9c]
mov ecx, esi
push 0
mov dword [0x4e9ea0], 1
mov dword [eax], edi
call fcn.00488170
jmp 0x48837c
push 0
push 0x4d5a30
call dword [sym.imp.USER32.dll_FindWindowW]
xor dl, dl
mov ecx, eax
call fcn.00485b00
push dword [ebp - 0x10478]
call fcn.0049ef92
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.0040dbe0
int3
Function at 0x49bee9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x49bf28
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49bf28
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49bf28
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x49bf28
cmp dword [ecx + 0x74], 0xe
jbe 0x49bf28
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4adbcf
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4e2040]
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 0x4adc1a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004add6a
test al, al
jne 0x4adc14
sub edx, 2
cmp edx, edi
jne 0x4adbfa
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4adc3c
lea eax, [edi + 2]
cmp edx, eax
je 0x4adc3c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004adb1b
add esp, 0x10
jmp 0x4add36
push esi
lea ecx, [ebp - 0x255]
call fcn.004add6a
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 0x4adc7f
push dword [ebp - 0x25c]
jmp 0x4adc2c
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 0x4adcbc
cmp word [ebp - 0x226], 0
je 0x4adcdd
cmp word [ebp - 0x226], ax
jne 0x4adcbc
cmp word [ebp - 0x224], 0
je 0x4adcdd
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004adb1b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4add29
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4adc96
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4add11
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
jmp 0x4add36
push 0x4ad94b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004a9180
add esp, 0x10
jmp 0x4add06
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.0049c143
leave
ret

Function at 0x4aea70
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bb80c
push 0x4bb804
push 0x4b9430
push 0x1f
call fcn.004ae9ab
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4aeaa4
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b87ac]
call esi
jmp 0x4aeaaa
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4aeaee
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bb81c
push 0x4bb814
push 0x4b9454
push 0x21
call fcn.004ae9ab
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4aeb25
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b87ac]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsGetValue]

Function at 0x4aeb2d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4bb824
push 0x4bb81c
push 0x4b9468
push 0x22
call fcn.004ae9ab
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4aeb67
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4b87ac]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsSetValue]
Function at 0x1001109
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x1001190
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001168
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x1001170
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1001ad1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
cmp dword [ebp - 8], 0xd2af9
sete bl
jmp 0x100115f

Function at 0x10011df
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 1], 1
cmp dword [ebp + 8], esi
je 0x10019b1
push 0x1001224
push dword [ebp + 8]
call fcn.01001943
pop ecx
pop ecx
test eax, eax
je 0x10019b1
xor al, al
pop esi
leave
ret 4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
push 3
push esi
mov edi, 0x1001a30
push edi
mov esi, 0x80000001
push esi
call ebx
test eax, eax
jne 0x1001ae0
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1001a88
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001a0b
cmp dword [ebp - 0x10], esi
jne 0x1001a0b
cmp dword [ebp - 0x14], 1
jne 0x1001a0b
mov byte [ebp - 1], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 8], 0
cmp byte [ebp - 1], 0
jne 0x1001af4
mov al, byte [ebp - 1]
pop edi
pop ebx
jmp 0x100121c
lea eax, [ebp - 8]
push eax
push 1
push 0
push edi
push esi
call ebx
test eax, eax
je 0x1001a07
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x1001b58
push 0x80000002
call ebx
test eax, eax
jne 0x1001a22
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1001bb8
push dword [ebp - 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001b47
cmp dword [ebp - 0x10], esi
jne 0x1001b47
cmp dword [ebp - 0x14], 1
jne 0x1001b47
mov byte [ebp - 1], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001a22

Function at 0x100176d
Capabilities:
Accept command line arguments
Check mutex and terminate process on windows
Check mutex on windows
Create process on windows
Initialize winsock library
Query environment variable
Query or enumerate registry value
Set current directory
Terminate process

Disassembly:
call fcn.01001242
jmp fcn.01001be8