joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4066d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esi + 0x10]
mov ecx, eax
mov dword [ebp - 0xc], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4066e7
sub ecx, edx
lea eax, [ecx + 0x42]
push eax
push 0x40
call fcn.00405c20
push 0x104
push 0x40
mov edi, eax
call fcn.00405c20
mov edx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp dword [esi + 0xc], 0
mov dword [ebp - 4], eax
je 0x406737
movq xmm0, qword [str.patchOK]
mov ebx, 1
movq qword [edi], xmm0
mov cl, byte [0x417760]
mov byte [edi + 8], cl
jmp 0x406750
push dword [esi + 0x94c]
xor ebx, ebx
push str.error_lu
push edi
call edx
mov edx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x406755
sub esi, ecx
mov ecx, edi
lea eax, [ecx + 1]
mov dword [ebp - 8], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406766
sub ecx, dword [ebp - 8]
push dword [ebp - 0xc]
push 0x417770
lea eax, [ecx + edi]
push eax
call edx
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406786
push 1
sub ecx, edx
push ecx
push edi
push str.AppCall
push 0x416840
push 0x80000001
call fcn.00406d90
push edi
push str.999_EUP:_IU_z___s__r_n
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp - 4]
call fcn.00407920
add esp, 0x28
mov byte [esi + edi], 0
test ebx, ebx
je 0x406831
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
add eax, 0x524
mov dword [ebp - 0x30], 0
push 0x1f4
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x3c], str.open
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x44], 0x400
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ebx, eax
push edi
call fcn.00405c70
push dword [ebp - 4]
call fcn.00405c70
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406b30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push ebx
push esi
push edi
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
test edi, edi
jne 0x406b95
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push eax
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov ecx, eax
sete bl
test esi, esi
jne 0x406b97
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x406bb0
push ecx
push esi
push edi
push str.a:__d__b:__d__c:__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406bc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x41ed0c], 0
mov dword [ebp - 0xc], 0
je 0x406d77
push ebx
push esi
mov ebx, 0x41ed0c
push edi
mov dword [ebp - 4], ebx
xor edi, edi
nop word [eax + eax]
cmp byte [edi + 0x41ee14], 0
lea edx, [edi + 0x41ee14]
je 0x406c29
lea ecx, [edi + 0x41ed10]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406c08
sub ecx, esi
push edx
push 0x416b04
lea eax, [ecx + 0x41ed10]
add eax, edi
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea esi, [edi + 0x41f01c]
push 0x416b54
push esi
call fcn.0040b6f1
add esp, 8
test eax, eax
jne 0x406c55
mov ecx, dword [ebp + 8]
sub esi, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x406c46
jmp 0x406cb0
lea ebx, [edi + 0x41ef18]
push 0x416b54
push ebx
call fcn.0040b6f1
add esp, 8
test eax, eax
jne 0x406c81
mov ecx, dword [ebp + 8]
sub ebx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebx + ecx - 1], al
test al, al
jne 0x406c72
jmp 0x406cad
push 0x416b5c
push esi
call fcn.0040b6f1
add esp, 8
test eax, eax
jne 0x406cad
mov eax, dword [ebp + 0xc]
sub esi, eax
nop dword [eax + eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x406ca0
mov ebx, dword [ebp - 4]
lea eax, [edi + 0x41f120]
push eax
lea eax, [edi + 0x41f01c]
push eax
lea eax, [edi + 0x41f01c]
push 0x41687c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [edi + 0x41ed08]
add esp, 0x10
test eax, eax
je 0x406ce5
cmp eax, dword [0x42c64c]
jne 0x406d51
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [edi + 0x41ed10]
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp byte [edi + 0x41f01c], 0
je 0x406d48
lea ecx, [edi + 0x41f01c]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406d20
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [edi + 0x41f01c]
push eax
push 1
push 0
lea eax, [edi + 0x41ef18]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
inc eax
imul edi, eax, 0x458
cmp dword [edi + 0x41ed0c], 0
mov dword [ebp - 0xc], eax
lea ebx, [edi + 0x41ed0c]
mov dword [ebp - 4], ebx
jne 0x406bf0
pop edi
pop esi
pop ebx
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov esp, ebp
pop ebp
ret

Function at 0x406d90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x406de5
push esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x407920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x42b9d0], 0
je 0x4079d2
push esi
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push 0x42b9d0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4079d1
push edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407970
push 0
lea eax, [ebp - 4]
sub ecx, edx
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407990
sub ecx, edx
cmp byte [ecx + edi - 2], 0xd
je 0x4079c9
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4079a5
sub ecx, edx
cmp byte [ecx + edi - 1], 0xa
je 0x4079c9
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x416b50
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408c9b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408cda
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408cda
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408cda
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408cda
cmp dword [ecx + 0x74], 0xe
jbe 0x408cda
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40e3c7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x419624
push 0x41961c
push str.FlsAlloc
push 0x1f
call fcn.0040e2a3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e3fb
push dword [ebp + 8]
mov ecx, esi
call dword [0x4162f8]
call esi
jmp 0x40e401
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40e445
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x419634
push 0x41962c
push str.FlsGetValue
push 0x21
call fcn.0040e2a3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e47c
push dword [ebp + 8]
mov ecx, esi
call dword [0x4162f8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40e484
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41963c
push 0x419634
push str.FlsSetValue
push 0x22
call fcn.0040e2a3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e4be
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4162f8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40fb52
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 0x40fbef
push ebx
push esi
call fcn.0040fb1b
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.0040faaf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40fb9c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40fbee
push edi
push eax
call fcn.004103be
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40fbbc
call fcn.0040e0f3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40fbed
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040faaf
add esp, 0x20
test eax, eax
jne 0x40fbdb
push edi
call fcn.0040e0f3
jmp 0x40fbe3
push ebx
call fcn.0040e0f3
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 0x415120
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x565b38
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5c6ff4]
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 ebx, ecx
call fcn.00412769
push 0
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.00419ff1
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x402a46
call fcn.004159d0
mov ecx, eax
test ecx, ecx
jne 0x4029d5
push 0x80004005
call fcn.004020d0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
push 0x65
mov dword [ebp - 4], 0
call fcn.0041a2f1
test eax, eax
je 0x402a00
push 0x65
push eax
lea ecx, [ebp - 0x14]
call fcn.004032a0
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
je 0x402a27
push 0
push 0
push 0x800
push dword [edi + 4]
mov edi, dword [sym.imp.USER32.dll_AppendMenuW]
call edi
mov eax, dword [ebp - 0x1c]
push esi
push 0x10
push 0
push dword [eax + 4]
call edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x402a46
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx + 0xd0]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push 0x80
push dword [ebx + 0x20]
call esi
push dword [ebx + 0xd0]
push 0
push 0x80
push dword [ebx + 0x20]
call esi
push 0x80
push 0
push 0
push 0
push 0
push 0x5cd9b8
mov ecx, ebx
call fcn.0041af89
push 0
push 0x80
push 0x40000
mov ecx, ebx
call fcn.0041abe6
mov ecx, ebx
call fcn.00402550
lea eax, [ebp - 0x18]
push eax
push 0
push ebx
push 0x402ae0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0xd8], eax
mov eax, 1
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.005487e7
mov esp, ebp
pop ebp
ret

Function at 0x402f20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00411fd3

Function at 0x403170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403185
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4031c6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4031c2
nop word [eax + eax]
cmp esi, edx
jae 0x4031c6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4031b0
cmp esi, edx
jb 0x4031cb
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40564d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x405697
call fcn.0041976f
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x405694
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4056e5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x4056c3
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call fcn.00548ce6
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x4056c3
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x4056e3
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call fcn.00548ce6
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41161f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x56658a
call fcn.00548d23
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [ecx], edi
cmp dword [eax + 0x58], edi
je 0x4116c9
push dword [ebp + 8]
mov ecx, eax
call fcn.00411957
mov esi, eax
test esi, esi
je 0x41175c
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
test eax, eax
jne 0x4116b2
push edx
call fcn.00403982
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4116b2
xor edi, edi
inc edi
jmp 0x4116bc
push dword [ebx]
call fcn.0040398b
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.004114e4
jmp 0x41175a
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [esi + 0x84]
mov ecx, esi
push eax
call fcn.00548ce6
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x18], esi
test esi, esi
je 0x411752
mov ecx, dword [ebp + 0x14]
mov eax, esi
shr eax, 1
push eax
mov dword [ecx], eax
call fcn.00403982
mov dword [ebx], eax
pop ecx
test esi, esi
jle 0x41174c
mov esi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.0043c3e4
push edi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.0043c3e4
add al, bl
mov edx, edi
test edx, edx
jns 0x41173d
add edx, 1
sar edx, 1
mov ecx, dword [esi]
add edi, 2
mov byte [edx + ecx], al
cmp edi, dword [ebp - 0x18]
jl 0x411714
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.00402320
mov eax, edi
call fcn.00548cec
ret 0x10

Function at 0x411764
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x4117b7
push esi
push dword [ebp + 8]
call fcn.00411957
mov edi, eax
test edi, edi
jne 0x411787
mov eax, dword [ebp + 0x10]
jmp 0x4117c9
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x411782
mov eax, dword [ebp - 8]
jmp 0x4117c9
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412038
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0041976f
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41206f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00412090
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41aa38
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x570a02
call fcn.00548d23
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x41aa5e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41aabd
call fcn.004159d0
push eax
lea ecx, [ebp - 0x10]
call fcn.00401e30
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.00548ce6
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00550ba5
push eax
call fcn.00403210
add esp, 0x14
test esi, esi
je 0x41aab0
push esi
call fcn.005500eb
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402320
mov eax, ebx
call fcn.00548cec
ret 8

Function at 0x41d142
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x41d187
call fcn.0041976f
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41d187
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41d1a3
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00499d20
mov ebx, eax
test edi, edi
je 0x41d1a1
test esi, esi
je 0x41d1a1
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41db90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x41dc4e
cmp dword [esi + 0x20], 0
je 0x41dc4e
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41dc4e
cmp dword [ebp + 8], 0
je 0x41dc4e
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0041976f
push 0x577830
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x41dc1f
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41dc4e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.004baa9d
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x41dc3f
test edi, edi
je 0x41dc3f
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x41dc4a
mov ecx, esi
call fcn.0041d933
mov eax, ebx
jmp 0x41dc50
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x436896
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x4368af
call fcn.0041976f
mov esi, dword [eax + 0xc]
push 0x5785f8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x436905
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x436904
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4368e5
xor esi, esi
jmp 0x4368fb
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0043690d
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4bc57c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x4bc596
mov edi, dword [esi + 0xc]
jmp 0x4bc5d6
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4bc5af
call fcn.0041646c
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4bc5c4
call fcn.0041646c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4bc5d6
call fcn.0041646c
call fcn.0041976f
cmp dword [eax + 0x3c], 0
je 0x4bc5eb
push edi
mov ecx, ebx
call fcn.004bbc10
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004bc7c8
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4bc614
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4bc620
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8