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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41ac37
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41ac3e
cmp ebx, dword [eax + 4]
jae 0x41ac3e
xor eax, eax
jmp 0x41ae2e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41ac4f
xor eax, eax
inc eax
jmp 0x41ae2d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41ac65
cmp ecx, edx
jae 0x41adaa
cmp dword [eax + 4], 0
je 0x41ac6e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41ac56
cmp dword [ebp + 8], 0
je 0x41ac90
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41adaa
cmp eax, esi
jae 0x41adaa
mov eax, dword [0x531d50]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41acb5
cmp dword [esi*4 + 0x531d58], edi
je 0x41adae
inc esi
cmp esi, eax
jl 0x41aca3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41ae2a
cmp dword [ebp - 8], 0x1000000
jne 0x41ae2a
test byte [ebp - 0xc], 0xcc
je 0x41ad33
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41ae2a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41ae2a
cmp word [eax + 0x18], 0x10b
jne 0x41ae2a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41ae2a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41ad33
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41ad33
test byte [ecx + 0x27], 0x80
jne 0x41adaa
push 1
push 0x531d98
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41ac47
mov ecx, dword [0x531d50]
test ecx, ecx
mov edx, ecx
jle 0x41ad67
lea eax, [ecx*4 + 0x531d54]
cmp dword [eax], edi
je 0x41ad67
dec edx
sub eax, 4
test edx, edx
jg 0x41ad5b
test edx, edx
jne 0x41ad98
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41ad74
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41ad8c
lea eax, [edx*4 + 0x531d58]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41ad7a
cmp ecx, 0x10
jge 0x41ad98
inc ecx
mov dword [0x531d50], ecx
push 0
push 0x531d98
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41ac47
xor eax, eax
jmp 0x41ae2d
test esi, esi
jle 0x41ac47
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x531d98
call ebx
test eax, eax
jne 0x41ac47
cmp dword [esi*4 + 0x531d58], edi
je 0x41ae04
mov eax, dword [0x531d50]
lea esi, [eax - 1]
test esi, esi
jl 0x41adf2
cmp dword [esi*4 + 0x531d58], edi
je 0x41adee
dec esi
jns 0x41ade2
test esi, esi
jge 0x41ae02
cmp eax, 0x10
jge 0x41adfd
inc eax
mov dword [0x531d50], eax
lea esi, [eax - 1]
jmp 0x41ae04
je 0x41ae1c
xor ecx, ecx
test esi, esi
jl 0x41ae1c
lea eax, [ecx*4 + 0x531d58]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41ae0a
push 0
push 0x531d98
call ebx
jmp 0x41ac47
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c75c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4303c0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x430b00]
je 0x41c791
inc eax
cmp eax, 0x13
jb 0x41c782
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x430b00]
jne 0x41c8b7
mov eax, dword [0x531b90]
cmp eax, 1
je 0x41c88f
cmp eax, edx
jne 0x41c7c1
cmp dword [0x4302b4], 1
je 0x41c88f
cmp ecx, 0xfc
je 0x41c8b7
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41c7f7
lea eax, [ebp - 0x80]
push 0x429c7c
push eax
call fcn.004161d0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00415a50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41c82b
mov eax, edi
push eax
call fcn.00415a50
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x429c78
push edi
call fcn.00417600
add esp, 0x10
push edi
call fcn.00415a50
push dword [esi + 0x430b04]
mov ebx, eax
call fcn.00415a50
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00417120
mov ebx, esp
push 0x429c5c
push ebx
call fcn.004161d0
push edi
push ebx
call fcn.004161e0
push 0x429c58
push ebx
call fcn.004161e0
push dword [esi + 0x430b04]
push ebx
call fcn.004161e0
push 0x12010
push 0x429c30
push ebx
call fcn.0041e3a0
add esp, 0x2c
jmp 0x41c8b7
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x430b04]
push dword [esi]
call fcn.00415a50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0041d1d1
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41d2fe
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4303c0]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x41d32f
xor eax, eax
jmp 0x41d4b8
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x534200]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41d36b
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041e80d
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41d446
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41d484
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x41d3cf
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41d3c0
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x41d3a0
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41d40f
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41d418
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41d391
jmp 0x41d41a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41d4b3
cmp dword [ebp - 0x6c], edi
je 0x41d484
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41d479
call fcn.0041c61c
mov dword [eax], 9
call fcn.0041c625
mov dword [eax], esi
jmp 0x41d4ae
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41d46e
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41d41a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41d41a
push dword [ebp - 0x6c]
call fcn.0041c62e
pop ecx
jmp 0x41d4ae
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41d49c
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41d49c
xor eax, eax
jmp 0x41d4b6
call fcn.0041c61c
mov dword [eax], 0x1c
call fcn.0041c625
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41d4b6
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0041d1d1
add ebp, 0x3a0
leave
ret
Function at 0x41e3a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x531f48], ebx
push esi
push edi
jne 0x41e420
push 0x42a3fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41e45b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42a3f0
push edi
call esi
test eax, eax
mov dword [0x531f48], eax
je 0x41e45b
push 0x42a3e0
push edi
call esi
push 0x42a3cc
push edi
mov dword [0x531f4c], eax
call esi
cmp dword [0x531d0c], 2
mov dword [0x531f50], eax
jne 0x41e420
push 0x42a3b0
push edi
call esi
test eax, eax
mov dword [0x531f58], eax
je 0x41e420
push 0x42a398
push edi
call esi
mov dword [0x531f54], eax
mov eax, dword [0x531f54]
test eax, eax
je 0x41e465
call eax
test eax, eax
je 0x41e44c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x531f58]
test eax, eax
je 0x41e44c
test byte [ebp - 8], 1
jne 0x41e465
cmp dword [0x531d18], 4
jb 0x41e45f
or byte [ebp + 0x12], 0x20
jmp 0x41e484
xor eax, eax
jmp 0x41e494
or byte [ebp + 0x12], 4
jmp 0x41e484
mov eax, dword [0x531f4c]
test eax, eax
je 0x41e484
call eax
mov ebx, eax
test ebx, ebx
je 0x41e484
mov eax, dword [0x531f50]
test eax, eax
je 0x41e484
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x531f48]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41ea40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41ec14
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x534200]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41ec14
test cl, 0x48
je 0x41eaab
cmp byte [eax + 5], 0xa
je 0x41eaab
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41eafd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41eae5
call fcn.0041c61c
mov dword [eax], 9
call fcn.0041c625
mov dword [eax], esi
jmp 0x41eaf5
cmp eax, 0x6d
je 0x41ec14
push eax
call fcn.0041c62e
pop ecx
or eax, 0xffffffff
jmp 0x41ec16
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41ec0f
test eax, eax
je 0x41eb24
cmp byte [ebx], 0xa
jne 0x41eb24
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41eb2d
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41ec09
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41ebf9
cmp al, 0xd
je 0x41eb5f
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41ebeb
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41eb79
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41eb74
add dword [ebp + 0x10], 2
jmp 0x41ebcd
mov dword [ebp + 0x10], eax
jmp 0x41ebe7
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41eba1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41ebe7
cmp dword [ebp - 0xc], 0
je 0x41ebe7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41ebc2
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41ebcd
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41ebea
cmp ebx, dword [ebp + 0xc]
jne 0x41ebd2
cmp byte [ebp - 1], 0xa
jne 0x41ebd2
mov byte [ebx], 0xa
jmp 0x41ebea
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d1df
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41ebeb
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41eb43
jmp 0x41ec09
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41ec09
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41ec16
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f580
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push 1
xor esi, esi
push esi
push str.CLSIDCAA2D3B2_4BB5_4a45_A17A_122773379D99
push SysReAllocString
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41f5e9
mov edx, dword [esp + 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
push eax
push eax
push eax
push eax
push edx
mov dword [esp + 0x24], eax
call edi
test eax, eax
jne 0x41f5e8
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x18], eax
mov esi, eax
jb 0x41f5e8
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
push 0
push 0
push 0
push edx
call edi
pop edi
mov eax, dword [esp + 4]
test eax, eax
je 0x41f5f8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 8

Function at 0x41fa40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x4303c0]
push ebx
mov ebx, dword [0x42ace0]
push esi
mov esi, dword [0x42ace4]
push edi
mov edi, dword [0x42acdc]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
mov dword [esp + 0x148], eax
mov eax, dword [0x42acd8]
push 0x4287d8
push SysReAllocString
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41fb2c
mov byte [esp + 0x30], al
mov ecx, 0x40
lea edi, [esp + 0x31]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [edi + 0x10]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x34], 0x104
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41fb0d
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
mov ecx, edi
call fcn.0041f870
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x20]
mov ecx, eax
mov dword [ecx], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], edx
jmp 0x41fb3a
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x20]
mov ecx, eax
mov dword [ecx], edx
mov dword [ecx + 4], edi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], esi
mov ecx, dword [esp + 0x13c]
call fcn.0041d1d1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41fb60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x4303c0]
push esi
push edi
mov dword [esp + 0x11c], eax
mov esi, ecx
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0x14]
shr eax, 0x10
movzx ecx, ah
push ecx
movzx edx, al
mov eax, dword [ebp + 0x14]
push edx
movzx ecx, ah
push ecx
mov ecx, dword [ebp + 0x10]
movzx edx, al
mov eax, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 0x10]
shr ecx, 0x10
movzx ecx, cl
shr eax, 0x18
push eax
movzx eax, byte [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
shr edx, 8
movzx edx, dl
push edx
movzx edx, word [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
shr ecx, 0x10
push ecx
push edx
push eax
push 0x42a79c
lea ecx, [esp + 0x40]
push 0x104
push ecx
call fcn.0042522d
add esp, 0x38
lea edx, [esp + 0xc]
push edx
push 0x4287d8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x41fc39
lea eax, [esp + 0xc]
push eax
push 0x4287d8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x41fc39
xor eax, eax
mov ecx, dword [esp + 0x11c]
call fcn.0041d1d1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x10]
mov edi, 1
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41fc45
sub eax, edx
mov edx, dword [esi + 0x10]
inc eax
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41fc6e
xor edi, edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x11c]
mov eax, edi
call fcn.0041d1d1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41ff20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [0x4303c0]
mov dword [esp + 0x10c], eax
push esi
push edi
xor eax, eax
test edx, edx
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x41ff68
push edx
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0041fd10
add esp, 0xc
jmp 0x41ff78
push edx
push 0x104
lea ecx, [esp + 0x10]
push ecx
call fcn.00401bae
push 0x42a7dc
push 0x104
lea edx, [esp + 0x10]
push edx
call fcn.0040232e
mov ecx, dword [ebp + 8]
lea eax, [esp + 8]
push eax
push ecx
push ebx
push 0x428670
push 0x42a7d8
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
jne 0x41ffc3
mov ecx, dword [esp + 0x114]
call fcn.0041d1d1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x2e
push ebx
call fcn.00417510
add esp, 8
test eax, eax
je 0x41ffd5
mov byte [eax], 0
mov ecx, dword [esp + 0x114]
mov eax, esi
call fcn.0041d1d1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x423a30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x4303c0]
push ebx
push esi
push edi
mov dword [esp + 0x124], eax
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x18], bl
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x42aab0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
mov dword [esp + 0x10], ebx
je 0x423ae8
push 0x104
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x423ae8
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jbe 0x423ae8
push edi
call fcn.0041748b
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
push esi
push edi
push ecx
lea edx, [esp + 0x24]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x423adf
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x42863c
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x423afd
push esi
call fcn.00406f29
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x124]
call fcn.0041d1d1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
mov ecx, dword [ebp + 8]
push edx
push eax
push 0x42aaa4
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
call fcn.00406f29
mov ecx, dword [esp + 0x138]
add esp, 0x14
mov eax, 1
call fcn.0041d1d1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423b40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x4303c0]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov dword [esp + 0xac], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call esi
test eax, eax
jne 0x423baa
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call esi
test eax, eax
jne 0x423baa
mov edx, dword [ebp + 8]
mov byte [edx], al
mov ecx, dword [esp + 0xac]
call fcn.0041d1d1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x423c4c
dec eax
je 0x423bf4
dec eax
jne 0x423c5e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push 0x42aae8
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, 1
mov ecx, dword [esp + 0xac]
call fcn.0041d1d1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0xc], 4
jne 0x423c5e
mov eax, dword [esp + 0x10]
test eax, eax
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x423c20
push 0x42aadc
push esi
call edi
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, 4
jne 0x423c5e
cmp dword [esp + 0x10], 0xa
jne 0x423c3b
push 0x42aad0
push esi
call edi
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, 4
jne 0x423c5e
cmp dword [esp + 0x10], 0x5a
jne 0x423c5e
push 0x42aac4
push esi
call edi
jmp 0x423c5b
mov eax, dword [ebp + 8]
push 0x42aabc
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov ecx, dword [esp + 0xac]
mov eax, 1
call fcn.0041d1d1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x424430
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427d3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
mov eax, dword [0x4303c0]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x220], eax
mov dword [esi], 0x42ab14
mov eax, dword [0x53208c]
push edi
mov ecx, 0x53208c
mov dword [esp + 0xc], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x10], eax
mov edx, dword [0x53208c]
xor ebx, ebx
mov ecx, 0x53208c
mov dword [esp + 0x234], ebx
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [0x53208c]
mov ecx, 0x53208c
mov byte [esp + 0x234], 1
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x20], eax
mov edx, dword [0x53208c]
mov ecx, 0x53208c
mov byte [esp + 0x234], 2
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x24], eax
mov eax, dword [0x53208c]
mov ecx, 0x53208c
mov byte [esp + 0x234], 3
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x28], eax
mov edx, dword [0x53208c]
mov ecx, 0x53208c
mov byte [esp + 0x234], 4
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x2c], eax
mov eax, dword [0x53208c]
mov ecx, 0x53208c
mov byte [esp + 0x234], 5
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x3c], eax
mov edx, dword [0x53208c]
mov ecx, 0x53208c
mov byte [esp + 0x234], 6
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0x40], eax
mov eax, dword [0x53208c]
mov ecx, 0x53208c
mov byte [esp + 0x234], 7
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x4c], eax
mov byte [esp + 0x234], 8
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x44], ebx
mov word [esi + 0x18], 0x50
mov byte [esp + 0x118], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x118]
push 0x104
push ecx
mov word [esi + 0x30], bx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
stosb byte es:[edi], al
call fcn.00423a30
mov byte [esp + 0x18], bl
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x18]
push 0x104
push edx
stosb byte es:[edi], al
call fcn.00423b40
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x12c]
push ecx
lea eax, [esi + 0x10]
push 0x42ab18
push eax
call fcn.004035a3
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x244]
add esp, 0x20
mov eax, esi
call fcn.0041d1d1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret