joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bff0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45755f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x478024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 8]
mov dword [esi + 4], 0
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], 0
mov dword [ebp - 4], 1
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [ebp - 4], 4
lea edi, [esi + 0x38]
mov eax, dword [ebp + 8]
mov dword [esi + 0x20], 0x46a140
mov dword [esi + 0x24], 0x468718
mov dword [esi + 0x28], 0x46a11c
mov dword [esi], 0x46a1b8
mov dword [esi + 0x20], 0x46a190
mov dword [esi + 0x24], 0x46a18c
mov dword [esi + 0x28], 0x46a168
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0
mov byte [esi + 0x34], 0
mov dword [ebp + 8], edi
call fcn.00403950
test eax, eax
je 0x42c1f9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 6
lea edi, [esi + 0x3c]
mov dword [ebp + 8], edi
call fcn.00403950
test eax, eax
je 0x42c1f9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 8
lea ecx, [esi + 0x40]
mov dword [ebp + 8], ecx
lea eax, [ecx + 8]
mov dword [ecx + 4], 0
mov dword [ebp - 0x14], eax
mov dword [eax + 0xc], 0
mov byte [ebp - 4], 0xa
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov byte [ebp - 4], 0xb
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [ecx + 0x20], eax
mov byte [ebp - 4], 0xd
lea edi, [ecx + 0x28]
mov dword [ecx], 0x46a10c
mov dword [ecx + 0x24], 0
mov dword [ebp - 0x18], edi
call fcn.00403950
test eax, eax
je 0x42c1f9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x10
lea edi, [esi + 0x94]
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 1
mov byte [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov byte [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [ebp + 8], edi
call fcn.00403950
test eax, eax
je 0x42c1f9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x12
lea edi, [esi + 0x98]
mov dword [ebp + 8], edi
call fcn.00403950
test eax, eax
je 0x42c1f9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 0x14
lea ecx, [esi + 0xa0]
call fcn.004342d0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404020
int3
Function at 0x42e5d0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x457d0d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x478024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebp + 8], 0
jne 0x42e6d3
mov edx, 0xd8
lea ecx, [ebp - 0x24]
call fcn.0042b170
mov dword [ebp - 4], 0
mov edx, 0xd9
lea ecx, [ebp - 0x2c]
call fcn.0042b170
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x44
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x42e693
mov byte [ebx + 0x18], 1
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42e66d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x42e68c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
jmp 0x42e7a3
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42e6b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x42e6d3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x28], 0x46552c
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x24]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x42e72f
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], 0x46552c
test eax, eax
je 0x42e72b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
xor al, al
jmp 0x42e7a3
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42e708
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x42e708
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], 0x46552c
test eax, eax
je 0x42e7a1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], 0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00438889
mov esp, ebp
pop ebp
ret 4
Function at 0x42eda0
Capabilities:
Get file size
Hash data with md5
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x458015
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x478024]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push ecx
mov byte [edx], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x24], 0x46552c
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
cmp edi, 0xffffffff
je 0x42ef31
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42ef31
test ebx, ebx
je 0x42ef31
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
push 0x10000
call fcn.00417780
mov esi, dword [ebp - 0x14]
test esi, esi
jne 0x42ee50
xor bl, bl
jmp 0x42ef1b
xor edi, edi
mov byte [ebp + 0x68], 0
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
mov dword [ebp], 0x67452301
mov dword [ebp + 4], 0xefcdab89
mov dword [ebp + 8], 0x98badcfe
mov dword [ebp + 0xc], 0x10325476
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x10]
push eax
push 0x10000
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42eec5
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x42eec5
lea eax, [ecx + edi]
cmp eax, ebx
ja 0x42eeb6
push ecx
push esi
lea ecx, [ebp]
call fcn.004041d0
add edi, dword [ebp - 0x10]
jmp 0x42ee80
sub ebx, edi
lea ecx, [ebp]
push ebx
push esi
mov dword [ebp - 0x10], ebx
call fcn.004041d0
lea ecx, [ebp]
call fcn.004042a0
cmp byte [ebp + 0x68], 0
jne 0x42eed7
xor bl, bl
jmp 0x42ef18
mov esi, dword [ebp - 0x1c]
xor edi, edi
nop dword [eax]
mov dl, byte [ebp + edi + 0x58]
mov cl, dl
shr cl, 4
cmp cl, 0xa
sbb al, al
and dl, 0xf
and al, 0xd9
add al, 0x57
add al, cl
cmp dl, 0xa
mov byte [esi + edi*2], al
sbb al, al
and al, 0xd9
add al, 0x57
add al, dl
mov byte [esi + edi*2 + 1], al
inc edi
cmp edi, 0x10
jl 0x42eee0
mov byte [esi + 0x20], 0
mov bl, 1
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov byte [ebp - 4], 0
push esi
call fcn.00438f5b
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x42ef33
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], 0x46552c
test edi, edi
je 0x42ef53
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.00438889
lea esp, [ebp + 0x70]
pop ebp
ret
Function at 0x42f7b0
Capabilities:
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4582ce
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x478024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
call fcn.00403950
test eax, eax
je 0x42f961
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 2
mov ebx, 1
mov dword [ebp - 0x14], 0x64
mov ecx, ebx
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x64
or eax, ecx
jge 0x42f834
push 0x64
lea ecx, [ebp - 0x10]
call fcn.00403ef0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0x64
jl 0x42f96b
xor eax, eax
mov dword [esi - 0xc], 0x64
mov word [esi + 0xc8], ax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push dword [esi - 8]
push esi
call fcn.0043c5ac
add esp, 8
test eax, eax
js 0x42f96b
cmp eax, dword [esi - 8]
jg 0x42f96b
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.00403950
test eax, eax
je 0x42f961
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 2
mov eax, dword [edi]
mov dword [ebp - 0x18], 1
sub ebx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x64
or eax, ebx
jge 0x42f8bb
push 0x64
mov ecx, edi
call fcn.00403ef0
mov ecx, dword [edi]
cmp dword [ecx - 8], 0x64
jl 0x42f96b
mov dword [ecx - 0xc], 0x64
xor edx, edx
mov eax, dword [edi]
push 0x64
push ecx
push str.UserDomain
mov word [eax + 0xc8], dx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [edi]
test eax, eax
jne 0x42f8f1
xor ecx, ecx
jmp 0x42f903
push dword [eax - 8]
push eax
call fcn.0043c5ac
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x42f96b
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x42f96b
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
push 1
push 0x465a14
mov word [eax + ecx*2], dx
mov ecx, edi
call fcn.00403530
push dword [esi - 0xc]
mov ecx, edi
push esi
call fcn.00403530
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42f94d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404020
push 0x80070057
call fcn.00404020
int3
Function at 0x431ec0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45894d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x478024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push esi
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
cmp byte [ebx + 0x40], 0
mov dword [ebp + 0xc], eax
cmovne ecx, eax
mov byte [ebx + 0x10], 1
lea eax, [ebp - 0x14]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x10], eax
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x431fd4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.00431e00
mov esi, eax
mov byte [ebx + 0x10], 0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x431f77
cmp dword [ebp + 0x10], eax
je 0x431f77
mov esi, 0x2ee2
jmp 0x431f8f
test esi, esi
jne 0x431f8f
mov esi, dword [ebx + 4]
cmp esi, dword [edi + 4]
je 0x431f8d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [edi + 4], esi
xor esi, esi
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x14]
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x431fbe
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.00404020
int3
Function at 0x435480
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4590a6
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x478024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.00403950
mov ecx, eax
test ecx, ecx
je 0x43557b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
push 0
push 0x465a9c
push 2
movzx ebx, di
push ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x18], eax
lea ecx, [eax - 1]
push ecx
push 0x78
lea ecx, [ebp - 0x10]
call fcn.00412010
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
cmp dword [ecx - 4], 1
jle 0x435526
push dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00403e10
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x18]
push ecx
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push dword [ebp - 0x10]
push edi
push str._d__s
push esi
call fcn.004121e0
add esp, 0x10
mov dword [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x435567
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404020
int3

Function at 0x435610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.00439890
push 0xffffffffffffffff
push 0x45912d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x478024]
xor eax, ebp
mov dword [ebp + 0x8000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
cmp dword [esi + 4], 0
mov eax, dword [ebp + 0x800c]
mov dword [ebp - 0x1c], eax
jne 0x435668
xor al, al
jmp 0x4356f6
mov ecx, eax
call fcn.0040b7f0
xor edi, edi
push 0
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0x3fff
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test ebx, ebx
jne 0x4356e8
mov esi, dword [ebp - 0x10]
call fcn.00403950
push eax
push esi
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040c020
mov dword [ebp - 4], 1
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
push eax
call fcn.0040b890
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4356e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
inc edi
test ebx, ebx
je 0x435671
cmp ebx, 0x103
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8000]
xor ecx, ebp
call fcn.00438889
lea esp, [ebp + 0x8004]
pop ebp
ret 8
Function at 0x435a30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45923d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x478024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x10], 0xc8
call fcn.00438f5b
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00417c10
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x435aed
nop dword [eax + eax]
add dword [ebp - 0x10], 2
push esi
call fcn.00438f5b
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00417c10
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push dword [edi]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x435ab0
test eax, eax
jne 0x435b1c
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x435b20
cmp eax, 2
je 0x435b20
cmp eax, 7
je 0x435b20
cmp eax, 4
jne 0x435b1c
push dword [esi]
push 0x468530
push dword [ebp + 8]
call fcn.004121e0
add esp, 0xc
jmp 0x435b71
xor bl, bl
jmp 0x435b73
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x10], eax
mov word [esi + eax*2], cx
mov edi, dword [ebp - 0x10]
cmp word [esi + edi*2], cx
jne 0x435b41
dec edi
mov dword [ebp - 0x10], edi
cmp word [esi + edi*2], cx
je 0x435b37
inc edi
mov dword [ebp - 0x10], edi
call fcn.00403950
push eax
push edi
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040c020
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp + 8]
push eax
call fcn.00407c70
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004035e0
mov bl, 1
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.00438f5b
add esp, 4
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4360c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp dword [ebp + 0x1c], 0
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov edi, ecx
jne 0x436233
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x10], 1
cmp ecx, 0x110
jne 0x43611c
sub esp, 8
mov dword [edi + 0x40], 1
mov ecx, edi
call fcn.00436310
mov dword [ebx], eax
cmp dword [edi + 0x40], 0
je 0x43623e
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x111
jne 0x436241
movzx eax, si
mov dword [esp + 0x14], eax
cmp word [esp + 0x10], ax
jne 0x4361b2
sub esp, 0x10
lea eax, [edi + 0x44]
lea ecx, [edi + 0x40]
push eax
push 0x425
call fcn.004364d0
sub esp, 0x10
lea eax, [edi + 0x48]
lea esi, [edi + 0x40]
mov ecx, esi
push eax
push 0x426
call fcn.004364d0
mov ecx, 4
lea eax, [esi - 0x3c]
test esi, esi
push 0x427
cmove eax, ecx
push dword [eax]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
push 1
push dword [edi + 4]
sete cl
mov byte [edi + 0x4c], cl
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [ebx], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [esp + 0x10], 2
cmp word [esp + 0x10], ax
jne 0x4361e0
push 2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [ebx], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, esi
mov dword [esp + 0x10], 0x300
shr eax, 0x10
cmp word [esp + 0x10], ax
jne 0x436241
mov eax, 0x425
cmp word [esp + 0x14], ax
jne 0x43622d
sub esp, 0x10
lea esi, [edi + 0x44]
lea ecx, [edi + 0x40]
push esi
push eax
call fcn.004364d0
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [esi]
xor edx, edx
cmp dword [ecx - 0xc], edx
setne dl
push edx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0xc]
lea edx, [edi + 0x20]
cmp ecx, 5
jne 0x4362b1
xor eax, eax
test edx, edx
cmove edi, eax
cmp byte [edx + 0x1c], al
je 0x436282
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp esi, 2
jne 0x436273
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x436287
test esi, esi
jne 0x436282
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x436287
cmp esi, 1
je 0x4362d5
mov ecx, dword [ebp + 0x14]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
lea ecx, [edi + 0x20]
push eax
call fcn.00436a50
mov dword [ebx], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x24
jne 0x436233
cmp dword [edx + 0x14], 0xffffffff
je 0x4362d5
cmp dword [edx + 0x18], 0xffffffff
je 0x4362d5
mov eax, dword [ebp + 0x14]
mov ecx, dword [edx + 0x14]
mov edx, dword [edx + 0x18]
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], edx
pop edi
pop esi
mov dword [ebx], 0
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4364d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], 1
push edi
push dword [ebp + 8]
lea eax, [esi - 0x40]
neg esi
sbb esi, esi
and esi, eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
test ebx, ebx
js 0x4365c4
mov edi, dword [ebp + 0xc]
mov ecx, 1
mov edx, dword [edi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, ebx
or ecx, eax
jge 0x436530
push ebx
mov ecx, edi
call fcn.00403ef0
mov edx, dword [edi]
cmp ebx, dword [edx - 8]
jg 0x4365c4
mov dword [edx - 0xc], ebx
xor ecx, ecx
mov eax, dword [edi]
mov word [eax + ebx*2], cx
lea eax, [ebx + 1]
push eax
push edx
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, eax
mov eax, dword [edi]
mov dword [esp + 0x14], edx
test eax, eax
jne 0x436563
xor ecx, ecx
jmp 0x436579
push dword [eax - 8]
push eax
call fcn.0043c5ac
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4365c4
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x4365c4
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
xor edi, edi
mov word [eax + ecx*2], di
cmp edx, ebx
jge 0x4365b7
push 0xffffffffffffffff
mov dword [esp + 0x14], edi
call dword [sym.imp.USER32.dll_MessageBeep]
push dword [ebp + 8]
lea ecx, [esi + 0x40]
neg ecx
sbb ecx, ecx
and ecx, esi
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x80070057
call fcn.00404020
int3
Function at 0x449b0c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00449789