joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10035485
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100354c4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100354c4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100354c4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100354c4
cmp dword [ecx + 0x74], 0xe
jbe 0x100354c4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10039efd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x10066e88]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10039f3d
cmp byte [ebx], 0xa
jne 0x10039f3d
or byte [edi + eax + 0x28], 4
jmp 0x10039f42
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1003a041
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1003a024
inc eax
cmp dl, 0xd
je 0x10039f6e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10039f94
cmp eax, ecx
jae 0x10039fa2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x10039f56
jmp 0x1003a041
push 0
lea eax, [ebp - 0x10]
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 0x1003a01f
cmp dword [ebp - 0x10], 0
je 0x1003a01f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10066e88]
test byte [eax + edi + 0x28], 0x48
je 0x10039ff9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10039fe4
mov byte [esi], dl
jmp 0x10039ff5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10066e88]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1003a041
cmp byte [ebp - 1], 0xa
jne 0x1003a008
cmp esi, ebx
jne 0x1003a008
mov byte [esi], 0xa
jmp 0x1003a040
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10046363
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1003a041
mov byte [esi], 0xd
jmp 0x1003a040
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10066e88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1003a03e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1003a041
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1003a04a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10066e88]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1003a090
cmp word [ebx], dx
jne 0x1003a090
or byte [eax + edi + 0x28], 4
jmp 0x1003a095
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1003a1f8
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1003a1d8
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1003a0d6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1003a10c
cmp eax, edx
jae 0x1003a11a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1003a0b1
jmp 0x1003a1f8
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003a1d3
cmp dword [ebp - 0x18], 0
je 0x1003a1d3
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10066e88]
test byte [eax + edi + 0x28], 0x48
je 0x1003a1a9
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1003a16d
mov word [esi], cx
jmp 0x1003a1a4
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10066e88]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10066e88]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10066e88]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1003a1f8
pop eax
cmp word [ebp - 4], ax
jne 0x1003a1b9
cmp esi, ebx
jne 0x1003a1b9
mov word [esi], ax
jmp 0x1003a1f5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10046363
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1003a1f8
push 0xd
pop eax
jmp 0x1003a1b4
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10066e88]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1003a1f2
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1003a1f8
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10045e5f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100375da
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10045ece
cmp esi, dword [ebp - 4]
je 0x10045ec9
cmp dword [ebp + 0xc], 0
je 0x10045ec9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10045ea6
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1004599c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10045ed0
xor eax, eax
inc eax
jmp 0x10045ed0
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x10045f35
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10066a80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100375da
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100375da
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10045fac
cmp word [ecx], dx
je 0x10045fac
mov eax, dword [0x1006253c]
push edi
dec eax
push eax
push 0x10062428
call fcn.10045ed4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1004601f
cmp word [eax], dx
je 0x1004601f
mov eax, dword [edi]
test eax, eax
je 0x10045fd0
cmp word [eax], dx
je 0x10045fd0
lea eax, [ebp - 0x10]
push eax
call fcn.100458a2
jmp 0x10045fd9
lea eax, [ebp - 0x10]
push eax
call fcn.1004593d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10046049
mov eax, dword [0x10062424]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10062118
call fcn.10045ed4
add esp, 0xc
test al, al
je 0x10046049
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10046014
cmp word [eax], di
je 0x10046014
lea eax, [ebp - 0x10]
push eax
call fcn.100458a2
pop ecx
jmp 0x1004604b
lea eax, [ebp - 0x10]
push eax
call fcn.1004593d
jmp 0x10046011
mov eax, dword [edi]
test eax, eax
je 0x10046036
cmp word [eax], dx
je 0x10046036
lea eax, [ebp - 0x10]
push eax
call fcn.10045857
pop ecx
jmp 0x10046049
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10046114
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10045d59
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10046114
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10046114
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10046114
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100460a1
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100292c6
test ebx, ebx
je 0x1004610f
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100292c6
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10046114
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10046114
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100427c1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10046116
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004d464
leave
ret
Function at 0x1004b4fb
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 0x1004b598
push ebx
push esi
call fcn.1004b4c4
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.10040919
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1004b545
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004b597
push edi
push eax
call fcn.1003aa17
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1004b565
call fcn.100378dc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1004b596
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10040919
add esp, 0x20
test eax, eax
jne 0x1004b584
push edi
call fcn.100378dc
jmp 0x1004b58c
push ebx
call fcn.100378dc
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 0x1004b59b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1004b5ac
pop esi
ret
push ebx
push edi
push esi
call fcn.1004b4c4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1003aa17
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1004b5d4
push ebx
push esi
push edi
call fcn.10027c90
add esp, 0xc
push 0
call fcn.100378dc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1004bd2e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004b849
Function at 0x1004d7b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1004d7dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1004d7dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10008fff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1000900e
pop dword [ebp - 0x2c]
mov eax, 0x65f4dce8
add eax, 0xaa0bb326
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x8323a3a2
sub dword [ebp - 0x3c], 0x34d15e57
mov dword [ebp - 0x38], 0xe7a65862
sub dword [ebp - 0x38], 0xb5730c1d
mov dword [ebp - 0x34], 0x5d933d8f
sub dword [ebp - 0x34], 0x1146f961
mov dword [ebp - 0x30], 0x802bbf5a
sub dword [ebp - 0x30], 0x802bbf5a
lea eax, [ebp - 0x3c]
push eax
mov eax, 0xa91f2430
add eax, 0x66e17bd4
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xfe55a49d
sub dword [ebp - 0x3c], 0x89e33b47
mov dword [ebp - 0x38], 0x23e0960c
sub dword [ebp - 0x38], 0xe2743497
mov dword [ebp - 0x34], 0x4c76fcb3
add dword [ebp - 0x34], 0x16f86fb9
mov dword [ebp - 0x30], 0x569aad96
add dword [ebp - 0x30], 0xa965526a
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x38b9e
push 0
call eax
mov ecx, 0xe7685495
sub ecx, 0xe76803d2
xor esi, esi
add esi, eax
mov edi, 0x35f15896
sub edi, 0x25f06096
add edi, dword [ebp - 0x2c]
mov ebx, 0x689a0add
sub ebx, 0xed3ca822
sub dword [ebp - 0x24], 0xf0f70d2a
mov edx, dword [edi]
xor dword [ebp - 0x1c], ebx
xor edx, ebx
mov dword [ebp - 0x14], 0x51a4018b
mov dword [esi], edx
add dword [ebp - 0xc], 0x6033b7cd
add esi, 0x660c54f3
add esi, 0x99f3ab11
add edi, 0xcf275eb3
sub edi, 0xcf275eaf
loop 0x1000912d
add eax, 0xc24cfcdb
add eax, 0x3db43904
mov ebx, eax
add eax, 0xbd28f998
sub eax, 0xbd28f993
mov ecx, 0x86cdf977
sub ecx, 0x76cdf977
invalid
invalid
aam 0xff
Function at 0x402fb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x402fbf
pop dword [ebp - 0x28]
mov eax, 0x402fbf
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x13072fc4
add dword [ebp - 0x38], 0x3b4b1587
mov dword [ebp - 0x34], 0xef07525f
sub dword [ebp - 0x34], 0xbcd4061a
mov dword [ebp - 0x30], 0x3052692b
add dword [ebp - 0x30], 0x1bf9db03
mov dword [ebp - 0x2c], 0x52daf0ea
sub dword [ebp - 0x2c], 0x52daf0ea
lea eax, [ebp - 0x38]
push eax
mov eax, 0x2afa0eec
sub eax, 0x2ab8be7c
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x22f18ee4
sub dword [ebp - 0x38], 0xae7f258e
mov dword [ebp - 0x34], 0x3fafc6fd
sub dword [ebp - 0x34], 0xfe436588
mov dword [ebp - 0x30], 0x65a1baee
sub dword [ebp - 0x30], 0x2324e82
mov dword [ebp - 0x2c], 0x5b473e63
sub dword [ebp - 0x2c], 0x5b473e63
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3746f
push 0
call eax
mov ecx, 0xe08210fd
add ecx, 0x1f7e2889
xor edi, edi
add edi, eax
mov ebx, 0x43b6198
add ebx, 0xfc070268
add ebx, dword [ebp - 0x28]
mov edx, 0xe28cfd4e
add edx, 0x4ee8a436
xor dword [ebp - 0xc], 0x5bf94bd4
mov esi, dword [ebx]
add dword [ebp - 0x18], edi
sub esi, edx
xor dword [ebp - 0x14], 0x856acaf8
mov dword [edi], esi
sub dword [ebp - 4], ecx
add edi, 0x81ec2444
sub edi, 0x81ec2440
add ebx, 4
loop 0x4030d9
add eax, 0x708ca6b
add eax, 0xf8f80e80
mov ebx, eax
add eax, 0x9cada7bd
sub eax, 0x9cada7b8
mov ecx, 0xfbb6da76
add ecx, 0x489258a
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x407458
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x407467
pop dword [ebp - 0x1c]
mov eax, 0x3b9746cb
sub eax, 0x3b56d264
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xe3cf0433
sub dword [ebp - 0x2c], 0x957cbee8
mov dword [ebp - 0x28], 0x36f5e4dd
sub dword [ebp - 0x28], 0x4c29898
mov dword [ebp - 0x24], 0x75aef66c
add dword [ebp - 0x24], 0xd69d4dc2
mov dword [ebp - 0x20], 0xb3c85eb6
sub dword [ebp - 0x20], 0xb3c85eb6
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xb5225d9b
add eax, 0x4b1e22dd
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xf539c609
add dword [ebp - 0x2c], 0x7f38a34d
mov dword [ebp - 0x28], 0xa5166fd1
sub dword [ebp - 0x28], 0x63aa0e5c
mov dword [ebp - 0x24], 0x8c2447b5
add dword [ebp - 0x24], 0xd74b24b7
mov dword [ebp - 0x20], 0xce76c6e4
sub dword [ebp - 0x20], 0xce76c6e4
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x9cf8b756
sub eax, 0x9cb836da
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a82c
push 0
call eax
mov ecx, 0x4f4a9b95
sub ecx, 0x4f4a45f2
mov ebx, eax
mov edi, 0x7a34e129
add edi, 0x8610b0d7
add edi, dword [ebp - 0x1c]
mov edx, 0x164aba9c
sub edx, 0xeaf52c32
add dword [ebp - 0x14], 0x8b5b9dee
mov esi, dword [edi]
xor dword [ebp - 0x14], edi
sub esi, edx
xor dword [ebp - 0x14], esi
mov dword [ebx], esi
add dword [ebp - 0x14], edi
add ebx, 0x4681a87
sub ebx, 0x4681a83
add edi, 0xe144d73f
sub edi, 0xe144d73b
loop 0x407589
add eax, 0x9865f81b
sub eax, 0x9864aebc
xor ebx, ebx
add ebx, eax
add eax, 0x1f4d11ba
add eax, 0xe0b2ee4b
mov ecx, 0x80e049d5
sub ecx, 0x80a049d5
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x401ba0
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x401bd8
push str.CommandLineToArgvW_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [edi + 1]
pop edi
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
cmp dword [ebp - 4], esi
jle 0x401c18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [edi + esi*4]
push ecx
call ebx
mov edx, dword [edi + esi*4]
push str.Tru2Life0
push edx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x401c11
push str.Disable_Tre2Life_n
call ebx
mov dword [ebp - 8], 0
inc esi
cmp esi, dword [ebp - 4]
jl 0x401be7
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x401c30
Capabilities:
Accept command line arguments
Check os version
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x407018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x11c], 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push eax
call esi
lea eax, [ebp - 0x120]
push eax
call edi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
jne 0x401c88
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040308f
mov esp, ebp
pop ebp
ret
xor edi, edi
cmp dword [ebp - 0x120], edi
jle 0x401d04
mov ecx, dword [ebx + edi*4]
push ecx
call esi
mov edx, dword [ebx + edi*4]
push str.EyeCareSwitcher1
push edx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x401cfb
push 0x114
push eax
lea eax, [ebp - 0x118]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 0xa
jne 0x401cfb
push str.Support_Win10_n
call esi
push str.Support_Eye_Care_n
call esi
mov dword [ebp - 0x11c], 1
inc edi
cmp edi, dword [ebp - 0x120]
jl 0x401c92
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x11c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040308f
mov esp, ebp
pop ebp
ret
Function at 0x402290
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x407018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 2
xor ebx, ebx
push ebx
push ebx
push 0x40421c
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov dword [ebp - 0x22c], eax
cmp eax, 0xffffffff
jne 0x4022d1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040308f
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x228], 0x1c
mov esi, 1
mov dword [ebp - 0x230], ebx
jmp 0x4022f6
mov eax, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x230]
lea ecx, [ebp - 0x228]
push ecx
push edx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x40242e
mov edx, dword [ebp - 0x22c]
push 0
push 0x208
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x16
lea ecx, [ebp - 0x228]
push ecx
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x402420
mov ecx, str.ACPI
lea eax, [ebp - 0x20c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402376
test dx, dx
je 0x402372
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402376
add eax, 4
add ecx, 4
test dx, dx
jne 0x402350
xor eax, eax
jmp 0x40237b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402420
mov edx, dword [ebp - 0x22c]
push eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x228]
push ecx
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdW]
test eax, eax
je 0x402420
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll__wcsupr_s]
lea ecx, [ebp - 0x20c]
push str.ACPIATK0100
push ecx
call dword [sym.imp.MSVCR100.dll_wcsstr]
add esp, 0x10
test eax, eax
je 0x4023da
push str.ATK0100
jmp 0x402419
mov ecx, str.ACPIPNP0C14ATK
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40240b
test dx, dx
je 0x402407
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40240b
add eax, 4
add ecx, 4
test dx, dx
jne 0x4023e5
xor eax, eax
jmp 0x402410
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402420
push 0x40503c
call edi
xor esi, esi
lea ebx, [esi + 1]
inc dword [ebp - 0x230]
test esi, esi
jne 0x4022f0
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0040308f
mov esp, ebp
pop ebp
ret
Function at 0x402450
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x407018]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x4024d7
test eax, eax
je 0x4024d7
lea ecx, [ebp - 0x414]
push ecx
push 0
push 0x404710
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4024d7
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
lea eax, [ecx + 1]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040308f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0040308f
mov esp, ebp
pop ebp
ret

Function at 0x4024f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x407018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test esi, esi
jne 0x40251a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040308f
mov esp, ebp
pop ebp
ret
push eax
push 0x405044
lea eax, [ebp - 0x804]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x10
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
jmp 0x402550
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402550
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x808]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x804]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040308f
mov esp, ebp
pop ebp
ret
Function at 0x40308f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x407018]
jne 0x403099
repz ret
jmp fcn.00403388