joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 4], 0x14
lea edi, [ecx + 3]
sub ecx, edx
lea eax, [edx + 2]
mov dword [ebp - 8], ecx
push esi
nop dword [eax]
movzx ecx, byte [edi + 1]
lea edi, [edi + 5]
movzx esi, byte [eax + 2]
lea eax, [eax + 5]
movzx edx, byte [eax - 7]
xor esi, ecx
movzx ecx, byte [edi - 8]
xor edx, ecx
movzx ecx, byte [edi - 7]
or esi, edx
movzx edx, byte [eax - 6]
xor edx, ecx
mov ecx, dword [ebp - 8]
or esi, edx
movzx edx, byte [eax + ecx - 5]
movzx ecx, byte [eax - 5]
xor edx, ecx
movzx ecx, byte [edi - 5]
or esi, edx
movzx edx, byte [eax - 4]
xor edx, ecx
or esi, edx
or ebx, esi
sub dword [ebp - 4], 5
jne 0x433680
pop esi
mov eax, 0x100
sub eax, ebx
pop edi
shr eax, 8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433830
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x468f84], 0
push ebx
push esi
jne 0x433885
mov ecx, str.secur32.dll
call fcn.00431e10
mov ecx, str.sspicli.dll
mov esi, eax
call fcn.00431e10
test esi, esi
je 0x433875
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4690ac], eax
mov byte [0x468f84], 1
jmp 0x43388a
xor eax, eax
mov byte [0x468f84], 1
mov dword [0x4690ac], eax
jmp 0x43388a
mov eax, dword [0x4690ac]
test eax, eax
je 0x4338ef
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 0
push 8
call eax
mov ecx, dword [ebp - 4]
mov edx, 1
push 0
call fcn.004314b0
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 8
call dword [0x4690ac]
test al, al
setne bl
test al, al
je 0x4338e8
push 0x40
push esi
call fcn.00434620
add esp, 8
test eax, eax
je 0x43393f
mov byte [eax], 0
xor eax, eax
test bl, bl
cmovne eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00431540
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x433910
mov ecx, 0x100
mov dword [ebp - 4], ecx
jmp 0x433913
mov ecx, dword [ebp - 4]
push 0
mov edx, 1
call fcn.004314b0
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
setne bl
test eax, eax
jne 0x43393f
mov ecx, esi
call fcn.00431540
xor eax, eax
test bl, bl
cmovne eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433970
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x4690b0]
test eax, eax
jne 0x4339c7
push esi
push dword [0x4690b4]
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push eax
call esi
cmp eax, dword [0x4690b4]
jb 0x4339c1
mov ecx, dword [0x4690b0]
mov edx, 0x4690b4
push 0
push 1
push eax
push 1
call fcn.00431550
add esp, 0x10
mov dword [0x4690b0], eax
push dword [0x4690b4]
push eax
call esi
cmp eax, dword [0x4690b4]
jae 0x433991
mov eax, dword [0x4690b0]
pop esi
ret
Function at 0x4342c1
Capabilities:
Parse pe header

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

Function at 0x442098
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x453b80
push 0x453b78
push str.FlsAlloc
push 0x1e
call fcn.00441ed9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4420cc
push dword [ebp + 8]
mov ecx, esi
call dword [0x45143c]
call esi
jmp 0x4420d2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x442116
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x453b90
push 0x453b88
push str.FlsGetValue
push 0x20
call fcn.00441ed9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44214d
push dword [ebp + 8]
mov ecx, esi
call dword [0x45143c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x442c86
Capabilities:
Print debug messages

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

Function at 0x4433b1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00443222
Function at 0x4450e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x468268]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x445123
cmp byte [ebx], 0xa
jne 0x445123
or byte [eax + edi + 0x28], 4
jmp 0x445128
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x445226
mov al, byte [edx]
cmp al, 0x1a
je 0x445208
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x445157
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x44517c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x445186
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x445139
jmp 0x445226
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x445203
cmp dword [ebp - 0xc], 0
je 0x445203
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x468268]
test byte [eax + edi + 0x28], 0x48
je 0x4451dd
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4451c8
mov byte [esi], dl
jmp 0x4451d9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x468268]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x445226
cmp byte [ebp - 1], 0xa
jne 0x4451ec
cmp esi, ebx
jne 0x4451ec
mov byte [esi], 0xa
jmp 0x445225
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00449b3f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x445226
mov byte [esi], 0xd
jmp 0x445225
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x468268]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x445222
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x445226
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44522f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x468268]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x445272
cmp word [esi], dx
jne 0x445272
or byte [edi + eax + 0x28], 4
jmp 0x445277
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4453ca
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4453aa
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4452b9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4452ef
cmp eax, edx
jae 0x4452fb
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x445291
jmp 0x4453ca
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4453a6
cmp dword [ebp - 0x14], 0
je 0x4453a6
mov eax, dword [ebx*4 + 0x468268]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x44537e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x445347
mov word [esi], cx
jmp 0x44537a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x468268]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x468268]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x468268]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4453ca
pop ebx
cmp word [ebp - 4], bx
jne 0x44538f
cmp esi, dword [ebp + 0xc]
jne 0x44538f
mov word [esi], bx
jmp 0x4453c7
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00449b3f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4453ca
push 0xd
jmp 0x4453c3
mov ecx, dword [ebx*4 + 0x468268]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4453c1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4453ca
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4481a4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x448241
push ebx
push esi
call fcn.0044816d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00445dbe
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4481ee
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x448240
push edi
push eax
call fcn.00441c74
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x44820e
call fcn.0044168d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x44823f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00445dbe
add esp, 0x20
test eax, eax
jne 0x44822d
push edi
call fcn.0044168d
jmp 0x448235
push ebx
call fcn.0044168d
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x448244
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x448255
pop esi
ret
push ebx
push edi
push esi
call fcn.0044816d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00441c74
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44827d
push ebx
push esi
push edi
call fcn.00435950
add esp, 0xc
push 0
call fcn.0044168d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x448641
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00448292
Function at 0x44d797
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044d713
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x44d90f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x44d90f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x44d8be
jg 0x44d7f0
test eax, eax
je 0x44d8b4
push 1
push 0x1000
call fcn.00445a5c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x44d816
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x44d8ab
push 0x8000
push ebx
call fcn.0043f807
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x44d842
jg 0x44d83d
cmp ecx, 0x1000
jb 0x44d842
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00444ee3
add esp, 0x10
cmp eax, 0xffffffff
je 0x44d887
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x44d83d
jl 0x44d86e
test ecx, ecx
jne 0x44d82f
push dword [ebp - 0xc]
push ebx
call fcn.0043f807
push esi
call fcn.0044168d
add esp, 0xc
xor edi, edi
jmp 0x44d920
cmp byte [edi + 0x24], 0
je 0x44d89e
cmp dword [edi + 0x20], 5
jne 0x44d89e
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x44d8a9
mov edi, dword [edi + 0x18]
jmp 0x44d8ab
xor edi, edi
push esi
call fcn.0044168d
pop ecx
jmp 0x44d920
test ecx, ecx
jg 0x44d880
jl 0x44d8be
test eax, eax
jae 0x44d880
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00449b3f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44d8e1
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x44d880
jmp 0x44d918
push ebx
call fcn.00448a16
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44d880
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x44d920
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x44d91d
mov edi, dword [edi + 0x18]
jmp 0x44d920
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00449b3f
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44fcf0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44fd1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44fd1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407efb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407f12
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x407f47
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x407f43
cmp edi, eax
jae 0x407f47
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x407f35
cmp edi, eax
jb 0x407f4b
xor eax, eax
jmp 0x407f55
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4081c3
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4cfde8
call fcn.004cc800
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00407e20
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40820e
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00407b84
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4081ef
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x4081ef
lea ecx, [ebp - 0x10]
call fcn.0042e675
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x408245
xor esi, esi
jmp 0x4081f2
push eax
call fcn.004081c3
test eax, eax
pop ecx
je 0x408241
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4081ef
call edi
cmp eax, ebx
jne 0x408241
jmp 0x4081ef

Function at 0x409def
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x409e7d
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x409e26
cmp dword [ebp - 8], 2
jne 0x409e7c
push esi
mov esi, dword [ebp + 0xc]
call fcn.00407de0
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00407cd7
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x409e64
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x409e74
push eax
call fcn.0049cede
pop ecx
mov edx, esi
call fcn.00407c7c
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8
Function at 0x409ead
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x409edb
push dword [esp + 0xc]
call fcn.0049cede
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x409edb
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x409f8e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x40a017
push ebx
call fcn.00499230
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40a008
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4e591c
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40a008
cmp dword [ebp - 0xc], ebx
je 0x40a008
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x40a017
push dword [ebp - 4]
call fcn.0049c4be
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x40a053
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4cfed9
call fcn.004cc800
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x50a89c
mov dword [ebp - 0x10], edi
call fcn.0040919f
push 0x206
lea eax, [ebp - 0x216]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x218], di
call fcn.0049c4d0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00408034
push esi
call fcn.0040812f
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40a1a1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.0049c4d0
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x40a1fa
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x40a2b0
mov eax, dword [ebp - 0x94]
dec eax
je 0x40a29c
dec eax
jne 0x40a2b0
mov eax, dword [ebp - 0xa0]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x40a249
cmp dword [ebp - 0x9c], edx
jne 0x40a233
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
add eax, 8
jmp 0x40a298
cmp dword [ebp - 0x9c], edi
jne 0x40a281
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x40a298
cmp eax, 5
jne 0x40a273
cmp dword [ebp - 0x9c], 2
jne 0x40a25a
push eax
jmp 0x40a27a
cmp dword [ebp - 0x9c], 1
jne 0x40a267
mov edi, ecx
jmp 0x40a2b0
cmp dword [ebp - 0x9c], edi
jne 0x40a2b0
push 3
jmp 0x40a27a
cmp eax, 4
ja 0x40a27d
push 4
pop edi
jmp 0x40a2b0
cmp eax, ecx
jb 0x40a2b0
cmp dword [ebp - 0x9c], 2
jae 0x40a28e
cmp eax, ecx
jbe 0x40a2b0
cmp byte [ebp + 0x76], dl
jne 0x40a2b0
call fcn.0040a0d6
mov edi, eax
jmp 0x40a2b0
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x40a759
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.004099aa
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40a806
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x200000
ja 0x40a805
lea eax, [edi + 1]
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp + 8], edi
call fcn.004099e9
mov esi, eax
mov dword [ebp - 4], esi
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a805
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x40a805
sub dword [ebp + 8], eax
add dword [ebp - 4], eax
cmp dword [ebp + 8], ebx
jne 0x40a7b6
mov byte [esi + edi], bl
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
cmp eax, ebx
jne 0x40a7f0
xor eax, eax
jmp 0x40a7f7
push eax
call fcn.00499a40
pop ecx
mov edx, esi
call fcn.00409a14
mov dword [ebp - 0x10], 1
pop edi
cmp dword [ebp - 8], ebx
pop esi
pop ebx
je 0x40a816
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x40b5f6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b61b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40b6dc
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 4], 0x490
call fcn.0049c4d0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40b68b
lea eax, [ebp - 0x20c]
push 0x4e5a58
push eax
call fcn.0049e015
test eax, eax
pop ecx
pop ecx
je 0x40b67f
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40b655
jmp 0x40b694
mov edi, dword [ebp - 0x228]
and dword [ebp - 4], 0
jmp 0x40b694
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x40b6b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40b6db
push dword [ebp + 8]
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40b6d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push edi
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x40b7c1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
test esi, esi
jne 0x40b7d3
or eax, 0xffffffff
leave
ret
push 0x110
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.0049c4d0
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40b816
cmp dword [ebp - 0x110], 5
jne 0x40b816
cmp dword [ebp - 0x10c], 0
je 0x40b823
push esi
call fcn.0040b6df
test eax, eax
pop ecx
jne 0x40b823
leave
ret
push esi
call fcn.0040b5f6
pop ecx
leave
ret