joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a7a5
Capabilities:
Check if file exists
Create directory
Delete directory

Disassembly:
mov eax, 0x42cec3
call fcn.00421904
mov eax, 0x2ac4
call fcn.00420a50
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x2ad0]
call fcn.0041dbe0
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2ad0]
call fcn.0041f7ad
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00420680
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x110]
push dword [esi + 0x10]
push eax
call fcn.00420690
mov esi, dword [esi + 8]
add esp, 0x10
sub esi, 0
je 0x41a871
dec esi
je 0x41a808
push 4
jmp 0x41a86e
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x41a8ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41a839
lea eax, [ebp - 0x110]
push eax
push str.Del_dir___s__fail._Not_exist.
jmp 0x41a8e3
cmp eax, 0x91
jne 0x41a84e
lea eax, [ebp - 0x110]
push eax
push str.Del_dir___s__pending._Not_empty.
jmp 0x41a863
cmp eax, 5
jne 0x41a8ec
lea eax, [ebp - 0x110]
push eax
push str.Del_dir___s__pending.
push edi
call fcn.004227b3
add esp, 0xc
push 9
pop esi
jmp 0x41a8ee
lea eax, [ebp - 0x110]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41a8d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41a89f
lea eax, [ebp - 0x110]
push eax
push str.Create_dir___s__success._Already_exist.
jmp 0x41a8e3
cmp eax, 5
jne 0x41a8bd
lea eax, [ebp - 0x110]
push eax
push str.Create_dir___s__fail._Access_denined
push edi
call fcn.004227b3
add esp, 0xc
push 0xa
jmp 0x41a86e
push eax
lea eax, [ebp - 0x110]
push eax
push str.Create_file_dir___s__fail._GetLastError___d
push edi
call fcn.004227b3
add esp, 0x10
push 8
jmp 0x41a86e
lea eax, [ebp - 0x110]
push eax
push str.Create_dir___s__success.
push edi
call fcn.004227b3
add esp, 0xc
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2ad0]
call fcn.0041dcb8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x41ba54
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx eax, word [esp + 8]
push esi
push edi
push 2
push eax
push dword [esp + 0x14]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41bac9
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41bac9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41bac9
mov cx, word [esi + 0xe]
cmp cx, 8
ja 0x41ba9b
push 1
pop edi
shl edi, cl
jmp 0x41ba9d
xor edi, edi
push ebx
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov eax, dword [esi]
push 0
push esi
lea eax, [eax + edi*4]
add eax, esi
push eax
push 4
push esi
push ebx
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push ebx
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x41bb63
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
push edi
xor esi, esi
push 7
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x403]
pop edi
mov eax, esi
mov ebx, edi
sar eax, 5
and eax, edi
push 3
imul eax, eax, 0xff
cdq
idiv ebx
mov byte [ecx - 1], al
mov eax, esi
sar eax, 2
and eax, edi
imul eax, eax, 0xff
cdq
idiv ebx
pop ebx
mov byte [ecx], al
mov eax, esi
and eax, 3
add ecx, 4
imul eax, eax, 0xff
cdq
idiv ebx
mov byte [ecx - 3], al
and byte [ecx - 2], 0
inc esi
cmp esi, 0x100
jl 0x41bb7d
cmp dword [ebp + 0xc], 0
je 0x41bca8
push 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41bca8
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41bca8
mov ecx, dword [eax]
cmp ecx, 0x28
lea esi, [ecx + eax]
mov dword [ebp + 0xc], esi
jb 0x41bc2a
mov cx, word [eax + 0xe]
cmp cx, 8
ja 0x41bc2a
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x41bc26
push 1
pop edx
shl edx, cl
jmp 0x41bc2c
mov edx, eax
jmp 0x41bc2c
xor edx, edx
test edx, edx
jle 0x41bc63
lea ecx, [ebp - 0x404]
lea eax, [esi + 1]
sub ecx, esi
lea esi, [ebp - 0x403]
sub esi, dword [ebp + 0xc]
lea edi, [ebp - 0x404]
mov bl, byte [eax + 1]
mov byte [edi], bl
mov bl, byte [eax]
mov byte [ecx + eax], bl
mov bl, byte [eax - 1]
mov byte [esi + eax], bl
add edi, 4
add eax, 4
dec edx
jne 0x41bc4a
push 0x404
call fcn.00421c57
mov esi, eax
pop ecx
test esi, esi
je 0x41bca8
lea eax, [ebp - 0x404]
push 0x400
push eax
lea eax, [esi + 4]
push eax
mov word [esi], 0x300
mov word [esi + 2], 0x100
call fcn.00420f70
add esp, 0xc
push esi
call dword [sym.imp.GDI32.dll_CreatePalette]
push esi
mov dword [ebp - 4], eax
call fcn.00421dfa
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c1ff
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4460
call fcn.00420a50
push ebx
push esi
push edi
mov edi, 0x2000
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x2460]
mov ebx, 0x4343a0
push edi
push eax
push ebx
push str.NOTIFY
push dword [ebp + 0xc]
call esi
lea eax, [ebp - 0x2460]
push ebx
push eax
call fcn.00422440
pop ecx
mov ebx, eax
pop ecx
lea eax, [ebp - 0x4460]
push dword [ebp + 8]
neg ebx
push edi
push eax
push 0x437ea8
push str.MESSAGE
push dword [ebp + 0xc]
sbb bl, bl
inc bl
call esi
lea eax, [ebp - 0x4460]
push eax
call fcn.0040dacb
pop ecx
lea eax, [ebp - 0x2460]
push dword [ebp + 8]
push edi
push eax
push 0x437ea8
push str.EXECUTE
push dword [ebp + 0xc]
call esi
lea eax, [ebp - 0x2460]
push eax
lea eax, [ebp - 0x25c]
push dword [ebp + 0x10]
push 0x4320f0
push 0x104
push eax
call fcn.004209f2
add esp, 0x14
and byte [ebp - 0x159], 0
lea eax, [ebp - 0x2460]
push dword [ebp + 8]
push edi
push eax
push 0x437ea8
push str.CMDLINE
push dword [ebp + 0xc]
call esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x2460]
push eax
lea eax, [ebp - 0x460]
push 0x104
push eax
call fcn.004209f2
add esp, 0x10
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
mov edi, 0x100
lea eax, [ebp - 0x158]
push edi
push eax
push 0x57
push dword [0x441fe4]
call esi
test bl, bl
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
je 0x41c33b
lea eax, [ebp - 0x158]
push 0x40024
push eax
lea eax, [ebp - 0x4460]
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x41c41e
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00420b00
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
call ebx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x460]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x41c3b9
lea eax, [ebp - 0x35c]
push edi
push eax
push 0x58
push dword [0x441fe4]
call esi
lea eax, [ebp - 0x158]
push 0x10
push eax
lea eax, [ebp - 0x35c]
push eax
call ebx
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x41c41e
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov edi, 0xff
push edi
push 0xffffffffffffffff
lea eax, [ebp - 4]
push 0
push eax
push 1
call esi
cmp eax, 1
jne 0x41c415
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
xor eax, eax
push 1
push eax
push eax
push eax
lea eax, [ebp - 0x58]
push eax
call ebx
test eax, eax
je 0x41c403
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x41c3dc
push edi
push 0xffffffffffffffff
lea eax, [ebp - 4]
push 0
push eax
push 1
call esi
cmp eax, 1
je 0x41c3dc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c423
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x7c04
call fcn.00420a50
push esi
lea eax, [ebp - 0x7c04]
push dword [ebp + 8]
mov byte [0x446418], 1
push 0x7c00
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
jbe 0x41c491
lea ecx, [ebp - 4]
inc eax
push ecx
push eax
lea eax, [ebp - 0x7c04]
push eax
call fcn.0040d77f
mov esi, eax
add esp, 0xc
test esi, esi
je 0x41c491
push edi
mov edi, esi
mov eax, dword [esi]
test eax, eax
je 0x41c489
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.0041c1ff
add esp, 0xc
add esi, 4
jmp 0x41c46f
push edi
call fcn.00421dfa
pop ecx
pop edi
and byte [0x446418], 0
pop esi
leave
ret

Function at 0x41ccf3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
xor eax, eax
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 4]
push edi
mov esi, ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x41cddf
mov eax, dword [ebp - 4]
mov edi, 0x104
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ebx, eax
test ebx, ebx
je 0x41cddf
cmp byte [esi + 0x208], 0
lea eax, [esi + 0x208]
jne 0x41cd63
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esi + 0x20b]
push str.Program_Files
push eax
call fcn.00420680
pop ecx
pop ecx
jmp 0x41cd7e
push eax
call fcn.00420cc0
cmp byte [eax + esi + 0x207], 0x5c
lea eax, [eax + esi + 0x207]
pop ecx
jne 0x41cd7e
and byte [eax], 0
lea eax, [ebp - 8]
lea edi, [esi + 0x524]
push eax
push 0
push dword [edi]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41cddf
mov eax, dword [edi]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x104]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x1c], 0x41caf7
mov dword [ebp - 0x18], esi
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x41cdd8
mov dword [ebp - 0x10], 1
jmp 0x41cddf
and byte [esi + 0x410], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
test eax, eax
je 0x41ce13
cmp dword [ebp - 0xc], 0
je 0x41cdfb
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], 0
je 0x41ce0d
push dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
leave
ret
Function at 0x41cea3
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e6f0
push 0x422518
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x520
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0xf003f
push ebx
mov esi, 0x437ea8
push esi
push ebx
push dword [ebp + 0xc]
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x41d091
push dword [ebp + 0x10]
call fcn.00420cc0
pop ecx
inc eax
push eax
push dword [ebp + 0x10]
push 1
push ebx
push esi
push dword [ebp - 0x2c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x41d091
mov byte [ebp - 0x52d], bl
mov byte [ebp - 0x52f], bl
mov byte [ebp - 0x530], bl
mov byte [ebp - 0x52e], 1
push 4
lea eax, [ebp - 0x530]
push eax
push 3
push ebx
push str.EditFlags
push dword [ebp - 0x2c]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x41d091
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push 0xf003f
push ebx
push esi
push ebx
push str.shellopencommand
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x41d091
push dword [ebp + 8]
push str._s____1_
push 0x400
lea eax, [ebp - 0x52c]
push eax
call fcn.004209f2
mov byte [ebp - 0x12d], bl
lea eax, [ebp - 0x52c]
push eax
call fcn.00420cc0
add esp, 0x14
inc eax
push eax
lea eax, [ebp - 0x52c]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x28]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x41d091
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0x2e
jne 0x41cffc
push 0x100
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.004208c0
add esp, 0xc
jmp 0x41d024
push 0x432a88
lea eax, [ebp - 0x12c]
push eax
call fcn.00420680
push 0xff
push dword [ebp + 0x14]
lea eax, [ebp - 0x12c]
push eax
call fcn.00422b90
add esp, 0x14
mov byte [ebp - 0x2d], bl
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push 0xf003f
push ebx
push esi
push ebx
lea eax, [ebp - 0x12c]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x41d091
push dword [ebp + 0xc]
call fcn.00420cc0
pop ecx
inc eax
push eax
push dword [ebp + 0xc]
push 1
push ebx
push esi
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x41d091
push dword [ebp + 0x18]
call fcn.00420cc0
pop ecx
inc eax
push eax
push dword [ebp + 0x18]
push 1
push ebx
push str.Content_Type
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x41d0a2
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.00421856
pop ecx
pop ecx
xor al, al
jmp 0x41d0ad
or dword [ebp - 4], 0xffffffff
call fcn.0041d0be
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d0e9
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e700
push 0x422518
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x42c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareNetscapeNetscape_NavigatorUser_Trusted_External_Applications
push 0x80000001
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call ebx
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x41d2a6
push 4
push 0x4344c4
push 1
push esi
push dword [ebp + 8]
push dword [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x41d2a6
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareNetscapeNetscape_NavigatorViewers
push 0x80000001
call ebx
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x41d2a6
mov dword [ebp - 0x42c], esi
cmp dword [ebp - 0x42c], 0x3e8
jge 0x41d212
push dword [ebp - 0x42c]
push str.TYPE_d
push 0x10
lea eax, [ebp - 0x43c]
push eax
call fcn.004209f2
add esp, 0x10
mov dword [ebp - 0x28], 0x400
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x428]
push eax
push esi
push esi
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x41d212
push dword [ebp + 0x10]
lea eax, [ebp - 0x428]
push eax
call fcn.00420ba0
pop ecx
pop ecx
test eax, eax
je 0x41d212
inc dword [ebp - 0x42c]
jmp 0x41d1a2
push dword [ebp + 0x10]
call fcn.00420cc0
pop ecx
inc eax
push eax
push dword [ebp + 0x10]
push 1
push esi
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x41d2a6
push dword [ebp + 8]
call fcn.00420cc0
pop ecx
inc eax
push eax
push dword [ebp + 8]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x41d2a6
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareNetscapeNetscape_NavigatorSuffixes
push 0x80000001
call ebx
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x41d2a6
push dword [ebp + 0xc]
call fcn.00420cc0
pop ecx
inc eax
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x41d2b7
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.00421856
pop ecx
pop ecx
xor al, al
jmp 0x41d2c2
or dword [ebp - 4], 0xffffffff
call fcn.0041d2d3
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f90d
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 8

Function at 0x41faef
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x42d0e8
call fcn.00421904
sub esp, 0x118
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], edi
call fcn.0041f830
push dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], esi
push dword [edi + 4]
call fcn.0041f8a1
cmp eax, esi
jne 0x41fb93
lea eax, [ebp - 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x10], 0x100
push eax
push esi
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x41fb80
lea eax, [ebp - 0x124]
lea ecx, [ebp - 0x18]
push eax
call fcn.0041faef
cmp eax, esi
jne 0x41fb93
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 0x100
push eax
push esi
push esi
lea eax, [ebp - 0x10]
push esi
push eax
lea eax, [ebp - 0x124]
push eax
push esi
push dword [ebp - 0x14]
jmp 0x41fb48
lea ecx, [ebp - 0x18]
call fcn.0041f8d9
push dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
call fcn.0041fadf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0041f859
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x41ff80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
push str.Opera.ini
lea eax, [ebp - 0x100]
push 0x100
mov esi, 0x437ea8
push eax
push esi
push str.HTTP_SERVER
push str.PROXY
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x41ffef
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push edi
mov edi, dword [ebp + 8]
push eax
mov eax, dword [esi]
push str.http
dec eax
push 0x4320f0
push eax
push edi
call fcn.004209f2
mov eax, dword [esi]
push edi
and byte [eax + edi - 1], 0
call fcn.00420cc0
add esp, 0x18
mov dword [esi], eax
push 5
pop eax
pop edi
jmp 0x420002
push esi
push dword [ebp + 8]
call fcn.00420680
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
and dword [eax], 0
xor eax, eax
pop esi
leave
ret 8
Function at 0x428048
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4376f0
cmp edx, dword [eax]
je 0x42806a
add eax, 8
inc ecx
cmp eax, 0x437780
jl 0x42805b
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4376f0]
jne 0x428198
mov eax, dword [0x446448]
cmp eax, 1
je 0x428172
test eax, eax
jne 0x42809b
cmp dword [0x436d74], 1
je 0x428172
cmp edx, 0xfc
je 0x428198
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4280d2
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00420680
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00420cc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x428115
lea eax, [ebp - 0x1a4]
push eax
call fcn.00420cc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4329bc
push edi
call fcn.004208c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00420680
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00420690
lea eax, [ebp - 0xa0]
push 0x42ebb8
push eax
call fcn.00420690
push dword [esi + 0x4376f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00420690
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00429b66
add esp, 0x2c
pop edi
jmp 0x428198
lea eax, [ebp + 8]
lea esi, [esi + 0x4376f4]
push 0
push eax
push dword [esi]
call fcn.00420cc0
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]
pop esi
leave
ret
Function at 0x403354
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46d00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4033ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4033cc
xor eax, eax
push ebp
push 0x4033c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403408
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4033cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46d00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46d00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4040dc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46f048], 0
je 0x40413d
cmp word [0x46f21c], 0xd7b2
jne 0x404105
cmp dword [0x46f224], 0
jbe 0x404105
mov eax, 0x46f218
call dword [0x46f234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46d054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404164
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46d01c], 0
jne 0x404159
push 0
push 0x46d074
push 0x46d054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret