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

Disassembly:
push edi
mov edi, eax
xor edx, edx
cmp edi, edx
je 0x4012fc
mov ecx, dword [edi]
push ebx
push ebp
push esi
mov esi, dword [edi + 4]
xor eax, eax
mov word [ecx + 0x16], dx
mov word [ecx + 0x18], dx
cmp esi, edx
jle 0x4012bc
nop
movzx ebx, byte [ecx + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x5eabc8]
inc edx
cmp edx, esi
jl 0x4012a0
xor edx, edx
mov esi, dword [edi + 0xc]
cmp esi, edx
jle 0x4012e0
mov edi, dword [edi + 8]
movzx ebx, byte [edi + edx]
mov ebp, eax
shr ebp, 0x18
xor ebx, ebp
shl eax, 8
xor eax, dword [ebx*4 + 0x5eabc8]
inc edx
cmp edx, esi
jl 0x4012c6
mov edx, eax
shr edx, 8
mov byte [ecx + 0x16], al
mov byte [ecx + 0x17], dl
mov edx, eax
pop esi
shr edx, 0x10
shr eax, 0x18
pop ebp
mov byte [ecx + 0x18], dl
mov byte [ecx + 0x19], al
pop ebx
pop edi
ret

Function at 0x402170
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x6236f8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.00551820
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0x88]
mov dword [0x625044], 0xffffffff
cmp eax, 2
jne 0x40223e
mov eax, dword [ebp - 0x94]
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4021d7
jmp dword [eax*4 + 0x4022a0]
mov dword [0x625044], 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00551802
mov esp, ebp
pop ebp
ret
mov dword [0x625044], 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00551802
mov esp, ebp
pop ebp
ret
mov dword [0x625044], 6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00551802
mov esp, ebp
pop ebp
ret
mov dword [0x625044], 7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00551802
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne case.default.0x4021d7
mov eax, dword [ebp - 0x90]
test eax, eax
je 0x402287
cmp eax, 0xa
je 0x40226f
cmp eax, 0x5a
jne case.default.0x4021d7
mov dword [0x625044], 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00551802
mov esp, ebp
pop ebp
ret
mov dword [0x625044], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00551802
mov esp, ebp
pop ebp
ret
mov dword [0x625044], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00551802
mov esp, ebp
pop ebp
ret

Function at 0x4032c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4032d9
lea eax, [esi + 0xd]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x4032e3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x403950
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6236f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push edi
or ecx, 0x2001f
push ecx
xor ebx, ebx
push eax
push edx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x108], ebx
call fcn.004031a0
mov edi, eax
cmp edi, ebx
je 0x4039ca
mov eax, dword [ebp - 0x110]
cmp eax, ebx
je 0x4039b5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00551802
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x110]
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x104]
push edx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [ebp - 0x114], 0x100
call ebx
test eax, eax
jne 0x403a48
lea ecx, [ebp - 0x104]
push ecx
lea ecx, [ebp - 0x110]
call fcn.00403950
mov edi, eax
test edi, edi
jne 0x403a81
lea edx, [ebp - 0x120]
push edx
mov edx, dword [ebp - 0x110]
push eax
push eax
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
push edx
mov dword [ebp - 0x114], 0x100
call ebx
test eax, eax
je 0x403a00
mov eax, dword [ebp - 0x110]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
cmp eax, edi
je 0x403a63
push eax
call ebx
mov dword [ebp - 0x110], edi
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x10c], edi
push eax
cmp ecx, edi
je 0x403aab
mov edx, dword [esi]
push edx
call fcn.00402f70
jmp 0x403ab4
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x4039b5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00551802
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [ebp - 0x110]
cmp eax, edi
je 0x403ac3
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00551802
mov esp, ebp
pop ebp
ret 4
Function at 0x405c20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x6236f8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x90
lea eax, [ebp - 0x94]
push 0
push eax
mov dword [ebp - 0x98], 0x94
call fcn.00551820
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x405c8d
mov eax, dword [ebp - 0x94]
cmp eax, 5
jae 0x405c7d
cmp eax, 4
jne 0x405c8d
cmp dword [ebp - 0x90], 0x5a
jb 0x405c8d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00551802
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00551802
mov esp, ebp
pop ebp
ret
Function at 0x4097a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov dword [ecx], edx
mov dword [ecx + 0x9c0], 1
push ebx
jmp 0x4097c0
mov eax, dword [ecx + 0x9c0]
mov edx, dword [ecx + eax*4 - 4]
mov ebx, edx
shr ebx, 0x1e
xor ebx, edx
imul ebx, ebx, 0x6c078965
add ebx, eax
mov dword [ecx + eax*4], ebx
inc dword [ecx + 0x9c0]
cmp dword [ecx + 0x9c0], 0x270
jb 0x4097c0
pop ebx
pop ebp
ret 4
Function at 0x40f100
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e7b0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x6236f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ecx + 0x14]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041d200
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0041d600
push str._Running
push eax
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 4], 1
call fcn.0040d960
mov eax, dword [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
mov byte [ebp - 4], 3
cmp edx, dword [0x610020]
je 0x40f18b
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x40f18b
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
push eax
call fcn.00551d56
add esp, 4
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
push eax
push 0
push 0
call esi
mov dword [0x625c58], eax
test eax, eax
je 0x40f287
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call edi
cmp eax, 0x102
je 0x40f278
cmp eax, 0xffffffff
je 0x40f278
mov edx, dword [str.SET_UP]
push edx
lea ecx, [ebp - 0x14]
call fcn.00408190
push str._Running
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push str._Running
push eax
lea ecx, [ebp - 0x14]
call fcn.00409870
mov eax, dword [ebp - 0x14]
push eax
push 0
push 0
call esi
mov esi, eax
test esi, esi
je 0x40f266
push 0x1f4
push esi
call edi
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x102
je 0x40f257
cmp edi, 0xffffffff
je 0x40f257
lea ecx, [ebp - 0x14]
call fcn.0043d750
lea ecx, [ebp - 0x10]
call fcn.0043d750
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0041d150
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5a7404
push 0
call fcn.00408200
add esp, 8
lea ecx, [ebp - 0x14]
call fcn.0043d750
lea ecx, [ebp - 0x10]
call fcn.0043d750
jmp 0x40f2ae
push 0x5a73ec
push 0
call fcn.00408200
add esp, 8
mov eax, dword [ebp - 0x10]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x610020]
je 0x40f2ae
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x40f2ae
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
push eax
call fcn.00551d56
add esp, 4
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0041d150
xor eax, eax
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 0x4193b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 0x14]
cmp esi, 0x10
jb 0x4193c3
mov ecx, dword [eax]
jmp 0x4193c5
mov ecx, eax
mov edx, dword [eax + 0x10]
add edx, ecx
cmp esi, 0x10
jb 0x4193d3
mov ecx, dword [eax]
jmp 0x4193d5
mov ecx, eax
xor eax, eax
cmp ecx, edx
je 0x4193fe
push edi
lea esp, [esp]
mov esi, eax
mov edi, eax
shl esi, 6
shr edi, 2
add esi, edi
movsx edi, byte [ecx]
lea esi, [esi + edi - 0x61c88647]
inc ecx
xor eax, esi
cmp ecx, edx
jne 0x4193e0
pop edi
pop esi
pop ebp
ret

Function at 0x419500
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
push 0
mov dword [esi + 0x9c0], 0x271
call fcn.005533a1
mov edx, 1
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x9c0], edx
jmp 0x4194c0
mov eax, dword [esi + 0x9c0]
mov ecx, dword [esi + eax*4 - 4]
mov ebx, ecx
shr ebx, 0x1e
xor ebx, ecx
imul ebx, ebx, 0x6c078965
add ebx, eax
mov dword [esi + eax*4], ebx
add dword [esi + 0x9c0], edx
cmp dword [esi + 0x9c0], 0x270
jl 0x4194c0
pop esi
pop ebx
ret
mov eax, 1
test byte [0x6267f4], al
jne 0x419520
or dword [0x6267f4], eax
push 0x5a2500
call fcn.005529f1
add esp, 4
mov ecx, 0x625e30
jmp 0x419490

Function at 0x419530
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x9908b0df
test edi, edi
jne 0x419559
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x9c0]
cmp eax, 0x270
jl 0x419615
cmp eax, 0x271
jne 0x419576
call fcn.00419500
xor eax, eax
mov ecx, dword [esi + eax*4 + 4]
xor ecx, dword [esi + eax*4]
inc eax
and ecx, 0x7fffffff
xor ecx, dword [esi + eax*4 - 4]
mov edx, ecx
shr ecx, 1
and edx, 1
xor ecx, dword [ebp + edx*4 - 8]
xor ecx, dword [esi + eax*4 + 0x630]
mov dword [esi + eax*4 - 4], ecx
cmp eax, 0xe3
jl 0x419578
cmp eax, 0x26f
jge 0x4195df
mov edi, edi
mov ecx, dword [esi + eax*4 + 4]
xor ecx, dword [esi + eax*4]
inc eax
and ecx, 0x7fffffff
xor ecx, dword [esi + eax*4 - 4]
mov edx, ecx
shr ecx, 1
and edx, 1
xor ecx, dword [ebp + edx*4 - 8]
xor ecx, dword [esi + eax*4 - 0x390]
mov dword [esi + eax*4 - 4], ecx
cmp eax, 0x26f
jl 0x4195b0
mov eax, dword [esi]
xor eax, dword [esi + 0x9bc]
mov dword [esi + 0x9c0], 0
and eax, 0x7fffffff
xor eax, dword [esi + 0x9bc]
mov ecx, eax
and ecx, 1
mov edx, dword [ebp + ecx*4 - 8]
xor edx, dword [esi + 0x630]
shr eax, 1
xor edx, eax
mov dword [esi + 0x9bc], edx
mov ecx, dword [esi + 0x9c0]
mov eax, dword [esi + ecx*4]
inc ecx
mov dword [esi + 0x9c0], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor eax, edx
xor edx, edx
test edi, edi
jns 0x419663
neg edi
div edi
pop edi
pop esi
mov eax, edx
neg eax
mov esp, ebp
pop ebp
ret 4
div edi
pop edi
pop esi
mov eax, edx
mov esp, ebp
pop ebp
ret 4
Function at 0x41ae20
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
sub esi, edi
jne 0x41ae3a
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
jne 0x41ae4f
mov ecx, dword [ebp + 8]
call fcn.0041add0
add eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edx, edx
push ebx
cmp esi, 0xffffffff
jbe 0x41aec6
xor ecx, ecx
lea eax, [esi + 1]
div ecx
mov ebx, dword [ebp + 8]
mov dword [ebp + 0x10], ecx
mov edi, 1
mov dword [ebp - 4], eax
lea esp, [esp]
cmp dword [ebp - 4], edi
jae 0x41aea0
mov byte [ebp - 8], 0
mov edx, dword [ebp - 8]
push edx
push esi
push 0
push ebx
call fcn.0041ae20
add esp, 0x10
cmp eax, 0xffffffff
ja 0x41ae70
cmp eax, esi
ja 0x41ae70
add eax, dword [ebp + 0xc]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.0041add0
imul eax, edi
add dword [ebp + 0x10], eax
mov eax, esi
sub eax, edi
inc eax
neg edi
cmp edi, eax
je 0x41aebc
xor edi, edi
jmp 0x41aea0
mov eax, dword [ebp + 0x10]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
lea ecx, [esi + 1]
div ecx
mov ebx, eax
cmp edx, esi
jne 0x41aed5
inc ebx
mov edi, dword [ebp + 8]
jmp 0x41aee0
cmp dword [edi + 0x9c0], 0x270
jne 0x41aef3
mov ecx, edi
call fcn.0041a990
mov eax, dword [edi + 0x9c0]
mov ecx, dword [edi + eax*4]
inc eax
mov edx, ecx
shr edx, 0xb
xor ecx, edx
mov dword [edi + 0x9c0], eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov edx, ecx
and edx, 0xffffdf8c
shl edx, 0xf
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
xor edx, edx
div ebx
cmp eax, esi
ja 0x41aee0
add eax, dword [ebp + 0xc]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41b050
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
sub esi, edi
test esi, esi
jne 0x41b06c
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
jne 0x41b089
mov ecx, dword [ebp + 8]
call fcn.0041add0
test edi, edi
jns 0x41b081
or ecx, esi
sub ecx, edi
add eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor edx, edx
push ebx
cmp esi, 0xffffffff
jbe 0x41b106
xor ecx, ecx
lea eax, [esi + 1]
div ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edi, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], edi
jae 0x41b0e0
mov byte [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
push edx
push esi
push 0
push ebx
call fcn.0041ae20
add esp, 0x10
cmp eax, 0xffffffff
ja 0x41b0a6
cmp eax, esi
ja 0x41b0a6
mov ecx, dword [ebp + 0xc]
push ecx
push eax
lea ecx, [ebp + 0xf]
call fcn.0041a970
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.0041add0
imul eax, edi
add dword [ebp - 4], eax
mov eax, esi
sub eax, edi
inc eax
neg edi
cmp edi, eax
je 0x41b0fc
xor edi, edi
jmp 0x41b0e0
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
lea ecx, [esi + 1]
div ecx
mov ebx, eax
cmp edx, esi
jne 0x41b115
inc ebx
mov edi, dword [ebp + 8]
jmp 0x41b120
cmp dword [edi + 0x9c0], 0x270
jne 0x41b133
mov ecx, edi
call fcn.0041a990
mov eax, dword [edi + 0x9c0]
mov ecx, dword [edi + eax*4]
inc eax
mov edx, ecx
shr edx, 0xb
xor ecx, edx
mov dword [edi + 0x9c0], eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov edx, ecx
and edx, 0xffffdf8c
shl edx, 0xf
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
xor edx, edx
div ebx
cmp eax, esi
ja 0x41b120
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jns 0x41b17e
or edx, 0xffffffff
sub edx, ecx
pop ebx
pop edi
add eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41d170
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push ebx
mov edi, ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
mov dword [edi + 4], 0
test esi, esi
jne 0x41d1ac
push 0x30
push 0x5a6b18
push str.GetFileVersionInfoSize
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
push esi
call fcn.0054e1ec
add esp, 4
push eax
push esi
push 0
push ebx
mov dword [edi + 4], eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41d1f2
mov edx, dword [edi + 4]
lea eax, [ebp + 8]
push eax
lea ecx, [edi + 0xc]
push ecx
push 0x5a806c
push edx
call sub.VERSION.dll_VerQueryValueA
mov edx, dword [edi + 4]
lea eax, [ebp + 8]
push eax
lea ecx, [edi + 8]
push ecx
push str.VarFileInfoTranslation
push edx
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 4

Function at 0x41dc00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ecx + 4]
push 0
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop ebp
ret 8

Function at 0x41e3b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, dword [eax - 8]
cmp esi, 2
jl 0x41e3f9
push 0x5c
push edi
call fcn.0041dc80
lea ecx, [esi - 1]
add esp, 8
cmp eax, ecx
jne 0x41e3f9
push 0x3a
push edi
call fcn.0041dc80
add esp, 8
cmp esi, 3
jl 0x41e3eb
lea edx, [esi - 2]
cmp eax, edx
je 0x41e3f9
mov ecx, edi
call fcn.00404350
mov eax, dword [edi]
mov byte [eax + esi - 1], 0
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
pop esi
mov eax, ecx
pop ebp
ret

Function at 0x41e670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580018
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x6236f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push 1
push ecx
push edx
call fcn.00553d1e
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [esi + 4]
push edx
call fcn.00553b9f
add esp, 0x14
test eax, eax
je 0x41e708
mov eax, dword [esi + 4]
push eax
call fcn.00553b94
mov ecx, dword [0x610024]
mov dword [ebp + 0xc], ecx
mov edx, dword [esi + 8]
push edx
lea eax, [ebp + 0xc]
push str.CFileStream::Write___s_
push eax
mov dword [ebp - 4], 0
call fcn.0040d8d0
add esp, 0x10
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040e630
push 0x5fa440
lea edx, [ebp - 0x18]
push edx
call fcn.00551aaa
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41e720
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580018
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x6236f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push 1
push ecx
push edx
call fcn.00553fe2
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [esi + 4]
push edx
call fcn.00553b9f
add esp, 0x14
test eax, eax
je 0x41e7b8
mov eax, dword [esi + 4]
push eax
call fcn.00553b94
mov ecx, dword [0x610024]
mov dword [ebp + 0xc], ecx
mov edx, dword [esi + 8]
push edx
lea eax, [ebp + 0xc]
push str.CFileStream::Read___s_
push eax
mov dword [ebp - 4], 0
call fcn.0040d8d0
add esp, 0x10
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040e630
push 0x5fa440
lea edx, [ebp - 0x18]
push edx
call fcn.00551aaa
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41eb60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5800e8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x6236f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x41eba6
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push 0
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41ebfa
mov edx, dword [0x610024]
mov dword [ebp + 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
push eax
lea ecx, [ebp + 0x10]
push str.CFileArc::Read___s_
push ecx
call fcn.0040d8d0
add esp, 0xc
lea edx, [ebp + 0x10]
push edx
lea ecx, [ebp - 0x18]
call fcn.0040e630
push 0x5fa440
lea eax, [ebp - 0x18]
push eax
call fcn.00551aaa
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4212e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
cmp dword [eax - 8], 0
jne 0x4212f2
xor eax, eax
pop ebp
ret 0x10
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push esi
push edi
push 0x5a8798
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add esi, 0xfffffffe
cmp eax, esi
jb 0x42131f
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
push 0x5a8798
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
pop ebp
ret 0x10

Function at 0x421480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
sub esp, 0xc
cmp dword [eax - 8], 0
jne 0x421497
xor eax, eax
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42148f
push esi
mov eax, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x421500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
sub esp, 8
cmp dword [eax - 8], 0
jne 0x421517
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42150f
mov eax, dword [ebp + 0xc]
push esi
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push 0
push edx
push eax
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret 0xc