joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484150
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x18
mov eax, dword [0x67c3c0]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
push eax
push 4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
lea eax, [edi + 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [esp + 0x10], 4
jne 0x484202
mov eax, dword [esp + 8]
test eax, eax
je 0x484202
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0x43415250
push ecx
push 0x40
add edi, 0xfffffffc
add eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 4
push eax
push esi
mov dword [esp + 0x1c], eax
call edi
test eax, eax
je 0x484202
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x484202
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x10]
push 4
push dword [esp + 0x14]
push esi
call edi
test eax, eax
je 0x484202
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0059a5ad
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0059a5ad
add esp, 0x18
ret
Function at 0x4a87a0
Capabilities:
Execute shellcode via indirect call

Disassembly:
mov eax, dword [0x4776e8]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [ecx + 0x600], 0
mov dword [ecx + 0x604], 0x140002
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x608], eax
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x60c], eax
mov eax, dword [edx + 0x1c]
mov dword [ecx + 0x610], eax
mov dword [ecx + 0x614], 0
mov dword [ecx + 0x618], 0x140004
mov eax, dword [edx + 0x24]
mov dword [ecx + 0x61c], eax
mov eax, dword [edx + 0x28]
mov dword [ecx + 0x620], eax
mov eax, dword [edx + 0x2c]
mov dword [ecx + 0x624], eax
mov dword [ecx + 0x628], 0
mov dword [ecx + 0x62c], 0x140008
mov eax, dword [edx + 4]
mov dword [ecx + 0x630], eax
mov eax, dword [edx + 8]
mov dword [ecx + 0x634], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0x638], eax
mov eax, dword [esp + 4]
mov dword [ecx + 0x63c], 0
mov dword [ecx + 0x640], 0x100001
mov dword [ecx + 0x644], eax
mov eax, dword [esp + 8]
mov dword [ecx + 0x648], eax
movups xmm0, xmmword [edx]
movups xmmword [0x6856e8], xmm0
movups xmm0, xmmword [edx + 0x10]
movups xmmword [0x6856f8], xmm0
movups xmm0, xmmword [edx + 0x20]
movups xmmword [0x685708], xmm0
call fcn.004a7070
mov ecx, eax
jmp fcn.0045ae60
Function at 0x4be520
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7d50
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00442ea0
movsd xmm0, qword [0x5d24a8]
lea esi, [edi + 0xa0]
mov dword [edi], vtable.THPrac::TH125::THAdvOptWnd.0
xor eax, eax
movsd qword [edi + 0x68], xmm0
mov ecx, edi
mov dword [edi + 0x60], 0
xorps xmm0, xmm0
mov dword [edi + 0x64], 0x3c
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
movups xmmword [edi + 0x80], xmm0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 7
mov word [edi + 0x80], ax
mov byte [edi + 0x98], al
push 0x27
mov dword [esi], 0x42ea14
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x60e9dc
mov dword [esi + 0x10], 7
mov word [esi + 0x14], 1
mov byte [esi + 0x16], al
mov byte [edi + 0xb8], al
call fcn.00457a10
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0x3f4ccccd
mov dword [esp], 0x3f4ccccd
call fcn.004576a0
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0
mov dword [esp], 0
push 2
call fcn.004578c0
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0
mov dword [esp], 0
push 3
call fcn.004578c0
imul eax, dword [0x66b030], 0xe2c
mov ecx, edi
push dword [eax + 0x66bec8]
call fcn.00457900
mov eax, dword [0x66b030]
sub eax, 0
je 0x4be66d
sub eax, 1
je 0x4be66d
sub eax, 1
jne 0x4be6b7
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call fcn.00457830
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00457740
push ecx
mov ecx, edi
mov dword [esp], 0xbd99999a
call fcn.004576d0
push 1
mov ecx, edi
call fcn.004574e0
mov ecx, esi
call fcn.0045b020
push str.vpatch_th125.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [edi + 0x7c], eax
test eax, eax
je 0x4be72e
lea eax, [ebp - 0x20]
push eax
push str.vpatch_th125.dll
call fcn.00449950
add esp, 8
cmp dword [ebp - 0x20], 0x499fd866
jne 0x4be725
cmp dword [ebp - 0x1c], 0x94567827
jne 0x4be725
cmp dword [ebp - 0x18], 0x441edc53
jne 0x4be725
cmp dword [ebp - 0x14], 0xe24c4e8d
jne 0x4be725
mov ecx, dword [edi + 0x7c]
mov eax, edi
cmp dword [ecx + 0x1b024], 0
jne 0x4be776
mov dword [edi + 0x60], 2
mov ecx, dword [ecx + 0x1b034]
mov dword [edi + 0x64], ecx
jmp 0x4be776
mov dword [edi + 0x60], 0xffffffff
jmp 0x4be774
cmp byte [0x4d0ebb], 3
jne 0x4be76d
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x24]
push eax
push 0x40
push 4
push 0x44f149
mov dword [edi + 0x60], 1
call esi
lea eax, [edi + 0x68]
mov dword [0x44f149], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
push 4
push 0x44f149
call esi
jmp 0x4be774
mov dword [edi + 0x60], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059a5ad
mov esp, ebp
pop ebp
ret
Function at 0x4c0230
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7e10
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x22c], esi
call fcn.00442ea0
mov dword [esi], vtable.THPrac::TH128::THGuiRep.0
lea edi, [esi + 0x60]
mov byte [esi + 0x5c], 0
lea eax, [edi + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x220], eax
movups xmmword [edi], xmm0
mov dword [eax], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [esi + 0x78], al
mov byte [esi + 0xa9], al
lea eax, [ebp - 0x218]
push 0x104
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea esi, [ebp - 0x218]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4c02c1
mov edx, dword [edi + 0x14]
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x228], edx
cmp esi, edx
ja 0x4c030a
cmp edx, 7
jbe 0x4c02e4
mov edi, dword [edi]
mov eax, dword [ebp - 0x220]
mov dword [eax], esi
add esi, esi
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.0059ce90
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x4c03e6
cmp esi, 0x7ffffffe
ja 0x4c0407
mov ecx, esi
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x4c032a
mov ecx, 0x7ffffffe
jmp 0x4c0357
mov eax, edx
shr eax, 1
mov dword [ebp - 0x21c], eax
mov eax, 0x7ffffffe
sub eax, dword [ebp - 0x21c]
cmp edx, eax
jbe 0x4c034a
mov ecx, 0x7ffffffe
jmp 0x4c0357
mov eax, dword [ebp - 0x21c]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], ecx
push eax
push edi
call fcn.00442760
mov ecx, eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], ecx
mov dword [eax], esi
add esi, esi
mov eax, dword [ebp - 0x21c]
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x218]
push esi
push eax
push ecx
call fcn.0059ce90
mov ecx, dword [ebp - 0x224]
xor eax, eax
add esp, 0x14
mov word [esi + ecx], ax
mov eax, dword [ebp - 0x228]
cmp eax, 7
jbe 0x4c03e4
lea ecx, [eax*2 + 2]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x4c03d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c040c
mov eax, edx
push ecx
push eax
call fcn.0059a744
mov eax, dword [ebp - 0x224]
add esp, 8
mov dword [edi], eax
jmp 0x4c03e6
mov dword [edi], ecx
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059a5ad
mov esp, ebp
pop ebp
ret
call fcn.004481f0
call fcn.005ad975
int3
Function at 0x4c9290
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7e10
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x22c], esi
call fcn.00442ea0
lea edi, [esi + 0x60]
mov dword [esi], vtable.THPrac::TH13::THGuiRep.0
mov byte [esi + 0x5c], 0
lea eax, [edi + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x220], eax
movups xmmword [edi], xmm0
mov dword [eax], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [esi + 0x78], al
lea eax, [ebp - 0x218]
push 0x104
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea esi, [ebp - 0x218]
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4c9320
mov edx, dword [edi + 0x14]
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x228], edx
cmp esi, edx
ja 0x4c9369
cmp edx, 7
jbe 0x4c9343
mov edi, dword [edi]
mov eax, dword [ebp - 0x220]
mov dword [eax], esi
add esi, esi
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.0059ce90
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x4c9445
cmp esi, 0x7ffffffe
ja 0x4c9466
mov ecx, esi
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x4c9389
mov ecx, 0x7ffffffe
jmp 0x4c93b6
mov eax, edx
shr eax, 1
mov dword [ebp - 0x21c], eax
mov eax, 0x7ffffffe
sub eax, dword [ebp - 0x21c]
cmp edx, eax
jbe 0x4c93a9
mov ecx, 0x7ffffffe
jmp 0x4c93b6
mov eax, dword [ebp - 0x21c]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], ecx
push eax
push edi
call fcn.00442760
mov ecx, eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], ecx
mov dword [eax], esi
add esi, esi
mov eax, dword [ebp - 0x21c]
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x218]
push esi
push eax
push ecx
call fcn.0059ce90
mov ecx, dword [ebp - 0x224]
xor eax, eax
add esp, 0x14
mov word [esi + ecx], ax
mov eax, dword [ebp - 0x228]
cmp eax, 7
jbe 0x4c9443
lea ecx, [eax*2 + 2]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x4c942f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c946b
mov eax, edx
push ecx
push eax
call fcn.0059a744
mov eax, dword [ebp - 0x224]
add esp, 8
mov dword [edi], eax
jmp 0x4c9445
mov dword [edi], ecx
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059a5ad
mov esp, ebp
pop ebp
ret
call fcn.004481f0
call fcn.005ad975
int3
Function at 0x4da330
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c88c0
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x685f10]
test eax, eax
jne 0x4da425
push 0xc0
call fcn.0059ae0f
mov esi, eax
add esp, 4
test esi, esi
je 0x4da419
push 0xc0
push 0
push esi
call fcn.0059c4a0
add esp, 0xc
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00442ea0
mov dword [esi], vtable.THPrac::TH14::THGuiRep.0
xor eax, eax
mov byte [esi + 0x5c], 0
xorps xmm0, xmm0
movups xmmword [esi + 0x60], xmm0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 7
mov word [esi + 0x60], ax
mov byte [esi + 0x78], al
mov byte [esi + 0xb9], al
lea eax, [ebp - 0x218]
push 0x104
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [ebp - 0x218]
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4da3f0
sub edx, ecx
lea eax, [ebp - 0x218]
sar edx, 1
lea ecx, [esi + 0x60]
push edx
push eax
call fcn.00469260
mov dword [0x685f10], esi
mov eax, esi
jmp 0x4da425
mov dword [0x685f10], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059a5ad
mov esp, ebp
pop ebp
ret
Function at 0x4dc5c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7e10
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x22c], esi
call fcn.00442ea0
mov dword [esi], vtable.THPrac::TH15::THGuiRep.0
lea edi, [esi + 0x60]
mov byte [esi + 0x5c], 0
lea eax, [edi + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x220], eax
movups xmmword [edi], xmm0
mov dword [eax], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [esi + 0x78], al
mov byte [esi + 0xb5], al
lea eax, [ebp - 0x218]
push 0x104
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea esi, [ebp - 0x218]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4dc651
mov edx, dword [edi + 0x14]
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x228], edx
cmp esi, edx
ja 0x4dc69a
cmp edx, 7
jbe 0x4dc674
mov edi, dword [edi]
mov eax, dword [ebp - 0x220]
mov dword [eax], esi
add esi, esi
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.0059ce90
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x4dc776
cmp esi, 0x7ffffffe
ja 0x4dc797
mov ecx, esi
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x4dc6ba
mov ecx, 0x7ffffffe
jmp 0x4dc6e7
mov eax, edx
shr eax, 1
mov dword [ebp - 0x21c], eax
mov eax, 0x7ffffffe
sub eax, dword [ebp - 0x21c]
cmp edx, eax
jbe 0x4dc6da
mov ecx, 0x7ffffffe
jmp 0x4dc6e7
mov eax, dword [ebp - 0x21c]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], ecx
push eax
push edi
call fcn.00442760
mov ecx, eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], ecx
mov dword [eax], esi
add esi, esi
mov eax, dword [ebp - 0x21c]
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x218]
push esi
push eax
push ecx
call fcn.0059ce90
mov ecx, dword [ebp - 0x224]
xor eax, eax
add esp, 0x14
mov word [esi + ecx], ax
mov eax, dword [ebp - 0x228]
cmp eax, 7
jbe 0x4dc774
lea ecx, [eax*2 + 2]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x4dc760
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4dc79c
mov eax, edx
push ecx
push eax
call fcn.0059a744
mov eax, dword [ebp - 0x224]
add esp, 8
mov dword [edi], eax
jmp 0x4dc776
mov dword [edi], ecx
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059a5ad
mov esp, ebp
pop ebp
ret
call fcn.004481f0
call fcn.005ad975
int3
Function at 0x4e5590
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7e10
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x22c], esi
call fcn.00442ea0
mov dword [esi], vtable.THPrac::TH16::THGuiRep.0
lea edi, [esi + 0x60]
mov byte [esi + 0x5c], 0
lea eax, [edi + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x220], eax
movups xmmword [edi], xmm0
mov dword [eax], 0
xor eax, eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [esi + 0x78], al
mov byte [esi + 0xb6], al
lea eax, [ebp - 0x218]
push 0x104
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea esi, [ebp - 0x218]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4e5621
mov edx, dword [edi + 0x14]
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x228], edx
cmp esi, edx
ja 0x4e566a
cmp edx, 7
jbe 0x4e5644
mov edi, dword [edi]
mov eax, dword [ebp - 0x220]
mov dword [eax], esi
add esi, esi
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.0059ce90
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x4e5746
cmp esi, 0x7ffffffe
ja 0x4e5767
mov ecx, esi
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x4e568a
mov ecx, 0x7ffffffe
jmp 0x4e56b7
mov eax, edx
shr eax, 1
mov dword [ebp - 0x21c], eax
mov eax, 0x7ffffffe
sub eax, dword [ebp - 0x21c]
cmp edx, eax
jbe 0x4e56aa
mov ecx, 0x7ffffffe
jmp 0x4e56b7
mov eax, dword [ebp - 0x21c]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], ecx
push eax
push edi
call fcn.00442760
mov ecx, eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], ecx
mov dword [eax], esi
add esi, esi
mov eax, dword [ebp - 0x21c]
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x218]
push esi
push eax
push ecx
call fcn.0059ce90
mov ecx, dword [ebp - 0x224]
xor eax, eax
add esp, 0x14
mov word [esi + ecx], ax
mov eax, dword [ebp - 0x228]
cmp eax, 7
jbe 0x4e5744
lea ecx, [eax*2 + 2]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x4e5730
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e576c
mov eax, edx
push ecx
push eax
call fcn.0059a744
mov eax, dword [ebp - 0x224]
add esp, 8
mov dword [edi], eax
jmp 0x4e5746
mov dword [edi], ecx
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059a5ad
mov esp, ebp
pop ebp
ret
call fcn.004481f0
call fcn.005ad975
int3
Function at 0x4f0660
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8980
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x686210], 0
jne 0x4f0870
push 0xa0
call fcn.0059ae0f
mov edi, eax
add esp, 4
test edi, edi
je 0x4f0866
push 0xa0
push 0
push edi
call fcn.0059c4a0
add esp, 0xc
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00442ea0
movsd xmm0, qword [0x5d24a8]
xor eax, eax
mov dword [edi], vtable.THPrac::TH165::THAdvOptWnd.0
mov ecx, edi
movsd qword [edi + 0x68], xmm0
xorps xmm0, xmm0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0x3c
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
movups xmmword [edi + 0x80], xmm0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 7
mov word [edi + 0x80], ax
push 0x27
mov byte [edi + 0x98], al
call fcn.00457a10
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0x3f4ccccd
mov dword [esp], 0x3f4ccccd
call fcn.004576a0
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0
mov dword [esp], 0
push 2
call fcn.004578c0
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0
mov dword [esp], 0
push 3
call fcn.004578c0
imul eax, dword [0x66b030], 0xe2c
mov ecx, edi
push dword [eax + 0x66bec8]
call fcn.00457900
mov eax, dword [0x66b030]
sub eax, 0
je 0x4f07b8
sub eax, 1
je 0x4f07b8
sub eax, 1
jne 0x4f0802
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0x3f800000
mov dword [esp], 0x3f800000
call fcn.00457830
sub esp, 8
mov ecx, edi
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00457740
push ecx
mov ecx, edi
mov dword [esp], 0xbd99999a
call fcn.004576d0
push 1
mov ecx, edi
call fcn.004574e0
cmp byte [case.0x4b2d86.42], 3
jne 0x4f0850
lea eax, [ebp - 0x14]
mov dword [edi + 0x60], 1
push eax
push 0x40
push 4
push 0x460fd7
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [edi + 0x68]
mov dword [0x460fd7], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 4
push 0x460fd7
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xffffffff
mov dword [0x686210], edi
jmp 0x4f0870
mov dword [edi + 0x60], 0
mov dword [ebp - 4], 0xffffffff
mov dword [0x686210], edi
jmp 0x4f0870
mov dword [0x686210], 0
push 0x7b
call fcn.0045d6d0
add esp, 4
cmp eax, 1
jne 0x4f08a0
mov ecx, dword [0x686210]
call fcn.004570d0
mov ecx, dword [0x686210]
test al, al
je 0x4f089b
call fcn.00456d90
jmp 0x4f08a0
call fcn.004574d0
mov ecx, dword [0x686210]
call fcn.00457a20
mov ecx, dword [0x686210]
call fcn.004570d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059a5ad
mov esp, ebp
pop ebp
ret
Function at 0x4f16c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c7e10
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x67c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x22c], eax
lea edi, [eax + 4]
mov byte [eax], 0
xorps xmm0, xmm0
lea ecx, [edi + 0x10]
movups xmmword [edi], xmm0
mov dword [ecx], 0
mov dword [ebp - 0x220], ecx
xor ecx, ecx
mov dword [edi + 0x14], 7
mov word [edi], cx
mov byte [eax + 0x1c], cl
mov byte [eax + 0x69], cl
lea eax, [ebp - 0x218]
push 0x104
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea esi, [ebp - 0x218]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4f1742
mov edx, dword [edi + 0x14]
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x228], edx
cmp esi, edx
ja 0x4f178b
cmp edx, 7
jbe 0x4f1765
mov edi, dword [edi]
mov eax, dword [ebp - 0x220]
mov dword [eax], esi
add esi, esi
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call fcn.0059ce90
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
jmp 0x4f1867
cmp esi, 0x7ffffffe
ja 0x4f1888
mov ecx, esi
or ecx, 7
cmp ecx, 0x7ffffffe
jbe 0x4f17ab
mov ecx, 0x7ffffffe
jmp 0x4f17d8
mov eax, edx
shr eax, 1
mov dword [ebp - 0x21c], eax
mov eax, 0x7ffffffe
sub eax, dword [ebp - 0x21c]
cmp edx, eax
jbe 0x4f17cb
mov ecx, 0x7ffffffe
jmp 0x4f17d8
mov eax, dword [ebp - 0x21c]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], ecx
push eax
push edi
call fcn.00442760
mov ecx, eax
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x224], ecx
mov dword [eax], esi
add esi, esi
mov eax, dword [ebp - 0x21c]
mov dword [edi + 0x14], eax
lea eax, [ebp - 0x218]
push esi
push eax
push ecx
call fcn.0059ce90
mov ecx, dword [ebp - 0x224]
xor eax, eax
add esp, 0x14
mov word [esi + ecx], ax
mov eax, dword [ebp - 0x228]
cmp eax, 7
jbe 0x4f1865
lea ecx, [eax*2 + 2]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x4f1851
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4f188d
mov eax, edx
push ecx
push eax
call fcn.0059a744
mov eax, dword [ebp - 0x224]
add esp, 8
mov dword [edi], eax
jmp 0x4f1867
mov dword [edi], ecx
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059a5ad
mov esp, ebp
pop ebp
ret
call fcn.004481f0
call fcn.005ad975
int3