joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ddf0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x48de00
call fcn.0048e0a0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 8], eax
je 0x48de9f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitConverter32
push eax
call edi
mov ecx, dword [esi + 8]
push str.UninitConverter
push ecx
mov dword [esi + 0x18], eax
call edi
mov edx, dword [esi + 8]
push str.IsFormatCorrect32
push edx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 8]
push str.ForeignToRtf32
push eax
call edi
mov ecx, dword [esi + 8]
push str.CchFetchLpszError
push ecx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 0x18]
cmp eax, ebx
pop edi
je 0x48de83
push str.WORDPAD
push ebx
call eax
cmp eax, 1
jne 0x48de83
mov eax, dword [esi + 4]
inc eax
mov dword [esi + 4], eax
pop esi
mov al, 1
pop ebx
ret 4
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 8], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
pop esi
xor al, al
pop ebx
ret 4

Function at 0x48fc00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5dd010
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x677e28]
push esi
mov esi, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.004018c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.004018c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 3
call fcn.004018c0
lea ecx, [esp + 4]
mov byte [esp + 0x28], 4
mov dword [esp + 4], 0x5ecdfc
call fcn.0048f960
mov eax, dword [esp + 0x30]
lea ecx, [esp + 4]
push eax
call fcn.0048f9c0
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 5
push ecx
lea ecx, [esp + 8]
call fcn.00490080
mov eax, dword [eax]
lea ecx, [esi + 0x10]
push eax
mov byte [esp + 0x2c], 6
call fcn.0059d986
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 5
call fcn.0059d7fd
lea edx, [esp + 0x30]
lea ecx, [esp + 4]
push edx
call fcn.004900d0
mov eax, dword [eax]
lea ecx, [esi + 0x14]
push eax
mov byte [esp + 0x2c], 7
call fcn.0059d986
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 5
call fcn.0059d7fd
mov dword [esi + 0x18], 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xb
call fcn.0059d7fd
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0xa
call fcn.0059d7fd
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 9
call fcn.0059d7fd
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 8
call fcn.0059d7fd
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.0059d7fd
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x4902f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5dd217
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebp
push esi
lea eax, [esp + 8]
push edi
xor ebp, ebp
mov esi, ecx
push eax
mov dword [esp + 0x14], ebp
call fcn.004901c0
mov ecx, dword [0x677e28]
mov dword [esp + 0x20], 1
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0xc]
mov ecx, esi
mov byte [esp + 0x20], 2
mov edi, dword [edx - 8]
call fcn.004903f0
mov edx, dword [esp + 0xc]
xor ecx, ecx
mov al, byte [edx]
cmp al, 0x5c
sete cl
xor eax, eax
test edi, edi
jle 0x490372
lea esi, [edi - 1]
cmp eax, esi
je 0x490363
cmp byte [eax + edx + 1], 0x5c
jne 0x49036d
cmp ebp, dword [esp + 0x2c]
je 0x490372
lea ecx, [eax + 2]
inc ebp
inc eax
cmp eax, edi
jl 0x490355
sub eax, ecx
inc eax
push eax
lea eax, [esp + 0x30]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00595bed
mov esi, dword [esp + 0x28]
mov ecx, dword [0x677e28]
mov dword [esi], ecx
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x24], 4
call fcn.0059d986
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 2
call fcn.0059d7fd
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.0059d7fd
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 0
call fcn.0059d7fd
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x494f50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ddcff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0x14]
push edi
mov dword [esp + 8], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc], 0x5ecdf0
mov dword [esp + 0x10], 0x5ecde8
mov dword [esp + 8], eax
call fcn.004018c0
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0
call fcn.004018c0
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.004018c0
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 2
call fcn.004018c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 3
call fcn.004018c0
mov dword [esp + 0x18], 0x5ecdfc
mov dword [esp + 0x30], 0
mov dword [esp + 8], 1
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 4
call fcn.00401950
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 5
call fcn.00401a40
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x48]
push edi
mov byte [esp + 0x40], 6
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x10], 0x5ecdd4
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
lea ecx, [eax - 0xc]
mov dword [esp + eax + 0xc], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
lea ecx, [esp + eax + 0x10]
call fcn.0048f9c0
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x3c], 7
lea eax, [ecx - 2]
cmp eax, 0x9f
ja case.0x495063.6
xor edx, edx
mov dl, byte [eax + 0x495158]
jmp dword [edx*4 + 0x495144]
push 0
push 0
push 0
push 0x652d40
jmp 0x4950d6
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x48]
push eax
mov edx, dword [ecx + 4]
lea ecx, [esp + edx + 0x10]
call fcn.0048fe90
mov eax, dword [eax]
push 0
push 0
push eax
push 0x663004
mov ecx, esi
mov byte [esp + 0x4c], 8
call fcn.00497790
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], 7
call fcn.0059d7fd
jmp 0x4950dd
push 0
push 0
push edi
push 0x662fcc
jmp 0x4950d6
push 0
push 0
push edi
push 0x663164
jmp 0x4950d6
push 0
push 0
push edi
push 0x66301c
mov ecx, esi
call fcn.00497790
lea eax, [esp + 0x18]
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 0xc
call fcn.0059d7fd
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 0xb
call fcn.0059d7fd
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 0xa
call fcn.0059d7fd
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 9
call fcn.0059d7fd
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0059d7fd
mov ecx, dword [esp + 0x34]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8

Function at 0x495570
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp]
push 0
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4955a7
call fcn.00495200
call fcn.0055b201
mov eax, dword [eax]
pop ecx
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp]
xor eax, eax
mov dword [ecx], edx
pop ecx
ret
Function at 0x4955c0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp]
push 0
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4955f7
call fcn.00495200
call fcn.0055b201
mov eax, dword [eax]
pop ecx
ret
mov ecx, dword [esp + 0x14]
mov edx, dword [esp]
xor eax, eax
mov dword [ecx], edx
pop ecx
ret

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

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x495651
call fcn.00495200
call fcn.0055b201
mov eax, dword [eax]
pop esi
ret
test al, 0x10
je 0x49565a
mov esi, 0x10
test al, 2
je 0x495661
or esi, 2
test al, 1
je 0x495668
or esi, 1
test al, 4
je 0x49566f
or esi, 4
test al, 0x20
je 0x495676
or esi, 0x20
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [ecx], esi
pop esi
ret

Function at 0x495680
Capabilities:
Set file attributes

Disassembly:
mov cl, byte [esp + 8]
xor eax, eax
test cl, 0x10
je 0x495690
mov eax, 0x10
test cl, 2
je 0x495697
or al, 2
test cl, 1
je 0x49569e
or al, 1
test cl, 4
je 0x4956a5
or al, 4
test cl, 0x20
je 0x4956ac
or al, 0x20
test eax, eax
jne 0x4956b5
mov eax, 0x80
push eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4956d2
call fcn.00495200
call fcn.0055b201
mov eax, dword [eax]
ret
xor eax, eax
ret

Function at 0x495ba0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5ddf07
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x677e28]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
push 0x104
push 0x104
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 1
call fcn.0059dc2d
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.0059dc7c
mov esi, dword [esp + 0x1c]
mov ecx, dword [0x677e28]
mov dword [esi], ecx
mov edx, dword [esp + 4]
mov ecx, esi
push edx
mov byte [esp + 0x18], 2
call fcn.0059d986
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.0059d7fd
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 4
Function at 0x4960a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x158
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
push 0x6537c4
rep stosd dword es:[edi], eax
mov ax, word [esp + 0x174]
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x24], 0x44
mov word [esp + 0x54], ax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0x168]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x60]
push edx
push eax
call esi
lea ecx, [esp + 0x60]
push 0x6631ec
push ecx
call esi
mov eax, dword [esp + 0x16c]
test eax, eax
je 0x496111
lea edx, [esp + 0x60]
push eax
push edx
call esi
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x7c]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x496159
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.00494f50
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x158
ret 0x10
mov eax, dword [esp + 0x174]
test eax, eax
je 0x496171
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop esi
mov eax, 0x20
pop ebx
add esp, 0x158
ret 0x10

Function at 0x496550
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push eax
push ecx
push 0
push edi
push 0x65464c
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jae 0x496585
push edi
push eax
mov ecx, esi
call fcn.00494f50
xor eax, eax
pop edi
pop esi
ret 0x10

Function at 0x496ad0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x5de118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x677e28]
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], eax
mov cl, byte [esp + 0x24]
xor eax, eax
add cl, 0x30
push 0xc
mov byte [esp + 0xe], cl
mov ecx, esi
mov dword [esp + 0x1c], eax
mov byte [esp + 0xc], 0x25
mov byte [esp + 0xd], 0x30
mov byte [esp + 0xf], 0x6c
mov byte [esp + 0x10], 0x64
mov byte [esp + 0x11], al
call fcn.0059dc2d
mov edx, dword [esp + 0x20]
mov ecx, dword [esi]
lea eax, [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, esi
push 0xffffffffffffffff
call fcn.0059dc7c
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 8
Function at 0x497850
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push esi
mov esi, ecx
push edi
mov al, byte [esi + 4]
lea edi, [esi + 4]
test al, al
je 0x497896
push 0x660c64
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x497896
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edi
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
ret 0x10
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
push eax
mov ecx, esi
call fcn.00497eb0
mov edi, eax
test edi, edi
je 0x49790f
mov ecx, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edx
lea eax, [esp + 0x18]
push 0
push eax
push 0
push ebx
push edi
mov dword [esp + 0x38], ecx
call ebp
mov esi, eax
test esi, esi
jne 0x4978ed
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push esi
push ebx
push edi
call ebp
mov esi, eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop ebx
test esi, esi
je 0x49791f
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
ret 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
ret 0x10

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

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
mov al, byte [esi + 4]
lea edi, [esi + 4]
test al, al
je 0x497978
push 0x660c64
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x497978
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
push edi
push eax
push ecx
mov ecx, esi
call dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov dword [ecx], eax
add esp, 8
ret 0xc
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
push eax
mov ecx, esi
call fcn.00497eb0
mov esi, eax
test esi, esi
je 0x4979e3
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push eax
push esi
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x4979d1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
pop edi
pop esi
mov dword [ecx], edx
add esp, 8
ret 0xc
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov dword [ecx], eax
add esp, 8
ret 0xc
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
pop edi
pop esi
mov dword [eax], edx
add esp, 8
ret 0xc
Function at 0x497a00
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 8
push esi
mov esi, ecx
push edi
mov al, byte [esi + 4]
lea edi, [esi + 4]
test al, al
je 0x497a52
push 0x660c64
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x497a52
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
and eax, 0xff
push edi
push eax
push ecx
mov ecx, esi
call dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x18]
pop edi
test eax, eax
setne al
mov byte [ecx], al
pop esi
add esp, 8
ret 0xc
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
push eax
mov ecx, esi
call fcn.00497eb0
mov esi, eax
test esi, esi
je 0x497ac2
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push eax
push esi
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x497ab0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test eax, eax
setne cl
pop edi
mov byte [edx], cl
pop esi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x18]
mov cl, byte [esp + 0x1c]
pop edi
pop esi
mov byte [eax], cl
add esp, 8
ret 0xc
mov edx, dword [esp + 0x18]
mov al, byte [esp + 0x1c]
pop edi
pop esi
mov byte [edx], al
add esp, 8
ret 0xc

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

Disassembly:
sub esp, 0x48
push esi
mov esi, ecx
push edi
mov al, byte [esi + 4]
lea edi, [esi + 4]
test al, al
je 0x497b50
push 0x660c64
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x497b50
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x10]
push 0xa
push eax
push ecx
call fcn.005619eb
mov ecx, dword [esp + 0x60]
add esp, 0xc
lea edx, [esp + 0x30]
lea eax, [esp + 0x10]
push edi
push 0x20
push edx
mov edx, dword [esi]
push eax
push ecx
mov ecx, esi
call dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x30]
push eax
call fcn.0055b657
mov ecx, dword [esp + 0x5c]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x48
ret 0xc
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
push eax
mov ecx, esi
call fcn.00497eb0
mov esi, eax
test esi, esi
je 0x497bbb
lea eax, [esp + 8]
lea ecx, [esp + 0x54]
push eax
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push eax
push esi
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x497ba9
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
pop edi
pop esi
mov dword [ecx], edx
add esp, 0x48
ret 0xc
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
pop edi
pop esi
mov dword [ecx], eax
add esp, 0x48
ret 0xc
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
pop edi
pop esi
mov dword [eax], edx
add esp, 0x48
ret 0xc
Function at 0x497bd0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x48
push esi
mov esi, ecx
push edi
mov al, byte [esi + 4]
lea edi, [esi + 4]
test al, al
je 0x497c40
push 0x660c64
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x497c40
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x10]
push 0xa
push eax
push ecx
call fcn.005619eb
mov ecx, dword [esp + 0x60]
add esp, 0xc
lea edx, [esp + 0x30]
lea eax, [esp + 0x10]
push edi
push 0x20
push edx
mov edx, dword [esi]
push eax
push ecx
mov ecx, esi
call dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x30]
push eax
call fcn.0055b657
mov ecx, dword [esp + 0x5c]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x48
ret 0xc
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
push eax
mov ecx, esi
call fcn.00497eb0
mov esi, eax
test esi, esi
je 0x497cab
lea eax, [esp + 8]
lea ecx, [esp + 0x54]
push eax
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push eax
push esi
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x497c99
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
pop edi
pop esi
mov dword [ecx], edx
add esp, 0x48
ret 0xc
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
pop edi
pop esi
mov dword [ecx], eax
add esp, 0x48
ret 0xc
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
pop edi
pop esi
mov dword [eax], edx
add esp, 0x48
ret 0xc

Function at 0x497cc0
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 4]
lea edi, [esi + 4]
test al, al
je 0x497d00
push 0x660c64
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x497d00
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi]
push edi
push eax
push ecx
mov ecx, esi
call dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
push eax
mov ecx, esi
call fcn.00497eb0
mov ebx, eax
test ebx, ebx
je 0x497d7f
mov edi, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x497d4c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
mov edi, eax
test edi, edi
je 0x497d7f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edi
call ebp
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x497d66
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x497e10
Capabilities:
Set registry value

Disassembly:
sub esp, 0x20
push esi
mov esi, ecx
push edi
mov al, byte [esi + 4]
lea edi, [esi + 4]
test al, al
je 0x497e6a
push 0x660c64
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x497e6a
mov eax, dword [esp + 0x30]
lea ecx, [esp + 8]
push eax
push 0x6632c0
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x38]
add esp, 0xc
lea edx, [esp + 8]
mov ecx, esi
push edi
push edx
mov edx, dword [esi]
push eax
call dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
add esp, 0x20
ret 8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
push eax
mov ecx, esi
call fcn.00497eb0
mov esi, eax
test esi, esi
je 0x497e9d
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x30]
push 4
push ecx
push 4
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x20
ret 8

Function at 0x49a620
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov eax, dword [ebx]
push edi
test eax, eax
mov dword [esp + 0x10], ecx
je 0x49a63c
push eax
call fcn.0055c865
add esp, 4
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x18]
mov dword [ebx], 0
mov dword [esi], 0
mov dword [eax], 0
mov byte [ecx], 0
test ebp, ebp
je 0x49a72b
push 0
push 0
push 3
push 0
push 1
push OleUIAddVerbMenuA
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x49a690
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0x18
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x49a6b1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0x18
mov edx, dword [esp + 0x24]
inc eax
push eax
mov dword [edx], eax
call fcn.0055c94e
add esp, 4
mov dword [ebx], eax
mov edx, dword [esi]
lea ecx, [esp + 0x1c]
push 0
push ecx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x49a6f0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret 0x18
mov ecx, dword [ebx]
push edi
mov byte [ecx + eax], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5c
push ebp
call fcn.0055b630
mov edx, dword [esp + 0x30]
add esp, 8
inc eax
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi]
mov edx, dword [ebx]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.0049a740
mov dword [esi], eax
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret 0x18