joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414fe5
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 + 0x47c648]
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 0x415028
cmp word [esi], dx
jne 0x415028
or byte [edi + eax + 0x28], 4
jmp 0x41502d
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 0x415180
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 0x415160
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41506f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4150a5
cmp eax, edx
jae 0x4150b1
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 0x415047
jmp 0x415180
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 0x41515c
cmp dword [ebp - 0x14], 0
je 0x41515c
mov eax, dword [ebx*4 + 0x47c648]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x415134
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4150fd
mov word [esi], cx
jmp 0x415130
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47c648]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47c648]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47c648]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x415180
pop ebx
cmp word [ebp - 4], bx
jne 0x415145
cmp esi, dword [ebp + 0xc]
jne 0x415145
mov word [esi], bx
jmp 0x41517d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00415a19
add esp, 0x10
cmp word [ebp - 4], bx
je 0x415180
push 0xd
jmp 0x415179
mov ecx, dword [ebx*4 + 0x47c648]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x415177
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x415180
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 0x418094
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 0x418131
push ebx
push esi
call fcn.0041805d
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.00416ce2
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4180de
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x418130
push edi
push eax
call fcn.0041224f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4180fe
call fcn.0041189b
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41812f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00416ce2
add esp, 0x20
test eax, eax
jne 0x41811d
push edi
call fcn.0041189b
jmp 0x418125
push ebx
call fcn.0041189b
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 0x41dd00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41dd2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41dd2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1137c31
Capabilities:
Execute anti-debugging instructions

Disassembly:
jmp 0x12c723a
push ecx
mov ecx, esp
push ebp
mov dword [esp], ebx
mov ebx, 4
add ecx, ebx
pop ebx
sub ecx, 4
jmp 0x12786c2
xchg dword [esp], ecx
pop esp
mov dword [esp], edx
pop dword [ebp - 0x10]
jmp 0x12787d5
jmp 0x13d2fb2
push ecx
push edi
push ebp
mov ebp, 0x46820fd4
mov edi, ebp
pop ebp
mov dword [esp + 4], edi
pop edi
mov dword [esp], eax
mov dword [esp], ebp
jmp 0x12c735a
jmp 0x13147dc
jmp 0x13148e8
push ebp
mov dword [esp], ecx
mov dword [esp], 0x64b2e081
mov dword [esp], edx
mov dword [esp], esp
add dword [esp], 4
pop ebp
jmp 0x1314903
jmp 0x13387b0
rdtsc
jmp 0x13302e5
jmp 0x137b16b
jmp 0x1338897
inc eax
jle 0x1338897
jmp 0x1338882
push eax
push eax
mov eax, 0x53d7cc77
mov dword [esp + 4], eax
pop eax
mov dword [esp], ecx
mov edx, dword [esp]
add esp, 4
push ebx
push dword [esp]
pop ebx
push esi
mov esi, esp
push ebx
mov ebx, 0x435f8482
xor ebx, 0x435f8486
add esi, ebx
pop ebx
add esi, 4
xchg dword [esp], esi
pop esp
push eax
mov dword [esp], ebp
mov dword [esp], ebx
push dword [esp]
pop ebx
add esp, 4
push edx
mov dword [esp], 0x444ae857
mov dword [esp], edi
mov dword [esp], ebx
mov ebx, dword [esp]
add esp, 4
jmp 0x1338897
sub esi, 0x14
push esi
push dword [esp + 4]
pop esi
pop dword [esp]
mov esp, dword [esp]
jmp 0x1338905
xor eax, 0x5e5700e9
add esi, eax
mov eax, dword [esp]
add esp, 4
jmp 0x133881b
push esi
mov esi, esp
push eax
mov eax, 0x5e5700ec
not eax
not eax
neg eax
jb 0x13388b1
jmp 0x13388b1
neg eax
jg 0x13387b5
jmp 0x13387c1
jmp 0x13cb767
push ebx
mov ebx, esp
add ebx, 4
push ebp
push 0x70b1b995
pop ebp
sub ebp, 0x337bd0f0
shl ebp, 4
shr ebp, 4
js 0x1345f5d
jmp 0x1345f5d
sub ebp, 0x1a6bd10
sub ebx, ebp
pop ebp
xor ebx, dword [esp]
xor dword [esp], ebx
xor ebx, dword [esp]
pop esp
mov dword [esp], edx
jmp 0x1345fb8
shr ebp, 3
jp 0x1345ea6
jmp 0x1345f5d
jmp 0x13301eb
jmp 0x135a910
cpuid
jmp 0x135a96a
jmp fcn.013d2ca3
push eax
push eax
mov eax, 0x76ea8905
mov dword [esp + 4], eax
mov eax, dword [esp]
add esp, 4
mov dword [esp], eax
pop dword [ebp - 0x14]
jmp 0x137b28f
jmp 0x12786a8
jmp 0x13ca380
sub esi, ecx
pop ecx
xchg dword [esp], esi
pop esp
mov dword [esp], ecx
jmp 0x13ca3f2
push edi
mov edi, 0x3ff76b2
sub ecx, edi
pop edi
jmp 0x13ca312
sub esp, 4
mov dword [esp], esi
mov esi, esp
add esi, 4
push ecx
mov ecx, 0x7feed6d3
shr ecx, 5
jns 0x13ca321
jmp 0x13ca312
jmp 0x1345e7f
push 0x4d10221
mov dword [esp], edi
sub esp, 4
mov dword [esp], ebp
mov ebp, 0x4a1861ae
mov dword [esp + 4], ebp
pop ebp
mov dword [esp], ebx
jmp 0x13cb887
jmp 0x13ca2b5
push ebp
mov dword [esp], 0
mov eax, dword [esp]
push ebx
push esp
pop ebx
add ebx, 4
add ebx, 4
xchg dword [esp], ebx
pop esp
jmp 0x13d30f1
jmp 0x135a870
Function at 0x40e27b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b548]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409431
mov dword [ebp - 0x14], eax
cmp dword [0x81649c], esi
jne 0x40e36e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40e2fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40e44e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40e44e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e44e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x81649c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x8164a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x8164a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8164ac], eax
test eax, eax
je 0x40e36b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8164a8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40e393
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40e386
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40e3a8
push 4
pop eax
jmp 0x40e450
cmp dword [ebp - 0x14], esi
je 0x40e3a8
push dword [0x81649c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40e38d
mov eax, dword [0x8164a8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40e406
cmp dword [0x8164ac], edi
je 0x40e406
push eax
call ebx
push dword [0x8164ac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40e406
test eax, eax
je 0x40e406
call ecx
test eax, eax
je 0x40e3fb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40e3fb
test byte [ebp - 8], 1
jne 0x40e406
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40e436
mov eax, dword [0x8164a0]
cmp eax, edi
je 0x40e433
push eax
call ebx
test eax, eax
je 0x40e433
call eax
mov esi, eax
test esi, esi
je 0x40e433
mov eax, dword [0x8164a4]
cmp eax, edi
je 0x40e433
push eax
call ebx
test eax, eax
je 0x40e433
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x81649c]
call ebx
test eax, eax
je 0x40e44e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40e450
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404483
mov esp, ebp
pop ebp
ret
Function at 0x409e20
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d06f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5a9464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0xf0]
test esi, esi
je 0x409e9b
cmp dword [esi + 4], 0
je 0x409e7f
mov eax, dword [esi + 4]
test eax, eax
je 0x409e7f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi], 0xffffffff
mov esi, dword [edi + 0xf0]
test esi, esi
je 0x409e9b
mov ecx, esi
call fcn.0044ddb0
push 0x50
push esi
call fcn.00508db8
add esp, 8
push 0x50
call fcn.00508dc6
mov esi, eax
mov dword [ebp - 0x10], esi
push 0x50
push 0
push esi
mov dword [ebp - 4], 0
call fcn.004b3fe0
sub esp, 0x18
mov ecx, 0x409f10
mov eax, esp
mov dword [eax + 0x24], 0
test ecx, ecx
je 0x409edd
mov dword [eax], vtable.std::_Func_impl_unsigned_long_int____cdecl___void____class_std::allocator_int___unsigned_long_int__void__.0
mov dword [eax + 4], 0x409f10
mov dword [eax + 0x24], eax
push str.ABDEF
push edi
mov ecx, esi
call fcn.0044db60
mov dword [edi + 0xf0], eax
mov eax, dword [eax + 4]
test eax, eax
je 0x409efe
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40a5c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d17a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5a9464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.004f447a
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x40a680
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.004b35fe
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x5a5ea4
push eax
call fcn.004b4510
push edi
push esi
call fcn.004f47f0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00508d84
mov esp, ebp
pop ebp
ret 4
Function at 0x4121f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54dad5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5a9464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x2c]
push eax
call fcn.00412300
mov ebx, eax
lea esi, [edi + 0x28]
cmp esi, ebx
je 0x412266
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x41223f
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00406ed0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x412257
mov eax, dword [esi]
jmp 0x412259
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push ebx
call fcn.004096f0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x412282
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00406ed0
push 0x50
call fcn.00508dc6
mov esi, eax
mov dword [ebp - 0x10], esi
push 0x50
push 0
push esi
mov dword [ebp - 4], 1
call fcn.004b3fe0
sub esp, 0x18
mov ecx, 0x413670
mov eax, esp
mov dword [eax + 0x24], 0
test ecx, ecx
je 0x4122c4
mov dword [eax], vtable.std::_Func_impl_unsigned_long_int____stdcall___void____class_std::allocator_int___unsigned_long_int__void__.0
mov dword [eax + 4], 0x413670
mov dword [eax + 0x24], eax
push 0x58d0e0
push edi
mov ecx, esi
call fcn.0044db60
mov dword [edi + 0x74], eax
mov eax, dword [eax + 4]
test eax, eax
je 0x4122e2
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41afc0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e638
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5a9464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x41b011
mov eax, dword [esi]
jmp 0x41b013
mov eax, esi
mov edx, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
cmp word [edx], cx
je 0x41b034
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b025
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00406770
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 4], 0
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], 0
mov word [esi + 0x18], ax
cmp word [edi], ax
jne 0x41b064
xor ecx, ecx
jmp 0x41b07f
mov ecx, edi
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b070
sub ecx, ebx
sar ecx, 1
push ecx
push edi
lea ecx, [esi + 0x18]
call fcn.00406770
mov eax, dword [ebp + 0x14]
movsd xmm0, qword [0x591530]
mov dword [esi + 0x30], eax
xor eax, eax
mov dword [esi + 0x38], 0x40a340
movsd qword [esi + 0x40], xmm0
mov dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x4c], 0xffffffff
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov byte [esi + 0x58], 0
mov dword [esi + 0x70], 7
mov dword [esi + 0x6c], 0
mov word [esi + 0x5c], ax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], 0xf
mov byte [esi + 0x74], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x421fe0
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f3ed
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5a9464]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x234], 0
call fcn.004b3fe0
mov dword [esi + 0x10], 0
lea ecx, [edi + 0x758]
mov dword [esi + 0x14], 0
add esp, 0xc
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x42206c
mov eax, dword [esi]
jmp 0x42206e
mov eax, esi
xor edx, edx
push 0xffffffffffffffff
push edx
push ecx
mov ecx, esi
mov word [eax], dx
call fcn.00406870
xor eax, eax
mov dword [ebp - 0x234], 1
mov byte [edi + 0x7b9], 1
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 1
call fcn.0044eda0
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
call fcn.0044ec90
test eax, eax
mov dword [ebp - 0x238], eax
mov byte [edi + 0x7ba], 1
setne al
mov byte [edi + 0x7b9], al
call fcn.0044ec10
mov ebx, eax
test ebx, ebx
setne al
mov byte [edi + 0x7ba], al
cmp dword [edi + 0x768], 0
je 0x42212a
cmp dword [edi + 0x754], 8
lea eax, [edi + 0x740]
jb 0x42211b
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4221ef
cmp dword [ebp - 0x238], 0
je 0x422172
test ebx, ebx
je 0x422172
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
lea eax, [ebp - 0x218]
push 0
je 0x42217a
push str.qicaidun
push eax
push 0
push 0x104
push eax
call fcn.00530717
add esp, 0x18
jmp 0x422199
push 0
lea eax, [ebp - 0x218]
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x2a
push eax
push 0
call edi
test eax, eax
jne 0x422199
push eax
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call edi
push 0x58c674
push str.AtoTomnipotent
lea eax, [ebp - 0x218]
push eax
push 0
push 0x104
push eax
call fcn.00530717
add esp, 0x18
cmp word [ebp - 0x218], 0
jne 0x4221c8
xor ecx, ecx
jmp 0x4221e0
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4221d1
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00406770
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x42220d
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.00406ed0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00508d84
mov esp, ebp
pop ebp
ret 4
Function at 0x422390
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5a9464]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x234]
push 0x208
push 0
push eax
mov esi, ecx
call fcn.004b3fe0
add esi, 0x758
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4223ce
mov esi, dword [esi]
push 0x10
push edi
push 0x10
push esi
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRelativePathToW]
mov ecx, 0x58d180
lea eax, [ebp - 0x234]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x422416
test dx, dx
je 0x422412
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x422416
add eax, 4
add ecx, 4
test dx, dx
jne 0x4223f0
xor eax, eax
jmp 0x42241b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4224cf
push eax
push str.set.ini
push edi
push eax
lea esi, [eax + 1]
lea eax, [ebp - 0x234]
push 0x104
push eax
call fcn.00530717
add esp, 0x18
lea eax, [ebp - 0x234]
push eax
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0x58c76c
push str.IsOverride
push 0x58ea6c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x58d0f8
lea eax, [ebp - 0x2c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4224af
test dx, dx
je 0x422492
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4224af
add eax, 4
add ecx, 4
test dx, dx
jne 0x422470
xor eax, eax
xor ecx, ecx
test eax, eax
pop edi
cmovne esi, ecx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00508d84
mov esp, ebp
pop ebp
ret 4
sbb eax, eax
xor ecx, ecx
or eax, 1
test eax, eax
pop edi
cmovne esi, ecx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00508d84
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00508d84
mov esp, ebp
pop ebp
ret 4

Function at 0x422670
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5a9464]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], 0
call fcn.004b3fe0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4226d4
push eax
push 0x2e
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
push 0x58ea84
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x104
push eax
call fcn.00530717
push 0
push str.AtoTomnipotent
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x104
push eax
call fcn.00530717
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
add esp, 0x30
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x42272d
xor ecx, ecx
jmp 0x422745
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x422736
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00406770
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00508d84
mov esp, ebp
pop ebp
ret 4