joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461b20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49c158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00493576
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00461060
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004934a4
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0048fd6a
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0048fd6a
push 1
push 0
push 0
mov ecx, esi
call fcn.0048fd12
push 1
push 0
push 1
mov ecx, esi
call fcn.0048fd12
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004935e8
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x461ca0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49c178
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00493576
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00461060
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004934a4
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x461d64
cmp dword [esp + 0x40], 1
jne 0x461d62
cmp ecx, eax
jge 0x461d64
mov eax, ecx
cmp eax, 0xc8
jge 0x461d70
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00461b20
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004935e8
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4626b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49c1e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048e186
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0049381e
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00494ebb
test eax, eax
je 0x4627cc
mov ecx, dword [esp + 0x3c]
call fcn.0049384b
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x462790
push edi
mov ecx, esi
call fcn.00490eb8
mov ecx, esi
call fcn.00462930
cmp dword [esp + 0x38], 1
jne 0x4627c5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00490ff3
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4651e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x465213
push esi
call fcn.004682d0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46520c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x465299
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x465282
mov eax, dword [esi + 8]
test eax, eax
je 0x465237
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x46527e
cmp eax, 2
je 0x465282
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46522a
cmp eax, 3
je 0x46525d
cmp eax, 1
jne 0x46522a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x46522a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46522a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004652c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4652a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004652c0
add esp, 4
pop esi
ret

Function at 0x473800
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4738a3
test eax, eax
jbe 0x4738a3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4738a3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47384e
xor esi, esi
jmp 0x473854
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x47387f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004192f0
add esi, eax
push esi
mov ebx, esi
call fcn.004192f0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x473860
pop ebp
test edi, edi
pop edi
jne 0x4738a3
test ebx, ebx
je 0x4738a3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0047d1e0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x473bf5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x473d0d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x473d0d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048e5d8
mov esi, eax
test esi, esi
je 0x473d0d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x473d0d
mov ecx, esi
call fcn.00473b20
cmp edi, eax
jge 0x473d0d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x473c93
mov dword [esp + 0x34], 1
jmp 0x473cee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x473d0d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00471060
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x47a5e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49cf78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, ecx
mov dword [esp + 8], 0
lea eax, [esp + 0xc]
mov dword [esp + 0x24], 0
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov esi, dword [esp + 0x30]
test esi, esi
je 0x47a623
mov eax, dword [esi]
jmp 0x47a625
xor eax, eax
mov ecx, dword [edi]
lea edx, [esp + 0xc]
push edx
push eax
push edi
call dword [ecx + 0x6c]
test eax, eax
jge 0x47a641
push 0x4cf670
push edi
push eax
call fcn.00489c01
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, edi
test esi, esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov word [esp + 0xc], 0
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
je 0x47a6a1
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x47a6a1
mov eax, dword [esi]
test eax, eax
je 0x47a688
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x47a698
push eax
call fcn.0048c941
add esp, 4
push esi
call fcn.0048c941
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x48ef7b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48efb3
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048d032
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048d00a
jmp 0x48efbf
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x490672
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4906b4
call fcn.00496870
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4906b4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4906ab
xor eax, eax
jmp 0x4906bc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004906c2
pop edi
pop esi
pop ebx
ret 4

Function at 0x496da0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x496dce
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x496dec
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00496d06
jmp 0x496dec
mov eax, dword [esi + 0x14]
test eax, eax
je 0x496dec
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00496d06
test edi, edi
mov eax, edi
jne 0x496dd6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4f513c
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
insb byte es:[edi], dx
shr dword [edi], 0x7b
jnp 0x400fe2
test byte [esi + 0x11], al
nop
or byte [esi - 0x49], ch
mov cl, byte [ebp + 0x3c]
das
add cl, bl
push 0x6ba7da1b
pop esi
in al, dx
mov ebx, eax
cmp dh, byte [eax + 0x69a43adb]
adc byte [eax], ah
jmp 0x40109b
invalid
clc
jb 0x4010ca
daa
jne 0x40107c
pop ebp
fcmovne st(0), st(4)
mov ch, 0xd4
fsubr st(4)
push ebp
mov ecx, 0x5ca82f55
mov al, byte [0x74aaadf2]
adc dword [esi - 0x52], esp
mov bl, 0xe1
ret
sahf
mov esi, 0xa166cd94
int1
or ecx, dword [edi]
in eax, dx
mov ax, word [0xed0f0bf1]
test byte [ebp - 0x349d5b44], 0x66
fst dword [edi]
fst dword [edi]
dec ebx
stosd dword es:[edi], eax
xor ecx, dword [esi + 0x43cfcecf]
mov esi, edi
sub al, cl
fsub st(0), st(0)
stc
enter 0xffffffffffffe8dc, 0xfffffffffffffff3
stc
mov ebx, 0x4b5fa934
mov dword [esi - 0x6e], ebx
js 0x40104a
mov ecx, 0x418c9a6e
sti
sbb al, 0xba
pushfd
rcr byte [ebx], 0x3b
mov esi, 0x345a0b90
add al, 0xf
fxch st(4)
jns 0x40108c
scasd eax, dword es:[edi]
push ecx
movsb byte es:[edi], byte [esi]
ja 0x40104c
fst qword [ebx + edx*2 + 0x4911e721]
out 0x11, eax
dec ecx
push esi
invalid
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4197a0]
sub esp, 0x904
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x401036
cmp word [0x4197a2], bx
je 0x401027
call eax
mov dword [0x4197a0], eax
push eax
call fcn.00402187
push eax
call fcn.00408cdf
pop ecx
jmp 0x4010a4
push 0x27
call fcn.00402187
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x904]
push eax
call edi
add esp, 0x14
cmp dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
jbe 0x401098
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x104]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x401063
lea eax, [ebp - 0x904]
push eax
call fcn.00408cdf
pop ecx
call fcn.004044b0
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401611
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 8]
call fcn.0040f717
push dword [ebp + 0xc]
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.00401370
push 0x5c
mov ecx, edi
call fcn.00401526
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x4012e3
push edi
push edi
mov dword [0x4197a4], esi
mov dword [0x4197ac], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x4197ec], 2
mov dword [0x4197a8], eax
je 0x40166e
call fcn.00408523
push 0xffffffffffffffff
push dword [0x4197a8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x4197ac]
cmp eax, edi
mov dword [0x419880], edi
je 0x4016bd
cmp eax, 1
je 0x4016b1
cmp eax, 2
je 0x4016ad
cmp eax, 3
je 0x4016a9
cmp eax, 0x67
jle 0x4016a4
cmp eax, 0x6a
jle 0x401721
push eax
push 0x14
jmp 0x4016f4
push 0x12
jmp 0x4016b3
push 0x13
jmp 0x4016b3
push 0x11
push edi
call fcn.00408dc3
pop ecx
pop ecx
jmp 0x401721
cmp dword [0x419888], edi
jne 0x401721
lea eax, [ebp + 8]
push eax
push dword [0x4197a8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov ecx, dword [ebp + 8]
je 0x4016e4
cmp ecx, edi
jne 0x4016e4
xor eax, eax
jmp 0x401726
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x4016f7
push ecx
push 0x21
push edi
jmp 0x401719
and ecx, 0xffff
cmp ecx, 0xe
jne 0x40170b
cmp dword [0x4197f0], 0xffffffff
je 0x401721
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00408dc3
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
Function at 0x40244e
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4024ab
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x4026cf
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x4026df
xor eax, eax
leave
ret
test byte [0x4197f0], 2
mov dword [ebp - 0x40], 0x40
jne 0x402734
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x402734
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x402734
jb 0x402710
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x402734
push 0x2b
call fcn.00402187
push eax
call fcn.00408d56
cmp eax, 1
pop ecx
pop ecx
je 0x40272d
or dword [0x4197f0], 0xffffffff
jmp 0x4026db
or dword [0x4197f0], 2
xor eax, eax
inc eax
leave
ret

Function at 0x402b71
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.00401458
cmp dword [ebp - 4], 1
jg 0x402b8f
push 1
lea ecx, [ebp - 0xc]
call fcn.00401172
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x402bb3
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x402bea
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.004027aa
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.0040115e
and word [esi + eax*2], 0
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.004013a9
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x4036f1
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.00402771
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x403722
push esi
lea ecx, [ebp - 0x18]
call fcn.00401172
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x403736
cmp ax, 0x2f
jne 0x40373f
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x403765
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x403758
cmp ax, 0x5c
je 0x403758
dec esi
test esi, esi
jg 0x403743
test esi, esi
je 0x403814
and word [edi + esi*2], 0
push edi
call fcn.00401b75
test eax, eax
pop ecx
je 0x403754
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40379c
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00403387
test eax, eax
pop ecx
pop ecx
je 0x40379c
xor esi, esi
jmp 0x403839
push edi
call fcn.00401b75
test eax, eax
pop ecx
jne 0x4037b6
push edi
push 0xc
push 1
call fcn.00408dc3
add esp, 0xc
jmp 0x403795
cmp esi, ebx
jge 0x403808
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x4037ee
jmp 0x4037ed
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x4037f4
cmp ax, 0x2f
je 0x4037f4
inc esi
cmp word [edi + esi*2], cx
jne 0x4037dd
push edi
mov word [edi + esi*2], cx
call fcn.00401b75
test eax, eax
pop ecx
je 0x4037a7
cmp esi, dword [ebp - 4]
jl 0x4037ba
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x403859
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x403844
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x403844
cmp ax, 0x7a
ja 0x403844
cmp word [ecx + 2], 0x3a
jne 0x403844
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x403859
push ecx
push 0xc
push 1
call fcn.00408dc3
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404903
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00413380
call fcn.00402131
push 3
call fcn.00402187
push 0x28
mov dword [0x4197e8], eax
call fcn.00402187
push 2
mov dword [0x4197e4], eax
call fcn.00402187
push 5
mov dword [0x4197e0], eax
call fcn.00402187
push 0x15
mov dword [0x4197dc], eax
call fcn.00402187
push 0x16
mov dword [0x4197d8], eax
call fcn.00402187
push 0x17
mov dword [0x4197d4], eax
call fcn.00402187
add esp, 0x1c
xor ebx, ebx
mov dword [0x4197d0], eax
mov dword [0x4197c8], ebx
mov dword [0x4197cc], ebx
mov edi, 0x4193ac
xor esi, esi
push esi
push ebx
lea eax, [ebp - 0x2a4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404a32
push ebx
lea eax, [ebp - 0x98]
push 0x416698
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00401458
lea ecx, [ebp - 0xc]
call fcn.00401458
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401370
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401370
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004032d9
cmp dword [esi + 0x419384], ebx
jne 0x404a22
push dword [esi + 0x419388]
lea ecx, [ebp - 0x18]
call fcn.00401370
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401370
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.004032d9
add esi, 8
cmp esi, 0x28
jb 0x4049f2
lea ecx, [ebp - 0x18]
call fcn.0040269a
inc ebx
cmp ebx, 0x40
jl 0x404989
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406e09
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00406dbc
add esp, 0x1c
leave
ret