joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c3ce
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, 0x400
push ebx
mov esi, eax
call fcn.0042e89a
mov edi, eax
xor edx, edx
pop ecx
mov dword [esp + 0xc], edi
cmp edi, edx
jne 0x40c3fd
push edx
call fcn.0042e8a5
pop ecx
push 3
pop eax
jmp 0x40c588
push ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x20]
inc dword [esp + 0x14]
add dword [esp + 0x18], 0xa
add eax, ebx
cmp dword [esp + 0x14], 1
mov dword [esp + 0x20], eax
jle 0x40c42c
sub eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x78]
push 2
push edx
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40c567
mov eax, dword [esi + 0x78]
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c567
cmp dword [esp + 0x1c], ebx
jne 0x40c567
xor eax, eax
jmp 0x40c474
mov edi, dword [esp + 0x10]
xor ecx, ecx
add edi, eax
mov dl, byte [edi]
cmp dl, byte [ecx + str.ADVINSTSFX]
jne 0x40c489
inc ecx
inc edi
cmp ecx, 0xa
jl 0x40c478
cmp ecx, 0xa
jne 0x40c499
lea ecx, [eax + ebp - 0x40]
mov dword [esp + 0x24], ecx
add eax, 0xa
inc eax
cmp eax, 0x3f6
jb 0x40c470
mov edi, dword [esp + 0x24]
xor ebp, ebp
cmp edi, ebp
jne 0x40c4b6
mov edi, dword [esp + 0x10]
xor edx, edx
jmp 0x40c40e
mov eax, dword [esi + 0x78]
push ebp
push ebp
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40c4e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 0x54]
push eax
push 0x103
push esi
call fcn.0040d285
push dword [esp + 0x10]
jmp 0x40c57e
mov eax, dword [esi + 0x78]
push ebp
lea ecx, [esp + 0x20]
push ecx
push 0x4c
lea ecx, [esi + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40c540
cmp dword [esp + 0x1c], ebp
je 0x40c540
xor eax, eax
movzx ecx, byte [esi + eax + 0x48]
movsx edx, byte [eax + str.ADVINSTSFX]
cmp ecx, edx
jne 0x40c53c
inc eax
cmp eax, 0xa
jl 0x40c509
cmp dword [esi + 0x14], 0x64
jne 0x40c53c
sub edi, dword [esi + 0x18]
push dword [esp + 0x10]
mov dword [esi + 0x8c], edi
call fcn.0042e8a5
pop ecx
xor eax, eax
jmp 0x40c587
push 5
jmp 0x40c558
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 0x54]
push eax
push 0x103
push esi
call fcn.0040d285
push 2
pop esi
push dword [esp + 0x10]
call fcn.0042e8a5
pop ecx
mov eax, esi
jmp 0x40c587
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 0x54]
push eax
push 0x103
push esi
call fcn.0040d285
push edi
call fcn.0042e8a5
pop ecx
push 2
pop eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x40c58f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
push esi
cmp dword [edi + 0x10], ebx
jne 0x40c5a5
xor eax, eax
jmp 0x40c6eb
mov ecx, dword [edi + 0x8c]
add ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x78]
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40c5de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x54]
push eax
push 0x103
push edi
call fcn.0040d285
push 2
pop eax
jmp 0x40c6eb
mov ecx, 0x455ee0
lea esi, [ebp - 0x14]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00402119
mov byte [ebp - 0x10], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [edi + 0x10], ebx
jbe 0x40c6d5
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi + 0x78]
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0x18
lea ecx, [ebp - 0x2c]
push ecx
push eax
call esi
test eax, eax
je 0x40c6bc
cmp dword [ebp - 0xc], ebx
je 0x40c6bc
cmp dword [ebp - 4], ebx
je 0x40c648
push dword [ebp - 4]
call fcn.0042e8a5
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.0040d8ec
test al, al
je 0x40c6b7
mov eax, dword [edi + 0x78]
push ebx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x18]
add ecx, ecx
push ecx
push dword [ebp - 4]
push eax
call esi
test eax, eax
je 0x40c6bc
cmp dword [ebp - 0xc], ebx
je 0x40c6bc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
xor eax, eax
mov word [edx + ecx*2], ax
lea eax, [ebp - 0x2c]
lea ebx, [edi + 0x6c]
push eax
call fcn.0040d9c5
mov eax, dword [ebp - 8]
mov ecx, ebx
call fcn.0040da63
push dword [ebp - 4]
add eax, 0x18
push eax
call fcn.004045a6
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
xor ebx, ebx
cmp eax, dword [edi + 0x10]
jb 0x40c615
jmp 0x40c6d5
push 3
pop ebx
jmp 0x40c6d5
push 2
pop ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x54]
push eax
push 0x103
push edi
call fcn.0040d285
push dword [ebp - 4]
call fcn.0042e8a5
mov eax, dword [ebp - 0x14]
pop ecx
add eax, 0xfffffff0
call fcn.004046a2
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x40c6ef
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
cmp dword [edi + 0x94], esi
jle 0x40c708
xor eax, eax
jmp 0x40c86e
mov ecx, dword [edi + 0x8c]
add ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x78]
push esi
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40c741
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x54]
push eax
push 0x103
push edi
call fcn.0040d285
push 2
pop eax
jmp 0x40c86e
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
cmp dword [edi + 8], esi
jbe 0x40c863
mov eax, dword [edi + 0x78]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [ebp - 8]
push ecx
push 8
lea ecx, [ebp - 0x14]
push ecx
push eax
call ebx
test eax, eax
je 0x40c84a
cmp dword [ebp - 8], esi
je 0x40c84a
mov eax, dword [0x455ee0]
mov ecx, 0x455ee0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], esi
je 0x40c7a8
push dword [ebp - 4]
call fcn.0042e8a5
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.0040d8ec
test al, al
je 0x40c818
mov eax, dword [edi + 0x78]
push esi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, ecx
push ecx
push dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x40c827
cmp dword [ebp - 8], esi
je 0x40c827
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, ecx
push eax
mov word [eax + edx*2], cx
lea eax, [ebp - 0x1c]
push eax
call fcn.004045a6
lea esi, [edi + 0x90]
lea ebx, [ebp - 0x1c]
call fcn.0042283e
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004046a2
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor esi, esi
cmp eax, dword [edi + 8]
jb 0x40c756
jmp 0x40c863
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004046a2
push 3
jmp 0x40c862
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x54]
push eax
push 0x103
push edi
call fcn.0040d285
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004046a2
jmp 0x40c860
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x54]
push eax
push 0x103
push edi
call fcn.0040d285
push 2
pop esi
push dword [ebp - 4]
call fcn.0042e8a5
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40e19d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x455ee0
call fcn.00402119
movzx ebx, word [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0x447e40
push 2
push ebx
call edi
mov esi, eax
lea eax, [esi - 1]
push eax
push 0x78
pop ecx
lea edx, [ebp - 4]
call fcn.0040a734
push esi
lea esi, [ebp - 4]
call fcn.004020cd
push eax
push 2
push ebx
call edi
mov esi, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push 0x448b7c
push dword [ebp + 8]
call fcn.00409558
add esp, 0x10
lea eax, [esi - 0x10]
call fcn.004046a2
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e20e
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push esi
mov word [ebx], ax
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, dword [ebp + 8]
mov word [ecx], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, dword [ebp + 0xc]
lea esi, [ebp + 0xc]
mov word [ecx], ax
call fcn.0041fdcb
push str.Windows_2000
push eax
call fcn.00408e89
test eax, eax
mov eax, dword [ebp + 0xc]
setge byte [ebp + 0xb]
add eax, 0xfffffff0
call fcn.004046a2
cmp byte [ebp + 0xb], 0
je 0x40e294
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSystemDefaultUILanguage
push eax
mov dword [ebp + 8], eax
call esi
test eax, eax
je 0x40e281
call eax
mov word [edi], ax
push str.GetUserDefaultUILanguage
push dword [ebp + 8]
call esi
test eax, eax
je 0x40e294
call eax
mov word [ebx], ax
pop esi
pop ebp
ret

Function at 0x40e789
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
push edi
mov ebx, eax
push 0x448ed4
lea eax, [ebp - 4]
call fcn.004045c9
lea esi, [ebx + 0x1c]
mov edi, esi
lea ecx, [ebp - 4]
call fcn.0040a018
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046a2
add ebx, 4
push ebx
lea eax, [ebp - 4]
call fcn.00423246
mov edi, dword [ebp - 4]
cmp dword [edi - 0xc], 0
pop ecx
je 0x40e7f6
mov esi, dword [esi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
lea eax, [edi - 0x10]
call fcn.004046a2
mov al, bl
jmp 0x40e8ae
push 0x455cdc
push esi
xor eax, eax
lea edi, [ebp - 0x98]
call fcn.0041a38e
xor edi, edi
push edi
push edi
push 1
push edi
push esi
push ebx
lea ecx, [ebp - 0x98]
call fcn.0041a4e1
test eax, eax
je 0x40e833
lea esi, [ebp - 0x98]
call fcn.0041a43a
mov edi, dword [ebp - 4]
xor bl, bl
jmp 0x40e7e7
lea ecx, [ebp - 0x98]
call fcn.0041a566
mov ebx, eax
cmp ebx, edi
je 0x40e893
cmp byte [0x456c38], 0
je 0x40e893
push ebx
lea eax, [ebp - 0xc]
call fcn.0041df40
pop ecx
push dword [eax]
lea eax, [ebp - 8]
push str.Downloading_of_updates_failed._Error:
call fcn.004141f6
push eax
call fcn.00414207
push eax
call fcn.00414207
push eax
mov eax, 0x456c08
call fcn.004134f0
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004046a2
lea esi, [ebp - 0x98]
call fcn.0041a43a
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046a2
cmp ebx, edi
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410be0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x30]
xor ebx, ebx
push edi
cmp dword [eax - 0xc], ebx
jne 0x410c00
mov al, 1
jmp 0x410def
call fcn.0040117d
test al, al
je 0x410cee
push 0x3c
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.0042e8b0
add esp, 0xc
push str.kernel32.dll
mov dword [ebp - 0x5c], 0x40
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push str.GlobalMemoryStatusEx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x5c]
push ecx
call eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x30]
call fcn.0041deec
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
fild qword [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
fild qword [ebp - 0xc]
fchs
faddp st(1)
fmul qword [0x450e48]
fldz
fcom st(1)
fnstsw ax
fld st(1)
test ah, 5
jp 0x410cab
call fcn.00443ee0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x410cd0
fadd qword [0x450e58]
jmp 0x410cc9
call fcn.00443ee0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x410cd0
fsub qword [0x450e58]
call fcn.00443ee0
jmp 0x410cd5
mov eax, dword [ebp - 8]
fstp st(0)
cdq
mov ebx, eax
mov esi, edx
test edi, edi
je 0x410d89
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x410d89
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x30]
call fcn.0041deec
fild dword [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
test eax, eax
jge 0x410d27
fadd qword [0x450e50]
fmul qword [0x450e48]
fldz
fcom st(1)
fnstsw ax
fld st(1)
test ah, 5
jp 0x410d5a
call fcn.00443ee0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x410d7f
fadd qword [0x450e58]
jmp 0x410d78
call fcn.00443ee0
mov dword [ebp - 8], eax
fild dword [ebp - 8]
fld st(2)
fsubrp st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x410d7f
fsub qword [0x450e58]
call fcn.00443ee0
jmp 0x410d84
mov eax, dword [ebp - 8]
fstp st(0)
cdq
mov ebx, eax
mov esi, edx
cmp byte [0x456c38], 0
je 0x410dc3
push esi
push ebx
push str.Detected_RAM_amount:
lea eax, [ebp - 8]
call fcn.004141f6
push eax
call fcn.00414207
push eax
call fcn.00414323
push eax
mov eax, 0x456c08
call fcn.004134f0
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 0x10]
cdq
cmp esi, edx
jb 0x410dd9
ja 0x410bf9
cmp ebx, eax
jae 0x410bf9
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
add eax, 0x30
push eax
push 0xd4
call fcn.00410f23
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x410f23
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x54]
push ebx
push esi
sub eax, 0x10
call fcn.00409a5a
add eax, 0x10
lea ebx, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.0041eec0
mov eax, dword [0x455ee0]
mov esi, 0x455ee0
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp + 8]
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.004043e5
mov eax, dword [0x455ee0]
mov ecx, esi
call dword [eax + 0xc]
mov esi, dword [ebp - 8]
add eax, 0x10
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp + 8]
push esi
push dword [ebp - 4]
push eax
call fcn.00409558
xor ebx, ebx
add esp, 0x10
cmp byte [0x456c38], bl
je 0x410fc0
push dword [ebp + 8]
lea eax, [ebp + 0xc]
call fcn.004141f6
push eax
call fcn.00414207
push eax
mov eax, 0x456c08
call fcn.004134f0
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004046a2
cmp byte [edi + 0x10], bl
je 0x410fd0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x410feb
mov eax, dword [edi]
call fcn.00412cca
mov eax, dword [edi]
push ebx
call fcn.00412bfc
push 0x30
push eax
lea eax, [ebp + 8]
push eax
call fcn.00412c71
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.004046a2
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046a2
lea eax, [esi - 0x10]
call fcn.004046a2
pop esi
pop ebx
leave
ret 8

Function at 0x412cd7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0x423b79
push esi
push esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x10], eax
mov ebx, 0x1ff
jmp 0x412d3b
push 1
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x412d3b
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x10]
push eax
push 1
call edi
cmp eax, 1
je 0x412d14
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4135d0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x454090]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push edi
lea ebx, [eax + 0x28]
xor edi, edi
mov dword [ebp - 0x80], eax
cmp dword [ebx], edi
jne 0x413724
push esi
lea esi, [eax + 0x20]
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jne 0x413652
push 0x208
lea eax, [ebp - 0x74]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x74], cx
lea eax, [ebp - 0x74]
push eax
push esi
call fcn.004045a6
push 0x2e
call fcn.00408aa2
mov ecx, eax
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, ecx
push ecx
mov ecx, esi
call fcn.0040876f
push str..log
push esi
call fcn.0040217a
mov esi, dword [esi]
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov esi, ebx
call fcn.00408c8e
cmp dword [ebx], 0xffffffff
je 0x413713
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41369f
mov eax, dword [ebx]
test eax, eax
je 0x4136d0
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4136d0
test eax, eax
jne 0x413713
mov eax, dword [ebx]
test eax, eax
je 0x4136d0
push 2
pop ecx
push 0
lea edx, [ebp - 0x78]
push edx
push ecx
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
mov dword [ebp - 0x7c], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp dword [ebx], 0
je 0x413723
mov edi, dword [ebp - 0x80]
lea eax, [edi + 0x24]
mov esi, edi
call fcn.0041373d
mov eax, dword [0x455ee0]
mov ecx, 0x455ee0
call dword [eax + 0xc]
add eax, 0x10
lea esi, [ebp - 0x78]
mov dword [ebp - 0x78], eax
call fcn.00413762
mov eax, esi
mov esi, edi
call fcn.0041373d
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
call fcn.004046a2
jmp 0x413723
mov eax, dword [ebx]
test eax, eax
je 0x413723
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebx], 0
pop esi
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop ebx
call fcn.0042e88b
add ebp, 0x198
leave
ret 4

Function at 0x41373d
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [eax]
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret
Function at 0x41408e
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x454090]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
call fcn.0041ed2e
test al, al
jne 0x414146
push str.ProgramFilesFolder
push edi
call fcn.00408e89
mov esi, str.AppDataFolder
test eax, eax
je 0x4140e7
push str.ProgramFiles
push edi
call fcn.00412b85
pop ecx
pop ecx
test al, al
jne 0x4140e7
push esi
push edi
call fcn.00408e89
test eax, eax
jne 0x414146
push esi
push edi
call fcn.00408e89
neg eax
sbb al, al
inc al
push 0
pop eax
mov word [ebp - 0x7c], ax
mov eax, str.APPDATA
jne 0x414107
mov eax, str.PROGRAMFILES
push 0x104
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jbe 0x414126
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x7c], ax
inc esi
xor eax, eax
mov word [ebp + esi*2 - 0x7c], ax
cmp word [ebp - 0x7c], ax
je 0x41413d
lea eax, [ebp - 0x7c]
push eax
push edi
call fcn.004045a6
xor eax, eax
test esi, esi
setne al
jmp 0x414148
xor al, al
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.0042e88b
add ebp, 0x190
leave
ret

Function at 0x4143df
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [0x456c38], 0
push esi
mov esi, eax
je 0x414416
push dword [esi]
lea eax, [ebp - 4]
call fcn.004141f6
push eax
call fcn.00414207
push eax
mov eax, 0x456c08
call fcn.004134f0
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046a2
cmp byte [0x455500], 0
je 0x41447a
cmp byte [ebp + 8], 0
push edi
push 0x10
pop edi
je 0x41442e
mov edi, 0x40010
push dword [esi]
lea eax, [ebp - 4]
call fcn.004045c9
mov eax, dword [0x455ee0]
mov ecx, 0x455ee0
call dword [eax + 0xc]
mov esi, eax
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
add esi, 0x10
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
call fcn.00422f53
add esp, 0xc
lea eax, [esi - 0x10]
call fcn.004046a2
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004046a2
pop edi
jmp 0x414482
push dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop esi
leave
ret
Function at 0x41503e
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x128]
sub esp, 0x1a8
mov eax, dword [0x454090]
xor eax, ebp
mov dword [ebp + 0x124], eax
mov eax, dword [ebp + 0x130]
push ebx
push esi
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x415091
xor al, al
jmp 0x4151a7
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, 0x4f
mov dword [ebp - 0x78], eax
jle 0x4150a8
lea eax, [eax + ecx*2 - 0x9e]
mov dword [ebp - 0x78], eax
push edi
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x80], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
jne 0x4150d7
cmp dword [ebp - 0x80], 0xc8
jbe 0x415196
mov eax, dword [0x455ee0]
mov ecx, 0x455ee0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x41513d
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jge 0x415105
push 0x80070057
call fcn.0040467e
cmp word [eax], 0x22
je 0x41513d
push 0x20
xor ecx, ecx
call fcn.00408a47
cmp eax, 0xffffffff
je 0x41513d
push 0x22
lea eax, [ebp - 0x70]
call fcn.0040991d
mov esi, dword [esi]
push dword [esi - 0xc]
lea eax, [ebp - 0x70]
push esi
call fcn.00402360
push 0x22
lea eax, [ebp - 0x70]
call fcn.0040991d
jmp 0x415147
mov eax, esi
lea edi, [ebp - 0x70]
call fcn.0040872e
mov esi, dword [ebp - 0x7c]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, ebx
je 0x415165
jl 0x4150fb
cmp word [eax], 0x20
je 0x415165
push 0x20
lea eax, [ebp - 0x70]
call fcn.0040991d
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x70]
call fcn.00402360
mov esi, dword [ebp - 0x70]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push ebx
push dword [ebp - 0x78]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea eax, [esi - 0x10]
call fcn.004046a2
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, ebx
sete al
pop edi
mov ecx, dword [ebp + 0x124]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e88b
add ebp, 0x128
leave
ret